source: ThirdParty/Mumps/stable/1.1/configure @ 1161

Last change on this file since 1161 was 1161, checked in by stefan, 12 years ago

synchronize with trunk rev. 1160

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