source: ThirdParty/Mumps/trunk/configure @ 2085

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

drop creating of addlibs file; rerun autotools

File size: 858.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMumps trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMumps'
431PACKAGE_TARNAME='thirdpartymumps'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyMumps trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="MUMPS/src/dmumps_part1.F"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion MUMPS_SVN_REV build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE 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 COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED MUMPS_CFLAGS MUMPS_LIBS MUMPS_PCLIBS MUMPS_PCREQUIRES MUMPS_DEPENDENCIES MUMPS_CFLAGS_INSTALLED MUMPS_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
993ac_env_PKG_CONFIG_value=$PKG_CONFIG
994ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
995ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyMumps trunk 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 trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-mumps compile this project (Mumps) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-pkg-config     use pkg-config if available (default is yes)
1096  --enable-interpackage-dependencies
1097                          whether to deduce Makefile dependencies from package
1098                          linker flags (default: yes)
1099
1100Optional Packages:
1101  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1102  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1103  --with-mumps-verbosity specify the debug verbosity level for project Mumps
1104  --with-mumps-checklevel specify the sanity check level for project Mumps
1105  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1106  --with-pic              try to use only PIC/non-PIC objects [default=use
1107                          both]
1108  --with-tags[=TAGS]
1109                          include additional configurations [automatic]
1110  --with-blas             specify BLAS library (or BUILD to enforce use of
1111                          ThirdParty/Blas)
1112
1113  --with-coin-instdir     prefix of installation directory for precompiled
1114                          COIN packages
1115  --with-blas-lib linker flags for using package Blas
1116  --with-blas-incdir directory with header files for using package Blas
1117  --with-blas-datadir directory with data files for using package Blas
1118  --with-metis-lib linker flags for using package Metis
1119  --with-metis-incdir directory with header files for using package Metis
1120  --with-metis-datadir directory with data files for using package Metis
1121
1122Some influential environment variables:
1123  CDEFS       Additional -D flags to be used when compiling C code.
1124  ADD_CFLAGS  Additional C compiler options
1125  DBG_CFLAGS  Debug C compiler options
1126  OPT_CFLAGS  Optimize C compiler options
1127  CC          C compiler command
1128  CFLAGS      C compiler flags
1129  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1130              nonstandard directory <lib dir>
1131  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1132              headers in a nonstandard directory <include dir>
1133  MPICC       C MPI Compiler
1134  ADD_FFLAGS  Additional Fortran compiler options
1135  DBG_FFLAGS  Debug Fortran compiler options
1136  OPT_FFLAGS  Optimize Fortran compiler options
1137  F77         Fortran 77 compiler command
1138  FFLAGS      Fortran 77 compiler flags
1139  MPIF77      Fortran MPI Compiler
1140  CPP         C preprocessor
1141  CXX         C++ compiler command
1142  CXXFLAGS    C++ compiler flags
1143  CXXCPP      C++ preprocessor
1144  PKG_CONFIG  path to pkg-config utility
1145
1146Use these variables to override the choices made by `configure' or to help
1147it to find libraries and programs with nonstandard names/locations.
1148
1149Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1150_ACEOF
1151fi
1152
1153if test "$ac_init_help" = "recursive"; then
1154  # If there are subdirs, report their specific --help.
1155  ac_popdir=`pwd`
1156  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1157    test -d $ac_dir || continue
1158    ac_builddir=.
1159
1160if test "$ac_dir" != .; then
1161  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1162  # A "../" for each directory in $ac_dir_suffix.
1163  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1164else
1165  ac_dir_suffix= ac_top_builddir=
1166fi
1167
1168case $srcdir in
1169  .)  # No --srcdir option.  We are building in place.
1170    ac_srcdir=.
1171    if test -z "$ac_top_builddir"; then
1172       ac_top_srcdir=.
1173    else
1174       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1175    fi ;;
1176  [\\/]* | ?:[\\/]* )  # Absolute path.
1177    ac_srcdir=$srcdir$ac_dir_suffix;
1178    ac_top_srcdir=$srcdir ;;
1179  *) # Relative path.
1180    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1181    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1182esac
1183
1184# Do not use `cd foo && pwd` to compute absolute paths, because
1185# the directories may not exist.
1186case `pwd` in
1187.) ac_abs_builddir="$ac_dir";;
1188*)
1189  case "$ac_dir" in
1190  .) ac_abs_builddir=`pwd`;;
1191  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1192  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1193  esac;;
1194esac
1195case $ac_abs_builddir in
1196.) ac_abs_top_builddir=${ac_top_builddir}.;;
1197*)
1198  case ${ac_top_builddir}. in
1199  .) ac_abs_top_builddir=$ac_abs_builddir;;
1200  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1201  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1202  esac;;
1203esac
1204case $ac_abs_builddir in
1205.) ac_abs_srcdir=$ac_srcdir;;
1206*)
1207  case $ac_srcdir in
1208  .) ac_abs_srcdir=$ac_abs_builddir;;
1209  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1210  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1211  esac;;
1212esac
1213case $ac_abs_builddir in
1214.) ac_abs_top_srcdir=$ac_top_srcdir;;
1215*)
1216  case $ac_top_srcdir in
1217  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1218  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1219  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1220  esac;;
1221esac
1222
1223    cd $ac_dir
1224    # Check for guested configure; otherwise get Cygnus style configure.
1225    if test -f $ac_srcdir/configure.gnu; then
1226      echo
1227      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1228    elif test -f $ac_srcdir/configure; then
1229      echo
1230      $SHELL $ac_srcdir/configure  --help=recursive
1231    elif test -f $ac_srcdir/configure.ac ||
1232           test -f $ac_srcdir/configure.in; then
1233      echo
1234      $ac_configure --help
1235    else
1236      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1237    fi
1238    cd $ac_popdir
1239  done
1240fi
1241
1242test -n "$ac_init_help" && exit 0
1243if $ac_init_version; then
1244  cat <<\_ACEOF
1245ThirdPartyMumps configure trunk
1246generated by GNU Autoconf 2.59
1247
1248Copyright (C) 2003 Free Software Foundation, Inc.
1249This configure script is free software; the Free Software Foundation
1250gives unlimited permission to copy, distribute and modify it.
1251
1252
1253Copyright 2007-2009 International Business Machines and others.
1254All Rights Reserved.
1255This file is part of the open source package Coin which is distributed
1256under the Eclipse Public License.
1257_ACEOF
1258  exit 0
1259fi
1260exec 5>config.log
1261cat >&5 <<_ACEOF
1262This file contains any messages produced by compilers while
1263running configure, to aid debugging if configure makes a mistake.
1264
1265It was created by ThirdPartyMumps $as_me trunk, which was
1266generated by GNU Autoconf 2.59.  Invocation command line was
1267
1268  $ $0 $@
1269
1270_ACEOF
1271{
1272cat <<_ASUNAME
1273## --------- ##
1274## Platform. ##
1275## --------- ##
1276
1277hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1278uname -m = `(uname -m) 2>/dev/null || echo unknown`
1279uname -r = `(uname -r) 2>/dev/null || echo unknown`
1280uname -s = `(uname -s) 2>/dev/null || echo unknown`
1281uname -v = `(uname -v) 2>/dev/null || echo unknown`
1282
1283/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1284/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1285
1286/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1287/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1288/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1289hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1290/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1291/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1292/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1293
1294_ASUNAME
1295
1296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1297for as_dir in $PATH
1298do
1299  IFS=$as_save_IFS
1300  test -z "$as_dir" && as_dir=.
1301  echo "PATH: $as_dir"
1302done
1303
1304} >&5
1305
1306cat >&5 <<_ACEOF
1307
1308
1309## ----------- ##
1310## Core tests. ##
1311## ----------- ##
1312
1313_ACEOF
1314
1315
1316# Keep a trace of the command line.
1317# Strip out --no-create and --no-recursion so they do not pile up.
1318# Strip out --silent because we don't want to record it for future runs.
1319# Also quote any args containing shell meta-characters.
1320# Make two passes to allow for proper duplicate-argument suppression.
1321ac_configure_args=
1322ac_configure_args0=
1323ac_configure_args1=
1324ac_sep=
1325ac_must_keep_next=false
1326for ac_pass in 1 2
1327do
1328  for ac_arg
1329  do
1330    case $ac_arg in
1331    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1332    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1333    | -silent | --silent | --silen | --sile | --sil)
1334      continue ;;
1335    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1336      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1337    esac
1338    case $ac_pass in
1339    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1340    2)
1341      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1342      if test $ac_must_keep_next = true; then
1343        ac_must_keep_next=false # Got value, back to normal.
1344      else
1345        case $ac_arg in
1346          *=* | --config-cache | -C | -disable-* | --disable-* \
1347          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1348          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1349          | -with-* | --with-* | -without-* | --without-* | --x)
1350            case "$ac_configure_args0 " in
1351              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1352            esac
1353            ;;
1354          -* ) ac_must_keep_next=true ;;
1355        esac
1356      fi
1357      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1358      # Get rid of the leading space.
1359      ac_sep=" "
1360      ;;
1361    esac
1362  done
1363done
1364$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1365$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1366
1367# When interrupted or exit'd, cleanup temporary files, and complete
1368# config.log.  We remove comments because anyway the quotes in there
1369# would cause problems or look ugly.
1370# WARNING: Be sure not to use single quotes in there, as some shells,
1371# such as our DU 5.0 friend, will then `close' the trap.
1372trap 'exit_status=$?
1373  # Save into config.log some information that might help in debugging.
1374  {
1375    echo
1376
1377    cat <<\_ASBOX
1378## ---------------- ##
1379## Cache variables. ##
1380## ---------------- ##
1381_ASBOX
1382    echo
1383    # The following way of writing the cache mishandles newlines in values,
1384{
1385  (set) 2>&1 |
1386    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1387    *ac_space=\ *)
1388      sed -n \
1389        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1390          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1391      ;;
1392    *)
1393      sed -n \
1394        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1395      ;;
1396    esac;
1397}
1398    echo
1399
1400    cat <<\_ASBOX
1401## ----------------- ##
1402## Output variables. ##
1403## ----------------- ##
1404_ASBOX
1405    echo
1406    for ac_var in $ac_subst_vars
1407    do
1408      eval ac_val=$`echo $ac_var`
1409      echo "$ac_var='"'"'$ac_val'"'"'"
1410    done | sort
1411    echo
1412
1413    if test -n "$ac_subst_files"; then
1414      cat <<\_ASBOX
1415## ------------- ##
1416## Output files. ##
1417## ------------- ##
1418_ASBOX
1419      echo
1420      for ac_var in $ac_subst_files
1421      do
1422        eval ac_val=$`echo $ac_var`
1423        echo "$ac_var='"'"'$ac_val'"'"'"
1424      done | sort
1425      echo
1426    fi
1427
1428    if test -s confdefs.h; then
1429      cat <<\_ASBOX
1430## ----------- ##
1431## confdefs.h. ##
1432## ----------- ##
1433_ASBOX
1434      echo
1435      sed "/^$/d" confdefs.h | sort
1436      echo
1437    fi
1438    test "$ac_signal" != 0 &&
1439      echo "$as_me: caught signal $ac_signal"
1440    echo "$as_me: exit $exit_status"
1441  } >&5
1442  rm -f core *.core &&
1443  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1444    exit $exit_status
1445     ' 0
1446for ac_signal in 1 2 13 15; do
1447  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1448done
1449ac_signal=0
1450
1451# confdefs.h avoids OS command line length limits that DEFS can exceed.
1452rm -rf conftest* confdefs.h
1453# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1454echo >confdefs.h
1455
1456# Predefined preprocessor variables.
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_NAME "$PACKAGE_NAME"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_VERSION "$PACKAGE_VERSION"
1470_ACEOF
1471
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_STRING "$PACKAGE_STRING"
1475_ACEOF
1476
1477
1478cat >>confdefs.h <<_ACEOF
1479#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1480_ACEOF
1481
1482
1483# Let the site file select an alternate cache file if it wants to.
1484# Prefer explicitly selected file to automatically selected ones.
1485if test -z "$CONFIG_SITE"; then
1486  if test "x$prefix" != xNONE; then
1487    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1488  else
1489    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1490  fi
1491fi
1492for ac_site_file in $CONFIG_SITE; do
1493  if test -r "$ac_site_file"; then
1494    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1495echo "$as_me: loading site script $ac_site_file" >&6;}
1496    sed 's/^/| /' "$ac_site_file" >&5
1497    . "$ac_site_file"
1498  fi
1499done
1500
1501if test -r "$cache_file"; then
1502  # Some versions of bash will fail to source /dev/null (special
1503  # files actually), so we avoid doing that.
1504  if test -f "$cache_file"; then
1505    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1506echo "$as_me: loading cache $cache_file" >&6;}
1507    case $cache_file in
1508      [\\/]* | ?:[\\/]* ) . $cache_file;;
1509      *)                      . ./$cache_file;;
1510    esac
1511  fi
1512else
1513  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1514echo "$as_me: creating cache $cache_file" >&6;}
1515  >$cache_file
1516fi
1517
1518# Check that the precious variables saved in the cache have kept the same
1519# value.
1520ac_cache_corrupted=false
1521for ac_var in `(set) 2>&1 |
1522               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1523  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1524  eval ac_new_set=\$ac_env_${ac_var}_set
1525  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1526  eval ac_new_val="\$ac_env_${ac_var}_value"
1527  case $ac_old_set,$ac_new_set in
1528    set,)
1529      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1530echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1531      ac_cache_corrupted=: ;;
1532    ,set)
1533      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1534echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1535      ac_cache_corrupted=: ;;
1536    ,);;
1537    *)
1538      if test "x$ac_old_val" != "x$ac_new_val"; then
1539        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1540echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1541        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1542echo "$as_me:   former value:  $ac_old_val" >&2;}
1543        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1544echo "$as_me:   current value: $ac_new_val" >&2;}
1545        ac_cache_corrupted=:
1546      fi;;
1547  esac
1548  # Pass precious variables to config.status.
1549  if test "$ac_new_set" = set; then
1550    case $ac_new_val in
1551    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1552      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1553    *) ac_arg=$ac_var=$ac_new_val ;;
1554    esac
1555    case " $ac_configure_args " in
1556      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1557      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1558    esac
1559  fi
1560done
1561if $ac_cache_corrupted; then
1562  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1563echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1564  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1565echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1566   { (exit 1); exit 1; }; }
1567fi
1568
1569ac_ext=c
1570ac_cpp='$CPP $CPPFLAGS'
1571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1573ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604# List one file in the package so that the configure script can test
1605# whether the package is actually there
1606
1607
1608# Where should everything be installed by default?  Here, we want it
1609# to be installed directly in 'bin', 'lib', 'include' subdirectories
1610# of the directory where configure is run.  The default would be
1611# /usr/local.
1612
1613
1614
1615# As backup, we make sure we don't loose an FLIBS if it has been set
1616# by the user
1617save_FLIBS="$FLIBS"
1618
1619# A useful makefile conditional that is always false
1620
1621
1622if false; then
1623  ALWAYS_FALSE_TRUE=
1624  ALWAYS_FALSE_FALSE='#'
1625else
1626  ALWAYS_FALSE_TRUE='#'
1627  ALWAYS_FALSE_FALSE=
1628fi
1629
1630
1631# We set the following variable so that we know later in AC_COIN_FINALIZE
1632# that we are in a project main directory
1633coin_projectdir=yes
1634
1635# Set the project's version number
1636if test "xMumps" != x; then
1637
1638cat >>confdefs.h <<_ACEOF
1639#define MUMPS_VERSION "$PACKAGE_VERSION"
1640_ACEOF
1641
1642fi
1643
1644# Set the project's SVN revision number. The complicated sed expression
1645# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1646# as a single number.
1647# Extract the first word of "svnversion", so it can be a program name with args.
1648set dummy svnversion; ac_word=$2
1649echo "$as_me:$LINENO: checking for $ac_word" >&5
1650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651if test "${ac_cv_prog_have_svnversion+set}" = set; then
1652  echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654  if test -n "$have_svnversion"; then
1655  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1656else
1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658for as_dir in $PATH
1659do
1660  IFS=$as_save_IFS
1661  test -z "$as_dir" && as_dir=.
1662  for ac_exec_ext in '' $ac_executable_extensions; do
1663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664    ac_cv_prog_have_svnversion="yes"
1665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666    break 2
1667  fi
1668done
1669done
1670
1671  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1672fi
1673fi
1674have_svnversion=$ac_cv_prog_have_svnversion
1675if test -n "$have_svnversion"; then
1676  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1677echo "${ECHO_T}$have_svnversion" >&6
1678else
1679  echo "$as_me:$LINENO: result: no" >&5
1680echo "${ECHO_T}no" >&6
1681fi
1682
1683if test "x$have_svnversion" = xyes && test "xMumps" != x; then
1684
1685  svn_rev_tmp=`cd $srcdir/$coin_has_mumps ; svnversion`
1686  MUMPS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1687  if test $MUMPS_SVN_REV != exported; then
1688
1689cat >>confdefs.h <<_ACEOF
1690#define MUMPS_SVN_REV $MUMPS_SVN_REV
1691_ACEOF
1692
1693  fi
1694fi
1695
1696# Capture libtool library version, if given.
1697
1698
1699
1700#############################################################################
1701#                         Standard build tool stuff                         #
1702#############################################################################
1703
1704# Get the system type
1705ac_aux_dir=
1706for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1707  if test -f $ac_dir/install-sh; then
1708    ac_aux_dir=$ac_dir
1709    ac_install_sh="$ac_aux_dir/install-sh -c"
1710    break
1711  elif test -f $ac_dir/install.sh; then
1712    ac_aux_dir=$ac_dir
1713    ac_install_sh="$ac_aux_dir/install.sh -c"
1714    break
1715  elif test -f $ac_dir/shtool; then
1716    ac_aux_dir=$ac_dir
1717    ac_install_sh="$ac_aux_dir/shtool install -c"
1718    break
1719  fi
1720done
1721if test -z "$ac_aux_dir"; then
1722  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1723echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1724   { (exit 1); exit 1; }; }
1725fi
1726ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1727ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1728ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1729
1730# Make sure we can run config.sub.
1731$ac_config_sub sun4 >/dev/null 2>&1 ||
1732  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1733echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1734   { (exit 1); exit 1; }; }
1735
1736echo "$as_me:$LINENO: checking build system type" >&5
1737echo $ECHO_N "checking build system type... $ECHO_C" >&6
1738if test "${ac_cv_build+set}" = set; then
1739  echo $ECHO_N "(cached) $ECHO_C" >&6
1740else
1741  ac_cv_build_alias=$build_alias
1742test -z "$ac_cv_build_alias" &&
1743  ac_cv_build_alias=`$ac_config_guess`
1744test -z "$ac_cv_build_alias" &&
1745  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1746echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1747   { (exit 1); exit 1; }; }
1748ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1749  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1750echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1751   { (exit 1); exit 1; }; }
1752
1753fi
1754echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1755echo "${ECHO_T}$ac_cv_build" >&6
1756build=$ac_cv_build
1757build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1758build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1759build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1760
1761
1762
1763#turn off warnings and pedantic mode since they could make trouble on some platforms,
1764#and we couldn't fix them anyway
1765coin_skip_warn_cflags=yes
1766coin_skip_warn_fflags=yes
1767
1768# Check if user wants to produce debugging code
1769
1770echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1771echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1772
1773# Check whether --enable-debug or --disable-debug was given.
1774if test "${enable_debug+set}" = set; then
1775  enableval="$enable_debug"
1776  case "${enableval}" in
1777   yes) coin_debug_compile=true
1778        if test "${enable_shared+set}" = set; then :; else
1779          enable_shared=no
1780        fi
1781        ;;
1782   no)  coin_debug_compile=false
1783        ;;
1784   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1785echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1786   { (exit 1); exit 1; }; }
1787        ;;
1788esac
1789else
1790  coin_debug_compile=false
1791fi;
1792
1793# Check whether --enable-debug-mumps or --disable-debug-mumps was given.
1794if test "${enable_debug_mumps+set}" = set; then
1795  enableval="$enable_debug_mumps"
1796  case "${enableval}" in
1797    yes) coin_debug_compile=true
1798         enable_shared=no
1799         ;;
1800    no)  coin_debug_compile=false
1801         ;;
1802    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5
1803echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;}
1804   { (exit 1); exit 1; }; }
1805         ;;
1806 esac
1807else
1808  :
1809fi;
1810
1811 # m4_ifvaln([Mumps],
1812
1813if test $coin_debug_compile = true; then
1814  echo "$as_me:$LINENO: result: yes" >&5
1815echo "${ECHO_T}yes" >&6
1816else
1817  echo "$as_me:$LINENO: result: no" >&5
1818echo "${ECHO_T}no" >&6
1819fi
1820
1821
1822# Check whether --with-mumps-verbosity or --without-mumps-verbosity was given.
1823if test "${with_mumps_verbosity+set}" = set; then
1824  withval="$with_mumps_verbosity"
1825  if test "$withval" = yes; then
1826                withval=1
1827              fi
1828              coin_mumps_verbosity=$withval
1829else
1830  coin_mumps_verbosity=0
1831fi;
1832
1833cat >>confdefs.h <<_ACEOF
1834#define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity
1835_ACEOF
1836
1837
1838
1839# Check whether --with-mumps-checklevel or --without-mumps-checklevel was given.
1840if test "${with_mumps_checklevel+set}" = set; then
1841  withval="$with_mumps_checklevel"
1842  if test "$withval" = yes; then
1843                withval=1
1844              fi
1845              coin_mumps_checklevel=$withval
1846else
1847  coin_mumps_checklevel=0
1848fi;
1849
1850cat >>confdefs.h <<_ACEOF
1851#define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel
1852_ACEOF
1853
1854
1855# We use the following variable to have a string with the upper case
1856# version of the project name
1857COIN_PRJCT=MUMPS
1858
1859
1860 # m4_ifvaln([Mumps],
1861
1862
1863
1864# Get the name of the C compiler
1865case $build in
1866  *-mingw*)
1867    if test "${LD+set}" = set; then :; else
1868      LD=link
1869    fi
1870    ;;
1871 esac
1872 case $enable_doscompile in
1873   msvc)
1874     if test "x${LD+set}" = xset; then :; else
1875       LD=link
1876     fi
1877     ;;
1878 esac
1879
1880
1881 # Check whether --enable-doscompile or --disable-doscompile was given.
1882if test "${enable_doscompile+set}" = set; then
1883  enableval="$enable_doscompile"
1884  if test "$enable_doscompile" != no; then
1885     case $build in
1886       *-cygwin* | *-mingw*) ;;
1887       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1888echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1889   { (exit 1); exit 1; }; } ;;
1890     esac
1891   fi
1892else
1893  enable_doscompile=no
1894fi;
1895 case "$enable_doscompile" in
1896   mingw)
1897     case $build in
1898       *-mingw*) enable_doscompile=no ;;
1899     esac
1900     ;;
1901   msvc|no) ;;
1902   yes) enable_doscompile=mingw ;;
1903   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1904                    Try configure --help=recursive." >&5
1905echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1906                    Try configure --help=recursive." >&2;}
1907   { (exit 1); exit 1; }; }
1908      ;;
1909  esac
1910  if test "$enable_doscompile" != no ; then
1911    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1912echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1913  fi
1914
1915
1916
1917
1918ac_ext=c
1919ac_cpp='$CPP $CPPFLAGS'
1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925# For consistency, we set the C compiler to the same value of the C++
1926# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1927if test x"$CXX" != x; then
1928  case "$CXX" in
1929    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1930      if test x"$CC" = x; then
1931        CC="$CXX"
1932        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1933echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1934      fi
1935      ;;
1936  esac
1937fi
1938
1939# add automake conditional so we can recognize cl compiler in makefile
1940coin_cc_is_cl=false
1941if test x"$CXX" != x; then
1942  case "$CXX" in
1943    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1944      coin_cc_is_cl=true
1945      ;;
1946  esac
1947fi
1948
1949
1950if test $coin_cc_is_cl = true; then
1951  COIN_CC_IS_CL_TRUE=
1952  COIN_CC_IS_CL_FALSE='#'
1953else
1954  COIN_CC_IS_CL_TRUE='#'
1955  COIN_CC_IS_CL_FALSE=
1956fi
1957
1958
1959
1960
1961
1962
1963
1964coin_has_cc=yes
1965
1966save_cflags="$CFLAGS"
1967
1968# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1969# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1970# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1971# compiler. In this case, put cc after gcc.
1972
1973case $build in
1974  *-cygwin* | *-mingw*)
1975             if test "$enable_doscompile" = msvc ; then
1976               comps="icl cl"
1977             else
1978               comps="gcc cl"
1979             fi ;;
1980  *-*-solaris*)
1981             # Extract the first word of "cc", so it can be a program name with args.
1982set dummy cc; ac_word=$2
1983echo "$as_me:$LINENO: checking for $ac_word" >&5
1984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1986  echo $ECHO_N "(cached) $ECHO_C" >&6
1987else
1988  if test -n "$sol_cc_compiler"; then
1989  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1990else
1991  ac_prog_rejected=no
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995  IFS=$as_save_IFS
1996  test -z "$as_dir" && as_dir=.
1997  for ac_exec_ext in '' $ac_executable_extensions; do
1998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2000       ac_prog_rejected=yes
2001       continue
2002     fi
2003    ac_cv_prog_sol_cc_compiler="cc"
2004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005    break 2
2006  fi
2007done
2008done
2009
2010if test $ac_prog_rejected = yes; then
2011  # We found a bogon in the path, so make sure we never use it.
2012  set dummy $ac_cv_prog_sol_cc_compiler
2013  shift
2014  if test $# != 0; then
2015    # We chose a different compiler from the bogus one.
2016    # However, it has the same basename, so the bogon will be chosen
2017    # first if we set sol_cc_compiler to just the basename; use the full file name.
2018    shift
2019    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2020  fi
2021fi
2022fi
2023fi
2024sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2025if test -n "$sol_cc_compiler"; then
2026  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2027echo "${ECHO_T}$sol_cc_compiler" >&6
2028else
2029  echo "$as_me:$LINENO: result: no" >&5
2030echo "${ECHO_T}no" >&6
2031fi
2032
2033             if test "$sol_cc_compiler" = "cc" ; then
2034               comps="cc xlc gcc pgcc icc"
2035             else
2036               comps="xlc gcc pgcc icc cc"
2037             fi
2038             ;;
2039  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2040  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2041  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2042esac
2043
2044# We delete the cached value, since the test might not have been
2045# performed with our choice of compilers earlier
2046$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2047# AC_MSG_NOTICE([C compiler candidates: $comps])
2048ac_ext=c
2049ac_cpp='$CPP $CPPFLAGS'
2050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053if test -n "$ac_tool_prefix"; then
2054  for ac_prog in $comps
2055  do
2056    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2058echo "$as_me:$LINENO: checking for $ac_word" >&5
2059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060if test "${ac_cv_prog_CC+set}" = set; then
2061  echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
2063  if test -n "$CC"; then
2064  ac_cv_prog_CC="$CC" # Let the user override the test.
2065else
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069  IFS=$as_save_IFS
2070  test -z "$as_dir" && as_dir=.
2071  for ac_exec_ext in '' $ac_executable_extensions; do
2072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075    break 2
2076  fi
2077done
2078done
2079
2080fi
2081fi
2082CC=$ac_cv_prog_CC
2083if test -n "$CC"; then
2084  echo "$as_me:$LINENO: result: $CC" >&5
2085echo "${ECHO_T}$CC" >&6
2086else
2087  echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
2089fi
2090
2091    test -n "$CC" && break
2092  done
2093fi
2094if test -z "$CC"; then
2095  ac_ct_CC=$CC
2096  for ac_prog in $comps
2097do
2098  # Extract the first word of "$ac_prog", so it can be a program name with args.
2099set dummy $ac_prog; ac_word=$2
2100echo "$as_me:$LINENO: checking for $ac_word" >&5
2101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2103  echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105  if test -n "$ac_ct_CC"; then
2106  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2107else
2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111  IFS=$as_save_IFS
2112  test -z "$as_dir" && as_dir=.
2113  for ac_exec_ext in '' $ac_executable_extensions; do
2114  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115    ac_cv_prog_ac_ct_CC="$ac_prog"
2116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117    break 2
2118  fi
2119done
2120done
2121
2122fi
2123fi
2124ac_ct_CC=$ac_cv_prog_ac_ct_CC
2125if test -n "$ac_ct_CC"; then
2126  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2127echo "${ECHO_T}$ac_ct_CC" >&6
2128else
2129  echo "$as_me:$LINENO: result: no" >&5
2130echo "${ECHO_T}no" >&6
2131fi
2132
2133  test -n "$ac_ct_CC" && break
2134done
2135
2136  CC=$ac_ct_CC
2137fi
2138
2139
2140test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2141See \`config.log' for more details." >&5
2142echo "$as_me: error: no acceptable C compiler found in \$PATH
2143See \`config.log' for more details." >&2;}
2144   { (exit 1); exit 1; }; }
2145
2146# Provide some information about the compiler.
2147echo "$as_me:$LINENO:" \
2148     "checking for C compiler version" >&5
2149ac_compiler=`set X $ac_compile; echo $2`
2150{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2151  (eval $ac_compiler --version </dev/null >&5) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }
2155{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2156  (eval $ac_compiler -v </dev/null >&5) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }
2160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2161  (eval $ac_compiler -V </dev/null >&5) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }
2165
2166cat >conftest.$ac_ext <<_ACEOF
2167/* confdefs.h.  */
2168_ACEOF
2169cat confdefs.h >>conftest.$ac_ext
2170cat >>conftest.$ac_ext <<_ACEOF
2171/* end confdefs.h.  */
2172
2173int
2174main ()
2175{
2176
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181ac_clean_files_save=$ac_clean_files
2182ac_clean_files="$ac_clean_files a.out a.exe b.out"
2183# Try to create an executable without -o first, disregard a.out.
2184# It will help us diagnose broken compilers, and finding out an intuition
2185# of exeext.
2186echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2187echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2188ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2189if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2190  (eval $ac_link_default) 2>&5
2191  ac_status=$?
2192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193  (exit $ac_status); }; then
2194  # Find the output, starting from the most likely.  This scheme is
2195# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2196# resort.
2197
2198# Be careful to initialize this variable, since it used to be cached.
2199# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2200ac_cv_exeext=
2201# b.out is created by i960 compilers.
2202for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2203do
2204  test -f "$ac_file" || continue
2205  case $ac_file in
2206    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2207        ;;
2208    conftest.$ac_ext )
2209        # This is the source file.
2210        ;;
2211    [ab].out )
2212        # We found the default executable, but exeext='' is most
2213        # certainly right.
2214        break;;
2215    *.* )
2216        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217        # FIXME: I believe we export ac_cv_exeext for Libtool,
2218        # but it would be cool to find out if it's true.  Does anybody
2219        # maintain Libtool? --akim.
2220        export ac_cv_exeext
2221        break;;
2222    * )
2223        break;;
2224  esac
2225done
2226else
2227  echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2231See \`config.log' for more details." >&5
2232echo "$as_me: error: C compiler cannot create executables
2233See \`config.log' for more details." >&2;}
2234   { (exit 77); exit 77; }; }
2235fi
2236
2237ac_exeext=$ac_cv_exeext
2238echo "$as_me:$LINENO: result: $ac_file" >&5
2239echo "${ECHO_T}$ac_file" >&6
2240
2241# Check the compiler produces executables we can run.  If not, either
2242# the compiler is broken, or we cross compile.
2243echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2244echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2245# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2246# If not cross compiling, check that we can run a simple program.
2247if test "$cross_compiling" != yes; then
2248  if { ac_try='./$ac_file'
2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250  (eval $ac_try) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; }; then
2254    cross_compiling=no
2255  else
2256    if test "$cross_compiling" = maybe; then
2257        cross_compiling=yes
2258    else
2259        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2260If you meant to cross compile, use \`--host'.
2261See \`config.log' for more details." >&5
2262echo "$as_me: error: cannot run C compiled programs.
2263If you meant to cross compile, use \`--host'.
2264See \`config.log' for more details." >&2;}
2265   { (exit 1); exit 1; }; }
2266    fi
2267  fi
2268fi
2269echo "$as_me:$LINENO: result: yes" >&5
2270echo "${ECHO_T}yes" >&6
2271
2272rm -f a.out a.exe conftest$ac_cv_exeext b.out
2273ac_clean_files=$ac_clean_files_save
2274# Check the compiler produces executables we can run.  If not, either
2275# the compiler is broken, or we cross compile.
2276echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2277echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2278echo "$as_me:$LINENO: result: $cross_compiling" >&5
2279echo "${ECHO_T}$cross_compiling" >&6
2280
2281echo "$as_me:$LINENO: checking for suffix of executables" >&5
2282echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2284  (eval $ac_link) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; then
2288  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2290# work properly (i.e., refer to `conftest.exe'), while it won't with
2291# `rm'.
2292for ac_file in conftest.exe conftest conftest.*; do
2293  test -f "$ac_file" || continue
2294  case $ac_file in
2295    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2296    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297          export ac_cv_exeext
2298          break;;
2299    * ) break;;
2300  esac
2301done
2302else
2303  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2304See \`config.log' for more details." >&5
2305echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2306See \`config.log' for more details." >&2;}
2307   { (exit 1); exit 1; }; }
2308fi
2309
2310rm -f conftest$ac_cv_exeext
2311echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2312echo "${ECHO_T}$ac_cv_exeext" >&6
2313
2314rm -f conftest.$ac_ext
2315EXEEXT=$ac_cv_exeext
2316ac_exeext=$EXEEXT
2317echo "$as_me:$LINENO: checking for suffix of object files" >&5
2318echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2319if test "${ac_cv_objext+set}" = set; then
2320  echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322  cat >conftest.$ac_ext <<_ACEOF
2323/* confdefs.h.  */
2324_ACEOF
2325cat confdefs.h >>conftest.$ac_ext
2326cat >>conftest.$ac_ext <<_ACEOF
2327/* end confdefs.h.  */
2328
2329int
2330main ()
2331{
2332
2333  ;
2334  return 0;
2335}
2336_ACEOF
2337rm -f conftest.o conftest.obj
2338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339  (eval $ac_compile) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }; then
2343  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2344  case $ac_file in
2345    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2346    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347       break;;
2348  esac
2349done
2350else
2351  echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2355See \`config.log' for more details." >&5
2356echo "$as_me: error: cannot compute suffix of object files: cannot compile
2357See \`config.log' for more details." >&2;}
2358   { (exit 1); exit 1; }; }
2359fi
2360
2361rm -f conftest.$ac_cv_objext conftest.$ac_ext
2362fi
2363echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2364echo "${ECHO_T}$ac_cv_objext" >&6
2365OBJEXT=$ac_cv_objext
2366ac_objext=$OBJEXT
2367echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2368echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2369if test "${ac_cv_c_compiler_gnu+set}" = set; then
2370  echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372  cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h.  */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h.  */
2378
2379int
2380main ()
2381{
2382#ifndef __GNUC__
2383       choke me
2384#endif
2385
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390rm -f conftest.$ac_objext
2391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392  (eval $ac_compile) 2>conftest.er1
2393  ac_status=$?
2394  grep -v '^ *+' conftest.er1 >conftest.err
2395  rm -f conftest.er1
2396  cat conftest.err >&5
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); } &&
2399         { ac_try='test -z "$ac_c_werror_flag"
2400                         || test ! -s conftest.err'
2401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402  (eval $ac_try) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); }; } &&
2406         { ac_try='test -s conftest.$ac_objext'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; }; then
2412  ac_compiler_gnu=yes
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417ac_compiler_gnu=no
2418fi
2419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2420ac_cv_c_compiler_gnu=$ac_compiler_gnu
2421
2422fi
2423echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2424echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2425GCC=`test $ac_compiler_gnu = yes && echo yes`
2426ac_test_CFLAGS=${CFLAGS+set}
2427ac_save_CFLAGS=$CFLAGS
2428CFLAGS="-g"
2429echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440
2441int
2442main ()
2443{
2444
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext
2450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451  (eval $ac_compile) 2>conftest.er1
2452  ac_status=$?
2453  grep -v '^ *+' conftest.er1 >conftest.err
2454  rm -f conftest.er1
2455  cat conftest.err >&5
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); } &&
2458         { ac_try='test -z "$ac_c_werror_flag"
2459                         || test ! -s conftest.err'
2460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461  (eval $ac_try) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; } &&
2465         { ac_try='test -s conftest.$ac_objext'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; }; then
2471  ac_cv_prog_cc_g=yes
2472else
2473  echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476ac_cv_prog_cc_g=no
2477fi
2478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479fi
2480echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2481echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2482if test "$ac_test_CFLAGS" = set; then
2483  CFLAGS=$ac_save_CFLAGS
2484elif test $ac_cv_prog_cc_g = yes; then
2485  if test "$GCC" = yes; then
2486    CFLAGS="-g -O2"
2487  else
2488    CFLAGS="-g"
2489  fi
2490else
2491  if test "$GCC" = yes; then
2492    CFLAGS="-O2"
2493  else
2494    CFLAGS=
2495  fi
2496fi
2497echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2498echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2499if test "${ac_cv_prog_cc_stdc+set}" = set; then
2500  echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502  ac_cv_prog_cc_stdc=no
2503ac_save_CC=$CC
2504cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h.  */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h.  */
2510#include <stdarg.h>
2511#include <stdio.h>
2512#include <sys/types.h>
2513#include <sys/stat.h>
2514/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2515struct buf { int x; };
2516FILE * (*rcsopen) (struct buf *, struct stat *, int);
2517static char *e (p, i)
2518     char **p;
2519     int i;
2520{
2521  return p[i];
2522}
2523static char *f (char * (*g) (char **, int), char **p, ...)
2524{
2525  char *s;
2526  va_list v;
2527  va_start (v,p);
2528  s = g (p, va_arg (v,int));
2529  va_end (v);
2530  return s;
2531}
2532
2533/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2534   function prototypes and stuff, but not '\xHH' hex character constants.
2535   These don't provoke an error unfortunately, instead are silently treated
2536   as 'x'.  The following induces an error, until -std1 is added to get
2537   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2538   array size at least.  It's necessary to write '\x00'==0 to get something
2539   that's true only with -std1.  */
2540int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2541
2542int test (int i, double x);
2543struct s1 {int (*f) (int a);};
2544struct s2 {int (*f) (double a);};
2545int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2546int argc;
2547char **argv;
2548int
2549main ()
2550{
2551return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2552  ;
2553  return 0;
2554}
2555_ACEOF
2556# Don't try gcc -ansi; that turns off useful extensions and
2557# breaks some systems' header files.
2558# AIX                   -qlanglvl=ansi
2559# Ultrix and OSF/1      -std1
2560# HP-UX 10.20 and later -Ae
2561# HP-UX older versions  -Aa -D_HPUX_SOURCE
2562# SVR4                  -Xc -D__EXTENSIONS__
2563for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2564do
2565  CC="$ac_save_CC $ac_arg"
2566  rm -f conftest.$ac_objext
2567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568  (eval $ac_compile) 2>conftest.er1
2569  ac_status=$?
2570  grep -v '^ *+' conftest.er1 >conftest.err
2571  rm -f conftest.er1
2572  cat conftest.err >&5
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); } &&
2575         { ac_try='test -z "$ac_c_werror_flag"
2576                         || test ! -s conftest.err'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; } &&
2582         { ac_try='test -s conftest.$ac_objext'
2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; }; then
2588  ac_cv_prog_cc_stdc=$ac_arg
2589break
2590else
2591  echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594fi
2595rm -f conftest.err conftest.$ac_objext
2596done
2597rm -f conftest.$ac_ext conftest.$ac_objext
2598CC=$ac_save_CC
2599
2600fi
2601
2602case "x$ac_cv_prog_cc_stdc" in
2603  x|xno)
2604    echo "$as_me:$LINENO: result: none needed" >&5
2605echo "${ECHO_T}none needed" >&6 ;;
2606  *)
2607    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2608echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2609    CC="$CC $ac_cv_prog_cc_stdc" ;;
2610esac
2611
2612# Some people use a C++ compiler to compile C.  Since we use `exit',
2613# in C++ we need to declare it.  In case someone uses the same compiler
2614# for both compiling C and C++ we need to have the C++ compiler decide
2615# the declaration of exit, since it's the most demanding environment.
2616cat >conftest.$ac_ext <<_ACEOF
2617#ifndef __cplusplus
2618  choke me
2619#endif
2620_ACEOF
2621rm -f conftest.$ac_objext
2622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623  (eval $ac_compile) 2>conftest.er1
2624  ac_status=$?
2625  grep -v '^ *+' conftest.er1 >conftest.err
2626  rm -f conftest.er1
2627  cat conftest.err >&5
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); } &&
2630         { ac_try='test -z "$ac_c_werror_flag"
2631                         || test ! -s conftest.err'
2632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633  (eval $ac_try) 2>&5
2634  ac_status=$?
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); }; } &&
2637         { ac_try='test -s conftest.$ac_objext'
2638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639  (eval $ac_try) 2>&5
2640  ac_status=$?
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); }; }; then
2643  for ac_declaration in \
2644   '' \
2645   'extern "C" void std::exit (int) throw (); using std::exit;' \
2646   'extern "C" void std::exit (int); using std::exit;' \
2647   'extern "C" void exit (int) throw ();' \
2648   'extern "C" void exit (int);' \
2649   'void exit (int);'
2650do
2651  cat >conftest.$ac_ext <<_ACEOF
2652/* confdefs.h.  */
2653_ACEOF
2654cat confdefs.h >>conftest.$ac_ext
2655cat >>conftest.$ac_ext <<_ACEOF
2656/* end confdefs.h.  */
2657$ac_declaration
2658#include <stdlib.h>
2659int
2660main ()
2661{
2662exit (42);
2663  ;
2664  return 0;
2665}
2666_ACEOF
2667rm -f conftest.$ac_objext
2668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669  (eval $ac_compile) 2>conftest.er1
2670  ac_status=$?
2671  grep -v '^ *+' conftest.er1 >conftest.err
2672  rm -f conftest.er1
2673  cat conftest.err >&5
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); } &&
2676         { ac_try='test -z "$ac_c_werror_flag"
2677                         || test ! -s conftest.err'
2678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679  (eval $ac_try) 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }; } &&
2683         { ac_try='test -s conftest.$ac_objext'
2684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685  (eval $ac_try) 2>&5
2686  ac_status=$?
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); }; }; then
2689  :
2690else
2691  echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
2694continue
2695fi
2696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697  cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h.  */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h.  */
2703$ac_declaration
2704int
2705main ()
2706{
2707exit (42);
2708  ;
2709  return 0;
2710}
2711_ACEOF
2712rm -f conftest.$ac_objext
2713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714  (eval $ac_compile) 2>conftest.er1
2715  ac_status=$?
2716  grep -v '^ *+' conftest.er1 >conftest.err
2717  rm -f conftest.er1
2718  cat conftest.err >&5
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); } &&
2721         { ac_try='test -z "$ac_c_werror_flag"
2722                         || test ! -s conftest.err'
2723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724  (eval $ac_try) 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }; } &&
2728         { ac_try='test -s conftest.$ac_objext'
2729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730  (eval $ac_try) 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; }; then
2734  break
2735else
2736  echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739fi
2740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741done
2742rm -f conftest*
2743if test -n "$ac_declaration"; then
2744  echo '#ifdef __cplusplus' >>confdefs.h
2745  echo $ac_declaration      >>confdefs.h
2746  echo '#endif'             >>confdefs.h
2747fi
2748
2749else
2750  echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753fi
2754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755ac_ext=c
2756ac_cpp='$CPP $CPPFLAGS'
2757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760
2761if test -z "$CC" ; then
2762  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2763echo "$as_me: error: Failed to find a C compiler!" >&2;}
2764   { (exit 1); exit 1; }; }
2765fi
2766# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2767case "$CC" in
2768  cl* | */cl* | CL* | */CL* )
2769    if test "$ac_cv_prog_cc_g" = yes ; then
2770      ac_cv_prog_cc_g=no
2771      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2772echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2773    fi ;;
2774esac
2775CFLAGS="$save_cflags"
2776
2777# Check if a project specific CFLAGS variable has been set
2778if test x$COIN_PRJCT != x; then
2779  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2780  if test x$coin_tmp = xset; then
2781    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2782  fi
2783fi
2784
2785if test x"$CFLAGS" = x; then
2786
2787  coin_add_cflags=
2788  coin_opt_cflags=
2789  coin_dbg_cflags=
2790  coin_warn_cflags=
2791
2792  if test "$GCC" = "yes"; then
2793    case "$CC" in
2794      icc* | */icc*)
2795        ;;
2796      *)
2797        coin_opt_cflags="-O3"
2798        coin_add_cflags="-pipe"
2799        coin_dbg_cflags="-g"
2800        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2801        case $build in
2802          *-darwin*)
2803            ;;
2804          *)
2805            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2806            ;;
2807        esac
2808        case $enable_doscompile in
2809          mingw)
2810            CFLAGS="-mno-cygwin"
2811            cat >conftest.$ac_ext <<_ACEOF
2812/* confdefs.h.  */
2813_ACEOF
2814cat confdefs.h >>conftest.$ac_ext
2815cat >>conftest.$ac_ext <<_ACEOF
2816/* end confdefs.h.  */
2817
2818int
2819main ()
2820{
2821int i=0; i++;
2822  ;
2823  return 0;
2824}
2825_ACEOF
2826rm -f conftest.$ac_objext conftest$ac_exeext
2827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2828  (eval $ac_link) 2>conftest.er1
2829  ac_status=$?
2830  grep -v '^ *+' conftest.er1 >conftest.err
2831  rm -f conftest.er1
2832  cat conftest.err >&5
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); } &&
2835         { ac_try='test -z "$ac_c_werror_flag"
2836                         || test ! -s conftest.err'
2837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838  (eval $ac_try) 2>&5
2839  ac_status=$?
2840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841  (exit $ac_status); }; } &&
2842         { ac_try='test -s conftest$ac_exeext'
2843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844  (eval $ac_try) 2>&5
2845  ac_status=$?
2846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847  (exit $ac_status); }; }; then
2848  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2849else
2850  echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853fi
2854rm -f conftest.err conftest.$ac_objext \
2855      conftest$ac_exeext conftest.$ac_ext
2856            CFLAGS=
2857          ;;
2858        esac
2859    esac
2860  fi
2861  if test -z "$coin_opt_cflags"; then
2862    case $build in
2863      *-cygwin* | *-mingw*)
2864        case "$CC" in
2865          cl* | */cl* | CL* | */CL*)
2866            coin_opt_cflags='-MT -O2'
2867            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2868            coin_dbg_cflags='-MTd'
2869            ;;
2870          icl* | */icl* | ICL* | */ICL*)
2871            coin_opt_cflags='-MT -Ox'
2872            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2873            coin_dbg_cflags='-MTd -debug'
2874            ;;
2875        esac
2876        ;;
2877      *-linux-*)
2878        case "$CC" in
2879          icc* | */icc*)
2880            coin_opt_cflags="-O3 -ip -mp1"
2881            coin_add_cflags=""
2882            coin_dbg_cflags="-g"
2883            # Check if -i_dynamic is necessary (for new glibc library)
2884            CFLAGS=
2885            cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h.  */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h.  */
2891
2892int
2893main ()
2894{
2895int i=0; i++;
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext conftest$ac_exeext
2901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2902  (eval $ac_link) 2>conftest.er1
2903  ac_status=$?
2904  grep -v '^ *+' conftest.er1 >conftest.err
2905  rm -f conftest.er1
2906  cat conftest.err >&5
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); } &&
2909         { ac_try='test -z "$ac_c_werror_flag"
2910                         || test ! -s conftest.err'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; } &&
2916         { ac_try='test -s conftest$ac_exeext'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; }; then
2922  :
2923else
2924  echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927coin_add_cflags="-i_dynamic $coin_add_cflags"
2928fi
2929rm -f conftest.err conftest.$ac_objext \
2930      conftest$ac_exeext conftest.$ac_ext
2931            ;;
2932          pgcc* | */pgcc*)
2933            coin_opt_cflags="-fast"
2934            coin_add_cflags="-Kieee -pc 64"
2935            coin_dbg_cflags="-g"
2936            ;;
2937        esac
2938        ;;
2939      *-ibm-*)
2940        case "$CC" in
2941          xlc* | */xlc* | mpxlc* | */mpxlc*)
2942            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2943            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2944            coin_dbg_cflags="-g"
2945          ;;
2946        esac
2947        ;;
2948      *-hp-*)
2949        coin_opt_cflags="-O"
2950        coin_add_cflags="-Ae"
2951        coin_dbg_cflags="-g"
2952        ;;
2953      *-*-solaris*)
2954        coin_opt_cflags="-xO4"
2955        coin_dbg_cflags="-g"
2956        ;;
2957      *-sgi-*)
2958        coin_opt_cflags="-O -OPT:Olimit=0"
2959        coin_dbg_cflags="-g"
2960        ;;
2961    esac
2962  fi
2963
2964  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2965    coin_dbg_cflags="-g"
2966  fi
2967
2968  if test -z "$coin_opt_cflags"; then
2969    # Try if -O option works if nothing else is set
2970    CFLAGS="-O"
2971    cat >conftest.$ac_ext <<_ACEOF
2972/* confdefs.h.  */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h.  */
2977
2978int
2979main ()
2980{
2981int i=0; i++;
2982  ;
2983  return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext conftest$ac_exeext
2987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988  (eval $ac_link) 2>conftest.er1
2989  ac_status=$?
2990  grep -v '^ *+' conftest.er1 >conftest.err
2991  rm -f conftest.er1
2992  cat conftest.err >&5
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); } &&
2995         { ac_try='test -z "$ac_c_werror_flag"
2996                         || test ! -s conftest.err'
2997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998  (eval $ac_try) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; } &&
3002         { ac_try='test -s conftest$ac_exeext'
3003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004  (eval $ac_try) 2>&5
3005  ac_status=$?
3006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007  (exit $ac_status); }; }; then
3008  coin_opt_cflags="-O"
3009else
3010  echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013fi
3014rm -f conftest.err conftest.$ac_objext \
3015      conftest$ac_exeext conftest.$ac_ext
3016  fi
3017
3018  # if PM doesn't want the warning messages, take them out
3019  if test x"$coin_skip_warn_cflags" = xyes; then
3020    coin_warn_cflags=
3021  fi
3022
3023  if test x${DBG_CFLAGS+set} != xset; then
3024    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3025  fi
3026  if test x${OPT_CFLAGS+set} != xset; then
3027    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3028  fi
3029
3030  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3031  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3032
3033  if test "$coin_debug_compile" = "true"; then
3034    CFLAGS="$DBG_CFLAGS"
3035  else
3036    CFLAGS="$OPT_CFLAGS"
3037  fi
3038else
3039  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3040  if test x${DBG_CFLAGS+set} != xset; then
3041    DBG_CFLAGS="$CFLAGS"
3042  fi
3043  if test x${OPT_CFLAGS+set} != xset; then
3044    OPT_CFLAGS="$CFLAGS"
3045  fi
3046fi
3047
3048# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3049
3050case "$CFLAGS" in
3051  *-mno-cygwin*)
3052    if test x${CPPFLAGS+set} != xset ; then
3053      CPPFLAGS="-mno-cygwin"
3054    else
3055      case "$CPPFLAGS" in
3056        *-mno-cygwin*)
3057          ;;
3058        *)
3059          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3060          ;;
3061      esac
3062    fi ;;
3063esac
3064
3065# Try if CFLAGS works
3066save_CFLAGS="$CFLAGS"
3067cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h.  */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h.  */
3073
3074int
3075main ()
3076{
3077int i=0; i++;
3078  ;
3079  return 0;
3080}
3081_ACEOF
3082rm -f conftest.$ac_objext conftest$ac_exeext
3083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3084  (eval $ac_link) 2>conftest.er1
3085  ac_status=$?
3086  grep -v '^ *+' conftest.er1 >conftest.err
3087  rm -f conftest.er1
3088  cat conftest.err >&5
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); } &&
3091         { ac_try='test -z "$ac_c_werror_flag"
3092                         || test ! -s conftest.err'
3093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094  (eval $ac_try) 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }; } &&
3098         { ac_try='test -s conftest$ac_exeext'
3099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100  (eval $ac_try) 2>&5
3101  ac_status=$?
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }; }; then
3104  :
3105else
3106  echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109CFLAGS=
3110fi
3111rm -f conftest.err conftest.$ac_objext \
3112      conftest$ac_exeext conftest.$ac_ext
3113if test -z "$CFLAGS"; then
3114  { 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
3115echo "$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;}
3116  CFLAGS='-O'
3117  cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127int i=0; i++;
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext conftest$ac_exeext
3133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3134  (eval $ac_link) 2>conftest.er1
3135  ac_status=$?
3136  grep -v '^ *+' conftest.er1 >conftest.err
3137  rm -f conftest.er1
3138  cat conftest.err >&5
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); } &&
3141         { ac_try='test -z "$ac_c_werror_flag"
3142                         || test ! -s conftest.err'
3143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144  (eval $ac_try) 2>&5
3145  ac_status=$?
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); }; } &&
3148         { ac_try='test -s conftest$ac_exeext'
3149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150  (eval $ac_try) 2>&5
3151  ac_status=$?
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); }; }; then
3154  :
3155else
3156  echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159CFLAGS=
3160fi
3161rm -f conftest.err conftest.$ac_objext \
3162      conftest$ac_exeext conftest.$ac_ext
3163  if test -z "$CFLAGS"; then
3164    { 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
3165echo "$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;}
3166  fi
3167fi
3168
3169{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3170echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3171
3172
3173if test x"$MPICC" = x; then :; else
3174  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3175echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3176  CC="$MPICC"
3177fi
3178
3179# Correct the LD variable if we are using the MS or Intel-windows compiler
3180case "$CC" in
3181  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3182    case $build in
3183  *-mingw*)
3184    if test "${LD+set}" = set; then :; else
3185      LD=link
3186    fi
3187    ;;
3188 esac
3189 case $enable_doscompile in
3190   msvc)
3191     if test "x${LD+set}" = xset; then :; else
3192       LD=link
3193     fi
3194     ;;
3195 esac
3196
3197    ;;
3198esac
3199
3200ac_ext=c
3201ac_cpp='$CPP $CPPFLAGS'
3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
3206
3207
3208# Get the name of the Fortran compiler and appropriate compiler options
3209case $build in
3210  *-cygwin* | *-mingw*)
3211     if test "$enable_doscompile" = msvc ; then
3212       coin_f77_comps="ifort fl32 compile_f2c"
3213     else
3214       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3215     fi ;;
3216  *-*-solaris*)
3217     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3218  *-linux-gnu*)
3219     coin_f77_comps="gfortran fort77 f77 g77 pgf90 pgf77 ifort ifc frt af77 xlf_r" ;;
3220  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3221 esac
3222
3223
3224
3225
3226
3227
3228ac_ext=f
3229ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3230ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3232
3233
3234
3235
3236
3237
3238coin_has_f77=yes
3239
3240save_fflags="$FFLAGS"
3241
3242# We delete the cached value, since the test might not have been
3243# performed with our choice of compilers earlier
3244$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3245
3246# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3247# coin_f77_comps to see if there's a program that matches one of the names.
3248# If there's no such program, F77 = unavailable. If we match the name,
3249# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3250# compiler.
3251# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3252
3253
3254{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3255echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3256for ac_prog in $coin_f77_comps
3257do
3258  # Extract the first word of "$ac_prog", so it can be a program name with args.
3259set dummy $ac_prog; ac_word=$2
3260echo "$as_me:$LINENO: checking for $ac_word" >&5
3261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262if test "${ac_cv_prog_F77+set}" = set; then
3263  echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
3265  if test -n "$F77"; then
3266  ac_cv_prog_F77="$F77" # Let the user override the test.
3267else
3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271  IFS=$as_save_IFS
3272  test -z "$as_dir" && as_dir=.
3273  for ac_exec_ext in '' $ac_executable_extensions; do
3274  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275    ac_cv_prog_F77="$ac_prog"
3276    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277    break 2
3278  fi
3279done
3280done
3281
3282fi
3283fi
3284F77=$ac_cv_prog_F77
3285if test -n "$F77"; then
3286  echo "$as_me:$LINENO: result: $F77" >&5
3287echo "${ECHO_T}$F77" >&6
3288else
3289  echo "$as_me:$LINENO: result: no" >&5
3290echo "${ECHO_T}no" >&6
3291fi
3292
3293  test -n "$F77" && break
3294done
3295test -n "$F77" || F77="unavailable"
3296
3297
3298if test "$F77" != "unavailable" ; then
3299  ac_ext=f
3300ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3301ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3303if test -n "$ac_tool_prefix"; then
3304  for ac_prog in $coin_f77_comps
3305  do
3306    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3307set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3308echo "$as_me:$LINENO: checking for $ac_word" >&5
3309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310if test "${ac_cv_prog_F77+set}" = set; then
3311  echo $ECHO_N "(cached) $ECHO_C" >&6
3312else
3313  if test -n "$F77"; then
3314  ac_cv_prog_F77="$F77" # Let the user override the test.
3315else
3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317for as_dir in $PATH
3318do
3319  IFS=$as_save_IFS
3320  test -z "$as_dir" && as_dir=.
3321  for ac_exec_ext in '' $ac_executable_extensions; do
3322  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325    break 2
3326  fi
3327done
3328done
3329
3330fi
3331fi
3332F77=$ac_cv_prog_F77
3333if test -n "$F77"; then
3334  echo "$as_me:$LINENO: result: $F77" >&5
3335echo "${ECHO_T}$F77" >&6
3336else
3337  echo "$as_me:$LINENO: result: no" >&5
3338echo "${ECHO_T}no" >&6
3339fi
3340
3341    test -n "$F77" && break
3342  done
3343fi
3344if test -z "$F77"; then
3345  ac_ct_F77=$F77
3346  for ac_prog in $coin_f77_comps
3347do
3348  # Extract the first word of "$ac_prog", so it can be a program name with args.
3349set dummy $ac_prog; ac_word=$2
3350echo "$as_me:$LINENO: checking for $ac_word" >&5
3351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3353  echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355  if test -n "$ac_ct_F77"; then
3356  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3357else
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361  IFS=$as_save_IFS
3362  test -z "$as_dir" && as_dir=.
3363  for ac_exec_ext in '' $ac_executable_extensions; do
3364  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365    ac_cv_prog_ac_ct_F77="$ac_prog"
3366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367    break 2
3368  fi
3369done
3370done
3371
3372fi
3373fi
3374ac_ct_F77=$ac_cv_prog_ac_ct_F77
3375if test -n "$ac_ct_F77"; then
3376  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3377echo "${ECHO_T}$ac_ct_F77" >&6
3378else
3379  echo "$as_me:$LINENO: result: no" >&5
3380echo "${ECHO_T}no" >&6
3381fi
3382
3383  test -n "$ac_ct_F77" && break
3384done
3385
3386  F77=$ac_ct_F77
3387fi
3388
3389
3390# Provide some information about the compiler.
3391echo "$as_me:3391:" \
3392     "checking for Fortran 77 compiler version" >&5
3393ac_compiler=`set X $ac_compile; echo $2`
3394{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3395  (eval $ac_compiler --version </dev/null >&5) 2>&5
3396  ac_status=$?
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); }
3399{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3400  (eval $ac_compiler -v </dev/null >&5) 2>&5
3401  ac_status=$?
3402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); }
3404{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3405  (eval $ac_compiler -V </dev/null >&5) 2>&5
3406  ac_status=$?
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); }
3409rm -f a.out
3410
3411# If we don't use `.F' as extension, the preprocessor is not run on the
3412# input file.  (Note that this only needs to work for GNU compilers.)
3413ac_save_ext=$ac_ext
3414ac_ext=F
3415echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3416echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3417if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3418  echo $ECHO_N "(cached) $ECHO_C" >&6
3419else
3420  cat >conftest.$ac_ext <<_ACEOF
3421      program main
3422#ifndef __GNUC__
3423       choke me
3424#endif
3425
3426      end
3427_ACEOF
3428rm -f conftest.$ac_objext
3429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430  (eval $ac_compile) 2>conftest.er1
3431  ac_status=$?
3432  grep -v '^ *+' conftest.er1 >conftest.err
3433  rm -f conftest.er1
3434  cat conftest.err >&5
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); } &&
3437         { ac_try='test -z "$ac_f77_werror_flag"
3438                         || test ! -s conftest.err'
3439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440  (eval $ac_try) 2>&5
3441  ac_status=$?
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); }; } &&
3444         { ac_try='test -s conftest.$ac_objext'
3445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446  (eval $ac_try) 2>&5
3447  ac_status=$?
3448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449  (exit $ac_status); }; }; then
3450  ac_compiler_gnu=yes
3451else
3452  echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455ac_compiler_gnu=no
3456fi
3457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3458ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3459
3460fi
3461echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3462echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3463ac_ext=$ac_save_ext
3464ac_test_FFLAGS=${FFLAGS+set}
3465ac_save_FFLAGS=$FFLAGS
3466FFLAGS=
3467echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3468echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3469if test "${ac_cv_prog_f77_g+set}" = set; then
3470  echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472  FFLAGS=-g
3473cat >conftest.$ac_ext <<_ACEOF
3474      program main
3475
3476      end
3477_ACEOF
3478rm -f conftest.$ac_objext
3479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480  (eval $ac_compile) 2>conftest.er1
3481  ac_status=$?
3482  grep -v '^ *+' conftest.er1 >conftest.err
3483  rm -f conftest.er1
3484  cat conftest.err >&5
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); } &&
3487         { ac_try='test -z "$ac_f77_werror_flag"
3488                         || test ! -s conftest.err'
3489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490  (eval $ac_try) 2>&5
3491  ac_status=$?
3492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493  (exit $ac_status); }; } &&
3494         { ac_try='test -s conftest.$ac_objext'
3495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496  (eval $ac_try) 2>&5
3497  ac_status=$?
3498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499  (exit $ac_status); }; }; then
3500  ac_cv_prog_f77_g=yes
3501else
3502  echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505ac_cv_prog_f77_g=no
3506fi
3507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3508
3509fi
3510echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3511echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3512if test "$ac_test_FFLAGS" = set; then
3513  FFLAGS=$ac_save_FFLAGS
3514elif test $ac_cv_prog_f77_g = yes; then
3515  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3516    FFLAGS="-g -O2"
3517  else
3518    FFLAGS="-g"
3519  fi
3520else
3521  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3522    FFLAGS="-O2"
3523  else
3524    FFLAGS=
3525  fi
3526fi
3527
3528G77=`test $ac_compiler_gnu = yes && echo yes`
3529ac_ext=f
3530ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3531ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3533
3534else
3535  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3536echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3537fi
3538
3539FFLAGS="$save_fflags"
3540
3541# Check if a project specific FFLAGS variable has been set
3542if test x$COIN_PRJCT != x; then
3543  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3544  if test x$coin_tmp = xset; then
3545    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3546  fi
3547fi
3548
3549if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3550
3551  coin_add_fflags=
3552  coin_opt_fflags=
3553  coin_dbg_fflags=
3554  coin_warn_fflags=
3555
3556  if test "$G77" = "yes"; then
3557    coin_opt_fflags="-O3"
3558    coin_add_fflags="-pipe"
3559    coin_dbg_fflags="-g"
3560    case $enable_doscompile in
3561      mingw)
3562        FFLAGS="-mno-cygwin"
3563        cat >conftest.$ac_ext <<_ACEOF
3564      program main
3565      write(*,*) 'Hello world'
3566      end
3567_ACEOF
3568rm -f conftest.$ac_objext conftest$ac_exeext
3569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3570  (eval $ac_link) 2>conftest.er1
3571  ac_status=$?
3572  grep -v '^ *+' conftest.er1 >conftest.err
3573  rm -f conftest.er1
3574  cat conftest.err >&5
3575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576  (exit $ac_status); } &&
3577         { ac_try='test -z "$ac_f77_werror_flag"
3578                         || test ! -s conftest.err'
3579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580  (eval $ac_try) 2>&5
3581  ac_status=$?
3582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583  (exit $ac_status); }; } &&
3584         { ac_try='test -s conftest$ac_exeext'
3585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586  (eval $ac_try) 2>&5
3587  ac_status=$?
3588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589  (exit $ac_status); }; }; then
3590  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3591else
3592  echo "$as_me: failed program was:" >&5
3593sed 's/^/| /' conftest.$ac_ext >&5
3594
3595fi
3596rm -f conftest.err conftest.$ac_objext \
3597      conftest$ac_exeext conftest.$ac_ext
3598        FFLAGS=
3599      ;;
3600    esac
3601  else
3602    case $build in
3603      *-cygwin* | *-mingw*)
3604        case $F77 in
3605          ifort* | */ifort* | IFORT* | */IFORT* )
3606            coin_opt_fflags='-MT -O3'
3607            coin_add_fflags='-fpp -nologo'
3608            coin_dbg_fflags='-MTd -debug'
3609          ;;
3610          compile_f2c*)
3611            coin_opt_fflags='-MT -O2'
3612            coin_add_fflags='-nologo -wd4996'
3613            coin_dbg_fflags='-MTd'
3614          ;;
3615        esac
3616        ;;
3617      *-linux-*)
3618        case $F77 in
3619          ifc* | */ifc* | ifort* | */ifort*)
3620            coin_opt_fflags="-O3 -ip"
3621            coin_add_fflags="-cm -w90 -w95"
3622            coin_dbg_fflags="-g -CA -CB -CS"
3623            # Check if -i_dynamic is necessary (for new glibc library)
3624            FFLAGS=
3625            cat >conftest.$ac_ext <<_ACEOF
3626      program main
3627      write(*,*) 'Hello world'
3628      end
3629_ACEOF
3630rm -f conftest.$ac_objext conftest$ac_exeext
3631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3632  (eval $ac_link) 2>conftest.er1
3633  ac_status=$?
3634  grep -v '^ *+' conftest.er1 >conftest.err
3635  rm -f conftest.er1
3636  cat conftest.err >&5
3637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638  (exit $ac_status); } &&
3639         { ac_try='test -z "$ac_f77_werror_flag"
3640                         || test ! -s conftest.err'
3641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642  (eval $ac_try) 2>&5
3643  ac_status=$?
3644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645  (exit $ac_status); }; } &&
3646         { ac_try='test -s conftest$ac_exeext'
3647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648  (eval $ac_try) 2>&5
3649  ac_status=$?
3650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651  (exit $ac_status); }; }; then
3652  :
3653else
3654  echo "$as_me: failed program was:" >&5
3655sed 's/^/| /' conftest.$ac_ext >&5
3656
3657coin_add_fflags="-i_dynamic $coin_add_fflags"
3658fi
3659rm -f conftest.err conftest.$ac_objext \
3660      conftest$ac_exeext conftest.$ac_ext
3661            ;;
3662          pgf77* | */pgf77* | pgf90* | */pgf90*)
3663            coin_opt_fflags="-fast"
3664            coin_add_fflags="-Kieee -pc 64"
3665            coin_dbg_fflags="-g"
3666          ;;
3667        esac
3668        ;;
3669      *-ibm-*)
3670        case "$F77" in
3671          xlf* | */xlf* | mpxlf* | */mpxlf* )
3672            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3673            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3674            coin_dbg_fflags="-g -C"
3675            ;;
3676        esac
3677        ;;
3678      *-hp-*)
3679        coin_opt_fflags="+O3"
3680        coin_add_fflags="+U77"
3681        coin_dbg_fflags="-C -g"
3682        ;;
3683      *-*-solaris*)
3684        coin_opt_fflags="-O4"
3685        coin_dbg_fflags="-g"
3686        ;;
3687      *-sgi-*)
3688        coin_opt_fflags="-O5 -OPT:Olimit=0"
3689        coin_dbg_fflags="-g"
3690        ;;
3691    esac
3692  fi
3693
3694  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3695    coin_dbg_fflags="-g"
3696  fi
3697
3698  if test -z "$coin_opt_fflags"; then
3699    # Try if -O option works if nothing else is set
3700    FFLAGS=-O
3701    cat >conftest.$ac_ext <<_ACEOF
3702      program main
3703      integer i
3704      end
3705_ACEOF
3706rm -f conftest.$ac_objext conftest$ac_exeext
3707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708  (eval $ac_link) 2>conftest.er1
3709  ac_status=$?
3710  grep -v '^ *+' conftest.er1 >conftest.err
3711  rm -f conftest.er1
3712  cat conftest.err >&5
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); } &&
3715         { ac_try='test -z "$ac_f77_werror_flag"
3716                         || test ! -s conftest.err'
3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718  (eval $ac_try) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; } &&
3722         { ac_try='test -s conftest$ac_exeext'
3723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724  (eval $ac_try) 2>&5
3725  ac_status=$?
3726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727  (exit $ac_status); }; }; then
3728  coin_opt_fflags="-O"
3729else
3730  echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733fi
3734rm -f conftest.err conftest.$ac_objext \
3735      conftest$ac_exeext conftest.$ac_ext
3736  fi
3737
3738  # if PM doesn't want the warning messages, take them out
3739  if test x"$coin_skip_warn_fflags" = xyes; then
3740    coin_warn_fflags=
3741  fi
3742
3743  if test x${DBG_FFLAGS+set} != xset; then
3744    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3745  fi
3746  if test x${OPT_FFLAGS+set} != xset; then
3747    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3748  fi
3749
3750  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3751  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3752
3753  if test "$coin_debug_compile" = "true"; then
3754    FFLAGS="$DBG_FFLAGS"
3755  else
3756    FFLAGS="$OPT_FFLAGS"
3757  fi
3758else
3759  FFLAGS="$FFLAGS $ADD_FFLAGS"
3760  if test x${DBG_FFLAGS+set} != xset; then
3761    DBG_FFLAGS="$FFLAGS"
3762  fi
3763  if test x${OPT_FFLAGS+set} != xset; then
3764    OPT_FFLAGS="$FFLAGS"
3765  fi
3766fi
3767
3768# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3769case "$FFLAGS" in
3770  *-mno-cygwin*)
3771    if test x${CPPFLAGS+set} != xset ; then
3772      CPPFLAGS="-mno-cygwin"
3773    else
3774      case "$CPPFLAGS" in
3775        *-mno-cygwin*)
3776          ;;
3777        *)
3778          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3779          ;;
3780      esac
3781    fi ;;
3782esac
3783
3784# Try if FFLAGS works
3785if test "$F77" != "unavailable" ; then
3786  cat >conftest.$ac_ext <<_ACEOF
3787      program main
3788      integer i
3789      end
3790_ACEOF
3791rm -f conftest.$ac_objext conftest$ac_exeext
3792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3793  (eval $ac_link) 2>conftest.er1
3794  ac_status=$?
3795  grep -v '^ *+' conftest.er1 >conftest.err
3796  rm -f conftest.er1
3797  cat conftest.err >&5
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); } &&
3800         { ac_try='test -z "$ac_f77_werror_flag"
3801                         || test ! -s conftest.err'
3802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803  (eval $ac_try) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }; } &&
3807         { ac_try='test -s conftest$ac_exeext'
3808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809  (eval $ac_try) 2>&5
3810  ac_status=$?
3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812  (exit $ac_status); }; }; then
3813  :
3814else
3815  echo "$as_me: failed program was:" >&5
3816sed 's/^/| /' conftest.$ac_ext >&5
3817
3818FFLAGS=
3819fi
3820rm -f conftest.err conftest.$ac_objext \
3821      conftest$ac_exeext conftest.$ac_ext
3822  if test -z "$FFLAGS"; then
3823    { 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
3824echo "$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;}
3825    FFLAGS='-O'
3826    cat >conftest.$ac_ext <<_ACEOF
3827      program main
3828      integer i
3829      end
3830_ACEOF
3831rm -f conftest.$ac_objext conftest$ac_exeext
3832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833  (eval $ac_link) 2>conftest.er1
3834  ac_status=$?
3835  grep -v '^ *+' conftest.er1 >conftest.err
3836  rm -f conftest.er1
3837  cat conftest.err >&5
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); } &&
3840         { ac_try='test -z "$ac_f77_werror_flag"
3841                         || test ! -s conftest.err'
3842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843  (eval $ac_try) 2>&5
3844  ac_status=$?
3845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846  (exit $ac_status); }; } &&
3847         { ac_try='test -s conftest$ac_exeext'
3848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849  (eval $ac_try) 2>&5
3850  ac_status=$?
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); }; }; then
3853  :
3854else
3855  echo "$as_me: failed program was:" >&5
3856sed 's/^/| /' conftest.$ac_ext >&5
3857
3858FFLAGS=
3859fi
3860rm -f conftest.err conftest.$ac_objext \
3861      conftest$ac_exeext conftest.$ac_ext
3862    if test -z "$FFLAGS"; then
3863      { 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
3864echo "$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;}
3865    fi
3866  fi
3867fi
3868
3869{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3870echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3871
3872
3873if test x"$MPIF77" = x; then :; else
3874  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3875echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3876  F77="$MPIF77"
3877fi
3878
3879# correct the LD variable if we use the intel fortran compiler in windows
3880case "$F77" in
3881  ifort* | */ifort* | IFORT* | */IFORT*)
3882    case $build in
3883  *-mingw*)
3884    if test "${LD+set}" = set; then :; else
3885      LD=link
3886    fi
3887    ;;
3888 esac
3889 case $enable_doscompile in
3890   msvc)
3891     if test "x${LD+set}" = xset; then :; else
3892       LD=link
3893     fi
3894     ;;
3895 esac
3896
3897    ;;
3898esac
3899
3900ac_ext=c
3901ac_cpp='$CPP $CPPFLAGS'
3902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905
3906
3907
3908# Find out how to call Fortran from C and determine Fortran runtime libraries
3909ac_ext=f
3910ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3911ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3913echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3914echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3915if test "${ac_cv_prog_f77_v+set}" = set; then
3916  echo $ECHO_N "(cached) $ECHO_C" >&6
3917else
3918  cat >conftest.$ac_ext <<_ACEOF
3919      program main
3920
3921      end
3922_ACEOF
3923rm -f conftest.$ac_objext
3924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925  (eval $ac_compile) 2>conftest.er1
3926  ac_status=$?
3927  grep -v '^ *+' conftest.er1 >conftest.err
3928  rm -f conftest.er1
3929  cat conftest.err >&5
3930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931  (exit $ac_status); } &&
3932         { ac_try='test -z "$ac_f77_werror_flag"
3933                         || test ! -s conftest.err'
3934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935  (eval $ac_try) 2>&5
3936  ac_status=$?
3937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938  (exit $ac_status); }; } &&
3939         { ac_try='test -s conftest.$ac_objext'
3940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941  (eval $ac_try) 2>&5
3942  ac_status=$?
3943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944  (exit $ac_status); }; }; then
3945  ac_cv_prog_f77_v=
3946# Try some options frequently used verbose output
3947for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3948  cat >conftest.$ac_ext <<_ACEOF
3949      program main
3950
3951      end
3952_ACEOF
3953
3954# Compile and link our simple test program by passing a flag (argument
3955# 1 to this macro) to the Fortran compiler in order to get
3956# "verbose" output that we can then parse for the Fortran linker
3957# flags.
3958ac_save_FFLAGS=$FFLAGS
3959FFLAGS="$FFLAGS $ac_verb"
3960(eval echo $as_me:3960: \"$ac_link\") >&5
3961ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3962echo "$ac_f77_v_output" >&5
3963FFLAGS=$ac_save_FFLAGS
3964
3965rm -f conftest*
3966
3967# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3968# /foo, /bar, and /baz are search directories for the Fortran linker.
3969# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3970ac_f77_v_output="`echo $ac_f77_v_output |
3971        grep 'LPATH is:' |
3972        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3973
3974case $ac_f77_v_output in
3975  # If we are using xlf then replace all the commas with spaces.
3976  *xlfentry*)
3977    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3978
3979  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3980  # $LIBS confuse us, and the libraries appear later in the output anyway).
3981  *mGLOB_options_string*)
3982    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3983
3984  # If we are using Cray Fortran then delete quotes.
3985  # Use "\"" instead of '"' for font-lock-mode.
3986  # FIXME: a more general fix for quoted arguments with spaces?
3987  *cft90*)
3988    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3989esac
3990
3991
3992  # look for -l* and *.a constructs in the output
3993  for ac_arg in $ac_f77_v_output; do
3994     case $ac_arg in
3995        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3996          ac_cv_prog_f77_v=$ac_verb
3997          break 2 ;;
3998     esac
3999  done
4000done
4001if test -z "$ac_cv_prog_f77_v"; then
4002   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4003echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4004fi
4005else
4006  echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4010echo "$as_me: WARNING: compilation failed" >&2;}
4011fi
4012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4013
4014fi
4015echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4016echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4017echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4018echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4019if test "${ac_cv_f77_libs+set}" = set; then
4020  echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022  if test "x$FLIBS" != "x"; then
4023  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4024else
4025
4026cat >conftest.$ac_ext <<_ACEOF
4027      program main
4028
4029      end
4030_ACEOF
4031
4032# Compile and link our simple test program by passing a flag (argument
4033# 1 to this macro) to the Fortran compiler in order to get
4034# "verbose" output that we can then parse for the Fortran linker
4035# flags.
4036ac_save_FFLAGS=$FFLAGS
4037FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4038(eval echo $as_me:4038: \"$ac_link\") >&5
4039ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4040echo "$ac_f77_v_output" >&5
4041FFLAGS=$ac_save_FFLAGS
4042
4043rm -f conftest*
4044
4045# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4046# /foo, /bar, and /baz are search directories for the Fortran linker.
4047# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4048ac_f77_v_output="`echo $ac_f77_v_output |
4049        grep 'LPATH is:' |
4050        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4051
4052case $ac_f77_v_output in
4053  # If we are using xlf then replace all the commas with spaces.
4054  *xlfentry*)
4055    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4056
4057  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4058  # $LIBS confuse us, and the libraries appear later in the output anyway).
4059  *mGLOB_options_string*)
4060    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4061
4062  # If we are using Cray Fortran then delete quotes.
4063  # Use "\"" instead of '"' for font-lock-mode.
4064  # FIXME: a more general fix for quoted arguments with spaces?
4065  *cft90*)
4066    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4067esac
4068
4069
4070
4071ac_cv_f77_libs=
4072
4073# Save positional arguments (if any)
4074ac_save_positional="$@"
4075
4076set X $ac_f77_v_output
4077while test $# != 1; do
4078  shift
4079  ac_arg=$1
4080  case $ac_arg in
4081        [\\/]*.a | ?:[\\/]*.a)
4082            ac_exists=false
4083  for ac_i in $ac_cv_f77_libs; do
4084    if test x"$ac_arg" = x"$ac_i"; then
4085      ac_exists=true
4086      break
4087    fi
4088  done
4089
4090  if test x"$ac_exists" = xtrue; then
4091  :
4092else
4093  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4094fi
4095
4096          ;;
4097        -bI:*)
4098            ac_exists=false
4099  for ac_i in $ac_cv_f77_libs; do
4100    if test x"$ac_arg" = x"$ac_i"; then
4101      ac_exists=true
4102      break
4103    fi
4104  done
4105
4106  if test x"$ac_exists" = xtrue; then
4107  :
4108else
4109  if test "$ac_compiler_gnu" = yes; then
4110  for ac_link_opt in $ac_arg; do
4111    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4112  done
4113else
4114  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4115fi
4116fi
4117
4118          ;;
4119          # Ignore these flags.
4120        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4121          ;;
4122        -lkernel32)
4123          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4124          ;;
4125        -[LRuY])
4126          # These flags, when seen by themselves, take an argument.
4127          # We remove the space between option and argument and re-iterate
4128          # unless we find an empty arg or a new option (starting with -)
4129          case $2 in
4130             "" | -*);;
4131             *)
4132                ac_arg="$ac_arg$2"
4133                shift; shift
4134                set X $ac_arg "$@"
4135                ;;
4136          esac
4137          ;;
4138        -YP,*)
4139          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4140              ac_exists=false
4141  for ac_i in $ac_cv_f77_libs; do
4142    if test x"$ac_j" = x"$ac_i"; then
4143      ac_exists=true
4144      break
4145    fi
4146  done
4147
4148  if test x"$ac_exists" = xtrue; then
4149  :
4150else
4151  ac_arg="$ac_arg $ac_j"
4152                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4153fi
4154
4155          done
4156          ;;
4157        -[lLR]*)
4158            ac_exists=false
4159  for ac_i in $ac_cv_f77_libs; do
4160    if test x"$ac_arg" = x"$ac_i"; then
4161      ac_exists=true
4162      break
4163    fi
4164  done
4165
4166  if test x"$ac_exists" = xtrue; then
4167  :
4168else
4169  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4170fi
4171
4172          ;;
4173          # Ignore everything else.
4174  esac
4175done
4176# restore positional arguments
4177set X $ac_save_positional; shift
4178
4179# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4180# then we insist that the "run path" must be an absolute path (i.e. it
4181# must begin with a "/").
4182case `(uname -sr) 2>/dev/null` in
4183   "SunOS 5"*)
4184      ac_ld_run_path=`echo $ac_f77_v_output |
4185                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4186      test "x$ac_ld_run_path" != x &&
4187        if test "$ac_compiler_gnu" = yes; then
4188  for ac_link_opt in $ac_ld_run_path; do
4189    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4190  done
4191else
4192  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4193fi
4194      ;;
4195esac
4196fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4197
4198fi
4199echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4200echo "${ECHO_T}$ac_cv_f77_libs" >&6
4201FLIBS="$ac_cv_f77_libs"
4202
4203
4204ac_ext=f
4205ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4206ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4208
4209ac_ext=f
4210ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4211ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4213
4214echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4215echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4216if test "${ac_cv_f77_dummy_main+set}" = set; then
4217  echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219  ac_f77_dm_save_LIBS=$LIBS
4220 LIBS="$LIBS $FLIBS"
4221 ac_fortran_dm_var=F77_DUMMY_MAIN
4222 ac_ext=c
4223ac_cpp='$CPP $CPPFLAGS'
4224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
4228 # First, try linking without a dummy main:
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h.  */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h.  */
4235
4236#ifdef F77_DUMMY_MAIN
4237
4238#  ifdef __cplusplus
4239     extern "C"
4240#  endif
4241   int F77_DUMMY_MAIN() { return 1; }
4242
4243#endif
4244int
4245main ()
4246{
4247
4248  ;
4249  return 0;
4250}
4251_ACEOF
4252rm -f conftest.$ac_objext conftest$ac_exeext
4253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254  (eval $ac_link) 2>conftest.er1
4255  ac_status=$?
4256  grep -v '^ *+' conftest.er1 >conftest.err
4257  rm -f conftest.er1
4258  cat conftest.err >&5
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); } &&
4261         { ac_try='test -z "$ac_c_werror_flag"
4262                         || test ! -s conftest.err'
4263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264  (eval $ac_try) 2>&5
4265  ac_status=$?
4266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267  (exit $ac_status); }; } &&
4268         { ac_try='test -s conftest$ac_exeext'
4269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270  (eval $ac_try) 2>&5
4271  ac_status=$?
4272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273  (exit $ac_status); }; }; then
4274  ac_cv_fortran_dummy_main=none
4275else
4276  echo "$as_me: failed program was:" >&5
4277sed 's/^/| /' conftest.$ac_ext >&5
4278
4279ac_cv_fortran_dummy_main=unknown
4280fi
4281rm -f conftest.err conftest.$ac_objext \
4282      conftest$ac_exeext conftest.$ac_ext
4283
4284 if test $ac_cv_fortran_dummy_main = unknown; then
4285   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4286     cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h.  */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h.  */
4292#define $ac_fortran_dm_var $ac_func
4293#ifdef F77_DUMMY_MAIN
4294
4295#  ifdef __cplusplus
4296     extern "C"
4297#  endif
4298   int F77_DUMMY_MAIN() { return 1; }
4299
4300#endif
4301int
4302main ()
4303{
4304
4305  ;
4306  return 0;
4307}
4308_ACEOF
4309rm -f conftest.$ac_objext conftest$ac_exeext
4310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4311  (eval $ac_link) 2>conftest.er1
4312  ac_status=$?
4313  grep -v '^ *+' conftest.er1 >conftest.err
4314  rm -f conftest.er1
4315  cat conftest.err >&5
4316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317  (exit $ac_status); } &&
4318         { ac_try='test -z "$ac_c_werror_flag"
4319                         || test ! -s conftest.err'
4320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321  (eval $ac_try) 2>&5
4322  ac_status=$?
4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324  (exit $ac_status); }; } &&
4325         { ac_try='test -s conftest$ac_exeext'
4326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327  (eval $ac_try) 2>&5
4328  ac_status=$?
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); }; }; then
4331  ac_cv_fortran_dummy_main=$ac_func; break
4332else
4333  echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
4335
4336fi
4337rm -f conftest.err conftest.$ac_objext \
4338      conftest$ac_exeext conftest.$ac_ext
4339   done
4340 fi
4341 ac_ext=f
4342ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4343ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4345 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4346 rm -f conftest*
4347 LIBS=$ac_f77_dm_save_LIBS
4348
4349fi
4350echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4351echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4352F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4353if test "$F77_DUMMY_MAIN" != unknown; then
4354  if test $F77_DUMMY_MAIN != none; then
4355
4356cat >>confdefs.h <<_ACEOF
4357#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4358_ACEOF
4359
4360  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4361
4362cat >>confdefs.h <<\_ACEOF
4363#define FC_DUMMY_MAIN_EQ_F77 1
4364_ACEOF
4365
4366  fi
4367fi
4368else
4369  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4370See \`config.log' for more details." >&5
4371echo "$as_me: error: linking to Fortran libraries from C fails
4372See \`config.log' for more details." >&2;}
4373   { (exit 1); exit 1; }; }
4374fi
4375
4376
4377ac_ext=f
4378ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4379ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4381
4382ac_ext=f
4383ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4384ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4386echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4387echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4388if test "${ac_cv_f77_mangling+set}" = set; then
4389  echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391  cat >conftest.$ac_ext <<_ACEOF
4392      subroutine foobar()
4393      return
4394      end
4395      subroutine foo_bar()
4396      return
4397      end
4398_ACEOF
4399rm -f conftest.$ac_objext
4400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401  (eval $ac_compile) 2>conftest.er1
4402  ac_status=$?
4403  grep -v '^ *+' conftest.er1 >conftest.err
4404  rm -f conftest.er1
4405  cat conftest.err >&5
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); } &&
4408         { ac_try='test -z "$ac_f77_werror_flag"
4409                         || test ! -s conftest.err'
4410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411  (eval $ac_try) 2>&5
4412  ac_status=$?
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); }; } &&
4415         { ac_try='test -s conftest.$ac_objext'
4416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417  (eval $ac_try) 2>&5
4418  ac_status=$?
4419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420  (exit $ac_status); }; }; then
4421  mv conftest.$ac_objext cfortran_test.$ac_objext
4422
4423  ac_save_LIBS=$LIBS
4424  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4425
4426  ac_ext=c
4427ac_cpp='$CPP $CPPFLAGS'
4428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431  ac_success=no
4432  for ac_foobar in foobar FOOBAR; do
4433    for ac_underscore in "" "_"; do
4434      ac_func="$ac_foobar$ac_underscore"
4435      cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h.  */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4440/* end confdefs.h.  */
4441
4442/* Override any gcc2 internal prototype to avoid an error.  */
4443#ifdef __cplusplus
4444extern "C"
4445#endif
4446/* We use char because int might match the return type of a gcc2
4447   builtin and then its argument prototype would still apply.  */
4448char $ac_func ();
4449#ifdef F77_DUMMY_MAIN
4450
4451#  ifdef __cplusplus
4452     extern "C"
4453#  endif
4454   int F77_DUMMY_MAIN() { return 1; }
4455
4456#endif
4457int
4458main ()
4459{
4460$ac_func ();
4461  ;
4462  return 0;
4463}
4464_ACEOF
4465rm -f conftest.$ac_objext conftest$ac_exeext
4466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467  (eval $ac_link) 2>conftest.er1
4468  ac_status=$?
4469  grep -v '^ *+' conftest.er1 >conftest.err
4470  rm -f conftest.er1
4471  cat conftest.err >&5
4472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473  (exit $ac_status); } &&
4474         { ac_try='test -z "$ac_c_werror_flag"
4475                         || test ! -s conftest.err'
4476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477  (eval $ac_try) 2>&5
4478  ac_status=$?
4479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480  (exit $ac_status); }; } &&
4481         { ac_try='test -s conftest$ac_exeext'
4482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483  (eval $ac_try) 2>&5
4484  ac_status=$?
4485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486  (exit $ac_status); }; }; then
4487  ac_success=yes; break 2
4488else
4489  echo "$as_me: failed program was:" >&5
4490sed 's/^/| /' conftest.$ac_ext >&5
4491
4492fi
4493rm -f conftest.err conftest.$ac_objext \
4494      conftest$ac_exeext conftest.$ac_ext
4495    done
4496  done
4497  ac_ext=f
4498ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4499ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4501
4502  if test "$ac_success" = "yes"; then
4503     case $ac_foobar in
4504        foobar)
4505           ac_case=lower
4506           ac_foo_bar=foo_bar
4507           ;;
4508        FOOBAR)
4509           ac_case=upper
4510           ac_foo_bar=FOO_BAR
4511           ;;
4512     esac
4513
4514     ac_ext=c
4515ac_cpp='$CPP $CPPFLAGS'
4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519     ac_success_extra=no
4520     for ac_extra in "" "_"; do
4521        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4522        cat >conftest.$ac_ext <<_ACEOF
4523/* confdefs.h.  */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h.  */
4528
4529/* Override any gcc2 internal prototype to avoid an error.  */
4530#ifdef __cplusplus
4531extern "C"
4532#endif
4533/* We use char because int might match the return type of a gcc2
4534   builtin and then its argument prototype would still apply.  */
4535char $ac_func ();
4536#ifdef F77_DUMMY_MAIN
4537
4538#  ifdef __cplusplus
4539     extern "C"
4540#  endif
4541   int F77_DUMMY_MAIN() { return 1; }
4542
4543#endif
4544int
4545main ()
4546{
4547$ac_func ();
4548  ;
4549  return 0;
4550}
4551_ACEOF
4552rm -f conftest.$ac_objext conftest$ac_exeext
4553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4554  (eval $ac_link) 2>conftest.er1
4555  ac_status=$?
4556  grep -v '^ *+' conftest.er1 >conftest.err
4557  rm -f conftest.er1
4558  cat conftest.err >&5
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); } &&
4561         { ac_try='test -z "$ac_c_werror_flag"
4562                         || test ! -s conftest.err'
4563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564  (eval $ac_try) 2>&5
4565  ac_status=$?
4566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567  (exit $ac_status); }; } &&
4568         { ac_try='test -s conftest$ac_exeext'
4569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570  (eval $ac_try) 2>&5
4571  ac_status=$?
4572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573  (exit $ac_status); }; }; then
4574  ac_success_extra=yes; break
4575else
4576  echo "$as_me: failed program was:" >&5
4577sed 's/^/| /' conftest.$ac_ext >&5
4578
4579fi
4580rm -f conftest.err conftest.$ac_objext \
4581      conftest$ac_exeext conftest.$ac_ext
4582     done
4583     ac_ext=f
4584ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4585ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4587
4588     if test "$ac_success_extra" = "yes"; then
4589        ac_cv_f77_mangling="$ac_case case"
4590        if test -z "$ac_underscore"; then
4591           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4592        else
4593           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4594        fi
4595        if test -z "$ac_extra"; then
4596           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4597        else
4598           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4599        fi
4600      else
4601        ac_cv_f77_mangling="unknown"
4602      fi
4603  else
4604     ac_cv_f77_mangling="unknown"
4605  fi
4606
4607  LIBS=$ac_save_LIBS
4608  rm -f cfortran_test* conftest*
4609else
4610  echo "$as_me: failed program was:" >&5
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
4613{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4614See \`config.log' for more details." >&5
4615echo "$as_me: error: cannot compile a simple Fortran program
4616See \`config.log' for more details." >&2;}
4617   { (exit 1); exit 1; }; }
4618fi
4619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620
4621fi
4622echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4623echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4624
4625ac_ext=f
4626ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4627ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4629
4630
4631ac_ext=f
4632ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4633ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4635
4636
4637ac_ext=f
4638ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4639ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4641
4642
4643case $ac_cv_f77_mangling in
4644  "lower case, no underscore, no extra underscore")
4645          cat >>confdefs.h <<\_ACEOF
4646#define F77_FUNC(name,NAME) name
4647_ACEOF
4648
4649          cat >>confdefs.h <<\_ACEOF
4650#define F77_FUNC_(name,NAME) name
4651_ACEOF
4652 ;;
4653  "lower case, no underscore, extra underscore")
4654          cat >>confdefs.h <<\_ACEOF
4655#define F77_FUNC(name,NAME) name
4656_ACEOF
4657
4658          cat >>confdefs.h <<\_ACEOF
4659#define F77_FUNC_(name,NAME) name ## _
4660_ACEOF
4661 ;;
4662  "lower case, underscore, no extra underscore")
4663          cat >>confdefs.h <<\_ACEOF
4664#define F77_FUNC(name,NAME) name ## _
4665_ACEOF
4666
4667          cat >>confdefs.h <<\_ACEOF
4668#define F77_FUNC_(name,NAME) name ## _
4669_ACEOF
4670 ;;
4671  "lower case, underscore, extra underscore")
4672          cat >>confdefs.h <<\_ACEOF
4673#define F77_FUNC(name,NAME) name ## _
4674_ACEOF
4675
4676          cat >>confdefs.h <<\_ACEOF
4677#define F77_FUNC_(name,NAME) name ## __
4678_ACEOF
4679 ;;
4680  "upper case, no underscore, no extra underscore")
4681          cat >>confdefs.h <<\_ACEOF
4682#define F77_FUNC(name,NAME) NAME
4683_ACEOF
4684
4685          cat >>confdefs.h <<\_ACEOF
4686#define F77_FUNC_(name,NAME) NAME
4687_ACEOF
4688 ;;
4689  "upper case, no underscore, extra underscore")
4690          cat >>confdefs.h <<\_ACEOF
4691#define F77_FUNC(name,NAME) NAME
4692_ACEOF
4693
4694          cat >>confdefs.h <<\_ACEOF
4695#define F77_FUNC_(name,NAME) NAME ## _
4696_ACEOF
4697 ;;
4698  "upper case, underscore, no extra underscore")
4699          cat >>confdefs.h <<\_ACEOF
4700#define F77_FUNC(name,NAME) NAME ## _
4701_ACEOF
4702
4703          cat >>confdefs.h <<\_ACEOF
4704#define F77_FUNC_(name,NAME) NAME ## _
4705_ACEOF
4706 ;;
4707  "upper case, underscore, extra underscore")
4708          cat >>confdefs.h <<\_ACEOF
4709#define F77_FUNC(name,NAME) NAME ## _
4710_ACEOF
4711
4712          cat >>confdefs.h <<\_ACEOF
4713#define F77_FUNC_(name,NAME) NAME ## __
4714_ACEOF
4715 ;;
4716  *)
4717          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4718echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4719          ;;
4720esac
4721
4722ac_ext=f
4723ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4724ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4726
4727
4728# If FLIBS has been set by the user, we just restore its value here
4729if test x"$save_FLIBS" != x; then
4730  FLIBS="$save_FLIBS"
4731else
4732  # This is to correct a missing exclusion in autoconf 2.59
4733  if test x"$FLIBS" != x; then
4734    my_flibs=
4735    for flag in $FLIBS; do
4736      case $flag in
4737        -lcrt*.o) ;;
4738        -lcygwin) ;;
4739               *) my_flibs="$my_flibs $flag" ;;
4740      esac
4741    done
4742    FLIBS="$my_flibs"
4743  fi
4744
4745  case $build in
4746  # The following is a fix to define FLIBS for ifort on Windows
4747  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4748  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4749  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4750  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4751  # Since the corresponding flag seems to make more trouble that it avoid, it has been removed now.
4752     *-cygwin* | *-mingw*)
4753       case "$F77" in
4754#         ifort* | */ifort* | IFORT* | */IFORT*)
4755#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4756#           if "$coin_debug_compile" = true ; then
4757#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4758#           else
4759#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4760#           fi
4761#           ;;
4762         compile_f2c*)
4763           FLIBS=`$F77 -FLIBS` ;;
4764       esac;;
4765     *-hp-*)
4766         FLIBS="$FLIBS -lm";;
4767     *-ibm-*)
4768         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4769     *-linux-*)
4770       case "$F77" in
4771         pgf77* | */pgf77* | pgf90* | */pgf90*)
4772# ask linker to go through the archives multiple times
4773# (the Fortran compiler seems to do that automatically...)
4774           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4775       esac
4776  esac
4777  ac_cv_f77_libs="$FLIBS"
4778fi
4779
4780ac_ext=c
4781ac_cpp='$CPP $CPPFLAGS'
4782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785
4786
4787
4788
4789# Add FLIBS to MUMPS_PCLIBS, so that they get into the .pc files
4790MUMPS_PCLIBS="$FLIBS"
4791
4792# We need to translate the result from autoconf to what MUMPS wants
4793case "$ac_cv_f77_mangling" in
4794  "lower case, no underscore, no extra underscore")
4795  ;;
4796  "lower case, underscore, no extra underscore")
4797  MY_DEFS="-DAdd_"
4798  ;;
4799  "lower case, no underscore, extra underscore")
4800  MY_DEFS="-DAdd_"
4801  ;;
4802  "lower case, underscore, extra underscore")
4803  MY_DEFS="-DAdd__"
4804  ;;
4805  "upper case, no underscore, no extra underscore")
4806  MY_DEFS="-DUPPER"
4807  ;;
4808  "upper case, no underscore, extra underscore")
4809  MY_DEFS="-DUPPER"
4810  ;;
4811  "upper case, underscore, no extra underscore")
4812  MY_DEFS="-DUPPER"
4813  ;;
4814  "upper case, underscore, extra underscore")
4815  MY_DEFS="-DUPPER"
4816  ;;
4817esac
4818
4819# check for pthread.h header file
4820ac_ext=c
4821ac_cpp='$CPP $CPPFLAGS'
4822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4826echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4827# On Suns, sometimes $CPP names a directory.
4828if test -n "$CPP" && test -d "$CPP"; then
4829  CPP=
4830fi
4831if test -z "$CPP"; then
4832  if test "${ac_cv_prog_CPP+set}" = set; then
4833  echo $ECHO_N "(cached) $ECHO_C" >&6
4834else
4835      # Double quotes because CPP needs to be expanded
4836    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4837    do
4838      ac_preproc_ok=false
4839for ac_c_preproc_warn_flag in '' yes
4840do
4841  # Use a header file that comes with gcc, so configuring glibc
4842  # with a fresh cross-compiler works.
4843  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4844  # <limits.h> exists even on freestanding compilers.
4845  # On the NeXT, cc -E runs the code through the compiler's parser,
4846  # not just through cpp. "Syntax error" is here to catch this case.
4847  cat >conftest.$ac_ext <<_ACEOF
4848/* confdefs.h.  */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h.  */
4853#ifdef __STDC__
4854# include <limits.h>
4855#else
4856# include <assert.h>
4857#endif
4858                     Syntax error
4859_ACEOF
4860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862  ac_status=$?
4863  grep -v '^ *+' conftest.er1 >conftest.err
4864  rm -f conftest.er1
4865  cat conftest.err >&5
4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867  (exit $ac_status); } >/dev/null; then
4868  if test -s conftest.err; then
4869    ac_cpp_err=$ac_c_preproc_warn_flag
4870    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4871  else
4872    ac_cpp_err=
4873  fi
4874else
4875  ac_cpp_err=yes
4876fi
4877if test -z "$ac_cpp_err"; then
4878  :
4879else
4880  echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883  # Broken: fails on valid input.
4884continue
4885fi
4886rm -f conftest.err conftest.$ac_ext
4887
4888  # OK, works on sane cases.  Now check whether non-existent headers
4889  # can be detected and how.
4890  cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h.  */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h.  */
4896#include <ac_nonexistent.h>
4897_ACEOF
4898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4899  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4900  ac_status=$?
4901  grep -v '^ *+' conftest.er1 >conftest.err
4902  rm -f conftest.er1
4903  cat conftest.err >&5
4904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905  (exit $ac_status); } >/dev/null; then
4906  if test -s conftest.err; then
4907    ac_cpp_err=$ac_c_preproc_warn_flag
4908    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4909  else
4910    ac_cpp_err=
4911  fi
4912else
4913  ac_cpp_err=yes
4914fi
4915if test -z "$ac_cpp_err"; then
4916  # Broken: success on invalid input.
4917continue
4918else
4919  echo "$as_me: failed program was:" >&5
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
4922  # Passes both tests.
4923ac_preproc_ok=:
4924break
4925fi
4926rm -f conftest.err conftest.$ac_ext
4927
4928done
4929# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930rm -f conftest.err conftest.$ac_ext
4931if $ac_preproc_ok; then
4932  break
4933fi
4934
4935    done
4936    ac_cv_prog_CPP=$CPP
4937
4938fi
4939  CPP=$ac_cv_prog_CPP
4940else
4941  ac_cv_prog_CPP=$CPP
4942fi
4943echo "$as_me:$LINENO: result: $CPP" >&5
4944echo "${ECHO_T}$CPP" >&6
4945ac_preproc_ok=false
4946for ac_c_preproc_warn_flag in '' yes
4947do
4948  # Use a header file that comes with gcc, so configuring glibc
4949  # with a fresh cross-compiler works.
4950  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4951  # <limits.h> exists even on freestanding compilers.
4952  # On the NeXT, cc -E runs the code through the compiler's parser,
4953  # not just through cpp. "Syntax error" is here to catch this case.
4954  cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h.  */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h.  */
4960#ifdef __STDC__
4961# include <limits.h>
4962#else
4963# include <assert.h>
4964#endif
4965                     Syntax error
4966_ACEOF
4967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4968  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4969  ac_status=$?
4970  grep -v '^ *+' conftest.er1 >conftest.err
4971  rm -f conftest.er1
4972  cat conftest.err >&5
4973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974  (exit $ac_status); } >/dev/null; then
4975  if test -s conftest.err; then
4976    ac_cpp_err=$ac_c_preproc_warn_flag
4977    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4978  else
4979    ac_cpp_err=
4980  fi
4981else
4982  ac_cpp_err=yes
4983fi
4984if test -z "$ac_cpp_err"; then
4985  :
4986else
4987  echo "$as_me: failed program was:" >&5
4988sed 's/^/| /' conftest.$ac_ext >&5
4989
4990  # Broken: fails on valid input.
4991continue
4992fi
4993rm -f conftest.err conftest.$ac_ext
4994
4995  # OK, works on sane cases.  Now check whether non-existent headers
4996  # can be detected and how.
4997  cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h.  */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h.  */
5003#include <ac_nonexistent.h>
5004_ACEOF
5005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5006  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5007  ac_status=$?
5008  grep -v '^ *+' conftest.er1 >conftest.err
5009  rm -f conftest.er1
5010  cat conftest.err >&5
5011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012  (exit $ac_status); } >/dev/null; then
5013  if test -s conftest.err; then
5014    ac_cpp_err=$ac_c_preproc_warn_flag
5015    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5016  else
5017    ac_cpp_err=
5018  fi
5019else
5020  ac_cpp_err=yes
5021fi
5022if test -z "$ac_cpp_err"; then
5023  # Broken: success on invalid input.
5024continue
5025else
5026  echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
5029  # Passes both tests.
5030ac_preproc_ok=:
5031break
5032fi
5033rm -f conftest.err conftest.$ac_ext
5034
5035done
5036# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5037rm -f conftest.err conftest.$ac_ext
5038if $ac_preproc_ok; then
5039  :
5040else
5041  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5042See \`config.log' for more details." >&5
5043echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5044See \`config.log' for more details." >&2;}
5045   { (exit 1); exit 1; }; }
5046fi
5047
5048ac_ext=c
5049ac_cpp='$CPP $CPPFLAGS'
5050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053
5054
5055echo "$as_me:$LINENO: checking for egrep" >&5
5056echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5057if test "${ac_cv_prog_egrep+set}" = set; then
5058  echo $ECHO_N "(cached) $ECHO_C" >&6
5059else
5060  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5061    then ac_cv_prog_egrep='grep -E'
5062    else ac_cv_prog_egrep='egrep'
5063    fi
5064fi
5065echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5066echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5067 EGREP=$ac_cv_prog_egrep
5068
5069
5070echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5071echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5072if test "${ac_cv_header_stdc+set}" = set; then
5073  echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075  cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h.  */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h.  */
5081#include <stdlib.h>
5082#include <stdarg.h>
5083#include <string.h>
5084#include <float.h>
5085
5086#ifdef F77_DUMMY_MAIN
5087
5088#  ifdef __cplusplus
5089     extern "C"
5090#  endif
5091   int F77_DUMMY_MAIN() { return 1; }
5092
5093#endif
5094int
5095main ()
5096{
5097
5098  ;
5099  return 0;
5100}
5101_ACEOF
5102rm -f conftest.$ac_objext
5103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104  (eval $ac_compile) 2>conftest.er1
5105  ac_status=$?
5106  grep -v '^ *+' conftest.er1 >conftest.err
5107  rm -f conftest.er1
5108  cat conftest.err >&5
5109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110  (exit $ac_status); } &&
5111         { ac_try='test -z "$ac_c_werror_flag"
5112                         || test ! -s conftest.err'
5113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114  (eval $ac_try) 2>&5
5115  ac_status=$?
5116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117  (exit $ac_status); }; } &&
5118         { ac_try='test -s conftest.$ac_objext'
5119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120  (eval $ac_try) 2>&5
5121  ac_status=$?
5122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); }; }; then
5124  ac_cv_header_stdc=yes
5125else
5126  echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129ac_cv_header_stdc=no
5130fi
5131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5132
5133if test $ac_cv_header_stdc = yes; then
5134  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5135  cat >conftest.$ac_ext <<_ACEOF
5136/* confdefs.h.  */
5137_ACEOF
5138cat confdefs.h >>conftest.$ac_ext
5139cat >>conftest.$ac_ext <<_ACEOF
5140/* end confdefs.h.  */
5141#include <string.h>
5142
5143_ACEOF
5144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5145  $EGREP "memchr" >/dev/null 2>&1; then
5146  :
5147else
5148  ac_cv_header_stdc=no
5149fi
5150rm -f conftest*
5151
5152fi
5153
5154if test $ac_cv_header_stdc = yes; then
5155  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5156  cat >conftest.$ac_ext <<_ACEOF
5157/* confdefs.h.  */
5158_ACEOF
5159cat confdefs.h >>conftest.$ac_ext
5160cat >>conftest.$ac_ext <<_ACEOF
5161/* end confdefs.h.  */
5162#include <stdlib.h>
5163
5164_ACEOF
5165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166  $EGREP "free" >/dev/null 2>&1; then
5167  :
5168else
5169  ac_cv_header_stdc=no
5170fi
5171rm -f conftest*
5172
5173fi
5174
5175if test $ac_cv_header_stdc = yes; then
5176  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5177  if test "$cross_compiling" = yes; then
5178  :
5179else
5180  cat >conftest.$ac_ext <<_ACEOF
5181/* confdefs.h.  */
5182_ACEOF
5183cat confdefs.h >>conftest.$ac_ext
5184cat >>conftest.$ac_ext <<_ACEOF
5185/* end confdefs.h.  */
5186#include <ctype.h>
5187#if ((' ' & 0x0FF) == 0x020)
5188# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5189# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5190#else
5191# define ISLOWER(c) \
5192                   (('a' <= (c) && (c) <= 'i') \
5193                     || ('j' <= (c) && (c) <= 'r') \
5194                     || ('s' <= (c) && (c) <= 'z'))
5195# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5196#endif
5197
5198#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5199int
5200main ()
5201{
5202  int i;
5203  for (i = 0; i < 256; i++)
5204    if (XOR (islower (i), ISLOWER (i))
5205        || toupper (i) != TOUPPER (i))
5206      exit(2);
5207  exit (0);
5208}
5209_ACEOF
5210rm -f conftest$ac_exeext
5211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5212  (eval $ac_link) 2>&5
5213  ac_status=$?
5214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217  (eval $ac_try) 2>&5
5218  ac_status=$?
5219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220  (exit $ac_status); }; }; then
5221  :
5222else
5223  echo "$as_me: program exited with status $ac_status" >&5
5224echo "$as_me: failed program was:" >&5
5225sed 's/^/| /' conftest.$ac_ext >&5
5226
5227( exit $ac_status )
5228ac_cv_header_stdc=no
5229fi
5230rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5231fi
5232fi
5233fi
5234echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5235echo "${ECHO_T}$ac_cv_header_stdc" >&6
5236if test $ac_cv_header_stdc = yes; then
5237
5238cat >>confdefs.h <<\_ACEOF
5239#define STDC_HEADERS 1
5240_ACEOF
5241
5242fi
5243
5244# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5255                  inttypes.h stdint.h unistd.h
5256do
5257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5258echo "$as_me:$LINENO: checking for $ac_header" >&5
5259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5260if eval "test \"\${$as_ac_Header+set}\" = set"; then
5261  echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263  cat >conftest.$ac_ext <<_ACEOF
5264/* confdefs.h.  */
5265_ACEOF
5266cat confdefs.h >>conftest.$ac_ext
5267cat >>conftest.$ac_ext <<_ACEOF
5268/* end confdefs.h.  */
5269$ac_includes_default
5270
5271#include <$ac_header>
5272_ACEOF
5273rm -f conftest.$ac_objext
5274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275  (eval $ac_compile) 2>conftest.er1
5276  ac_status=$?
5277  grep -v '^ *+' conftest.er1 >conftest.err
5278  rm -f conftest.er1
5279  cat conftest.err >&5
5280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281  (exit $ac_status); } &&
5282         { ac_try='test -z "$ac_c_werror_flag"
5283                         || test ! -s conftest.err'
5284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285  (eval $ac_try) 2>&5
5286  ac_status=$?
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); }; } &&
5289         { ac_try='test -s conftest.$ac_objext'
5290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291  (eval $ac_try) 2>&5
5292  ac_status=$?
5293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294  (exit $ac_status); }; }; then
5295  eval "$as_ac_Header=yes"
5296else
5297  echo "$as_me: failed program was:" >&5
5298sed 's/^/| /' conftest.$ac_ext >&5
5299
5300eval "$as_ac_Header=no"
5301fi
5302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5303fi
5304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5306if test `eval echo '${'$as_ac_Header'}'` = yes; then
5307  cat >>confdefs.h <<_ACEOF
5308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5309_ACEOF
5310
5311fi
5312
5313done
5314
5315
5316#if test x"" = x; then
5317#  hdr="#include <pthread.h>"
5318#else
5319#  hdr=""
5320#fi
5321#AC_CHECK_HEADERS([pthread.h],[],[MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"],[$hdr])
5322
5323for ac_header in pthread.h
5324do
5325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5326if eval "test \"\${$as_ac_Header+set}\" = set"; then
5327  echo "$as_me:$LINENO: checking for $ac_header" >&5
5328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5329if eval "test \"\${$as_ac_Header+set}\" = set"; then
5330  echo $ECHO_N "(cached) $ECHO_C" >&6
5331fi
5332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5334else
5335  # Is the header compilable?
5336echo "$as_me:$LINENO: checking $ac_header usability" >&5
5337echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5338cat >conftest.$ac_ext <<_ACEOF
5339/* confdefs.h.  */
5340_ACEOF
5341cat confdefs.h >>conftest.$ac_ext
5342cat >>conftest.$ac_ext <<_ACEOF
5343/* end confdefs.h.  */
5344$ac_includes_default
5345#include <$ac_header>
5346_ACEOF
5347rm -f conftest.$ac_objext
5348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349  (eval $ac_compile) 2>conftest.er1
5350  ac_status=$?
5351  grep -v '^ *+' conftest.er1 >conftest.err
5352  rm -f conftest.er1
5353  cat conftest.err >&5
5354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355  (exit $ac_status); } &&
5356         { ac_try='test -z "$ac_c_werror_flag"
5357                         || test ! -s conftest.err'
5358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359  (eval $ac_try) 2>&5
5360  ac_status=$?
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); }; } &&
5363         { ac_try='test -s conftest.$ac_objext'
5364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365  (eval $ac_try) 2>&5
5366  ac_status=$?
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); }; }; then
5369  ac_header_compiler=yes
5370else
5371  echo "$as_me: failed program was:" >&5
5372sed 's/^/| /' conftest.$ac_ext >&5
5373
5374ac_header_compiler=no
5375fi
5376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5377echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5378echo "${ECHO_T}$ac_header_compiler" >&6
5379
5380# Is the header present?
5381echo "$as_me:$LINENO: checking $ac_header presence" >&5
5382echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5383cat >conftest.$ac_ext <<_ACEOF
5384/* confdefs.h.  */
5385_ACEOF
5386cat confdefs.h >>conftest.$ac_ext
5387cat >>conftest.$ac_ext <<_ACEOF
5388/* end confdefs.h.  */
5389#include <$ac_header>
5390_ACEOF
5391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5392  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5393  ac_status=$?
5394  grep -v '^ *+' conftest.er1 >conftest.err
5395  rm -f conftest.er1
5396  cat conftest.err >&5
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); } >/dev/null; then
5399  if test -s conftest.err; then
5400    ac_cpp_err=$ac_c_preproc_warn_flag
5401    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5402  else
5403    ac_cpp_err=
5404  fi
5405else
5406  ac_cpp_err=yes
5407fi
5408if test -z "$ac_cpp_err"; then
5409  ac_header_preproc=yes
5410else
5411  echo "$as_me: failed program was:" >&5
5412sed 's/^/| /' conftest.$ac_ext >&5
5413
5414  ac_header_preproc=no
5415fi
5416rm -f conftest.err conftest.$ac_ext
5417echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5418echo "${ECHO_T}$ac_header_preproc" >&6
5419
5420# So?  What about this header?
5421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5422  yes:no: )
5423    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5424echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5425    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5426echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5427    ac_header_preproc=yes
5428    ;;
5429  no:yes:* )
5430    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5431echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5432    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5433echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5434    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5435echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5436    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5437echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5438    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5439echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5440    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5441echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5442    (
5443      cat <<\_ASBOX
5444## --------------------------------------------------------------- ##
5445## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5446## --------------------------------------------------------------- ##
5447_ASBOX
5448    ) |
5449      sed "s/^/$as_me: WARNING:     /" >&2
5450    ;;
5451esac
5452echo "$as_me:$LINENO: checking for $ac_header" >&5
5453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5454if eval "test \"\${$as_ac_Header+set}\" = set"; then
5455  echo $ECHO_N "(cached) $ECHO_C" >&6
5456else
5457  eval "$as_ac_Header=\$ac_header_preproc"
5458fi
5459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5461
5462fi
5463if test `eval echo '${'$as_ac_Header'}'` = yes; then
5464  cat >>confdefs.h <<_ACEOF
5465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5466_ACEOF
5467
5468else
5469  MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"
5470fi
5471
5472done
5473
5474
5475
5476MY_DEFS="$MY_DEFS -DALLOW_NON_INIT -DMUMPS_ARITH=MUMPS_ARITH_d"
5477
5478
5479# Initialize automake
5480{
5481
5482
5483
5484# START
5485
5486# Test if force_shared has been set
5487if test "x" = xforce_shared; then
5488  if test x$enable_shared = xno; then
5489    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5490echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5491   { (exit 1); exit 1; }; }
5492  fi
5493  enable_shared=yes;
5494else
5495  # On Cygwin and AIX, building DLLs doesn't work
5496  case $build in
5497    *-cygwin*)
5498      coin_disable_shared=yes
5499      platform=Cygwin
5500    ;;
5501    *-aix*)
5502      coin_disable_shared=yes
5503      platform=AIX
5504    ;;
5505    *-mingw*)
5506      coin_disable_shared=yes
5507      platform="Msys"
5508#      case "$CXX" in
5509#        cl*)
5510#          coin_disable_shared=yes
5511#          platform="Msys with cl"
5512#      ;;
5513#      esac
5514    ;;
5515  esac
5516fi
5517if test x"$coin_disable_shared" = xyes; then
5518  if test x"$enable_shared" = xyes; then
5519    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5520echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5521  fi
5522  enable_shared=no
5523fi
5524# By default, we only want the shared objects to be compiled
5525# Check whether --enable-static or --disable-static was given.
5526if test "${enable_static+set}" = set; then
5527  enableval="$enable_static"
5528  p=${PACKAGE-default}
5529    case $enableval in
5530    yes) enable_static=yes ;;
5531    no) enable_static=no ;;
5532    *)
5533     enable_static=no
5534      # Look at the argument we got.  We use all the common list separators.
5535      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5536      for pkg in $enableval; do
5537        IFS="$lt_save_ifs"
5538        if test "X$pkg" = "X$p"; then
5539          enable_static=yes
5540        fi
5541      done
5542      IFS="$lt_save_ifs"
5543      ;;
5544    esac
5545else
5546  enable_static=no
5547fi;
5548
5549
5550
5551
5552# Initialize automake
5553am__api_version="1.9"
5554# Find a good install program.  We prefer a C program (faster),
5555# so one script is as good as another.  But avoid the broken or
5556# incompatible versions:
5557# SysV /etc/install, /usr/sbin/install
5558# SunOS /usr/etc/install
5559# IRIX /sbin/install
5560# AIX /bin/install
5561# AmigaOS /C/install, which installs bootblocks on floppy discs
5562# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5563# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5564# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5565# OS/2's system install, which has a completely different semantic
5566# ./install, which can be erroneously created by make from ./install.sh.
5567echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5568echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5569if test -z "$INSTALL"; then
5570if test "${ac_cv_path_install+set}" = set; then
5571  echo $ECHO_N "(cached) $ECHO_C" >&6
5572else
5573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576  IFS=$as_save_IFS
5577  test -z "$as_dir" && as_dir=.
5578  # Account for people who put trailing slashes in PATH elements.
5579case $as_dir/ in
5580  ./ | .// | /cC/* | \
5581  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5582  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5583  /usr/ucb/* ) ;;
5584  *)
5585    # OSF1 and SCO ODT 3.0 have their own names for install.
5586    # Don't use installbsd from OSF since it installs stuff as root
5587    # by default.
5588    for ac_prog in ginstall scoinst install; do
5589      for ac_exec_ext in '' $ac_executable_extensions; do
5590        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5591          if test $ac_prog = install &&
5592            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5593            # AIX install.  It has an incompatible calling convention.
5594            :
5595          elif test $ac_prog = install &&
5596            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5597            # program-specific install script used by HP pwplus--don't use.
5598            :
5599          else
5600            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5601            break 3
5602          fi
5603        fi
5604      done
5605    done
5606    ;;
5607esac
5608done
5609
5610
5611fi
5612  if test "${ac_cv_path_install+set}" = set; then
5613    INSTALL=$ac_cv_path_install
5614  else
5615    # As a last resort, use the slow shell script.  We don't cache a
5616    # path for INSTALL within a source directory, because that will
5617    # break other packages using the cache if that directory is
5618    # removed, or if the path is relative.
5619    INSTALL=$ac_install_sh
5620  fi
5621fi
5622echo "$as_me:$LINENO: result: $INSTALL" >&5
5623echo "${ECHO_T}$INSTALL" >&6
5624
5625# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5626# It thinks the first close brace ends the variable substitution.
5627test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5628
5629test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5630
5631test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5632
5633echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5634echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5635# Just in case
5636sleep 1
5637echo timestamp > conftest.file
5638# Do `set' in a subshell so we don't clobber the current shell's
5639# arguments.  Must try -L first in case configure is actually a
5640# symlink; some systems play weird games with the mod time of symlinks
5641# (eg FreeBSD returns the mod time of the symlink's containing
5642# directory).
5643if (
5644   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5645   if test "$*" = "X"; then
5646      # -L didn't work.
5647      set X `ls -t $srcdir/configure conftest.file`
5648   fi
5649   rm -f conftest.file
5650   if test "$*" != "X $srcdir/configure conftest.file" \
5651      && test "$*" != "X conftest.file $srcdir/configure"; then
5652
5653      # If neither matched, then we have a broken ls.  This can happen
5654      # if, for instance, CONFIG_SHELL is bash and it inherits a
5655      # broken ls alias from the environment.  This has actually
5656      # happened.  Such a system could not be considered "sane".
5657      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5658alias in your environment" >&5
5659echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5660alias in your environment" >&2;}
5661   { (exit 1); exit 1; }; }
5662   fi
5663
5664   test "$2" = conftest.file
5665   )
5666then
5667   # Ok.
5668   :
5669else
5670   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5671Check your system clock" >&5
5672echo "$as_me: error: newly created file is older than distributed files!
5673Check your system clock" >&2;}
5674   { (exit 1); exit 1; }; }
5675fi
5676echo "$as_me:$LINENO: result: yes" >&5
5677echo "${ECHO_T}yes" >&6
5678test "$program_prefix" != NONE &&
5679  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5680# Use a double $ so make ignores it.
5681test "$program_suffix" != NONE &&
5682  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5683# Double any \ or $.  echo might interpret backslashes.
5684# By default was `s,x,x', remove it if useless.
5685cat <<\_ACEOF >conftest.sed
5686s/[\\$]/&&/g;s/;s,x,x,$//
5687_ACEOF
5688program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5689rm conftest.sed
5690
5691# expand $ac_aux_dir to an absolute path
5692am_aux_dir=`cd $ac_aux_dir && pwd`
5693
5694test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5695# Use eval to expand $SHELL
5696if eval "$MISSING --run true"; then
5697  am_missing_run="$MISSING --run "
5698else
5699  am_missing_run=
5700  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5701echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5702fi
5703
5704if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5705  # We used to keeping the `.' as first argument, in order to
5706  # allow $(mkdir_p) to be used without argument.  As in
5707  #   $(mkdir_p) $(somedir)
5708  # where $(somedir) is conditionally defined.  However this is wrong
5709  # for two reasons:
5710  #  1. if the package is installed by a user who cannot write `.'
5711  #     make install will fail,
5712  #  2. the above comment should most certainly read
5713  #     $(mkdir_p) $(DESTDIR)$(somedir)
5714  #     so it does not work when $(somedir) is undefined and
5715  #     $(DESTDIR) is not.
5716  #  To support the latter case, we have to write
5717  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5718  #  so the `.' trick is pointless.
5719  mkdir_p='mkdir -p --'
5720else
5721  # On NextStep and OpenStep, the `mkdir' command does not
5722  # recognize any option.  It will interpret all options as
5723  # directories to create, and then abort because `.' already
5724  # exists.
5725  for d in ./-p ./--version;
5726  do
5727    test -d $d && rmdir $d
5728  done
5729  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5730  if test -f "$ac_aux_dir/mkinstalldirs"; then
5731    mkdir_p='$(mkinstalldirs)'
5732  else
5733    mkdir_p='$(install_sh) -d'
5734  fi
5735fi
5736
5737for ac_prog in gawk mawk nawk awk
5738do
5739  # Extract the first word of "$ac_prog", so it can be a program name with args.
5740set dummy $ac_prog; ac_word=$2
5741echo "$as_me:$LINENO: checking for $ac_word" >&5
5742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743if test "${ac_cv_prog_AWK+set}" = set; then
5744  echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746  if test -n "$AWK"; then
5747  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5748else
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752  IFS=$as_save_IFS
5753  test -z "$as_dir" && as_dir=.
5754  for ac_exec_ext in '' $ac_executable_extensions; do
5755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756    ac_cv_prog_AWK="$ac_prog"
5757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758    break 2
5759  fi
5760done
5761done
5762
5763fi
5764fi
5765AWK=$ac_cv_prog_AWK
5766if test -n "$AWK"; then
5767  echo "$as_me:$LINENO: result: $AWK" >&5
5768echo "${ECHO_T}$AWK" >&6
5769else
5770  echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6
5772fi
5773
5774  test -n "$AWK" && break
5775done
5776
5777echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5778echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5779set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5780if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5781  echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
5783  cat >conftest.make <<\_ACEOF
5784all:
5785        @echo 'ac_maketemp="$(MAKE)"'
5786_ACEOF
5787# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5788eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5789if test -n "$ac_maketemp"; then
5790  eval ac_cv_prog_make_${ac_make}_set=yes
5791else
5792  eval ac_cv_prog_make_${ac_make}_set=no
5793fi
5794rm -f conftest.make
5795fi
5796if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5797  echo "$as_me:$LINENO: result: yes" >&5
5798echo "${ECHO_T}yes" >&6
5799  SET_MAKE=
5800else
5801  echo "$as_me:$LINENO: result: no" >&5
5802echo "${ECHO_T}no" >&6
5803  SET_MAKE="MAKE=${MAKE-make}"
5804fi
5805
5806rm -rf .tst 2>/dev/null
5807mkdir .tst 2>/dev/null
5808if test -d .tst; then
5809  am__leading_dot=.
5810else
5811  am__leading_dot=_
5812fi
5813rmdir .tst 2>/dev/null
5814
5815DEPDIR="${am__leading_dot}deps"
5816
5817          ac_config_commands="$ac_config_commands depfiles"
5818
5819
5820am_make=${MAKE-make}
5821cat > confinc << 'END'
5822am__doit:
5823        @echo done
5824.PHONY: am__doit
5825END
5826# If we don't find an include directive, just comment out the code.
5827echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5828echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5829am__include="#"
5830am__quote=
5831_am_result=none
5832# First try GNU make style include.
5833echo "include confinc" > confmf
5834# We grep out `Entering directory' and `Leaving directory'
5835# messages which can occur if `w' ends up in MAKEFLAGS.
5836# In particular we don't look at `^make:' because GNU make might
5837# be invoked under some other name (usually "gmake"), in which
5838# case it prints its new name instead of `make'.
5839if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5840   am__include=include
5841   am__quote=
5842   _am_result=GNU
5843fi
5844# Now try BSD make style include.
5845if test "$am__include" = "#"; then
5846   echo '.include "confinc"' > confmf
5847   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5848      am__include=.include
5849      am__quote="\""
5850      _am_result=BSD
5851   fi
5852fi
5853
5854
5855echo "$as_me:$LINENO: result: $_am_result" >&5
5856echo "${ECHO_T}$_am_result" >&6
5857rm -f confinc confmf
5858
5859# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5860if test "${enable_dependency_tracking+set}" = set; then
5861  enableval="$enable_dependency_tracking"
5862
5863fi;
5864if test "x$enable_dependency_tracking" != xno; then
5865  am_depcomp="$ac_aux_dir/depcomp"
5866  AMDEPBACKSLASH='\'
5867fi
5868
5869
5870if test "x$enable_dependency_tracking" != xno; then
5871  AMDEP_TRUE=
5872  AMDEP_FALSE='#'
5873else
5874  AMDEP_TRUE='#'
5875  AMDEP_FALSE=
5876fi
5877
5878
5879
5880
5881
5882# AC_MSG_NOTICE([Beginning automake initialisation.])
5883# Stuff for automake
5884# test to see if srcdir already configured
5885if test "`cd $srcdir && pwd`" != "`pwd`" &&
5886   test -f $srcdir/config.status; then
5887  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5888echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5889   { (exit 1); exit 1; }; }
5890fi
5891
5892# test whether we have cygpath
5893if test -z "$CYGPATH_W"; then
5894  if (cygpath --version) >/dev/null 2>/dev/null; then
5895    CYGPATH_W='cygpath -w'
5896  else
5897    CYGPATH_W=echo
5898  fi
5899fi
5900
5901
5902# Define the identity of the package.
5903 PACKAGE='thirdpartymumps'
5904 VERSION='trunk'
5905
5906
5907cat >>confdefs.h <<_ACEOF
5908#define PACKAGE "$PACKAGE"
5909_ACEOF
5910
5911
5912cat >>confdefs.h <<_ACEOF
5913#define VERSION "$VERSION"
5914_ACEOF
5915
5916# Some tools Automake needs.
5917
5918ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5919
5920
5921AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5922
5923
5924AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5925
5926
5927AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5928
5929
5930MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5931
5932install_sh=${install_sh-"$am_aux_dir/install-sh"}
5933
5934# Installed binaries are usually stripped using `strip' when the user
5935# run `make install-strip'.  However `strip' might not be the right
5936# tool to use in cross-compilation environments, therefore Automake
5937# will honor the `STRIP' environment variable to overrule this program.
5938if test "$cross_compiling" != no; then
5939  if test -n "$ac_tool_prefix"; then
5940  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5941set dummy ${ac_tool_prefix}strip; ac_word=$2
5942echo "$as_me:$LINENO: checking for $ac_word" >&5
5943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944if test "${ac_cv_prog_STRIP+set}" = set; then
5945  echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
5947  if test -n "$STRIP"; then
5948  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953  IFS=$as_save_IFS
5954  test -z "$as_dir" && as_dir=.
5955  for ac_exec_ext in '' $ac_executable_extensions; do
5956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959    break 2
5960  fi
5961done
5962done
5963
5964fi
5965fi
5966STRIP=$ac_cv_prog_STRIP
5967if test -n "$STRIP"; then
5968  echo "$as_me:$LINENO: result: $STRIP" >&5
5969echo "${ECHO_T}$STRIP" >&6
5970else
5971  echo "$as_me:$LINENO: result: no" >&5
5972echo "${ECHO_T}no" >&6
5973fi
5974
5975fi
5976if test -z "$ac_cv_prog_STRIP"; then
5977  ac_ct_STRIP=$STRIP
5978  # Extract the first word of "strip", so it can be a program name with args.
5979set dummy strip; ac_word=$2
5980echo "$as_me:$LINENO: checking for $ac_word" >&5
5981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5983  echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985  if test -n "$ac_ct_STRIP"; then
5986  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5987else
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991  IFS=$as_save_IFS
5992  test -z "$as_dir" && as_dir=.
5993  for ac_exec_ext in '' $ac_executable_extensions; do
5994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995    ac_cv_prog_ac_ct_STRIP="strip"
5996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997    break 2
5998  fi
5999done
6000done
6001
6002  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6003fi
6004fi
6005ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6006if test -n "$ac_ct_STRIP"; then
6007  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6008echo "${ECHO_T}$ac_ct_STRIP" >&6
6009else
6010  echo "$as_me:$LINENO: result: no" >&5
6011echo "${ECHO_T}no" >&6
6012fi
6013
6014  STRIP=$ac_ct_STRIP
6015else
6016  STRIP="$ac_cv_prog_STRIP"
6017fi
6018
6019fi
6020INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6021
6022# We need awk for the "check" target.  The system "awk" is bad on
6023# some platforms.
6024# Always define AMTAR for backward compatibility.
6025
6026AMTAR=${AMTAR-"${am_missing_run}tar"}
6027
6028am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6029
6030
6031
6032
6033depcc="$CC"   am_compiler_list=
6034
6035echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6036echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6037if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6038  echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6041  # We make a subdir and do the tests there.  Otherwise we can end up
6042  # making bogus files that we don't know about and never remove.  For
6043  # instance it was reported that on HP-UX the gcc test will end up
6044  # making a dummy file named `D' -- because `-MD' means `put the output
6045  # in D'.
6046  mkdir conftest.dir
6047  # Copy depcomp to subdir because otherwise we won't find it if we're
6048  # using a relative directory.
6049  cp "$am_depcomp" conftest.dir
6050  cd conftest.dir
6051  # We will build objects and dependencies in a subdirectory because
6052  # it helps to detect inapplicable dependency modes.  For instance
6053  # both Tru64's cc and ICC support -MD to output dependencies as a
6054  # side effect of compilation, but ICC will put the dependencies in
6055  # the current directory while Tru64 will put them in the object
6056  # directory.
6057  mkdir sub
6058
6059  am_cv_CC_dependencies_compiler_type=none
6060  if test "$am_compiler_list" = ""; then
6061     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6062  fi
6063  for depmode in $am_compiler_list; do
6064    # Setup a source with many dependencies, because some compilers
6065    # like to wrap large dependency lists on column 80 (with \), and
6066    # we should not choose a depcomp mode which is confused by this.
6067    #
6068    # We need to recreate these files for each test, as the compiler may
6069    # overwrite some of them when testing with obscure command lines.
6070    # This happens at least with the AIX C compiler.
6071    : > sub/conftest.c
6072    for i in 1 2 3 4 5 6; do
6073      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6074      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6075      # Solaris 8's {/usr,}/bin/sh.
6076      touch sub/conftst$i.h
6077    done
6078    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6079
6080    case $depmode in
6081    nosideeffect)
6082      # after this tag, mechanisms are not by side-effect, so they'll
6083      # only be used when explicitly requested
6084      if test "x$enable_dependency_tracking" = xyes; then
6085        continue
6086      else
6087        break
6088      fi
6089      ;;
6090    none) break ;;
6091    esac
6092    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6093    # mode.  It turns out that the SunPro C++ compiler does not properly
6094    # handle `-M -o', and we need to detect this.
6095    if depmode=$depmode \
6096       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6097       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6098       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6099         >/dev/null 2>conftest.err &&
6100       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6101       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6102       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6103      # icc doesn't choke on unknown options, it will just issue warnings
6104      # or remarks (even with -Werror).  So we grep stderr for any message
6105      # that says an option was ignored or not supported.
6106      # When given -MP, icc 7.0 and 7.1 complain thusly:
6107      #   icc: Command line warning: ignoring option '-M'; no argument required
6108      # The diagnosis changed in icc 8.0:
6109      #   icc: Command line remark: option '-MP' not supported
6110      if (grep 'ignoring option' conftest.err ||
6111          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6112        am_cv_CC_dependencies_compiler_type=$depmode
6113        break
6114      fi
6115    fi
6116  done
6117
6118  cd ..
6119  rm -rf conftest.dir
6120else
6121  am_cv_CC_dependencies_compiler_type=none
6122fi
6123
6124fi
6125echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6126echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6127CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6128
6129
6130
6131if
6132  test "x$enable_dependency_tracking" != xno \
6133  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6134  am__fastdepCC_TRUE=
6135  am__fastdepCC_FALSE='#'
6136else
6137  am__fastdepCC_TRUE='#'
6138  am__fastdepCC_FALSE=
6139fi
6140
6141
6142
6143echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6144echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6145    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6146if test "${enable_maintainer_mode+set}" = set; then
6147  enableval="$enable_maintainer_mode"
6148  USE_MAINTAINER_MODE=$enableval
6149else
6150  USE_MAINTAINER_MODE=no
6151fi;
6152  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6153echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6154
6155
6156if test $USE_MAINTAINER_MODE = yes; then
6157  MAINTAINER_MODE_TRUE=
6158  MAINTAINER_MODE_FALSE='#'
6159else
6160  MAINTAINER_MODE_TRUE='#'
6161  MAINTAINER_MODE_FALSE=
6162fi
6163
6164  MAINT=$MAINTAINER_MODE_TRUE
6165
6166
6167
6168coin_have_externals=no
6169if test "$enable_maintainer_mode" = yes; then
6170
6171  # If maintainer mode is chosen, we make sure that the correct versions
6172  # of the tools are used, and that we know where libtool.m4 is (to
6173  # recreate acinclude.m4)
6174
6175
6176  LIBTOOLM4=
6177  # Normally, $HOME
6178  AUTOTOOLS_DFLT=$HOME
6179
6180  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6181echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6182if test "${ac_cv_use_correct_autotools+set}" = set; then
6183  echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185  ac_cv_use_correct_autotools=check
6186fi
6187echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6188echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6189
6190  if test $ac_cv_use_correct_autotools = check; then
6191    ac_cv_use_correct_autotools=yes
6192    # Check if we have autoconf
6193    # Extract the first word of "autoconf", so it can be a program name with args.
6194set dummy autoconf; ac_word=$2
6195echo "$as_me:$LINENO: checking for $ac_word" >&5
6196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6197if test "${ac_cv_prog_have_autoconf+set}" = set; then
6198  echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200  if test -n "$have_autoconf"; then
6201  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206  IFS=$as_save_IFS
6207  test -z "$as_dir" && as_dir=.
6208  for ac_exec_ext in '' $ac_executable_extensions; do
6209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210    ac_cv_prog_have_autoconf="yes"
6211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212    break 2
6213  fi
6214done
6215done
6216
6217  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6218fi
6219fi
6220have_autoconf=$ac_cv_prog_have_autoconf
6221if test -n "$have_autoconf"; then
6222  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6223echo "${ECHO_T}$have_autoconf" >&6
6224else
6225  echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6
6227fi
6228
6229    if test $have_autoconf = no; then
6230      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6231echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6232   { (exit 1); exit 1; }; }
6233    fi
6234
6235    # Check whether autoconf is the correct version
6236    correct_version='2.59'
6237    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6238    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6239echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6240    autoconf --version > confauto.out 2>&1
6241    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6242      echo "$as_me:$LINENO: result: yes" >&5
6243echo "${ECHO_T}yes" >&6
6244    else
6245      rm -f confauto.out
6246      echo "$as_me:$LINENO: result: no" >&5
6247echo "${ECHO_T}no" >&6
6248      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6249echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6250   { (exit 1); exit 1; }; }
6251    fi
6252    rm -f confauto.out
6253
6254    # Check if the executable autoconf is picked up from the correct location
6255    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6256echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6257    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6258    autoconf_dir=`cd $autoconf_dir; pwd`
6259    if test x$AUTOTOOLS_DIR = x; then
6260      want_dir=$AUTOTOOLS_DFLT/bin
6261    else
6262      want_dir=$AUTOTOOLS_DIR/bin
6263    fi
6264    if test $autoconf_dir = `cd $want_dir; pwd`; then
6265      echo "$as_me:$LINENO: result: yes" >&5
6266echo "${ECHO_T}yes" >&6
6267    else
6268      rm -f confauto.out
6269      echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6
6271      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6272echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6273   { (exit 1); exit 1; }; }
6274    fi
6275
6276    # Check if we have automake
6277    # Extract the first word of "automake", so it can be a program name with args.
6278set dummy automake; ac_word=$2
6279echo "$as_me:$LINENO: checking for $ac_word" >&5
6280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6281if test "${ac_cv_prog_have_automake+set}" = set; then
6282  echo $ECHO_N "(cached) $ECHO_C" >&6
6283else
6284  if test -n "$have_automake"; then
6285  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290  IFS=$as_save_IFS
6291  test -z "$as_dir" && as_dir=.
6292  for ac_exec_ext in '' $ac_executable_extensions; do
6293  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294    ac_cv_prog_have_automake="yes"
6295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296    break 2
6297  fi
6298done
6299done
6300
6301  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6302fi
6303fi
6304have_automake=$ac_cv_prog_have_automake
6305if test -n "$have_automake"; then
6306  echo "$as_me:$LINENO: result: $have_automake" >&5
6307echo "${ECHO_T}$have_automake" >&6
6308else
6309  echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
6311fi
6312
6313    if test $have_automake = no; then
6314      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6315echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6316   { (exit 1); exit 1; }; }
6317    fi
6318
6319    # Check whether automake is the correct version
6320    correct_version='1.9.6'
6321    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6322    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6323echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6324    automake --version > confauto.out 2>&1
6325    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6326      echo "$as_me:$LINENO: result: yes" >&5
6327echo "${ECHO_T}yes" >&6
6328    else
6329      rm -f confauto.out
6330      echo "$as_me:$LINENO: result: no" >&5
6331echo "${ECHO_T}no" >&6
6332      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6333echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6334   { (exit 1); exit 1; }; }
6335    fi
6336    rm -f confauto.out
6337
6338    # Check if the executable automake is picked up from the correct location
6339    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6340echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6341    automake_dir=`which automake | sed -e 's=/automake=='`
6342    automake_dir=`cd $automake_dir; pwd`
6343    if test x$AUTOTOOLS_DIR = x; then
6344      want_dir=$AUTOTOOLS_DFLT/bin
6345    else
6346      want_dir=$AUTOTOOLS_DIR/bin
6347    fi
6348    if test $automake_dir = `cd $want_dir; pwd`; then
6349      echo "$as_me:$LINENO: result: yes" >&5
6350echo "${ECHO_T}yes" >&6
6351    else
6352      rm -f confauto.out
6353      echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6
6355      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6356echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6357   { (exit 1); exit 1; }; }
6358    fi
6359
6360    # Check if this is the correct version of libtool (with escaped dots)
6361    if test x$AUTOTOOLS_DIR = x; then
6362      want_dir=$AUTOTOOLS_DFLT/share
6363    else
6364      want_dir=$AUTOTOOLS_DIR/share
6365    fi
6366    correct_version='1.5.22'
6367    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6368    if test -r $want_dir/libtool/ltmain.sh; then
6369  have_ltmain=yes
6370  :
6371else
6372  have_ltmain=no
6373  :
6374fi
6375
6376    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6377echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6378    if test $have_ltmain = yes; then
6379    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6380        echo "$as_me:$LINENO: result: yes" >&5
6381echo "${ECHO_T}yes" >&6
6382      else
6383        echo "$as_me:$LINENO: result: no" >&5
6384echo "${ECHO_T}no" >&6
6385        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6386echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6387   { (exit 1); exit 1; }; }
6388      fi
6389    else
6390      echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6
6392      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6393echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6394   { (exit 1); exit 1; }; }
6395    fi
6396  fi
6397
6398  # Check if we can find the libtool file
6399  if test x$AUTOTOOLS_DIR = x; then
6400    want_dir=$AUTOTOOLS_DFLT/share
6401  else
6402    want_dir=$AUTOTOOLS_DIR/share
6403  fi
6404  if test -r $want_dir/aclocal/libtool.m4; then
6405  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6406  :
6407else
6408  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6409echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6410   { (exit 1); exit 1; }; }
6411  :
6412fi
6413
6414
6415  # Check if we have an Externals file
6416  if test -r $srcdir/Externals; then
6417    coin_have_externals=yes
6418  fi
6419  # Check if subversion is installed and understands https
6420  # Extract the first word of "svn", so it can be a program name with args.
6421set dummy svn; ac_word=$2
6422echo "$as_me:$LINENO: checking for $ac_word" >&5
6423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6424if test "${ac_cv_prog_have_svn+set}" = set; then
6425  echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427  if test -n "$have_svn"; then
6428  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6429else
6430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431for as_dir in $PATH
6432do
6433  IFS=$as_save_IFS
6434  test -z "$as_dir" && as_dir=.
6435  for ac_exec_ext in '' $ac_executable_extensions; do
6436  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437    ac_cv_prog_have_svn="yes"
6438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439    break 2
6440  fi
6441done
6442done
6443
6444  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6445fi
6446fi
6447have_svn=$ac_cv_prog_have_svn
6448if test -n "$have_svn"; then
6449  echo "$as_me:$LINENO: result: $have_svn" >&5
6450echo "${ECHO_T}$have_svn" >&6
6451else
6452  echo "$as_me:$LINENO: result: no" >&5
6453echo "${ECHO_T}no" >&6
6454fi
6455
6456  if test x$have_svn = xyes; then
6457    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6458echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6459if test "${ac_cv_svn_understands_https+set}" = set; then
6460  echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462  svn --version > confauto.out 2>&1
6463                    if $EGREP https confauto.out >/dev/null 2>&1; then
6464                      ac_cv_svn_understands_https=yes
6465                    else
6466                      ac_cv_svn_understands_https=no
6467                      have_svn=no
6468                      ac_cv_prog_have_svn=no
6469                    fi
6470                    rm -f confauto.out
6471fi
6472echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6473echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6474  fi
6475
6476  # Find the location of the BuildTools directory
6477  BUILDTOOLSDIR=
6478  if test -r $srcdir/BuildTools/coin.m4; then
6479    BUILDTOOLSDIR=$srcdir/BuildTools
6480  else
6481    if test -r $srcdir/../BuildTools/coin.m4; then
6482      BUILDTOOLSDIR=$srcdir/../BuildTools
6483    else
6484      if test -r $srcdir/../../BuildTools/coin.m4; then
6485        BUILDTOOLSDIR=$srcdir/../../BuildTools
6486      else
6487        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6488echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6489   { (exit 1); exit 1; }; }
6490      fi
6491    fi
6492  fi
6493
6494
6495  # The following variable is set to the name of the directory where
6496  # the autotool scripts are located
6497
6498  AUX_DIR=$ac_aux_dir
6499fi
6500
6501# helpful variable for the base directory of this package
6502abs_source_dir=`cd $srcdir; pwd`
6503
6504
6505# Stuff for example Makefiles
6506if test x$prefix = xNONE; then
6507  full_prefix=$ac_default_prefix
6508else
6509  full_prefix=$prefix
6510fi
6511full_prefix=`cd $full_prefix ; pwd`
6512
6513abs_lib_dir=$full_prefix/lib
6514
6515abs_include_dir=$full_prefix/include
6516
6517abs_bin_dir=$full_prefix/bin
6518
6519
6520
6521if test $coin_have_externals = yes && test x$have_svn = xyes; then
6522  HAVE_EXTERNALS_TRUE=
6523  HAVE_EXTERNALS_FALSE='#'
6524else
6525  HAVE_EXTERNALS_TRUE='#'
6526  HAVE_EXTERNALS_FALSE=
6527fi
6528
6529
6530# AC_MSG_NOTICE([End automake initialisation.])
6531
6532
6533
6534LIBTOOL=
6535if test -r ../libtool; then
6536  coin_config_dir=..
6537  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6538fi
6539if test "x$LIBTOOL" = x; then
6540  if test -r ../../libtool; then
6541    coin_config_dir=../..
6542    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6543  fi
6544fi
6545
6546if test "x$LIBTOOL" = x; then
6547# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6548  # Stuff for libtool
6549  # Check whether --enable-shared or --disable-shared was given.
6550if test "${enable_shared+set}" = set; then
6551  enableval="$enable_shared"
6552  p=${PACKAGE-default}
6553    case $enableval in
6554    yes) enable_shared=yes ;;
6555    no) enable_shared=no ;;
6556    *)
6557      enable_shared=no
6558      # Look at the argument we got.  We use all the common list separators.
6559      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6560      for pkg in $enableval; do
6561        IFS="$lt_save_ifs"
6562        if test "X$pkg" = "X$p"; then
6563          enable_shared=yes
6564        fi
6565      done
6566      IFS="$lt_save_ifs"
6567      ;;
6568    esac
6569else
6570  enable_shared=yes
6571fi;
6572
6573# Check whether --enable-fast-install or --disable-fast-install was given.
6574if test "${enable_fast_install+set}" = set; then
6575  enableval="$enable_fast_install"
6576  p=${PACKAGE-default}
6577    case $enableval in
6578    yes) enable_fast_install=yes ;;
6579    no) enable_fast_install=no ;;
6580    *)
6581      enable_fast_install=no
6582      # Look at the argument we got.  We use all the common list separators.
6583      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6584      for pkg in $enableval; do
6585        IFS="$lt_save_ifs"
6586        if test "X$pkg" = "X$p"; then
6587          enable_fast_install=yes
6588        fi
6589      done
6590      IFS="$lt_save_ifs"
6591      ;;
6592    esac
6593else
6594  enable_fast_install=yes
6595fi;
6596
6597echo "$as_me:$LINENO: checking host system type" >&5
6598echo $ECHO_N "checking host system type... $ECHO_C" >&6
6599if test "${ac_cv_host+set}" = set; then
6600  echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602  ac_cv_host_alias=$host_alias
6603test -z "$ac_cv_host_alias" &&
6604  ac_cv_host_alias=$ac_cv_build_alias
6605ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6606  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6607echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6608   { (exit 1); exit 1; }; }
6609
6610fi
6611echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6612echo "${ECHO_T}$ac_cv_host" >&6
6613host=$ac_cv_host
6614host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6615host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6616host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6617
6618
6619echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6620echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6621if test "${lt_cv_path_SED+set}" = set; then
6622  echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
6624  # Loop through the user's path and test for sed and gsed.
6625# Then use that list of sed's as ones to test for truncation.
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629  IFS=$as_save_IFS
6630  test -z "$as_dir" && as_dir=.
6631  for lt_ac_prog in sed gsed; do
6632    for ac_exec_ext in '' $ac_executable_extensions; do
6633      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6634        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6635      fi
6636    done
6637  done
6638done
6639lt_ac_max=0
6640lt_ac_count=0
6641# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6642# along with /bin/sed that truncates output.
6643for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6644  test ! -f $lt_ac_sed && continue
6645  cat /dev/null > conftest.in
6646  lt_ac_count=0
6647  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6648  # Check for GNU sed and select it if it is found.
6649  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6650    lt_cv_path_SED=$lt_ac_sed
6651    break
6652  fi
6653  while true; do
6654    cat conftest.in conftest.in >conftest.tmp
6655    mv conftest.tmp conftest.in
6656    cp conftest.in conftest.nl
6657    echo >>conftest.nl
6658    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6659    cmp -s conftest.out conftest.nl || break
6660    # 10000 chars as input seems more than enough
6661    test $lt_ac_count -gt 10 && break
6662    lt_ac_count=`expr $lt_ac_count + 1`
6663    if test $lt_ac_count -gt $lt_ac_max; then
6664      lt_ac_max=$lt_ac_count
6665      lt_cv_path_SED=$lt_ac_sed
6666    fi
6667  done
6668done
6669
6670fi
6671
6672SED=$lt_cv_path_SED
6673echo "$as_me:$LINENO: result: $SED" >&5
6674echo "${ECHO_T}$SED" >&6
6675
6676
6677# Check whether --with-gnu-ld or --without-gnu-ld was given.
6678if test "${with_gnu_ld+set}" = set; then
6679  withval="$with_gnu_ld"
6680  test "$withval" = no || with_gnu_ld=yes
6681else
6682  with_gnu_ld=no
6683fi;
6684ac_prog=ld
6685if test "$GCC" = yes; then
6686  # Check if gcc -print-prog-name=ld gives a path.
6687  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6688echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6689  case $host in
6690  *-*-mingw*)
6691    # gcc leaves a trailing carriage return which upsets mingw
6692    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6693  *)
6694    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6695  esac
6696  case $ac_prog in
6697    # Accept absolute paths.
6698    [\\/]* | ?:[\\/]*)
6699      re_direlt='/[^/][^/]*/\.\./'
6700      # Canonicalize the pathname of ld
6701      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6702      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6703        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6704      done
6705      test -z "$LD" && LD="$ac_prog"
6706      ;;
6707  "")
6708    # If it fails, then pretend we aren't using GCC.
6709    ac_prog=ld
6710    ;;
6711  *)
6712    # If it is relative, then search for the first ld in PATH.
6713    with_gnu_ld=unknown
6714    ;;
6715  esac
6716elif test "$with_gnu_ld" = yes; then
6717  echo "$as_me:$LINENO: checking for GNU ld" >&5
6718echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6719else
6720  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6721echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6722fi
6723if test "${lt_cv_path_LD+set}" = set; then
6724  echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726  if test -z "$LD"; then
6727  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6728  for ac_dir in $PATH; do
6729    IFS="$lt_save_ifs"
6730    test -z "$ac_dir" && ac_dir=.
6731    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6732      lt_cv_path_LD="$ac_dir/$ac_prog"
6733      # Check to see if the program is GNU ld.  I'd rather use --version,
6734      # but apparently some variants of GNU ld only accept -v.
6735      # Break only if it was the GNU/non-GNU ld that we prefer.
6736      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6737      *GNU* | *'with BFD'*)
6738        test "$with_gnu_ld" != no && break
6739        ;;
6740      *)
6741        test "$with_gnu_ld" != yes && break
6742        ;;
6743      esac
6744    fi
6745  done
6746  IFS="$lt_save_ifs"
6747else
6748  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6749fi
6750fi
6751
6752LD="$lt_cv_path_LD"
6753if test -n "$LD"; then
6754  echo "$as_me:$LINENO: result: $LD" >&5
6755echo "${ECHO_T}$LD" >&6
6756else
6757  echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759fi
6760test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6761echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6762   { (exit 1); exit 1; }; }
6763echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6764echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6765if test "${lt_cv_prog_gnu_ld+set}" = set; then
6766  echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
6768  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6769case `$LD -v 2>&1 </dev/null` in
6770*GNU* | *'with BFD'*)
6771  lt_cv_prog_gnu_ld=yes
6772  ;;
6773*)
6774  lt_cv_prog_gnu_ld=no
6775  ;;
6776esac
6777fi
6778echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6779echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6780with_gnu_ld=$lt_cv_prog_gnu_ld
6781
6782
6783echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6784echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6785if test "${lt_cv_ld_reload_flag+set}" = set; then
6786  echo $ECHO_N "(cached) $ECHO_C" >&6
6787else
6788  lt_cv_ld_reload_flag='-r'
6789fi
6790echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6791echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6792reload_flag=$lt_cv_ld_reload_flag
6793case $reload_flag in
6794"" | " "*) ;;
6795*) reload_flag=" $reload_flag" ;;
6796esac
6797reload_cmds='$LD$reload_flag -o $output$reload_objs'
6798case $host_os in
6799  darwin*)
6800    if test "$GCC" = yes; then
6801      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6802    else
6803      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6804    fi
6805    ;;
6806esac
6807
6808echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6809echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6810if test "${lt_cv_path_NM+set}" = set; then
6811  echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813  if test -n "$NM"; then
6814  # Let the user override the test.
6815  lt_cv_path_NM="$NM"
6816else
6817  lt_nm_to_check="${ac_tool_prefix}nm"
6818  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6819    lt_nm_to_check="$lt_nm_to_check nm"
6820  fi
6821  for lt_tmp_nm in $lt_nm_to_check; do
6822    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6823    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6824      IFS="$lt_save_ifs"
6825      test -z "$ac_dir" && ac_dir=.
6826      tmp_nm="$ac_dir/$lt_tmp_nm"
6827      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6828        # Check to see if the nm accepts a BSD-compat flag.
6829        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6830        #   nm: unknown option "B" ignored
6831        # Tru64's nm complains that /dev/null is an invalid object file
6832        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6833        */dev/null* | *'Invalid file or object type'*)
6834          lt_cv_path_NM="$tmp_nm -B"
6835          break
6836          ;;
6837        *)
6838          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6839          */dev/null*)
6840            lt_cv_path_NM="$tmp_nm -p"
6841            break
6842            ;;
6843          *)
6844            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6845            continue # so that we can try to find one that supports BSD flags
6846            ;;
6847          esac
6848          ;;
6849        esac
6850      fi
6851    done
6852    IFS="$lt_save_ifs"
6853  done
6854  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6855fi
6856fi
6857echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6858echo "${ECHO_T}$lt_cv_path_NM" >&6
6859NM="$lt_cv_path_NM"
6860
6861echo "$as_me:$LINENO: checking whether ln -s works" >&5
6862echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6863LN_S=$as_ln_s
6864if test "$LN_S" = "ln -s"; then
6865  echo "$as_me:$LINENO: result: yes" >&5
6866echo "${ECHO_T}yes" >&6
6867else
6868  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6869echo "${ECHO_T}no, using $LN_S" >&6
6870fi
6871
6872echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6873echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6874if test "${lt_cv_deplibs_check_method+set}" = set; then
6875  echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877  lt_cv_file_magic_cmd='$MAGIC_CMD'
6878lt_cv_file_magic_test_file=
6879lt_cv_deplibs_check_method='unknown'
6880# Need to set the preceding variable on all platforms that support
6881# interlibrary dependencies.
6882# 'none' -- dependencies not supported.
6883# `unknown' -- same as none, but documents that we really don't know.
6884# 'pass_all' -- all dependencies passed with no checks.
6885# 'test_compile' -- check by making test program.
6886# 'file_magic [[regex]]' -- check by looking for files in library path
6887# which responds to the $file_magic_cmd with a given extended regex.
6888# If you have `file' or equivalent on your system and you're not sure
6889# whether `pass_all' will *always* work, you probably want this one.
6890
6891case $host_os in
6892aix4* | aix5*)
6893  lt_cv_deplibs_check_method=pass_all
6894  ;;
6895
6896beos*)
6897  lt_cv_deplibs_check_method=pass_all
6898  ;;
6899
6900bsdi[45]*)
6901  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6902  lt_cv_file_magic_cmd='/usr/bin/file -L'
6903  lt_cv_file_magic_test_file=/shlib/libc.so
6904  ;;
6905
6906cygwin*)
6907  # func_win32_libid is a shell function defined in ltmain.sh
6908  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6909  lt_cv_file_magic_cmd='func_win32_libid'
6910  ;;
6911
6912mingw* | pw32*)
6913  # Base MSYS/MinGW do not provide the 'file' command needed by
6914  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6915  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6916  lt_cv_file_magic_cmd='$OBJDUMP -f'
6917  ;;
6918
6919darwin* | rhapsody*)
6920  lt_cv_deplibs_check_method=pass_all
6921  ;;
6922
6923freebsd* | kfreebsd*-gnu | dragonfly*)
6924  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6925    case $host_cpu in
6926    i*86 )
6927      # Not sure whether the presence of OpenBSD here was a mistake.
6928      # Let's accept both of them until this is cleared up.
6929      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6930      lt_cv_file_magic_cmd=/usr/bin/file
6931      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6932      ;;
6933    esac
6934  else
6935    lt_cv_deplibs_check_method=pass_all
6936  fi
6937  ;;
6938
6939gnu*)
6940  lt_cv_deplibs_check_method=pass_all
6941  ;;
6942
6943hpux10.20* | hpux11*)
6944  lt_cv_file_magic_cmd=/usr/bin/file
6945  case $host_cpu in
6946  ia64*)
6947    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6948    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6949    ;;
6950  hppa*64*)
6951    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]'
6952    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6953    ;;
6954  *)
6955    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6956    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6957    ;;
6958  esac
6959  ;;
6960
6961interix3*)
6962  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6963  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6964  ;;
6965
6966irix5* | irix6* | nonstopux*)
6967  case $LD in
6968  *-32|*"-32 ") libmagic=32-bit;;
6969  *-n32|*"-n32 ") libmagic=N32;;
6970  *-64|*"-64 ") libmagic=64-bit;;
6971  *) libmagic=never-match;;
6972  esac
6973  lt_cv_deplibs_check_method=pass_all
6974  ;;
6975
6976# This must be Linux ELF.
6977linux*)
6978  lt_cv_deplibs_check_method=pass_all
6979  ;;
6980
6981netbsd*)
6982  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6983    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6984  else
6985    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6986  fi
6987  ;;
6988
6989newos6*)
6990  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6991  lt_cv_file_magic_cmd=/usr/bin/file
6992  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6993  ;;
6994
6995nto-qnx*)
6996  lt_cv_deplibs_check_method=unknown
6997  ;;
6998
6999openbsd*)
7000  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7001    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7002  else
7003    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7004  fi
7005  ;;
7006
7007osf3* | osf4* | osf5*)
7008  lt_cv_deplibs_check_method=pass_all
7009  ;;
7010
7011solaris*)
7012  lt_cv_deplibs_check_method=pass_all
7013  ;;
7014
7015sysv4 | sysv4.3*)
7016  case $host_vendor in
7017  motorola)
7018    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]'
7019    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7020    ;;
7021  ncr)
7022    lt_cv_deplibs_check_method=pass_all
7023    ;;
7024  sequent)
7025    lt_cv_file_magic_cmd='/bin/file'
7026    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7027    ;;
7028  sni)
7029    lt_cv_file_magic_cmd='/bin/file'
7030    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7031    lt_cv_file_magic_test_file=/lib/libc.so
7032    ;;
7033  siemens)
7034    lt_cv_deplibs_check_method=pass_all
7035    ;;
7036  pc)
7037    lt_cv_deplibs_check_method=pass_all
7038    ;;
7039  esac
7040  ;;
7041
7042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7043  lt_cv_deplibs_check_method=pass_all
7044  ;;
7045esac
7046
7047fi
7048echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7049echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7050file_magic_cmd=$lt_cv_file_magic_cmd
7051deplibs_check_method=$lt_cv_deplibs_check_method
7052test -z "$deplibs_check_method" && deplibs_check_method=unknown
7053
7054
7055
7056
7057# If no C compiler was specified, use CC.
7058LTCC=${LTCC-"$CC"}
7059
7060# If no C compiler flags were specified, use CFLAGS.
7061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7062
7063# Allow CC to be a program name with arguments.
7064compiler=$CC
7065
7066# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7067if test "${enable_libtool_lock+set}" = set; then
7068  enableval="$enable_libtool_lock"
7069
7070fi;
7071test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7072
7073# Some flags need to be propagated to the compiler or linker for good
7074# libtool support.
7075case $host in
7076ia64-*-hpux*)
7077  # Find out which ABI we are using.
7078  echo 'int i;' > conftest.$ac_ext
7079  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7080  (eval $ac_compile) 2>&5
7081  ac_status=$?
7082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083  (exit $ac_status); }; then
7084    case `/usr/bin/file conftest.$ac_objext` in
7085    *ELF-32*)
7086      HPUX_IA64_MODE="32"
7087      ;;
7088    *ELF-64*)
7089      HPUX_IA64_MODE="64"
7090      ;;
7091    esac
7092  fi
7093  rm -rf conftest*
7094  ;;
7095*-*-irix6*)
7096  # Find out which ABI we are using.
7097  echo '#line 7097 "configure"' > conftest.$ac_ext
7098  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7099  (eval $ac_compile) 2>&5
7100  ac_status=$?
7101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102  (exit $ac_status); }; then
7103   if test "$lt_cv_prog_gnu_ld" = yes; then
7104    case `/usr/bin/file conftest.$ac_objext` in
7105    *32-bit*)
7106      LD="${LD-ld} -melf32bsmip"
7107      ;;
7108    *N32*)
7109      LD="${LD-ld} -melf32bmipn32"
7110      ;;
7111    *64-bit*)
7112      LD="${LD-ld} -melf64bmip"
7113      ;;
7114    esac
7115   else
7116    case `/usr/bin/file conftest.$ac_objext` in
7117    *32-bit*)
7118      LD="${LD-ld} -32"
7119      ;;
7120    *N32*)
7121      LD="${LD-ld} -n32"
7122      ;;
7123    *64-bit*)
7124      LD="${LD-ld} -64"
7125      ;;
7126    esac
7127   fi
7128  fi
7129  rm -rf conftest*
7130  ;;
7131
7132x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7133  # Find out which ABI we are using.
7134  echo 'int i;' > conftest.$ac_ext
7135  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136  (eval $ac_compile) 2>&5
7137  ac_status=$?
7138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139  (exit $ac_status); }; then
7140    case `/usr/bin/file conftest.o` in
7141    *32-bit*)
7142      case $host in
7143        x86_64-*linux*)
7144          LD="${LD-ld} -m elf_i386"
7145          ;;
7146        ppc64-*linux*|powerpc64-*linux*)
7147          LD="${LD-ld} -m elf32ppclinux"
7148          ;;
7149        s390x-*linux*)
7150          LD="${LD-ld} -m elf_s390"
7151          ;;
7152        sparc64-*linux*)
7153          LD="${LD-ld} -m elf32_sparc"
7154          ;;
7155      esac
7156      ;;
7157    *64-bit*)
7158      case $host in
7159        x86_64-*linux*)
7160          LD="${LD-ld} -m elf_x86_64"
7161          ;;
7162        ppc*-*linux*|powerpc*-*linux*)
7163          LD="${LD-ld} -m elf64ppc"
7164          ;;
7165        s390*-*linux*)
7166          LD="${LD-ld} -m elf64_s390"
7167          ;;
7168        sparc*-*linux*)
7169          LD="${LD-ld} -m elf64_sparc"
7170          ;;
7171      esac
7172      ;;
7173    esac
7174  fi
7175  rm -rf conftest*
7176  ;;
7177
7178*-*-sco3.2v5*)
7179  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7180  SAVE_CFLAGS="$CFLAGS"
7181  CFLAGS="$CFLAGS -belf"
7182  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7183echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7184if test "${lt_cv_cc_needs_belf+set}" = set; then
7185  echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187  ac_ext=c
7188ac_cpp='$CPP $CPPFLAGS'
7189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191ac_compiler_gnu=$ac_cv_c_compiler_gnu
7192
7193     cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h.  */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h.  */
7199
7200#ifdef F77_DUMMY_MAIN
7201
7202#  ifdef __cplusplus
7203     extern "C"
7204#  endif
7205   int F77_DUMMY_MAIN() { return 1; }
7206
7207#endif
7208int
7209main ()
7210{
7211
7212  ;
7213  return 0;
7214}
7215_ACEOF
7216rm -f conftest.$ac_objext conftest$ac_exeext
7217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7218  (eval $ac_link) 2>conftest.er1
7219  ac_status=$?
7220  grep -v '^ *+' conftest.er1 >conftest.err
7221  rm -f conftest.er1
7222  cat conftest.err >&5
7223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224  (exit $ac_status); } &&
7225         { ac_try='test -z "$ac_c_werror_flag"
7226                         || test ! -s conftest.err'
7227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228  (eval $ac_try) 2>&5
7229  ac_status=$?
7230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231  (exit $ac_status); }; } &&
7232         { ac_try='test -s conftest$ac_exeext'
7233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234  (eval $ac_try) 2>&5
7235  ac_status=$?
7236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237  (exit $ac_status); }; }; then
7238  lt_cv_cc_needs_belf=yes
7239else
7240  echo "$as_me: failed program was:" >&5
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
7243lt_cv_cc_needs_belf=no
7244fi
7245rm -f conftest.err conftest.$ac_objext \
7246      conftest$ac_exeext conftest.$ac_ext
7247     ac_ext=c
7248ac_cpp='$CPP $CPPFLAGS'
7249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252
7253fi
7254echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7255echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7256  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7257    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7258    CFLAGS="$SAVE_CFLAGS"
7259  fi
7260  ;;
7261sparc*-*solaris*)
7262  # Find out which ABI we are using.
7263  echo 'int i;' > conftest.$ac_ext
7264  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265  (eval $ac_compile) 2>&5
7266  ac_status=$?
7267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268  (exit $ac_status); }; then
7269    case `/usr/bin/file conftest.o` in
7270    *64-bit*)
7271      case $lt_cv_prog_gnu_ld in
7272      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7273      *)    LD="${LD-ld} -64" ;;
7274      esac
7275      ;;
7276    esac
7277  fi
7278  rm -rf conftest*
7279  ;;
7280
7281
7282esac
7283
7284need_locks="$enable_libtool_lock"
7285
7286
7287
7288for ac_header in dlfcn.h
7289do
7290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292  echo "$as_me:$LINENO: checking for $ac_header" >&5
7293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7294if eval "test \"\${$as_ac_Header+set}\" = set"; then
7295  echo $ECHO_N "(cached) $ECHO_C" >&6
7296fi
7297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7299else
7300  # Is the header compilable?
7301echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7303cat >conftest.$ac_ext <<_ACEOF
7304/* confdefs.h.  */
7305_ACEOF
7306cat confdefs.h >>conftest.$ac_ext
7307cat >>conftest.$ac_ext <<_ACEOF
7308/* end confdefs.h.  */
7309$ac_includes_default
7310#include <$ac_header>
7311_ACEOF
7312rm -f conftest.$ac_objext
7313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7314  (eval $ac_compile) 2>conftest.er1
7315  ac_status=$?
7316  grep -v '^ *+' conftest.er1 >conftest.err
7317  rm -f conftest.er1
7318  cat conftest.err >&5
7319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320  (exit $ac_status); } &&
7321         { ac_try='test -z "$ac_c_werror_flag"
7322                         || test ! -s conftest.err'
7323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324  (eval $ac_try) 2>&5
7325  ac_status=$?
7326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327  (exit $ac_status); }; } &&
7328         { ac_try='test -s conftest.$ac_objext'
7329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330  (eval $ac_try) 2>&5
7331  ac_status=$?
7332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333  (exit $ac_status); }; }; then
7334  ac_header_compiler=yes
7335else
7336  echo "$as_me: failed program was:" >&5
7337sed 's/^/| /' conftest.$ac_ext >&5
7338
7339ac_header_compiler=no
7340fi
7341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7343echo "${ECHO_T}$ac_header_compiler" >&6
7344
7345# Is the header present?
7346echo "$as_me:$LINENO: checking $ac_header presence" >&5
7347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7348cat >conftest.$ac_ext <<_ACEOF
7349/* confdefs.h.  */
7350_ACEOF
7351cat confdefs.h >>conftest.$ac_ext
7352cat >>conftest.$ac_ext <<_ACEOF
7353/* end confdefs.h.  */
7354#include <$ac_header>
7355_ACEOF
7356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7358  ac_status=$?
7359  grep -v '^ *+' conftest.er1 >conftest.err
7360  rm -f conftest.er1
7361  cat conftest.err >&5
7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363  (exit $ac_status); } >/dev/null; then
7364  if test -s conftest.err; then
7365    ac_cpp_err=$ac_c_preproc_warn_flag
7366    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7367  else
7368    ac_cpp_err=
7369  fi
7370else
7371  ac_cpp_err=yes
7372fi
7373if test -z "$ac_cpp_err"; then
7374  ac_header_preproc=yes
7375else
7376  echo "$as_me: failed program was:" >&5
7377sed 's/^/| /' conftest.$ac_ext >&5
7378
7379  ac_header_preproc=no
7380fi
7381rm -f conftest.err conftest.$ac_ext
7382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7383echo "${ECHO_T}$ac_header_preproc" >&6
7384
7385# So?  What about this header?
7386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7387  yes:no: )
7388    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7391echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7392    ac_header_preproc=yes
7393    ;;
7394  no:yes:* )
7395    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7397    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7398echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7399    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7400echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7401    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7402echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7405    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7406echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7407    (
7408      cat <<\_ASBOX
7409## --------------------------------------------------------------- ##
7410## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7411## --------------------------------------------------------------- ##
7412_ASBOX
7413    ) |
7414      sed "s/^/$as_me: WARNING:     /" >&2
7415    ;;
7416esac
7417echo "$as_me:$LINENO: checking for $ac_header" >&5
7418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7419if eval "test \"\${$as_ac_Header+set}\" = set"; then
7420  echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422  eval "$as_ac_Header=\$ac_header_preproc"
7423fi
7424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7426
7427fi
7428if test `eval echo '${'$as_ac_Header'}'` = yes; then
7429  cat >>confdefs.h <<_ACEOF
7430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7431_ACEOF
7432
7433fi
7434
7435done
7436
7437ac_ext=cc
7438ac_cpp='$CXXCPP $CPPFLAGS'
7439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7442if test -n "$ac_tool_prefix"; then
7443  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7444  do
7445    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7446set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7447echo "$as_me:$LINENO: checking for $ac_word" >&5
7448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7449if test "${ac_cv_prog_CXX+set}" = set; then
7450  echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452  if test -n "$CXX"; then
7453  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7454else
7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458  IFS=$as_save_IFS
7459  test -z "$as_dir" && as_dir=.
7460  for ac_exec_ext in '' $ac_executable_extensions; do
7461  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464    break 2
7465  fi
7466done
7467done
7468
7469fi
7470fi
7471CXX=$ac_cv_prog_CXX
7472if test -n "$CXX"; then
7473  echo "$as_me:$LINENO: result: $CXX" >&5
7474echo "${ECHO_T}$CXX" >&6
7475else
7476  echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6
7478fi
7479
7480    test -n "$CXX" && break
7481  done
7482fi
7483if test -z "$CXX"; then
7484  ac_ct_CXX=$CXX
7485  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7486do
7487  # Extract the first word of "$ac_prog", so it can be a program name with args.
7488set dummy $ac_prog; ac_word=$2
7489echo "$as_me:$LINENO: checking for $ac_word" >&5
7490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7491if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7492  echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494  if test -n "$ac_ct_CXX"; then
7495  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500  IFS=$as_save_IFS
7501  test -z "$as_dir" && as_dir=.
7502  for ac_exec_ext in '' $ac_executable_extensions; do
7503  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504    ac_cv_prog_ac_ct_CXX="$ac_prog"
7505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506    break 2
7507  fi
7508done
7509done
7510
7511fi
7512fi
7513ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7514if test -n "$ac_ct_CXX"; then
7515  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7516echo "${ECHO_T}$ac_ct_CXX" >&6
7517else
7518  echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
7520fi
7521
7522  test -n "$ac_ct_CXX" && break
7523done
7524test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7525
7526  CXX=$ac_ct_CXX
7527fi
7528
7529
7530# Provide some information about the compiler.
7531echo "$as_me:$LINENO:" \
7532     "checking for C++ compiler version" >&5
7533ac_compiler=`set X $ac_compile; echo $2`
7534{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7535  (eval $ac_compiler --version </dev/null >&5) 2>&5
7536  ac_status=$?
7537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538  (exit $ac_status); }
7539{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7540  (eval $ac_compiler -v </dev/null >&5) 2>&5
7541  ac_status=$?
7542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543  (exit $ac_status); }
7544{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7545  (eval $ac_compiler -V </dev/null >&5) 2>&5
7546  ac_status=$?
7547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548  (exit $ac_status); }
7549
7550echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7551echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7552if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7553  echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555  cat >conftest.$ac_ext <<_ACEOF
7556/* confdefs.h.  */
7557_ACEOF
7558cat confdefs.h >>conftest.$ac_ext
7559cat >>conftest.$ac_ext <<_ACEOF
7560/* end confdefs.h.  */
7561
7562#ifdef F77_DUMMY_MAIN
7563
7564#  ifdef __cplusplus
7565     extern "C"
7566#  endif
7567   int F77_DUMMY_MAIN() { return 1; }
7568
7569#endif
7570int
7571main ()
7572{
7573#ifndef __GNUC__
7574       choke me
7575#endif
7576
7577  ;
7578  return 0;
7579}
7580_ACEOF
7581rm -f conftest.$ac_objext
7582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7583  (eval $ac_compile) 2>conftest.er1
7584  ac_status=$?
7585  grep -v '^ *+' conftest.er1 >conftest.err
7586  rm -f conftest.er1
7587  cat conftest.err >&5
7588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589  (exit $ac_status); } &&
7590         { ac_try='test -z "$ac_cxx_werror_flag"
7591                         || test ! -s conftest.err'
7592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593  (eval $ac_try) 2>&5
7594  ac_status=$?
7595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596  (exit $ac_status); }; } &&
7597         { ac_try='test -s conftest.$ac_objext'
7598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599  (eval $ac_try) 2>&5
7600  ac_status=$?
7601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602  (exit $ac_status); }; }; then
7603  ac_compiler_gnu=yes
7604else
7605  echo "$as_me: failed program was:" >&5
7606sed 's/^/| /' conftest.$ac_ext >&5
7607
7608ac_compiler_gnu=no
7609fi
7610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7611ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7612
7613fi
7614echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7615echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7616GXX=`test $ac_compiler_gnu = yes && echo yes`
7617ac_test_CXXFLAGS=${CXXFLAGS+set}
7618ac_save_CXXFLAGS=$CXXFLAGS
7619CXXFLAGS="-g"
7620echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7621echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7622if test "${ac_cv_prog_cxx_g+set}" = set; then
7623  echo $ECHO_N "(cached) $ECHO_C" >&6
7624else
7625  cat >conftest.$ac_ext <<_ACEOF
7626/* confdefs.h.  */
7627_ACEOF
7628cat confdefs.h >>conftest.$ac_ext
7629cat >>conftest.$ac_ext <<_ACEOF
7630/* end confdefs.h.  */
7631
7632#ifdef F77_DUMMY_MAIN
7633
7634#  ifdef __cplusplus
7635     extern "C"
7636#  endif
7637   int F77_DUMMY_MAIN() { return 1; }
7638
7639#endif
7640int
7641main ()
7642{
7643
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648rm -f conftest.$ac_objext
7649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650  (eval $ac_compile) 2>conftest.er1
7651  ac_status=$?
7652  grep -v '^ *+' conftest.er1 >conftest.err
7653  rm -f conftest.er1
7654  cat conftest.err >&5
7655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656  (exit $ac_status); } &&
7657         { ac_try='test -z "$ac_cxx_werror_flag"
7658                         || test ! -s conftest.err'
7659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660  (eval $ac_try) 2>&5
7661  ac_status=$?
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); }; } &&
7664         { ac_try='test -s conftest.$ac_objext'
7665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666  (eval $ac_try) 2>&5
7667  ac_status=$?
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); }; }; then
7670  ac_cv_prog_cxx_g=yes
7671else
7672  echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675ac_cv_prog_cxx_g=no
7676fi
7677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7678fi
7679echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7680echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7681if test "$ac_test_CXXFLAGS" = set; then
7682  CXXFLAGS=$ac_save_CXXFLAGS
7683elif test $ac_cv_prog_cxx_g = yes; then
7684  if test "$GXX" = yes; then
7685    CXXFLAGS="-g -O2"
7686  else
7687    CXXFLAGS="-g"
7688  fi
7689else
7690  if test "$GXX" = yes; then
7691    CXXFLAGS="-O2"
7692  else
7693    CXXFLAGS=
7694  fi
7695fi
7696for ac_declaration in \
7697   '' \
7698   'extern "C" void std::exit (int) throw (); using std::exit;' \
7699   'extern "C" void std::exit (int); using std::exit;' \
7700   'extern "C" void exit (int) throw ();' \
7701   'extern "C" void exit (int);' \
7702   'void exit (int);'
7703do
7704  cat >conftest.$ac_ext <<_ACEOF
7705/* confdefs.h.  */
7706_ACEOF
7707cat confdefs.h >>conftest.$ac_ext
7708cat >>conftest.$ac_ext <<_ACEOF
7709/* end confdefs.h.  */
7710$ac_declaration
7711#include <stdlib.h>
7712#ifdef F77_DUMMY_MAIN
7713
7714#  ifdef __cplusplus
7715     extern "C"
7716#  endif
7717   int F77_DUMMY_MAIN() { return 1; }
7718
7719#endif
7720int
7721main ()
7722{
7723exit (42);
7724  ;
7725  return 0;
7726}
7727_ACEOF
7728rm -f conftest.$ac_objext
7729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730  (eval $ac_compile) 2>conftest.er1
7731  ac_status=$?
7732  grep -v '^ *+' conftest.er1 >conftest.err
7733  rm -f conftest.er1
7734  cat conftest.err >&5
7735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736  (exit $ac_status); } &&
7737         { ac_try='test -z "$ac_cxx_werror_flag"
7738                         || test ! -s conftest.err'
7739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740  (eval $ac_try) 2>&5
7741  ac_status=$?
7742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743  (exit $ac_status); }; } &&
7744         { ac_try='test -s conftest.$ac_objext'
7745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746  (eval $ac_try) 2>&5
7747  ac_status=$?
7748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749  (exit $ac_status); }; }; then
7750  :
7751else
7752  echo "$as_me: failed program was:" >&5
7753sed 's/^/| /' conftest.$ac_ext >&5
7754
7755continue
7756fi
7757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7758  cat >conftest.$ac_ext <<_ACEOF
7759/* confdefs.h.  */
7760_ACEOF
7761cat confdefs.h >>conftest.$ac_ext
7762cat >>conftest.$ac_ext <<_ACEOF
7763/* end confdefs.h.  */
7764$ac_declaration
7765#ifdef F77_DUMMY_MAIN
7766
7767#  ifdef __cplusplus
7768     extern "C"
7769#  endif
7770   int F77_DUMMY_MAIN() { return 1; }
7771
7772#endif
7773int
7774main ()
7775{
7776exit (42);
7777  ;
7778  return 0;
7779}
7780_ACEOF
7781rm -f conftest.$ac_objext
7782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783  (eval $ac_compile) 2>conftest.er1
7784  ac_status=$?
7785  grep -v '^ *+' conftest.er1 >conftest.err
7786  rm -f conftest.er1
7787  cat conftest.err >&5
7788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789  (exit $ac_status); } &&
7790         { ac_try='test -z "$ac_cxx_werror_flag"
7791                         || test ! -s conftest.err'
7792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793  (eval $ac_try) 2>&5
7794  ac_status=$?
7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796  (exit $ac_status); }; } &&
7797         { ac_try='test -s conftest.$ac_objext'
7798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799  (eval $ac_try) 2>&5
7800  ac_status=$?
7801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802  (exit $ac_status); }; }; then
7803  break
7804else
7805  echo "$as_me: failed program was:" >&5
7806sed 's/^/| /' conftest.$ac_ext >&5
7807
7808fi
7809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7810done
7811rm -f conftest*
7812if test -n "$ac_declaration"; then
7813  echo '#ifdef __cplusplus' >>confdefs.h
7814  echo $ac_declaration      >>confdefs.h
7815  echo '#endif'             >>confdefs.h
7816fi
7817
7818ac_ext=cc
7819ac_cpp='$CXXCPP $CPPFLAGS'
7820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7823
7824depcc="$CXX"  am_compiler_list=
7825
7826echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7827echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7828if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7829  echo $ECHO_N "(cached) $ECHO_C" >&6
7830else
7831  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7832  # We make a subdir and do the tests there.  Otherwise we can end up
7833  # making bogus files that we don't know about and never remove.  For
7834  # instance it was reported that on HP-UX the gcc test will end up
7835  # making a dummy file named `D' -- because `-MD' means `put the output
7836  # in D'.
7837  mkdir conftest.dir
7838  # Copy depcomp to subdir because otherwise we won't find it if we're
7839  # using a relative directory.
7840  cp "$am_depcomp" conftest.dir
7841  cd conftest.dir
7842  # We will build objects and dependencies in a subdirectory because
7843  # it helps to detect inapplicable dependency modes.  For instance
7844  # both Tru64's cc and ICC support -MD to output dependencies as a
7845  # side effect of compilation, but ICC will put the dependencies in
7846  # the current directory while Tru64 will put them in the object
7847  # directory.
7848  mkdir sub
7849
7850  am_cv_CXX_dependencies_compiler_type=none
7851  if test "$am_compiler_list" = ""; then
7852     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7853  fi
7854  for depmode in $am_compiler_list; do
7855    # Setup a source with many dependencies, because some compilers
7856    # like to wrap large dependency lists on column 80 (with \), and
7857    # we should not choose a depcomp mode which is confused by this.
7858    #
7859    # We need to recreate these files for each test, as the compiler may
7860    # overwrite some of them when testing with obscure command lines.
7861    # This happens at least with the AIX C compiler.
7862    : > sub/conftest.c
7863    for i in 1 2 3 4 5 6; do
7864      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7865      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7866      # Solaris 8's {/usr,}/bin/sh.
7867      touch sub/conftst$i.h
7868    done
7869    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7870
7871    case $depmode in
7872    nosideeffect)
7873      # after this tag, mechanisms are not by side-effect, so they'll
7874      # only be used when explicitly requested
7875      if test "x$enable_dependency_tracking" = xyes; then
7876        continue
7877      else
7878        break
7879      fi
7880      ;;
7881    none) break ;;
7882    esac
7883    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7884    # mode.  It turns out that the SunPro C++ compiler does not properly
7885    # handle `-M -o', and we need to detect this.
7886    if depmode=$depmode \
7887       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7888       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7889       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7890         >/dev/null 2>conftest.err &&
7891       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7892       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7893       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7894      # icc doesn't choke on unknown options, it will just issue warnings
7895      # or remarks (even with -Werror).  So we grep stderr for any message
7896      # that says an option was ignored or not supported.
7897      # When given -MP, icc 7.0 and 7.1 complain thusly:
7898      #   icc: Command line warning: ignoring option '-M'; no argument required
7899      # The diagnosis changed in icc 8.0:
7900      #   icc: Command line remark: option '-MP' not supported
7901      if (grep 'ignoring option' conftest.err ||
7902          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7903        am_cv_CXX_dependencies_compiler_type=$depmode
7904        break
7905      fi
7906    fi
7907  done
7908
7909  cd ..
7910  rm -rf conftest.dir
7911else
7912  am_cv_CXX_dependencies_compiler_type=none
7913fi
7914
7915fi
7916echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7917echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7918CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7919
7920
7921
7922if
7923  test "x$enable_dependency_tracking" != xno \
7924  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7925  am__fastdepCXX_TRUE=
7926  am__fastdepCXX_FALSE='#'
7927else
7928  am__fastdepCXX_TRUE='#'
7929  am__fastdepCXX_FALSE=
7930fi
7931
7932
7933
7934
7935if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7936    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7937    (test "X$CXX" != "Xg++"))) ; then
7938  ac_ext=cc
7939ac_cpp='$CXXCPP $CPPFLAGS'
7940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7943echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7944echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7945if test -z "$CXXCPP"; then
7946  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7947  echo $ECHO_N "(cached) $ECHO_C" >&6
7948else
7949      # Double quotes because CXXCPP needs to be expanded
7950    for CXXCPP in "$CXX -E" "/lib/cpp"
7951    do
7952      ac_preproc_ok=false
7953for ac_cxx_preproc_warn_flag in '' yes
7954do
7955  # Use a header file that comes with gcc, so configuring glibc
7956  # with a fresh cross-compiler works.
7957  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7958  # <limits.h> exists even on freestanding compilers.
7959  # On the NeXT, cc -E runs the code through the compiler's parser,
7960  # not just through cpp. "Syntax error" is here to catch this case.
7961  cat >conftest.$ac_ext <<_ACEOF
7962/* confdefs.h.  */
7963_ACEOF
7964cat confdefs.h >>conftest.$ac_ext
7965cat >>conftest.$ac_ext <<_ACEOF
7966/* end confdefs.h.  */
7967#ifdef __STDC__
7968# include <limits.h>
7969#else
7970# include <assert.h>
7971#endif
7972                     Syntax error
7973_ACEOF
7974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7975  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7976  ac_status=$?
7977  grep -v '^ *+' conftest.er1 >conftest.err
7978  rm -f conftest.er1
7979  cat conftest.err >&5
7980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981  (exit $ac_status); } >/dev/null; then
7982  if test -s conftest.err; then
7983    ac_cpp_err=$ac_cxx_preproc_warn_flag
7984    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7985  else
7986    ac_cpp_err=
7987  fi
7988else
7989  ac_cpp_err=yes
7990fi
7991if test -z "$ac_cpp_err"; then
7992  :
7993else
7994  echo "$as_me: failed program was:" >&5
7995sed 's/^/| /' conftest.$ac_ext >&5
7996
7997  # Broken: fails on valid input.
7998continue
7999fi
8000rm -f conftest.err conftest.$ac_ext
8001
8002  # OK, works on sane cases.  Now check whether non-existent headers
8003  # can be detected and how.
8004  cat >conftest.$ac_ext <<_ACEOF
8005/* confdefs.h.  */
8006_ACEOF
8007cat confdefs.h >>conftest.$ac_ext
8008cat >>conftest.$ac_ext <<_ACEOF
8009/* end confdefs.h.  */
8010#include <ac_nonexistent.h>
8011_ACEOF
8012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8013  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8014  ac_status=$?
8015  grep -v '^ *+' conftest.er1 >conftest.err
8016  rm -f conftest.er1
8017  cat conftest.err >&5
8018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019  (exit $ac_status); } >/dev/null; then
8020  if test -s conftest.err; then
8021    ac_cpp_err=$ac_cxx_preproc_warn_flag
8022    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8023  else
8024    ac_cpp_err=
8025  fi
8026else
8027  ac_cpp_err=yes
8028fi
8029if test -z "$ac_cpp_err"; then
8030  # Broken: success on invalid input.
8031continue
8032else
8033  echo "$as_me: failed program was:" >&5
8034sed 's/^/| /' conftest.$ac_ext >&5
8035
8036  # Passes both tests.
8037ac_preproc_ok=:
8038break
8039fi
8040rm -f conftest.err conftest.$ac_ext
8041
8042done
8043# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8044rm -f conftest.err conftest.$ac_ext
8045if $ac_preproc_ok; then
8046  break
8047fi
8048
8049    done
8050    ac_cv_prog_CXXCPP=$CXXCPP
8051
8052fi
8053  CXXCPP=$ac_cv_prog_CXXCPP
8054else
8055  ac_cv_prog_CXXCPP=$CXXCPP
8056fi
8057echo "$as_me:$LINENO: result: $CXXCPP" >&5
8058echo "${ECHO_T}$CXXCPP" >&6
8059ac_preproc_ok=false
8060for ac_cxx_preproc_warn_flag in '' yes
8061do
8062  # Use a header file that comes with gcc, so configuring glibc
8063  # with a fresh cross-compiler works.
8064  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8065  # <limits.h> exists even on freestanding compilers.
8066  # On the NeXT, cc -E runs the code through the compiler's parser,
8067  # not just through cpp. "Syntax error" is here to catch this case.
8068  cat >conftest.$ac_ext <<_ACEOF
8069/* confdefs.h.  */
8070_ACEOF
8071cat confdefs.h >>conftest.$ac_ext
8072cat >>conftest.$ac_ext <<_ACEOF
8073/* end confdefs.h.  */
8074#ifdef __STDC__
8075# include <limits.h>
8076#else
8077# include <assert.h>
8078#endif
8079                     Syntax error
8080_ACEOF
8081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8082  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8083  ac_status=$?
8084  grep -v '^ *+' conftest.er1 >conftest.err
8085  rm -f conftest.er1
8086  cat conftest.err >&5
8087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088  (exit $ac_status); } >/dev/null; then
8089  if test -s conftest.err; then
8090    ac_cpp_err=$ac_cxx_preproc_warn_flag
8091    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8092  else
8093    ac_cpp_err=
8094  fi
8095else
8096  ac_cpp_err=yes
8097fi
8098if test -z "$ac_cpp_err"; then
8099  :
8100else
8101  echo "$as_me: failed program was:" >&5
8102sed 's/^/| /' conftest.$ac_ext >&5
8103
8104  # Broken: fails on valid input.
8105continue
8106fi
8107rm -f conftest.err conftest.$ac_ext
8108
8109  # OK, works on sane cases.  Now check whether non-existent headers
8110  # can be detected and how.
8111  cat >conftest.$ac_ext <<_ACEOF
8112/* confdefs.h.  */
8113_ACEOF
8114cat confdefs.h >>conftest.$ac_ext
8115cat >>conftest.$ac_ext <<_ACEOF
8116/* end confdefs.h.  */
8117#include <ac_nonexistent.h>
8118_ACEOF
8119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8120  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8121  ac_status=$?
8122  grep -v '^ *+' conftest.er1 >conftest.err
8123  rm -f conftest.er1
8124  cat conftest.err >&5
8125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126  (exit $ac_status); } >/dev/null; then
8127  if test -s conftest.err; then
8128    ac_cpp_err=$ac_cxx_preproc_warn_flag
8129    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8130  else
8131    ac_cpp_err=
8132  fi
8133else
8134  ac_cpp_err=yes
8135fi
8136if test -z "$ac_cpp_err"; then
8137  # Broken: success on invalid input.
8138continue
8139else
8140  echo "$as_me: failed program was:" >&5
8141sed 's/^/| /' conftest.$ac_ext >&5
8142
8143  # Passes both tests.
8144ac_preproc_ok=:
8145break
8146fi
8147rm -f conftest.err conftest.$ac_ext
8148
8149done
8150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8151rm -f conftest.err conftest.$ac_ext
8152if $ac_preproc_ok; then
8153  :
8154else
8155  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8156See \`config.log' for more details." >&5
8157echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8158See \`config.log' for more details." >&2;}
8159   { (exit 1); exit 1; }; }
8160fi
8161
8162ac_ext=cc
8163ac_cpp='$CXXCPP $CPPFLAGS'
8164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8167
8168fi
8169
8170
8171
8172# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8173
8174# find the maximum length of command line arguments
8175echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8176echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8177if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8178  echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180    i=0
8181  teststring="ABCD"
8182
8183  case $build_os in
8184  msdosdjgpp*)
8185    # On DJGPP, this test can blow up pretty badly due to problems in libc
8186    # (any single argument exceeding 2000 bytes causes a buffer overrun
8187    # during glob expansion).  Even if it were fixed, the result of this
8188    # check would be larger than it should be.
8189    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8190    ;;
8191
8192  gnu*)
8193    # Under GNU Hurd, this test is not required because there is
8194    # no limit to the length of command line arguments.
8195    # Libtool will interpret -1 as no limit whatsoever
8196    lt_cv_sys_max_cmd_len=-1;
8197    ;;
8198
8199  cygwin* | mingw*)
8200    # On Win9x/ME, this test blows up -- it succeeds, but takes
8201    # about 5 minutes as the teststring grows exponentially.
8202    # Worse, since 9x/ME are not pre-emptively multitasking,
8203    # you end up with a "frozen" computer, even though with patience
8204    # the test eventually succeeds (with a max line length of 256k).
8205    # Instead, let's just punt: use the minimum linelength reported by
8206    # all of the supported platforms: 8192 (on NT/2K/XP).
8207    lt_cv_sys_max_cmd_len=8192;
8208    ;;
8209
8210  amigaos*)
8211    # On AmigaOS with pdksh, this test takes hours, literally.
8212    # So we just punt and use a minimum line length of 8192.
8213    lt_cv_sys_max_cmd_len=8192;
8214    ;;
8215
8216  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8217    # This has been around since 386BSD, at least.  Likely further.
8218    if test -x /sbin/sysctl; then
8219      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8220    elif test -x /usr/sbin/sysctl; then
8221      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8222    else
8223      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8224    fi
8225    # And add a safety zone
8226    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8227    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8228    ;;
8229
8230  interix*)
8231    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8232    lt_cv_sys_max_cmd_len=196608
8233    ;;
8234
8235  osf*)
8236    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8237    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8238    # nice to cause kernel panics so lets avoid the loop below.
8239    # First set a reasonable default.
8240    lt_cv_sys_max_cmd_len=16384
8241    #
8242    if test -x /sbin/sysconfig; then
8243      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8244        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8245      esac
8246    fi
8247    ;;
8248  sco3.2v5*)
8249    lt_cv_sys_max_cmd_len=102400
8250    ;;
8251  sysv5* | sco5v6* | sysv4.2uw2*)
8252    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8253    if test -n "$kargmax"; then
8254      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8255    else
8256      lt_cv_sys_max_cmd_len=32768
8257    fi
8258    ;;
8259  *)
8260    # If test is not a shell built-in, we'll probably end up computing a
8261    # maximum length that is only half of the actual maximum length, but
8262    # we can't tell.
8263    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8264    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8265               = "XX$teststring") >/dev/null 2>&1 &&
8266            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8267            lt_cv_sys_max_cmd_len=$new_result &&
8268            test $i != 17 # 1/2 MB should be enough
8269    do
8270      i=`expr $i + 1`
8271      teststring=$teststring$teststring
8272    done
8273    teststring=
8274    # Add a significant safety factor because C++ compilers can tack on massive
8275    # amounts of additional arguments before passing them to the linker.
8276    # It appears as though 1/2 is a usable value.
8277    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8278    ;;
8279  esac
8280
8281fi
8282
8283if test -n $lt_cv_sys_max_cmd_len ; then
8284  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8285echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8286else
8287  echo "$as_me:$LINENO: result: none" >&5
8288echo "${ECHO_T}none" >&6
8289fi
8290
8291
8292
8293
8294# Check for command to grab the raw symbol name followed by C symbol from nm.
8295echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8296echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8297if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8298  echo $ECHO_N "(cached) $ECHO_C" >&6
8299else
8300
8301# These are sane defaults that work on at least a few old systems.
8302# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8303
8304# Character class describing NM global symbol codes.
8305symcode='[BCDEGRST]'
8306
8307# Regexp to match symbols that can be accessed directly from C.
8308sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8309
8310# Transform an extracted symbol line into a proper C declaration
8311lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8312
8313# Transform an extracted symbol line into symbol name and symbol address
8314lt_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'"
8315
8316# Define system-specific variables.
8317case $host_os in
8318aix*)
8319  symcode='[BCDT]'
8320  ;;
8321cygwin* | mingw* | pw32*)
8322  symcode='[ABCDGISTW]'
8323  ;;
8324hpux*) # Its linker distinguishes data from code symbols
8325  if test "$host_cpu" = ia64; then
8326    symcode='[ABCDEGRST]'
8327  fi
8328  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8329  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'"
8330  ;;
8331linux*)
8332  if test "$host_cpu" = ia64; then
8333    symcode='[ABCDGIRSTW]'
8334    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8335    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'"
8336  fi
8337  ;;
8338irix* | nonstopux*)
8339  symcode='[BCDEGRST]'
8340  ;;
8341osf*)
8342  symcode='[BCDEGQRST]'
8343  ;;
8344solaris*)
8345  symcode='[BDRT]'
8346  ;;
8347sco3.2v5*)
8348  symcode='[DT]'
8349  ;;
8350sysv4.2uw2*)
8351  symcode='[DT]'
8352  ;;
8353sysv5* | sco5v6* | unixware* | OpenUNIX*)
8354  symcode='[ABDT]'
8355  ;;
8356sysv4)
8357  symcode='[DFNSTU]'
8358  ;;
8359esac
8360
8361# Handle CRLF in mingw tool chain
8362opt_cr=
8363case $build_os in
8364mingw*)
8365  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8366  ;;
8367esac
8368
8369# If we're using GNU nm, then use its standard symbol codes.
8370case `$NM -V 2>&1` in
8371*GNU* | *'with BFD'*)
8372  symcode='[ABCDGIRSTW]' ;;
8373esac
8374
8375# Try without a prefix undercore, then with it.
8376for ac_symprfx in "" "_"; do
8377
8378  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8379  symxfrm="\\1 $ac_symprfx\\2 \\2"
8380
8381  # Write the raw and C identifiers.
8382  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8383
8384  # Check to see that the pipe works correctly.
8385  pipe_works=no
8386
8387  rm -f conftest*
8388  cat > conftest.$ac_ext <<EOF
8389#ifdef __cplusplus
8390extern "C" {
8391#endif
8392char nm_test_var;
8393void nm_test_func(){}
8394#ifdef __cplusplus
8395}
8396#endif
8397int main(){nm_test_var='a';nm_test_func();return(0);}
8398EOF
8399
8400  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401  (eval $ac_compile) 2>&5
8402  ac_status=$?
8403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404  (exit $ac_status); }; then
8405    # Now try to grab the symbols.
8406    nlist=conftest.nm
8407    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8408  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8409  ac_status=$?
8410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411  (exit $ac_status); } && test -s "$nlist"; then
8412      # Try sorting and uniquifying the output.
8413      if sort "$nlist" | uniq > "$nlist"T; then
8414        mv -f "$nlist"T "$nlist"
8415      else
8416        rm -f "$nlist"T
8417      fi
8418
8419      # Make sure that we snagged all the symbols we need.
8420      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8421        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8422          cat <<EOF > conftest.$ac_ext
8423#ifdef __cplusplus
8424extern "C" {
8425#endif
8426
8427EOF
8428          # Now generate the symbol file.
8429          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8430
8431          cat <<EOF >> conftest.$ac_ext
8432#if defined (__STDC__) && __STDC__
8433# define lt_ptr_t void *
8434#else
8435# define lt_ptr_t char *
8436# define const
8437#endif
8438
8439/* The mapping between symbol names and symbols. */
8440const struct {
8441  const char *name;
8442  lt_ptr_t address;
8443}
8444lt_preloaded_symbols[] =
8445{
8446EOF
8447          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8448          cat <<\EOF >> conftest.$ac_ext
8449  {0, (lt_ptr_t) 0}
8450};
8451
8452#ifdef __cplusplus
8453}
8454#endif
8455EOF
8456          # Now try linking the two files.
8457          mv conftest.$ac_objext conftstm.$ac_objext
8458          lt_save_LIBS="$LIBS"
8459          lt_save_CFLAGS="$CFLAGS"
8460          LIBS="conftstm.$ac_objext"
8461          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8462          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8463  (eval $ac_link) 2>&5
8464  ac_status=$?
8465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8467            pipe_works=yes
8468          fi
8469          LIBS="$lt_save_LIBS"
8470          CFLAGS="$lt_save_CFLAGS"
8471        else
8472          echo "cannot find nm_test_func in $nlist" >&5
8473        fi
8474      else
8475        echo "cannot find nm_test_var in $nlist" >&5
8476      fi
8477    else
8478      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8479    fi
8480  else
8481    echo "$progname: failed program was:" >&5
8482    cat conftest.$ac_ext >&5
8483  fi
8484  rm -f conftest* conftst*
8485
8486  # Do not use the global_symbol_pipe unless it works.
8487  if test "$pipe_works" = yes; then
8488    break
8489  else
8490    lt_cv_sys_global_symbol_pipe=
8491  fi
8492done
8493
8494fi
8495
8496if test -z "$lt_cv_sys_global_symbol_pipe"; then
8497  lt_cv_sys_global_symbol_to_cdecl=
8498fi
8499if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8500  echo "$as_me:$LINENO: result: failed" >&5
8501echo "${ECHO_T}failed" >&6
8502else
8503  echo "$as_me:$LINENO: result: ok" >&5
8504echo "${ECHO_T}ok" >&6
8505fi
8506
8507echo "$as_me:$LINENO: checking for objdir" >&5
8508echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8509if test "${lt_cv_objdir+set}" = set; then
8510  echo $ECHO_N "(cached) $ECHO_C" >&6
8511else
8512  rm -f .libs 2>/dev/null
8513mkdir .libs 2>/dev/null
8514if test -d .libs; then
8515  lt_cv_objdir=.libs
8516else
8517  # MS-DOS does not allow filenames that begin with a dot.
8518  lt_cv_objdir=_libs
8519fi
8520rmdir .libs 2>/dev/null
8521fi
8522echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8523echo "${ECHO_T}$lt_cv_objdir" >&6
8524objdir=$lt_cv_objdir
8525
8526
8527
8528
8529
8530case $host_os in
8531aix3*)
8532  # AIX sometimes has problems with the GCC collect2 program.  For some
8533  # reason, if we set the COLLECT_NAMES environment variable, the problems
8534  # vanish in a puff of smoke.
8535  if test "X${COLLECT_NAMES+set}" != Xset; then
8536    COLLECT_NAMES=
8537    export COLLECT_NAMES
8538  fi
8539  ;;
8540esac
8541
8542# Sed substitution that helps us do robust quoting.  It backslashifies
8543# metacharacters that are still active within double-quoted strings.
8544Xsed='sed -e 1s/^X//'
8545sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8546
8547# Same as above, but do not quote variable references.
8548double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8549
8550# Sed substitution to delay expansion of an escaped shell variable in a
8551# double_quote_subst'ed string.
8552delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8553
8554# Sed substitution to avoid accidental globbing in evaled expressions
8555no_glob_subst='s/\*/\\\*/g'
8556
8557# Constants:
8558rm="rm -f"
8559
8560# Global variables:
8561default_ofile=libtool
8562can_build_shared=yes
8563
8564# All known linkers require a `.a' archive for static linking (except MSVC,
8565# which needs '.lib').
8566libext=a
8567ltmain="$ac_aux_dir/ltmain.sh"
8568ofile="$default_ofile"
8569with_gnu_ld="$lt_cv_prog_gnu_ld"
8570
8571if test -n "$ac_tool_prefix"; then
8572  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8573set dummy ${ac_tool_prefix}ar; ac_word=$2
8574echo "$as_me:$LINENO: checking for $ac_word" >&5
8575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8576if test "${ac_cv_prog_AR+set}" = set; then
8577  echo $ECHO_N "(cached) $ECHO_C" >&6
8578else
8579  if test -n "$AR"; then
8580  ac_cv_prog_AR="$AR" # Let the user override the test.
8581else
8582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585  IFS=$as_save_IFS
8586  test -z "$as_dir" && as_dir=.
8587  for ac_exec_ext in '' $ac_executable_extensions; do
8588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8589    ac_cv_prog_AR="${ac_tool_prefix}ar"
8590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8591    break 2
8592  fi
8593done
8594done
8595
8596fi
8597fi
8598AR=$ac_cv_prog_AR
8599if test -n "$AR"; then
8600  echo "$as_me:$LINENO: result: $AR" >&5
8601echo "${ECHO_T}$AR" >&6
8602else
8603  echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605fi
8606
8607fi
8608if test -z "$ac_cv_prog_AR"; then
8609  ac_ct_AR=$AR
8610  # Extract the first word of "ar", so it can be a program name with args.
8611set dummy ar; ac_word=$2
8612echo "$as_me:$LINENO: checking for $ac_word" >&5
8613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8614if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8615  echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617  if test -n "$ac_ct_AR"; then
8618  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8619else
8620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $PATH
8622do
8623  IFS=$as_save_IFS
8624  test -z "$as_dir" && as_dir=.
8625  for ac_exec_ext in '' $ac_executable_extensions; do
8626  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627    ac_cv_prog_ac_ct_AR="ar"
8628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8629    break 2
8630  fi
8631done
8632done
8633
8634  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8635fi
8636fi
8637ac_ct_AR=$ac_cv_prog_ac_ct_AR
8638if test -n "$ac_ct_AR"; then
8639  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8640echo "${ECHO_T}$ac_ct_AR" >&6
8641else
8642  echo "$as_me:$LINENO: result: no" >&5
8643echo "${ECHO_T}no" >&6
8644fi
8645
8646  AR=$ac_ct_AR
8647else
8648  AR="$ac_cv_prog_AR"
8649fi
8650
8651if test -n "$ac_tool_prefix"; then
8652  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8653set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8654echo "$as_me:$LINENO: checking for $ac_word" >&5
8655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8656if test "${ac_cv_prog_RANLIB+set}" = set; then
8657  echo $ECHO_N "(cached) $ECHO_C" >&6
8658else
8659  if test -n "$RANLIB"; then
8660  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8661else
8662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663for as_dir in $PATH
8664do
8665  IFS=$as_save_IFS
8666  test -z "$as_dir" && as_dir=.
8667  for ac_exec_ext in '' $ac_executable_extensions; do
8668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8671    break 2
8672  fi
8673done
8674done
8675
8676fi
8677fi
8678RANLIB=$ac_cv_prog_RANLIB
8679if test -n "$RANLIB"; then
8680  echo "$as_me:$LINENO: result: $RANLIB" >&5
8681echo "${ECHO_T}$RANLIB" >&6
8682else
8683  echo "$as_me:$LINENO: result: no" >&5
8684echo "${ECHO_T}no" >&6
8685fi
8686
8687fi
8688if test -z "$ac_cv_prog_RANLIB"; then
8689  ac_ct_RANLIB=$RANLIB
8690  # Extract the first word of "ranlib", so it can be a program name with args.
8691set dummy ranlib; ac_word=$2
8692echo "$as_me:$LINENO: checking for $ac_word" >&5
8693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8694if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8695  echo $ECHO_N "(cached) $ECHO_C" >&6
8696else
8697  if test -n "$ac_ct_RANLIB"; then
8698  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8699else
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703  IFS=$as_save_IFS
8704  test -z "$as_dir" && as_dir=.
8705  for ac_exec_ext in '' $ac_executable_extensions; do
8706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707    ac_cv_prog_ac_ct_RANLIB="ranlib"
8708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8709    break 2
8710  fi
8711done
8712done
8713
8714  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8715fi
8716fi
8717ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8718if test -n "$ac_ct_RANLIB"; then
8719  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8720echo "${ECHO_T}$ac_ct_RANLIB" >&6
8721else
8722  echo "$as_me:$LINENO: result: no" >&5
8723echo "${ECHO_T}no" >&6
8724fi
8725
8726  RANLIB=$ac_ct_RANLIB
8727else
8728  RANLIB="$ac_cv_prog_RANLIB"
8729fi
8730
8731if test -n "$ac_tool_prefix"; then
8732  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8733set dummy ${ac_tool_prefix}strip; ac_word=$2
8734echo "$as_me:$LINENO: checking for $ac_word" >&5
8735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8736if test "${ac_cv_prog_STRIP+set}" = set; then
8737  echo $ECHO_N "(cached) $ECHO_C" >&6
8738else
8739  if test -n "$STRIP"; then
8740  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8741else
8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in $PATH
8744do
8745  IFS=$as_save_IFS
8746  test -z "$as_dir" && as_dir=.
8747  for ac_exec_ext in '' $ac_executable_extensions; do
8748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8749    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8751    break 2
8752  fi
8753done
8754done
8755
8756fi
8757fi
8758STRIP=$ac_cv_prog_STRIP
8759if test -n "$STRIP"; then
8760  echo "$as_me:$LINENO: result: $STRIP" >&5
8761echo "${ECHO_T}$STRIP" >&6
8762else
8763  echo "$as_me:$LINENO: result: no" >&5
8764echo "${ECHO_T}no" >&6
8765fi
8766
8767fi
8768if test -z "$ac_cv_prog_STRIP"; then
8769  ac_ct_STRIP=$STRIP
8770  # Extract the first word of "strip", so it can be a program name with args.
8771set dummy strip; ac_word=$2
8772echo "$as_me:$LINENO: checking for $ac_word" >&5
8773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8774if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8775  echo $ECHO_N "(cached) $ECHO_C" >&6
8776else
8777  if test -n "$ac_ct_STRIP"; then
8778  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8779else
8780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781for as_dir in $PATH
8782do
8783  IFS=$as_save_IFS
8784  test -z "$as_dir" && as_dir=.
8785  for ac_exec_ext in '' $ac_executable_extensions; do
8786  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8787    ac_cv_prog_ac_ct_STRIP="strip"
8788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8789    break 2
8790  fi
8791done
8792done
8793
8794  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8795fi
8796fi
8797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8798if test -n "$ac_ct_STRIP"; then
8799  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8800echo "${ECHO_T}$ac_ct_STRIP" >&6
8801else
8802  echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6
8804fi
8805
8806  STRIP=$ac_ct_STRIP
8807else
8808  STRIP="$ac_cv_prog_STRIP"
8809fi
8810
8811
8812old_CC="$CC"
8813old_CFLAGS="$CFLAGS"
8814
8815# Set sane defaults for various variables
8816test -z "$AR" && AR=ar
8817test -z "$AR_FLAGS" && AR_FLAGS=cru
8818test -z "$AS" && AS=as
8819test -z "$CC" && CC=cc
8820test -z "$LTCC" && LTCC=$CC
8821test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8822test -z "$DLLTOOL" && DLLTOOL=dlltool
8823test -z "$LD" && LD=ld
8824test -z "$LN_S" && LN_S="ln -s"
8825test -z "$MAGIC_CMD" && MAGIC_CMD=file
8826test -z "$NM" && NM=nm
8827test -z "$SED" && SED=sed
8828test -z "$OBJDUMP" && OBJDUMP=objdump
8829test -z "$RANLIB" && RANLIB=:
8830test -z "$STRIP" && STRIP=:
8831test -z "$ac_objext" && ac_objext=o
8832
8833# Determine commands to create old-style static archives.
8834old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8835old_postinstall_cmds='chmod 644 $oldlib'
8836old_postuninstall_cmds=
8837
8838if test -n "$RANLIB"; then
8839  case $host_os in
8840  openbsd*)
8841    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8842    ;;
8843  *)
8844    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8845    ;;
8846  esac
8847  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8848fi
8849
8850for cc_temp in $compiler""; do
8851  case $cc_temp in
8852    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8853    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8854    \-*) ;;
8855    *) break;;
8856  esac
8857done
8858cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8859
8860
8861# Only perform the check for file, if the check method requires it
8862case $deplibs_check_method in
8863file_magic*)
8864  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8865    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8866echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8867if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8868  echo $ECHO_N "(cached) $ECHO_C" >&6
8869else
8870  case $MAGIC_CMD in
8871[\\/*] |  ?:[\\/]*)
8872  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8873  ;;
8874*)
8875  lt_save_MAGIC_CMD="$MAGIC_CMD"
8876  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8877  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8878  for ac_dir in $ac_dummy; do
8879    IFS="$lt_save_ifs"
8880    test -z "$ac_dir" && ac_dir=.
8881    if test -f $ac_dir/${ac_tool_prefix}file; then
8882      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8883      if test -n "$file_magic_test_file"; then
8884        case $deplibs_check_method in
8885        "file_magic "*)
8886          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8887          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8888          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8889            $EGREP "$file_magic_regex" > /dev/null; then
8890            :
8891          else
8892            cat <<EOF 1>&2
8893
8894*** Warning: the command libtool uses to detect shared libraries,
8895*** $file_magic_cmd, produces output that libtool cannot recognize.
8896*** The result is that libtool may fail to recognize shared libraries
8897*** as such.  This will affect the creation of libtool libraries that
8898*** depend on shared libraries, but programs linked with such libtool
8899*** libraries will work regardless of this problem.  Nevertheless, you
8900*** may want to report the problem to your system manager and/or to
8901*** bug-libtool@gnu.org
8902
8903EOF
8904          fi ;;
8905        esac
8906      fi
8907      break
8908    fi
8909  done
8910  IFS="$lt_save_ifs"
8911  MAGIC_CMD="$lt_save_MAGIC_CMD"
8912  ;;
8913esac
8914fi
8915
8916MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8917if test -n "$MAGIC_CMD"; then
8918  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8919echo "${ECHO_T}$MAGIC_CMD" >&6
8920else
8921  echo "$as_me:$LINENO: result: no" >&5
8922echo "${ECHO_T}no" >&6
8923fi
8924
8925if test -z "$lt_cv_path_MAGIC_CMD"; then
8926  if test -n "$ac_tool_prefix"; then
8927    echo "$as_me:$LINENO: checking for file" >&5
8928echo $ECHO_N "checking for file... $ECHO_C" >&6
8929if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8930  echo $ECHO_N "(cached) $ECHO_C" >&6
8931else
8932  case $MAGIC_CMD in
8933[\\/*] |  ?:[\\/]*)
8934  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8935  ;;
8936*)
8937  lt_save_MAGIC_CMD="$MAGIC_CMD"
8938  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8939  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8940  for ac_dir in $ac_dummy; do
8941    IFS="$lt_save_ifs"
8942    test -z "$ac_dir" && ac_dir=.
8943    if test -f $ac_dir/file; then
8944      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8945      if test -n "$file_magic_test_file"; then
8946        case $deplibs_check_method in
8947        "file_magic "*)
8948          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8949          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8950          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8951            $EGREP "$file_magic_regex" > /dev/null; then
8952            :
8953          else
8954            cat <<EOF 1>&2
8955
8956*** Warning: the command libtool uses to detect shared libraries,
8957*** $file_magic_cmd, produces output that libtool cannot recognize.
8958*** The result is that libtool may fail to recognize shared libraries
8959*** as such.  This will affect the creation of libtool libraries that
8960*** depend on shared libraries, but programs linked with such libtool
8961*** libraries will work regardless of this problem.  Nevertheless, you
8962*** may want to report the problem to your system manager and/or to
8963*** bug-libtool@gnu.org
8964
8965EOF
8966          fi ;;
8967        esac
8968      fi
8969      break
8970    fi
8971  done
8972  IFS="$lt_save_ifs"
8973  MAGIC_CMD="$lt_save_MAGIC_CMD"
8974  ;;
8975esac
8976fi
8977
8978MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8979if test -n "$MAGIC_CMD"; then
8980  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8981echo "${ECHO_T}$MAGIC_CMD" >&6
8982else
8983  echo "$as_me:$LINENO: result: no" >&5
8984echo "${ECHO_T}no" >&6
8985fi
8986
8987  else
8988    MAGIC_CMD=:
8989  fi
8990fi
8991
8992  fi
8993  ;;
8994esac
8995
8996enable_dlopen=no
8997enable_win32_dll=no
8998
8999# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9000if test "${enable_libtool_lock+set}" = set; then
9001  enableval="$enable_libtool_lock"
9002
9003fi;
9004test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9005
9006
9007# Check whether --with-pic or --without-pic was given.
9008if test "${with_pic+set}" = set; then
9009  withval="$with_pic"
9010  pic_mode="$withval"
9011else
9012  pic_mode=default
9013fi;
9014test -z "$pic_mode" && pic_mode=default
9015
9016# Use C for the default configuration in the libtool script
9017tagname=
9018lt_save_CC="$CC"
9019ac_ext=c
9020ac_cpp='$CPP $CPPFLAGS'
9021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9023ac_compiler_gnu=$ac_cv_c_compiler_gnu
9024
9025
9026# Source file extension for C test sources.
9027ac_ext=c
9028
9029# Object file extension for compiled C test sources.
9030objext=o
9031objext=$objext
9032
9033# Code to be used in simple compile tests
9034lt_simple_compile_test_code="int some_variable = 0;\n"
9035
9036# Code to be used in simple link tests
9037lt_simple_link_test_code='int main(){return(0);}\n'
9038
9039
9040# If no C compiler was specified, use CC.
9041LTCC=${LTCC-"$CC"}
9042
9043# If no C compiler flags were specified, use CFLAGS.
9044LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9045
9046# Allow CC to be a program name with arguments.
9047compiler=$CC
9048
9049
9050# save warnings/boilerplate of simple test code
9051ac_outfile=conftest.$ac_objext
9052printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9053eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9054_lt_compiler_boilerplate=`cat conftest.err`
9055$rm conftest*
9056
9057ac_outfile=conftest.$ac_objext
9058printf "$lt_simple_link_test_code" >conftest.$ac_ext
9059eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9060_lt_linker_boilerplate=`cat conftest.err`
9061$rm conftest*
9062
9063
9064## CAVEAT EMPTOR:
9065## There is no encapsulation within the following macros, do not change
9066## the running order or otherwise move them around unless you know exactly
9067## what you are doing...
9068
9069lt_prog_compiler_no_builtin_flag=
9070
9071if test "$GCC" = yes; then
9072  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9073
9074
9075echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9076echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9077if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9078  echo $ECHO_N "(cached) $ECHO_C" >&6
9079else
9080  lt_cv_prog_compiler_rtti_exceptions=no
9081  ac_outfile=conftest.$ac_objext
9082   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9083   lt_compiler_flag="-fno-rtti -fno-exceptions"
9084   # Insert the option either (1) after the last *FLAGS variable, or
9085   # (2) before a word containing "conftest.", or (3) at the end.
9086   # Note that $ac_compile itself does not contain backslashes and begins
9087   # with a dollar sign (not a hyphen), so the echo should work correctly.
9088   # The option is referenced via a variable to avoid confusing sed.
9089   lt_compile=`echo "$ac_compile" | $SED \
9090   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9091   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9092   -e 's:$: $lt_compiler_flag:'`
9093   (eval echo "\"\$as_me:9093: $lt_compile\"" >&5)
9094   (eval "$lt_compile" 2>conftest.err)
9095   ac_status=$?
9096   cat conftest.err >&5
9097   echo "$as_me:9097: \$? = $ac_status" >&5
9098   if (exit $ac_status) && test -s "$ac_outfile"; then
9099     # The compiler can only warn and ignore the option if not recognized
9100     # So say no if there are warnings other than the usual output.
9101     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9102     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9103     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9104       lt_cv_prog_compiler_rtti_exceptions=yes
9105     fi
9106   fi
9107   $rm conftest*
9108
9109fi
9110echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9111echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9112
9113if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9114    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9115else
9116    :
9117fi
9118
9119fi
9120
9121lt_prog_compiler_wl=
9122lt_prog_compiler_pic=
9123lt_prog_compiler_static=
9124
9125echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9126echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9127
9128  if test "$GCC" = yes; then
9129    lt_prog_compiler_wl='-Wl,'
9130    lt_prog_compiler_static='-static'
9131
9132    case $host_os in
9133      aix*)
9134      # All AIX code is PIC.
9135      if test "$host_cpu" = ia64; then
9136        # AIX 5 now supports IA64 processor
9137        lt_prog_compiler_static='-Bstatic'
9138      fi
9139      ;;
9140
9141    amigaos*)
9142      # FIXME: we need at least 68020 code to build shared libraries, but
9143      # adding the `-m68020' flag to GCC prevents building anything better,
9144      # like `-m68040'.
9145      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9146      ;;
9147
9148    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9149      # PIC is the default for these OSes.
9150      ;;
9151
9152    mingw* | pw32* | os2*)
9153      # This hack is so that the source file can tell whether it is being
9154      # built for inclusion in a dll (and should export symbols for example).
9155      lt_prog_compiler_pic='-DDLL_EXPORT'
9156      ;;
9157
9158    darwin* | rhapsody*)
9159      # PIC is the default on this platform
9160      # Common symbols not allowed in MH_DYLIB files
9161      lt_prog_compiler_pic='-fno-common'
9162      ;;
9163
9164    interix3*)
9165      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9166      # Instead, we relocate shared libraries at runtime.
9167      ;;
9168
9169    msdosdjgpp*)
9170      # Just because we use GCC doesn't mean we suddenly get shared libraries
9171      # on systems that don't support them.
9172      lt_prog_compiler_can_build_shared=no
9173      enable_shared=no
9174      ;;
9175
9176    sysv4*MP*)
9177      if test -d /usr/nec; then
9178        lt_prog_compiler_pic=-Kconform_pic
9179      fi
9180      ;;
9181
9182    hpux*)
9183      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9184      # not for PA HP-UX.
9185      case $host_cpu in
9186      hppa*64*|ia64*)
9187        # +Z the default
9188        ;;
9189      *)
9190        lt_prog_compiler_pic='-fPIC'
9191        ;;
9192      esac
9193      ;;
9194
9195    *)
9196      lt_prog_compiler_pic='-fPIC'
9197      ;;
9198    esac
9199  else
9200    # PORTME Check for flag to pass linker flags through the system compiler.
9201    case $host_os in
9202    aix*)
9203      lt_prog_compiler_wl='-Wl,'
9204      if test "$host_cpu" = ia64; then
9205        # AIX 5 now supports IA64 processor
9206        lt_prog_compiler_static='-Bstatic'
9207      else
9208        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9209      fi
9210      ;;
9211      darwin*)
9212        # PIC is the default on this platform
9213        # Common symbols not allowed in MH_DYLIB files
9214       case $cc_basename in
9215         xlc*)
9216         lt_prog_compiler_pic='-qnocommon'
9217         lt_prog_compiler_wl='-Wl,'
9218         ;;
9219       esac
9220       ;;
9221
9222    mingw* | pw32* | os2*)
9223      # This hack is so that the source file can tell whether it is being
9224      # built for inclusion in a dll (and should export symbols for example).
9225      lt_prog_compiler_pic='-DDLL_EXPORT'
9226      ;;
9227
9228    hpux9* | hpux10* | hpux11*)
9229      lt_prog_compiler_wl='-Wl,'
9230      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9231      # not for PA HP-UX.
9232      case $host_cpu in
9233      hppa*64*|ia64*)
9234        # +Z the default
9235        ;;
9236      *)
9237        lt_prog_compiler_pic='+Z'
9238        ;;
9239      esac
9240      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9241      lt_prog_compiler_static='${wl}-a ${wl}archive'
9242      ;;
9243
9244    irix5* | irix6* | nonstopux*)
9245      lt_prog_compiler_wl='-Wl,'
9246      # PIC (with -KPIC) is the default.
9247      lt_prog_compiler_static='-non_shared'
9248      ;;
9249
9250    newsos6)
9251      lt_prog_compiler_pic='-KPIC'
9252      lt_prog_compiler_static='-Bstatic'
9253      ;;
9254
9255    linux*)
9256      case $cc_basename in
9257      icc* | ecc*)
9258        lt_prog_compiler_wl='-Wl,'
9259        lt_prog_compiler_pic='-KPIC'
9260        lt_prog_compiler_static='-static'
9261        ;;
9262      pgcc* | pgf77* | pgf90* | pgf95*)
9263        # Portland Group compilers (*not* the Pentium gcc compiler,
9264        # which looks to be a dead project)
9265        lt_prog_compiler_wl='-Wl,'
9266        lt_prog_compiler_pic='-fpic'
9267        lt_prog_compiler_static='-Bstatic'
9268        ;;
9269      ccc*)
9270        lt_prog_compiler_wl='-Wl,'
9271        # All Alpha code is PIC.
9272        lt_prog_compiler_static='-non_shared'
9273        ;;
9274      esac
9275      ;;
9276
9277    osf3* | osf4* | osf5*)
9278      lt_prog_compiler_wl='-Wl,'
9279      # All OSF/1 code is PIC.
9280      lt_prog_compiler_static='-non_shared'
9281      ;;
9282
9283    solaris*)
9284      lt_prog_compiler_pic='-KPIC'
9285      lt_prog_compiler_static='-Bstatic'
9286      case $cc_basename in
9287      f77* | f90* | f95*)
9288        lt_prog_compiler_wl='-Qoption ld ';;
9289      *)
9290        lt_prog_compiler_wl='-Wl,';;
9291      esac
9292      ;;
9293
9294    sunos4*)
9295      lt_prog_compiler_wl='-Qoption ld '
9296      lt_prog_compiler_pic='-PIC'
9297      lt_prog_compiler_static='-Bstatic'
9298      ;;
9299
9300    sysv4 | sysv4.2uw2* | sysv4.3*)
9301      lt_prog_compiler_wl='-Wl,'
9302      lt_prog_compiler_pic='-KPIC'
9303      lt_prog_compiler_static='-Bstatic'
9304      ;;
9305
9306    sysv4*MP*)
9307      if test -d /usr/nec ;then
9308        lt_prog_compiler_pic='-Kconform_pic'
9309        lt_prog_compiler_static='-Bstatic'
9310      fi
9311      ;;
9312
9313    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9314      lt_prog_compiler_wl='-Wl,'
9315      lt_prog_compiler_pic='-KPIC'
9316      lt_prog_compiler_static='-Bstatic'
9317      ;;
9318
9319    unicos*)
9320      lt_prog_compiler_wl='-Wl,'
9321      lt_prog_compiler_can_build_shared=no
9322      ;;
9323
9324    uts4*)
9325      lt_prog_compiler_pic='-pic'
9326      lt_prog_compiler_static='-Bstatic'
9327      ;;
9328
9329    *)
9330      lt_prog_compiler_can_build_shared=no
9331      ;;
9332    esac
9333  fi
9334
9335echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9336echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9337
9338#
9339# Check to make sure the PIC flag actually works.
9340#
9341if test -n "$lt_prog_compiler_pic"; then
9342
9343echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9344echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9345if test "${lt_prog_compiler_pic_works+set}" = set; then
9346  echo $ECHO_N "(cached) $ECHO_C" >&6
9347else
9348  lt_prog_compiler_pic_works=no
9349  ac_outfile=conftest.$ac_objext
9350   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9351   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9352   # Insert the option either (1) after the last *FLAGS variable, or
9353   # (2) before a word containing "conftest.", or (3) at the end.
9354   # Note that $ac_compile itself does not contain backslashes and begins
9355   # with a dollar sign (not a hyphen), so the echo should work correctly.
9356   # The option is referenced via a variable to avoid confusing sed.
9357   lt_compile=`echo "$ac_compile" | $SED \
9358   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9359   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9360   -e 's:$: $lt_compiler_flag:'`
9361   (eval echo "\"\$as_me:9361: $lt_compile\"" >&5)
9362   (eval "$lt_compile" 2>conftest.err)
9363   ac_status=$?
9364   cat conftest.err >&5
9365   echo "$as_me:9365: \$? = $ac_status" >&5
9366   if (exit $ac_status) && test -s "$ac_outfile"; then
9367     # The compiler can only warn and ignore the option if not recognized
9368     # So say no if there are warnings other than the usual output.
9369     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9370     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9371     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9372       lt_prog_compiler_pic_works=yes
9373     fi
9374   fi
9375   $rm conftest*
9376
9377fi
9378echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9379echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9380
9381if test x"$lt_prog_compiler_pic_works" = xyes; then
9382    case $lt_prog_compiler_pic in
9383     "" | " "*) ;;
9384     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9385     esac
9386else
9387    lt_prog_compiler_pic=
9388     lt_prog_compiler_can_build_shared=no
9389fi
9390
9391fi
9392case $host_os in
9393  # For platforms which do not support PIC, -DPIC is meaningless:
9394  *djgpp*)
9395    lt_prog_compiler_pic=
9396    ;;
9397  *)
9398    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9399    ;;
9400esac
9401
9402#
9403# Check to make sure the static flag actually works.
9404#
9405wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9406echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9407echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9408if test "${lt_prog_compiler_static_works+set}" = set; then
9409  echo $ECHO_N "(cached) $ECHO_C" >&6
9410else
9411  lt_prog_compiler_static_works=no
9412   save_LDFLAGS="$LDFLAGS"
9413   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9414   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9415   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9416     # The linker can only warn and ignore the option if not recognized
9417     # So say no if there are warnings
9418     if test -s conftest.err; then
9419       # Append any errors to the config.log.
9420       cat conftest.err 1>&5
9421       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9422       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9423       if diff conftest.exp conftest.er2 >/dev/null; then
9424         lt_prog_compiler_static_works=yes
9425       fi
9426     else
9427       lt_prog_compiler_static_works=yes
9428     fi
9429   fi
9430   $rm conftest*
9431   LDFLAGS="$save_LDFLAGS"
9432
9433fi
9434echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9435echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9436
9437if test x"$lt_prog_compiler_static_works" = xyes; then
9438    :
9439else
9440    lt_prog_compiler_static=
9441fi
9442
9443
9444echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9445echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9446if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9447  echo $ECHO_N "(cached) $ECHO_C" >&6
9448else
9449  lt_cv_prog_compiler_c_o=no
9450   $rm -r conftest 2>/dev/null
9451   mkdir conftest
9452   cd conftest
9453   mkdir out
9454   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9455
9456   lt_compiler_flag="-o out/conftest2.$ac_objext"
9457   # Insert the option either (1) after the last *FLAGS variable, or
9458   # (2) before a word containing "conftest.", or (3) at the end.
9459   # Note that $ac_compile itself does not contain backslashes and begins
9460   # with a dollar sign (not a hyphen), so the echo should work correctly.
9461   lt_compile=`echo "$ac_compile" | $SED \
9462   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9463   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9464   -e 's:$: $lt_compiler_flag:'`
9465   (eval echo "\"\$as_me:9465: $lt_compile\"" >&5)
9466   (eval "$lt_compile" 2>out/conftest.err)
9467   ac_status=$?
9468   cat out/conftest.err >&5
9469   echo "$as_me:9469: \$? = $ac_status" >&5
9470   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9471   then
9472     # The compiler can only warn and ignore the option if not recognized
9473     # So say no if there are warnings
9474     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9475     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9476     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9477       lt_cv_prog_compiler_c_o=yes
9478     fi
9479   fi
9480   chmod u+w . 2>&5
9481   $rm conftest*
9482   # SGI C++ compiler will create directory out/ii_files/ for
9483   # template instantiation
9484   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9485   $rm out/* && rmdir out
9486   cd ..
9487   rmdir conftest
9488   $rm conftest*
9489
9490fi
9491echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9492echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9493
9494
9495hard_links="nottested"
9496if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9497  # do not overwrite the value of need_locks provided by the user
9498  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9499echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9500  hard_links=yes
9501  $rm conftest*
9502  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9503  touch conftest.a
9504  ln conftest.a conftest.b 2>&5 || hard_links=no
9505  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9506  echo "$as_me:$LINENO: result: $hard_links" >&5
9507echo "${ECHO_T}$hard_links" >&6
9508  if test "$hard_links" = no; then
9509    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9510echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9511    need_locks=warn
9512  fi
9513else
9514  need_locks=no
9515fi
9516
9517echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9518echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9519
9520  runpath_var=
9521  allow_undefined_flag=
9522  enable_shared_with_static_runtimes=no
9523  archive_cmds=
9524  archive_expsym_cmds=
9525  old_archive_From_new_cmds=
9526  old_archive_from_expsyms_cmds=
9527  export_dynamic_flag_spec=
9528  whole_archive_flag_spec=
9529  thread_safe_flag_spec=
9530  hardcode_libdir_flag_spec=
9531  hardcode_libdir_flag_spec_ld=
9532  hardcode_libdir_separator=
9533  hardcode_direct=no
9534  hardcode_minus_L=no
9535  hardcode_shlibpath_var=unsupported
9536  link_all_deplibs=unknown
9537  hardcode_automatic=no
9538  module_cmds=
9539  module_expsym_cmds=
9540  always_export_symbols=no
9541  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9542  # include_expsyms should be a list of space-separated symbols to be *always*
9543  # included in the symbol list
9544  include_expsyms=
9545  # exclude_expsyms can be an extended regexp of symbols to exclude
9546  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9547  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9548  # as well as any symbol that contains `d'.
9549  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9550  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9551  # platforms (ab)use it in PIC code, but their linkers get confused if
9552  # the symbol is explicitly referenced.  Since portable code cannot
9553  # rely on this symbol name, it's probably fine to never include it in
9554  # preloaded symbol tables.
9555  extract_expsyms_cmds=
9556  # Just being paranoid about ensuring that cc_basename is set.
9557  for cc_temp in $compiler""; do
9558  case $cc_temp in
9559    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9560    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9561    \-*) ;;
9562    *) break;;
9563  esac
9564done
9565cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9566
9567  case $host_os in
9568  cygwin* | mingw* | pw32*)
9569    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9570    # When not using gcc, we currently assume that we are using
9571    # Microsoft Visual C++.
9572    if test "$GCC" != yes; then
9573      with_gnu_ld=no
9574    fi
9575    ;;
9576  interix*)
9577    # we just hope/assume this is gcc and not c89 (= MSVC++)
9578    with_gnu_ld=yes
9579    ;;
9580  openbsd*)
9581    with_gnu_ld=no
9582    ;;
9583  esac
9584
9585  ld_shlibs=yes
9586  if test "$with_gnu_ld" = yes; then
9587    # If archive_cmds runs LD, not CC, wlarc should be empty
9588    wlarc='${wl}'
9589
9590    # Set some defaults for GNU ld with shared library support. These
9591    # are reset later if shared libraries are not supported. Putting them
9592    # here allows them to be overridden if necessary.
9593    runpath_var=LD_RUN_PATH
9594    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9595    export_dynamic_flag_spec='${wl}--export-dynamic'
9596    # ancient GNU ld didn't support --whole-archive et. al.
9597    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9598        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9599      else
9600        whole_archive_flag_spec=
9601    fi
9602    supports_anon_versioning=no
9603    case `$LD -v 2>/dev/null` in
9604      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9605      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9606      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9607      *\ 2.11.*) ;; # other 2.11 versions
9608      *) supports_anon_versioning=yes ;;
9609    esac
9610
9611    # See if GNU ld supports shared libraries.
9612    case $host_os in
9613    aix3* | aix4* | aix5*)
9614      # On AIX/PPC, the GNU linker is very broken
9615      if test "$host_cpu" != ia64; then
9616        ld_shlibs=no
9617        cat <<EOF 1>&2
9618
9619*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9620*** to be unable to reliably create shared libraries on AIX.
9621*** Therefore, libtool is disabling shared libraries support.  If you
9622*** really care for shared libraries, you may want to modify your PATH
9623*** so that a non-GNU linker is found, and then restart.
9624
9625EOF
9626      fi
9627      ;;
9628
9629    amigaos*)
9630      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)'
9631      hardcode_libdir_flag_spec='-L$libdir'
9632      hardcode_minus_L=yes
9633
9634      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9635      # that the semantics of dynamic libraries on AmigaOS, at least up
9636      # to version 4, is to share data among multiple programs linked
9637      # with the same dynamic library.  Since this doesn't match the
9638      # behavior of shared libraries on other platforms, we can't use
9639      # them.
9640      ld_shlibs=no
9641      ;;
9642
9643    beos*)
9644      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9645        allow_undefined_flag=unsupported
9646        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9647        # support --undefined.  This deserves some investigation.  FIXME
9648        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649      else
9650        ld_shlibs=no
9651      fi
9652      ;;
9653
9654    cygwin* | mingw* | pw32*)
9655      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9656      # as there is no search path for DLLs.
9657      hardcode_libdir_flag_spec='-L$libdir'
9658      allow_undefined_flag=unsupported
9659      always_export_symbols=no
9660      enable_shared_with_static_runtimes=yes
9661      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9662
9663      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9664        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9665        # If the export-symbols file already is a .def file (1st line
9666        # is EXPORTS), use it as is; otherwise, prepend...
9667        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9668          cp $export_symbols $output_objdir/$soname.def;
9669        else
9670          echo EXPORTS > $output_objdir/$soname.def;
9671          cat $export_symbols >> $output_objdir/$soname.def;
9672        fi~
9673        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9674      else
9675        ld_shlibs=no
9676      fi
9677      ;;
9678
9679    interix3*)
9680      hardcode_direct=no
9681      hardcode_shlibpath_var=no
9682      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9683      export_dynamic_flag_spec='${wl}-E'
9684      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9685      # Instead, shared libraries are loaded at an image base (0x10000000 by
9686      # default) and relocated if they conflict, which is a slow very memory
9687      # consuming and fragmenting process.  To avoid this, we pick a random,
9688      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9689      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9690      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9691      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'
9692      ;;
9693
9694    linux*)
9695      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9696        tmp_addflag=
9697        case $cc_basename,$host_cpu in
9698        pgcc*)                          # Portland Group C compiler
9699          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'
9700          tmp_addflag=' $pic_flag'
9701          ;;
9702        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9703          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'
9704          tmp_addflag=' $pic_flag -Mnomain' ;;
9705        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9706          tmp_addflag=' -i_dynamic' ;;
9707        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9708          tmp_addflag=' -i_dynamic -nofor_main' ;;
9709        ifc* | ifort*)                  # Intel Fortran compiler
9710          tmp_addflag=' -nofor_main' ;;
9711        esac
9712        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9713
9714        if test $supports_anon_versioning = yes; then
9715          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9716  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9717  $echo "local: *; };" >> $output_objdir/$libname.ver~
9718          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9719        fi
9720      else
9721        ld_shlibs=no
9722      fi
9723      ;;
9724
9725    netbsd*)
9726      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9727        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9728        wlarc=
9729      else
9730        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9732      fi
9733      ;;
9734
9735    solaris*)
9736      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9737        ld_shlibs=no
9738        cat <<EOF 1>&2
9739
9740*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9741*** create shared libraries on Solaris systems.  Therefore, libtool
9742*** is disabling shared libraries support.  We urge you to upgrade GNU
9743*** binutils to release 2.9.1 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
9747EOF
9748      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9749        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9751      else
9752        ld_shlibs=no
9753      fi
9754      ;;
9755
9756    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9757      case `$LD -v 2>&1` in
9758        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9759        ld_shlibs=no
9760        cat <<_LT_EOF 1>&2
9761
9762*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9763*** reliably create shared libraries on SCO systems.  Therefore, libtool
9764*** is disabling shared libraries support.  We urge you to upgrade GNU
9765*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9766*** your PATH or compiler configuration so that the native linker is
9767*** used, and then restart.
9768
9769_LT_EOF
9770        ;;
9771        *)
9772          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9773            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9774            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9775            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9776          else
9777            ld_shlibs=no
9778          fi
9779        ;;
9780      esac
9781      ;;
9782
9783    sunos4*)
9784      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9785      wlarc=
9786      hardcode_direct=yes
9787      hardcode_shlibpath_var=no
9788      ;;
9789
9790    *)
9791      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9792        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9794      else
9795        ld_shlibs=no
9796      fi
9797      ;;
9798    esac
9799
9800    if test "$ld_shlibs" = no; then
9801      runpath_var=
9802      hardcode_libdir_flag_spec=
9803      export_dynamic_flag_spec=
9804      whole_archive_flag_spec=
9805    fi
9806  else
9807    # PORTME fill in a description of your system's linker (not GNU ld)
9808    case $host_os in
9809    aix3*)
9810      allow_undefined_flag=unsupported
9811      always_export_symbols=yes
9812      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'
9813      # Note: this linker hardcodes the directories in LIBPATH if there
9814      # are no directories specified by -L.
9815      hardcode_minus_L=yes
9816      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9817        # Neither direct hardcoding nor static linking is supported with a
9818        # broken collect2.
9819        hardcode_direct=unsupported
9820      fi
9821      ;;
9822
9823    aix4* | aix5*)
9824      if test "$host_cpu" = ia64; then
9825        # On IA64, the linker does run time linking by default, so we don't
9826        # have to do anything special.
9827        aix_use_runtimelinking=no
9828        exp_sym_flag='-Bexport'
9829        no_entry_flag=""
9830      else
9831        # If we're using GNU nm, then we don't want the "-C" option.
9832        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9833        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9834          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'
9835        else
9836          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'
9837        fi
9838        aix_use_runtimelinking=no
9839
9840        # Test if we are trying to use run time linking or normal
9841        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9842        # need to do runtime linking.
9843        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9844          for ld_flag in $LDFLAGS; do
9845          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9846            aix_use_runtimelinking=yes
9847            break
9848          fi
9849          done
9850          ;;
9851        esac
9852
9853        exp_sym_flag='-bexport'
9854        no_entry_flag='-bnoentry'
9855      fi
9856
9857      # When large executables or shared objects are built, AIX ld can
9858      # have problems creating the table of contents.  If linking a library
9859      # or program results in "error TOC overflow" add -mminimal-toc to
9860      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9861      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9862
9863      archive_cmds=''
9864      hardcode_direct=yes
9865      hardcode_libdir_separator=':'
9866      link_all_deplibs=yes
9867
9868      if test "$GCC" = yes; then
9869        case $host_os in aix4.[012]|aix4.[012].*)
9870        # We only want to do this on AIX 4.2 and lower, the check
9871        # below for broken collect2 doesn't work under 4.3+
9872          collect2name=`${CC} -print-prog-name=collect2`
9873          if test -f "$collect2name" && \
9874           strings "$collect2name" | grep resolve_lib_name >/dev/null
9875          then
9876          # We have reworked collect2
9877          hardcode_direct=yes
9878          else
9879          # We have old collect2
9880          hardcode_direct=unsupported
9881          # It fails to find uninstalled libraries when the uninstalled
9882          # path is not listed in the libpath.  Setting hardcode_minus_L
9883          # to unsupported forces relinking
9884          hardcode_minus_L=yes
9885          hardcode_libdir_flag_spec='-L$libdir'
9886          hardcode_libdir_separator=
9887          fi
9888          ;;
9889        esac
9890        shared_flag='-shared'
9891        if test "$aix_use_runtimelinking" = yes; then
9892          shared_flag="$shared_flag "'${wl}-G'
9893        fi
9894      else
9895        # not using gcc
9896        if test "$host_cpu" = ia64; then
9897        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9898        # chokes on -Wl,-G. The following line is correct:
9899          shared_flag='-G'
9900        else
9901          if test "$aix_use_runtimelinking" = yes; then
9902            shared_flag='${wl}-G'
9903          else
9904            shared_flag='${wl}-bM:SRE'
9905          fi
9906        fi
9907      fi
9908
9909      # It seems that -bexpall does not export symbols beginning with
9910      # underscore (_), so it is better to generate a list of symbols to export.
9911      always_export_symbols=yes
9912      if test "$aix_use_runtimelinking" = yes; then
9913        # Warning - without using the other runtime loading flags (-brtl),
9914        # -berok will link without error, but may produce a broken library.
9915        allow_undefined_flag='-berok'
9916       # Determine the default libpath from the value encoded in an empty executable.
9917       cat >conftest.$ac_ext <<_ACEOF
9918/* confdefs.h.  */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h.  */
9923
9924#ifdef F77_DUMMY_MAIN
9925
9926#  ifdef __cplusplus
9927     extern "C"
9928#  endif
9929   int F77_DUMMY_MAIN() { return 1; }
9930
9931#endif
9932int
9933main ()
9934{
9935
9936  ;
9937  return 0;
9938}
9939_ACEOF
9940rm -f conftest.$ac_objext conftest$ac_exeext
9941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942  (eval $ac_link) 2>conftest.er1
9943  ac_status=$?
9944  grep -v '^ *+' conftest.er1 >conftest.err
9945  rm -f conftest.er1
9946  cat conftest.err >&5
9947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948  (exit $ac_status); } &&
9949         { ac_try='test -z "$ac_c_werror_flag"
9950                         || test ! -s conftest.err'
9951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952  (eval $ac_try) 2>&5
9953  ac_status=$?
9954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955  (exit $ac_status); }; } &&
9956         { ac_try='test -s conftest$ac_exeext'
9957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958  (eval $ac_try) 2>&5
9959  ac_status=$?
9960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961  (exit $ac_status); }; }; then
9962
9963aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9964}'`
9965# Check for a 64-bit object if we didn't find anything.
9966if 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; }
9967}'`; fi
9968else
9969  echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
9971
9972fi
9973rm -f conftest.err conftest.$ac_objext \
9974      conftest$ac_exeext conftest.$ac_ext
9975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9976
9977       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9978        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"
9979       else
9980        if test "$host_cpu" = ia64; then
9981          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9982          allow_undefined_flag="-z nodefs"
9983          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"
9984        else
9985         # Determine the default libpath from the value encoded in an empty executable.
9986         cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h.  */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h.  */
9992
9993#ifdef F77_DUMMY_MAIN
9994
9995#  ifdef __cplusplus
9996     extern "C"
9997#  endif
9998   int F77_DUMMY_MAIN() { return 1; }
9999
10000#endif
10001int
10002main ()
10003{
10004
10005  ;
10006  return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext conftest$ac_exeext
10010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011  (eval $ac_link) 2>conftest.er1
10012  ac_status=$?
10013  grep -v '^ *+' conftest.er1 >conftest.err
10014  rm -f conftest.er1
10015  cat conftest.err >&5
10016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017  (exit $ac_status); } &&
10018         { ac_try='test -z "$ac_c_werror_flag"
10019                         || test ! -s conftest.err'
10020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021  (eval $ac_try) 2>&5
10022  ac_status=$?
10023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024  (exit $ac_status); }; } &&
10025         { ac_try='test -s conftest$ac_exeext'
10026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027  (eval $ac_try) 2>&5
10028  ac_status=$?
10029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030  (exit $ac_status); }; }; then
10031
10032aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10033}'`
10034# Check for a 64-bit object if we didn't find anything.
10035if 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; }
10036}'`; fi
10037else
10038  echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041fi
10042rm -f conftest.err conftest.$ac_objext \
10043      conftest$ac_exeext conftest.$ac_ext
10044if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10045
10046         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10047          # Warning - without using the other run time loading flags,
10048          # -berok will link without error, but may produce a broken library.
10049          no_undefined_flag=' ${wl}-bernotok'
10050          allow_undefined_flag=' ${wl}-berok'
10051          # Exported symbols can be pulled into shared objects from archives
10052          whole_archive_flag_spec='$convenience'
10053          archive_cmds_need_lc=yes
10054          # This is similar to how AIX traditionally builds its shared libraries.
10055          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'
10056        fi
10057      fi
10058      ;;
10059
10060    amigaos*)
10061      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)'
10062      hardcode_libdir_flag_spec='-L$libdir'
10063      hardcode_minus_L=yes
10064      # see comment about different semantics on the GNU ld section
10065      ld_shlibs=no
10066      ;;
10067
10068    bsdi[45]*)
10069      export_dynamic_flag_spec=-rdynamic
10070      ;;
10071
10072    cygwin* | mingw* | pw32*)
10073      # When not using gcc, we currently assume that we are using
10074      # Microsoft Visual C++.
10075      # hardcode_libdir_flag_spec is actually meaningless, as there is
10076      # no search path for DLLs.
10077      hardcode_libdir_flag_spec=' '
10078      allow_undefined_flag=unsupported
10079      # Tell ltmain to make .lib files, not .a files.
10080      libext=lib
10081      # Tell ltmain to make .dll files, not .so files.
10082      shrext_cmds=".dll"
10083      # FIXME: Setting linknames here is a bad hack.
10084      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10085      # The linker will automatically build a .lib file if we build a DLL.
10086      old_archive_From_new_cmds='true'
10087      # FIXME: Should let the user specify the lib program.
10088      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10089      fix_srcfile_path='`cygpath -w "$srcfile"`'
10090      enable_shared_with_static_runtimes=yes
10091      ;;
10092
10093    darwin* | rhapsody*)
10094      case $host_os in
10095        rhapsody* | darwin1.[012])
10096         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10097         ;;
10098       *) # Darwin 1.3 on
10099         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10100           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10101         else
10102           case ${MACOSX_DEPLOYMENT_TARGET} in
10103             10.[012])
10104               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10105               ;;
10106             10.*)
10107               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10108               ;;
10109           esac
10110         fi
10111         ;;
10112      esac
10113      archive_cmds_need_lc=no
10114      hardcode_direct=no
10115      hardcode_automatic=yes
10116      hardcode_shlibpath_var=unsupported
10117      whole_archive_flag_spec=''
10118      link_all_deplibs=yes
10119    if test "$GCC" = yes ; then
10120        output_verbose_link_cmd='echo'
10121        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10122      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10123      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10124      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}'
10125      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}'
10126    else
10127      case $cc_basename in
10128        xlc*)
10129         output_verbose_link_cmd='echo'
10130         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10131         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10132          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10133         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}'
10134          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}'
10135          ;;
10136       *)
10137         ld_shlibs=no
10138          ;;
10139      esac
10140    fi
10141      ;;
10142
10143    dgux*)
10144      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145      hardcode_libdir_flag_spec='-L$libdir'
10146      hardcode_shlibpath_var=no
10147      ;;
10148
10149    freebsd1*)
10150      ld_shlibs=no
10151      ;;
10152
10153    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10154    # support.  Future versions do this automatically, but an explicit c++rt0.o
10155    # does not break anything, and helps significantly (at the cost of a little
10156    # extra space).
10157    freebsd2.2*)
10158      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10159      hardcode_libdir_flag_spec='-R$libdir'
10160      hardcode_direct=yes
10161      hardcode_shlibpath_var=no
10162      ;;
10163
10164    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10165    freebsd2*)
10166      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10167      hardcode_direct=yes
10168      hardcode_minus_L=yes
10169      hardcode_shlibpath_var=no
10170      ;;
10171
10172    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10173    freebsd* | kfreebsd*-gnu | dragonfly*)
10174      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10175      hardcode_libdir_flag_spec='-R$libdir'
10176      hardcode_direct=yes
10177      hardcode_shlibpath_var=no
10178      ;;
10179
10180    hpux9*)
10181      if test "$GCC" = yes; then
10182        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'
10183      else
10184        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'
10185      fi
10186      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10187      hardcode_libdir_separator=:
10188      hardcode_direct=yes
10189
10190      # hardcode_minus_L: Not really in the search PATH,
10191      # but as the default location of the library.
10192      hardcode_minus_L=yes
10193      export_dynamic_flag_spec='${wl}-E'
10194      ;;
10195
10196    hpux10*)
10197      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10198        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10199      else
10200        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10201      fi
10202      if test "$with_gnu_ld" = no; then
10203        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10204        hardcode_libdir_separator=:
10205
10206        hardcode_direct=yes
10207        export_dynamic_flag_spec='${wl}-E'
10208
10209        # hardcode_minus_L: Not really in the search PATH,
10210        # but as the default location of the library.
10211        hardcode_minus_L=yes
10212      fi
10213      ;;
10214
10215    hpux11*)
10216      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10217        case $host_cpu in
10218        hppa*64*)
10219          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10220          ;;
10221        ia64*)
10222          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10223          ;;
10224        *)
10225          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10226          ;;
10227        esac
10228      else
10229        case $host_cpu in
10230        hppa*64*)
10231          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10232          ;;
10233        ia64*)
10234          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10235          ;;
10236        *)
10237          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10238          ;;
10239        esac
10240      fi
10241      if test "$with_gnu_ld" = no; then
10242        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10243        hardcode_libdir_separator=:
10244
10245        case $host_cpu in
10246        hppa*64*|ia64*)
10247          hardcode_libdir_flag_spec_ld='+b $libdir'
10248          hardcode_direct=no
10249          hardcode_shlibpath_var=no
10250          ;;
10251        *)
10252          hardcode_direct=yes
10253          export_dynamic_flag_spec='${wl}-E'
10254
10255          # hardcode_minus_L: Not really in the search PATH,
10256          # but as the default location of the library.
10257          hardcode_minus_L=yes
10258          ;;
10259        esac
10260      fi
10261      ;;
10262
10263    irix5* | irix6* | nonstopux*)
10264      if test "$GCC" = yes; then
10265        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'
10266      else
10267        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'
10268        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10269      fi
10270      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10271      hardcode_libdir_separator=:
10272      link_all_deplibs=yes
10273      ;;
10274
10275    netbsd*)
10276      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10277        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10278      else
10279        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10280      fi
10281      hardcode_libdir_flag_spec='-R$libdir'
10282      hardcode_direct=yes
10283      hardcode_shlibpath_var=no
10284      ;;
10285
10286    newsos6)
10287      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10288      hardcode_direct=yes
10289      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10290      hardcode_libdir_separator=:
10291      hardcode_shlibpath_var=no
10292      ;;
10293
10294    openbsd*)
10295      hardcode_direct=yes
10296      hardcode_shlibpath_var=no
10297      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10298        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10299        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10300        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10301        export_dynamic_flag_spec='${wl}-E'
10302      else
10303       case $host_os in
10304         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10305           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10306           hardcode_libdir_flag_spec='-R$libdir'
10307           ;;
10308         *)
10309           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10310           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10311           ;;
10312       esac
10313      fi
10314      ;;
10315
10316    os2*)
10317      hardcode_libdir_flag_spec='-L$libdir'
10318      hardcode_minus_L=yes
10319      allow_undefined_flag=unsupported
10320      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'
10321      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10322      ;;
10323
10324    osf3*)
10325      if test "$GCC" = yes; then
10326        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10327        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'
10328      else
10329        allow_undefined_flag=' -expect_unresolved \*'
10330        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'
10331      fi
10332      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10333      hardcode_libdir_separator=:
10334      ;;
10335
10336    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10337      if test "$GCC" = yes; then
10338        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10339        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'
10340        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10341      else
10342        allow_undefined_flag=' -expect_unresolved \*'
10343        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'
10344        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10345        $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'
10346
10347        # Both c and cxx compiler support -rpath directly
10348        hardcode_libdir_flag_spec='-rpath $libdir'
10349      fi
10350      hardcode_libdir_separator=:
10351      ;;
10352
10353    solaris*)
10354      no_undefined_flag=' -z text'
10355      if test "$GCC" = yes; then
10356        wlarc='${wl}'
10357        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10358        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10359          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10360      else
10361        wlarc=''
10362        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10363        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10364        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10365      fi
10366      hardcode_libdir_flag_spec='-R$libdir'
10367      hardcode_shlibpath_var=no
10368      case $host_os in
10369      solaris2.[0-5] | solaris2.[0-5].*) ;;
10370      *)
10371        # The compiler driver will combine linker options so we
10372        # cannot just pass the convience library names through
10373        # without $wl, iff we do not link with $LD.
10374        # Luckily, gcc supports the same syntax we need for Sun Studio.
10375        # Supported since Solaris 2.6 (maybe 2.5.1?)
10376        case $wlarc in
10377        '')
10378          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10379        *)
10380          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' ;;
10381        esac ;;
10382      esac
10383      link_all_deplibs=yes
10384      ;;
10385
10386    sunos4*)
10387      if test "x$host_vendor" = xsequent; then
10388        # Use $CC to link under sequent, because it throws in some extra .o
10389        # files that make .init and .fini sections work.
10390        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10391      else
10392        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10393      fi
10394      hardcode_libdir_flag_spec='-L$libdir'
10395      hardcode_direct=yes
10396      hardcode_minus_L=yes
10397      hardcode_shlibpath_var=no
10398      ;;
10399
10400    sysv4)
10401      case $host_vendor in
10402        sni)
10403          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10404          hardcode_direct=yes # is this really true???
10405        ;;
10406        siemens)
10407          ## LD is ld it makes a PLAMLIB
10408          ## CC just makes a GrossModule.
10409          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10410          reload_cmds='$CC -r -o $output$reload_objs'
10411          hardcode_direct=no
10412        ;;
10413        motorola)
10414          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10415          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10416        ;;
10417      esac
10418      runpath_var='LD_RUN_PATH'
10419      hardcode_shlibpath_var=no
10420      ;;
10421
10422    sysv4.3*)
10423      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424      hardcode_shlibpath_var=no
10425      export_dynamic_flag_spec='-Bexport'
10426      ;;
10427
10428    sysv4*MP*)
10429      if test -d /usr/nec; then
10430        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10431        hardcode_shlibpath_var=no
10432        runpath_var=LD_RUN_PATH
10433        hardcode_runpath_var=yes
10434        ld_shlibs=yes
10435      fi
10436      ;;
10437
10438    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10439      no_undefined_flag='${wl}-z,text'
10440      archive_cmds_need_lc=no
10441      hardcode_shlibpath_var=no
10442      runpath_var='LD_RUN_PATH'
10443
10444      if test "$GCC" = yes; then
10445        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447      else
10448        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450      fi
10451      ;;
10452
10453    sysv5* | sco3.2v5* | sco5v6*)
10454      # Note: We can NOT use -z defs as we might desire, because we do not
10455      # link with -lc, and that would cause any symbols used from libc to
10456      # always be unresolved, which means just about no library would
10457      # ever link correctly.  If we're not using GNU ld we use -z text
10458      # though, which does catch some bad symbols but isn't as heavy-handed
10459      # as -z defs.
10460      no_undefined_flag='${wl}-z,text'
10461      allow_undefined_flag='${wl}-z,nodefs'
10462      archive_cmds_need_lc=no
10463      hardcode_shlibpath_var=no
10464      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10465      hardcode_libdir_separator=':'
10466      link_all_deplibs=yes
10467      export_dynamic_flag_spec='${wl}-Bexport'
10468      runpath_var='LD_RUN_PATH'
10469
10470      if test "$GCC" = yes; then
10471        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10472        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10473      else
10474        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10475        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10476      fi
10477      ;;
10478
10479    uts4*)
10480      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10481      hardcode_libdir_flag_spec='-L$libdir'
10482      hardcode_shlibpath_var=no
10483      ;;
10484
10485    *)
10486      ld_shlibs=no
10487      ;;
10488    esac
10489  fi
10490
10491echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10492echo "${ECHO_T}$ld_shlibs" >&6
10493test "$ld_shlibs" = no && can_build_shared=no
10494
10495#
10496# Do we need to explicitly link libc?
10497#
10498case "x$archive_cmds_need_lc" in
10499x|xyes)
10500  # Assume -lc should be added
10501  archive_cmds_need_lc=yes
10502
10503  if test "$enable_shared" = yes && test "$GCC" = yes; then
10504    case $archive_cmds in
10505    *'~'*)
10506      # FIXME: we may have to deal with multi-command sequences.
10507      ;;
10508    '$CC '*)
10509      # Test whether the compiler implicitly links with -lc since on some
10510      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10511      # to ld, don't add -lc before -lgcc.
10512      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10513echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10514      $rm conftest*
10515      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10516
10517      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10518  (eval $ac_compile) 2>&5
10519  ac_status=$?
10520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521  (exit $ac_status); } 2>conftest.err; then
10522        soname=conftest
10523        lib=conftest
10524        libobjs=conftest.$ac_objext
10525        deplibs=
10526        wl=$lt_prog_compiler_wl
10527        pic_flag=$lt_prog_compiler_pic
10528        compiler_flags=-v
10529        linker_flags=-v
10530        verstring=
10531        output_objdir=.
10532        libname=conftest
10533        lt_save_allow_undefined_flag=$allow_undefined_flag
10534        allow_undefined_flag=
10535        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10536  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10537  ac_status=$?
10538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539  (exit $ac_status); }
10540        then
10541          archive_cmds_need_lc=no
10542        else
10543          archive_cmds_need_lc=yes
10544        fi
10545        allow_undefined_flag=$lt_save_allow_undefined_flag
10546      else
10547        cat conftest.err 1>&5
10548      fi
10549      $rm conftest*
10550      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10551echo "${ECHO_T}$archive_cmds_need_lc" >&6
10552      ;;
10553    esac
10554  fi
10555  ;;
10556esac
10557
10558echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10559echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10560library_names_spec=
10561libname_spec='lib$name'
10562soname_spec=
10563shrext_cmds=".so"
10564postinstall_cmds=
10565postuninstall_cmds=
10566finish_cmds=
10567finish_eval=
10568shlibpath_var=
10569shlibpath_overrides_runpath=unknown
10570version_type=none
10571dynamic_linker="$host_os ld.so"
10572sys_lib_dlsearch_path_spec="/lib /usr/lib"
10573if test "$GCC" = yes; then
10574  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10575  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10576    # if the path contains ";" then we assume it to be the separator
10577    # otherwise default to the standard path separator (i.e. ":") - it is
10578    # assumed that no part of a normal pathname contains ";" but that should
10579    # okay in the real world where ";" in dirpaths is itself problematic.
10580    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10581  else
10582    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10583  fi
10584else
10585  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10586fi
10587need_lib_prefix=unknown
10588hardcode_into_libs=no
10589
10590# when you set need_version to no, make sure it does not cause -set_version
10591# flags to be left without arguments
10592need_version=unknown
10593
10594case $host_os in
10595aix3*)
10596  version_type=linux
10597  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10598  shlibpath_var=LIBPATH
10599
10600  # AIX 3 has no versioning support, so we append a major version to the name.
10601  soname_spec='${libname}${release}${shared_ext}$major'
10602  ;;
10603
10604aix4* | aix5*)
10605  version_type=linux
10606  need_lib_prefix=no
10607  need_version=no
10608  hardcode_into_libs=yes
10609  if test "$host_cpu" = ia64; then
10610    # AIX 5 supports IA64
10611    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10612    shlibpath_var=LD_LIBRARY_PATH
10613  else
10614    # With GCC up to 2.95.x, collect2 would create an import file
10615    # for dependence libraries.  The import file would start with
10616    # the line `#! .'.  This would cause the generated library to
10617    # depend on `.', always an invalid library.  This was fixed in
10618    # development snapshots of GCC prior to 3.0.
10619    case $host_os in
10620      aix4 | aix4.[01] | aix4.[01].*)
10621      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10622           echo ' yes '
10623           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10624        :
10625      else
10626        can_build_shared=no
10627      fi
10628      ;;
10629    esac
10630    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10631    # soname into executable. Probably we can add versioning support to
10632    # collect2, so additional links can be useful in future.
10633    if test "$aix_use_runtimelinking" = yes; then
10634      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10635      # instead of lib<name>.a to let people know that these are not
10636      # typical AIX shared libraries.
10637      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638    else
10639      # We preserve .a as extension for shared libraries through AIX4.2
10640      # and later when we are not doing run time linking.
10641      library_names_spec='${libname}${release}.a $libname.a'
10642      soname_spec='${libname}${release}${shared_ext}$major'
10643    fi
10644    shlibpath_var=LIBPATH
10645  fi
10646  ;;
10647
10648amigaos*)
10649  library_names_spec='$libname.ixlibrary $libname.a'
10650  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10651  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'
10652  ;;
10653
10654beos*)
10655  library_names_spec='${libname}${shared_ext}'
10656  dynamic_linker="$host_os ld.so"
10657  shlibpath_var=LIBRARY_PATH
10658  ;;
10659
10660bsdi[45]*)
10661  version_type=linux
10662  need_version=no
10663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664  soname_spec='${libname}${release}${shared_ext}$major'
10665  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10666  shlibpath_var=LD_LIBRARY_PATH
10667  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10668  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10669  # the default ld.so.conf also contains /usr/contrib/lib and
10670  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10671  # libtool to hard-code these into programs
10672  ;;
10673
10674cygwin* | mingw* | pw32*)
10675  version_type=windows
10676  shrext_cmds=".dll"
10677  need_version=no
10678  need_lib_prefix=no
10679
10680  case $GCC,$host_os in
10681  yes,cygwin* | yes,mingw* | yes,pw32*)
10682    library_names_spec='$libname.dll.a'
10683    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10684    postinstall_cmds='base_file=`basename \${file}`~
10685      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10686      dldir=$destdir/`dirname \$dlpath`~
10687      test -d \$dldir || mkdir -p \$dldir~
10688      $install_prog $dir/$dlname \$dldir/$dlname~
10689      chmod a+x \$dldir/$dlname'
10690    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10691      dlpath=$dir/\$dldll~
10692       $rm \$dlpath'
10693    shlibpath_overrides_runpath=yes
10694
10695    case $host_os in
10696    cygwin*)
10697      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10698      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10699      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10700      ;;
10701    mingw*)
10702      # MinGW DLLs use traditional 'lib' prefix
10703      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10704      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10705      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10706        # It is most probably a Windows format PATH printed by
10707        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10708        # path with ; separators, and with drive letters. We can handle the
10709        # drive letters (cygwin fileutils understands them), so leave them,
10710        # especially as we might pass files found there to a mingw objdump,
10711        # which wouldn't understand a cygwinified path. Ahh.
10712        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10713      else
10714        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10715      fi
10716      ;;
10717    pw32*)
10718      # pw32 DLLs use 'pw' prefix rather than 'lib'
10719      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10720      ;;
10721    esac
10722    ;;
10723
10724  *)
10725    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10726    ;;
10727  esac
10728  dynamic_linker='Win32 ld.exe'
10729  # FIXME: first we should search . and the directory the executable is in
10730  shlibpath_var=PATH
10731  ;;
10732
10733darwin* | rhapsody*)
10734  dynamic_linker="$host_os dyld"
10735  version_type=darwin
10736  need_lib_prefix=no
10737  need_version=no
10738  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10739  soname_spec='${libname}${release}${major}$shared_ext'
10740  shlibpath_overrides_runpath=yes
10741  shlibpath_var=DYLD_LIBRARY_PATH
10742  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10743  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10744  if test "$GCC" = yes; then
10745    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"`
10746  else
10747    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10748  fi
10749  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10750  ;;
10751
10752dgux*)
10753  version_type=linux
10754  need_lib_prefix=no
10755  need_version=no
10756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10757  soname_spec='${libname}${release}${shared_ext}$major'
10758  shlibpath_var=LD_LIBRARY_PATH
10759  ;;
10760
10761freebsd1*)
10762  dynamic_linker=no
10763  ;;
10764
10765kfreebsd*-gnu)
10766  version_type=linux
10767  need_lib_prefix=no
10768  need_version=no
10769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10770  soname_spec='${libname}${release}${shared_ext}$major'
10771  shlibpath_var=LD_LIBRARY_PATH
10772  shlibpath_overrides_runpath=no
10773  hardcode_into_libs=yes
10774  dynamic_linker='GNU ld.so'
10775  ;;
10776
10777freebsd* | dragonfly*)
10778  # DragonFly does not have aout.  When/if they implement a new
10779  # versioning mechanism, adjust this.
10780  if test -x /usr/bin/objformat; then
10781    objformat=`/usr/bin/objformat`
10782  else
10783    case $host_os in
10784    freebsd[123]*) objformat=aout ;;
10785    *) objformat=elf ;;
10786    esac
10787  fi