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

Last change on this file since 2633 was 2633, checked in by stefan, 7 years ago

temporarily committing release candidate

File size: 866.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMumps 1.4.4.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMumps'
431PACKAGE_TARNAME='thirdpartymumps'
432PACKAGE_VERSION='1.4.4'
433PACKAGE_STRING='ThirdPartyMumps 1.4.4'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="MUMPS/src/dmumps_part1.F"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion MUMPS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS CPP EGREP MY_DEFS LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED MUMPS_CFLAGS MUMPS_LIBS MUMPS_PCLIBS MUMPS_PCREQUIRES MUMPS_DEPENDENCIES MUMPS_CFLAGS_INSTALLED MUMPS_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
993ac_env_PKG_CONFIG_value=$PKG_CONFIG
994ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
995ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyMumps 1.4.4 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyMumps 1.4.4:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-mumps compile project Mumps with debug compiler flags
1080  --enable-doscompile     Under Cygwin, compile so that executables run under
1081                          DOS. Set to mingw to use gcc/g++/ld with
1082                          -mno-cygwin. Set to msvc to use cl/link (or
1083                          icl/link). Default when mentioned: mingw. Default
1084                          when not mentioned: disabled.
1085  --enable-static[=PKGS]
1086                          build static libraries [default=no]
1087  --disable-dependency-tracking  speeds up one-time build
1088  --enable-dependency-tracking   do not reject slow dependency extractors
1089  --enable-maintainer-mode  enable make rules and dependencies not useful
1090                          (and sometimes confusing) to the casual installer
1091  --enable-shared[=PKGS]
1092                          build shared libraries [default=yes]
1093  --enable-fast-install[=PKGS]
1094                          optimize for fast installation [default=yes]
1095  --disable-libtool-lock  avoid locking (might break parallel builds)
1096  --disable-pkg-config    disable use of pkg-config (if available)
1097  --disable-interpackage-dependencies
1098                          disables deduction of Makefile dependencies from
1099                          package linker flags
1100
1101Optional Packages:
1102  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1103  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1104  --with-mumps-verbosity specify the debug verbosity level for project Mumps
1105  --with-mumps-checklevel specify the sanity check level for project Mumps
1106  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1107  --with-pic              try to use only PIC/non-PIC objects [default=use
1108                          both]
1109  --with-tags[=TAGS]
1110                          include additional configurations [automatic]
1111  --with-blas             specify BLAS library (or BUILD to enforce use of
1112                          ThirdParty/Blas)
1113
1114  --with-coin-instdir     prefix of installation directory for precompiled
1115                          COIN packages
1116  --with-blas-lib linker flags for using package Blas
1117  --with-blas-incdir directory with header files for using package Blas
1118  --with-blas-datadir directory with data files for using package Blas
1119  --with-metis-lib linker flags for using package Metis
1120  --with-metis-incdir directory with header files for using package Metis
1121  --with-metis-datadir directory with data files for using package Metis
1122
1123Some influential environment variables:
1124  CDEFS       Additional -D flags to be used when compiling C code.
1125  ADD_CFLAGS  Additional C compiler options
1126  DBG_CFLAGS  Debug C compiler options
1127  OPT_CFLAGS  Optimize C compiler options
1128  CC          C compiler command
1129  CFLAGS      C compiler flags
1130  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1131              nonstandard directory <lib dir>
1132  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1133              headers in a nonstandard directory <include dir>
1134  MPICC       C MPI Compiler
1135  ADD_FFLAGS  Additional Fortran compiler options
1136  DBG_FFLAGS  Debug Fortran compiler options
1137  OPT_FFLAGS  Optimize Fortran compiler options
1138  F77         Fortran 77 compiler command
1139  FFLAGS      Fortran 77 compiler flags
1140  MPIF77      Fortran MPI Compiler
1141  CPP         C preprocessor
1142  CXX         C++ compiler command
1143  CXXFLAGS    C++ compiler flags
1144  CXXCPP      C++ preprocessor
1145  PKG_CONFIG  path to pkg-config utility
1146
1147Use these variables to override the choices made by `configure' or to help
1148it to find libraries and programs with nonstandard names/locations.
1149
1150Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1151_ACEOF
1152fi
1153
1154if test "$ac_init_help" = "recursive"; then
1155  # If there are subdirs, report their specific --help.
1156  ac_popdir=`pwd`
1157  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1158    test -d $ac_dir || continue
1159    ac_builddir=.
1160
1161if test "$ac_dir" != .; then
1162  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1163  # A "../" for each directory in $ac_dir_suffix.
1164  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1165else
1166  ac_dir_suffix= ac_top_builddir=
1167fi
1168
1169case $srcdir in
1170  .)  # No --srcdir option.  We are building in place.
1171    ac_srcdir=.
1172    if test -z "$ac_top_builddir"; then
1173       ac_top_srcdir=.
1174    else
1175       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1176    fi ;;
1177  [\\/]* | ?:[\\/]* )  # Absolute path.
1178    ac_srcdir=$srcdir$ac_dir_suffix;
1179    ac_top_srcdir=$srcdir ;;
1180  *) # Relative path.
1181    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1182    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1183esac
1184
1185# Do not use `cd foo && pwd` to compute absolute paths, because
1186# the directories may not exist.
1187case `pwd` in
1188.) ac_abs_builddir="$ac_dir";;
1189*)
1190  case "$ac_dir" in
1191  .) ac_abs_builddir=`pwd`;;
1192  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1193  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1194  esac;;
1195esac
1196case $ac_abs_builddir in
1197.) ac_abs_top_builddir=${ac_top_builddir}.;;
1198*)
1199  case ${ac_top_builddir}. in
1200  .) ac_abs_top_builddir=$ac_abs_builddir;;
1201  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1202  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1203  esac;;
1204esac
1205case $ac_abs_builddir in
1206.) ac_abs_srcdir=$ac_srcdir;;
1207*)
1208  case $ac_srcdir in
1209  .) ac_abs_srcdir=$ac_abs_builddir;;
1210  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1211  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1212  esac;;
1213esac
1214case $ac_abs_builddir in
1215.) ac_abs_top_srcdir=$ac_top_srcdir;;
1216*)
1217  case $ac_top_srcdir in
1218  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1219  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1220  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1221  esac;;
1222esac
1223
1224    cd $ac_dir
1225    # Check for guested configure; otherwise get Cygnus style configure.
1226    if test -f $ac_srcdir/configure.gnu; then
1227      echo
1228      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1229    elif test -f $ac_srcdir/configure; then
1230      echo
1231      $SHELL $ac_srcdir/configure  --help=recursive
1232    elif test -f $ac_srcdir/configure.ac ||
1233           test -f $ac_srcdir/configure.in; then
1234      echo
1235      $ac_configure --help
1236    else
1237      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1238    fi
1239    cd $ac_popdir
1240  done
1241fi
1242
1243test -n "$ac_init_help" && exit 0
1244if $ac_init_version; then
1245  cat <<\_ACEOF
1246ThirdPartyMumps configure 1.4.4
1247generated by GNU Autoconf 2.59
1248
1249Copyright (C) 2003 Free Software Foundation, Inc.
1250This configure script is free software; the Free Software Foundation
1251gives unlimited permission to copy, distribute and modify it.
1252
1253
1254Copyright 2007-2009 International Business Machines and others.
1255All Rights Reserved.
1256This file is part of the open source package Coin which is distributed
1257under the Eclipse Public License.
1258_ACEOF
1259  exit 0
1260fi
1261exec 5>config.log
1262cat >&5 <<_ACEOF
1263This file contains any messages produced by compilers while
1264running configure, to aid debugging if configure makes a mistake.
1265
1266It was created by ThirdPartyMumps $as_me 1.4.4, which was
1267generated by GNU Autoconf 2.59.  Invocation command line was
1268
1269  $ $0 $@
1270
1271_ACEOF
1272{
1273cat <<_ASUNAME
1274## --------- ##
1275## Platform. ##
1276## --------- ##
1277
1278hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1279uname -m = `(uname -m) 2>/dev/null || echo unknown`
1280uname -r = `(uname -r) 2>/dev/null || echo unknown`
1281uname -s = `(uname -s) 2>/dev/null || echo unknown`
1282uname -v = `(uname -v) 2>/dev/null || echo unknown`
1283
1284/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1285/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1286
1287/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1288/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1289/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1290hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1291/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1292/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1293/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1294
1295_ASUNAME
1296
1297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1298for as_dir in $PATH
1299do
1300  IFS=$as_save_IFS
1301  test -z "$as_dir" && as_dir=.
1302  echo "PATH: $as_dir"
1303done
1304
1305} >&5
1306
1307cat >&5 <<_ACEOF
1308
1309
1310## ----------- ##
1311## Core tests. ##
1312## ----------- ##
1313
1314_ACEOF
1315
1316
1317# Keep a trace of the command line.
1318# Strip out --no-create and --no-recursion so they do not pile up.
1319# Strip out --silent because we don't want to record it for future runs.
1320# Also quote any args containing shell meta-characters.
1321# Make two passes to allow for proper duplicate-argument suppression.
1322ac_configure_args=
1323ac_configure_args0=
1324ac_configure_args1=
1325ac_sep=
1326ac_must_keep_next=false
1327for ac_pass in 1 2
1328do
1329  for ac_arg
1330  do
1331    case $ac_arg in
1332    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1333    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1334    | -silent | --silent | --silen | --sile | --sil)
1335      continue ;;
1336    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1337      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1338    esac
1339    case $ac_pass in
1340    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1341    2)
1342      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1343      if test $ac_must_keep_next = true; then
1344        ac_must_keep_next=false # Got value, back to normal.
1345      else
1346        case $ac_arg in
1347          *=* | --config-cache | -C | -disable-* | --disable-* \
1348          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1349          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1350          | -with-* | --with-* | -without-* | --without-* | --x)
1351            case "$ac_configure_args0 " in
1352              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1353            esac
1354            ;;
1355          -* ) ac_must_keep_next=true ;;
1356        esac
1357      fi
1358      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1359      # Get rid of the leading space.
1360      ac_sep=" "
1361      ;;
1362    esac
1363  done
1364done
1365$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1366$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1367
1368# When interrupted or exit'd, cleanup temporary files, and complete
1369# config.log.  We remove comments because anyway the quotes in there
1370# would cause problems or look ugly.
1371# WARNING: Be sure not to use single quotes in there, as some shells,
1372# such as our DU 5.0 friend, will then `close' the trap.
1373trap 'exit_status=$?
1374  # Save into config.log some information that might help in debugging.
1375  {
1376    echo
1377
1378    cat <<\_ASBOX
1379## ---------------- ##
1380## Cache variables. ##
1381## ---------------- ##
1382_ASBOX
1383    echo
1384    # The following way of writing the cache mishandles newlines in values,
1385{
1386  (set) 2>&1 |
1387    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1388    *ac_space=\ *)
1389      sed -n \
1390        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1391          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1392      ;;
1393    *)
1394      sed -n \
1395        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1396      ;;
1397    esac;
1398}
1399    echo
1400
1401    cat <<\_ASBOX
1402## ----------------- ##
1403## Output variables. ##
1404## ----------------- ##
1405_ASBOX
1406    echo
1407    for ac_var in $ac_subst_vars
1408    do
1409      eval ac_val=$`echo $ac_var`
1410      echo "$ac_var='"'"'$ac_val'"'"'"
1411    done | sort
1412    echo
1413
1414    if test -n "$ac_subst_files"; then
1415      cat <<\_ASBOX
1416## ------------- ##
1417## Output files. ##
1418## ------------- ##
1419_ASBOX
1420      echo
1421      for ac_var in $ac_subst_files
1422      do
1423        eval ac_val=$`echo $ac_var`
1424        echo "$ac_var='"'"'$ac_val'"'"'"
1425      done | sort
1426      echo
1427    fi
1428
1429    if test -s confdefs.h; then
1430      cat <<\_ASBOX
1431## ----------- ##
1432## confdefs.h. ##
1433## ----------- ##
1434_ASBOX
1435      echo
1436      sed "/^$/d" confdefs.h | sort
1437      echo
1438    fi
1439    test "$ac_signal" != 0 &&
1440      echo "$as_me: caught signal $ac_signal"
1441    echo "$as_me: exit $exit_status"
1442  } >&5
1443  rm -f core *.core &&
1444  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1445    exit $exit_status
1446     ' 0
1447for ac_signal in 1 2 13 15; do
1448  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1449done
1450ac_signal=0
1451
1452# confdefs.h avoids OS command line length limits that DEFS can exceed.
1453rm -rf conftest* confdefs.h
1454# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1455echo >confdefs.h
1456
1457# Predefined preprocessor variables.
1458
1459cat >>confdefs.h <<_ACEOF
1460#define PACKAGE_NAME "$PACKAGE_NAME"
1461_ACEOF
1462
1463
1464cat >>confdefs.h <<_ACEOF
1465#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1466_ACEOF
1467
1468
1469cat >>confdefs.h <<_ACEOF
1470#define PACKAGE_VERSION "$PACKAGE_VERSION"
1471_ACEOF
1472
1473
1474cat >>confdefs.h <<_ACEOF
1475#define PACKAGE_STRING "$PACKAGE_STRING"
1476_ACEOF
1477
1478
1479cat >>confdefs.h <<_ACEOF
1480#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1481_ACEOF
1482
1483
1484# Let the site file select an alternate cache file if it wants to.
1485# Prefer explicitly selected file to automatically selected ones.
1486if test -z "$CONFIG_SITE"; then
1487  if test "x$prefix" != xNONE; then
1488    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1489  else
1490    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1491  fi
1492fi
1493for ac_site_file in $CONFIG_SITE; do
1494  if test -r "$ac_site_file"; then
1495    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1496echo "$as_me: loading site script $ac_site_file" >&6;}
1497    sed 's/^/| /' "$ac_site_file" >&5
1498    . "$ac_site_file"
1499  fi
1500done
1501
1502if test -r "$cache_file"; then
1503  # Some versions of bash will fail to source /dev/null (special
1504  # files actually), so we avoid doing that.
1505  if test -f "$cache_file"; then
1506    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1507echo "$as_me: loading cache $cache_file" >&6;}
1508    case $cache_file in
1509      [\\/]* | ?:[\\/]* ) . $cache_file;;
1510      *)                      . ./$cache_file;;
1511    esac
1512  fi
1513else
1514  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1515echo "$as_me: creating cache $cache_file" >&6;}
1516  >$cache_file
1517fi
1518
1519# Check that the precious variables saved in the cache have kept the same
1520# value.
1521ac_cache_corrupted=false
1522for ac_var in `(set) 2>&1 |
1523               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1524  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1525  eval ac_new_set=\$ac_env_${ac_var}_set
1526  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1527  eval ac_new_val="\$ac_env_${ac_var}_value"
1528  case $ac_old_set,$ac_new_set in
1529    set,)
1530      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1531echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1532      ac_cache_corrupted=: ;;
1533    ,set)
1534      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1535echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1536      ac_cache_corrupted=: ;;
1537    ,);;
1538    *)
1539      if test "x$ac_old_val" != "x$ac_new_val"; then
1540        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1541echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1542        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1543echo "$as_me:   former value:  $ac_old_val" >&2;}
1544        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1545echo "$as_me:   current value: $ac_new_val" >&2;}
1546        ac_cache_corrupted=:
1547      fi;;
1548  esac
1549  # Pass precious variables to config.status.
1550  if test "$ac_new_set" = set; then
1551    case $ac_new_val in
1552    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1553      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1554    *) ac_arg=$ac_var=$ac_new_val ;;
1555    esac
1556    case " $ac_configure_args " in
1557      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1558      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1559    esac
1560  fi
1561done
1562if $ac_cache_corrupted; then
1563  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1564echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1565  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1566echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1567   { (exit 1); exit 1; }; }
1568fi
1569
1570ac_ext=c
1571ac_cpp='$CPP $CPPFLAGS'
1572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1574ac_compiler_gnu=$ac_cv_c_compiler_gnu
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605# List one file in the package so that the configure script can test
1606# whether the package is actually there
1607
1608
1609# Where should everything be installed by default?  Here, we want it
1610# to be installed directly in 'bin', 'lib', 'include' subdirectories
1611# of the directory where configure is run.  The default would be
1612# /usr/local.
1613
1614
1615
1616# As backup, we make sure we don't loose an FLIBS if it has been set
1617# by the user
1618save_FLIBS="$FLIBS"
1619
1620# A useful makefile conditional that is always false
1621
1622
1623if false; then
1624  ALWAYS_FALSE_TRUE=
1625  ALWAYS_FALSE_FALSE='#'
1626else
1627  ALWAYS_FALSE_TRUE='#'
1628  ALWAYS_FALSE_FALSE=
1629fi
1630
1631
1632# We set the following variable so that we know later in AC_COIN_FINALIZE
1633# that we are in a project main directory
1634coin_projectdir=yes
1635
1636# Set the project's version numbers
1637
1638
1639cat >>confdefs.h <<_ACEOF
1640#define MUMPS_VERSION "$PACKAGE_VERSION"
1641_ACEOF
1642
1643
1644  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1645  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1646  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1647  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1648  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1649  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1650
1651cat >>confdefs.h <<_ACEOF
1652#define MUMPS_VERSION_MAJOR $coin_majorver
1653_ACEOF
1654
1655
1656cat >>confdefs.h <<_ACEOF
1657#define MUMPS_VERSION_MINOR $coin_minorver
1658_ACEOF
1659
1660
1661cat >>confdefs.h <<_ACEOF
1662#define MUMPS_VERSION_RELEASE $coin_releasever
1663_ACEOF
1664
1665
1666  # We use the following variable to have a string with the upper case
1667  # version of the project name
1668  COIN_PRJCT=MUMPS
1669
1670  # Set the project's SVN revision number. The complicated sed expression
1671  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1672  # as a single number.
1673  # Extract the first word of "svnversion", so it can be a program name with args.
1674set dummy svnversion; ac_word=$2
1675echo "$as_me:$LINENO: checking for $ac_word" >&5
1676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677if test "${ac_cv_prog_have_svnversion+set}" = set; then
1678  echo $ECHO_N "(cached) $ECHO_C" >&6
1679else
1680  if test -n "$have_svnversion"; then
1681  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1682else
1683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684for as_dir in $PATH
1685do
1686  IFS=$as_save_IFS
1687  test -z "$as_dir" && as_dir=.
1688  for ac_exec_ext in '' $ac_executable_extensions; do
1689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690    ac_cv_prog_have_svnversion="yes"
1691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692    break 2
1693  fi
1694done
1695done
1696
1697  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1698fi
1699fi
1700have_svnversion=$ac_cv_prog_have_svnversion
1701if test -n "$have_svnversion"; then
1702  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1703echo "${ECHO_T}$have_svnversion" >&6
1704else
1705  echo "$as_me:$LINENO: result: no" >&5
1706echo "${ECHO_T}no" >&6
1707fi
1708
1709  if test "x$have_svnversion" = xyes; then
1710
1711    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1712    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1713      MUMPS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1714
1715cat >>confdefs.h <<_ACEOF
1716#define MUMPS_SVN_REV $MUMPS_SVN_REV
1717_ACEOF
1718
1719    fi
1720  fi
1721
1722
1723
1724# Capture libtool library version, if given.
1725coin_libversion=5:4:4
1726
1727
1728
1729
1730#############################################################################
1731#                         Standard build tool stuff                         #
1732#############################################################################
1733
1734# Get the system type
1735ac_aux_dir=
1736for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1737  if test -f $ac_dir/install-sh; then
1738    ac_aux_dir=$ac_dir
1739    ac_install_sh="$ac_aux_dir/install-sh -c"
1740    break
1741  elif test -f $ac_dir/install.sh; then
1742    ac_aux_dir=$ac_dir
1743    ac_install_sh="$ac_aux_dir/install.sh -c"
1744    break
1745  elif test -f $ac_dir/shtool; then
1746    ac_aux_dir=$ac_dir
1747    ac_install_sh="$ac_aux_dir/shtool install -c"
1748    break
1749  fi
1750done
1751if test -z "$ac_aux_dir"; then
1752  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1753echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1754   { (exit 1); exit 1; }; }
1755fi
1756ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1757ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1758ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1759
1760# Make sure we can run config.sub.
1761$ac_config_sub sun4 >/dev/null 2>&1 ||
1762  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1763echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1764   { (exit 1); exit 1; }; }
1765
1766echo "$as_me:$LINENO: checking build system type" >&5
1767echo $ECHO_N "checking build system type... $ECHO_C" >&6
1768if test "${ac_cv_build+set}" = set; then
1769  echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771  ac_cv_build_alias=$build_alias
1772test -z "$ac_cv_build_alias" &&
1773  ac_cv_build_alias=`$ac_config_guess`
1774test -z "$ac_cv_build_alias" &&
1775  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1776echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1777   { (exit 1); exit 1; }; }
1778ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1779  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1780echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1781   { (exit 1); exit 1; }; }
1782
1783fi
1784echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1785echo "${ECHO_T}$ac_cv_build" >&6
1786build=$ac_cv_build
1787build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1788build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1789build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1790
1791
1792
1793#turn off warnings and pedantic mode since they could make trouble on some platforms,
1794#and we couldn't fix them anyway
1795coin_skip_warn_cflags=yes
1796coin_skip_warn_fflags=yes
1797
1798# Check if user wants to produce debugging code
1799
1800echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1801echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1802
1803# Check whether --enable-debug or --disable-debug was given.
1804if test "${enable_debug+set}" = set; then
1805  enableval="$enable_debug"
1806  case "${enableval}" in
1807   yes) coin_debug_compile=true
1808        if test "${enable_shared+set}" = set; then :; else
1809          enable_shared=no
1810        fi
1811        ;;
1812   no)  coin_debug_compile=false
1813        ;;
1814   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1815echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1816   { (exit 1); exit 1; }; }
1817        ;;
1818esac
1819else
1820  coin_debug_compile=false
1821fi;
1822
1823# Check whether --enable-debug-mumps or --disable-debug-mumps was given.
1824if test "${enable_debug_mumps+set}" = set; then
1825  enableval="$enable_debug_mumps"
1826  case "${enableval}" in
1827    yes) coin_debug_compile=true
1828         ;;
1829    no)  coin_debug_compile=false
1830         ;;
1831    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5
1832echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;}
1833   { (exit 1); exit 1; }; }
1834         ;;
1835 esac
1836else
1837  :
1838fi;
1839
1840 # m4_ifvaln([Mumps],
1841
1842if test $coin_debug_compile = true; then
1843  echo "$as_me:$LINENO: result: yes" >&5
1844echo "${ECHO_T}yes" >&6
1845else
1846  echo "$as_me:$LINENO: result: no" >&5
1847echo "${ECHO_T}no" >&6
1848fi
1849
1850
1851# Check whether --with-mumps-verbosity or --without-mumps-verbosity was given.
1852if test "${with_mumps_verbosity+set}" = set; then
1853  withval="$with_mumps_verbosity"
1854  if test "$withval" = yes; then
1855                withval=1
1856              fi
1857              coin_mumps_verbosity=$withval
1858else
1859  coin_mumps_verbosity=0
1860fi;
1861
1862cat >>confdefs.h <<_ACEOF
1863#define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity
1864_ACEOF
1865
1866
1867
1868# Check whether --with-mumps-checklevel or --without-mumps-checklevel was given.
1869if test "${with_mumps_checklevel+set}" = set; then
1870  withval="$with_mumps_checklevel"
1871  if test "$withval" = yes; then
1872                withval=1
1873              fi
1874              coin_mumps_checklevel=$withval
1875else
1876  coin_mumps_checklevel=0
1877fi;
1878
1879cat >>confdefs.h <<_ACEOF
1880#define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel
1881_ACEOF
1882
1883
1884 # m4_ifvaln([Mumps],
1885
1886
1887
1888# Get the name of the C compiler
1889case $build in
1890  *-mingw*)
1891    if test "${LD+set}" = set; then :; else
1892      LD=link
1893    fi
1894    ;;
1895 esac
1896 case $enable_doscompile in
1897   msvc)
1898     if test "x${LD+set}" = xset; then :; else
1899       LD=link
1900     fi
1901     ;;
1902 esac
1903
1904
1905 # Check whether --enable-doscompile or --disable-doscompile was given.
1906if test "${enable_doscompile+set}" = set; then
1907  enableval="$enable_doscompile"
1908  if test "$enable_doscompile" != no; then
1909     case $build in
1910       *-cygwin* | *-mingw*) ;;
1911       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1912echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1913   { (exit 1); exit 1; }; } ;;
1914     esac
1915   fi
1916else
1917  enable_doscompile=no
1918fi;
1919 case "$enable_doscompile" in
1920   mingw)
1921     case $build in
1922       *-mingw*) enable_doscompile=no ;;
1923     esac
1924     ;;
1925   msvc|no) ;;
1926   yes) enable_doscompile=mingw ;;
1927   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1928                    Try configure --help=recursive." >&5
1929echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1930                    Try configure --help=recursive." >&2;}
1931   { (exit 1); exit 1; }; }
1932      ;;
1933  esac
1934  if test "$enable_doscompile" != no ; then
1935    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1936echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1937  fi
1938
1939
1940
1941
1942ac_ext=c
1943ac_cpp='$CPP $CPPFLAGS'
1944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947
1948
1949# For consistency, we set the C compiler to the same value of the C++
1950# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1951if test x"$CXX" != x; then
1952  case "$CXX" in
1953    clang* ) ;;
1954    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1955      if test x"$CC" = x; then
1956        CC="$CXX"
1957        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1958echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1959      fi
1960      ;;
1961  esac
1962fi
1963
1964
1965
1966
1967
1968
1969coin_has_cc=yes
1970
1971save_cflags="$CFLAGS"
1972
1973# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1974# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1975# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1976# compiler. In this case, put cc after gcc.
1977
1978case $build in
1979  *-cygwin* | *-mingw*)
1980             if test "$enable_doscompile" = msvc ; then
1981               comps="icl cl"
1982             else
1983               comps="gcc cl"
1984             fi ;;
1985  *-*-solaris*)
1986             # Extract the first word of "cc", so it can be a program name with args.
1987set dummy cc; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1991  echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
1993  if test -n "$sol_cc_compiler"; then
1994  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1995else
1996  ac_prog_rejected=no
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000  IFS=$as_save_IFS
2001  test -z "$as_dir" && as_dir=.
2002  for ac_exec_ext in '' $ac_executable_extensions; do
2003  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2005       ac_prog_rejected=yes
2006       continue
2007     fi
2008    ac_cv_prog_sol_cc_compiler="cc"
2009    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010    break 2
2011  fi
2012done
2013done
2014
2015if test $ac_prog_rejected = yes; then
2016  # We found a bogon in the path, so make sure we never use it.
2017  set dummy $ac_cv_prog_sol_cc_compiler
2018  shift
2019  if test $# != 0; then
2020    # We chose a different compiler from the bogus one.
2021    # However, it has the same basename, so the bogon will be chosen
2022    # first if we set sol_cc_compiler to just the basename; use the full file name.
2023    shift
2024    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2025  fi
2026fi
2027fi
2028fi
2029sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2030if test -n "$sol_cc_compiler"; then
2031  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2032echo "${ECHO_T}$sol_cc_compiler" >&6
2033else
2034  echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6
2036fi
2037
2038             if test "$sol_cc_compiler" = "cc" ; then
2039               comps="cc xlc gcc pgcc icc"
2040             else
2041               comps="xlc gcc pgcc icc cc"
2042             fi
2043             ;;
2044  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2045  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2046  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2047esac
2048
2049# We delete the cached value, since the test might not have been
2050# performed with our choice of compilers earlier
2051$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2052# AC_MSG_NOTICE([C compiler candidates: $comps])
2053ac_ext=c
2054ac_cpp='$CPP $CPPFLAGS'
2055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2057ac_compiler_gnu=$ac_cv_c_compiler_gnu
2058if test -n "$ac_tool_prefix"; then
2059  for ac_prog in $comps
2060  do
2061    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2063echo "$as_me:$LINENO: checking for $ac_word" >&5
2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065if test "${ac_cv_prog_CC+set}" = set; then
2066  echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068  if test -n "$CC"; then
2069  ac_cv_prog_CC="$CC" # Let the user override the test.
2070else
2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072for as_dir in $PATH
2073do
2074  IFS=$as_save_IFS
2075  test -z "$as_dir" && as_dir=.
2076  for ac_exec_ext in '' $ac_executable_extensions; do
2077  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2079    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080    break 2
2081  fi
2082done
2083done
2084
2085fi
2086fi
2087CC=$ac_cv_prog_CC
2088if test -n "$CC"; then
2089  echo "$as_me:$LINENO: result: $CC" >&5
2090echo "${ECHO_T}$CC" >&6
2091else
2092  echo "$as_me:$LINENO: result: no" >&5
2093echo "${ECHO_T}no" >&6
2094fi
2095
2096    test -n "$CC" && break
2097  done
2098fi
2099if test -z "$CC"; then
2100  ac_ct_CC=$CC
2101  for ac_prog in $comps
2102do
2103  # Extract the first word of "$ac_prog", so it can be a program name with args.
2104set dummy $ac_prog; ac_word=$2
2105echo "$as_me:$LINENO: checking for $ac_word" >&5
2106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2108  echo $ECHO_N "(cached) $ECHO_C" >&6
2109else
2110  if test -n "$ac_ct_CC"; then
2111  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2112else
2113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114for as_dir in $PATH
2115do
2116  IFS=$as_save_IFS
2117  test -z "$as_dir" && as_dir=.
2118  for ac_exec_ext in '' $ac_executable_extensions; do
2119  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2120    ac_cv_prog_ac_ct_CC="$ac_prog"
2121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122    break 2
2123  fi
2124done
2125done
2126
2127fi
2128fi
2129ac_ct_CC=$ac_cv_prog_ac_ct_CC
2130if test -n "$ac_ct_CC"; then
2131  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2132echo "${ECHO_T}$ac_ct_CC" >&6
2133else
2134  echo "$as_me:$LINENO: result: no" >&5
2135echo "${ECHO_T}no" >&6
2136fi
2137
2138  test -n "$ac_ct_CC" && break
2139done
2140
2141  CC=$ac_ct_CC
2142fi
2143
2144
2145test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146See \`config.log' for more details." >&5
2147echo "$as_me: error: no acceptable C compiler found in \$PATH
2148See \`config.log' for more details." >&2;}
2149   { (exit 1); exit 1; }; }
2150
2151# Provide some information about the compiler.
2152echo "$as_me:$LINENO:" \
2153     "checking for C compiler version" >&5
2154ac_compiler=`set X $ac_compile; echo $2`
2155{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2156  (eval $ac_compiler --version </dev/null >&5) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }
2160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2161  (eval $ac_compiler -v </dev/null >&5) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }
2165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2166  (eval $ac_compiler -V </dev/null >&5) 2>&5
2167  ac_status=$?
2168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169  (exit $ac_status); }
2170
2171cat >conftest.$ac_ext <<_ACEOF
2172/* confdefs.h.  */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h.  */
2177
2178int
2179main ()
2180{
2181
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186ac_clean_files_save=$ac_clean_files
2187ac_clean_files="$ac_clean_files a.out a.exe b.out"
2188# Try to create an executable without -o first, disregard a.out.
2189# It will help us diagnose broken compilers, and finding out an intuition
2190# of exeext.
2191echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2192echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2193ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2194if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2195  (eval $ac_link_default) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }; then
2199  # Find the output, starting from the most likely.  This scheme is
2200# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2201# resort.
2202
2203# Be careful to initialize this variable, since it used to be cached.
2204# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2205ac_cv_exeext=
2206# b.out is created by i960 compilers.
2207for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2208do
2209  test -f "$ac_file" || continue
2210  case $ac_file in
2211    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2212        ;;
2213    conftest.$ac_ext )
2214        # This is the source file.
2215        ;;
2216    [ab].out )
2217        # We found the default executable, but exeext='' is most
2218        # certainly right.
2219        break;;
2220    *.* )
2221        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222        # FIXME: I believe we export ac_cv_exeext for Libtool,
2223        # but it would be cool to find out if it's true.  Does anybody
2224        # maintain Libtool? --akim.
2225        export ac_cv_exeext
2226        break;;
2227    * )
2228        break;;
2229  esac
2230done
2231else
2232  echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: C compiler cannot create executables
2238See \`config.log' for more details." >&2;}
2239   { (exit 77); exit 77; }; }
2240fi
2241
2242ac_exeext=$ac_cv_exeext
2243echo "$as_me:$LINENO: result: $ac_file" >&5
2244echo "${ECHO_T}$ac_file" >&6
2245
2246# Check the compiler produces executables we can run.  If not, either
2247# the compiler is broken, or we cross compile.
2248echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2250# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251# If not cross compiling, check that we can run a simple program.
2252if test "$cross_compiling" != yes; then
2253  if { ac_try='./$ac_file'
2254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255  (eval $ac_try) 2>&5
2256  ac_status=$?
2257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258  (exit $ac_status); }; }; then
2259    cross_compiling=no
2260  else
2261    if test "$cross_compiling" = maybe; then
2262        cross_compiling=yes
2263    else
2264        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265If you meant to cross compile, use \`--host'.
2266See \`config.log' for more details." >&5
2267echo "$as_me: error: cannot run C compiled programs.
2268If you meant to cross compile, use \`--host'.
2269See \`config.log' for more details." >&2;}
2270   { (exit 1); exit 1; }; }
2271    fi
2272  fi
2273fi
2274echo "$as_me:$LINENO: result: yes" >&5
2275echo "${ECHO_T}yes" >&6
2276
2277rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278ac_clean_files=$ac_clean_files_save
2279# Check the compiler produces executables we can run.  If not, either
2280# the compiler is broken, or we cross compile.
2281echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2283echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284echo "${ECHO_T}$cross_compiling" >&6
2285
2286echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2289  (eval $ac_link) 2>&5
2290  ac_status=$?
2291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292  (exit $ac_status); }; then
2293  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2294# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2295# work properly (i.e., refer to `conftest.exe'), while it won't with
2296# `rm'.
2297for ac_file in conftest.exe conftest conftest.*; do
2298  test -f "$ac_file" || continue
2299  case $ac_file in
2300    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2301    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302          export ac_cv_exeext
2303          break;;
2304    * ) break;;
2305  esac
2306done
2307else
2308  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2309See \`config.log' for more details." >&5
2310echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2311See \`config.log' for more details." >&2;}
2312   { (exit 1); exit 1; }; }
2313fi
2314
2315rm -f conftest$ac_cv_exeext
2316echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2317echo "${ECHO_T}$ac_cv_exeext" >&6
2318
2319rm -f conftest.$ac_ext
2320EXEEXT=$ac_cv_exeext
2321ac_exeext=$EXEEXT
2322echo "$as_me:$LINENO: checking for suffix of object files" >&5
2323echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2324if test "${ac_cv_objext+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327  cat >conftest.$ac_ext <<_ACEOF
2328/* confdefs.h.  */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h.  */
2333
2334int
2335main ()
2336{
2337
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342rm -f conftest.o conftest.obj
2343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344  (eval $ac_compile) 2>&5
2345  ac_status=$?
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); }; then
2348  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2349  case $ac_file in
2350    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2351    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352       break;;
2353  esac
2354done
2355else
2356  echo "$as_me: failed program was:" >&5
2357sed 's/^/| /' conftest.$ac_ext >&5
2358
2359{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360See \`config.log' for more details." >&5
2361echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362See \`config.log' for more details." >&2;}
2363   { (exit 1); exit 1; }; }
2364fi
2365
2366rm -f conftest.$ac_cv_objext conftest.$ac_ext
2367fi
2368echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369echo "${ECHO_T}$ac_cv_objext" >&6
2370OBJEXT=$ac_cv_objext
2371ac_objext=$OBJEXT
2372echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2374if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375  echo $ECHO_N "(cached) $ECHO_C" >&6
2376else
2377  cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h.  */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h.  */
2383
2384int
2385main ()
2386{
2387#ifndef __GNUC__
2388       choke me
2389#endif
2390
2391  ;
2392  return 0;
2393}
2394_ACEOF
2395rm -f conftest.$ac_objext
2396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397  (eval $ac_compile) 2>conftest.er1
2398  ac_status=$?
2399  grep -v '^ *+' conftest.er1 >conftest.err
2400  rm -f conftest.er1
2401  cat conftest.err >&5
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); } &&
2404         { ac_try='test -z "$ac_c_werror_flag"
2405                         || test ! -s conftest.err'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; } &&
2411         { ac_try='test -s conftest.$ac_objext'
2412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413  (eval $ac_try) 2>&5
2414  ac_status=$?
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); }; }; then
2417  ac_compiler_gnu=yes
2418else
2419  echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5
2421
2422ac_compiler_gnu=no
2423fi
2424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427fi
2428echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2430GCC=`test $ac_compiler_gnu = yes && echo yes`
2431ac_test_CFLAGS=${CFLAGS+set}
2432ac_save_CFLAGS=$CFLAGS
2433CFLAGS="-g"
2434echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2436if test "${ac_cv_prog_cc_g+set}" = set; then
2437  echo $ECHO_N "(cached) $ECHO_C" >&6
2438else
2439  cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h.  */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h.  */
2445
2446int
2447main ()
2448{
2449
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456  (eval $ac_compile) 2>conftest.er1
2457  ac_status=$?
2458  grep -v '^ *+' conftest.er1 >conftest.err
2459  rm -f conftest.er1
2460  cat conftest.err >&5
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); } &&
2463         { ac_try='test -z "$ac_c_werror_flag"
2464                         || test ! -s conftest.err'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; } &&
2470         { ac_try='test -s conftest.$ac_objext'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; }; then
2476  ac_cv_prog_cc_g=yes
2477else
2478  echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481ac_cv_prog_cc_g=no
2482fi
2483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484fi
2485echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2486echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2487if test "$ac_test_CFLAGS" = set; then
2488  CFLAGS=$ac_save_CFLAGS
2489elif test $ac_cv_prog_cc_g = yes; then
2490  if test "$GCC" = yes; then
2491    CFLAGS="-g -O2"
2492  else
2493    CFLAGS="-g"
2494  fi
2495else
2496  if test "$GCC" = yes; then
2497    CFLAGS="-O2"
2498  else
2499    CFLAGS=
2500  fi
2501fi
2502echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2503echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2504if test "${ac_cv_prog_cc_stdc+set}" = set; then
2505  echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507  ac_cv_prog_cc_stdc=no
2508ac_save_CC=$CC
2509cat >conftest.$ac_ext <<_ACEOF
2510/* confdefs.h.  */
2511_ACEOF
2512cat confdefs.h >>conftest.$ac_ext
2513cat >>conftest.$ac_ext <<_ACEOF
2514/* end confdefs.h.  */
2515#include <stdarg.h>
2516#include <stdio.h>
2517#include <sys/types.h>
2518#include <sys/stat.h>
2519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2520struct buf { int x; };
2521FILE * (*rcsopen) (struct buf *, struct stat *, int);
2522static char *e (p, i)
2523     char **p;
2524     int i;
2525{
2526  return p[i];
2527}
2528static char *f (char * (*g) (char **, int), char **p, ...)
2529{
2530  char *s;
2531  va_list v;
2532  va_start (v,p);
2533  s = g (p, va_arg (v,int));
2534  va_end (v);
2535  return s;
2536}
2537
2538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2539   function prototypes and stuff, but not '\xHH' hex character constants.
2540   These don't provoke an error unfortunately, instead are silently treated
2541   as 'x'.  The following induces an error, until -std1 is added to get
2542   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2543   array size at least.  It's necessary to write '\x00'==0 to get something
2544   that's true only with -std1.  */
2545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2546
2547int test (int i, double x);
2548struct s1 {int (*f) (int a);};
2549struct s2 {int (*f) (double a);};
2550int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2551int argc;
2552char **argv;
2553int
2554main ()
2555{
2556return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2557  ;
2558  return 0;
2559}
2560_ACEOF
2561# Don't try gcc -ansi; that turns off useful extensions and
2562# breaks some systems' header files.
2563# AIX                   -qlanglvl=ansi
2564# Ultrix and OSF/1      -std1
2565# HP-UX 10.20 and later -Ae
2566# HP-UX older versions  -Aa -D_HPUX_SOURCE
2567# SVR4                  -Xc -D__EXTENSIONS__
2568for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2569do
2570  CC="$ac_save_CC $ac_arg"
2571  rm -f conftest.$ac_objext
2572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573  (eval $ac_compile) 2>conftest.er1
2574  ac_status=$?
2575  grep -v '^ *+' conftest.er1 >conftest.err
2576  rm -f conftest.er1
2577  cat conftest.err >&5
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); } &&
2580         { ac_try='test -z "$ac_c_werror_flag"
2581                         || test ! -s conftest.err'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; } &&
2587         { ac_try='test -s conftest.$ac_objext'
2588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589  (eval $ac_try) 2>&5
2590  ac_status=$?
2591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592  (exit $ac_status); }; }; then
2593  ac_cv_prog_cc_stdc=$ac_arg
2594break
2595else
2596  echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599fi
2600rm -f conftest.err conftest.$ac_objext
2601done
2602rm -f conftest.$ac_ext conftest.$ac_objext
2603CC=$ac_save_CC
2604
2605fi
2606
2607case "x$ac_cv_prog_cc_stdc" in
2608  x|xno)
2609    echo "$as_me:$LINENO: result: none needed" >&5
2610echo "${ECHO_T}none needed" >&6 ;;
2611  *)
2612    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2613echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2614    CC="$CC $ac_cv_prog_cc_stdc" ;;
2615esac
2616
2617# Some people use a C++ compiler to compile C.  Since we use `exit',
2618# in C++ we need to declare it.  In case someone uses the same compiler
2619# for both compiling C and C++ we need to have the C++ compiler decide
2620# the declaration of exit, since it's the most demanding environment.
2621cat >conftest.$ac_ext <<_ACEOF
2622#ifndef __cplusplus
2623  choke me
2624#endif
2625_ACEOF
2626rm -f conftest.$ac_objext
2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628  (eval $ac_compile) 2>conftest.er1
2629  ac_status=$?
2630  grep -v '^ *+' conftest.er1 >conftest.err
2631  rm -f conftest.er1
2632  cat conftest.err >&5
2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634  (exit $ac_status); } &&
2635         { ac_try='test -z "$ac_c_werror_flag"
2636                         || test ! -s conftest.err'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; } &&
2642         { ac_try='test -s conftest.$ac_objext'
2643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644  (eval $ac_try) 2>&5
2645  ac_status=$?
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); }; }; then
2648  for ac_declaration in \
2649   '' \
2650   'extern "C" void std::exit (int) throw (); using std::exit;' \
2651   'extern "C" void std::exit (int); using std::exit;' \
2652   'extern "C" void exit (int) throw ();' \
2653   'extern "C" void exit (int);' \
2654   'void exit (int);'
2655do
2656  cat >conftest.$ac_ext <<_ACEOF
2657/* confdefs.h.  */
2658_ACEOF
2659cat confdefs.h >>conftest.$ac_ext
2660cat >>conftest.$ac_ext <<_ACEOF
2661/* end confdefs.h.  */
2662$ac_declaration
2663#include <stdlib.h>
2664int
2665main ()
2666{
2667exit (42);
2668  ;
2669  return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext
2673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674  (eval $ac_compile) 2>conftest.er1
2675  ac_status=$?
2676  grep -v '^ *+' conftest.er1 >conftest.err
2677  rm -f conftest.er1
2678  cat conftest.err >&5
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); } &&
2681         { ac_try='test -z "$ac_c_werror_flag"
2682                         || test ! -s conftest.err'
2683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684  (eval $ac_try) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }; } &&
2688         { ac_try='test -s conftest.$ac_objext'
2689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690  (eval $ac_try) 2>&5
2691  ac_status=$?
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); }; }; then
2694  :
2695else
2696  echo "$as_me: failed program was:" >&5
2697sed 's/^/| /' conftest.$ac_ext >&5
2698
2699continue
2700fi
2701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702  cat >conftest.$ac_ext <<_ACEOF
2703/* confdefs.h.  */
2704_ACEOF
2705cat confdefs.h >>conftest.$ac_ext
2706cat >>conftest.$ac_ext <<_ACEOF
2707/* end confdefs.h.  */
2708$ac_declaration
2709int
2710main ()
2711{
2712exit (42);
2713  ;
2714  return 0;
2715}
2716_ACEOF
2717rm -f conftest.$ac_objext
2718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719  (eval $ac_compile) 2>conftest.er1
2720  ac_status=$?
2721  grep -v '^ *+' conftest.er1 >conftest.err
2722  rm -f conftest.er1
2723  cat conftest.err >&5
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); } &&
2726         { ac_try='test -z "$ac_c_werror_flag"
2727                         || test ! -s conftest.err'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; } &&
2733         { ac_try='test -s conftest.$ac_objext'
2734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735  (eval $ac_try) 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }; }; then
2739  break
2740else
2741  echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744fi
2745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746done
2747rm -f conftest*
2748if test -n "$ac_declaration"; then
2749  echo '#ifdef __cplusplus' >>confdefs.h
2750  echo $ac_declaration      >>confdefs.h
2751  echo '#endif'             >>confdefs.h
2752fi
2753
2754else
2755  echo "$as_me: failed program was:" >&5
2756sed 's/^/| /' conftest.$ac_ext >&5
2757
2758fi
2759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760ac_ext=c
2761ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766if test -z "$CC" ; then
2767  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2768echo "$as_me: error: Failed to find a C compiler!" >&2;}
2769   { (exit 1); exit 1; }; }
2770fi
2771# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2772case "$CC" in
2773  clang* ) ;;
2774  cl* | */cl* | CL* | */CL* )
2775    if test "$ac_cv_prog_cc_g" = yes ; then
2776      ac_cv_prog_cc_g=no
2777      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2778echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2779    fi ;;
2780esac
2781CFLAGS="$save_cflags"
2782
2783# add automake conditional so we can recognize cl compiler in makefile
2784coin_cc_is_cl=false
2785case "$CC" in
2786  clang* ) ;;
2787  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2788    coin_cc_is_cl=true
2789    ;;
2790esac
2791
2792
2793if test $coin_cc_is_cl = true; then
2794  COIN_CC_IS_CL_TRUE=
2795  COIN_CC_IS_CL_FALSE='#'
2796else
2797  COIN_CC_IS_CL_TRUE='#'
2798  COIN_CC_IS_CL_FALSE=
2799fi
2800
2801
2802# Check if a project specific CFLAGS variable has been set
2803if test x$COIN_PRJCT != x; then
2804  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2805  if test x$coin_tmp = xset; then
2806    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2807  fi
2808fi
2809
2810if test x"$CFLAGS" = x; then
2811
2812  coin_add_cflags=
2813  coin_opt_cflags=
2814  coin_dbg_cflags=
2815  coin_warn_cflags=
2816
2817  if test "$GCC" = "yes"; then
2818    case "$CC" in
2819      icc* | */icc*)
2820        ;;
2821      *)
2822        coin_opt_cflags="-O3"
2823        coin_add_cflags="-pipe"
2824        coin_dbg_cflags="-g -O0"
2825        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2826        case $build in
2827          *-darwin*)
2828            ;;
2829          *)
2830            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2831            ;;
2832        esac
2833        case $enable_doscompile in
2834          mingw)
2835            CFLAGS="-mno-cygwin"
2836            cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h.  */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h.  */
2842
2843int
2844main ()
2845{
2846int i=0; i++;
2847  ;
2848  return 0;
2849}
2850_ACEOF
2851rm -f conftest.$ac_objext conftest$ac_exeext
2852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2853  (eval $ac_link) 2>conftest.er1
2854  ac_status=$?
2855  grep -v '^ *+' conftest.er1 >conftest.err
2856  rm -f conftest.er1
2857  cat conftest.err >&5
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); } &&
2860         { ac_try='test -z "$ac_c_werror_flag"
2861                         || test ! -s conftest.err'
2862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863  (eval $ac_try) 2>&5
2864  ac_status=$?
2865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866  (exit $ac_status); }; } &&
2867         { ac_try='test -s conftest$ac_exeext'
2868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869  (eval $ac_try) 2>&5
2870  ac_status=$?
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); }; }; then
2873  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2874else
2875  echo "$as_me: failed program was:" >&5
2876sed 's/^/| /' conftest.$ac_ext >&5
2877
2878fi
2879rm -f conftest.err conftest.$ac_objext \
2880      conftest$ac_exeext conftest.$ac_ext
2881            CFLAGS=
2882          ;;
2883        esac
2884    esac
2885  fi
2886  if test -z "$coin_opt_cflags"; then
2887    case $build in
2888      *-cygwin* | *-mingw*)
2889        case "$CC" in
2890          clang* ) ;;
2891          cl* | */cl* | CL* | */CL*)
2892            coin_opt_cflags='-MT -O2'
2893            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2894            coin_dbg_cflags='-MTd'
2895            ;;
2896          icl* | */icl* | ICL* | */ICL*)
2897            coin_opt_cflags='-MT -Ox'
2898            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2899            coin_dbg_cflags='-MTd -debug'
2900            ;;
2901        esac
2902        ;;
2903      *-linux-*)
2904        case "$CC" in
2905          icc* | */icc*)
2906            coin_opt_cflags="-O3 -ip -mp1"
2907            coin_add_cflags=""
2908            coin_dbg_cflags="-g"
2909            # Check if -i_dynamic is necessary (for new glibc library)
2910            CFLAGS=
2911            cat >conftest.$ac_ext <<_ACEOF
2912/* confdefs.h.  */
2913_ACEOF
2914cat confdefs.h >>conftest.$ac_ext
2915cat >>conftest.$ac_ext <<_ACEOF
2916/* end confdefs.h.  */
2917
2918int
2919main ()
2920{
2921int i=0; i++;
2922  ;
2923  return 0;
2924}
2925_ACEOF
2926rm -f conftest.$ac_objext conftest$ac_exeext
2927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928  (eval $ac_link) 2>conftest.er1
2929  ac_status=$?
2930  grep -v '^ *+' conftest.er1 >conftest.err
2931  rm -f conftest.er1
2932  cat conftest.err >&5
2933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934  (exit $ac_status); } &&
2935         { ac_try='test -z "$ac_c_werror_flag"
2936                         || test ! -s conftest.err'
2937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938  (eval $ac_try) 2>&5
2939  ac_status=$?
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); }; } &&
2942         { ac_try='test -s conftest$ac_exeext'
2943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944  (eval $ac_try) 2>&5
2945  ac_status=$?
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); }; }; then
2948  :
2949else
2950  echo "$as_me: failed program was:" >&5
2951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953coin_add_cflags="-i_dynamic $coin_add_cflags"
2954fi
2955rm -f conftest.err conftest.$ac_objext \
2956      conftest$ac_exeext conftest.$ac_ext
2957            ;;
2958          pgcc* | */pgcc*)
2959            coin_opt_cflags="-fast"
2960            coin_add_cflags="-Kieee -pc 64"
2961            coin_dbg_cflags="-g"
2962            ;;
2963        esac
2964        ;;
2965      *-ibm-*)
2966        case "$CC" in
2967          xlc* | */xlc* | mpxlc* | */mpxlc*)
2968            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2969            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2970            coin_dbg_cflags="-g"
2971          ;;
2972        esac
2973        ;;
2974      *-hp-*)
2975        coin_opt_cflags="-O"
2976        coin_add_cflags="-Ae"
2977        coin_dbg_cflags="-g"
2978        ;;
2979      *-*-solaris*)
2980        coin_opt_cflags="-xO4"
2981        coin_dbg_cflags="-g"
2982        ;;
2983      *-sgi-*)
2984        coin_opt_cflags="-O -OPT:Olimit=0"
2985        coin_dbg_cflags="-g"
2986        ;;
2987    esac
2988  fi
2989
2990  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2991    coin_dbg_cflags="-g"
2992  fi
2993
2994  if test -z "$coin_opt_cflags"; then
2995    # Try if -O option works if nothing else is set
2996    CFLAGS="-O"
2997    cat >conftest.$ac_ext <<_ACEOF
2998/* confdefs.h.  */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h.  */
3003
3004int
3005main ()
3006{
3007int i=0; i++;
3008  ;
3009  return 0;
3010}
3011_ACEOF
3012rm -f conftest.$ac_objext conftest$ac_exeext
3013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3014  (eval $ac_link) 2>conftest.er1
3015  ac_status=$?
3016  grep -v '^ *+' conftest.er1 >conftest.err
3017  rm -f conftest.er1
3018  cat conftest.err >&5
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); } &&
3021         { ac_try='test -z "$ac_c_werror_flag"
3022                         || test ! -s conftest.err'
3023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024  (eval $ac_try) 2>&5
3025  ac_status=$?
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); }; } &&
3028         { ac_try='test -s conftest$ac_exeext'
3029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030  (eval $ac_try) 2>&5
3031  ac_status=$?
3032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033  (exit $ac_status); }; }; then
3034  coin_opt_cflags="-O"
3035else
3036  echo "$as_me: failed program was:" >&5
3037sed 's/^/| /' conftest.$ac_ext >&5
3038
3039fi
3040rm -f conftest.err conftest.$ac_objext \
3041      conftest$ac_exeext conftest.$ac_ext
3042  fi
3043
3044  # if PM doesn't want the warning messages, take them out
3045  if test x"$coin_skip_warn_cflags" = xyes; then
3046    coin_warn_cflags=
3047  fi
3048
3049  if test x${DBG_CFLAGS+set} != xset; then
3050    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3051  fi
3052  if test x${OPT_CFLAGS+set} != xset; then
3053    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3054  fi
3055
3056  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3057  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3058
3059  if test "$coin_debug_compile" = "true"; then
3060    CFLAGS="$DBG_CFLAGS"
3061  else
3062    CFLAGS="$OPT_CFLAGS"
3063  fi
3064else
3065  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3066  if test x${DBG_CFLAGS+set} != xset; then
3067    DBG_CFLAGS="$CFLAGS"
3068  fi
3069  if test x${OPT_CFLAGS+set} != xset; then
3070    OPT_CFLAGS="$CFLAGS"
3071  fi
3072fi
3073
3074# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3075
3076case "$CFLAGS" in
3077  *-mno-cygwin*)
3078    if test x${CPPFLAGS+set} != xset ; then
3079      CPPFLAGS="-mno-cygwin"
3080    else
3081      case "$CPPFLAGS" in
3082        *-mno-cygwin*)
3083          ;;
3084        *)
3085          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3086          ;;
3087      esac
3088    fi ;;
3089esac
3090
3091# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3092if test x$COIN_PRJCT != x; then
3093  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3094fi
3095
3096# Try if CFLAGS works
3097save_CFLAGS="$CFLAGS"
3098cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h.  */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h.  */
3104
3105int
3106main ()
3107{
3108int i=0; i++;
3109  ;
3110  return 0;
3111}
3112_ACEOF
3113rm -f conftest.$ac_objext conftest$ac_exeext
3114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3115  (eval $ac_link) 2>conftest.er1
3116  ac_status=$?
3117  grep -v '^ *+' conftest.er1 >conftest.err
3118  rm -f conftest.er1
3119  cat conftest.err >&5
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); } &&
3122         { ac_try='test -z "$ac_c_werror_flag"
3123                         || test ! -s conftest.err'
3124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125  (eval $ac_try) 2>&5
3126  ac_status=$?
3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); }; } &&
3129         { ac_try='test -s conftest$ac_exeext'
3130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131  (eval $ac_try) 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }; }; then
3135  :
3136else
3137  echo "$as_me: failed program was:" >&5
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
3140CFLAGS=
3141fi
3142rm -f conftest.err conftest.$ac_objext \
3143      conftest$ac_exeext conftest.$ac_ext
3144if test -z "$CFLAGS"; then
3145  { 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
3146echo "$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;}
3147  CFLAGS='-O'
3148  cat >conftest.$ac_ext <<_ACEOF
3149/* confdefs.h.  */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
3153/* end confdefs.h.  */
3154
3155int
3156main ()
3157{
3158int i=0; i++;
3159  ;
3160  return 0;
3161}
3162_ACEOF
3163rm -f conftest.$ac_objext conftest$ac_exeext
3164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3165  (eval $ac_link) 2>conftest.er1
3166  ac_status=$?
3167  grep -v '^ *+' conftest.er1 >conftest.err
3168  rm -f conftest.er1
3169  cat conftest.err >&5
3170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171  (exit $ac_status); } &&
3172         { ac_try='test -z "$ac_c_werror_flag"
3173                         || test ! -s conftest.err'
3174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175  (eval $ac_try) 2>&5
3176  ac_status=$?
3177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178  (exit $ac_status); }; } &&
3179         { ac_try='test -s conftest$ac_exeext'
3180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181  (eval $ac_try) 2>&5
3182  ac_status=$?
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); }; }; then
3185  :
3186else
3187  echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
3190CFLAGS=
3191fi
3192rm -f conftest.err conftest.$ac_objext \
3193      conftest$ac_exeext conftest.$ac_ext
3194  if test -z "$CFLAGS"; then
3195    { 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
3196echo "$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;}
3197  fi
3198fi
3199
3200{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3201echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3202
3203
3204if test x"$MPICC" = x; then :; else
3205  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3206echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3207  CC="$MPICC"
3208fi
3209
3210# Correct the LD variable if we are using the MS or Intel-windows compiler
3211case "$CC" in
3212  clang* ) ;;
3213  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3214    case $build in
3215  *-mingw*)
3216    if test "${LD+set}" = set; then :; else
3217      LD=link
3218    fi
3219    ;;
3220 esac
3221 case $enable_doscompile in
3222   msvc)
3223     if test "x${LD+set}" = xset; then :; else
3224       LD=link
3225     fi
3226     ;;
3227 esac
3228
3229    ;;
3230esac
3231
3232ac_ext=c
3233ac_cpp='$CPP $CPPFLAGS'
3234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237
3238
3239
3240# Get the name of the Fortran compiler and appropriate compiler options
3241case $build in
3242  *-cygwin* | *-mingw*)
3243     if test "$enable_doscompile" = msvc ; then
3244       coin_f77_comps="ifort fl32 compile_f2c"
3245     else
3246       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3247     fi ;;
3248  *-*-solaris*)
3249     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3250  *-linux-gnu*)
3251     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3252  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3253 esac
3254
3255
3256
3257
3258
3259
3260ac_ext=f
3261ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3262ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3264
3265
3266
3267
3268
3269
3270coin_has_f77=yes
3271
3272save_fflags="$FFLAGS"
3273
3274# We delete the cached value, since the test might not have been
3275# performed with our choice of compilers earlier
3276$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3277
3278# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3279# coin_f77_comps to see if there's a program that matches one of the names.
3280# If there's no such program, F77 = unavailable. If we match the name,
3281# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3282# compiler.
3283# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3284
3285
3286{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3287echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3288if test -n "$ac_tool_prefix"; then
3289  for ac_prog in $coin_f77_comps
3290  do
3291    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3293echo "$as_me:$LINENO: checking for $ac_word" >&5
3294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3295if test "${ac_cv_prog_F77+set}" = set; then
3296  echo $ECHO_N "(cached) $ECHO_C" >&6
3297else
3298  if test -n "$F77"; then
3299  ac_cv_prog_F77="$F77" # Let the user override the test.
3300else
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304  IFS=$as_save_IFS
3305  test -z "$as_dir" && as_dir=.
3306  for ac_exec_ext in '' $ac_executable_extensions; do
3307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310    break 2
3311  fi
3312done
3313done
3314
3315fi
3316fi
3317F77=$ac_cv_prog_F77
3318if test -n "$F77"; then
3319  echo "$as_me:$LINENO: result: $F77" >&5
3320echo "${ECHO_T}$F77" >&6
3321else
3322  echo "$as_me:$LINENO: result: no" >&5
3323echo "${ECHO_T}no" >&6
3324fi
3325
3326    test -n "$F77" && break
3327  done
3328fi
3329if test -z "$F77"; then
3330  ac_ct_F77=$F77
3331  for ac_prog in $coin_f77_comps
3332do
3333  # Extract the first word of "$ac_prog", so it can be a program name with args.
3334set dummy $ac_prog; ac_word=$2
3335echo "$as_me:$LINENO: checking for $ac_word" >&5
3336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3337if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3338  echo $ECHO_N "(cached) $ECHO_C" >&6
3339else
3340  if test -n "$ac_ct_F77"; then
3341  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346  IFS=$as_save_IFS
3347  test -z "$as_dir" && as_dir=.
3348  for ac_exec_ext in '' $ac_executable_extensions; do
3349  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350    ac_cv_prog_ac_ct_F77="$ac_prog"
3351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352    break 2
3353  fi
3354done
3355done
3356
3357fi
3358fi
3359ac_ct_F77=$ac_cv_prog_ac_ct_F77
3360if test -n "$ac_ct_F77"; then
3361  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3362echo "${ECHO_T}$ac_ct_F77" >&6
3363else
3364  echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
3366fi
3367
3368  test -n "$ac_ct_F77" && break
3369done
3370test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3371
3372  F77=$ac_ct_F77
3373fi
3374
3375
3376if test "$F77" != "unavailable" ; then
3377  ac_ext=f
3378ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3379ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3381if test -n "$ac_tool_prefix"; then
3382  for ac_prog in $coin_f77_comps
3383  do
3384    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3385set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3386echo "$as_me:$LINENO: checking for $ac_word" >&5
3387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388if test "${ac_cv_prog_F77+set}" = set; then
3389  echo $ECHO_N "(cached) $ECHO_C" >&6
3390else
3391  if test -n "$F77"; then
3392  ac_cv_prog_F77="$F77" # Let the user override the test.
3393else
3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395for as_dir in $PATH
3396do
3397  IFS=$as_save_IFS
3398  test -z "$as_dir" && as_dir=.
3399  for ac_exec_ext in '' $ac_executable_extensions; do
3400  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403    break 2
3404  fi
3405done
3406done
3407
3408fi
3409fi
3410F77=$ac_cv_prog_F77
3411if test -n "$F77"; then
3412  echo "$as_me:$LINENO: result: $F77" >&5
3413echo "${ECHO_T}$F77" >&6
3414else
3415  echo "$as_me:$LINENO: result: no" >&5
3416echo "${ECHO_T}no" >&6
3417fi
3418
3419    test -n "$F77" && break
3420  done
3421fi
3422if test -z "$F77"; then
3423  ac_ct_F77=$F77
3424  for ac_prog in $coin_f77_comps
3425do
3426  # Extract the first word of "$ac_prog", so it can be a program name with args.
3427set dummy $ac_prog; ac_word=$2
3428echo "$as_me:$LINENO: checking for $ac_word" >&5
3429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3430if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3431  echo $ECHO_N "(cached) $ECHO_C" >&6
3432else
3433  if test -n "$ac_ct_F77"; then
3434  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3435else
3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439  IFS=$as_save_IFS
3440  test -z "$as_dir" && as_dir=.
3441  for ac_exec_ext in '' $ac_executable_extensions; do
3442  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443    ac_cv_prog_ac_ct_F77="$ac_prog"
3444    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445    break 2
3446  fi
3447done
3448done
3449
3450fi
3451fi
3452ac_ct_F77=$ac_cv_prog_ac_ct_F77
3453if test -n "$ac_ct_F77"; then
3454  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3455echo "${ECHO_T}$ac_ct_F77" >&6
3456else
3457  echo "$as_me:$LINENO: result: no" >&5
3458echo "${ECHO_T}no" >&6
3459fi
3460
3461  test -n "$ac_ct_F77" && break
3462done
3463
3464  F77=$ac_ct_F77
3465fi
3466
3467
3468# Provide some information about the compiler.
3469echo "$as_me:3469:" \
3470     "checking for Fortran 77 compiler version" >&5
3471ac_compiler=`set X $ac_compile; echo $2`
3472{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3473  (eval $ac_compiler --version </dev/null >&5) 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }
3477{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3478  (eval $ac_compiler -v </dev/null >&5) 2>&5
3479  ac_status=$?
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); }
3482{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3483  (eval $ac_compiler -V </dev/null >&5) 2>&5
3484  ac_status=$?
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); }
3487rm -f a.out
3488
3489# If we don't use `.F' as extension, the preprocessor is not run on the
3490# input file.  (Note that this only needs to work for GNU compilers.)
3491ac_save_ext=$ac_ext
3492ac_ext=F
3493echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3494echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3495if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3496  echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498  cat >conftest.$ac_ext <<_ACEOF
3499      program main
3500#ifndef __GNUC__
3501       choke me
3502#endif
3503
3504      end
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508  (eval $ac_compile) 2>conftest.er1
3509  ac_status=$?
3510  grep -v '^ *+' conftest.er1 >conftest.err
3511  rm -f conftest.er1
3512  cat conftest.err >&5
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); } &&
3515         { ac_try='test -z "$ac_f77_werror_flag"
3516                         || test ! -s conftest.err'
3517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518  (eval $ac_try) 2>&5
3519  ac_status=$?
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); }; } &&
3522         { ac_try='test -s conftest.$ac_objext'
3523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524  (eval $ac_try) 2>&5
3525  ac_status=$?
3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); }; }; then
3528  ac_compiler_gnu=yes
3529else
3530  echo "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
3533ac_compiler_gnu=no
3534fi
3535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3537
3538fi
3539echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3540echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3541ac_ext=$ac_save_ext
3542ac_test_FFLAGS=${FFLAGS+set}
3543ac_save_FFLAGS=$FFLAGS
3544FFLAGS=
3545echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3546echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3547if test "${ac_cv_prog_f77_g+set}" = set; then
3548  echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550  FFLAGS=-g
3551cat >conftest.$ac_ext <<_ACEOF
3552      program main
3553
3554      end
3555_ACEOF
3556rm -f conftest.$ac_objext
3557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558  (eval $ac_compile) 2>conftest.er1
3559  ac_status=$?
3560  grep -v '^ *+' conftest.er1 >conftest.err
3561  rm -f conftest.er1
3562  cat conftest.err >&5
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); } &&
3565         { ac_try='test -z "$ac_f77_werror_flag"
3566                         || test ! -s conftest.err'
3567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568  (eval $ac_try) 2>&5
3569  ac_status=$?
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); }; } &&
3572         { ac_try='test -s conftest.$ac_objext'
3573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574  (eval $ac_try) 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); }; }; then
3578  ac_cv_prog_f77_g=yes
3579else
3580  echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583ac_cv_prog_f77_g=no
3584fi
3585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586
3587fi
3588echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3589echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3590if test "$ac_test_FFLAGS" = set; then
3591  FFLAGS=$ac_save_FFLAGS
3592elif test $ac_cv_prog_f77_g = yes; then
3593  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3594    FFLAGS="-g -O2"
3595  else
3596    FFLAGS="-g"
3597  fi
3598else
3599  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3600    FFLAGS="-O2"
3601  else
3602    FFLAGS=
3603  fi
3604fi
3605
3606G77=`test $ac_compiler_gnu = yes && echo yes`
3607ac_ext=f
3608ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3609ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3611
3612else
3613  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3614echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3615fi
3616
3617FFLAGS="$save_fflags"
3618
3619# Check if a project specific FFLAGS variable has been set
3620if test x$COIN_PRJCT != x; then
3621  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3622  if test x$coin_tmp = xset; then
3623    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3624  fi
3625fi
3626
3627if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3628
3629  coin_add_fflags=
3630  coin_opt_fflags=
3631  coin_dbg_fflags=
3632  coin_warn_fflags=
3633
3634  if test "$G77" = "yes"; then
3635    coin_opt_fflags="-O3"
3636    coin_add_fflags="-pipe"
3637    coin_dbg_fflags="-g -O0"
3638    case $enable_doscompile in
3639      mingw)
3640        FFLAGS="-mno-cygwin"
3641        cat >conftest.$ac_ext <<_ACEOF
3642      program main
3643      write(*,*) 'Hello world'
3644      end
3645_ACEOF
3646rm -f conftest.$ac_objext conftest$ac_exeext
3647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3648  (eval $ac_link) 2>conftest.er1
3649  ac_status=$?
3650  grep -v '^ *+' conftest.er1 >conftest.err
3651  rm -f conftest.er1
3652  cat conftest.err >&5
3653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654  (exit $ac_status); } &&
3655         { ac_try='test -z "$ac_f77_werror_flag"
3656                         || test ! -s conftest.err'
3657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658  (eval $ac_try) 2>&5
3659  ac_status=$?
3660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661  (exit $ac_status); }; } &&
3662         { ac_try='test -s conftest$ac_exeext'
3663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664  (eval $ac_try) 2>&5
3665  ac_status=$?
3666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); }; }; then
3668  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3669else
3670  echo "$as_me: failed program was:" >&5
3671sed 's/^/| /' conftest.$ac_ext >&5
3672
3673fi
3674rm -f conftest.err conftest.$ac_objext \
3675      conftest$ac_exeext conftest.$ac_ext
3676        FFLAGS=
3677      ;;
3678    esac
3679  else
3680    case $build in
3681      *-cygwin* | *-mingw*)
3682        case $F77 in
3683          ifort* | */ifort* | IFORT* | */IFORT* )
3684            coin_opt_fflags='-MT -O3'
3685            coin_add_fflags='-fpp -nologo'
3686            coin_dbg_fflags='-MTd -debug'
3687          ;;
3688          compile_f2c*)
3689            coin_opt_fflags='-MT -O2'
3690            coin_add_fflags='-nologo -wd4996'
3691            coin_dbg_fflags='-MTd'
3692          ;;
3693        esac
3694        ;;
3695      *-linux-*)
3696        case $F77 in
3697          ifc* | */ifc* | ifort* | */ifort*)
3698            coin_opt_fflags="-O3 -ip"
3699            coin_add_fflags="-cm -w90 -w95"
3700            coin_dbg_fflags="-g -CA -CB -CS"
3701            # Check if -i_dynamic is necessary (for new glibc library)
3702            FFLAGS=
3703            cat >conftest.$ac_ext <<_ACEOF
3704      program main
3705      write(*,*) 'Hello world'
3706      end
3707_ACEOF
3708rm -f conftest.$ac_objext conftest$ac_exeext
3709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710  (eval $ac_link) 2>conftest.er1
3711  ac_status=$?
3712  grep -v '^ *+' conftest.er1 >conftest.err
3713  rm -f conftest.er1
3714  cat conftest.err >&5
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); } &&
3717         { ac_try='test -z "$ac_f77_werror_flag"
3718                         || test ! -s conftest.err'
3719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720  (eval $ac_try) 2>&5
3721  ac_status=$?
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); }; } &&
3724         { ac_try='test -s conftest$ac_exeext'
3725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726  (eval $ac_try) 2>&5
3727  ac_status=$?
3728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729  (exit $ac_status); }; }; then
3730  :
3731else
3732  echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735coin_add_fflags="-i_dynamic $coin_add_fflags"
3736fi
3737rm -f conftest.err conftest.$ac_objext \
3738      conftest$ac_exeext conftest.$ac_ext
3739            ;;
3740          pgf77* | */pgf77* | pgf90* | */pgf90*)
3741            coin_opt_fflags="-fast"
3742            coin_add_fflags="-Kieee -pc 64"
3743            coin_dbg_fflags="-g"
3744          ;;
3745        esac
3746        ;;
3747      *-ibm-*)
3748        case "$F77" in
3749          xlf* | */xlf* | mpxlf* | */mpxlf* )
3750            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3751            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3752            coin_dbg_fflags="-g -C"
3753            ;;
3754        esac
3755        ;;
3756      *-hp-*)
3757        coin_opt_fflags="+O3"
3758        coin_add_fflags="+U77"
3759        coin_dbg_fflags="-C -g"
3760        ;;
3761      *-*-solaris*)
3762        coin_opt_fflags="-O4"
3763        coin_dbg_fflags="-g"
3764        ;;
3765      *-sgi-*)
3766        coin_opt_fflags="-O5 -OPT:Olimit=0"
3767        coin_dbg_fflags="-g"
3768        ;;
3769    esac
3770  fi
3771
3772  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3773    coin_dbg_fflags="-g"
3774  fi
3775
3776  if test -z "$coin_opt_fflags"; then
3777    # Try if -O option works if nothing else is set
3778    FFLAGS=-O
3779    cat >conftest.$ac_ext <<_ACEOF
3780      program main
3781      integer i
3782      end
3783_ACEOF
3784rm -f conftest.$ac_objext conftest$ac_exeext
3785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3786  (eval $ac_link) 2>conftest.er1
3787  ac_status=$?
3788  grep -v '^ *+' conftest.er1 >conftest.err
3789  rm -f conftest.er1
3790  cat conftest.err >&5
3791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792  (exit $ac_status); } &&
3793         { ac_try='test -z "$ac_f77_werror_flag"
3794                         || test ! -s conftest.err'
3795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796  (eval $ac_try) 2>&5
3797  ac_status=$?
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); }; } &&
3800         { ac_try='test -s conftest$ac_exeext'
3801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802  (eval $ac_try) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); }; }; then
3806  coin_opt_fflags="-O"
3807else
3808  echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811fi
3812rm -f conftest.err conftest.$ac_objext \
3813      conftest$ac_exeext conftest.$ac_ext
3814  fi
3815
3816  # if PM doesn't want the warning messages, take them out
3817  if test x"$coin_skip_warn_fflags" = xyes; then
3818    coin_warn_fflags=
3819  fi
3820
3821  if test x${DBG_FFLAGS+set} != xset; then
3822    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3823  fi
3824  if test x${OPT_FFLAGS+set} != xset; then
3825    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3826  fi
3827
3828  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3829  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3830
3831  if test "$coin_debug_compile" = "true"; then
3832    FFLAGS="$DBG_FFLAGS"
3833  else
3834    FFLAGS="$OPT_FFLAGS"
3835  fi
3836else
3837  FFLAGS="$FFLAGS $ADD_FFLAGS"
3838  if test x${DBG_FFLAGS+set} != xset; then
3839    DBG_FFLAGS="$FFLAGS"
3840  fi
3841  if test x${OPT_FFLAGS+set} != xset; then
3842    OPT_FFLAGS="$FFLAGS"
3843  fi
3844fi
3845
3846# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3847case "$FFLAGS" in
3848  *-mno-cygwin*)
3849    if test x${CPPFLAGS+set} != xset ; then
3850      CPPFLAGS="-mno-cygwin"
3851    else
3852      case "$CPPFLAGS" in
3853        *-mno-cygwin*)
3854          ;;
3855        *)
3856          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3857          ;;
3858      esac
3859    fi ;;
3860esac
3861
3862# Try if FFLAGS works
3863if test "$F77" != "unavailable" ; then
3864  cat >conftest.$ac_ext <<_ACEOF
3865      program main
3866      integer i
3867      end
3868_ACEOF
3869rm -f conftest.$ac_objext conftest$ac_exeext
3870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3871  (eval $ac_link) 2>conftest.er1
3872  ac_status=$?
3873  grep -v '^ *+' conftest.er1 >conftest.err
3874  rm -f conftest.er1
3875  cat conftest.err >&5
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); } &&
3878         { ac_try='test -z "$ac_f77_werror_flag"
3879                         || test ! -s conftest.err'
3880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881  (eval $ac_try) 2>&5
3882  ac_status=$?
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); }; } &&
3885         { ac_try='test -s conftest$ac_exeext'
3886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887  (eval $ac_try) 2>&5
3888  ac_status=$?
3889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890  (exit $ac_status); }; }; then
3891  :
3892else
3893  echo "$as_me: failed program was:" >&5
3894sed 's/^/| /' conftest.$ac_ext >&5
3895
3896FFLAGS=
3897fi
3898rm -f conftest.err conftest.$ac_objext \
3899      conftest$ac_exeext conftest.$ac_ext
3900  if test -z "$FFLAGS"; then
3901    { 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
3902echo "$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;}
3903    FFLAGS='-O'
3904    cat >conftest.$ac_ext <<_ACEOF
3905      program main
3906      integer i
3907      end
3908_ACEOF
3909rm -f conftest.$ac_objext conftest$ac_exeext
3910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3911  (eval $ac_link) 2>conftest.er1
3912  ac_status=$?
3913  grep -v '^ *+' conftest.er1 >conftest.err
3914  rm -f conftest.er1
3915  cat conftest.err >&5
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); } &&
3918         { ac_try='test -z "$ac_f77_werror_flag"
3919                         || test ! -s conftest.err'
3920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921  (eval $ac_try) 2>&5
3922  ac_status=$?
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); }; } &&
3925         { ac_try='test -s conftest$ac_exeext'
3926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927  (eval $ac_try) 2>&5
3928  ac_status=$?
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); }; }; then
3931  :
3932else
3933  echo "$as_me: failed program was:" >&5
3934sed 's/^/| /' conftest.$ac_ext >&5
3935
3936FFLAGS=
3937fi
3938rm -f conftest.err conftest.$ac_objext \
3939      conftest$ac_exeext conftest.$ac_ext
3940    if test -z "$FFLAGS"; then
3941      { 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
3942echo "$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;}
3943    fi
3944  fi
3945fi
3946
3947{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3948echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3949
3950
3951if test x"$MPIF77" = x; then :; else
3952  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3953echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3954  F77="$MPIF77"
3955fi
3956
3957# correct the LD variable if we use the intel fortran compiler in windows
3958case "$F77" in
3959  ifort* | */ifort* | IFORT* | */IFORT*)
3960    case $build in
3961  *-mingw*)
3962    if test "${LD+set}" = set; then :; else
3963      LD=link
3964    fi
3965    ;;
3966 esac
3967 case $enable_doscompile in
3968   msvc)
3969     if test "x${LD+set}" = xset; then :; else
3970       LD=link
3971     fi
3972     ;;
3973 esac
3974
3975    ;;
3976esac
3977
3978ac_ext=c
3979ac_cpp='$CPP $CPPFLAGS'
3980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983
3984
3985
3986# Find out how to call Fortran from C and determine Fortran runtime libraries
3987
3988# get FLIBS
3989ac_ext=f
3990ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3991ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3993echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3994echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3995if test "${ac_cv_prog_f77_v+set}" = set; then
3996  echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
3998  cat >conftest.$ac_ext <<_ACEOF
3999      program main
4000
4001      end
4002_ACEOF
4003rm -f conftest.$ac_objext
4004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005  (eval $ac_compile) 2>conftest.er1
4006  ac_status=$?
4007  grep -v '^ *+' conftest.er1 >conftest.err
4008  rm -f conftest.er1
4009  cat conftest.err >&5
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); } &&
4012         { ac_try='test -z "$ac_f77_werror_flag"
4013                         || test ! -s conftest.err'
4014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015  (eval $ac_try) 2>&5
4016  ac_status=$?
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); }; } &&
4019         { ac_try='test -s conftest.$ac_objext'
4020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021  (eval $ac_try) 2>&5
4022  ac_status=$?
4023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); }; }; then
4025  ac_cv_prog_f77_v=
4026# Try some options frequently used verbose output
4027for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4028  cat >conftest.$ac_ext <<_ACEOF
4029      program main
4030
4031      end
4032_ACEOF
4033
4034# Compile and link our simple test program by passing a flag (argument
4035# 1 to this macro) to the Fortran compiler in order to get
4036# "verbose" output that we can then parse for the Fortran linker
4037# flags.
4038ac_save_FFLAGS=$FFLAGS
4039FFLAGS="$FFLAGS $ac_verb"
4040(eval echo $as_me:4040: \"$ac_link\") >&5
4041ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4042echo "$ac_f77_v_output" >&5
4043FFLAGS=$ac_save_FFLAGS
4044
4045rm -f conftest*
4046
4047# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4048# /foo, /bar, and /baz are search directories for the Fortran linker.
4049# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4050ac_f77_v_output="`echo $ac_f77_v_output |
4051        grep 'LPATH is:' |
4052        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4053
4054case $ac_f77_v_output in
4055  # If we are using xlf then replace all the commas with spaces.
4056  *xlfentry*)
4057    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4058
4059  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4060  # $LIBS confuse us, and the libraries appear later in the output anyway).
4061  *mGLOB_options_string*)
4062    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4063
4064  # If we are using Cray Fortran then delete quotes.
4065  # Use "\"" instead of '"' for font-lock-mode.
4066  # FIXME: a more general fix for quoted arguments with spaces?
4067  *cft90*)
4068    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4069esac
4070
4071
4072  # look for -l* and *.a constructs in the output
4073  for ac_arg in $ac_f77_v_output; do
4074     case $ac_arg in
4075        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4076          ac_cv_prog_f77_v=$ac_verb
4077          break 2 ;;
4078     esac
4079  done
4080done
4081if test -z "$ac_cv_prog_f77_v"; then
4082   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4083echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4084fi
4085else
4086  echo "$as_me: failed program was:" >&5
4087sed 's/^/| /' conftest.$ac_ext >&5
4088
4089{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4090echo "$as_me: WARNING: compilation failed" >&2;}
4091fi
4092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093
4094fi
4095echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4096echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4097echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4098echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4099if test "${ac_cv_f77_libs+set}" = set; then
4100  echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102  if test "x$FLIBS" != "x"; then
4103  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4104else
4105
4106cat >conftest.$ac_ext <<_ACEOF
4107      program main
4108
4109      end
4110_ACEOF
4111
4112# Compile and link our simple test program by passing a flag (argument
4113# 1 to this macro) to the Fortran compiler in order to get
4114# "verbose" output that we can then parse for the Fortran linker
4115# flags.
4116ac_save_FFLAGS=$FFLAGS
4117FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4118(eval echo $as_me:4118: \"$ac_link\") >&5
4119ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4120echo "$ac_f77_v_output" >&5
4121FFLAGS=$ac_save_FFLAGS
4122
4123rm -f conftest*
4124
4125# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4126# /foo, /bar, and /baz are search directories for the Fortran linker.
4127# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4128ac_f77_v_output="`echo $ac_f77_v_output |
4129        grep 'LPATH is:' |
4130        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4131
4132case $ac_f77_v_output in
4133  # If we are using xlf then replace all the commas with spaces.
4134  *xlfentry*)
4135    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4136
4137  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4138  # $LIBS confuse us, and the libraries appear later in the output anyway).
4139  *mGLOB_options_string*)
4140    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4141
4142  # If we are using Cray Fortran then delete quotes.
4143  # Use "\"" instead of '"' for font-lock-mode.
4144  # FIXME: a more general fix for quoted arguments with spaces?
4145  *cft90*)
4146    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4147esac
4148
4149
4150
4151ac_cv_f77_libs=
4152
4153# Save positional arguments (if any)
4154ac_save_positional="$@"
4155
4156set X $ac_f77_v_output
4157while test $# != 1; do
4158  shift
4159  ac_arg=$1
4160  case $ac_arg in
4161        [\\/]*.a | ?:[\\/]*.a)
4162            ac_exists=false
4163  for ac_i in $ac_cv_f77_libs; do
4164    if test x"$ac_arg" = x"$ac_i"; then
4165      ac_exists=true
4166      break
4167    fi
4168  done
4169
4170  if test x"$ac_exists" = xtrue; then
4171  :
4172else
4173  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4174fi
4175
4176          ;;
4177        -bI:*)
4178            ac_exists=false
4179  for ac_i in $ac_cv_f77_libs; do
4180    if test x"$ac_arg" = x"$ac_i"; then
4181      ac_exists=true
4182      break
4183    fi
4184  done
4185
4186  if test x"$ac_exists" = xtrue; then
4187  :
4188else
4189  if test "$ac_compiler_gnu" = yes; then
4190  for ac_link_opt in $ac_arg; do
4191    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4192  done
4193else
4194  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4195fi
4196fi
4197
4198          ;;
4199          # Ignore these flags.
4200        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4201          ;;
4202        -lkernel32)
4203          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4204          ;;
4205        -[LRuY])
4206          # These flags, when seen by themselves, take an argument.
4207          # We remove the space between option and argument and re-iterate
4208          # unless we find an empty arg or a new option (starting with -)
4209          case $2 in
4210             "" | -*);;
4211             *)
4212                ac_arg="$ac_arg$2"
4213                shift; shift
4214                set X $ac_arg "$@"
4215                ;;
4216          esac
4217          ;;
4218        -YP,*)
4219          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4220              ac_exists=false
4221  for ac_i in $ac_cv_f77_libs; do
4222    if test x"$ac_j" = x"$ac_i"; then
4223      ac_exists=true
4224      break
4225    fi
4226  done
4227
4228  if test x"$ac_exists" = xtrue; then
4229  :
4230else
4231  ac_arg="$ac_arg $ac_j"
4232                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4233fi
4234
4235          done
4236          ;;
4237        -[lLR]*)
4238            ac_exists=false
4239  for ac_i in $ac_cv_f77_libs; do
4240    if test x"$ac_arg" = x"$ac_i"; then
4241      ac_exists=true
4242      break
4243    fi
4244  done
4245
4246  if test x"$ac_exists" = xtrue; then
4247  :
4248else
4249  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4250fi
4251
4252          ;;
4253          # Ignore everything else.
4254  esac
4255done
4256# restore positional arguments
4257set X $ac_save_positional; shift
4258
4259# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4260# then we insist that the "run path" must be an absolute path (i.e. it
4261# must begin with a "/").
4262case `(uname -sr) 2>/dev/null` in
4263   "SunOS 5"*)
4264      ac_ld_run_path=`echo $ac_f77_v_output |
4265                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4266      test "x$ac_ld_run_path" != x &&
4267        if test "$ac_compiler_gnu" = yes; then
4268  for ac_link_opt in $ac_ld_run_path; do
4269    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4270  done
4271else
4272  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4273fi
4274      ;;
4275esac
4276fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4277
4278fi
4279echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4280echo "${ECHO_T}$ac_cv_f77_libs" >&6
4281FLIBS="$ac_cv_f77_libs"
4282
4283
4284ac_ext=c
4285ac_cpp='$CPP $CPPFLAGS'
4286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
4290orig_FLIBS="$FLIBS"
4291
4292# If FLIBS has been set by the user, we just restore its value here
4293if test x"$save_FLIBS" != x; then
4294  FLIBS="$save_FLIBS"
4295else
4296  # This is to correct a missing exclusion in autoconf 2.59
4297  if test x"$FLIBS" != x; then
4298    my_flibs=
4299    for flag in $FLIBS; do
4300      case $flag in
4301        -lcrt*.o) ;;
4302        -lcygwin) ;;
4303               *) my_flibs="$my_flibs $flag" ;;
4304      esac
4305    done
4306    FLIBS="$my_flibs"
4307  fi
4308
4309  case $build in
4310  # The following is a fix to define FLIBS for ifort on Windows
4311  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4312  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4313  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4314  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4315  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4316     *-cygwin* | *-mingw*)
4317       case "$F77" in
4318#         ifort* | */ifort* | IFORT* | */IFORT*)
4319#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4320#           if "$coin_debug_compile" = true ; then
4321#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4322#           else
4323#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4324#           fi
4325#           ;;
4326         compile_f2c*)
4327           FLIBS=`$F77 -FLIBS` ;;
4328       esac;;
4329     *-hp-*)
4330         FLIBS="$FLIBS -lm";;
4331     *-ibm-*)
4332         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4333     *-linux-*)
4334       case "$F77" in
4335         pgf77* | */pgf77* | pgf90* | */pgf90*)
4336# ask linker to go through the archives multiple times
4337# (the Fortran compiler seems to do that automatically...)
4338           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4339       esac
4340  esac
4341  ac_cv_f77_libs="$FLIBS"
4342fi
4343
4344if test "x$orig_FLIBS" != "x$FLIBS" ; then
4345  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4346echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4347fi
4348
4349ac_ext=f
4350ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4351ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4353
4354echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4355echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4356if test "${ac_cv_f77_dummy_main+set}" = set; then
4357  echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359  ac_f77_dm_save_LIBS=$LIBS
4360 LIBS="$LIBS $FLIBS"
4361 ac_fortran_dm_var=F77_DUMMY_MAIN
4362 ac_ext=c
4363ac_cpp='$CPP $CPPFLAGS'
4364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367
4368 # First, try linking without a dummy main:
4369 cat >conftest.$ac_ext <<_ACEOF
4370/* confdefs.h.  */
4371_ACEOF
4372cat confdefs.h >>conftest.$ac_ext
4373cat >>conftest.$ac_ext <<_ACEOF
4374/* end confdefs.h.  */
4375
4376#ifdef F77_DUMMY_MAIN
4377
4378#  ifdef __cplusplus
4379     extern "C"
4380#  endif
4381   int F77_DUMMY_MAIN() { return 1; }
4382
4383#endif
4384int
4385main ()
4386{
4387
4388  ;
4389  return 0;
4390}
4391_ACEOF
4392rm -f conftest.$ac_objext conftest$ac_exeext
4393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4394  (eval $ac_link) 2>conftest.er1
4395  ac_status=$?
4396  grep -v '^ *+' conftest.er1 >conftest.err
4397  rm -f conftest.er1
4398  cat conftest.err >&5
4399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400  (exit $ac_status); } &&
4401         { ac_try='test -z "$ac_c_werror_flag"
4402                         || test ! -s conftest.err'
4403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404  (eval $ac_try) 2>&5
4405  ac_status=$?
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); }; } &&
4408         { ac_try='test -s conftest$ac_exeext'
4409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410  (eval $ac_try) 2>&5
4411  ac_status=$?
4412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413  (exit $ac_status); }; }; then
4414  ac_cv_fortran_dummy_main=none
4415else
4416  echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419ac_cv_fortran_dummy_main=unknown
4420fi
4421rm -f conftest.err conftest.$ac_objext \
4422      conftest$ac_exeext conftest.$ac_ext
4423
4424 if test $ac_cv_fortran_dummy_main = unknown; then
4425   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4426     cat >conftest.$ac_ext <<_ACEOF
4427/* confdefs.h.  */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h.  */
4432#define $ac_fortran_dm_var $ac_func
4433#ifdef F77_DUMMY_MAIN
4434
4435#  ifdef __cplusplus
4436     extern "C"
4437#  endif
4438   int F77_DUMMY_MAIN() { return 1; }
4439
4440#endif
4441int
4442main ()
4443{
4444
4445  ;
4446  return 0;
4447}
4448_ACEOF
4449rm -f conftest.$ac_objext conftest$ac_exeext
4450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4451  (eval $ac_link) 2>conftest.er1
4452  ac_status=$?
4453  grep -v '^ *+' conftest.er1 >conftest.err
4454  rm -f conftest.er1
4455  cat conftest.err >&5
4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457  (exit $ac_status); } &&
4458         { ac_try='test -z "$ac_c_werror_flag"
4459                         || test ! -s conftest.err'
4460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461  (eval $ac_try) 2>&5
4462  ac_status=$?
4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); }; } &&
4465         { ac_try='test -s conftest$ac_exeext'
4466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467  (eval $ac_try) 2>&5
4468  ac_status=$?
4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470  (exit $ac_status); }; }; then
4471  ac_cv_fortran_dummy_main=$ac_func; break
4472else
4473  echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
4475
4476fi
4477rm -f conftest.err conftest.$ac_objext \
4478      conftest$ac_exeext conftest.$ac_ext
4479   done
4480 fi
4481 ac_ext=f
4482ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4483ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4485 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4486 rm -f conftest*
4487 LIBS=$ac_f77_dm_save_LIBS
4488
4489fi
4490echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4491echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4492F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4493if test "$F77_DUMMY_MAIN" != unknown; then
4494  if test $F77_DUMMY_MAIN != none; then
4495
4496cat >>confdefs.h <<_ACEOF
4497#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4498_ACEOF
4499
4500  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4501
4502cat >>confdefs.h <<\_ACEOF
4503#define FC_DUMMY_MAIN_EQ_F77 1
4504_ACEOF
4505
4506  fi
4507fi
4508else
4509  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4510See \`config.log' for more details." >&5
4511echo "$as_me: error: linking to Fortran libraries from C fails
4512See \`config.log' for more details." >&2;}
4513   { (exit 1); exit 1; }; }
4514fi
4515
4516
4517ac_ext=f
4518ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4519ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4521
4522ac_ext=f
4523ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4524ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4526echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4527echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4528if test "${ac_cv_f77_mangling+set}" = set; then
4529  echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531  cat >conftest.$ac_ext <<_ACEOF
4532      subroutine foobar()
4533      return
4534      end
4535      subroutine foo_bar()
4536      return
4537      end
4538_ACEOF
4539rm -f conftest.$ac_objext
4540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541  (eval $ac_compile) 2>conftest.er1
4542  ac_status=$?
4543  grep -v '^ *+' conftest.er1 >conftest.err
4544  rm -f conftest.er1
4545  cat conftest.err >&5
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } &&
4548         { ac_try='test -z "$ac_f77_werror_flag"
4549                         || test ! -s conftest.err'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; } &&
4555         { ac_try='test -s conftest.$ac_objext'
4556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557  (eval $ac_try) 2>&5
4558  ac_status=$?
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); }; }; then
4561  mv conftest.$ac_objext cfortran_test.$ac_objext
4562
4563  ac_save_LIBS=$LIBS
4564  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4565
4566  ac_ext=c
4567ac_cpp='$CPP $CPPFLAGS'
4568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570ac_compiler_gnu=$ac_cv_c_compiler_gnu
4571  ac_success=no
4572  for ac_foobar in foobar FOOBAR; do
4573    for ac_underscore in "" "_"; do
4574      ac_func="$ac_foobar$ac_underscore"
4575      cat >conftest.$ac_ext <<_ACEOF
4576/* confdefs.h.  */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h.  */
4581
4582/* Override any gcc2 internal prototype to avoid an error.  */
4583#ifdef __cplusplus
4584extern "C"
4585#endif
4586/* We use char because int might match the return type of a gcc2
4587   builtin and then its argument prototype would still apply.  */
4588char $ac_func ();
4589#ifdef F77_DUMMY_MAIN
4590
4591#  ifdef __cplusplus
4592     extern "C"
4593#  endif
4594   int F77_DUMMY_MAIN() { return 1; }
4595
4596#endif
4597int
4598main ()
4599{
4600$ac_func ();
4601  ;
4602  return 0;
4603}
4604_ACEOF
4605rm -f conftest.$ac_objext conftest$ac_exeext
4606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607  (eval $ac_link) 2>conftest.er1
4608  ac_status=$?
4609  grep -v '^ *+' conftest.er1 >conftest.err
4610  rm -f conftest.er1
4611  cat conftest.err >&5
4612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613  (exit $ac_status); } &&
4614         { ac_try='test -z "$ac_c_werror_flag"
4615                         || test ! -s conftest.err'
4616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617  (eval $ac_try) 2>&5
4618  ac_status=$?
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); }; } &&
4621         { ac_try='test -s conftest$ac_exeext'
4622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623  (eval $ac_try) 2>&5
4624  ac_status=$?
4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626  (exit $ac_status); }; }; then
4627  ac_success=yes; break 2
4628else
4629  echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632fi
4633rm -f conftest.err conftest.$ac_objext \
4634      conftest$ac_exeext conftest.$ac_ext
4635    done
4636  done
4637  ac_ext=f
4638ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4639ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4641
4642  if test "$ac_success" = "yes"; then
4643     case $ac_foobar in
4644        foobar)
4645           ac_case=lower
4646           ac_foo_bar=foo_bar
4647           ;;
4648        FOOBAR)
4649           ac_case=upper
4650           ac_foo_bar=FOO_BAR
4651           ;;
4652     esac
4653
4654     ac_ext=c
4655ac_cpp='$CPP $CPPFLAGS'
4656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659     ac_success_extra=no
4660     for ac_extra in "" "_"; do
4661        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4662        cat >conftest.$ac_ext <<_ACEOF
4663/* confdefs.h.  */
4664_ACEOF
4665cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h.  */
4668
4669/* Override any gcc2 internal prototype to avoid an error.  */
4670#ifdef __cplusplus
4671extern "C"
4672#endif
4673/* We use char because int might match the return type of a gcc2
4674   builtin and then its argument prototype would still apply.  */
4675char $ac_func ();
4676#ifdef F77_DUMMY_MAIN
4677
4678#  ifdef __cplusplus
4679     extern "C"
4680#  endif
4681   int F77_DUMMY_MAIN() { return 1; }
4682
4683#endif
4684int
4685main ()
4686{
4687$ac_func ();
4688  ;
4689  return 0;
4690}
4691_ACEOF
4692rm -f conftest.$ac_objext conftest$ac_exeext
4693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4694  (eval $ac_link) 2>conftest.er1
4695  ac_status=$?
4696  grep -v '^ *+' conftest.er1 >conftest.err
4697  rm -f conftest.er1
4698  cat conftest.err >&5
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); } &&
4701         { ac_try='test -z "$ac_c_werror_flag"
4702                         || test ! -s conftest.err'
4703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704  (eval $ac_try) 2>&5
4705  ac_status=$?
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); }; } &&
4708         { ac_try='test -s conftest$ac_exeext'
4709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710  (eval $ac_try) 2>&5
4711  ac_status=$?
4712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713  (exit $ac_status); }; }; then
4714  ac_success_extra=yes; break
4715else
4716  echo "$as_me: failed program was:" >&5
4717sed 's/^/| /' conftest.$ac_ext >&5
4718
4719fi
4720rm -f conftest.err conftest.$ac_objext \
4721      conftest$ac_exeext conftest.$ac_ext
4722     done
4723     ac_ext=f
4724ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4725ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4727
4728     if test "$ac_success_extra" = "yes"; then
4729        ac_cv_f77_mangling="$ac_case case"
4730        if test -z "$ac_underscore"; then
4731           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4732        else
4733           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4734        fi
4735        if test -z "$ac_extra"; then
4736           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4737        else
4738           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4739        fi
4740      else
4741        ac_cv_f77_mangling="unknown"
4742      fi
4743  else
4744     ac_cv_f77_mangling="unknown"
4745  fi
4746
4747  LIBS=$ac_save_LIBS
4748  rm -f cfortran_test* conftest*
4749else
4750  echo "$as_me: failed program was:" >&5
4751sed 's/^/| /' conftest.$ac_ext >&5
4752
4753{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4754See \`config.log' for more details." >&5
4755echo "$as_me: error: cannot compile a simple Fortran program
4756See \`config.log' for more details." >&2;}
4757   { (exit 1); exit 1; }; }
4758fi
4759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760
4761fi
4762echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4763echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4764
4765ac_ext=f
4766ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4767ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4769
4770
4771ac_ext=f
4772ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4773ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4775
4776ac_ext=f
4777ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4778ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4780
4781
4782case $ac_cv_f77_mangling in
4783  "lower case, no underscore, no extra underscore")
4784          cat >>confdefs.h <<\_ACEOF
4785#define F77_FUNC(name,NAME) name
4786_ACEOF
4787
4788          cat >>confdefs.h <<\_ACEOF
4789#define F77_FUNC_(name,NAME) name
4790_ACEOF
4791 ;;
4792  "lower case, no underscore, extra underscore")
4793          cat >>confdefs.h <<\_ACEOF
4794#define F77_FUNC(name,NAME) name
4795_ACEOF
4796
4797          cat >>confdefs.h <<\_ACEOF
4798#define F77_FUNC_(name,NAME) name ## _
4799_ACEOF
4800 ;;
4801  "lower case, underscore, no extra underscore")
4802          cat >>confdefs.h <<\_ACEOF
4803#define F77_FUNC(name,NAME) name ## _
4804_ACEOF
4805
4806          cat >>confdefs.h <<\_ACEOF
4807#define F77_FUNC_(name,NAME) name ## _
4808_ACEOF
4809 ;;
4810  "lower case, underscore, extra underscore")
4811          cat >>confdefs.h <<\_ACEOF
4812#define F77_FUNC(name,NAME) name ## _
4813_ACEOF
4814
4815          cat >>confdefs.h <<\_ACEOF
4816#define F77_FUNC_(name,NAME) name ## __
4817_ACEOF
4818 ;;
4819  "upper case, no underscore, no extra underscore")
4820          cat >>confdefs.h <<\_ACEOF
4821#define F77_FUNC(name,NAME) NAME
4822_ACEOF
4823
4824          cat >>confdefs.h <<\_ACEOF
4825#define F77_FUNC_(name,NAME) NAME
4826_ACEOF
4827 ;;
4828  "upper case, no underscore, extra underscore")
4829          cat >>confdefs.h <<\_ACEOF
4830#define F77_FUNC(name,NAME) NAME
4831_ACEOF
4832
4833          cat >>confdefs.h <<\_ACEOF
4834#define F77_FUNC_(name,NAME) NAME ## _
4835_ACEOF
4836 ;;
4837  "upper case, underscore, no extra underscore")
4838          cat >>confdefs.h <<\_ACEOF
4839#define F77_FUNC(name,NAME) NAME ## _
4840_ACEOF
4841
4842          cat >>confdefs.h <<\_ACEOF
4843#define F77_FUNC_(name,NAME) NAME ## _
4844_ACEOF
4845 ;;
4846  "upper case, underscore, extra underscore")
4847          cat >>confdefs.h <<\_ACEOF
4848#define F77_FUNC(name,NAME) NAME ## _
4849_ACEOF
4850
4851          cat >>confdefs.h <<\_ACEOF
4852#define F77_FUNC_(name,NAME) NAME ## __
4853_ACEOF
4854 ;;
4855  *)
4856          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4857echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4858          ;;
4859esac
4860
4861ac_ext=f
4862ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4863ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4865
4866ac_ext=c
4867ac_cpp='$CPP $CPPFLAGS'
4868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871
4872
4873
4874
4875# Add FLIBS to MUMPS_PCLIBS, so that they get into the .pc files
4876MUMPS_PCLIBS="$FLIBS"
4877
4878# We need to translate the result from autoconf to what MUMPS wants
4879case "$ac_cv_f77_mangling" in
4880  "lower case, no underscore, no extra underscore")
4881  ;;
4882  "lower case, underscore, no extra underscore")
4883  MY_DEFS="-DAdd_"
4884  ;;
4885  "lower case, no underscore, extra underscore")
4886  MY_DEFS="-DAdd_"
4887  ;;
4888  "lower case, underscore, extra underscore")
4889  MY_DEFS="-DAdd__"
4890  ;;
4891  "upper case, no underscore, no extra underscore")
4892  MY_DEFS="-DUPPER"
4893  ;;
4894  "upper case, no underscore, extra underscore")
4895  MY_DEFS="-DUPPER"
4896  ;;
4897  "upper case, underscore, no extra underscore")
4898  MY_DEFS="-DUPPER"
4899  ;;
4900  "upper case, underscore, extra underscore")
4901  MY_DEFS="-DUPPER"
4902  ;;
4903esac
4904
4905# check for pthread.h header file
4906ac_ext=c
4907ac_cpp='$CPP $CPPFLAGS'
4908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4912echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4913# On Suns, sometimes $CPP names a directory.
4914if test -n "$CPP" && test -d "$CPP"; then
4915  CPP=
4916fi
4917if test -z "$CPP"; then
4918  if test "${ac_cv_prog_CPP+set}" = set; then
4919  echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921      # Double quotes because CPP needs to be expanded
4922    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4923    do
4924      ac_preproc_ok=false
4925for ac_c_preproc_warn_flag in '' yes
4926do
4927  # Use a header file that comes with gcc, so configuring glibc
4928  # with a fresh cross-compiler works.
4929  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930  # <limits.h> exists even on freestanding compilers.
4931  # On the NeXT, cc -E runs the code through the compiler's parser,
4932  # not just through cpp. "Syntax error" is here to catch this case.
4933  cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h.  */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h.  */
4939#ifdef __STDC__
4940# include <limits.h>
4941#else
4942# include <assert.h>
4943#endif
4944                     Syntax error
4945_ACEOF
4946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4947  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4948  ac_status=$?
4949  grep -v '^ *+' conftest.er1 >conftest.err
4950  rm -f conftest.er1
4951  cat conftest.err >&5
4952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); } >/dev/null; then
4954  if test -s conftest.err; then
4955    ac_cpp_err=$ac_c_preproc_warn_flag
4956    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4957  else
4958    ac_cpp_err=
4959  fi
4960else
4961  ac_cpp_err=yes
4962fi
4963if test -z "$ac_cpp_err"; then
4964  :
4965else
4966  echo "$as_me: failed program was:" >&5
4967sed 's/^/| /' conftest.$ac_ext >&5
4968
4969  # Broken: fails on valid input.
4970continue
4971fi
4972rm -f conftest.err conftest.$ac_ext
4973
4974  # OK, works on sane cases.  Now check whether non-existent headers
4975  # can be detected and how.
4976  cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h.  */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h.  */
4982#include <ac_nonexistent.h>
4983_ACEOF
4984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4985  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4986  ac_status=$?
4987  grep -v '^ *+' conftest.er1 >conftest.err
4988  rm -f conftest.er1
4989  cat conftest.err >&5
4990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991  (exit $ac_status); } >/dev/null; then
4992  if test -s conftest.err; then
4993    ac_cpp_err=$ac_c_preproc_warn_flag
4994    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4995  else
4996    ac_cpp_err=
4997  fi
4998else
4999  ac_cpp_err=yes
5000fi
5001if test -z "$ac_cpp_err"; then
5002  # Broken: success on invalid input.
5003continue
5004else
5005  echo "$as_me: failed program was:" >&5
5006sed 's/^/| /' conftest.$ac_ext >&5
5007
5008  # Passes both tests.
5009ac_preproc_ok=:
5010break
5011fi
5012rm -f conftest.err conftest.$ac_ext
5013
5014done
5015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5016rm -f conftest.err conftest.$ac_ext
5017if $ac_preproc_ok; then
5018  break
5019fi
5020
5021    done
5022    ac_cv_prog_CPP=$CPP
5023
5024fi
5025  CPP=$ac_cv_prog_CPP
5026else
5027  ac_cv_prog_CPP=$CPP
5028fi
5029echo "$as_me:$LINENO: result: $CPP" >&5
5030echo "${ECHO_T}$CPP" >&6
5031ac_preproc_ok=false
5032for ac_c_preproc_warn_flag in '' yes
5033do
5034  # Use a header file that comes with gcc, so configuring glibc
5035  # with a fresh cross-compiler works.
5036  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5037  # <limits.h> exists even on freestanding compilers.
5038  # On the NeXT, cc -E runs the code through the compiler's parser,
5039  # not just through cpp. "Syntax error" is here to catch this case.
5040  cat >conftest.$ac_ext <<_ACEOF
5041/* confdefs.h.  */
5042_ACEOF
5043cat confdefs.h >>conftest.$ac_ext
5044cat >>conftest.$ac_ext <<_ACEOF
5045/* end confdefs.h.  */
5046#ifdef __STDC__
5047# include <limits.h>
5048#else
5049# include <assert.h>
5050#endif
5051                     Syntax error
5052_ACEOF
5053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5054  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5055  ac_status=$?
5056  grep -v '^ *+' conftest.er1 >conftest.err
5057  rm -f conftest.er1
5058  cat conftest.err >&5
5059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060  (exit $ac_status); } >/dev/null; then
5061  if test -s conftest.err; then
5062    ac_cpp_err=$ac_c_preproc_warn_flag
5063    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5064  else
5065    ac_cpp_err=
5066  fi
5067else
5068  ac_cpp_err=yes
5069fi
5070if test -z "$ac_cpp_err"; then
5071  :
5072else
5073  echo "$as_me: failed program was:" >&5
5074sed 's/^/| /' conftest.$ac_ext >&5
5075
5076  # Broken: fails on valid input.
5077continue
5078fi
5079rm -f conftest.err conftest.$ac_ext
5080
5081  # OK, works on sane cases.  Now check whether non-existent headers
5082  # can be detected and how.
5083  cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h.  */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h.  */
5089#include <ac_nonexistent.h>
5090_ACEOF
5091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5092  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093  ac_status=$?
5094  grep -v '^ *+' conftest.er1 >conftest.err
5095  rm -f conftest.er1
5096  cat conftest.err >&5
5097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098  (exit $ac_status); } >/dev/null; then
5099  if test -s conftest.err; then
5100    ac_cpp_err=$ac_c_preproc_warn_flag
5101    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5102  else
5103    ac_cpp_err=
5104  fi
5105else
5106  ac_cpp_err=yes
5107fi
5108if test -z "$ac_cpp_err"; then
5109  # Broken: success on invalid input.
5110continue
5111else
5112  echo "$as_me: failed program was:" >&5
5113sed 's/^/| /' conftest.$ac_ext >&5
5114
5115  # Passes both tests.
5116ac_preproc_ok=:
5117break
5118fi
5119rm -f conftest.err conftest.$ac_ext
5120
5121done
5122# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5123rm -f conftest.err conftest.$ac_ext
5124if $ac_preproc_ok; then
5125  :
5126else
5127  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5128See \`config.log' for more details." >&5
5129echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5130See \`config.log' for more details." >&2;}
5131   { (exit 1); exit 1; }; }
5132fi
5133
5134ac_ext=c
5135ac_cpp='$CPP $CPPFLAGS'
5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139
5140
5141echo "$as_me:$LINENO: checking for egrep" >&5
5142echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5143if test "${ac_cv_prog_egrep+set}" = set; then
5144  echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5147    then ac_cv_prog_egrep='grep -E'
5148    else ac_cv_prog_egrep='egrep'
5149    fi
5150fi
5151echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5152echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5153 EGREP=$ac_cv_prog_egrep
5154
5155
5156echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5157echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5158if test "${ac_cv_header_stdc+set}" = set; then
5159  echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161  cat >conftest.$ac_ext <<_ACEOF
5162/* confdefs.h.  */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h.  */
5167#include <stdlib.h>
5168#include <stdarg.h>
5169#include <string.h>
5170#include <float.h>
5171
5172#ifdef F77_DUMMY_MAIN
5173
5174#  ifdef __cplusplus
5175     extern "C"
5176#  endif
5177   int F77_DUMMY_MAIN() { return 1; }
5178
5179#endif
5180int
5181main ()
5182{
5183
5184  ;
5185  return 0;
5186}
5187_ACEOF
5188rm -f conftest.$ac_objext
5189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5190  (eval $ac_compile) 2>conftest.er1
5191  ac_status=$?
5192  grep -v '^ *+' conftest.er1 >conftest.err
5193  rm -f conftest.er1
5194  cat conftest.err >&5
5195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196  (exit $ac_status); } &&
5197         { ac_try='test -z "$ac_c_werror_flag"
5198                         || test ! -s conftest.err'
5199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200  (eval $ac_try) 2>&5
5201  ac_status=$?
5202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); }; } &&
5204         { ac_try='test -s conftest.$ac_objext'
5205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206  (eval $ac_try) 2>&5
5207  ac_status=$?
5208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209  (exit $ac_status); }; }; then
5210  ac_cv_header_stdc=yes
5211else
5212  echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215ac_cv_header_stdc=no
5216fi
5217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5218
5219if test $ac_cv_header_stdc = yes; then
5220  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5221  cat >conftest.$ac_ext <<_ACEOF
5222/* confdefs.h.  */
5223_ACEOF
5224cat confdefs.h >>conftest.$ac_ext
5225cat >>conftest.$ac_ext <<_ACEOF
5226/* end confdefs.h.  */
5227#include <string.h>
5228
5229_ACEOF
5230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5231  $EGREP "memchr" >/dev/null 2>&1; then
5232  :
5233else
5234  ac_cv_header_stdc=no
5235fi
5236rm -f conftest*
5237
5238fi
5239
5240if test $ac_cv_header_stdc = yes; then
5241  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5242  cat >conftest.$ac_ext <<_ACEOF
5243/* confdefs.h.  */
5244_ACEOF
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h.  */
5248#include <stdlib.h>
5249
5250_ACEOF
5251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5252  $EGREP "free" >/dev/null 2>&1; then
5253  :
5254else
5255  ac_cv_header_stdc=no
5256fi
5257rm -f conftest*
5258
5259fi
5260
5261if test $ac_cv_header_stdc = yes; then
5262  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5263  if test "$cross_compiling" = yes; then
5264  :
5265else
5266  cat >conftest.$ac_ext <<_ACEOF
5267/* confdefs.h.  */
5268_ACEOF
5269cat confdefs.h >>conftest.$ac_ext
5270cat >>conftest.$ac_ext <<_ACEOF
5271/* end confdefs.h.  */
5272#include <ctype.h>
5273#if ((' ' & 0x0FF) == 0x020)
5274# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5275# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5276#else
5277# define ISLOWER(c) \
5278                   (('a' <= (c) && (c) <= 'i') \
5279                     || ('j' <= (c) && (c) <= 'r') \
5280                     || ('s' <= (c) && (c) <= 'z'))
5281# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5282#endif
5283
5284#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5285int
5286main ()
5287{
5288  int i;
5289  for (i = 0; i < 256; i++)
5290    if (XOR (islower (i), ISLOWER (i))
5291        || toupper (i) != TOUPPER (i))
5292      exit(2);
5293  exit (0);
5294}
5295_ACEOF
5296rm -f conftest$ac_exeext
5297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5298  (eval $ac_link) 2>&5
5299  ac_status=$?
5300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303  (eval $ac_try) 2>&5
5304  ac_status=$?
5305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306  (exit $ac_status); }; }; then
5307  :
5308else
5309  echo "$as_me: program exited with status $ac_status" >&5
5310echo "$as_me: failed program was:" >&5
5311sed 's/^/| /' conftest.$ac_ext >&5
5312
5313( exit $ac_status )
5314ac_cv_header_stdc=no
5315fi
5316rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5317fi
5318fi
5319fi
5320echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5321echo "${ECHO_T}$ac_cv_header_stdc" >&6
5322if test $ac_cv_header_stdc = yes; then
5323
5324cat >>confdefs.h <<\_ACEOF
5325#define STDC_HEADERS 1
5326_ACEOF
5327
5328fi
5329
5330# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5341                  inttypes.h stdint.h unistd.h
5342do
5343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5344echo "$as_me:$LINENO: checking for $ac_header" >&5
5345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5346if eval "test \"\${$as_ac_Header+set}\" = set"; then
5347  echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349  cat >conftest.$ac_ext <<_ACEOF
5350/* confdefs.h.  */
5351_ACEOF
5352cat confdefs.h >>conftest.$ac_ext
5353cat >>conftest.$ac_ext <<_ACEOF
5354/* end confdefs.h.  */
5355$ac_includes_default
5356
5357#include <$ac_header>
5358_ACEOF
5359rm -f conftest.$ac_objext
5360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361  (eval $ac_compile) 2>conftest.er1
5362  ac_status=$?
5363  grep -v '^ *+' conftest.er1 >conftest.err
5364  rm -f conftest.er1
5365  cat conftest.err >&5
5366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367  (exit $ac_status); } &&
5368         { ac_try='test -z "$ac_c_werror_flag"
5369                         || test ! -s conftest.err'
5370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371  (eval $ac_try) 2>&5
5372  ac_status=$?
5373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); }; } &&
5375         { ac_try='test -s conftest.$ac_objext'
5376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377  (eval $ac_try) 2>&5
5378  ac_status=$?
5379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380  (exit $ac_status); }; }; then
5381  eval "$as_ac_Header=yes"
5382else
5383  echo "$as_me: failed program was:" >&5
5384sed 's/^/| /' conftest.$ac_ext >&5
5385
5386eval "$as_ac_Header=no"
5387fi
5388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5389fi
5390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5392if test `eval echo '${'$as_ac_Header'}'` = yes; then
5393  cat >>confdefs.h <<_ACEOF
5394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5395_ACEOF
5396
5397fi
5398
5399done
5400
5401
5402#if test x"" = x; then
5403#  hdr="#include <pthread.h>"
5404#else
5405#  hdr=""
5406#fi
5407#AC_CHECK_HEADERS([pthread.h],[],[MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"],[$hdr])
5408
5409for ac_header in pthread.h
5410do
5411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5412if eval "test \"\${$as_ac_Header+set}\" = set"; then
5413  echo "$as_me:$LINENO: checking for $ac_header" >&5
5414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5415if eval "test \"\${$as_ac_Header+set}\" = set"; then
5416  echo $ECHO_N "(cached) $ECHO_C" >&6
5417fi
5418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5420else
5421  # Is the header compilable?
5422echo "$as_me:$LINENO: checking $ac_header usability" >&5
5423echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5424cat >conftest.$ac_ext <<_ACEOF
5425/* confdefs.h.  */
5426_ACEOF
5427cat confdefs.h >>conftest.$ac_ext
5428cat >>conftest.$ac_ext <<_ACEOF
5429/* end confdefs.h.  */
5430$ac_includes_default
5431#include <$ac_header>
5432_ACEOF
5433rm -f conftest.$ac_objext
5434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435  (eval $ac_compile) 2>conftest.er1
5436  ac_status=$?
5437  grep -v '^ *+' conftest.er1 >conftest.err
5438  rm -f conftest.er1
5439  cat conftest.err >&5
5440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441  (exit $ac_status); } &&
5442         { ac_try='test -z "$ac_c_werror_flag"
5443                         || test ! -s conftest.err'
5444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445  (eval $ac_try) 2>&5
5446  ac_status=$?
5447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448  (exit $ac_status); }; } &&
5449         { ac_try='test -s conftest.$ac_objext'
5450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451  (eval $ac_try) 2>&5
5452  ac_status=$?
5453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454  (exit $ac_status); }; }; then
5455  ac_header_compiler=yes
5456else
5457  echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
5459
5460ac_header_compiler=no
5461fi
5462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5464echo "${ECHO_T}$ac_header_compiler" >&6
5465
5466# Is the header present?
5467echo "$as_me:$LINENO: checking $ac_header presence" >&5
5468echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5469cat >conftest.$ac_ext <<_ACEOF
5470/* confdefs.h.  */
5471_ACEOF
5472cat confdefs.h >>conftest.$ac_ext
5473cat >>conftest.$ac_ext <<_ACEOF
5474/* end confdefs.h.  */
5475#include <$ac_header>
5476_ACEOF
5477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5478  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5479  ac_status=$?
5480  grep -v '^ *+' conftest.er1 >conftest.err
5481  rm -f conftest.er1
5482  cat conftest.err >&5
5483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484  (exit $ac_status); } >/dev/null; then
5485  if test -s conftest.err; then
5486    ac_cpp_err=$ac_c_preproc_warn_flag
5487    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5488  else
5489    ac_cpp_err=
5490  fi
5491else
5492  ac_cpp_err=yes
5493fi
5494if test -z "$ac_cpp_err"; then
5495  ac_header_preproc=yes
5496else
5497  echo "$as_me: failed program was:" >&5
5498sed 's/^/| /' conftest.$ac_ext >&5
5499
5500  ac_header_preproc=no
5501fi
5502rm -f conftest.err conftest.$ac_ext
5503echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5504echo "${ECHO_T}$ac_header_preproc" >&6
5505
5506# So?  What about this header?
5507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5508  yes:no: )
5509    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5511    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5513    ac_header_preproc=yes
5514    ;;
5515  no:yes:* )
5516    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5518    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5519echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5520    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5522    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5523echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5524    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5526    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5528    (
5529      cat <<\_ASBOX
5530## --------------------------------------------------------------- ##
5531## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5532## --------------------------------------------------------------- ##
5533_ASBOX
5534    ) |
5535      sed "s/^/$as_me: WARNING:     /" >&2
5536    ;;
5537esac
5538echo "$as_me:$LINENO: checking for $ac_header" >&5
5539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5540if eval "test \"\${$as_ac_Header+set}\" = set"; then
5541  echo $ECHO_N "(cached) $ECHO_C" >&6
5542else
5543  eval "$as_ac_Header=\$ac_header_preproc"
5544fi
5545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5546echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5547
5548fi
5549if test `eval echo '${'$as_ac_Header'}'` = yes; then
5550  cat >>confdefs.h <<_ACEOF
5551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5552_ACEOF
5553
5554else
5555  MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"
5556fi
5557
5558done
5559
5560
5561
5562MY_DEFS="$MY_DEFS -DALLOW_NON_INIT -DMUMPS_ARITH=MUMPS_ARITH_d"
5563
5564
5565# Initialize automake
5566{
5567
5568
5569
5570# START
5571
5572# Test if force_shared has been set
5573if test "x" = xforce_shared; then
5574  if test x$enable_shared = xno; then
5575    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5576echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5577   { (exit 1); exit 1; }; }
5578  fi
5579  enable_shared=yes;
5580else
5581  # On Cygwin and AIX, building DLLs doesn't work
5582  case $build in
5583    *-cygwin*)
5584      coin_disable_shared=yes
5585      platform=Cygwin
5586    ;;
5587    *-aix*)
5588      coin_disable_shared=yes
5589      platform=AIX
5590    ;;
5591    *-mingw*)
5592      coin_disable_shared=yes
5593      platform="Msys"
5594#      case "$CXX" in
5595#        cl*)
5596#          coin_disable_shared=yes
5597#          platform="Msys with cl"
5598#      ;;
5599#      esac
5600    ;;
5601  esac
5602fi
5603if test x"$coin_disable_shared" = xyes; then
5604  if test x"$enable_shared" = xyes; then
5605    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5606echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5607  fi
5608  enable_shared=no
5609fi
5610# By default, we only want the shared objects to be compiled
5611# Check whether --enable-static or --disable-static was given.
5612if test "${enable_static+set}" = set; then
5613  enableval="$enable_static"
5614  p=${PACKAGE-default}
5615    case $enableval in
5616    yes) enable_static=yes ;;
5617    no) enable_static=no ;;
5618    *)
5619     enable_static=no
5620      # Look at the argument we got.  We use all the common list separators.
5621      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5622      for pkg in $enableval; do
5623        IFS="$lt_save_ifs"
5624        if test "X$pkg" = "X$p"; then
5625          enable_static=yes
5626        fi
5627      done
5628      IFS="$lt_save_ifs"
5629      ;;
5630    esac
5631else
5632  enable_static=no
5633fi;
5634
5635
5636
5637
5638# Initialize automake
5639echo "$as_me:$LINENO: checking whether ln -s works" >&5
5640echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5641LN_S=$as_ln_s
5642if test "$LN_S" = "ln -s"; then
5643  echo "$as_me:$LINENO: result: yes" >&5
5644echo "${ECHO_T}yes" >&6
5645else
5646  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5647echo "${ECHO_T}no, using $LN_S" >&6
5648fi
5649
5650am__api_version="1.9"
5651# Find a good install program.  We prefer a C program (faster),
5652# so one script is as good as another.  But avoid the broken or
5653# incompatible versions:
5654# SysV /etc/install, /usr/sbin/install
5655# SunOS /usr/etc/install
5656# IRIX /sbin/install
5657# AIX /bin/install
5658# AmigaOS /C/install, which installs bootblocks on floppy discs
5659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5660# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5662# OS/2's system install, which has a completely different semantic
5663# ./install, which can be erroneously created by make from ./install.sh.
5664echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5665echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5666if test -z "$INSTALL"; then
5667if test "${ac_cv_path_install+set}" = set; then
5668  echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673  IFS=$as_save_IFS
5674  test -z "$as_dir" && as_dir=.
5675  # Account for people who put trailing slashes in PATH elements.
5676case $as_dir/ in
5677  ./ | .// | /cC/* | \
5678  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5679  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5680  /usr/ucb/* ) ;;
5681  *)
5682    # OSF1 and SCO ODT 3.0 have their own names for install.
5683    # Don't use installbsd from OSF since it installs stuff as root
5684    # by default.
5685    for ac_prog in ginstall scoinst install; do
5686      for ac_exec_ext in '' $ac_executable_extensions; do
5687        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5688          if test $ac_prog = install &&
5689            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5690            # AIX install.  It has an incompatible calling convention.
5691            :
5692          elif test $ac_prog = install &&
5693            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5694            # program-specific install script used by HP pwplus--don't use.
5695            :
5696          else
5697            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5698            break 3
5699          fi
5700        fi
5701      done
5702    done
5703    ;;
5704esac
5705done
5706
5707
5708fi
5709  if test "${ac_cv_path_install+set}" = set; then
5710    INSTALL=$ac_cv_path_install
5711  else
5712    # As a last resort, use the slow shell script.  We don't cache a
5713    # path for INSTALL within a source directory, because that will
5714    # break other packages using the cache if that directory is
5715    # removed, or if the path is relative.
5716    INSTALL=$ac_install_sh
5717  fi
5718fi
5719echo "$as_me:$LINENO: result: $INSTALL" >&5
5720echo "${ECHO_T}$INSTALL" >&6
5721
5722# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5723# It thinks the first close brace ends the variable substitution.
5724test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5725
5726test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5727
5728test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5729
5730echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5731echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5732# Just in case
5733sleep 1
5734echo timestamp > conftest.file
5735# Do `set' in a subshell so we don't clobber the current shell's
5736# arguments.  Must try -L first in case configure is actually a
5737# symlink; some systems play weird games with the mod time of symlinks
5738# (eg FreeBSD returns the mod time of the symlink's containing
5739# directory).
5740if (
5741   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5742   if test "$*" = "X"; then
5743      # -L didn't work.
5744      set X `ls -t $srcdir/configure conftest.file`
5745   fi
5746   rm -f conftest.file
5747   if test "$*" != "X $srcdir/configure conftest.file" \
5748      && test "$*" != "X conftest.file $srcdir/configure"; then
5749
5750      # If neither matched, then we have a broken ls.  This can happen
5751      # if, for instance, CONFIG_SHELL is bash and it inherits a
5752      # broken ls alias from the environment.  This has actually
5753      # happened.  Such a system could not be considered "sane".
5754      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5755alias in your environment" >&5
5756echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5757alias in your environment" >&2;}
5758   { (exit 1); exit 1; }; }
5759   fi
5760
5761   test "$2" = conftest.file
5762   )
5763then
5764   # Ok.
5765   :
5766else
5767   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5768Check your system clock" >&5
5769echo "$as_me: error: newly created file is older than distributed files!
5770Check your system clock" >&2;}
5771   { (exit 1); exit 1; }; }
5772fi
5773echo "$as_me:$LINENO: result: yes" >&5
5774echo "${ECHO_T}yes" >&6
5775test "$program_prefix" != NONE &&
5776  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5777# Use a double $ so make ignores it.
5778test "$program_suffix" != NONE &&
5779  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5780# Double any \ or $.  echo might interpret backslashes.
5781# By default was `s,x,x', remove it if useless.
5782cat <<\_ACEOF >conftest.sed
5783s/[\\$]/&&/g;s/;s,x,x,$//
5784_ACEOF
5785program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5786rm conftest.sed
5787
5788# expand $ac_aux_dir to an absolute path
5789am_aux_dir=`cd $ac_aux_dir && pwd`
5790
5791test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5792# Use eval to expand $SHELL
5793if eval "$MISSING --run true"; then
5794  am_missing_run="$MISSING --run "
5795else
5796  am_missing_run=
5797  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5798echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5799fi
5800
5801if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5802  # We used to keeping the `.' as first argument, in order to
5803  # allow $(mkdir_p) to be used without argument.  As in
5804  #   $(mkdir_p) $(somedir)
5805  # where $(somedir) is conditionally defined.  However this is wrong
5806  # for two reasons:
5807  #  1. if the package is installed by a user who cannot write `.'
5808  #     make install will fail,
5809  #  2. the above comment should most certainly read
5810  #     $(mkdir_p) $(DESTDIR)$(somedir)
5811  #     so it does not work when $(somedir) is undefined and
5812  #     $(DESTDIR) is not.
5813  #  To support the latter case, we have to write
5814  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5815  #  so the `.' trick is pointless.
5816  mkdir_p='mkdir -p --'
5817else
5818  # On NextStep and OpenStep, the `mkdir' command does not
5819  # recognize any option.  It will interpret all options as
5820  # directories to create, and then abort because `.' already
5821  # exists.
5822  for d in ./-p ./--version;
5823  do
5824    test -d $d && rmdir $d
5825  done
5826  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5827  if test -f "$ac_aux_dir/mkinstalldirs"; then
5828    mkdir_p='$(mkinstalldirs)'
5829  else
5830    mkdir_p='$(install_sh) -d'
5831  fi
5832fi
5833
5834for ac_prog in gawk mawk nawk awk
5835do
5836  # Extract the first word of "$ac_prog", so it can be a program name with args.
5837set dummy $ac_prog; ac_word=$2
5838echo "$as_me:$LINENO: checking for $ac_word" >&5
5839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5840if test "${ac_cv_prog_AWK+set}" = set; then
5841  echo $ECHO_N "(cached) $ECHO_C" >&6
5842else
5843  if test -n "$AWK"; then
5844  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5845else
5846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847for as_dir in $PATH
5848do
5849  IFS=$as_save_IFS
5850  test -z "$as_dir" && as_dir=.
5851  for ac_exec_ext in '' $ac_executable_extensions; do
5852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853    ac_cv_prog_AWK="$ac_prog"
5854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855    break 2
5856  fi
5857done
5858done
5859
5860fi
5861fi
5862AWK=$ac_cv_prog_AWK
5863if test -n "$AWK"; then
5864  echo "$as_me:$LINENO: result: $AWK" >&5
5865echo "${ECHO_T}$AWK" >&6
5866else
5867  echo "$as_me:$LINENO: result: no" >&5
5868echo "${ECHO_T}no" >&6
5869fi
5870
5871  test -n "$AWK" && break
5872done
5873
5874echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5875echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5876set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5877if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5878  echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880  cat >conftest.make <<\_ACEOF
5881all:
5882        @echo 'ac_maketemp="$(MAKE)"'
5883_ACEOF
5884# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5885eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5886if test -n "$ac_maketemp"; then
5887  eval ac_cv_prog_make_${ac_make}_set=yes
5888else
5889  eval ac_cv_prog_make_${ac_make}_set=no
5890fi
5891rm -f conftest.make
5892fi
5893if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5894  echo "$as_me:$LINENO: result: yes" >&5
5895echo "${ECHO_T}yes" >&6
5896  SET_MAKE=
5897else
5898  echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6
5900  SET_MAKE="MAKE=${MAKE-make}"
5901fi
5902
5903rm -rf .tst 2>/dev/null
5904mkdir .tst 2>/dev/null
5905if test -d .tst; then
5906  am__leading_dot=.
5907else
5908  am__leading_dot=_
5909fi
5910rmdir .tst 2>/dev/null
5911
5912DEPDIR="${am__leading_dot}deps"
5913
5914          ac_config_commands="$ac_config_commands depfiles"
5915
5916
5917am_make=${MAKE-make}
5918cat > confinc << 'END'
5919am__doit:
5920        @echo done
5921.PHONY: am__doit
5922END
5923# If we don't find an include directive, just comment out the code.
5924echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5925echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5926am__include="#"
5927am__quote=
5928_am_result=none
5929# First try GNU make style include.
5930echo "include confinc" > confmf
5931# We grep out `Entering directory' and `Leaving directory'
5932# messages which can occur if `w' ends up in MAKEFLAGS.
5933# In particular we don't look at `^make:' because GNU make might
5934# be invoked under some other name (usually "gmake"), in which
5935# case it prints its new name instead of `make'.
5936if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5937   am__include=include
5938   am__quote=
5939   _am_result=GNU
5940fi
5941# Now try BSD make style include.
5942if test "$am__include" = "#"; then
5943   echo '.include "confinc"' > confmf
5944   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5945      am__include=.include
5946      am__quote="\""
5947      _am_result=BSD
5948   fi
5949fi
5950
5951
5952echo "$as_me:$LINENO: result: $_am_result" >&5
5953echo "${ECHO_T}$_am_result" >&6
5954rm -f confinc confmf
5955
5956# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5957if test "${enable_dependency_tracking+set}" = set; then
5958  enableval="$enable_dependency_tracking"
5959
5960fi;
5961if test "x$enable_dependency_tracking" != xno; then
5962  am_depcomp="$ac_aux_dir/depcomp"
5963  AMDEPBACKSLASH='\'
5964fi
5965
5966
5967if test "x$enable_dependency_tracking" != xno; then
5968  AMDEP_TRUE=
5969  AMDEP_FALSE='#'
5970else
5971  AMDEP_TRUE='#'
5972  AMDEP_FALSE=
5973fi
5974
5975
5976
5977
5978
5979
5980# AC_MSG_NOTICE([Beginning automake initialisation.])
5981# Stuff for automake
5982# test to see if srcdir already configured
5983if test "`cd $srcdir && pwd`" != "`pwd`" &&
5984   test -f $srcdir/config.status; then
5985  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5986echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5987   { (exit 1); exit 1; }; }
5988fi
5989
5990# test whether we have cygpath
5991if test -z "$CYGPATH_W"; then
5992  if (cygpath --version) >/dev/null 2>/dev/null; then
5993    CYGPATH_W='cygpath -w'
5994  else
5995    CYGPATH_W=echo
5996  fi
5997fi
5998
5999
6000# Define the identity of the package.
6001 PACKAGE='thirdpartymumps'
6002 VERSION='1.4.4'
6003
6004
6005cat >>confdefs.h <<_ACEOF
6006#define PACKAGE "$PACKAGE"
6007_ACEOF
6008
6009
6010cat >>confdefs.h <<_ACEOF
6011#define VERSION "$VERSION"
6012_ACEOF
6013
6014# Some tools Automake needs.
6015
6016ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6017
6018
6019AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6020
6021
6022AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6023
6024
6025AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6026
6027
6028MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6029
6030install_sh=${install_sh-"$am_aux_dir/install-sh"}
6031
6032# Installed binaries are usually stripped using `strip' when the user
6033# run `make install-strip'.  However `strip' might not be the right
6034# tool to use in cross-compilation environments, therefore Automake
6035# will honor the `STRIP' environment variable to overrule this program.
6036if test "$cross_compiling" != no; then
6037  if test -n "$ac_tool_prefix"; then
6038  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6039set dummy ${ac_tool_prefix}strip; ac_word=$2
6040echo "$as_me:$LINENO: checking for $ac_word" >&5
6041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6042if test "${ac_cv_prog_STRIP+set}" = set; then
6043  echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045  if test -n "$STRIP"; then
6046  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051  IFS=$as_save_IFS
6052  test -z "$as_dir" && as_dir=.
6053  for ac_exec_ext in '' $ac_executable_extensions; do
6054  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057    break 2
6058  fi
6059done
6060done
6061
6062fi
6063fi
6064STRIP=$ac_cv_prog_STRIP
6065if test -n "$STRIP"; then
6066  echo "$as_me:$LINENO: result: $STRIP" >&5
6067echo "${ECHO_T}$STRIP" >&6
6068else
6069  echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6
6071fi
6072
6073fi
6074if test -z "$ac_cv_prog_STRIP"; then
6075  ac_ct_STRIP=$STRIP
6076  # Extract the first word of "strip", so it can be a program name with args.
6077set dummy strip; ac_word=$2
6078echo "$as_me:$LINENO: checking for $ac_word" >&5
6079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6080if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6081  echo $ECHO_N "(cached) $ECHO_C" >&6
6082else
6083  if test -n "$ac_ct_STRIP"; then
6084  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6085else
6086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087for as_dir in $PATH
6088do
6089  IFS=$as_save_IFS
6090  test -z "$as_dir" && as_dir=.
6091  for ac_exec_ext in '' $ac_executable_extensions; do
6092  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093    ac_cv_prog_ac_ct_STRIP="strip"
6094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095    break 2
6096  fi
6097done
6098done
6099
6100  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6101fi
6102fi
6103ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6104if test -n "$ac_ct_STRIP"; then
6105  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6106echo "${ECHO_T}$ac_ct_STRIP" >&6
6107else
6108  echo "$as_me:$LINENO: result: no" >&5
6109echo "${ECHO_T}no" >&6
6110fi
6111
6112  STRIP=$ac_ct_STRIP
6113else
6114  STRIP="$ac_cv_prog_STRIP"
6115fi
6116
6117fi
6118INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6119
6120# We need awk for the "check" target.  The system "awk" is bad on
6121# some platforms.
6122# Always define AMTAR for backward compatibility.
6123
6124AMTAR=${AMTAR-"${am_missing_run}tar"}
6125
6126am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6127
6128
6129
6130
6131depcc="$CC"   am_compiler_list=
6132
6133echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6134echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6135if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6136  echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
6138  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6139  # We make a subdir and do the tests there.  Otherwise we can end up
6140  # making bogus files that we don't know about and never remove.  For
6141  # instance it was reported that on HP-UX the gcc test will end up
6142  # making a dummy file named `D' -- because `-MD' means `put the output
6143  # in D'.
6144  mkdir conftest.dir
6145  # Copy depcomp to subdir because otherwise we won't find it if we're
6146  # using a relative directory.
6147  cp "$am_depcomp" conftest.dir
6148  cd conftest.dir
6149  # We will build objects and dependencies in a subdirectory because
6150  # it helps to detect inapplicable dependency modes.  For instance
6151  # both Tru64's cc and ICC support -MD to output dependencies as a
6152  # side effect of compilation, but ICC will put the dependencies in
6153  # the current directory while Tru64 will put them in the object
6154  # directory.
6155  mkdir sub
6156
6157  am_cv_CC_dependencies_compiler_type=none
6158  if test "$am_compiler_list" = ""; then
6159     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6160  fi
6161  for depmode in $am_compiler_list; do
6162    # Setup a source with many dependencies, because some compilers
6163    # like to wrap large dependency lists on column 80 (with \), and
6164    # we should not choose a depcomp mode which is confused by this.
6165    #
6166    # We need to recreate these files for each test, as the compiler may
6167    # overwrite some of them when testing with obscure command lines.
6168    # This happens at least with the AIX C compiler.
6169    : > sub/conftest.c
6170    for i in 1 2 3 4 5 6; do
6171      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6172      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6173      # Solaris 8's {/usr,}/bin/sh.
6174      touch sub/conftst$i.h
6175    done
6176    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6177
6178    case $depmode in
6179    nosideeffect)
6180      # after this tag, mechanisms are not by side-effect, so they'll
6181      # only be used when explicitly requested
6182      if test "x$enable_dependency_tracking" = xyes; then
6183        continue
6184      else
6185        break
6186      fi
6187      ;;
6188    none) break ;;
6189    esac
6190    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6191    # mode.  It turns out that the SunPro C++ compiler does not properly
6192    # handle `-M -o', and we need to detect this.
6193    if depmode=$depmode \
6194       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6195       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6196       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6197         >/dev/null 2>conftest.err &&
6198       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6199       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6200       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6201      # icc doesn't choke on unknown options, it will just issue warnings
6202      # or remarks (even with -Werror).  So we grep stderr for any message
6203      # that says an option was ignored or not supported.
6204      # When given -MP, icc 7.0 and 7.1 complain thusly:
6205      #   icc: Command line warning: ignoring option '-M'; no argument required
6206      # The diagnosis changed in icc 8.0:
6207      #   icc: Command line remark: option '-MP' not supported
6208      if (grep 'ignoring option' conftest.err ||
6209          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6210        am_cv_CC_dependencies_compiler_type=$depmode
6211        break
6212      fi
6213    fi
6214  done
6215
6216  cd ..
6217  rm -rf conftest.dir
6218else
6219  am_cv_CC_dependencies_compiler_type=none
6220fi
6221
6222fi
6223echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6224echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6225CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6226
6227
6228
6229if
6230  test "x$enable_dependency_tracking" != xno \
6231  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6232  am__fastdepCC_TRUE=
6233  am__fastdepCC_FALSE='#'
6234else
6235  am__fastdepCC_TRUE='#'
6236  am__fastdepCC_FALSE=
6237fi
6238
6239
6240
6241echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6242echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6243    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6244if test "${enable_maintainer_mode+set}" = set; then
6245  enableval="$enable_maintainer_mode"
6246  USE_MAINTAINER_MODE=$enableval
6247else
6248  USE_MAINTAINER_MODE=no
6249fi;
6250  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6251echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6252
6253
6254if test $USE_MAINTAINER_MODE = yes; then
6255  MAINTAINER_MODE_TRUE=
6256  MAINTAINER_MODE_FALSE='#'
6257else
6258  MAINTAINER_MODE_TRUE='#'
6259  MAINTAINER_MODE_FALSE=
6260fi
6261
6262  MAINT=$MAINTAINER_MODE_TRUE
6263
6264
6265
6266coin_have_externals=no
6267if test "$enable_maintainer_mode" = yes; then
6268
6269  # If maintainer mode is chosen, we make sure that the correct versions
6270  # of the tools are used, and that we know where libtool.m4 is (to
6271  # recreate acinclude.m4)
6272
6273
6274  LIBTOOLM4=
6275  # Normally, $HOME
6276  AUTOTOOLS_DFLT=$HOME
6277
6278  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6279echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6280if test "${ac_cv_use_correct_autotools+set}" = set; then
6281  echo $ECHO_N "(cached) $ECHO_C" >&6
6282else
6283  ac_cv_use_correct_autotools=check
6284fi
6285echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6286echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6287
6288  if test $ac_cv_use_correct_autotools = check; then
6289    ac_cv_use_correct_autotools=yes
6290    # Check if we have autoconf
6291    # Extract the first word of "autoconf", so it can be a program name with args.
6292set dummy autoconf; ac_word=$2
6293echo "$as_me:$LINENO: checking for $ac_word" >&5
6294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6295if test "${ac_cv_prog_have_autoconf+set}" = set; then
6296  echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298  if test -n "$have_autoconf"; then
6299  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6300else
6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302for as_dir in $PATH
6303do
6304  IFS=$as_save_IFS
6305  test -z "$as_dir" && as_dir=.
6306  for ac_exec_ext in '' $ac_executable_extensions; do
6307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308    ac_cv_prog_have_autoconf="yes"
6309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310    break 2
6311  fi
6312done
6313done
6314
6315  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6316fi
6317fi
6318have_autoconf=$ac_cv_prog_have_autoconf
6319if test -n "$have_autoconf"; then
6320  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6321echo "${ECHO_T}$have_autoconf" >&6
6322else
6323  echo "$as_me:$LINENO: result: no" >&5
6324echo "${ECHO_T}no" >&6
6325fi
6326
6327    if test $have_autoconf = no; then
6328      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6329echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6330   { (exit 1); exit 1; }; }
6331    fi
6332
6333    # Check whether autoconf is the correct version
6334    correct_version='2.59'
6335    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6336    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6337echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6338    autoconf --version > confauto.out 2>&1
6339    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6340      echo "$as_me:$LINENO: result: yes" >&5
6341echo "${ECHO_T}yes" >&6
6342    else
6343      rm -f confauto.out
6344      echo "$as_me:$LINENO: result: no" >&5
6345echo "${ECHO_T}no" >&6
6346      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6347echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6348   { (exit 1); exit 1; }; }
6349    fi
6350    rm -f confauto.out
6351
6352    # Check if the executable autoconf is picked up from the correct location
6353    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6354echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6355    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6356    autoconf_dir=`cd $autoconf_dir; pwd`
6357    if test x$AUTOTOOLS_DIR = x; then
6358      want_dir=$AUTOTOOLS_DFLT/bin
6359    else
6360      want_dir=$AUTOTOOLS_DIR/bin
6361    fi
6362    if test $autoconf_dir = `cd $want_dir; pwd`; then
6363      echo "$as_me:$LINENO: result: yes" >&5
6364echo "${ECHO_T}yes" >&6
6365    else
6366      rm -f confauto.out
6367      echo "$as_me:$LINENO: result: no" >&5
6368echo "${ECHO_T}no" >&6
6369      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6370echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6371   { (exit 1); exit 1; }; }
6372    fi
6373
6374    # Check if we have automake
6375    # Extract the first word of "automake", so it can be a program name with args.
6376set dummy automake; ac_word=$2
6377echo "$as_me:$LINENO: checking for $ac_word" >&5
6378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6379if test "${ac_cv_prog_have_automake+set}" = set; then
6380  echo $ECHO_N "(cached) $ECHO_C" >&6
6381else
6382  if test -n "$have_automake"; then
6383  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6384else
6385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386for as_dir in $PATH
6387do
6388  IFS=$as_save_IFS
6389  test -z "$as_dir" && as_dir=.
6390  for ac_exec_ext in '' $ac_executable_extensions; do
6391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392    ac_cv_prog_have_automake="yes"
6393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6394    break 2
6395  fi
6396done
6397done
6398
6399  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6400fi
6401fi
6402have_automake=$ac_cv_prog_have_automake
6403if test -n "$have_automake"; then
6404  echo "$as_me:$LINENO: result: $have_automake" >&5
6405echo "${ECHO_T}$have_automake" >&6
6406else
6407  echo "$as_me:$LINENO: result: no" >&5
6408echo "${ECHO_T}no" >&6
6409fi
6410
6411    if test $have_automake = no; then
6412      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6413echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6414   { (exit 1); exit 1; }; }
6415    fi
6416
6417    # Check whether automake is the correct version
6418    correct_version='1.9.6'
6419    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6420    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6421echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6422    automake --version > confauto.out 2>&1
6423    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6424      echo "$as_me:$LINENO: result: yes" >&5
6425echo "${ECHO_T}yes" >&6
6426    else
6427      rm -f confauto.out
6428      echo "$as_me:$LINENO: result: no" >&5
6429echo "${ECHO_T}no" >&6
6430      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6431echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6432   { (exit 1); exit 1; }; }
6433    fi
6434    rm -f confauto.out
6435
6436    # Check if the executable automake is picked up from the correct location
6437    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6438echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6439    automake_dir=`which automake | sed -e 's=/automake=='`
6440    automake_dir=`cd $automake_dir; pwd`
6441    if test x$AUTOTOOLS_DIR = x; then
6442      want_dir=$AUTOTOOLS_DFLT/bin
6443    else
6444      want_dir=$AUTOTOOLS_DIR/bin
6445    fi
6446    if test $automake_dir = `cd $want_dir; pwd`; then
6447      echo "$as_me:$LINENO: result: yes" >&5
6448echo "${ECHO_T}yes" >&6
6449    else
6450      rm -f confauto.out
6451      echo "$as_me:$LINENO: result: no" >&5
6452echo "${ECHO_T}no" >&6
6453      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6454echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6455   { (exit 1); exit 1; }; }
6456    fi
6457
6458    # Check if this is the correct version of libtool (with escaped dots)
6459    if test x$AUTOTOOLS_DIR = x; then
6460      want_dir=$AUTOTOOLS_DFLT/share
6461    else
6462      want_dir=$AUTOTOOLS_DIR/share
6463    fi
6464    correct_version='1.5.22'
6465    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6466    if test -r $want_dir/libtool/ltmain.sh; then
6467  have_ltmain=yes
6468  :
6469else
6470  have_ltmain=no
6471  :
6472fi
6473
6474    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6475echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6476    if test $have_ltmain = yes; then
6477    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6478        echo "$as_me:$LINENO: result: yes" >&5
6479echo "${ECHO_T}yes" >&6
6480      else
6481        echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6
6483        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6484echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6485   { (exit 1); exit 1; }; }
6486      fi
6487    else
6488      echo "$as_me:$LINENO: result: no" >&5
6489echo "${ECHO_T}no" >&6
6490      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6491echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6492   { (exit 1); exit 1; }; }
6493    fi
6494  fi
6495
6496  # Check if we can find the libtool file
6497  if test x$AUTOTOOLS_DIR = x; then
6498    want_dir=$AUTOTOOLS_DFLT/share
6499  else
6500    want_dir=$AUTOTOOLS_DIR/share
6501  fi
6502  if test -r $want_dir/aclocal/libtool.m4; then
6503  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6504  :
6505else
6506  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6507echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6508   { (exit 1); exit 1; }; }
6509  :
6510fi
6511
6512
6513  # Check if we have an Dependencies file
6514  if test -r $srcdir/Dependencies; then
6515    coin_have_externals=yes
6516  fi
6517  # Check if subversion is installed and understands https
6518  # Extract the first word of "svn", so it can be a program name with args.
6519set dummy svn; ac_word=$2
6520echo "$as_me:$LINENO: checking for $ac_word" >&5
6521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6522if test "${ac_cv_prog_have_svn+set}" = set; then
6523  echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525  if test -n "$have_svn"; then
6526  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6527else
6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529for as_dir in $PATH
6530do
6531  IFS=$as_save_IFS
6532  test -z "$as_dir" && as_dir=.
6533  for ac_exec_ext in '' $ac_executable_extensions; do
6534  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535    ac_cv_prog_have_svn="yes"
6536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537    break 2
6538  fi
6539done
6540done
6541
6542  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6543fi
6544fi
6545have_svn=$ac_cv_prog_have_svn
6546if test -n "$have_svn"; then
6547  echo "$as_me:$LINENO: result: $have_svn" >&5
6548echo "${ECHO_T}$have_svn" >&6
6549else
6550  echo "$as_me:$LINENO: result: no" >&5
6551echo "${ECHO_T}no" >&6
6552fi
6553
6554  if test x$have_svn = xyes; then
6555    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6556echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6557if test "${ac_cv_svn_understands_https+set}" = set; then
6558  echo $ECHO_N "(cached) $ECHO_C" >&6
6559else
6560  svn --version > confauto.out 2>&1
6561                    if $EGREP https confauto.out >/dev/null 2>&1; then
6562                      ac_cv_svn_understands_https=yes
6563                    else
6564                      ac_cv_svn_understands_https=no
6565                      have_svn=no
6566                      ac_cv_prog_have_svn=no
6567                    fi
6568                    rm -f confauto.out
6569fi
6570echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6571echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6572  fi
6573
6574  # Find the location of the BuildTools directory
6575  BUILDTOOLSDIR=
6576  if test -r $srcdir/BuildTools/coin.m4; then
6577    BUILDTOOLSDIR=$srcdir/BuildTools
6578  else
6579    if test -r $srcdir/../BuildTools/coin.m4; then
6580      BUILDTOOLSDIR=$srcdir/../BuildTools
6581    else
6582      if test -r $srcdir/../../BuildTools/coin.m4; then
6583        BUILDTOOLSDIR=$srcdir/../../BuildTools
6584      else
6585        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6586echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6587   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6588      fi
6589    fi
6590  fi
6591
6592
6593  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6594  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6595    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6596  fi
6597
6598  # The following variable is set to the name of the directory where
6599  # the autotool scripts are located
6600
6601  AUX_DIR=$ac_aux_dir
6602fi
6603
6604# helpful variable for the base directory of this package
6605abs_source_dir=`cd $srcdir; pwd`
6606
6607
6608# Stuff for example Makefiles
6609if test x$prefix = xNONE; then
6610  full_prefix=$ac_default_prefix
6611else
6612  full_prefix=$prefix
6613fi
6614full_prefix=`cd $full_prefix ; pwd`
6615
6616abs_lib_dir=$full_prefix/lib
6617
6618abs_include_dir=$full_prefix/include
6619
6620abs_bin_dir=$full_prefix/bin
6621
6622
6623
6624if test $coin_have_externals = yes && test x$have_svn = xyes; then
6625  HAVE_EXTERNALS_TRUE=
6626  HAVE_EXTERNALS_FALSE='#'
6627else
6628  HAVE_EXTERNALS_TRUE='#'
6629  HAVE_EXTERNALS_FALSE=
6630fi
6631
6632
6633# AC_MSG_NOTICE([End automake initialisation.])
6634
6635
6636
6637LIBTOOL=
6638if test -r ../libtool; then
6639  coin_config_dir=..
6640  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6641fi
6642if test "x$LIBTOOL" = x; then
6643  if test -r ../../libtool; then
6644    coin_config_dir=../..
6645    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6646  fi
6647fi
6648
6649if test "x$LIBTOOL" = x; then
6650# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6651  # Stuff for libtool
6652  # Check whether --enable-shared or --disable-shared was given.
6653if test "${enable_shared+set}" = set; then
6654  enableval="$enable_shared"
6655  p=${PACKAGE-default}
6656    case $enableval in
6657    yes) enable_shared=yes ;;
6658    no) enable_shared=no ;;
6659    *)
6660      enable_shared=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_shared=yes
6667        fi
6668      done
6669      IFS="$lt_save_ifs"
6670      ;;
6671    esac
6672else
6673  enable_shared=yes
6674fi;
6675
6676# Check whether --enable-fast-install or --disable-fast-install was given.
6677if test "${enable_fast_install+set}" = set; then
6678  enableval="$enable_fast_install"
6679  p=${PACKAGE-default}
6680    case $enableval in
6681    yes) enable_fast_install=yes ;;
6682    no) enable_fast_install=no ;;
6683    *)
6684      enable_fast_install=no
6685      # Look at the argument we got.  We use all the common list separators.
6686      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6687      for pkg in $enableval; do
6688        IFS="$lt_save_ifs"
6689        if test "X$pkg" = "X$p"; then
6690          enable_fast_install=yes
6691        fi
6692      done
6693      IFS="$lt_save_ifs"
6694      ;;
6695    esac
6696else
6697  enable_fast_install=yes
6698fi;
6699
6700echo "$as_me:$LINENO: checking host system type" >&5
6701echo $ECHO_N "checking host system type... $ECHO_C" >&6
6702if test "${ac_cv_host+set}" = set; then
6703  echo $ECHO_N "(cached) $ECHO_C" >&6
6704else
6705  ac_cv_host_alias=$host_alias
6706test -z "$ac_cv_host_alias" &&
6707  ac_cv_host_alias=$ac_cv_build_alias
6708ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6709  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6710echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6711   { (exit 1); exit 1; }; }
6712
6713fi
6714echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6715echo "${ECHO_T}$ac_cv_host" >&6
6716host=$ac_cv_host
6717host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6718host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6719host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6720
6721
6722echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6723echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6724if test "${lt_cv_path_SED+set}" = set; then
6725  echo $ECHO_N "(cached) $ECHO_C" >&6
6726else
6727  # Loop through the user's path and test for sed and gsed.
6728# Then use that list of sed's as ones to test for truncation.
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732  IFS=$as_save_IFS
6733  test -z "$as_dir" && as_dir=.
6734  for lt_ac_prog in sed gsed; do
6735    for ac_exec_ext in '' $ac_executable_extensions; do
6736      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6737        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6738      fi
6739    done
6740  done
6741done
6742lt_ac_max=0
6743lt_ac_count=0
6744# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6745# along with /bin/sed that truncates output.
6746for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6747  test ! -f $lt_ac_sed && continue
6748  cat /dev/null > conftest.in
6749  lt_ac_count=0
6750  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6751  # Check for GNU sed and select it if it is found.
6752  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6753    lt_cv_path_SED=$lt_ac_sed
6754    break
6755  fi
6756  while true; do
6757    cat conftest.in conftest.in >conftest.tmp
6758    mv conftest.tmp conftest.in
6759    cp conftest.in conftest.nl
6760    echo >>conftest.nl
6761    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6762    cmp -s conftest.out conftest.nl || break
6763    # 10000 chars as input seems more than enough
6764    test $lt_ac_count -gt 10 && break
6765    lt_ac_count=`expr $lt_ac_count + 1`
6766    if test $lt_ac_count -gt $lt_ac_max; then
6767      lt_ac_max=$lt_ac_count
6768      lt_cv_path_SED=$lt_ac_sed
6769    fi
6770  done
6771done
6772
6773fi
6774
6775SED=$lt_cv_path_SED
6776echo "$as_me:$LINENO: result: $SED" >&5
6777echo "${ECHO_T}$SED" >&6
6778
6779
6780# Check whether --with-gnu-ld or --without-gnu-ld was given.
6781if test "${with_gnu_ld+set}" = set; then
6782  withval="$with_gnu_ld"
6783  test "$withval" = no || with_gnu_ld=yes
6784else
6785  with_gnu_ld=no
6786fi;
6787ac_prog=ld
6788if test "$GCC" = yes; then
6789  # Check if gcc -print-prog-name=ld gives a path.
6790  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6791echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6792  case $host in
6793  *-*-mingw*)
6794    # gcc leaves a trailing carriage return which upsets mingw
6795    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6796  *)
6797    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6798  esac
6799  case $ac_prog in
6800    # Accept absolute paths.
6801    [\\/]* | ?:[\\/]*)
6802      re_direlt='/[^/][^/]*/\.\./'
6803      # Canonicalize the pathname of ld
6804      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6805      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6806        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6807      done
6808      test -z "$LD" && LD="$ac_prog"
6809      ;;
6810  "")
6811    # If it fails, then pretend we aren't using GCC.
6812    ac_prog=ld
6813    ;;
6814  *)
6815    # If it is relative, then search for the first ld in PATH.
6816    with_gnu_ld=unknown
6817    ;;
6818  esac
6819elif test "$with_gnu_ld" = yes; then
6820  echo "$as_me:$LINENO: checking for GNU ld" >&5
6821echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6822else
6823  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6824echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6825fi
6826if test "${lt_cv_path_LD+set}" = set; then
6827  echo $ECHO_N "(cached) $ECHO_C" >&6
6828else
6829  if test -z "$LD"; then
6830  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6831  for ac_dir in $PATH; do
6832    IFS="$lt_save_ifs"
6833    test -z "$ac_dir" && ac_dir=.
6834    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6835      lt_cv_path_LD="$ac_dir/$ac_prog"
6836      # Check to see if the program is GNU ld.  I'd rather use --version,
6837      # but apparently some variants of GNU ld only accept -v.
6838      # Break only if it was the GNU/non-GNU ld that we prefer.
6839      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6840      *GNU* | *'with BFD'*)
6841        test "$with_gnu_ld" != no && break
6842        ;;
6843      *)
6844        test "$with_gnu_ld" != yes && break
6845        ;;
6846      esac
6847    fi
6848  done
6849  IFS="$lt_save_ifs"
6850else
6851  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6852fi
6853fi
6854
6855LD="$lt_cv_path_LD"
6856if test -n "$LD"; then
6857  echo "$as_me:$LINENO: result: $LD" >&5
6858echo "${ECHO_T}$LD" >&6
6859else
6860  echo "$as_me:$LINENO: result: no" >&5
6861echo "${ECHO_T}no" >&6
6862fi
6863test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6864echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6865   { (exit 1); exit 1; }; }
6866echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6867echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6868if test "${lt_cv_prog_gnu_ld+set}" = set; then
6869  echo $ECHO_N "(cached) $ECHO_C" >&6
6870else
6871  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6872case `$LD -v 2>&1 </dev/null` in
6873*GNU* | *'with BFD'*)
6874  lt_cv_prog_gnu_ld=yes
6875  ;;
6876*)
6877  lt_cv_prog_gnu_ld=no
6878  ;;
6879esac
6880fi
6881echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6882echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6883with_gnu_ld=$lt_cv_prog_gnu_ld
6884
6885
6886echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6887echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6888if test "${lt_cv_ld_reload_flag+set}" = set; then
6889  echo $ECHO_N "(cached) $ECHO_C" >&6
6890else
6891  lt_cv_ld_reload_flag='-r'
6892fi
6893echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6894echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6895reload_flag=$lt_cv_ld_reload_flag
6896case $reload_flag in
6897"" | " "*) ;;
6898*) reload_flag=" $reload_flag" ;;
6899esac
6900reload_cmds='$LD$reload_flag -o $output$reload_objs'
6901case $host_os in
6902  darwin*)
6903    if test "$GCC" = yes; then
6904      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6905    else
6906      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6907    fi
6908    ;;
6909esac
6910
6911echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6912echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6913if test "${lt_cv_path_NM+set}" = set; then
6914  echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916  if test -n "$NM"; then
6917  # Let the user override the test.
6918  lt_cv_path_NM="$NM"
6919else
6920  lt_nm_to_check="${ac_tool_prefix}nm"
6921  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6922    lt_nm_to_check="$lt_nm_to_check nm"
6923  fi
6924  for lt_tmp_nm in $lt_nm_to_check; do
6925    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6926    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6927      IFS="$lt_save_ifs"
6928      test -z "$ac_dir" && ac_dir=.
6929      tmp_nm="$ac_dir/$lt_tmp_nm"
6930      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6931        # Check to see if the nm accepts a BSD-compat flag.
6932        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6933        #   nm: unknown option "B" ignored
6934        # Tru64's nm complains that /dev/null is an invalid object file
6935        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6936        */dev/null* | *'Invalid file or object type'*)
6937          lt_cv_path_NM="$tmp_nm -B"
6938          break
6939          ;;
6940        *)
6941          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6942          */dev/null*)
6943            lt_cv_path_NM="$tmp_nm -p"
6944            break
6945            ;;
6946          *)
6947            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6948            continue # so that we can try to find one that supports BSD flags
6949            ;;
6950          esac
6951          ;;
6952        esac
6953      fi
6954    done
6955    IFS="$lt_save_ifs"
6956  done
6957  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6958fi
6959fi
6960echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6961echo "${ECHO_T}$lt_cv_path_NM" >&6
6962NM="$lt_cv_path_NM"
6963
6964echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6965echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6966if test "${lt_cv_deplibs_check_method+set}" = set; then
6967  echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969  lt_cv_file_magic_cmd='$MAGIC_CMD'
6970lt_cv_file_magic_test_file=
6971lt_cv_deplibs_check_method='unknown'
6972# Need to set the preceding variable on all platforms that support
6973# interlibrary dependencies.
6974# 'none' -- dependencies not supported.
6975# `unknown' -- same as none, but documents that we really don't know.
6976# 'pass_all' -- all dependencies passed with no checks.
6977# 'test_compile' -- check by making test program.
6978# 'file_magic [[regex]]' -- check by looking for files in library path
6979# which responds to the $file_magic_cmd with a given extended regex.
6980# If you have `file' or equivalent on your system and you're not sure
6981# whether `pass_all' will *always* work, you probably want this one.
6982
6983case $host_os in
6984aix4* | aix5*)
6985  lt_cv_deplibs_check_method=pass_all
6986  ;;
6987
6988beos*)
6989  lt_cv_deplibs_check_method=pass_all
6990  ;;
6991
6992bsdi[45]*)
6993  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6994  lt_cv_file_magic_cmd='/usr/bin/file -L'
6995  lt_cv_file_magic_test_file=/shlib/libc.so
6996  ;;
6997
6998cygwin*)
6999  # func_win32_libid is a shell function defined in ltmain.sh
7000  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7001  lt_cv_file_magic_cmd='func_win32_libid'
7002  ;;
7003
7004mingw* | pw32*)
7005  # Base MSYS/MinGW do not provide the 'file' command needed by
7006  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7007  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7008  lt_cv_file_magic_cmd='$OBJDUMP -f'
7009  ;;
7010
7011darwin* | rhapsody*)
7012  lt_cv_deplibs_check_method=pass_all
7013  ;;
7014
7015freebsd* | kfreebsd*-gnu | dragonfly*)
7016  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7017    case $host_cpu in
7018    i*86 )
7019      # Not sure whether the presence of OpenBSD here was a mistake.
7020      # Let's accept both of them until this is cleared up.
7021      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7022      lt_cv_file_magic_cmd=/usr/bin/file
7023      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7024      ;;
7025    esac
7026  else
7027    lt_cv_deplibs_check_method=pass_all
7028  fi
7029  ;;
7030
7031gnu*)
7032  lt_cv_deplibs_check_method=pass_all
7033  ;;
7034
7035hpux10.20* | hpux11*)
7036  lt_cv_file_magic_cmd=/usr/bin/file
7037  case $host_cpu in
7038  ia64*)
7039    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7040    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7041    ;;
7042  hppa*64*)
7043    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]'
7044    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7045    ;;
7046  *)
7047    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7048    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7049    ;;
7050  esac
7051  ;;
7052
7053interix3*)
7054  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7055  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7056  ;;
7057
7058irix5* | irix6* | nonstopux*)
7059  case $LD in
7060  *-32|*"-32 ") libmagic=32-bit;;
7061  *-n32|*"-n32 ") libmagic=N32;;
7062  *-64|*"-64 ") libmagic=64-bit;;
7063  *) libmagic=never-match;;
7064  esac
7065  lt_cv_deplibs_check_method=pass_all
7066  ;;
7067
7068# This must be Linux ELF.
7069linux*)
7070  lt_cv_deplibs_check_method=pass_all
7071  ;;
7072
7073netbsd*)
7074  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7075    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7076  else
7077    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7078  fi
7079  ;;
7080
7081newos6*)
7082  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7083  lt_cv_file_magic_cmd=/usr/bin/file
7084  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7085  ;;
7086
7087nto-qnx*)
7088  lt_cv_deplibs_check_method=unknown
7089  ;;
7090
7091openbsd*)
7092  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7093    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7094  else
7095    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7096  fi
7097  ;;
7098
7099osf3* | osf4* | osf5*)
7100  lt_cv_deplibs_check_method=pass_all
7101  ;;
7102
7103solaris*)
7104  lt_cv_deplibs_check_method=pass_all
7105  ;;
7106
7107sysv4 | sysv4.3*)
7108  case $host_vendor in
7109  motorola)
7110    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]'
7111    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7112    ;;
7113  ncr)
7114    lt_cv_deplibs_check_method=pass_all
7115    ;;
7116  sequent)
7117    lt_cv_file_magic_cmd='/bin/file'
7118    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7119    ;;
7120  sni)
7121    lt_cv_file_magic_cmd='/bin/file'
7122    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7123    lt_cv_file_magic_test_file=/lib/libc.so
7124    ;;
7125  siemens)
7126    lt_cv_deplibs_check_method=pass_all
7127    ;;
7128  pc)
7129    lt_cv_deplibs_check_method=pass_all
7130    ;;
7131  esac
7132  ;;
7133
7134sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7135  lt_cv_deplibs_check_method=pass_all
7136  ;;
7137esac
7138
7139fi
7140echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7141echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7142file_magic_cmd=$lt_cv_file_magic_cmd
7143deplibs_check_method=$lt_cv_deplibs_check_method
7144test -z "$deplibs_check_method" && deplibs_check_method=unknown
7145
7146
7147
7148
7149# If no C compiler was specified, use CC.
7150LTCC=${LTCC-"$CC"}
7151
7152# If no C compiler flags were specified, use CFLAGS.
7153LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7154
7155# Allow CC to be a program name with arguments.
7156compiler=$CC
7157
7158# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7159if test "${enable_libtool_lock+set}" = set; then
7160  enableval="$enable_libtool_lock"
7161
7162fi;
7163test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7164
7165# Some flags need to be propagated to the compiler or linker for good
7166# libtool support.
7167case $host in
7168ia64-*-hpux*)
7169  # Find out which ABI we are using.
7170  echo 'int i;' > conftest.$ac_ext
7171  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172  (eval $ac_compile) 2>&5
7173  ac_status=$?
7174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175  (exit $ac_status); }; then
7176    case `/usr/bin/file conftest.$ac_objext` in
7177    *ELF-32*)
7178      HPUX_IA64_MODE="32"
7179      ;;
7180    *ELF-64*)
7181      HPUX_IA64_MODE="64"
7182      ;;
7183    esac
7184  fi
7185  rm -rf conftest*
7186  ;;
7187*-*-irix6*)
7188  # Find out which ABI we are using.
7189  echo '#line 7189 "configure"' > conftest.$ac_ext
7190  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191  (eval $ac_compile) 2>&5
7192  ac_status=$?
7193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194  (exit $ac_status); }; then
7195   if test "$lt_cv_prog_gnu_ld" = yes; then
7196    case `/usr/bin/file conftest.$ac_objext` in
7197    *32-bit*)
7198      LD="${LD-ld} -melf32bsmip"
7199      ;;
7200    *N32*)
7201      LD="${LD-ld} -melf32bmipn32"
7202      ;;
7203    *64-bit*)
7204      LD="${LD-ld} -melf64bmip"
7205      ;;
7206    esac
7207   else
7208    case `/usr/bin/file conftest.$ac_objext` in
7209    *32-bit*)
7210      LD="${LD-ld} -32"
7211      ;;
7212    *N32*)
7213      LD="${LD-ld} -n32"
7214      ;;
7215    *64-bit*)
7216      LD="${LD-ld} -64"
7217      ;;
7218    esac
7219   fi
7220  fi
7221  rm -rf conftest*
7222  ;;
7223
7224x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7225  # Find out which ABI we are using.
7226  echo 'int i;' > conftest.$ac_ext
7227  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228  (eval $ac_compile) 2>&5
7229  ac_status=$?
7230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231  (exit $ac_status); }; then
7232    case `/usr/bin/file conftest.o` in
7233    *32-bit*)
7234      case $host in
7235        x86_64-*linux*)
7236          LD="${LD-ld} -m elf_i386"
7237          ;;
7238        ppc64-*linux*|powerpc64-*linux*)
7239          LD="${LD-ld} -m elf32ppclinux"
7240          ;;
7241        s390x-*linux*)
7242          LD="${LD-ld} -m elf_s390"
7243          ;;
7244        sparc64-*linux*)
7245          LD="${LD-ld} -m elf32_sparc"
7246          ;;
7247      esac
7248      ;;
7249    *64-bit*)
7250      case $host in
7251        x86_64-*linux*)
7252          LD="${LD-ld} -m elf_x86_64"
7253          ;;
7254        ppc*-*linux*|powerpc*-*linux*)
7255          LD="${LD-ld} -m elf64ppc"
7256          ;;
7257        s390*-*linux*)
7258          LD="${LD-ld} -m elf64_s390"
7259          ;;
7260        sparc*-*linux*)
7261          LD="${LD-ld} -m elf64_sparc"
7262          ;;
7263      esac
7264      ;;
7265    esac
7266  fi
7267  rm -rf conftest*
7268  ;;
7269
7270*-*-sco3.2v5*)
7271  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7272  SAVE_CFLAGS="$CFLAGS"
7273  CFLAGS="$CFLAGS -belf"
7274  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7275echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7276if test "${lt_cv_cc_needs_belf+set}" = set; then
7277  echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279  ac_ext=c
7280ac_cpp='$CPP $CPPFLAGS'
7281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283ac_compiler_gnu=$ac_cv_c_compiler_gnu
7284
7285     cat >conftest.$ac_ext <<_ACEOF
7286/* confdefs.h.  */
7287_ACEOF
7288cat confdefs.h >>conftest.$ac_ext
7289cat >>conftest.$ac_ext <<_ACEOF
7290/* end confdefs.h.  */
7291
7292#ifdef F77_DUMMY_MAIN
7293
7294#  ifdef __cplusplus
7295     extern "C"
7296#  endif
7297   int F77_DUMMY_MAIN() { return 1; }
7298
7299#endif
7300int
7301main ()
7302{
7303
7304  ;
7305  return 0;
7306}
7307_ACEOF
7308rm -f conftest.$ac_objext conftest$ac_exeext
7309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7310  (eval $ac_link) 2>conftest.er1
7311  ac_status=$?
7312  grep -v '^ *+' conftest.er1 >conftest.err
7313  rm -f conftest.er1
7314  cat conftest.err >&5
7315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316  (exit $ac_status); } &&
7317         { ac_try='test -z "$ac_c_werror_flag"
7318                         || test ! -s conftest.err'
7319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320  (eval $ac_try) 2>&5
7321  ac_status=$?
7322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323  (exit $ac_status); }; } &&
7324         { ac_try='test -s conftest$ac_exeext'
7325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326  (eval $ac_try) 2>&5
7327  ac_status=$?
7328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329  (exit $ac_status); }; }; then
7330  lt_cv_cc_needs_belf=yes
7331else
7332  echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
7335lt_cv_cc_needs_belf=no
7336fi
7337rm -f conftest.err conftest.$ac_objext \
7338      conftest$ac_exeext conftest.$ac_ext
7339     ac_ext=c
7340ac_cpp='$CPP $CPPFLAGS'
7341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343ac_compiler_gnu=$ac_cv_c_compiler_gnu
7344
7345fi
7346echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7347echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7348  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7349    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7350    CFLAGS="$SAVE_CFLAGS"
7351  fi
7352  ;;
7353sparc*-*solaris*)
7354  # Find out which ABI we are using.
7355  echo 'int i;' > conftest.$ac_ext
7356  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7357  (eval $ac_compile) 2>&5
7358  ac_status=$?
7359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360  (exit $ac_status); }; then
7361    case `/usr/bin/file conftest.o` in
7362    *64-bit*)
7363      case $lt_cv_prog_gnu_ld in
7364      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7365      *)    LD="${LD-ld} -64" ;;
7366      esac
7367      ;;
7368    esac
7369  fi
7370  rm -rf conftest*
7371  ;;
7372
7373
7374esac
7375
7376need_locks="$enable_libtool_lock"
7377
7378
7379
7380for ac_header in dlfcn.h
7381do
7382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7383if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384  echo "$as_me:$LINENO: checking for $ac_header" >&5
7385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7386if eval "test \"\${$as_ac_Header+set}\" = set"; then
7387  echo $ECHO_N "(cached) $ECHO_C" >&6
7388fi
7389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7391else
7392  # Is the header compilable?
7393echo "$as_me:$LINENO: checking $ac_header usability" >&5
7394echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7395cat >conftest.$ac_ext <<_ACEOF
7396/* confdefs.h.  */
7397_ACEOF
7398cat confdefs.h >>conftest.$ac_ext
7399cat >>conftest.$ac_ext <<_ACEOF
7400/* end confdefs.h.  */
7401$ac_includes_default
7402#include <$ac_header>
7403_ACEOF
7404rm -f conftest.$ac_objext
7405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7406  (eval $ac_compile) 2>conftest.er1
7407  ac_status=$?
7408  grep -v '^ *+' conftest.er1 >conftest.err
7409  rm -f conftest.er1
7410  cat conftest.err >&5
7411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412  (exit $ac_status); } &&
7413         { ac_try='test -z "$ac_c_werror_flag"
7414                         || test ! -s conftest.err'
7415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416  (eval $ac_try) 2>&5
7417  ac_status=$?
7418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419  (exit $ac_status); }; } &&
7420         { ac_try='test -s conftest.$ac_objext'
7421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422  (eval $ac_try) 2>&5
7423  ac_status=$?
7424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425  (exit $ac_status); }; }; then
7426  ac_header_compiler=yes
7427else
7428  echo "$as_me: failed program was:" >&5
7429sed 's/^/| /' conftest.$ac_ext >&5
7430
7431ac_header_compiler=no
7432fi
7433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7434echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7435echo "${ECHO_T}$ac_header_compiler" >&6
7436
7437# Is the header present?
7438echo "$as_me:$LINENO: checking $ac_header presence" >&5
7439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7440cat >conftest.$ac_ext <<_ACEOF
7441/* confdefs.h.  */
7442_ACEOF
7443cat confdefs.h >>conftest.$ac_ext
7444cat >>conftest.$ac_ext <<_ACEOF
7445/* end confdefs.h.  */
7446#include <$ac_header>
7447_ACEOF
7448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7449  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7450  ac_status=$?
7451  grep -v '^ *+' conftest.er1 >conftest.err
7452  rm -f conftest.er1
7453  cat conftest.err >&5
7454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455  (exit $ac_status); } >/dev/null; then
7456  if test -s conftest.err; then
7457    ac_cpp_err=$ac_c_preproc_warn_flag
7458    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7459  else
7460    ac_cpp_err=
7461  fi
7462else
7463  ac_cpp_err=yes
7464fi
7465if test -z "$ac_cpp_err"; then
7466  ac_header_preproc=yes
7467else
7468  echo "$as_me: failed program was:" >&5
7469sed 's/^/| /' conftest.$ac_ext >&5
7470
7471  ac_header_preproc=no
7472fi
7473rm -f conftest.err conftest.$ac_ext
7474echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7475echo "${ECHO_T}$ac_header_preproc" >&6
7476
7477# So?  What about this header?
7478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7479  yes:no: )
7480    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7481echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7482    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7483echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7484    ac_header_preproc=yes
7485    ;;
7486  no:yes:* )
7487    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7488echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7489    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7490echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7491    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7492echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7493    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7494echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7495    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7496echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7497    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7498echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7499    (
7500      cat <<\_ASBOX
7501## --------------------------------------------------------------- ##
7502## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7503## --------------------------------------------------------------- ##
7504_ASBOX
7505    ) |
7506      sed "s/^/$as_me: WARNING:     /" >&2
7507    ;;
7508esac
7509echo "$as_me:$LINENO: checking for $ac_header" >&5
7510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7511if eval "test \"\${$as_ac_Header+set}\" = set"; then
7512  echo $ECHO_N "(cached) $ECHO_C" >&6
7513else
7514  eval "$as_ac_Header=\$ac_header_preproc"
7515fi
7516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7518
7519fi
7520if test `eval echo '${'$as_ac_Header'}'` = yes; then
7521  cat >>confdefs.h <<_ACEOF
7522#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7523_ACEOF
7524
7525fi
7526
7527done
7528
7529ac_ext=cc
7530ac_cpp='$CXXCPP $CPPFLAGS'
7531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7534if test -n "$ac_tool_prefix"; then
7535  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7536  do
7537    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7538set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7539echo "$as_me:$LINENO: checking for $ac_word" >&5
7540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7541if test "${ac_cv_prog_CXX+set}" = set; then
7542  echo $ECHO_N "(cached) $ECHO_C" >&6
7543else
7544  if test -n "$CXX"; then
7545  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7546else
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550  IFS=$as_save_IFS
7551  test -z "$as_dir" && as_dir=.
7552  for ac_exec_ext in '' $ac_executable_extensions; do
7553  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556    break 2
7557  fi
7558done
7559done
7560
7561fi
7562fi
7563CXX=$ac_cv_prog_CXX
7564if test -n "$CXX"; then
7565  echo "$as_me:$LINENO: result: $CXX" >&5
7566echo "${ECHO_T}$CXX" >&6
7567else
7568  echo "$as_me:$LINENO: result: no" >&5
7569echo "${ECHO_T}no" >&6
7570fi
7571
7572    test -n "$CXX" && break
7573  done
7574fi
7575if test -z "$CXX"; then
7576  ac_ct_CXX=$CXX
7577  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7578do
7579  # Extract the first word of "$ac_prog", so it can be a program name with args.
7580set dummy $ac_prog; ac_word=$2
7581echo "$as_me:$LINENO: checking for $ac_word" >&5
7582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7583if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7584  echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586  if test -n "$ac_ct_CXX"; then
7587  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592  IFS=$as_save_IFS
7593  test -z "$as_dir" && as_dir=.
7594  for ac_exec_ext in '' $ac_executable_extensions; do
7595  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596    ac_cv_prog_ac_ct_CXX="$ac_prog"
7597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598    break 2
7599  fi
7600done
7601done
7602
7603fi
7604fi
7605ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7606if test -n "$ac_ct_CXX"; then
7607  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7608echo "${ECHO_T}$ac_ct_CXX" >&6
7609else
7610  echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6
7612fi
7613
7614  test -n "$ac_ct_CXX" && break
7615done
7616test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7617
7618  CXX=$ac_ct_CXX
7619fi
7620
7621
7622# Provide some information about the compiler.
7623echo "$as_me:$LINENO:" \
7624     "checking for C++ compiler version" >&5
7625ac_compiler=`set X $ac_compile; echo $2`
7626{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7627  (eval $ac_compiler --version </dev/null >&5) 2>&5
7628  ac_status=$?
7629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630  (exit $ac_status); }
7631{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7632  (eval $ac_compiler -v </dev/null >&5) 2>&5
7633  ac_status=$?
7634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635  (exit $ac_status); }
7636{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7637  (eval $ac_compiler -V </dev/null >&5) 2>&5
7638  ac_status=$?
7639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640  (exit $ac_status); }
7641
7642echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7643echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7644if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7645  echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647  cat >conftest.$ac_ext <<_ACEOF
7648/* confdefs.h.  */
7649_ACEOF
7650cat confdefs.h >>conftest.$ac_ext
7651cat >>conftest.$ac_ext <<_ACEOF
7652/* end confdefs.h.  */
7653
7654#ifdef F77_DUMMY_MAIN
7655
7656#  ifdef __cplusplus
7657     extern "C"
7658#  endif
7659   int F77_DUMMY_MAIN() { return 1; }
7660
7661#endif
7662int
7663main ()
7664{
7665#ifndef __GNUC__
7666       choke me
7667#endif
7668
7669  ;
7670  return 0;
7671}
7672_ACEOF
7673rm -f conftest.$ac_objext
7674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7675  (eval $ac_compile) 2>conftest.er1
7676  ac_status=$?
7677  grep -v '^ *+' conftest.er1 >conftest.err
7678  rm -f conftest.er1
7679  cat conftest.err >&5
7680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681  (exit $ac_status); } &&
7682         { ac_try='test -z "$ac_cxx_werror_flag"
7683                         || test ! -s conftest.err'
7684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685  (eval $ac_try) 2>&5
7686  ac_status=$?
7687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688  (exit $ac_status); }; } &&
7689         { ac_try='test -s conftest.$ac_objext'
7690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691  (eval $ac_try) 2>&5
7692  ac_status=$?
7693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694  (exit $ac_status); }; }; then
7695  ac_compiler_gnu=yes
7696else
7697  echo "$as_me: failed program was:" >&5
7698sed 's/^/| /' conftest.$ac_ext >&5
7699
7700ac_compiler_gnu=no
7701fi
7702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7703ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7704
7705fi
7706echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7707echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7708GXX=`test $ac_compiler_gnu = yes && echo yes`
7709ac_test_CXXFLAGS=${CXXFLAGS+set}
7710ac_save_CXXFLAGS=$CXXFLAGS
7711CXXFLAGS="-g"
7712echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7713echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7714if test "${ac_cv_prog_cxx_g+set}" = set; then
7715  echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717  cat >conftest.$ac_ext <<_ACEOF
7718/* confdefs.h.  */
7719_ACEOF
7720cat confdefs.h >>conftest.$ac_ext
7721cat >>conftest.$ac_ext <<_ACEOF
7722/* end confdefs.h.  */
7723
7724#ifdef F77_DUMMY_MAIN
7725
7726#  ifdef __cplusplus
7727     extern "C"
7728#  endif
7729   int F77_DUMMY_MAIN() { return 1; }
7730
7731#endif
7732int
7733main ()
7734{
7735
7736  ;
7737  return 0;
7738}
7739_ACEOF
7740rm -f conftest.$ac_objext
7741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742  (eval $ac_compile) 2>conftest.er1
7743  ac_status=$?
7744  grep -v '^ *+' conftest.er1 >conftest.err
7745  rm -f conftest.er1
7746  cat conftest.err >&5
7747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748  (exit $ac_status); } &&
7749         { ac_try='test -z "$ac_cxx_werror_flag"
7750                         || test ! -s conftest.err'
7751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752  (eval $ac_try) 2>&5
7753  ac_status=$?
7754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755  (exit $ac_status); }; } &&
7756         { ac_try='test -s conftest.$ac_objext'
7757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758  (eval $ac_try) 2>&5
7759  ac_status=$?
7760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761  (exit $ac_status); }; }; then
7762  ac_cv_prog_cxx_g=yes
7763else
7764  echo "$as_me: failed program was:" >&5
7765sed 's/^/| /' conftest.$ac_ext >&5
7766
7767ac_cv_prog_cxx_g=no
7768fi
7769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7770fi
7771echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7772echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7773if test "$ac_test_CXXFLAGS" = set; then
7774  CXXFLAGS=$ac_save_CXXFLAGS
7775elif test $ac_cv_prog_cxx_g = yes; then
7776  if test "$GXX" = yes; then
7777    CXXFLAGS="-g -O2"
7778  else
7779    CXXFLAGS="-g"
7780  fi
7781else
7782  if test "$GXX" = yes; then
7783    CXXFLAGS="-O2"
7784  else
7785    CXXFLAGS=
7786  fi
7787fi
7788for ac_declaration in \
7789   '' \
7790   'extern "C" void std::exit (int) throw (); using std::exit;' \
7791   'extern "C" void std::exit (int); using std::exit;' \
7792   'extern "C" void exit (int) throw ();' \
7793   'extern "C" void exit (int);' \
7794   'void exit (int);'
7795do
7796  cat >conftest.$ac_ext <<_ACEOF
7797/* confdefs.h.  */
7798_ACEOF
7799cat confdefs.h >>conftest.$ac_ext
7800cat >>conftest.$ac_ext <<_ACEOF
7801/* end confdefs.h.  */
7802$ac_declaration
7803#include <stdlib.h>
7804#ifdef F77_DUMMY_MAIN
7805
7806#  ifdef __cplusplus
7807     extern "C"
7808#  endif
7809   int F77_DUMMY_MAIN() { return 1; }
7810
7811#endif
7812int
7813main ()
7814{
7815exit (42);
7816  ;
7817  return 0;
7818}
7819_ACEOF
7820rm -f conftest.$ac_objext
7821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7822  (eval $ac_compile) 2>conftest.er1
7823  ac_status=$?
7824  grep -v '^ *+' conftest.er1 >conftest.err
7825  rm -f conftest.er1
7826  cat conftest.err >&5
7827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828  (exit $ac_status); } &&
7829         { ac_try='test -z "$ac_cxx_werror_flag"
7830                         || test ! -s conftest.err'
7831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832  (eval $ac_try) 2>&5
7833  ac_status=$?
7834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835  (exit $ac_status); }; } &&
7836         { ac_try='test -s conftest.$ac_objext'
7837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838  (eval $ac_try) 2>&5
7839  ac_status=$?
7840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841  (exit $ac_status); }; }; then
7842  :
7843else
7844  echo "$as_me: failed program was:" >&5
7845sed 's/^/| /' conftest.$ac_ext >&5
7846
7847continue
7848fi
7849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7850  cat >conftest.$ac_ext <<_ACEOF
7851/* confdefs.h.  */
7852_ACEOF
7853cat confdefs.h >>conftest.$ac_ext
7854cat >>conftest.$ac_ext <<_ACEOF
7855/* end confdefs.h.  */
7856$ac_declaration
7857#ifdef F77_DUMMY_MAIN
7858
7859#  ifdef __cplusplus
7860     extern "C"
7861#  endif
7862   int F77_DUMMY_MAIN() { return 1; }
7863
7864#endif
7865int
7866main ()
7867{
7868exit (42);
7869  ;
7870  return 0;
7871}
7872_ACEOF
7873rm -f conftest.$ac_objext
7874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7875  (eval $ac_compile) 2>conftest.er1
7876  ac_status=$?
7877  grep -v '^ *+' conftest.er1 >conftest.err
7878  rm -f conftest.er1
7879  cat conftest.err >&5
7880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881  (exit $ac_status); } &&
7882         { ac_try='test -z "$ac_cxx_werror_flag"
7883                         || test ! -s conftest.err'
7884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885  (eval $ac_try) 2>&5
7886  ac_status=$?
7887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888  (exit $ac_status); }; } &&
7889         { ac_try='test -s conftest.$ac_objext'
7890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891  (eval $ac_try) 2>&5
7892  ac_status=$?
7893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894  (exit $ac_status); }; }; then
7895  break
7896else
7897  echo "$as_me: failed program was:" >&5
7898sed 's/^/| /' conftest.$ac_ext >&5
7899
7900fi
7901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7902done
7903rm -f conftest*
7904if test -n "$ac_declaration"; then
7905  echo '#ifdef __cplusplus' >>confdefs.h
7906  echo $ac_declaration      >>confdefs.h
7907  echo '#endif'             >>confdefs.h
7908fi
7909
7910ac_ext=cc
7911ac_cpp='$CXXCPP $CPPFLAGS'
7912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7915
7916depcc="$CXX"  am_compiler_list=
7917
7918echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7919echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7920if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7921  echo $ECHO_N "(cached) $ECHO_C" >&6
7922else
7923  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7924  # We make a subdir and do the tests there.  Otherwise we can end up
7925  # making bogus files that we don't know about and never remove.  For
7926  # instance it was reported that on HP-UX the gcc test will end up
7927  # making a dummy file named `D' -- because `-MD' means `put the output
7928  # in D'.
7929  mkdir conftest.dir
7930  # Copy depcomp to subdir because otherwise we won't find it if we're
7931  # using a relative directory.
7932  cp "$am_depcomp" conftest.dir
7933  cd conftest.dir
7934  # We will build objects and dependencies in a subdirectory because
7935  # it helps to detect inapplicable dependency modes.  For instance
7936  # both Tru64's cc and ICC support -MD to output dependencies as a
7937  # side effect of compilation, but ICC will put the dependencies in
7938  # the current directory while Tru64 will put them in the object
7939  # directory.
7940  mkdir sub
7941
7942  am_cv_CXX_dependencies_compiler_type=none
7943  if test "$am_compiler_list" = ""; then
7944     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7945  fi
7946  for depmode in $am_compiler_list; do
7947    # Setup a source with many dependencies, because some compilers
7948    # like to wrap large dependency lists on column 80 (with \), and
7949    # we should not choose a depcomp mode which is confused by this.
7950    #
7951    # We need to recreate these files for each test, as the compiler may
7952    # overwrite some of them when testing with obscure command lines.
7953    # This happens at least with the AIX C compiler.
7954    : > sub/conftest.c
7955    for i in 1 2 3 4 5 6; do
7956      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7957      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7958      # Solaris 8's {/usr,}/bin/sh.
7959      touch sub/conftst$i.h
7960    done
7961    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7962
7963    case $depmode in
7964    nosideeffect)
7965      # after this tag, mechanisms are not by side-effect, so they'll
7966      # only be used when explicitly requested
7967      if test "x$enable_dependency_tracking" = xyes; then
7968        continue
7969      else
7970        break
7971      fi
7972      ;;
7973    none) break ;;
7974    esac
7975    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7976    # mode.  It turns out that the SunPro C++ compiler does not properly
7977    # handle `-M -o', and we need to detect this.
7978    if depmode=$depmode \
7979       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7980       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7981       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7982         >/dev/null 2>conftest.err &&
7983       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7984       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7985       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7986      # icc doesn't choke on unknown options, it will just issue warnings
7987      # or remarks (even with -Werror).  So we grep stderr for any message
7988      # that says an option was ignored or not supported.
7989      # When given -MP, icc 7.0 and 7.1 complain thusly:
7990      #   icc: Command line warning: ignoring option '-M'; no argument required
7991      # The diagnosis changed in icc 8.0:
7992      #   icc: Command line remark: option '-MP' not supported
7993      if (grep 'ignoring option' conftest.err ||
7994          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7995        am_cv_CXX_dependencies_compiler_type=$depmode
7996        break
7997      fi
7998    fi
7999  done
8000
8001  cd ..
8002  rm -rf conftest.dir
8003else
8004  am_cv_CXX_dependencies_compiler_type=none
8005fi
8006
8007fi
8008echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8009echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8010CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8011
8012
8013
8014if
8015  test "x$enable_dependency_tracking" != xno \
8016  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8017  am__fastdepCXX_TRUE=
8018  am__fastdepCXX_FALSE='#'
8019else
8020  am__fastdepCXX_TRUE='#'
8021  am__fastdepCXX_FALSE=
8022fi
8023
8024
8025
8026
8027if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8028    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8029    (test "X$CXX" != "Xg++"))) ; then
8030  ac_ext=cc
8031ac_cpp='$CXXCPP $CPPFLAGS'
8032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8035echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8036echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8037if test -z "$CXXCPP"; then
8038  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8039  echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041      # Double quotes because CXXCPP needs to be expanded
8042    for CXXCPP in "$CXX -E" "/lib/cpp"
8043    do
8044      ac_preproc_ok=false
8045for ac_cxx_preproc_warn_flag in '' yes
8046do
8047  # Use a header file that comes with gcc, so configuring glibc
8048  # with a fresh cross-compiler works.
8049  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8050  # <limits.h> exists even on freestanding compilers.
8051  # On the NeXT, cc -E runs the code through the compiler's parser,
8052  # not just through cpp. "Syntax error" is here to catch this case.
8053  cat >conftest.$ac_ext <<_ACEOF
8054/* confdefs.h.  */
8055_ACEOF
8056cat confdefs.h >>conftest.$ac_ext
8057cat >>conftest.$ac_ext <<_ACEOF
8058/* end confdefs.h.  */
8059#ifdef __STDC__
8060# include <limits.h>
8061#else
8062# include <assert.h>
8063#endif
8064                     Syntax error
8065_ACEOF
8066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8067  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8068  ac_status=$?
8069  grep -v '^ *+' conftest.er1 >conftest.err
8070  rm -f conftest.er1
8071  cat conftest.err >&5
8072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073  (exit $ac_status); } >/dev/null; then
8074  if test -s conftest.err; then
8075    ac_cpp_err=$ac_cxx_preproc_warn_flag
8076    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8077  else
8078    ac_cpp_err=
8079  fi
8080else
8081  ac_cpp_err=yes
8082fi
8083if test -z "$ac_cpp_err"; then
8084  :
8085else
8086  echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
8089  # Broken: fails on valid input.
8090continue
8091fi
8092rm -f conftest.err conftest.$ac_ext
8093
8094  # OK, works on sane cases.  Now check whether non-existent headers
8095  # can be detected and how.
8096  cat >conftest.$ac_ext <<_ACEOF
8097/* confdefs.h.  */
8098_ACEOF
8099cat confdefs.h >>conftest.$ac_ext
8100cat >>conftest.$ac_ext <<_ACEOF
8101/* end confdefs.h.  */
8102#include <ac_nonexistent.h>
8103_ACEOF
8104if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8105  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8106  ac_status=$?
8107  grep -v '^ *+' conftest.er1 >conftest.err
8108  rm -f conftest.er1
8109  cat conftest.err >&5
8110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111  (exit $ac_status); } >/dev/null; then
8112  if test -s conftest.err; then
8113    ac_cpp_err=$ac_cxx_preproc_warn_flag
8114    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8115  else
8116    ac_cpp_err=
8117  fi
8118else
8119  ac_cpp_err=yes
8120fi
8121if test -z "$ac_cpp_err"; then
8122  # Broken: success on invalid input.
8123continue
8124else
8125  echo "$as_me: failed program was:" >&5
8126sed 's/^/| /' conftest.$ac_ext >&5
8127
8128  # Passes both tests.
8129ac_preproc_ok=:
8130break
8131fi
8132rm -f conftest.err conftest.$ac_ext
8133
8134done
8135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8136rm -f conftest.err conftest.$ac_ext
8137if $ac_preproc_ok; then
8138  break
8139fi
8140
8141    done
8142    ac_cv_prog_CXXCPP=$CXXCPP
8143
8144fi
8145  CXXCPP=$ac_cv_prog_CXXCPP
8146else
8147  ac_cv_prog_CXXCPP=$CXXCPP
8148fi
8149echo "$as_me:$LINENO: result: $CXXCPP" >&5
8150echo "${ECHO_T}$CXXCPP" >&6
8151ac_preproc_ok=false
8152for ac_cxx_preproc_warn_flag in '' yes
8153do
8154  # Use a header file that comes with gcc, so configuring glibc
8155  # with a fresh cross-compiler works.
8156  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8157  # <limits.h> exists even on freestanding compilers.
8158  # On the NeXT, cc -E runs the code through the compiler's parser,
8159  # not just through cpp. "Syntax error" is here to catch this case.
8160  cat >conftest.$ac_ext <<_ACEOF
8161/* confdefs.h.  */
8162_ACEOF
8163cat confdefs.h >>conftest.$ac_ext
8164cat >>conftest.$ac_ext <<_ACEOF
8165/* end confdefs.h.  */
8166#ifdef __STDC__
8167# include <limits.h>
8168#else
8169# include <assert.h>
8170#endif
8171                     Syntax error
8172_ACEOF
8173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8174  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8175  ac_status=$?
8176  grep -v '^ *+' conftest.er1 >conftest.err
8177  rm -f conftest.er1
8178  cat conftest.err >&5
8179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180  (exit $ac_status); } >/dev/null; then
8181  if test -s conftest.err; then
8182    ac_cpp_err=$ac_cxx_preproc_warn_flag
8183    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8184  else
8185    ac_cpp_err=
8186  fi
8187else
8188  ac_cpp_err=yes
8189fi
8190if test -z "$ac_cpp_err"; then
8191  :
8192else
8193  echo "$as_me: failed program was:" >&5
8194sed 's/^/| /' conftest.$ac_ext >&5
8195
8196  # Broken: fails on valid input.
8197continue
8198fi
8199rm -f conftest.err conftest.$ac_ext
8200
8201  # OK, works on sane cases.  Now check whether non-existent headers
8202  # can be detected and how.
8203  cat >conftest.$ac_ext <<_ACEOF
8204/* confdefs.h.  */
8205_ACEOF
8206cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h.  */
8209#include <ac_nonexistent.h>
8210_ACEOF
8211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8212  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8213  ac_status=$?
8214  grep -v '^ *+' conftest.er1 >conftest.err
8215  rm -f conftest.er1
8216  cat conftest.err >&5
8217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218  (exit $ac_status); } >/dev/null; then
8219  if test -s conftest.err; then
8220    ac_cpp_err=$ac_cxx_preproc_warn_flag
8221    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8222  else
8223    ac_cpp_err=
8224  fi
8225else
8226  ac_cpp_err=yes
8227fi
8228if test -z "$ac_cpp_err"; then
8229  # Broken: success on invalid input.
8230continue
8231else
8232  echo "$as_me: failed program was:" >&5
8233sed 's/^/| /' conftest.$ac_ext >&5
8234
8235  # Passes both tests.
8236ac_preproc_ok=:
8237break
8238fi
8239rm -f conftest.err conftest.$ac_ext
8240
8241done
8242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8243rm -f conftest.err conftest.$ac_ext
8244if $ac_preproc_ok; then
8245  :
8246else
8247  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8248See \`config.log' for more details." >&5
8249echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8250See \`config.log' for more details." >&2;}
8251   { (exit 1); exit 1; }; }
8252fi
8253
8254ac_ext=cc
8255ac_cpp='$CXXCPP $CPPFLAGS'
8256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8259
8260fi
8261
8262
8263
8264# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8265
8266# find the maximum length of command line arguments
8267echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8268echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8269if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8270  echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272    i=0
8273  teststring="ABCD"
8274
8275  case $build_os in
8276  msdosdjgpp*)
8277    # On DJGPP, this test can blow up pretty badly due to problems in libc
8278    # (any single argument exceeding 2000 bytes causes a buffer overrun
8279    # during glob expansion).  Even if it were fixed, the result of this
8280    # check would be larger than it should be.
8281    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8282    ;;
8283
8284  gnu*)
8285    # Under GNU Hurd, this test is not required because there is
8286    # no limit to the length of command line arguments.
8287    # Libtool will interpret -1 as no limit whatsoever
8288    lt_cv_sys_max_cmd_len=-1;
8289    ;;
8290
8291  cygwin* | mingw*)
8292    # On Win9x/ME, this test blows up -- it succeeds, but takes
8293    # about 5 minutes as the teststring grows exponentially.
8294    # Worse, since 9x/ME are not pre-emptively multitasking,
8295    # you end up with a "frozen" computer, even though with patience
8296    # the test eventually succeeds (with a max line length of 256k).
8297    # Instead, let's just punt: use the minimum linelength reported by
8298    # all of the supported platforms: 8192 (on NT/2K/XP).
8299    lt_cv_sys_max_cmd_len=8192;
8300    ;;
8301
8302  amigaos*)
8303    # On AmigaOS with pdksh, this test takes hours, literally.
8304    # So we just punt and use a minimum line length of 8192.
8305    lt_cv_sys_max_cmd_len=8192;
8306    ;;
8307
8308  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8309    # This has been around since 386BSD, at least.  Likely further.
8310    if test -x /sbin/sysctl; then
8311      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8312    elif test -x /usr/sbin/sysctl; then
8313      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8314    else
8315      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8316    fi
8317    # And add a safety zone
8318    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8319    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8320    ;;
8321
8322  interix*)
8323    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8324    lt_cv_sys_max_cmd_len=196608
8325    ;;
8326
8327  osf*)
8328    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8329    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8330    # nice to cause kernel panics so lets avoid the loop below.
8331    # First set a reasonable default.
8332    lt_cv_sys_max_cmd_len=16384
8333    #
8334    if test -x /sbin/sysconfig; then
8335      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8336        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8337      esac
8338    fi
8339    ;;
8340  sco3.2v5*)
8341    lt_cv_sys_max_cmd_len=102400
8342    ;;
8343  sysv5* | sco5v6* | sysv4.2uw2*)
8344    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8345    if test -n "$kargmax"; then
8346      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8347    else
8348      lt_cv_sys_max_cmd_len=32768
8349    fi
8350    ;;
8351  *)
8352    # If test is not a shell built-in, we'll probably end up computing a
8353    # maximum length that is only half of the actual maximum length, but
8354    # we can't tell.
8355    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8356    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8357               = "XX$teststring") >/dev/null 2>&1 &&
8358            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8359            lt_cv_sys_max_cmd_len=$new_result &&
8360            test $i != 17 # 1/2 MB should be enough
8361    do
8362      i=`expr $i + 1`
8363      teststring=$teststring$teststring
8364    done
8365    teststring=
8366    # Add a significant safety factor because C++ compilers can tack on massive
8367    # amounts of additional arguments before passing them to the linker.
8368    # It appears as though 1/2 is a usable value.
8369    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8370    ;;
8371  esac
8372
8373fi
8374
8375if test -n $lt_cv_sys_max_cmd_len ; then
8376  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8377echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8378else
8379  echo "$as_me:$LINENO: result: none" >&5
8380echo "${ECHO_T}none" >&6
8381fi
8382
8383
8384
8385
8386# Check for command to grab the raw symbol name followed by C symbol from nm.
8387echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8388echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8389if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8390  echo $ECHO_N "(cached) $ECHO_C" >&6
8391else
8392
8393# These are sane defaults that work on at least a few old systems.
8394# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8395
8396# Character class describing NM global symbol codes.
8397symcode='[BCDEGRST]'
8398
8399# Regexp to match symbols that can be accessed directly from C.
8400sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8401
8402# Transform an extracted symbol line into a proper C declaration
8403lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8404
8405# Transform an extracted symbol line into symbol name and symbol address
8406lt_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'"
8407
8408# Define system-specific variables.
8409case $host_os in
8410aix*)
8411  symcode='[BCDT]'
8412  ;;
8413cygwin* | mingw* | pw32*)
8414  symcode='[ABCDGISTW]'
8415  ;;
8416hpux*) # Its linker distinguishes data from code symbols
8417  if test "$host_cpu" = ia64; then
8418    symcode='[ABCDEGRST]'
8419  fi
8420  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8421  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'"
8422  ;;
8423linux*)
8424  if test "$host_cpu" = ia64; then
8425    symcode='[ABCDGIRSTW]'
8426    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8427    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'"
8428  fi
8429  ;;
8430irix* | nonstopux*)
8431  symcode='[BCDEGRST]'
8432  ;;
8433osf*)
8434  symcode='[BCDEGQRST]'
8435  ;;
8436solaris*)
8437  symcode='[BDRT]'
8438  ;;
8439sco3.2v5*)
8440  symcode='[DT]'
8441  ;;
8442sysv4.2uw2*)
8443  symcode='[DT]'
8444  ;;
8445sysv5* | sco5v6* | unixware* | OpenUNIX*)
8446  symcode='[ABDT]'
8447  ;;
8448sysv4)
8449  symcode='[DFNSTU]'
8450  ;;
8451esac
8452
8453# Handle CRLF in mingw tool chain
8454opt_cr=
8455case $build_os in
8456mingw*)
8457  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8458  ;;
8459esac
8460
8461# If we're using GNU nm, then use its standard symbol codes.
8462case `$NM -V 2>&1` in
8463*GNU* | *'with BFD'*)
8464  symcode='[ABCDGIRSTW]' ;;
8465esac
8466
8467# Try without a prefix undercore, then with it.
8468for ac_symprfx in "" "_"; do
8469
8470  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8471  symxfrm="\\1 $ac_symprfx\\2 \\2"
8472
8473  # Write the raw and C identifiers.
8474  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8475
8476  # Check to see that the pipe works correctly.
8477  pipe_works=no
8478
8479  rm -f conftest*
8480  cat > conftest.$ac_ext <<EOF
8481#ifdef __cplusplus
8482extern "C" {
8483#endif
8484char nm_test_var;
8485void nm_test_func(){}
8486#ifdef __cplusplus
8487}
8488#endif
8489int main(){nm_test_var='a';nm_test_func();return(0);}
8490EOF
8491
8492  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493  (eval $ac_compile) 2>&5
8494  ac_status=$?
8495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496  (exit $ac_status); }; then
8497    # Now try to grab the symbols.
8498    nlist=conftest.nm
8499    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8500  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8501  ac_status=$?
8502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503  (exit $ac_status); } && test -s "$nlist"; then
8504      # Try sorting and uniquifying the output.
8505      if sort "$nlist" | uniq > "$nlist"T; then
8506        mv -f "$nlist"T "$nlist"
8507      else
8508        rm -f "$nlist"T
8509      fi
8510
8511      # Make sure that we snagged all the symbols we need.
8512      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8513        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8514          cat <<EOF > conftest.$ac_ext
8515#ifdef __cplusplus
8516extern "C" {
8517#endif
8518
8519EOF
8520          # Now generate the symbol file.
8521          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8522
8523          cat <<EOF >> conftest.$ac_ext
8524#if defined (__STDC__) && __STDC__
8525# define lt_ptr_t void *
8526#else
8527# define lt_ptr_t char *
8528# define const
8529#endif
8530
8531/* The mapping between symbol names and symbols. */
8532const struct {
8533  const char *name;
8534  lt_ptr_t address;
8535}
8536lt_preloaded_symbols[] =
8537{
8538EOF
8539          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8540          cat <<\EOF >> conftest.$ac_ext
8541  {0, (lt_ptr_t) 0}
8542};
8543
8544#ifdef __cplusplus
8545}
8546#endif
8547EOF
8548          # Now try linking the two files.
8549          mv conftest.$ac_objext conftstm.$ac_objext
8550          lt_save_LIBS="$LIBS"
8551          lt_save_CFLAGS="$CFLAGS"
8552          LIBS="conftstm.$ac_objext"
8553          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8554          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555  (eval $ac_link) 2>&5
8556  ac_status=$?
8557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8559            pipe_works=yes
8560          fi
8561          LIBS="$lt_save_LIBS"
8562          CFLAGS="$lt_save_CFLAGS"
8563        else
8564          echo "cannot find nm_test_func in $nlist" >&5
8565        fi
8566      else
8567        echo "cannot find nm_test_var in $nlist" >&5
8568      fi
8569    else
8570      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8571    fi
8572  else
8573    echo "$progname: failed program was:" >&5
8574    cat conftest.$ac_ext >&5
8575  fi
8576  rm -f conftest* conftst*
8577
8578  # Do not use the global_symbol_pipe unless it works.
8579  if test "$pipe_works" = yes; then
8580    break
8581  else
8582    lt_cv_sys_global_symbol_pipe=
8583  fi
8584done
8585
8586fi
8587
8588if test -z "$lt_cv_sys_global_symbol_pipe"; then
8589  lt_cv_sys_global_symbol_to_cdecl=
8590fi
8591if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8592  echo "$as_me:$LINENO: result: failed" >&5
8593echo "${ECHO_T}failed" >&6
8594else
8595  echo "$as_me:$LINENO: result: ok" >&5
8596echo "${ECHO_T}ok" >&6
8597fi
8598
8599echo "$as_me:$LINENO: checking for objdir" >&5
8600echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8601if test "${lt_cv_objdir+set}" = set; then
8602  echo $ECHO_N "(cached) $ECHO_C" >&6
8603else
8604  rm -f .libs 2>/dev/null
8605mkdir .libs 2>/dev/null
8606if test -d .libs; then
8607  lt_cv_objdir=.libs
8608else
8609  # MS-DOS does not allow filenames that begin with a dot.
8610  lt_cv_objdir=_libs
8611fi
8612rmdir .libs 2>/dev/null
8613fi
8614echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8615echo "${ECHO_T}$lt_cv_objdir" >&6
8616objdir=$lt_cv_objdir
8617
8618
8619
8620
8621
8622case $host_os in
8623aix3*)
8624  # AIX sometimes has problems with the GCC collect2 program.  For some
8625  # reason, if we set the COLLECT_NAMES environment variable, the problems
8626  # vanish in a puff of smoke.
8627  if test "X${COLLECT_NAMES+set}" != Xset; then
8628    COLLECT_NAMES=
8629    export COLLECT_NAMES
8630  fi
8631  ;;
8632esac
8633
8634# Sed substitution that helps us do robust quoting.  It backslashifies
8635# metacharacters that are still active within double-quoted strings.
8636Xsed='sed -e 1s/^X//'
8637sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8638
8639# Same as above, but do not quote variable references.
8640double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8641
8642# Sed substitution to delay expansion of an escaped shell variable in a
8643# double_quote_subst'ed string.
8644delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8645
8646# Sed substitution to avoid accidental globbing in evaled expressions
8647no_glob_subst='s/\*/\\\*/g'
8648
8649# Constants:
8650rm="rm -f"
8651
8652# Global variables:
8653default_ofile=libtool
8654can_build_shared=yes
8655
8656# All known linkers require a `.a' archive for static linking (except MSVC,
8657# which needs '.lib').
8658libext=a
8659ltmain="$ac_aux_dir/ltmain.sh"
8660ofile="$default_ofile"
8661with_gnu_ld="$lt_cv_prog_gnu_ld"
8662
8663if test -n "$ac_tool_prefix"; then
8664  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8665set dummy ${ac_tool_prefix}ar; ac_word=$2
8666echo "$as_me:$LINENO: checking for $ac_word" >&5
8667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8668if test "${ac_cv_prog_AR+set}" = set; then
8669  echo $ECHO_N "(cached) $ECHO_C" >&6
8670else
8671  if test -n "$AR"; then
8672  ac_cv_prog_AR="$AR" # Let the user override the test.
8673else
8674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675for as_dir in $PATH
8676do
8677  IFS=$as_save_IFS
8678  test -z "$as_dir" && as_dir=.
8679  for ac_exec_ext in '' $ac_executable_extensions; do
8680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8681    ac_cv_prog_AR="${ac_tool_prefix}ar"
8682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8683    break 2
8684  fi
8685done
8686done
8687
8688fi
8689fi
8690AR=$ac_cv_prog_AR
8691if test -n "$AR"; then
8692  echo "$as_me:$LINENO: result: $AR" >&5
8693echo "${ECHO_T}$AR" >&6
8694else
8695  echo "$as_me:$LINENO: result: no" >&5
8696echo "${ECHO_T}no" >&6
8697fi
8698
8699fi
8700if test -z "$ac_cv_prog_AR"; then
8701  ac_ct_AR=$AR
8702  # Extract the first word of "ar", so it can be a program name with args.
8703set dummy ar; ac_word=$2
8704echo "$as_me:$LINENO: checking for $ac_word" >&5
8705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8706if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8707  echo $ECHO_N "(cached) $ECHO_C" >&6
8708else
8709  if test -n "$ac_ct_AR"; then
8710  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8711else
8712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
8714do
8715  IFS=$as_save_IFS
8716  test -z "$as_dir" && as_dir=.
8717  for ac_exec_ext in '' $ac_executable_extensions; do
8718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8719    ac_cv_prog_ac_ct_AR="ar"
8720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8721    break 2
8722  fi
8723done
8724done
8725
8726  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8727fi
8728fi
8729ac_ct_AR=$ac_cv_prog_ac_ct_AR
8730if test -n "$ac_ct_AR"; then
8731  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8732echo "${ECHO_T}$ac_ct_AR" >&6
8733else
8734  echo "$as_me:$LINENO: result: no" >&5
8735echo "${ECHO_T}no" >&6
8736fi
8737
8738  AR=$ac_ct_AR
8739else
8740  AR="$ac_cv_prog_AR"
8741fi
8742
8743if test -n "$ac_tool_prefix"; then
8744  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8745set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8746echo "$as_me:$LINENO: checking for $ac_word" >&5
8747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8748if test "${ac_cv_prog_RANLIB+set}" = set; then
8749  echo $ECHO_N "(cached) $ECHO_C" >&6
8750else
8751  if test -n "$RANLIB"; then
8752  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8753else
8754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757  IFS=$as_save_IFS
8758  test -z "$as_dir" && as_dir=.
8759  for ac_exec_ext in '' $ac_executable_extensions; do
8760  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8762    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8763    break 2
8764  fi
8765done
8766done
8767
8768fi
8769fi
8770RANLIB=$ac_cv_prog_RANLIB
8771if test -n "$RANLIB"; then
8772  echo "$as_me:$LINENO: result: $RANLIB" >&5
8773echo "${ECHO_T}$RANLIB" >&6
8774else
8775  echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
8777fi
8778
8779fi
8780if test -z "$ac_cv_prog_RANLIB"; then
8781  ac_ct_RANLIB=$RANLIB
8782  # Extract the first word of "ranlib", so it can be a program name with args.
8783set dummy ranlib; ac_word=$2
8784echo "$as_me:$LINENO: checking for $ac_word" >&5
8785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8786if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8787  echo $ECHO_N "(cached) $ECHO_C" >&6
8788else
8789  if test -n "$ac_ct_RANLIB"; then
8790  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8791else
8792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793for as_dir in $PATH
8794do
8795  IFS=$as_save_IFS
8796  test -z "$as_dir" && as_dir=.
8797  for ac_exec_ext in '' $ac_executable_extensions; do
8798  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799    ac_cv_prog_ac_ct_RANLIB="ranlib"
8800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8801    break 2
8802  fi
8803done
8804done
8805
8806  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8807fi
8808fi
8809ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8810if test -n "$ac_ct_RANLIB"; then
8811  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8812echo "${ECHO_T}$ac_ct_RANLIB" >&6
8813else
8814  echo "$as_me:$LINENO: result: no" >&5
8815echo "${ECHO_T}no" >&6
8816fi
8817
8818  RANLIB=$ac_ct_RANLIB
8819else
8820  RANLIB="$ac_cv_prog_RANLIB"
8821fi
8822
8823if test -n "$ac_tool_prefix"; then
8824  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8825set dummy ${ac_tool_prefix}strip; ac_word=$2
8826echo "$as_me:$LINENO: checking for $ac_word" >&5
8827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8828if test "${ac_cv_prog_STRIP+set}" = set; then
8829  echo $ECHO_N "(cached) $ECHO_C" >&6
8830else
8831  if test -n "$STRIP"; then
8832  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8833else
8834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835for as_dir in $PATH
8836do
8837  IFS=$as_save_IFS
8838  test -z "$as_dir" && as_dir=.
8839  for ac_exec_ext in '' $ac_executable_extensions; do
8840  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8842    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8843    break 2
8844  fi
8845done
8846done
8847
8848fi
8849fi
8850STRIP=$ac_cv_prog_STRIP
8851if test -n "$STRIP"; then
8852  echo "$as_me:$LINENO: result: $STRIP" >&5
8853echo "${ECHO_T}$STRIP" >&6
8854else
8855  echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
8857fi
8858
8859fi
8860if test -z "$ac_cv_prog_STRIP"; then
8861  ac_ct_STRIP=$STRIP
8862  # Extract the first word of "strip", so it can be a program name with args.
8863set dummy strip; ac_word=$2
8864echo "$as_me:$LINENO: checking for $ac_word" >&5
8865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8866if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8867  echo $ECHO_N "(cached) $ECHO_C" >&6
8868else
8869  if test -n "$ac_ct_STRIP"; then
8870  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8871else
8872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873for as_dir in $PATH
8874do
8875  IFS=$as_save_IFS
8876  test -z "$as_dir" && as_dir=.
8877  for ac_exec_ext in '' $ac_executable_extensions; do
8878  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8879    ac_cv_prog_ac_ct_STRIP="strip"
8880    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8881    break 2
8882  fi
8883done
8884done
8885
8886  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8887fi
8888fi
8889ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8890if test -n "$ac_ct_STRIP"; then
8891  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8892echo "${ECHO_T}$ac_ct_STRIP" >&6
8893else
8894  echo "$as_me:$LINENO: result: no" >&5
8895echo "${ECHO_T}no" >&6
8896fi
8897
8898  STRIP=$ac_ct_STRIP
8899else
8900  STRIP="$ac_cv_prog_STRIP"
8901fi
8902
8903
8904old_CC="$CC"
8905old_CFLAGS="$CFLAGS"
8906
8907# Set sane defaults for various variables
8908test -z "$AR" && AR=ar
8909test -z "$AR_FLAGS" && AR_FLAGS=cru
8910test -z "$AS" && AS=as
8911test -z "$CC" && CC=cc
8912test -z "$LTCC" && LTCC=$CC
8913test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8914test -z "$DLLTOOL" && DLLTOOL=dlltool
8915test -z "$LD" && LD=ld
8916test -z "$LN_S" && LN_S="ln -s"
8917test -z "$MAGIC_CMD" && MAGIC_CMD=file
8918test -z "$NM" && NM=nm
8919test -z "$SED" && SED=sed
8920test -z "$OBJDUMP" && OBJDUMP=objdump
8921test -z "$RANLIB" && RANLIB=:
8922test -z "$STRIP" && STRIP=:
8923test -z "$ac_objext" && ac_objext=o
8924
8925# Determine commands to create old-style static archives.
8926old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8927old_postinstall_cmds='chmod 644 $oldlib'
8928old_postuninstall_cmds=
8929
8930if test -n "$RANLIB"; then
8931  case $host_os in
8932  openbsd*)
8933    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8934    ;;
8935  *)
8936    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8937    ;;
8938  esac
8939  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8940fi
8941
8942for cc_temp in $compiler""; do
8943  case $cc_temp in
8944    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8945    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8946    \-*) ;;
8947    *) break;;
8948  esac
8949done
8950cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8951
8952
8953# Only perform the check for file, if the check method requires it
8954case $deplibs_check_method in
8955file_magic*)
8956  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8957    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8958echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8959if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8960  echo $ECHO_N "(cached) $ECHO_C" >&6
8961else
8962  case $MAGIC_CMD in
8963[\\/*] |  ?:[\\/]*)
8964  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8965  ;;
8966*)
8967  lt_save_MAGIC_CMD="$MAGIC_CMD"
8968  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8969  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8970  for ac_dir in $ac_dummy; do
8971    IFS="$lt_save_ifs"
8972    test -z "$ac_dir" && ac_dir=.
8973    if test -f $ac_dir/${ac_tool_prefix}file; then
8974      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8975      if test -n "$file_magic_test_file"; then
8976        case $deplibs_check_method in
8977        "file_magic "*)
8978          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8979          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8980          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8981            $EGREP "$file_magic_regex" > /dev/null; then
8982            :
8983          else
8984            cat <<EOF 1>&2
8985
8986*** Warning: the command libtool uses to detect shared libraries,
8987*** $file_magic_cmd, produces output that libtool cannot recognize.
8988*** The result is that libtool may fail to recognize shared libraries
8989*** as such.  This will affect the creation of libtool libraries that
8990*** depend on shared libraries, but programs linked with such libtool
8991*** libraries will work regardless of this problem.  Nevertheless, you
8992*** may want to report the problem to your system manager and/or to
8993*** bug-libtool@gnu.org
8994
8995EOF
8996          fi ;;
8997        esac
8998      fi
8999      break
9000    fi
9001  done
9002  IFS="$lt_save_ifs"
9003  MAGIC_CMD="$lt_save_MAGIC_CMD"
9004  ;;
9005esac
9006fi
9007
9008MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9009if test -n "$MAGIC_CMD"; then
9010  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9011echo "${ECHO_T}$MAGIC_CMD" >&6
9012else
9013  echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015fi
9016
9017if test -z "$lt_cv_path_MAGIC_CMD"; then
9018  if test -n "$ac_tool_prefix"; then
9019    echo "$as_me:$LINENO: checking for file" >&5
9020echo $ECHO_N "checking for file... $ECHO_C" >&6
9021if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9022  echo $ECHO_N "(cached) $ECHO_C" >&6
9023else
9024  case $MAGIC_CMD in
9025[\\/*] |  ?:[\\/]*)
9026  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9027  ;;
9028*)
9029  lt_save_MAGIC_CMD="$MAGIC_CMD"
9030  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9031  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9032  for ac_dir in $ac_dummy; do
9033    IFS="$lt_save_ifs"
9034    test -z "$ac_dir" && ac_dir=.
9035    if test -f $ac_dir/file; then
9036      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9037      if test -n "$file_magic_test_file"; then
9038        case $deplibs_check_method in
9039        "file_magic "*)
9040          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9041          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9042          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9043            $EGREP "$file_magic_regex" > /dev/null; then
9044            :
9045          else
9046            cat <<EOF 1>&2
9047
9048*** Warning: the command libtool uses to detect shared libraries,
9049*** $file_magic_cmd, produces output that libtool cannot recognize.
9050*** The result is that libtool may fail to recognize shared libraries
9051*** as such.  This will affect the creation of libtool libraries that
9052*** depend on shared libraries, but programs linked with such libtool
9053*** libraries will work regardless of this problem.  Nevertheless, you
9054*** may want to report the problem to your system manager and/or to
9055*** bug-libtool@gnu.org
9056
9057EOF
9058          fi ;;
9059        esac
9060      fi
9061      break
9062    fi
9063  done
9064  IFS="$lt_save_ifs"
9065  MAGIC_CMD="$lt_save_MAGIC_CMD"
9066  ;;
9067esac
9068fi
9069
9070MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9071if test -n "$MAGIC_CMD"; then
9072  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9073echo "${ECHO_T}$MAGIC_CMD" >&6
9074else
9075  echo "$as_me:$LINENO: result: no" >&5
9076echo "${ECHO_T}no" >&6
9077fi
9078
9079  else
9080    MAGIC_CMD=:
9081  fi
9082fi
9083
9084  fi
9085  ;;
9086esac
9087
9088enable_dlopen=no
9089enable_win32_dll=no
9090
9091# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9092if test "${enable_libtool_lock+set}" = set; then
9093  enableval="$enable_libtool_lock"
9094
9095fi;
9096test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9097
9098
9099# Check whether --with-pic or --without-pic was given.
9100if test "${with_pic+set}" = set; then
9101  withval="$with_pic"
9102  pic_mode="$withval"
9103else
9104  pic_mode=default
9105fi;
9106test -z "$pic_mode" && pic_mode=default
9107
9108# Use C for the default configuration in the libtool script
9109tagname=
9110lt_save_CC="$CC"
9111ac_ext=c
9112ac_cpp='$CPP $CPPFLAGS'
9113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9115ac_compiler_gnu=$ac_cv_c_compiler_gnu
9116
9117
9118# Source file extension for C test sources.
9119ac_ext=c
9120
9121# Object file extension for compiled C test sources.
9122objext=o
9123objext=$objext
9124
9125# Code to be used in simple compile tests
9126lt_simple_compile_test_code="int some_variable = 0;\n"
9127
9128# Code to be used in simple link tests
9129lt_simple_link_test_code='int main(){return(0);}\n'
9130
9131
9132# If no C compiler was specified, use CC.
9133LTCC=${LTCC-"$CC"}
9134
9135# If no C compiler flags were specified, use CFLAGS.
9136LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9137
9138# Allow CC to be a program name with arguments.
9139compiler=$CC
9140
9141
9142# save warnings/boilerplate of simple test code
9143ac_outfile=conftest.$ac_objext
9144printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9145eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9146_lt_compiler_boilerplate=`cat conftest.err`
9147$rm conftest*
9148
9149ac_outfile=conftest.$ac_objext
9150printf "$lt_simple_link_test_code" >conftest.$ac_ext
9151eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9152_lt_linker_boilerplate=`cat conftest.err`
9153$rm conftest*
9154
9155
9156## CAVEAT EMPTOR:
9157## There is no encapsulation within the following macros, do not change
9158## the running order or otherwise move them around unless you know exactly
9159## what you are doing...
9160
9161lt_prog_compiler_no_builtin_flag=
9162
9163if test "$GCC" = yes; then
9164  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9165
9166
9167echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9168echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9169if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9170  echo $ECHO_N "(cached) $ECHO_C" >&6
9171else
9172  lt_cv_prog_compiler_rtti_exceptions=no
9173  ac_outfile=conftest.$ac_objext
9174   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9175   lt_compiler_flag="-fno-rtti -fno-exceptions"
9176   # Insert the option either (1) after the last *FLAGS variable, or
9177   # (2) before a word containing "conftest.", or (3) at the end.
9178   # Note that $ac_compile itself does not contain backslashes and begins
9179   # with a dollar sign (not a hyphen), so the echo should work correctly.
9180   # The option is referenced via a variable to avoid confusing sed.
9181   lt_compile=`echo "$ac_compile" | $SED \
9182   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9183   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9184   -e 's:$: $lt_compiler_flag:'`
9185   (eval echo "\"\$as_me:9185: $lt_compile\"" >&5)
9186   (eval "$lt_compile" 2>conftest.err)
9187   ac_status=$?
9188   cat conftest.err >&5
9189   echo "$as_me:9189: \$? = $ac_status" >&5
9190   if (exit $ac_status) && test -s "$ac_outfile"; then
9191     # The compiler can only warn and ignore the option if not recognized
9192     # So say no if there are warnings other than the usual output.
9193     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9194     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9195     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9196       lt_cv_prog_compiler_rtti_exceptions=yes
9197     fi
9198   fi
9199   $rm conftest*
9200
9201fi
9202echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9203echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9204
9205if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9206    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9207else
9208    :
9209fi
9210
9211fi
9212
9213lt_prog_compiler_wl=
9214lt_prog_compiler_pic=
9215lt_prog_compiler_static=
9216
9217echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9218echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9219
9220  if test "$GCC" = yes; then
9221    lt_prog_compiler_wl='-Wl,'
9222    lt_prog_compiler_static='-static'
9223
9224    case $host_os in
9225      aix*)
9226      # All AIX code is PIC.
9227      if test "$host_cpu" = ia64; then
9228        # AIX 5 now supports IA64 processor
9229        lt_prog_compiler_static='-Bstatic'
9230      fi
9231      ;;
9232
9233    amigaos*)
9234      # FIXME: we need at least 68020 code to build shared libraries, but
9235      # adding the `-m68020' flag to GCC prevents building anything better,
9236      # like `-m68040'.
9237      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9238      ;;
9239
9240    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9241      # PIC is the default for these OSes.
9242      ;;
9243
9244    mingw* | pw32* | os2*)
9245      # This hack is so that the source file can tell whether it is being
9246      # built for inclusion in a dll (and should export symbols for example).
9247      lt_prog_compiler_pic='-DDLL_EXPORT'
9248      ;;
9249
9250    darwin* | rhapsody*)
9251      # PIC is the default on this platform
9252      # Common symbols not allowed in MH_DYLIB files
9253      lt_prog_compiler_pic='-fno-common'
9254      ;;
9255
9256    interix3*)
9257      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9258      # Instead, we relocate shared libraries at runtime.
9259      ;;
9260
9261    msdosdjgpp*)
9262      # Just because we use GCC doesn't mean we suddenly get shared libraries
9263      # on systems that don't support them.
9264      lt_prog_compiler_can_build_shared=no
9265      enable_shared=no
9266      ;;
9267
9268    sysv4*MP*)
9269      if test -d /usr/nec; then
9270        lt_prog_compiler_pic=-Kconform_pic
9271      fi
9272      ;;
9273
9274    hpux*)
9275      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9276      # not for PA HP-UX.
9277      case $host_cpu in
9278      hppa*64*|ia64*)
9279        # +Z the default
9280        ;;
9281      *)
9282        lt_prog_compiler_pic='-fPIC'
9283        ;;
9284      esac
9285      ;;
9286
9287    *)
9288      lt_prog_compiler_pic='-fPIC'
9289      ;;
9290    esac
9291  else
9292    # PORTME Check for flag to pass linker flags through the system compiler.
9293    case $host_os in
9294    aix*)
9295      lt_prog_compiler_wl='-Wl,'
9296      if test "$host_cpu" = ia64; then
9297        # AIX 5 now supports IA64 processor
9298        lt_prog_compiler_static='-Bstatic'
9299      else
9300        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9301      fi
9302      ;;
9303      darwin*)
9304        # PIC is the default on this platform
9305        # Common symbols not allowed in MH_DYLIB files
9306       case $cc_basename in
9307         xlc*)
9308         lt_prog_compiler_pic='-qnocommon'
9309         lt_prog_compiler_wl='-Wl,'
9310         ;;
9311       esac
9312       ;;
9313
9314    mingw* | pw32* | os2*)
9315      # This hack is so that the source file can tell whether it is being
9316      # built for inclusion in a dll (and should export symbols for example).
9317      lt_prog_compiler_pic='-DDLL_EXPORT'
9318      ;;
9319
9320    hpux9* | hpux10* | hpux11*)
9321      lt_prog_compiler_wl='-Wl,'
9322      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9323      # not for PA HP-UX.
9324      case $host_cpu in
9325      hppa*64*|ia64*)
9326        # +Z the default
9327        ;;
9328      *)
9329        lt_prog_compiler_pic='+Z'
9330        ;;
9331      esac
9332      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9333      lt_prog_compiler_static='${wl}-a ${wl}archive'
9334      ;;
9335
9336    irix5* | irix6* | nonstopux*)
9337      lt_prog_compiler_wl='-Wl,'
9338      # PIC (with -KPIC) is the default.
9339      lt_prog_compiler_static='-non_shared'
9340      ;;
9341
9342    newsos6)
9343      lt_prog_compiler_pic='-KPIC'
9344      lt_prog_compiler_static='-Bstatic'
9345      ;;
9346
9347    linux*)
9348      case $cc_basename in
9349      icc* | ecc*)
9350        lt_prog_compiler_wl='-Wl,'
9351        lt_prog_compiler_pic='-KPIC'
9352        lt_prog_compiler_static='-static'
9353        ;;
9354      pgcc* | pgf77* | pgf90* | pgf95*)
9355        # Portland Group compilers (*not* the Pentium gcc compiler,
9356        # which looks to be a dead project)
9357        lt_prog_compiler_wl='-Wl,'
9358        lt_prog_compiler_pic='-fpic'
9359        lt_prog_compiler_static='-Bstatic'
9360        ;;
9361      ccc*)
9362        lt_prog_compiler_wl='-Wl,'
9363        # All Alpha code is PIC.
9364        lt_prog_compiler_static='-non_shared'
9365        ;;
9366      esac
9367      ;;
9368
9369    osf3* | osf4* | osf5*)
9370      lt_prog_compiler_wl='-Wl,'
9371      # All OSF/1 code is PIC.
9372      lt_prog_compiler_static='-non_shared'
9373      ;;
9374
9375    solaris*)
9376      lt_prog_compiler_pic='-KPIC'
9377      lt_prog_compiler_static='-Bstatic'
9378      case $cc_basename in
9379      f77* | f90* | f95*)
9380        lt_prog_compiler_wl='-Qoption ld ';;
9381      *)
9382        lt_prog_compiler_wl='-Wl,';;
9383      esac
9384      ;;
9385
9386    sunos4*)
9387      lt_prog_compiler_wl='-Qoption ld '
9388      lt_prog_compiler_pic='-PIC'
9389      lt_prog_compiler_static='-Bstatic'
9390      ;;
9391
9392    sysv4 | sysv4.2uw2* | sysv4.3*)
9393      lt_prog_compiler_wl='-Wl,'
9394      lt_prog_compiler_pic='-KPIC'
9395      lt_prog_compiler_static='-Bstatic'
9396      ;;
9397
9398    sysv4*MP*)
9399      if test -d /usr/nec ;then
9400        lt_prog_compiler_pic='-Kconform_pic'
9401        lt_prog_compiler_static='-Bstatic'
9402      fi
9403      ;;
9404
9405    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9406      lt_prog_compiler_wl='-Wl,'
9407      lt_prog_compiler_pic='-KPIC'
9408      lt_prog_compiler_static='-Bstatic'
9409      ;;
9410
9411    unicos*)
9412      lt_prog_compiler_wl='-Wl,'
9413      lt_prog_compiler_can_build_shared=no
9414      ;;
9415
9416    uts4*)
9417      lt_prog_compiler_pic='-pic'
9418      lt_prog_compiler_static='-Bstatic'
9419      ;;
9420
9421    *)
9422      lt_prog_compiler_can_build_shared=no
9423      ;;
9424    esac
9425  fi
9426
9427echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9428echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9429
9430#
9431# Check to make sure the PIC flag actually works.
9432#
9433if test -n "$lt_prog_compiler_pic"; then
9434
9435echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9436echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9437if test "${lt_prog_compiler_pic_works+set}" = set; then
9438  echo $ECHO_N "(cached) $ECHO_C" >&6
9439else
9440  lt_prog_compiler_pic_works=no
9441  ac_outfile=conftest.$ac_objext
9442   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9443   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9444   # Insert the option either (1) after the last *FLAGS variable, or
9445   # (2) before a word containing "conftest.", or (3) at the end.
9446   # Note that $ac_compile itself does not contain backslashes and begins
9447   # with a dollar sign (not a hyphen), so the echo should work correctly.
9448   # The option is referenced via a variable to avoid confusing sed.
9449   lt_compile=`echo "$ac_compile" | $SED \
9450   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9451   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9452   -e 's:$: $lt_compiler_flag:'`
9453   (eval echo "\"\$as_me:9453: $lt_compile\"" >&5)
9454   (eval "$lt_compile" 2>conftest.err)
9455   ac_status=$?
9456   cat conftest.err >&5
9457   echo "$as_me:9457: \$? = $ac_status" >&5
9458   if (exit $ac_status) && test -s "$ac_outfile"; then
9459     # The compiler can only warn and ignore the option if not recognized
9460     # So say no if there are warnings other than the usual output.
9461     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9462     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9463     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9464       lt_prog_compiler_pic_works=yes
9465     fi
9466   fi
9467   $rm conftest*
9468
9469fi
9470echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9471echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9472
9473if test x"$lt_prog_compiler_pic_works" = xyes; then
9474    case $lt_prog_compiler_pic in
9475     "" | " "*) ;;
9476     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9477     esac
9478else
9479    lt_prog_compiler_pic=
9480     lt_prog_compiler_can_build_shared=no
9481fi
9482
9483fi
9484case $host_os in
9485  # For platforms which do not support PIC, -DPIC is meaningless:
9486  *djgpp*)
9487    lt_prog_compiler_pic=
9488    ;;
9489  *)
9490    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9491    ;;
9492esac
9493
9494#
9495# Check to make sure the static flag actually works.
9496#
9497wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9498echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9499echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9500if test "${lt_prog_compiler_static_works+set}" = set; then
9501  echo $ECHO_N "(cached) $ECHO_C" >&6
9502else
9503  lt_prog_compiler_static_works=no
9504   save_LDFLAGS="$LDFLAGS"
9505   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9506   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9507   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9508     # The linker can only warn and ignore the option if not recognized
9509     # So say no if there are warnings
9510     if test -s conftest.err; then
9511       # Append any errors to the config.log.
9512       cat conftest.err 1>&5
9513       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9514       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9515       if diff conftest.exp conftest.er2 >/dev/null; then
9516         lt_prog_compiler_static_works=yes
9517       fi
9518     else
9519       lt_prog_compiler_static_works=yes
9520     fi
9521   fi
9522   $rm conftest*
9523   LDFLAGS="$save_LDFLAGS"
9524
9525fi
9526echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9527echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9528
9529if test x"$lt_prog_compiler_static_works" = xyes; then
9530    :
9531else
9532    lt_prog_compiler_static=
9533fi
9534
9535
9536echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9537echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9538if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9539  echo $ECHO_N "(cached) $ECHO_C" >&6
9540else
9541  lt_cv_prog_compiler_c_o=no
9542   $rm -r conftest 2>/dev/null
9543   mkdir conftest
9544   cd conftest
9545   mkdir out
9546   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9547
9548   lt_compiler_flag="-o out/conftest2.$ac_objext"
9549   # Insert the option either (1) after the last *FLAGS variable, or
9550   # (2) before a word containing "conftest.", or (3) at the end.
9551   # Note that $ac_compile itself does not contain backslashes and begins
9552   # with a dollar sign (not a hyphen), so the echo should work correctly.
9553   lt_compile=`echo "$ac_compile" | $SED \
9554   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9555   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9556   -e 's:$: $lt_compiler_flag:'`
9557   (eval echo "\"\$as_me:9557: $lt_compile\"" >&5)
9558   (eval "$lt_compile" 2>out/conftest.err)
9559   ac_status=$?
9560   cat out/conftest.err >&5
9561   echo "$as_me:9561: \$? = $ac_status" >&5
9562   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9563   then
9564     # The compiler can only warn and ignore the option if not recognized
9565     # So say no if there are warnings
9566     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9567     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9568     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9569       lt_cv_prog_compiler_c_o=yes
9570     fi
9571   fi
9572   chmod u+w . 2>&5
9573   $rm conftest*
9574   # SGI C++ compiler will create directory out/ii_files/ for
9575   # template instantiation
9576   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9577   $rm out/* && rmdir out
9578   cd ..
9579   rmdir conftest
9580   $rm conftest*
9581
9582fi
9583echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9584echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9585
9586
9587hard_links="nottested"
9588if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9589  # do not overwrite the value of need_locks provided by the user
9590  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9591echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9592  hard_links=yes
9593  $rm conftest*
9594  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9595  touch conftest.a
9596  ln conftest.a conftest.b 2>&5 || hard_links=no
9597  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9598  echo "$as_me:$LINENO: result: $hard_links" >&5
9599echo "${ECHO_T}$hard_links" >&6
9600  if test "$hard_links" = no; then
9601    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9602echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9603    need_locks=warn
9604  fi
9605else
9606  need_locks=no
9607fi
9608
9609echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9610echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9611
9612  runpath_var=
9613  allow_undefined_flag=
9614  enable_shared_with_static_runtimes=no
9615  archive_cmds=
9616  archive_expsym_cmds=
9617  old_archive_From_new_cmds=
9618  old_archive_from_expsyms_cmds=
9619  export_dynamic_flag_spec=
9620  whole_archive_flag_spec=
9621  thread_safe_flag_spec=
9622  hardcode_libdir_flag_spec=
9623  hardcode_libdir_flag_spec_ld=
9624  hardcode_libdir_separator=
9625  hardcode_direct=no
9626  hardcode_minus_L=no
9627  hardcode_shlibpath_var=unsupported
9628  link_all_deplibs=unknown
9629  hardcode_automatic=no
9630  module_cmds=
9631  module_expsym_cmds=
9632  always_export_symbols=no
9633  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9634  # include_expsyms should be a list of space-separated symbols to be *always*
9635  # included in the symbol list
9636  include_expsyms=
9637  # exclude_expsyms can be an extended regexp of symbols to exclude
9638  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9639  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9640  # as well as any symbol that contains `d'.
9641  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9642  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9643  # platforms (ab)use it in PIC code, but their linkers get confused if
9644  # the symbol is explicitly referenced.  Since portable code cannot
9645  # rely on this symbol name, it's probably fine to never include it in
9646  # preloaded symbol tables.
9647  extract_expsyms_cmds=
9648  # Just being paranoid about ensuring that cc_basename is set.
9649  for cc_temp in $compiler""; do
9650  case $cc_temp in
9651    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9652    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9653    \-*) ;;
9654    *) break;;
9655  esac
9656done
9657cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9658
9659  case $host_os in
9660  cygwin* | mingw* | pw32*)
9661    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9662    # When not using gcc, we currently assume that we are using
9663    # Microsoft Visual C++.
9664    if test "$GCC" != yes; then
9665      with_gnu_ld=no
9666    fi
9667    ;;
9668  interix*)
9669    # we just hope/assume this is gcc and not c89 (= MSVC++)
9670    with_gnu_ld=yes
9671    ;;
9672  openbsd*)
9673    with_gnu_ld=no
9674    ;;
9675  esac
9676
9677  ld_shlibs=yes
9678  if test "$with_gnu_ld" = yes; then
9679    # If archive_cmds runs LD, not CC, wlarc should be empty
9680    wlarc='${wl}'
9681
9682    # Set some defaults for GNU ld with shared library support. These
9683    # are reset later if shared libraries are not supported. Putting them
9684    # here allows them to be overridden if necessary.
9685    runpath_var=LD_RUN_PATH
9686    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9687    export_dynamic_flag_spec='${wl}--export-dynamic'
9688    # ancient GNU ld didn't support --whole-archive et. al.
9689    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9690        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9691      else
9692        whole_archive_flag_spec=
9693    fi
9694    supports_anon_versioning=no
9695    case `$LD -v 2>/dev/null` in
9696      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9697      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9698      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9699      *\ 2.11.*) ;; # other 2.11 versions
9700      *) supports_anon_versioning=yes ;;
9701    esac
9702
9703    # See if GNU ld supports shared libraries.
9704    case $host_os in
9705    aix3* | aix4* | aix5*)
9706      # On AIX/PPC, the GNU linker is very broken
9707      if test "$host_cpu" != ia64; then
9708        ld_shlibs=no
9709        cat <<EOF 1>&2
9710
9711*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9712*** to be unable to reliably create shared libraries on AIX.
9713*** Therefore, libtool is disabling shared libraries support.  If you
9714*** really care for shared libraries, you may want to modify your PATH
9715*** so that a non-GNU linker is found, and then restart.
9716
9717EOF
9718      fi
9719      ;;
9720
9721    amigaos*)
9722      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)'
9723      hardcode_libdir_flag_spec='-L$libdir'
9724      hardcode_minus_L=yes
9725
9726      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9727      # that the semantics of dynamic libraries on AmigaOS, at least up
9728      # to version 4, is to share data among multiple programs linked
9729      # with the same dynamic library.  Since this doesn't match the
9730      # behavior of shared libraries on other platforms, we can't use
9731      # them.
9732      ld_shlibs=no
9733      ;;
9734
9735    beos*)
9736      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9737        allow_undefined_flag=unsupported
9738        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9739        # support --undefined.  This deserves some investigation.  FIXME
9740        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9741      else
9742        ld_shlibs=no
9743      fi
9744      ;;
9745
9746    cygwin* | mingw* | pw32*)
9747      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9748      # as there is no search path for DLLs.
9749      hardcode_libdir_flag_spec='-L$libdir'
9750      allow_undefined_flag=unsupported
9751      always_export_symbols=no
9752      enable_shared_with_static_runtimes=yes
9753      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9754
9755      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9756        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9757        # If the export-symbols file already is a .def file (1st line
9758        # is EXPORTS), use it as is; otherwise, prepend...
9759        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9760          cp $export_symbols $output_objdir/$soname.def;
9761        else
9762          echo EXPORTS > $output_objdir/$soname.def;
9763          cat $export_symbols >> $output_objdir/$soname.def;
9764        fi~
9765        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9766      else
9767        ld_shlibs=no
9768      fi
9769      ;;
9770
9771    interix3*)
9772      hardcode_direct=no
9773      hardcode_shlibpath_var=no
9774      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9775      export_dynamic_flag_spec='${wl}-E'
9776      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9777      # Instead, shared libraries are loaded at an image base (0x10000000 by
9778      # default) and relocated if they conflict, which is a slow very memory
9779      # consuming and fragmenting process.  To avoid this, we pick a random,
9780      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9781      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9782      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9783      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'
9784      ;;
9785
9786    linux*)
9787      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9788        tmp_addflag=
9789        case $cc_basename,$host_cpu in
9790        pgcc*)                          # Portland Group C compiler
9791          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'
9792          tmp_addflag=' $pic_flag'
9793          ;;
9794        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9795          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'
9796          tmp_addflag=' $pic_flag -Mnomain' ;;
9797        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9798          tmp_addflag=' -i_dynamic' ;;
9799        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9800          tmp_addflag=' -i_dynamic -nofor_main' ;;
9801        ifc* | ifort*)                  # Intel Fortran compiler
9802          tmp_addflag=' -nofor_main' ;;
9803        esac
9804        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9805
9806        if test $supports_anon_versioning = yes; then
9807          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9808  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9809  $echo "local: *; };" >> $output_objdir/$libname.ver~
9810          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9811        fi
9812      else
9813        ld_shlibs=no
9814      fi
9815      ;;
9816
9817    netbsd*)
9818      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9819        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9820        wlarc=
9821      else
9822        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9823        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9824      fi
9825      ;;
9826
9827    solaris*)
9828      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9829        ld_shlibs=no
9830        cat <<EOF 1>&2
9831
9832*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9833*** create shared libraries on Solaris systems.  Therefore, libtool
9834*** is disabling shared libraries support.  We urge you to upgrade GNU
9835*** binutils to release 2.9.1 or newer.  Another option is to modify
9836*** your PATH or compiler configuration so that the native linker is
9837*** used, and then restart.
9838
9839EOF
9840      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9841        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9842        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9843      else
9844        ld_shlibs=no
9845      fi
9846      ;;
9847
9848    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9849      case `$LD -v 2>&1` in
9850        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9851        ld_shlibs=no
9852        cat <<_LT_EOF 1>&2
9853
9854*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9855*** reliably create shared libraries on SCO systems.  Therefore, libtool
9856*** is disabling shared libraries support.  We urge you to upgrade GNU
9857*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9858*** your PATH or compiler configuration so that the native linker is
9859*** used, and then restart.
9860
9861_LT_EOF
9862        ;;
9863        *)
9864          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9865            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9866            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9867            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9868          else
9869            ld_shlibs=no
9870          fi
9871        ;;
9872      esac
9873      ;;
9874
9875    sunos4*)
9876      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9877      wlarc=
9878      hardcode_direct=yes
9879      hardcode_shlibpath_var=no
9880      ;;
9881
9882    *)
9883      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9884        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9885        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9886      else
9887        ld_shlibs=no
9888      fi
9889      ;;
9890    esac
9891
9892    if test "$ld_shlibs" = no; then
9893      runpath_var=
9894      hardcode_libdir_flag_spec=
9895      export_dynamic_flag_spec=
9896      whole_archive_flag_spec=
9897    fi
9898  else
9899    # PORTME fill in a description of your system's linker (not GNU ld)
9900    case $host_os in
9901    aix3*)
9902      allow_undefined_flag=unsupported
9903      always_export_symbols=yes
9904      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'
9905      # Note: this linker hardcodes the directories in LIBPATH if there
9906      # are no directories specified by -L.
9907      hardcode_minus_L=yes
9908      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9909        # Neither direct hardcoding nor static linking is supported with a
9910        # broken collect2.
9911        hardcode_direct=unsupported
9912      fi
9913      ;;
9914
9915    aix4* | aix5*)
9916      if test "$host_cpu" = ia64; then
9917        # On IA64, the linker does run time linking by default, so we don't
9918        # have to do anything special.
9919        aix_use_runtimelinking=no
9920        exp_sym_flag='-Bexport'
9921        no_entry_flag=""
9922      else
9923        # If we're using GNU nm, then we don't want the "-C" option.
9924        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9925        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9926          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'
9927        else
9928          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'
9929        fi
9930        aix_use_runtimelinking=no
9931
9932        # Test if we are trying to use run time linking or normal
9933        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9934        # need to do runtime linking.
9935        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9936          for ld_flag in $LDFLAGS; do
9937          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9938            aix_use_runtimelinking=yes
9939            break
9940          fi
9941          done
9942          ;;
9943        esac
9944
9945        exp_sym_flag='-bexport'
9946        no_entry_flag='-bnoentry'
9947      fi
9948
9949      # When large executables or shared objects are built, AIX ld can
9950      # have problems creating the table of contents.  If linking a library
9951      # or program results in "error TOC overflow" add -mminimal-toc to
9952      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9953      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9954
9955      archive_cmds=''
9956      hardcode_direct=yes
9957      hardcode_libdir_separator=':'
9958      link_all_deplibs=yes
9959
9960      if test "$GCC" = yes; then
9961        case $host_os in aix4.[012]|aix4.[012].*)
9962        # We only want to do this on AIX 4.2 and lower, the check
9963        # below for broken collect2 doesn't work under 4.3+
9964          collect2name=`${CC} -print-prog-name=collect2`
9965          if test -f "$collect2name" && \
9966           strings "$collect2name" | grep resolve_lib_name >/dev/null
9967          then
9968          # We have reworked collect2
9969          hardcode_direct=yes
9970          else
9971          # We have old collect2
9972          hardcode_direct=unsupported
9973          # It fails to find uninstalled libraries when the uninstalled
9974          # path is not listed in the libpath.  Setting hardcode_minus_L
9975          # to unsupported forces relinking
9976          hardcode_minus_L=yes
9977          hardcode_libdir_flag_spec='-L$libdir'
9978          hardcode_libdir_separator=
9979          fi
9980          ;;
9981        esac
9982        shared_flag='-shared'
9983        if test "$aix_use_runtimelinking" = yes; then
9984          shared_flag="$shared_flag "'${wl}-G'
9985        fi
9986      else
9987        # not using gcc
9988        if test "$host_cpu" = ia64; then
9989        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9990        # chokes on -Wl,-G. The following line is correct:
9991          shared_flag='-G'
9992        else
9993          if test "$aix_use_runtimelinking" = yes; then
9994            shared_flag='${wl}-G'
9995          else
9996            shared_flag='${wl}-bM:SRE'
9997          fi
9998        fi
9999      fi
10000
10001      # It seems that -bexpall does not export symbols beginning with
10002      # underscore (_), so it is better to generate a list of symbols to export.
10003      always_export_symbols=yes
10004      if test "$aix_use_runtimelinking" = yes; then
10005        # Warning - without using the other runtime loading flags (-brtl),
10006        # -berok will link without error, but may produce a broken library.
10007        allow_undefined_flag='-berok'
10008       # Determine the default libpath from the value encoded in an empty executable.
10009       cat >conftest.$ac_ext <<_ACEOF
10010/* confdefs.h.  */
10011_ACEOF
10012cat confdefs.h >>conftest.$ac_ext
10013cat >>conftest.$ac_ext <<_ACEOF
10014/* end confdefs.h.  */
10015
10016#ifdef F77_DUMMY_MAIN
10017
10018#  ifdef __cplusplus
10019     extern "C"
10020#  endif
10021   int F77_DUMMY_MAIN() { return 1; }
10022
10023#endif
10024int
10025main ()
10026{
10027
10028  ;
10029  return 0;
10030}
10031_ACEOF
10032rm -f conftest.$ac_objext conftest$ac_exeext
10033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034  (eval $ac_link) 2>conftest.er1
10035  ac_status=$?
10036  grep -v '^ *+' conftest.er1 >conftest.err
10037  rm -f conftest.er1
10038  cat conftest.err >&5
10039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040  (exit $ac_status); } &&
10041         { ac_try='test -z "$ac_c_werror_flag"
10042                         || test ! -s conftest.err'
10043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044  (eval $ac_try) 2>&5
10045  ac_status=$?
10046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047  (exit $ac_status); }; } &&
10048         { ac_try='test -s conftest$ac_exeext'
10049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050  (eval $ac_try) 2>&5
10051  ac_status=$?
10052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053  (exit $ac_status); }; }; then
10054
10055aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10056}'`
10057# Check for a 64-bit object if we didn't find anything.
10058if 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; }
10059}'`; fi
10060else
10061  echo "$as_me: failed program was:" >&5
10062sed 's/^/| /' conftest.$ac_ext >&5
10063
10064fi
10065rm -f conftest.err conftest.$ac_objext \
10066      conftest$ac_exeext conftest.$ac_ext
10067if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10068
10069       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10070        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"
10071       else
10072        if test "$host_cpu" = ia64; then
10073          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10074          allow_undefined_flag="-z nodefs"
10075          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"
10076        else
10077         # Determine the default libpath from the value encoded in an empty executable.
10078         cat >conftest.$ac_ext <<_ACEOF
10079/* confdefs.h.  */
10080_ACEOF
10081cat confdefs.h >>conftest.$ac_ext
10082cat >>conftest.$ac_ext <<_ACEOF
10083/* end confdefs.h.  */
10084
10085#ifdef F77_DUMMY_MAIN
10086
10087#  ifdef __cplusplus
10088     extern "C"
10089#  endif
10090   int F77_DUMMY_MAIN() { return 1; }
10091
10092#endif
10093int
10094main ()
10095{
10096
10097  ;
10098  return 0;
10099}
10100_ACEOF
10101rm -f conftest.$ac_objext conftest$ac_exeext
10102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103  (eval $ac_link) 2>conftest.er1
10104  ac_status=$?
10105  grep -v '^ *+' conftest.er1 >conftest.err
10106  rm -f conftest.er1
10107  cat conftest.err >&5
10108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109  (exit $ac_status); } &&
10110         { ac_try='test -z "$ac_c_werror_flag"
10111                         || test ! -s conftest.err'
10112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113  (eval $ac_try) 2>&5
10114  ac_status=$?
10115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116  (exit $ac_status); }; } &&
10117         { ac_try='test -s conftest$ac_exeext'
10118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119  (eval $ac_try) 2>&5
10120  ac_status=$?
10121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122  (exit $ac_status); }; }; then
10123
10124aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10125}'`
10126# Check for a 64-bit object if we didn't find anything.
10127if 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; }
10128}'`; fi
10129else
10130  echo "$as_me: failed program was:" >&5
10131sed 's/^/| /' conftest.$ac_ext >&5
10132
10133fi
10134rm -f conftest.err conftest.$ac_objext \
10135      conftest$ac_exeext conftest.$ac_ext
10136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10137
10138         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10139          # Warning - without using the other run time loading flags,
10140          # -berok will link without error, but may produce a broken library.
10141          no_undefined_flag=' ${wl}-bernotok'
10142          allow_undefined_flag=' ${wl}-berok'
10143          # Exported symbols can be pulled into shared objects from archives
10144          whole_archive_flag_spec='$convenience'
10145          archive_cmds_need_lc=yes
10146          # This is similar to how AIX traditionally builds its shared libraries.
10147          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'
10148        fi
10149      fi
10150      ;;
10151
10152    amigaos*)
10153      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)'
10154      hardcode_libdir_flag_spec='-L$libdir'
10155      hardcode_minus_L=yes
10156      # see comment about different semantics on the GNU ld section
10157      ld_shlibs=no
10158      ;;
10159
10160    bsdi[45]*)
10161      export_dynamic_flag_spec=-rdynamic
10162      ;;
10163
10164    cygwin* | mingw* | pw32*)
10165      # When not using gcc, we currently assume that we are using
10166      # Microsoft Visual C++.
10167      # hardcode_libdir_flag_spec is actually meaningless, as there is
10168      # no search path for DLLs.
10169      hardcode_libdir_flag_spec=' '
10170      allow_undefined_flag=unsupported
10171      # Tell ltmain to make .lib files, not .a files.
10172      libext=lib
10173      # Tell ltmain to make .dll files, not .so files.
10174      shrext_cmds=".dll"
10175      # FIXME: Setting linknames here is a bad hack.
10176      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10177      # The linker will automatically build a .lib file if we build a DLL.
10178      old_archive_From_new_cmds='true'
10179      # FIXME: Should let the user specify the lib program.
10180      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10181      fix_srcfile_path='`cygpath -w "$srcfile"`'
10182      enable_shared_with_static_runtimes=yes
10183      ;;
10184
10185    darwin* | rhapsody*)
10186      case $host_os in
10187        rhapsody* | darwin1.[012])
10188         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10189         ;;
10190       *) # Darwin 1.3 on
10191         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10192           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10193         else
10194           case ${MACOSX_DEPLOYMENT_TARGET} in
10195             10.[012])
10196               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10197               ;;
10198             10.*)
10199               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10200               ;;
10201           esac
10202         fi
10203         ;;
10204      esac
10205      archive_cmds_need_lc=no
10206      hardcode_direct=no
10207      hardcode_automatic=yes
10208      hardcode_shlibpath_var=unsupported
10209      whole_archive_flag_spec=''
10210      link_all_deplibs=yes
10211    if test "$GCC" = yes ; then
10212        output_verbose_link_cmd='echo'
10213        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10214      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10215      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10216      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}'
10217      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}'
10218    else
10219      case $cc_basename in
10220        xlc*)
10221         output_verbose_link_cmd='echo'
10222         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10223         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10224          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10225         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}'
10226          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}'
10227          ;;
10228       *)
10229         ld_shlibs=no
10230          ;;
10231      esac
10232    fi
10233      ;;
10234
10235    dgux*)
10236      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237      hardcode_libdir_flag_spec='-L$libdir'
10238      hardcode_shlibpath_var=no
10239      ;;
10240
10241    freebsd1*)
10242      ld_shlibs=no
10243      ;;
10244
10245    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10246    # support.  Future versions do this automatically, but an explicit c++rt0.o
10247    # does not break anything, and helps significantly (at the cost of a little
10248    # extra space).
10249    freebsd2.2*)
10250      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10251      hardcode_libdir_flag_spec='-R$libdir'
10252      hardcode_direct=yes
10253      hardcode_shlibpath_var=no
10254      ;;
10255
10256    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10257    freebsd2*)
10258      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10259      hardcode_direct=yes
10260      hardcode_minus_L=yes
10261      hardcode_shlibpath_var=no
10262      ;;
10263
10264    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10265    freebsd* | kfreebsd*-gnu | dragonfly*)
10266      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10267      hardcode_libdir_flag_spec='-R$libdir'
10268      hardcode_direct=yes
10269      hardcode_shlibpath_var=no
10270      ;;
10271
10272    hpux9*)
10273      if test "$GCC" = yes; then
10274        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'
10275      else
10276        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'
10277      fi
10278      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10279      hardcode_libdir_separator=:
10280      hardcode_direct=yes
10281
10282      # hardcode_minus_L: Not really in the search PATH,
10283      # but as the default location of the library.
10284      hardcode_minus_L=yes
10285      export_dynamic_flag_spec='${wl}-E'
10286      ;;
10287
10288    hpux10*)
10289      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10290        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10291      else
10292        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10293      fi
10294      if test "$with_gnu_ld" = no; then
10295        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10296        hardcode_libdir_separator=:
10297
10298        hardcode_direct=yes
10299        export_dynamic_flag_spec='${wl}-E'
10300
10301        # hardcode_minus_L: Not really in the search PATH,
10302        # but as the default location of the library.
10303        hardcode_minus_L=yes
10304      fi
10305      ;;
10306
10307    hpux11*)
10308      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10309        case $host_cpu in
10310        hppa*64*)
10311          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10312          ;;
10313        ia64*)
10314          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10315          ;;
10316        *)
10317          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10318          ;;
10319        esac
10320      else
10321        case $host_cpu in
10322        hppa*64*)
10323          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10324          ;;
10325        ia64*)
10326          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10327          ;;
10328        *)
10329          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10330          ;;
10331        esac
10332      fi
10333      if test "$with_gnu_ld" = no; then
10334        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10335        hardcode_libdir_separator=:
10336
10337        case $host_cpu in
10338        hppa*64*|ia64*)
10339          hardcode_libdir_flag_spec_ld='+b $libdir'
10340          hardcode_direct=no
10341          hardcode_shlibpath_var=no
10342          ;;
10343        *)
10344          hardcode_direct=yes
10345          export_dynamic_flag_spec='${wl}-E'
10346
10347          # hardcode_minus_L: Not really in the search PATH,
10348          # but as the default location of the library.
10349          hardcode_minus_L=yes
10350          ;;
10351        esac
10352      fi
10353      ;;
10354
10355    irix5* | irix6* | nonstopux*)
10356      if test "$GCC" = yes; then
10357        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'
10358      else
10359        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'
10360        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10361      fi
10362      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10363      hardcode_libdir_separator=:
10364      link_all_deplibs=yes
10365      ;;
10366
10367    netbsd*)
10368      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10369        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10370      else
10371        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10372      fi
10373      hardcode_libdir_flag_spec='-R$libdir'
10374      hardcode_direct=yes
10375      hardcode_shlibpath_var=no
10376      ;;
10377
10378    newsos6)
10379      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380      hardcode_direct=yes
10381      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10382      hardcode_libdir_separator=:
10383      hardcode_shlibpath_var=no
10384      ;;
10385
10386    openbsd*)
10387      hardcode_direct=yes
10388      hardcode_shlibpath_var=no
10389      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10390        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10391        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10392        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10393        export_dynamic_flag_spec='${wl}-E'
10394      else
10395       case $host_os in
10396         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10397           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10398           hardcode_libdir_flag_spec='-R$libdir'
10399           ;;
10400         *)
10401           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10402           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10403           ;;
10404       esac
10405      fi
10406      ;;
10407
10408    os2*)
10409      hardcode_libdir_flag_spec='-L$libdir'
10410      hardcode_minus_L=yes
10411      allow_undefined_flag=unsupported
10412      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'
10413      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10414      ;;
10415
10416    osf3*)
10417      if test "$GCC" = yes; then
10418        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10419        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'
10420      else
10421        allow_undefined_flag=' -expect_unresolved \*'
10422        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'
10423      fi
10424      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10425      hardcode_libdir_separator=:
10426      ;;
10427
10428    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10429      if test "$GCC" = yes; then
10430        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10431        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'
10432        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10433      else
10434        allow_undefined_flag=' -expect_unresolved \*'
10435        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'
10436        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10437        $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'
10438
10439        # Both c and cxx compiler support -rpath directly
10440        hardcode_libdir_flag_spec='-rpath $libdir'
10441      fi
10442      hardcode_libdir_separator=:
10443      ;;
10444
10445    solaris*)
10446      no_undefined_flag=' -z text'
10447      if test "$GCC" = yes; then
10448        wlarc='${wl}'
10449        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10450        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10451          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10452      else
10453        wlarc=''
10454        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10455        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10456        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10457      fi
10458      hardcode_libdir_flag_spec='-R$libdir'
10459      hardcode_shlibpath_var=no
10460      case $host_os in
10461      solaris2.[0-5] | solaris2.[0-5].*) ;;
10462      *)
10463        # The compiler driver will combine linker options so we
10464        # cannot just pass the convience library names through
10465        # without $wl, iff we do not link with $LD.
10466        # Luckily, gcc supports the same syntax we need for Sun Studio.
10467        # Supported since Solaris 2.6 (maybe 2.5.1?)
10468        case $wlarc in
10469        '')
10470          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10471        *)
10472          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' ;;
10473        esac ;;
10474      esac
10475      link_all_deplibs=yes
10476      ;;
10477
10478    sunos4*)
10479      if test "x$host_vendor" = xsequent; then
10480        # Use $CC to link under sequent, because it throws in some extra .o
10481        # files that make .init and .fini sections work.
10482        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10483      else
10484        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10485      fi
10486      hardcode_libdir_flag_spec='-L$libdir'
10487      hardcode_direct=yes
10488      hardcode_minus_L=yes
10489      hardcode_shlibpath_var=no
10490      ;;
10491
10492    sysv4)
10493      case $host_vendor in
10494        sni)
10495          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10496          hardcode_direct=yes # is this really true???
10497        ;;
10498        siemens)
10499          ## LD is ld it makes a PLAMLIB
10500          ## CC just makes a GrossModule.
10501          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10502          reload_cmds='$CC -r -o $output$reload_objs'
10503          hardcode_direct=no
10504        ;;
10505        motorola)
10506          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10507          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10508        ;;
10509      esac
10510      runpath_var='LD_RUN_PATH'
10511      hardcode_shlibpath_var=no
10512      ;;
10513
10514    sysv4.3*)
10515      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10516      hardcode_shlibpath_var=no
10517      export_dynamic_flag_spec='-Bexport'
10518      ;;
10519
10520    sysv4*MP*)
10521      if test -d /usr/nec; then
10522        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10523        hardcode_shlibpath_var=no
10524        runpath_var=LD_RUN_PATH
10525        hardcode_runpath_var=yes
10526        ld_shlibs=yes
10527      fi
10528      ;;
10529
10530    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10531      no_undefined_flag='${wl}-z,text'
10532      archive_cmds_need_lc=no
10533      hardcode_shlibpath_var=no
10534      runpath_var='LD_RUN_PATH'
10535
10536      if test "$GCC" = yes; then
10537        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10538        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10539      else
10540        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10541        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10542      fi
10543      ;;
10544
10545    sysv5* | sco3.2v5* | sco5v6*)
10546      # Note: We can NOT use -z defs as we might desire, because we do not
10547      # link with -lc, and that would cause any symbols used from libc to
10548      # always be unresolved, which means just about no library would
10549      # ever link correctly.  If we're not using GNU ld we use -z text
10550      # though, which does catch some bad symbols but isn't as heavy-handed
10551      # as -z defs.
10552      no_undefined_flag='${wl}-z,text'
10553      allow_undefined_flag='${wl}-z,nodefs'
10554      archive_cmds_need_lc=no
10555      hardcode_shlibpath_var=no
10556      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10557      hardcode_libdir_separator=':'
10558      link_all_deplibs=yes
10559      export_dynamic_flag_spec='${wl}-Bexport'
10560      runpath_var='LD_RUN_PATH'
10561
10562      if test "$GCC" = yes; then
10563        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10564        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10565      else
10566        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10567        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10568      fi
10569      ;;
10570
10571    uts4*)
10572      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573      hardcode_libdir_flag_spec='-L$libdir'
10574      hardcode_shlibpath_var=no
10575      ;;
10576
10577    *)
10578      ld_shlibs=no
10579      ;;
10580    esac
10581  fi
10582
10583echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10584echo "${ECHO_T}$ld_shlibs" >&6
10585test "$ld_shlibs" = no && can_build_shared=no
10586
10587#
10588# Do we need to explicitly link libc?
10589#
10590case "x$archive_cmds_need_lc" in
10591x|xyes)
10592  # Assume -lc should be added
10593  archive_cmds_need_lc=yes
10594
10595  if test "$enable_shared" = yes && test "$GCC" = yes; then
10596    case $archive_cmds in
10597    *'~'*)
10598      # FIXME: we may have to deal with multi-command sequences.
10599      ;;
10600    '$CC '*)
10601      # Test whether the compiler implicitly links with -lc since on some
10602      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10603      # to ld, don't add -lc before -lgcc.
10604      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10605echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10606      $rm conftest*
10607      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10608
10609      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10610  (eval $ac_compile) 2>&5
10611  ac_status=$?
10612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613  (exit $ac_status); } 2>conftest.err; then
10614        soname=conftest
10615        lib=conftest
10616        libobjs=conftest.$ac_objext
10617        deplibs=
10618        wl=$lt_prog_compiler_wl
10619        pic_flag=$lt_prog_compiler_pic
10620        compiler_flags=-v
10621        linker_flags=-v
10622        verstring=
10623        output_objdir=.
10624        libname=conftest
10625        lt_save_allow_undefined_flag=$allow_undefined_flag
10626        allow_undefined_flag=
10627        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10628  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10629  ac_status=$?
10630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631  (exit $ac_status); }
10632        then
10633          archive_cmds_need_lc=no
10634        else
10635          archive_cmds_need_lc=yes
10636        fi
10637        allow_undefined_flag=$lt_save_allow_undefined_flag
10638      else
10639        cat conftest.err 1>&5
10640      fi
10641      $rm conftest*
10642      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10643echo "${ECHO_T}$archive_cmds_need_lc" >&6
10644      ;;
10645    esac
10646  fi
10647  ;;
10648esac
10649
10650echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10651echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10652library_names_spec=
10653libname_spec='lib$name'
10654soname_spec=
10655shrext_cmds=".so"
10656postinstall_cmds=
10657postuninstall_cmds=
10658finish_cmds=
10659finish_eval=
10660shlibpath_var=
10661shlibpath_overrides_runpath=unknown
10662version_type=none
10663dynamic_linker="$host_os ld.so"
10664sys_lib_dlsearch_path_spec="/lib /usr/lib"
10665if test "$GCC" = yes; then
10666  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10667  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10668    # if the path contains ";" then we assume it to be the separator
10669    # otherwise default to the standard path separator (i.e. ":") - it is
10670    # assumed that no part of a normal pathname contains ";" but that should
10671    # okay in the real world where ";" in dirpaths is itself problematic.
10672    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10673  else
10674    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10675  fi
10676else
10677  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10678fi
10679need_lib_prefix=unknown
10680hardcode_into_libs=no
10681
10682# when you set need_version to no, make sure it does not cause -set_version
10683# flags to be left without arguments
10684need_version=unknown
10685
10686case $host_os in
10687aix3*)
10688  version_type=linux
10689  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10690  shlibpath_var=LIBPATH
10691
10692  # AIX 3 has no versioning support, so we append a major version to the name.
10693  soname_spec='${libname}${release}${shared_ext}$major'
10694  ;;
10695
10696aix4* | aix5*)
10697  version_type=linux
10698  need_lib_prefix=no
10699  need_version=no
10700  hardcode_into_libs=yes
10701  if test "$host_cpu" = ia64; then
10702    # AIX 5 supports IA64
10703    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10704    shlibpath_var=LD_LIBRARY_PATH
10705  else
10706    # With GCC up to 2.95.x, collect2 would create an import file
10707    # for dependence libraries.  The import file would start with
10708    # the line `#! .'.  This would cause the generated library to
10709    # depend on `.', always an invalid library.  This was fixed in
10710    # development snapshots of GCC prior to 3.0.
10711    case $host_os in
10712      aix4 | aix4.[01] | aix4.[01].*)
10713      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10714           echo ' yes '
10715           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10716        :
10717      else
10718        can_build_shared=no
10719      fi
10720      ;;
10721    esac
10722    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10723    # soname into executable. Probably we can add versioning support to
10724    # collect2, so additional links can be useful in future.
10725    if test "$aix_use_runtimelinking" = yes; then
10726      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10727      # instead of lib<name>.a to let people know that these are not
10728      # typical AIX shared libraries.
10729      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730    else
10731      # We preserve .a as extension for shared libraries through AIX4.2
10732      # and later when we are not doing run time linking.
10733      library_names_spec='${libname}${release}.a $libname.a'
10734      soname_spec='${libname}${release}${shared_ext}$major'
10735    fi
10736    shlibpath_var=LIBPATH
10737  fi
10738  ;;
10739
10740amigaos*)
10741  library_names_spec='$libname.ixlibrary $libname.a'
10742  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10743  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'
10744  ;;
10745
10746beos*)
10747  library_names_spec='${libname}${shared_ext}'
10748  dynamic_linker="$host_os ld.so"
10749  shlibpath_var=LIBRARY_PATH
10750  ;;
10751
10752bsdi[45]*)
10753  version_type=linux
10754  need_version=no
10755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756  soname_spec='${libname}${release}${shared_ext}$major'
10757  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10758  shlibpath_var=LD_LIBRARY_PATH
10759  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10760  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10761  # the default ld.so.conf also contains /usr/contrib/lib and
10762  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10763  # libtool to hard-code these into programs
10764  ;;
10765
10766cygwin* | mingw* | pw32*)
10767  version_type=windows
10768  shrext_cmds=".dll"
10769  need_version=no
10770  need_lib_prefix=no
10771
10772  case $GCC,$host_os in
10773  yes,cygwin* | yes,mingw* | yes,pw32*)
10774    library_names_spec='$libname.dll.a'
10775    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10776    postinstall_cmds='base_file=`basename \${file}`~
10777      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10778      dldir=$destdir/`dirname \$dlpath`~
10779      test -d \$dldir || mkdir -p \$dldir~
10780      $install_prog $dir/$dlname \$dldir/$dlname~
10781      chmod a+x \$dldir/$dlname'
10782    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10783      dlpath=$dir/\$dldll~
10784       $rm \$dlpath'
10785    shlibpath_overrides_runpath=yes
10786
10787    case $host_os in
10788    cygwin*)
10789      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10790      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10791      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10792      ;;