source: ThirdParty/Mumps/stable/1.0/configure @ 972

Last change on this file since 972 was 972, checked in by andreasw, 12 years ago

reran autotools

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