source: ThirdParty/Mumps/stable/BSP/configure @ 1065

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

rerun autotools after COIN_HAS_MUMPS changed

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