source: ThirdParty/Mumps/trunk/configure @ 902

Last change on this file since 902 was 902, checked in by andreasw, 14 years ago

reran autotools with latest updates (for Intel icl compiler)

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