source: ThirdParty/Mumps/trunk/configure @ 1411

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

revert my recent changes related to BSPsplit after copying them into branches

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