source: ThirdParty/Mumps/trunk/configure @ 1589

Last change on this file since 1589 was 1589, checked in by stefan, 11 years ago

give project name to COIN_PROJECTDIR_INIT; rerun autotools

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