source: ThirdParty/Mumps/trunk/configure @ 445

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

reran autotools

File size: 738.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.0trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMumps'
431PACKAGE_TARNAME='thirdpartymumps'
432PACKAGE_VERSION='1.0trunk'
433PACKAGE_STRING='ThirdPartyMumps 1.0trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="MUMPS/src/dmumps_part1.F"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS MY_DEFS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS MUMPS_INCFLAGS COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE COIN_BUILD_MUMPS_TRUE COIN_BUILD_MUMPS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE MUMPSDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyMumps 1.0trunk to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyMumps 1.0trunk:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-mumps compile this project (Mumps) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS. Set to mingw to use gcc/g++/ld with
1077                          -mno-cygwin. Set to msvc to use cl/link. Default
1078                          when mentioned: mingw. Default when not mentioned:
1079                          disabled.
1080  --enable-static[=PKGS]
1081                          build static libraries [default=no]
1082  --disable-dependency-tracking  speeds up one-time build
1083  --enable-dependency-tracking   do not reject slow dependency extractors
1084  --enable-maintainer-mode  enable make rules and dependencies not useful
1085                          (and sometimes confusing) to the casual installer
1086  --enable-shared[=PKGS]
1087                          build shared libraries [default=yes]
1088  --enable-fast-install[=PKGS]
1089                          optimize for fast installation [default=yes]
1090  --disable-libtool-lock  avoid locking (might break parallel builds)
1091
1092Optional Packages:
1093  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1094  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1095  --with-mumps-verbosity specify the debug verbosity level for project Mumps
1096  --with-mumps-checklevel specify the sanity check level for project Mumps
1097  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1098  --with-pic              try to use only PIC/non-PIC objects [default=use
1099                          both]
1100  --with-tags[=TAGS]
1101                          include additional configurations [automatic]
1102  --with-mumps-dir        specify directory where MUMPS is installed
1103
1104Some influential environment variables:
1105  CDEFS       Additional -D flags to be used when compiling C code.
1106  ADD_CFLAGS  Additional C compiler options
1107  DBG_CFLAGS  Debug C compiler options
1108  OPT_CFLAGS  Optimize C compiler options
1109  CC          C compiler command
1110  CFLAGS      C compiler flags
1111  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1112              nonstandard directory <lib dir>
1113  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114              headers in a nonstandard directory <include dir>
1115  MPICC       C MPI Compiler
1116  ADD_FFLAGS  Additional Fortran compiler options
1117  DBG_FFLAGS  Debug Fortran compiler options
1118  OPT_FFLAGS  Optimize Fortran compiler options
1119  F77         Fortran 77 compiler command
1120  FFLAGS      Fortran 77 compiler flags
1121  MPIF77      Fortran MPI Compiler
1122  CPP         C preprocessor
1123  CXX         C++ compiler command
1124  CXXFLAGS    C++ compiler flags
1125  CXXCPP      C++ preprocessor
1126
1127Use these variables to override the choices made by `configure' or to help
1128it to find libraries and programs with nonstandard names/locations.
1129
1130Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1131_ACEOF
1132fi
1133
1134if test "$ac_init_help" = "recursive"; then
1135  # If there are subdirs, report their specific --help.
1136  ac_popdir=`pwd`
1137  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1138    test -d $ac_dir || continue
1139    ac_builddir=.
1140
1141if test "$ac_dir" != .; then
1142  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1143  # A "../" for each directory in $ac_dir_suffix.
1144  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1145else
1146  ac_dir_suffix= ac_top_builddir=
1147fi
1148
1149case $srcdir in
1150  .)  # No --srcdir option.  We are building in place.
1151    ac_srcdir=.
1152    if test -z "$ac_top_builddir"; then
1153       ac_top_srcdir=.
1154    else
1155       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1156    fi ;;
1157  [\\/]* | ?:[\\/]* )  # Absolute path.
1158    ac_srcdir=$srcdir$ac_dir_suffix;
1159    ac_top_srcdir=$srcdir ;;
1160  *) # Relative path.
1161    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1162    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1163esac
1164
1165# Do not use `cd foo && pwd` to compute absolute paths, because
1166# the directories may not exist.
1167case `pwd` in
1168.) ac_abs_builddir="$ac_dir";;
1169*)
1170  case "$ac_dir" in
1171  .) ac_abs_builddir=`pwd`;;
1172  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1173  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1174  esac;;
1175esac
1176case $ac_abs_builddir in
1177.) ac_abs_top_builddir=${ac_top_builddir}.;;
1178*)
1179  case ${ac_top_builddir}. in
1180  .) ac_abs_top_builddir=$ac_abs_builddir;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1182  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_srcdir=$ac_srcdir;;
1187*)
1188  case $ac_srcdir in
1189  .) ac_abs_srcdir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1191  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_top_srcdir=$ac_top_srcdir;;
1196*)
1197  case $ac_top_srcdir in
1198  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1200  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1201  esac;;
1202esac
1203
1204    cd $ac_dir
1205    # Check for guested configure; otherwise get Cygnus style configure.
1206    if test -f $ac_srcdir/configure.gnu; then
1207      echo
1208      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1209    elif test -f $ac_srcdir/configure; then
1210      echo
1211      $SHELL $ac_srcdir/configure  --help=recursive
1212    elif test -f $ac_srcdir/configure.ac ||
1213           test -f $ac_srcdir/configure.in; then
1214      echo
1215      $ac_configure --help
1216    else
1217      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1218    fi
1219    cd $ac_popdir
1220  done
1221fi
1222
1223test -n "$ac_init_help" && exit 0
1224if $ac_init_version; then
1225  cat <<\_ACEOF
1226ThirdPartyMumps configure 1.0trunk
1227generated by GNU Autoconf 2.59
1228
1229Copyright (C) 2003 Free Software Foundation, Inc.
1230This configure script is free software; the Free Software Foundation
1231gives unlimited permission to copy, distribute and modify it.
1232
1233
1234Copyright 2007 International Business Machines and others.
1235All Rights Reserved.
1236This file is part of the open source package Coin which is distributed
1237under the Common Public License.
1238_ACEOF
1239  exit 0
1240fi
1241exec 5>config.log
1242cat >&5 <<_ACEOF
1243This file contains any messages produced by compilers while
1244running configure, to aid debugging if configure makes a mistake.
1245
1246It was created by ThirdPartyMumps $as_me 1.0trunk, which was
1247generated by GNU Autoconf 2.59.  Invocation command line was
1248
1249  $ $0 $@
1250
1251_ACEOF
1252{
1253cat <<_ASUNAME
1254## --------- ##
1255## Platform. ##
1256## --------- ##
1257
1258hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1259uname -m = `(uname -m) 2>/dev/null || echo unknown`
1260uname -r = `(uname -r) 2>/dev/null || echo unknown`
1261uname -s = `(uname -s) 2>/dev/null || echo unknown`
1262uname -v = `(uname -v) 2>/dev/null || echo unknown`
1263
1264/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1265/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1266
1267/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1268/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1269/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1270hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1271/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1272/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1273/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1274
1275_ASUNAME
1276
1277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1278for as_dir in $PATH
1279do
1280  IFS=$as_save_IFS
1281  test -z "$as_dir" && as_dir=.
1282  echo "PATH: $as_dir"
1283done
1284
1285} >&5
1286
1287cat >&5 <<_ACEOF
1288
1289
1290## ----------- ##
1291## Core tests. ##
1292## ----------- ##
1293
1294_ACEOF
1295
1296
1297# Keep a trace of the command line.
1298# Strip out --no-create and --no-recursion so they do not pile up.
1299# Strip out --silent because we don't want to record it for future runs.
1300# Also quote any args containing shell meta-characters.
1301# Make two passes to allow for proper duplicate-argument suppression.
1302ac_configure_args=
1303ac_configure_args0=
1304ac_configure_args1=
1305ac_sep=
1306ac_must_keep_next=false
1307for ac_pass in 1 2
1308do
1309  for ac_arg
1310  do
1311    case $ac_arg in
1312    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1313    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314    | -silent | --silent | --silen | --sile | --sil)
1315      continue ;;
1316    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1317      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1318    esac
1319    case $ac_pass in
1320    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1321    2)
1322      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1323      if test $ac_must_keep_next = true; then
1324        ac_must_keep_next=false # Got value, back to normal.
1325      else
1326        case $ac_arg in
1327          *=* | --config-cache | -C | -disable-* | --disable-* \
1328          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1329          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1330          | -with-* | --with-* | -without-* | --without-* | --x)
1331            case "$ac_configure_args0 " in
1332              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1333            esac
1334            ;;
1335          -* ) ac_must_keep_next=true ;;
1336        esac
1337      fi
1338      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1339      # Get rid of the leading space.
1340      ac_sep=" "
1341      ;;
1342    esac
1343  done
1344done
1345$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1346$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1347
1348# When interrupted or exit'd, cleanup temporary files, and complete
1349# config.log.  We remove comments because anyway the quotes in there
1350# would cause problems or look ugly.
1351# WARNING: Be sure not to use single quotes in there, as some shells,
1352# such as our DU 5.0 friend, will then `close' the trap.
1353trap 'exit_status=$?
1354  # Save into config.log some information that might help in debugging.
1355  {
1356    echo
1357
1358    cat <<\_ASBOX
1359## ---------------- ##
1360## Cache variables. ##
1361## ---------------- ##
1362_ASBOX
1363    echo
1364    # The following way of writing the cache mishandles newlines in values,
1365{
1366  (set) 2>&1 |
1367    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1368    *ac_space=\ *)
1369      sed -n \
1370        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1371          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1372      ;;
1373    *)
1374      sed -n \
1375        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1376      ;;
1377    esac;
1378}
1379    echo
1380
1381    cat <<\_ASBOX
1382## ----------------- ##
1383## Output variables. ##
1384## ----------------- ##
1385_ASBOX
1386    echo
1387    for ac_var in $ac_subst_vars
1388    do
1389      eval ac_val=$`echo $ac_var`
1390      echo "$ac_var='"'"'$ac_val'"'"'"
1391    done | sort
1392    echo
1393
1394    if test -n "$ac_subst_files"; then
1395      cat <<\_ASBOX
1396## ------------- ##
1397## Output files. ##
1398## ------------- ##
1399_ASBOX
1400      echo
1401      for ac_var in $ac_subst_files
1402      do
1403        eval ac_val=$`echo $ac_var`
1404        echo "$ac_var='"'"'$ac_val'"'"'"
1405      done | sort
1406      echo
1407    fi
1408
1409    if test -s confdefs.h; then
1410      cat <<\_ASBOX
1411## ----------- ##
1412## confdefs.h. ##
1413## ----------- ##
1414_ASBOX
1415      echo
1416      sed "/^$/d" confdefs.h | sort
1417      echo
1418    fi
1419    test "$ac_signal" != 0 &&
1420      echo "$as_me: caught signal $ac_signal"
1421    echo "$as_me: exit $exit_status"
1422  } >&5
1423  rm -f core *.core &&
1424  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1425    exit $exit_status
1426     ' 0
1427for ac_signal in 1 2 13 15; do
1428  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1429done
1430ac_signal=0
1431
1432# confdefs.h avoids OS command line length limits that DEFS can exceed.
1433rm -rf conftest* confdefs.h
1434# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1435echo >confdefs.h
1436
1437# Predefined preprocessor variables.
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_NAME "$PACKAGE_NAME"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_VERSION "$PACKAGE_VERSION"
1451_ACEOF
1452
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_STRING "$PACKAGE_STRING"
1456_ACEOF
1457
1458
1459cat >>confdefs.h <<_ACEOF
1460#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1461_ACEOF
1462
1463
1464# Let the site file select an alternate cache file if it wants to.
1465# Prefer explicitly selected file to automatically selected ones.
1466if test -z "$CONFIG_SITE"; then
1467  if test "x$prefix" != xNONE; then
1468    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1469  else
1470    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1471  fi
1472fi
1473for ac_site_file in $CONFIG_SITE; do
1474  if test -r "$ac_site_file"; then
1475    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1476echo "$as_me: loading site script $ac_site_file" >&6;}
1477    sed 's/^/| /' "$ac_site_file" >&5
1478    . "$ac_site_file"
1479  fi
1480done
1481
1482if test -r "$cache_file"; then
1483  # Some versions of bash will fail to source /dev/null (special
1484  # files actually), so we avoid doing that.
1485  if test -f "$cache_file"; then
1486    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1487echo "$as_me: loading cache $cache_file" >&6;}
1488    case $cache_file in
1489      [\\/]* | ?:[\\/]* ) . $cache_file;;
1490      *)                      . ./$cache_file;;
1491    esac
1492  fi
1493else
1494  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1495echo "$as_me: creating cache $cache_file" >&6;}
1496  >$cache_file
1497fi
1498
1499# Check that the precious variables saved in the cache have kept the same
1500# value.
1501ac_cache_corrupted=false
1502for ac_var in `(set) 2>&1 |
1503               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1504  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1505  eval ac_new_set=\$ac_env_${ac_var}_set
1506  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1507  eval ac_new_val="\$ac_env_${ac_var}_value"
1508  case $ac_old_set,$ac_new_set in
1509    set,)
1510      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1511echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1512      ac_cache_corrupted=: ;;
1513    ,set)
1514      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1515echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1516      ac_cache_corrupted=: ;;
1517    ,);;
1518    *)
1519      if test "x$ac_old_val" != "x$ac_new_val"; then
1520        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1521echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1522        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1523echo "$as_me:   former value:  $ac_old_val" >&2;}
1524        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1525echo "$as_me:   current value: $ac_new_val" >&2;}
1526        ac_cache_corrupted=:
1527      fi;;
1528  esac
1529  # Pass precious variables to config.status.
1530  if test "$ac_new_set" = set; then
1531    case $ac_new_val in
1532    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1533      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1534    *) ac_arg=$ac_var=$ac_new_val ;;
1535    esac
1536    case " $ac_configure_args " in
1537      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1538      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1539    esac
1540  fi
1541done
1542if $ac_cache_corrupted; then
1543  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1544echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1545  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1546echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1547   { (exit 1); exit 1; }; }
1548fi
1549
1550ac_ext=c
1551ac_cpp='$CPP $CPPFLAGS'
1552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1554ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585# List one file in the package so that the configure script can test
1586# whether the package is actually there
1587
1588
1589# Where should everything be installed by default?  Here, we want it
1590# to be installed directly in 'bin', 'lib', 'include' subdirectories
1591# of the directory where configure is run.  The default would be
1592# /usr/local.
1593
1594
1595# Initialize the ADDLIBS variable
1596ADDLIBS="-lm $LIBS"
1597
1598
1599# Initialize the FADDLIBS variable (which is to be used with a fortran
1600# compiler and will not include FLIBS)
1601FADDLIBS="$LIBS"
1602
1603
1604# A useful makefile conditional that is always false
1605
1606
1607if false; then
1608  ALWAYS_FALSE_TRUE=
1609  ALWAYS_FALSE_FALSE='#'
1610else
1611  ALWAYS_FALSE_TRUE='#'
1612  ALWAYS_FALSE_FALSE=
1613fi
1614
1615
1616# We set the following variable so that we know later in AC_COIN_FINALIZE
1617# that we are in a project main directory
1618coin_projectdir=yes
1619
1620
1621#############################################################################
1622#                         Standard build tool stuff                         #
1623#############################################################################
1624
1625# Get the system type
1626ac_aux_dir=
1627for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1628  if test -f $ac_dir/install-sh; then
1629    ac_aux_dir=$ac_dir
1630    ac_install_sh="$ac_aux_dir/install-sh -c"
1631    break
1632  elif test -f $ac_dir/install.sh; then
1633    ac_aux_dir=$ac_dir
1634    ac_install_sh="$ac_aux_dir/install.sh -c"
1635    break
1636  elif test -f $ac_dir/shtool; then
1637    ac_aux_dir=$ac_dir
1638    ac_install_sh="$ac_aux_dir/shtool install -c"
1639    break
1640  fi
1641done
1642if test -z "$ac_aux_dir"; then
1643  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1644echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1645   { (exit 1); exit 1; }; }
1646fi
1647ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1648ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1649ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1650
1651# Make sure we can run config.sub.
1652$ac_config_sub sun4 >/dev/null 2>&1 ||
1653  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1654echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1655   { (exit 1); exit 1; }; }
1656
1657echo "$as_me:$LINENO: checking build system type" >&5
1658echo $ECHO_N "checking build system type... $ECHO_C" >&6
1659if test "${ac_cv_build+set}" = set; then
1660  echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662  ac_cv_build_alias=$build_alias
1663test -z "$ac_cv_build_alias" &&
1664  ac_cv_build_alias=`$ac_config_guess`
1665test -z "$ac_cv_build_alias" &&
1666  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1667echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1668   { (exit 1); exit 1; }; }
1669ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1670  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1671echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1672   { (exit 1); exit 1; }; }
1673
1674fi
1675echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1676echo "${ECHO_T}$ac_cv_build" >&6
1677build=$ac_cv_build
1678build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681
1682
1683
1684# Check if user wants to produce debugging code
1685
1686echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1687echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1688
1689# Check whether --enable-debug or --disable-debug was given.
1690if test "${enable_debug+set}" = set; then
1691  enableval="$enable_debug"
1692  case "${enableval}" in
1693   yes) coin_debug_compile=true
1694        if test "${enable_shared+set}" = set; then :; else
1695          enable_shared=no
1696        fi
1697        ;;
1698   no)  coin_debug_compile=false
1699        ;;
1700   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1701echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1702   { (exit 1); exit 1; }; }
1703        ;;
1704esac
1705else
1706  coin_debug_compile=false
1707fi;
1708
1709# Check whether --enable-debug-mumps or --disable-debug-mumps was given.
1710if test "${enable_debug_mumps+set}" = set; then
1711  enableval="$enable_debug_mumps"
1712  case "${enableval}" in
1713    yes) coin_debug_compile=true
1714         enable_shared=no
1715         ;;
1716    no)  coin_debug_compile=false
1717         ;;
1718    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5
1719echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;}
1720   { (exit 1); exit 1; }; }
1721         ;;
1722 esac
1723else
1724  :
1725fi;
1726
1727 # m4_ifvaln([Mumps],
1728
1729if test $coin_debug_compile = true; then
1730  echo "$as_me:$LINENO: result: yes" >&5
1731echo "${ECHO_T}yes" >&6
1732else
1733  echo "$as_me:$LINENO: result: no" >&5
1734echo "${ECHO_T}no" >&6
1735fi
1736
1737
1738# Check whether --with-mumps-verbosity or --without-mumps-verbosity was given.
1739if test "${with_mumps_verbosity+set}" = set; then
1740  withval="$with_mumps_verbosity"
1741  if test "$withval" = yes; then
1742                withval=1
1743              fi
1744              coin_mumps_verbosity=$withval
1745else
1746  coin_mumps_verbosity=0
1747fi;
1748
1749cat >>confdefs.h <<_ACEOF
1750#define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity
1751_ACEOF
1752
1753
1754
1755# Check whether --with-mumps-checklevel or --without-mumps-checklevel was given.
1756if test "${with_mumps_checklevel+set}" = set; then
1757  withval="$with_mumps_checklevel"
1758  if test "$withval" = yes; then
1759                withval=1
1760              fi
1761              coin_mumps_checklevel=$withval
1762else
1763  coin_mumps_checklevel=0
1764fi;
1765
1766cat >>confdefs.h <<_ACEOF
1767#define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel
1768_ACEOF
1769
1770
1771# We use the following variable to have a string with the upper case
1772# version of the project name
1773COIN_PRJCT=MUMPS
1774
1775
1776 # m4_ifvaln([Mumps],
1777
1778
1779
1780# Get the name of the C compiler
1781case $build in
1782  *-mingw*)
1783    if test "${LD+set}" = set; then :; else
1784      LD=link
1785    fi
1786    ;;
1787 esac
1788 case $enable_doscompile in
1789   msvc)
1790     if test "x${LD+set}" = xset; then :; else
1791       LD=link
1792     fi
1793     ;;
1794 esac
1795
1796
1797 # Check whether --enable-doscompile or --disable-doscompile was given.
1798if test "${enable_doscompile+set}" = set; then
1799  enableval="$enable_doscompile"
1800  if test "$enable_doscompile" != no; then
1801     case $build in
1802       *-cygwin*) ;;
1803       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1804echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1805   { (exit 1); exit 1; }; } ;;
1806     esac
1807   fi
1808else
1809  enable_doscompile=no
1810fi;
1811 case "$enable_doscompile" in
1812   msvc|mingw|no) ;;
1813   yes) enable_doscompile=mingw ;;
1814   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1815                    Try configure --help=recursive." >&5
1816echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1817                    Try configure --help=recursive." >&2;}
1818   { (exit 1); exit 1; }; }
1819      ;;
1820  esac
1821  if test "$enable_doscompile" != no ; then
1822    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1823echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1824  fi
1825
1826
1827
1828
1829ac_ext=c
1830ac_cpp='$CPP $CPPFLAGS'
1831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833ac_compiler_gnu=$ac_cv_c_compiler_gnu
1834
1835
1836# For consistency, we set the C compiler to the same value of the C++
1837# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1838if test x"$CXX" != x; then
1839  case "$CXX" in
1840    cl* | */cl* | CL* | */CL*)
1841      if test x"$CC" = x; then
1842        CC="$CXX"
1843        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1844echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1845      fi
1846      ;;
1847  esac
1848fi
1849
1850
1851
1852
1853
1854
1855coin_has_cc=yes
1856
1857save_cflags="$CFLAGS"
1858# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1859# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1860# is likely to be a non-functional shell. But many installations will have
1861# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1862case $build in
1863  *-cygwin* | *-mingw*)
1864             if test "$enable_doscompile" = msvc ; then
1865               comps="cl"
1866             else
1867               comps="gcc cl"
1868             fi ;;
1869  sparc-sun-solaris*)
1870             comps="cc xlc gcc pgcc icc" ;;
1871  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1872  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1873esac
1874
1875# We delete the cached value, since the test might not have been
1876# performed with our choice of compilers earlier
1877$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1878# AC_MSG_NOTICE([C compiler candidates: $comps])
1879ac_ext=c
1880ac_cpp='$CPP $CPPFLAGS'
1881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1883ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884if test -n "$ac_tool_prefix"; then
1885  for ac_prog in $comps
1886  do
1887    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1889echo "$as_me:$LINENO: checking for $ac_word" >&5
1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891if test "${ac_cv_prog_CC+set}" = set; then
1892  echo $ECHO_N "(cached) $ECHO_C" >&6
1893else
1894  if test -n "$CC"; then
1895  ac_cv_prog_CC="$CC" # Let the user override the test.
1896else
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900  IFS=$as_save_IFS
1901  test -z "$as_dir" && as_dir=.
1902  for ac_exec_ext in '' $ac_executable_extensions; do
1903  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1905    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906    break 2
1907  fi
1908done
1909done
1910
1911fi
1912fi
1913CC=$ac_cv_prog_CC
1914if test -n "$CC"; then
1915  echo "$as_me:$LINENO: result: $CC" >&5
1916echo "${ECHO_T}$CC" >&6
1917else
1918  echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
1920fi
1921
1922    test -n "$CC" && break
1923  done
1924fi
1925if test -z "$CC"; then
1926  ac_ct_CC=$CC
1927  for ac_prog in $comps
1928do
1929  # Extract the first word of "$ac_prog", so it can be a program name with args.
1930set dummy $ac_prog; ac_word=$2
1931echo "$as_me:$LINENO: checking for $ac_word" >&5
1932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1934  echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936  if test -n "$ac_ct_CC"; then
1937  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1938else
1939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940for as_dir in $PATH
1941do
1942  IFS=$as_save_IFS
1943  test -z "$as_dir" && as_dir=.
1944  for ac_exec_ext in '' $ac_executable_extensions; do
1945  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946    ac_cv_prog_ac_ct_CC="$ac_prog"
1947    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948    break 2
1949  fi
1950done
1951done
1952
1953fi
1954fi
1955ac_ct_CC=$ac_cv_prog_ac_ct_CC
1956if test -n "$ac_ct_CC"; then
1957  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1958echo "${ECHO_T}$ac_ct_CC" >&6
1959else
1960  echo "$as_me:$LINENO: result: no" >&5
1961echo "${ECHO_T}no" >&6
1962fi
1963
1964  test -n "$ac_ct_CC" && break
1965done
1966
1967  CC=$ac_ct_CC
1968fi
1969
1970
1971test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1972See \`config.log' for more details." >&5
1973echo "$as_me: error: no acceptable C compiler found in \$PATH
1974See \`config.log' for more details." >&2;}
1975   { (exit 1); exit 1; }; }
1976
1977# Provide some information about the compiler.
1978echo "$as_me:$LINENO:" \
1979     "checking for C compiler version" >&5
1980ac_compiler=`set X $ac_compile; echo $2`
1981{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1982  (eval $ac_compiler --version </dev/null >&5) 2>&5
1983  ac_status=$?
1984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985  (exit $ac_status); }
1986{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1987  (eval $ac_compiler -v </dev/null >&5) 2>&5
1988  ac_status=$?
1989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990  (exit $ac_status); }
1991{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1992  (eval $ac_compiler -V </dev/null >&5) 2>&5
1993  ac_status=$?
1994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995  (exit $ac_status); }
1996
1997cat >conftest.$ac_ext <<_ACEOF
1998/* confdefs.h.  */
1999_ACEOF
2000cat confdefs.h >>conftest.$ac_ext
2001cat >>conftest.$ac_ext <<_ACEOF
2002/* end confdefs.h.  */
2003
2004int
2005main ()
2006{
2007
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012ac_clean_files_save=$ac_clean_files
2013ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014# Try to create an executable without -o first, disregard a.out.
2015# It will help us diagnose broken compilers, and finding out an intuition
2016# of exeext.
2017echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2018echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2019ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021  (eval $ac_link_default) 2>&5
2022  ac_status=$?
2023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024  (exit $ac_status); }; then
2025  # Find the output, starting from the most likely.  This scheme is
2026# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027# resort.
2028
2029# Be careful to initialize this variable, since it used to be cached.
2030# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031ac_cv_exeext=
2032# b.out is created by i960 compilers.
2033for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2034do
2035  test -f "$ac_file" || continue
2036  case $ac_file in
2037    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2038        ;;
2039    conftest.$ac_ext )
2040        # This is the source file.
2041        ;;
2042    [ab].out )
2043        # We found the default executable, but exeext='' is most
2044        # certainly right.
2045        break;;
2046    *.* )
2047        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048        # FIXME: I believe we export ac_cv_exeext for Libtool,
2049        # but it would be cool to find out if it's true.  Does anybody
2050        # maintain Libtool? --akim.
2051        export ac_cv_exeext
2052        break;;
2053    * )
2054        break;;
2055  esac
2056done
2057else
2058  echo "$as_me: failed program was:" >&5
2059sed 's/^/| /' conftest.$ac_ext >&5
2060
2061{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2062See \`config.log' for more details." >&5
2063echo "$as_me: error: C compiler cannot create executables
2064See \`config.log' for more details." >&2;}
2065   { (exit 77); exit 77; }; }
2066fi
2067
2068ac_exeext=$ac_cv_exeext
2069echo "$as_me:$LINENO: result: $ac_file" >&5
2070echo "${ECHO_T}$ac_file" >&6
2071
2072# Check the compiler produces executables we can run.  If not, either
2073# the compiler is broken, or we cross compile.
2074echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077# If not cross compiling, check that we can run a simple program.
2078if test "$cross_compiling" != yes; then
2079  if { ac_try='./$ac_file'
2080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081  (eval $ac_try) 2>&5
2082  ac_status=$?
2083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084  (exit $ac_status); }; }; then
2085    cross_compiling=no
2086  else
2087    if test "$cross_compiling" = maybe; then
2088        cross_compiling=yes
2089    else
2090        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091If you meant to cross compile, use \`--host'.
2092See \`config.log' for more details." >&5
2093echo "$as_me: error: cannot run C compiled programs.
2094If you meant to cross compile, use \`--host'.
2095See \`config.log' for more details." >&2;}
2096   { (exit 1); exit 1; }; }
2097    fi
2098  fi
2099fi
2100echo "$as_me:$LINENO: result: yes" >&5
2101echo "${ECHO_T}yes" >&6
2102
2103rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104ac_clean_files=$ac_clean_files_save
2105# Check the compiler produces executables we can run.  If not, either
2106# the compiler is broken, or we cross compile.
2107echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110echo "${ECHO_T}$cross_compiling" >&6
2111
2112echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115  (eval $ac_link) 2>&5
2116  ac_status=$?
2117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118  (exit $ac_status); }; then
2119  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2121# work properly (i.e., refer to `conftest.exe'), while it won't with
2122# `rm'.
2123for ac_file in conftest.exe conftest conftest.*; do
2124  test -f "$ac_file" || continue
2125  case $ac_file in
2126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128          export ac_cv_exeext
2129          break;;
2130    * ) break;;
2131  esac
2132done
2133else
2134  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135See \`config.log' for more details." >&5
2136echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137See \`config.log' for more details." >&2;}
2138   { (exit 1); exit 1; }; }
2139fi
2140
2141rm -f conftest$ac_cv_exeext
2142echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143echo "${ECHO_T}$ac_cv_exeext" >&6
2144
2145rm -f conftest.$ac_ext
2146EXEEXT=$ac_cv_exeext
2147ac_exeext=$EXEEXT
2148echo "$as_me:$LINENO: checking for suffix of object files" >&5
2149echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2150if test "${ac_cv_objext+set}" = set; then
2151  echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153  cat >conftest.$ac_ext <<_ACEOF
2154/* confdefs.h.  */
2155_ACEOF
2156cat confdefs.h >>conftest.$ac_ext
2157cat >>conftest.$ac_ext <<_ACEOF
2158/* end confdefs.h.  */
2159
2160int
2161main ()
2162{
2163
2164  ;
2165  return 0;
2166}
2167_ACEOF
2168rm -f conftest.o conftest.obj
2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170  (eval $ac_compile) 2>&5
2171  ac_status=$?
2172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173  (exit $ac_status); }; then
2174  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2175  case $ac_file in
2176    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2177    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2178       break;;
2179  esac
2180done
2181else
2182  echo "$as_me: failed program was:" >&5
2183sed 's/^/| /' conftest.$ac_ext >&5
2184
2185{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2186See \`config.log' for more details." >&5
2187echo "$as_me: error: cannot compute suffix of object files: cannot compile
2188See \`config.log' for more details." >&2;}
2189   { (exit 1); exit 1; }; }
2190fi
2191
2192rm -f conftest.$ac_cv_objext conftest.$ac_ext
2193fi
2194echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2195echo "${ECHO_T}$ac_cv_objext" >&6
2196OBJEXT=$ac_cv_objext
2197ac_objext=$OBJEXT
2198echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2199echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2200if test "${ac_cv_c_compiler_gnu+set}" = set; then
2201  echo $ECHO_N "(cached) $ECHO_C" >&6
2202else
2203  cat >conftest.$ac_ext <<_ACEOF
2204/* confdefs.h.  */
2205_ACEOF
2206cat confdefs.h >>conftest.$ac_ext
2207cat >>conftest.$ac_ext <<_ACEOF
2208/* end confdefs.h.  */
2209
2210int
2211main ()
2212{
2213#ifndef __GNUC__
2214       choke me
2215#endif
2216
2217  ;
2218  return 0;
2219}
2220_ACEOF
2221rm -f conftest.$ac_objext
2222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223  (eval $ac_compile) 2>conftest.er1
2224  ac_status=$?
2225  grep -v '^ *+' conftest.er1 >conftest.err
2226  rm -f conftest.er1
2227  cat conftest.err >&5
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); } &&
2230         { ac_try='test -z "$ac_c_werror_flag"
2231                         || test ! -s conftest.err'
2232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233  (eval $ac_try) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); }; } &&
2237         { ac_try='test -s conftest.$ac_objext'
2238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239  (eval $ac_try) 2>&5
2240  ac_status=$?
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); }; }; then
2243  ac_compiler_gnu=yes
2244else
2245  echo "$as_me: failed program was:" >&5
2246sed 's/^/| /' conftest.$ac_ext >&5
2247
2248ac_compiler_gnu=no
2249fi
2250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2251ac_cv_c_compiler_gnu=$ac_compiler_gnu
2252
2253fi
2254echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2255echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2256GCC=`test $ac_compiler_gnu = yes && echo yes`
2257ac_test_CFLAGS=${CFLAGS+set}
2258ac_save_CFLAGS=$CFLAGS
2259CFLAGS="-g"
2260echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2261echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2262if test "${ac_cv_prog_cc_g+set}" = set; then
2263  echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265  cat >conftest.$ac_ext <<_ACEOF
2266/* confdefs.h.  */
2267_ACEOF
2268cat confdefs.h >>conftest.$ac_ext
2269cat >>conftest.$ac_ext <<_ACEOF
2270/* end confdefs.h.  */
2271
2272int
2273main ()
2274{
2275
2276  ;
2277  return 0;
2278}
2279_ACEOF
2280rm -f conftest.$ac_objext
2281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282  (eval $ac_compile) 2>conftest.er1
2283  ac_status=$?
2284  grep -v '^ *+' conftest.er1 >conftest.err
2285  rm -f conftest.er1
2286  cat conftest.err >&5
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); } &&
2289         { ac_try='test -z "$ac_c_werror_flag"
2290                         || test ! -s conftest.err'
2291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292  (eval $ac_try) 2>&5
2293  ac_status=$?
2294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295  (exit $ac_status); }; } &&
2296         { ac_try='test -s conftest.$ac_objext'
2297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298  (eval $ac_try) 2>&5
2299  ac_status=$?
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); }; }; then
2302  ac_cv_prog_cc_g=yes
2303else
2304  echo "$as_me: failed program was:" >&5
2305sed 's/^/| /' conftest.$ac_ext >&5
2306
2307ac_cv_prog_cc_g=no
2308fi
2309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310fi
2311echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2312echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2313if test "$ac_test_CFLAGS" = set; then
2314  CFLAGS=$ac_save_CFLAGS
2315elif test $ac_cv_prog_cc_g = yes; then
2316  if test "$GCC" = yes; then
2317    CFLAGS="-g -O2"
2318  else
2319    CFLAGS="-g"
2320  fi
2321else
2322  if test "$GCC" = yes; then
2323    CFLAGS="-O2"
2324  else
2325    CFLAGS=
2326  fi
2327fi
2328echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2329echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2330if test "${ac_cv_prog_cc_stdc+set}" = set; then
2331  echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333  ac_cv_prog_cc_stdc=no
2334ac_save_CC=$CC
2335cat >conftest.$ac_ext <<_ACEOF
2336/* confdefs.h.  */
2337_ACEOF
2338cat confdefs.h >>conftest.$ac_ext
2339cat >>conftest.$ac_ext <<_ACEOF
2340/* end confdefs.h.  */
2341#include <stdarg.h>
2342#include <stdio.h>
2343#include <sys/types.h>
2344#include <sys/stat.h>
2345/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2346struct buf { int x; };
2347FILE * (*rcsopen) (struct buf *, struct stat *, int);
2348static char *e (p, i)
2349     char **p;
2350     int i;
2351{
2352  return p[i];
2353}
2354static char *f (char * (*g) (char **, int), char **p, ...)
2355{
2356  char *s;
2357  va_list v;
2358  va_start (v,p);
2359  s = g (p, va_arg (v,int));
2360  va_end (v);
2361  return s;
2362}
2363
2364/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2365   function prototypes and stuff, but not '\xHH' hex character constants.
2366   These don't provoke an error unfortunately, instead are silently treated
2367   as 'x'.  The following induces an error, until -std1 is added to get
2368   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2369   array size at least.  It's necessary to write '\x00'==0 to get something
2370   that's true only with -std1.  */
2371int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2372
2373int test (int i, double x);
2374struct s1 {int (*f) (int a);};
2375struct s2 {int (*f) (double a);};
2376int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2377int argc;
2378char **argv;
2379int
2380main ()
2381{
2382return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2383  ;
2384  return 0;
2385}
2386_ACEOF
2387# Don't try gcc -ansi; that turns off useful extensions and
2388# breaks some systems' header files.
2389# AIX                   -qlanglvl=ansi
2390# Ultrix and OSF/1      -std1
2391# HP-UX 10.20 and later -Ae
2392# HP-UX older versions  -Aa -D_HPUX_SOURCE
2393# SVR4                  -Xc -D__EXTENSIONS__
2394for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2395do
2396  CC="$ac_save_CC $ac_arg"
2397  rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399  (eval $ac_compile) 2>conftest.er1
2400  ac_status=$?
2401  grep -v '^ *+' conftest.er1 >conftest.err
2402  rm -f conftest.er1
2403  cat conftest.err >&5
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); } &&
2406         { ac_try='test -z "$ac_c_werror_flag"
2407                         || test ! -s conftest.err'
2408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409  (eval $ac_try) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; } &&
2413         { ac_try='test -s conftest.$ac_objext'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; }; then
2419  ac_cv_prog_cc_stdc=$ac_arg
2420break
2421else
2422  echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425fi
2426rm -f conftest.err conftest.$ac_objext
2427done
2428rm -f conftest.$ac_ext conftest.$ac_objext
2429CC=$ac_save_CC
2430
2431fi
2432
2433case "x$ac_cv_prog_cc_stdc" in
2434  x|xno)
2435    echo "$as_me:$LINENO: result: none needed" >&5
2436echo "${ECHO_T}none needed" >&6 ;;
2437  *)
2438    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2439echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2440    CC="$CC $ac_cv_prog_cc_stdc" ;;
2441esac
2442
2443# Some people use a C++ compiler to compile C.  Since we use `exit',
2444# in C++ we need to declare it.  In case someone uses the same compiler
2445# for both compiling C and C++ we need to have the C++ compiler decide
2446# the declaration of exit, since it's the most demanding environment.
2447cat >conftest.$ac_ext <<_ACEOF
2448#ifndef __cplusplus
2449  choke me
2450#endif
2451_ACEOF
2452rm -f conftest.$ac_objext
2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454  (eval $ac_compile) 2>conftest.er1
2455  ac_status=$?
2456  grep -v '^ *+' conftest.er1 >conftest.err
2457  rm -f conftest.er1
2458  cat conftest.err >&5
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); } &&
2461         { ac_try='test -z "$ac_c_werror_flag"
2462                         || test ! -s conftest.err'
2463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464  (eval $ac_try) 2>&5
2465  ac_status=$?
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); }; } &&
2468         { ac_try='test -s conftest.$ac_objext'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; }; then
2474  for ac_declaration in \
2475   '' \
2476   'extern "C" void std::exit (int) throw (); using std::exit;' \
2477   'extern "C" void std::exit (int); using std::exit;' \
2478   'extern "C" void exit (int) throw ();' \
2479   'extern "C" void exit (int);' \
2480   'void exit (int);'
2481do
2482  cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h.  */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h.  */
2488$ac_declaration
2489#include <stdlib.h>
2490int
2491main ()
2492{
2493exit (42);
2494  ;
2495  return 0;
2496}
2497_ACEOF
2498rm -f conftest.$ac_objext
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500  (eval $ac_compile) 2>conftest.er1
2501  ac_status=$?
2502  grep -v '^ *+' conftest.er1 >conftest.err
2503  rm -f conftest.er1
2504  cat conftest.err >&5
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); } &&
2507         { ac_try='test -z "$ac_c_werror_flag"
2508                         || test ! -s conftest.err'
2509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510  (eval $ac_try) 2>&5
2511  ac_status=$?
2512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513  (exit $ac_status); }; } &&
2514         { ac_try='test -s conftest.$ac_objext'
2515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516  (eval $ac_try) 2>&5
2517  ac_status=$?
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); }; }; then
2520  :
2521else
2522  echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525continue
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528  cat >conftest.$ac_ext <<_ACEOF
2529/* confdefs.h.  */
2530_ACEOF
2531cat confdefs.h >>conftest.$ac_ext
2532cat >>conftest.$ac_ext <<_ACEOF
2533/* end confdefs.h.  */
2534$ac_declaration
2535int
2536main ()
2537{
2538exit (42);
2539  ;
2540  return 0;
2541}
2542_ACEOF
2543rm -f conftest.$ac_objext
2544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545  (eval $ac_compile) 2>conftest.er1
2546  ac_status=$?
2547  grep -v '^ *+' conftest.er1 >conftest.err
2548  rm -f conftest.er1
2549  cat conftest.err >&5
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); } &&
2552         { ac_try='test -z "$ac_c_werror_flag"
2553                         || test ! -s conftest.err'
2554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555  (eval $ac_try) 2>&5
2556  ac_status=$?
2557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558  (exit $ac_status); }; } &&
2559         { ac_try='test -s conftest.$ac_objext'
2560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561  (eval $ac_try) 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }; }; then
2565  break
2566else
2567  echo "$as_me: failed program was:" >&5
2568sed 's/^/| /' conftest.$ac_ext >&5
2569
2570fi
2571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2572done
2573rm -f conftest*
2574if test -n "$ac_declaration"; then
2575  echo '#ifdef __cplusplus' >>confdefs.h
2576  echo $ac_declaration      >>confdefs.h
2577  echo '#endif'             >>confdefs.h
2578fi
2579
2580else
2581  echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584fi
2585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586ac_ext=c
2587ac_cpp='$CPP $CPPFLAGS'
2588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591
2592if test -z "$CC" ; then
2593  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2594echo "$as_me: error: Failed to find a C compiler!" >&2;}
2595   { (exit 1); exit 1; }; }
2596fi
2597# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2598case "$CC" in
2599  cl* | */cl* | CL* | */CL* )
2600    if test "$ac_cv_prog_cc_g" = yes ; then
2601      ac_cv_prog_cc_g=no
2602      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2603echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2604    fi ;;
2605esac
2606CFLAGS="$save_cflags"
2607
2608# Check if a project specific CFLAGS variable has been set
2609if test x$COIN_PRJCT != x; then
2610  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2611  if test x$coin_tmp = xset; then
2612    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2613  fi
2614fi
2615
2616if test x"$CFLAGS" = x; then
2617
2618  coin_add_cflags=
2619  coin_opt_cflags=
2620  coin_dbg_cflags=
2621  coin_warn_cflags=
2622
2623  if test "$GCC" = "yes"; then
2624    case "$CC" in
2625      icc* | */icc*)
2626        ;;
2627      *)
2628        coin_opt_cflags="-O3 -fomit-frame-pointer"
2629        coin_add_cflags="-pipe"
2630        coin_dbg_cflags="-g"
2631        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2632        case $enable_doscompile in
2633          mingw)
2634            CFLAGS="-mno-cygwin"
2635            cat >conftest.$ac_ext <<_ACEOF
2636/* confdefs.h.  */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
2640/* end confdefs.h.  */
2641
2642int
2643main ()
2644{
2645int i=0; i++;
2646  ;
2647  return 0;
2648}
2649_ACEOF
2650rm -f conftest.$ac_objext conftest$ac_exeext
2651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2652  (eval $ac_link) 2>conftest.er1
2653  ac_status=$?
2654  grep -v '^ *+' conftest.er1 >conftest.err
2655  rm -f conftest.er1
2656  cat conftest.err >&5
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); } &&
2659         { ac_try='test -z "$ac_c_werror_flag"
2660                         || test ! -s conftest.err'
2661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662  (eval $ac_try) 2>&5
2663  ac_status=$?
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); }; } &&
2666         { ac_try='test -s conftest$ac_exeext'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; }; then
2672  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2673else
2674  echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677fi
2678rm -f conftest.err conftest.$ac_objext \
2679      conftest$ac_exeext conftest.$ac_ext
2680            CFLAGS=
2681          ;;
2682        esac
2683    esac
2684  fi
2685  if test -z "$coin_opt_cflags"; then
2686    case $build in
2687      *-cygwin* | *-mingw*)
2688        case "$CC" in
2689          cl* | */cl* | CL* | */CL*)
2690            coin_opt_cflags='-MT -O2'
2691            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2692            coin_dbg_cflags='-MTd'
2693            ;;
2694        esac
2695        ;;
2696      *-linux-*)
2697        case "$CC" in
2698          icc* | */icc*)
2699            coin_opt_cflags="-O3 -ip"
2700            coin_add_cflags=""
2701            coin_dbg_cflags="-g"
2702            # Check if -i_dynamic is necessary (for new glibc library)
2703            CFLAGS=
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  :
2742else
2743  echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746coin_add_cflags="-i_dynamic $coin_add_cflags"
2747fi
2748rm -f conftest.err conftest.$ac_objext \
2749      conftest$ac_exeext conftest.$ac_ext
2750            ;;
2751          pgcc* | */pgcc*)
2752            coin_opt_cflags="-fast"
2753            coin_add_cflags="-Kieee -pc 64"
2754            coin_dbg_cflags="-g"
2755            ;;
2756        esac
2757        ;;
2758      *-ibm-*)
2759        case "$CC" in
2760          xlc* | */xlc* | mpxlc* | */mpxlc*)
2761            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2762            coin_add_cflags="-bmaxdata:0x80000000"
2763            coin_dbg_cflags="-g"
2764          ;;
2765        esac
2766        ;;
2767      *-hp-*)
2768        coin_opt_cflags="-O"
2769        coin_add_cflags="-Ae"
2770        coin_dbg_cflags="-g"
2771        ;;
2772      *-sun-*)
2773        coin_opt_cflags="-xO4"
2774        coin_dbg_cflags="-g"
2775        ;;
2776      *-sgi-*)
2777        coin_opt_cflags="-O -OPT:Olimit=0"
2778        coin_dbg_cflags="-g"
2779        ;;
2780    esac
2781  fi
2782
2783  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2784    coin_dbg_cflags="-g"
2785  fi
2786
2787  if test -z "$coin_opt_cflags"; then
2788    # Try if -O option works if nothing else is set
2789    CFLAGS="-O"
2790    cat >conftest.$ac_ext <<_ACEOF
2791/* confdefs.h.  */
2792_ACEOF
2793cat confdefs.h >>conftest.$ac_ext
2794cat >>conftest.$ac_ext <<_ACEOF
2795/* end confdefs.h.  */
2796
2797int
2798main ()
2799{
2800int i=0; i++;
2801  ;
2802  return 0;
2803}
2804_ACEOF
2805rm -f conftest.$ac_objext conftest$ac_exeext
2806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2807  (eval $ac_link) 2>conftest.er1
2808  ac_status=$?
2809  grep -v '^ *+' conftest.er1 >conftest.err
2810  rm -f conftest.er1
2811  cat conftest.err >&5
2812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813  (exit $ac_status); } &&
2814         { ac_try='test -z "$ac_c_werror_flag"
2815                         || test ! -s conftest.err'
2816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817  (eval $ac_try) 2>&5
2818  ac_status=$?
2819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820  (exit $ac_status); }; } &&
2821         { ac_try='test -s conftest$ac_exeext'
2822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823  (eval $ac_try) 2>&5
2824  ac_status=$?
2825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826  (exit $ac_status); }; }; then
2827  coin_opt_cflags="-O"
2828else
2829  echo "$as_me: failed program was:" >&5
2830sed 's/^/| /' conftest.$ac_ext >&5
2831
2832fi
2833rm -f conftest.err conftest.$ac_objext \
2834      conftest$ac_exeext conftest.$ac_ext
2835  fi
2836
2837  # if PM doesn't want the warning messages, take them out
2838  if test x"$coin_skip_warn_cflags" = xyes; then
2839    coin_warn_cflags=
2840  fi
2841
2842  if test x${DBG_CFLAGS+set} != xset; then
2843    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2844  fi
2845  if test x${OPT_CFLAGS+set} != xset; then
2846    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2847  fi
2848
2849  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2850  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2851
2852  if test "$coin_debug_compile" = "true"; then
2853    CFLAGS="$DBG_CFLAGS"
2854  else
2855    CFLAGS="$OPT_CFLAGS"
2856  fi
2857else
2858  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2859  if test x${DBG_CFLAGS+set} != xset; then
2860    DBG_CFLAGS="$CFLAGS"
2861  fi
2862  if test x${OPT_CFLAGS+set} != xset; then
2863    OPT_CFLAGS="$CFLAGS"
2864  fi
2865fi
2866
2867# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2868
2869case "$CFLAGS" in
2870  *-mno-cygwin*)
2871    if test x${CPPFLAGS+set} != xset ; then
2872      CPPFLAGS="-mno-cygwin"
2873    else
2874      case "$CPPFLAGS" in
2875        *-mno-cygwin*)
2876          ;;
2877        *)
2878          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2879          ;;
2880      esac
2881    fi ;;
2882esac
2883
2884# Try if CFLAGS works
2885save_CFLAGS="$CFLAGS"
2886cat >conftest.$ac_ext <<_ACEOF
2887/* confdefs.h.  */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h.  */
2892
2893int
2894main ()
2895{
2896int i=0; i++;
2897  ;
2898  return 0;
2899}
2900_ACEOF
2901rm -f conftest.$ac_objext conftest$ac_exeext
2902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2903  (eval $ac_link) 2>conftest.er1
2904  ac_status=$?
2905  grep -v '^ *+' conftest.er1 >conftest.err
2906  rm -f conftest.er1
2907  cat conftest.err >&5
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); } &&
2910         { ac_try='test -z "$ac_c_werror_flag"
2911                         || test ! -s conftest.err'
2912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913  (eval $ac_try) 2>&5
2914  ac_status=$?
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); }; } &&
2917         { ac_try='test -s conftest$ac_exeext'
2918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919  (eval $ac_try) 2>&5
2920  ac_status=$?
2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922  (exit $ac_status); }; }; then
2923  :
2924else
2925  echo "$as_me: failed program was:" >&5
2926sed 's/^/| /' conftest.$ac_ext >&5
2927
2928CFLAGS=
2929fi
2930rm -f conftest.err conftest.$ac_objext \
2931      conftest$ac_exeext conftest.$ac_ext
2932if test -z "$CFLAGS"; then
2933  { 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
2934echo "$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;}
2935  CFLAGS='-O'
2936  cat >conftest.$ac_ext <<_ACEOF
2937/* confdefs.h.  */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h.  */
2942
2943int
2944main ()
2945{
2946int i=0; i++;
2947  ;
2948  return 0;
2949}
2950_ACEOF
2951rm -f conftest.$ac_objext conftest$ac_exeext
2952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2953  (eval $ac_link) 2>conftest.er1
2954  ac_status=$?
2955  grep -v '^ *+' conftest.er1 >conftest.err
2956  rm -f conftest.er1
2957  cat conftest.err >&5
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); } &&
2960         { ac_try='test -z "$ac_c_werror_flag"
2961                         || test ! -s conftest.err'
2962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963  (eval $ac_try) 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; } &&
2967         { ac_try='test -s conftest$ac_exeext'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; }; then
2973  :
2974else
2975  echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978CFLAGS=
2979fi
2980rm -f conftest.err conftest.$ac_objext \
2981      conftest$ac_exeext conftest.$ac_ext
2982  if test -z "$CFLAGS"; then
2983    { 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
2984echo "$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;}
2985  fi
2986fi
2987
2988{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2989echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2990
2991
2992if test x"$MPICC" = x; then :; else
2993  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2994echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2995  CC="$MPICC"
2996fi
2997
2998# Correct ADDLIBS initialization if we are using the MS compiler
2999case "$CC" in
3000  cl* | */cl* | CL* | */CL*)
3001    ADDLIBS=
3002    case $build in
3003  *-mingw*)
3004    if test "${LD+set}" = set; then :; else
3005      LD=link
3006    fi
3007    ;;
3008 esac
3009 case $enable_doscompile in
3010   msvc)
3011     if test "x${LD+set}" = xset; then :; else
3012       LD=link
3013     fi
3014     ;;
3015 esac
3016
3017    ;;
3018esac
3019
3020ac_ext=c
3021ac_cpp='$CPP $CPPFLAGS'
3022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025
3026
3027
3028# Get the name of the Fortran compiler and appropriate compiler options
3029case $build in
3030  *-cygwin* | *-mingw*)
3031     if test "$enable_doscompile" = msvc ; then
3032       coin_f77_comps="ifort fl32 compile_f2c"
3033     else
3034       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3035     fi ;;
3036  sparc-sun-solaris*)
3037     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3038  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3039 esac
3040
3041
3042
3043
3044
3045
3046ac_ext=f
3047ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3048ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3050
3051
3052
3053
3054
3055
3056coin_has_f77=yes
3057
3058save_fflags="$FFLAGS"
3059
3060# We delete the cached value, since the test might not have been
3061# performed with our choice of compilers earlier
3062$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3063
3064# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3065# coin_f77_comps to see if there's a program that matches one of the names.
3066# If there's no such program, F77 = unavailable. If we match the name,
3067# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3068# compiler.
3069# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3070
3071
3072{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3073echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3074for ac_prog in $coin_f77_comps
3075do
3076  # Extract the first word of "$ac_prog", so it can be a program name with args.
3077set dummy $ac_prog; ac_word=$2
3078echo "$as_me:$LINENO: checking for $ac_word" >&5
3079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3080if test "${ac_cv_prog_F77+set}" = set; then
3081  echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083  if test -n "$F77"; then
3084  ac_cv_prog_F77="$F77" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091  for ac_exec_ext in '' $ac_executable_extensions; do
3092  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093    ac_cv_prog_F77="$ac_prog"
3094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098done
3099
3100fi
3101fi
3102F77=$ac_cv_prog_F77
3103if test -n "$F77"; then
3104  echo "$as_me:$LINENO: result: $F77" >&5
3105echo "${ECHO_T}$F77" >&6
3106else
3107  echo "$as_me:$LINENO: result: no" >&5
3108echo "${ECHO_T}no" >&6
3109fi
3110
3111  test -n "$F77" && break
3112done
3113test -n "$F77" || F77="unavailable"
3114
3115
3116if test "$F77" != "unavailable" ; then
3117  ac_ext=f
3118ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3119ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3121if test -n "$ac_tool_prefix"; then
3122  for ac_prog in $coin_f77_comps
3123  do
3124    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3125set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3126echo "$as_me:$LINENO: checking for $ac_word" >&5
3127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128if test "${ac_cv_prog_F77+set}" = set; then
3129  echo $ECHO_N "(cached) $ECHO_C" >&6
3130else
3131  if test -n "$F77"; then
3132  ac_cv_prog_F77="$F77" # Let the user override the test.
3133else
3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135for as_dir in $PATH
3136do
3137  IFS=$as_save_IFS
3138  test -z "$as_dir" && as_dir=.
3139  for ac_exec_ext in '' $ac_executable_extensions; do
3140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143    break 2
3144  fi
3145done
3146done
3147
3148fi
3149fi
3150F77=$ac_cv_prog_F77
3151if test -n "$F77"; then
3152  echo "$as_me:$LINENO: result: $F77" >&5
3153echo "${ECHO_T}$F77" >&6
3154else
3155  echo "$as_me:$LINENO: result: no" >&5
3156echo "${ECHO_T}no" >&6
3157fi
3158
3159    test -n "$F77" && break
3160  done
3161fi
3162if test -z "$F77"; then
3163  ac_ct_F77=$F77
3164  for ac_prog in $coin_f77_comps
3165do
3166  # Extract the first word of "$ac_prog", so it can be a program name with args.
3167set dummy $ac_prog; ac_word=$2
3168echo "$as_me:$LINENO: checking for $ac_word" >&5
3169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3171  echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173  if test -n "$ac_ct_F77"; then
3174  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179  IFS=$as_save_IFS
3180  test -z "$as_dir" && as_dir=.
3181  for ac_exec_ext in '' $ac_executable_extensions; do
3182  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183    ac_cv_prog_ac_ct_F77="$ac_prog"
3184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188done
3189
3190fi
3191fi
3192ac_ct_F77=$ac_cv_prog_ac_ct_F77
3193if test -n "$ac_ct_F77"; then
3194  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3195echo "${ECHO_T}$ac_ct_F77" >&6
3196else
3197  echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
3199fi
3200
3201  test -n "$ac_ct_F77" && break
3202done
3203
3204  F77=$ac_ct_F77
3205fi
3206
3207
3208# Provide some information about the compiler.
3209echo "$as_me:3209:" \
3210     "checking for Fortran 77 compiler version" >&5
3211ac_compiler=`set X $ac_compile; echo $2`
3212{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3213  (eval $ac_compiler --version </dev/null >&5) 2>&5
3214  ac_status=$?
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); }
3217{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3218  (eval $ac_compiler -v </dev/null >&5) 2>&5
3219  ac_status=$?
3220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221  (exit $ac_status); }
3222{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3223  (eval $ac_compiler -V </dev/null >&5) 2>&5
3224  ac_status=$?
3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226  (exit $ac_status); }
3227rm -f a.out
3228
3229# If we don't use `.F' as extension, the preprocessor is not run on the
3230# input file.  (Note that this only needs to work for GNU compilers.)
3231ac_save_ext=$ac_ext
3232ac_ext=F
3233echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3234echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3235if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3236  echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238  cat >conftest.$ac_ext <<_ACEOF
3239      program main
3240#ifndef __GNUC__
3241       choke me
3242#endif
3243
3244      end
3245_ACEOF
3246rm -f conftest.$ac_objext
3247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248  (eval $ac_compile) 2>conftest.er1
3249  ac_status=$?
3250  grep -v '^ *+' conftest.er1 >conftest.err
3251  rm -f conftest.er1
3252  cat conftest.err >&5
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); } &&
3255         { ac_try='test -z "$ac_f77_werror_flag"
3256                         || test ! -s conftest.err'
3257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258  (eval $ac_try) 2>&5
3259  ac_status=$?
3260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); }; } &&
3262         { ac_try='test -s conftest.$ac_objext'
3263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264  (eval $ac_try) 2>&5
3265  ac_status=$?
3266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267  (exit $ac_status); }; }; then
3268  ac_compiler_gnu=yes
3269else
3270  echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
3273ac_compiler_gnu=no
3274fi
3275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3276ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3277
3278fi
3279echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3280echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3281ac_ext=$ac_save_ext
3282ac_test_FFLAGS=${FFLAGS+set}
3283ac_save_FFLAGS=$FFLAGS
3284FFLAGS=
3285echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3286echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3287if test "${ac_cv_prog_f77_g+set}" = set; then
3288  echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290  FFLAGS=-g
3291cat >conftest.$ac_ext <<_ACEOF
3292      program main
3293
3294      end
3295_ACEOF
3296rm -f conftest.$ac_objext
3297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3298  (eval $ac_compile) 2>conftest.er1
3299  ac_status=$?
3300  grep -v '^ *+' conftest.er1 >conftest.err
3301  rm -f conftest.er1
3302  cat conftest.err >&5
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); } &&
3305         { ac_try='test -z "$ac_f77_werror_flag"
3306                         || test ! -s conftest.err'
3307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308  (eval $ac_try) 2>&5
3309  ac_status=$?
3310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311  (exit $ac_status); }; } &&
3312         { ac_try='test -s conftest.$ac_objext'
3313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314  (eval $ac_try) 2>&5
3315  ac_status=$?
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); }; }; then
3318  ac_cv_prog_f77_g=yes
3319else
3320  echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323ac_cv_prog_f77_g=no
3324fi
3325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3326
3327fi
3328echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3329echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3330if test "$ac_test_FFLAGS" = set; then
3331  FFLAGS=$ac_save_FFLAGS
3332elif test $ac_cv_prog_f77_g = yes; then
3333  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3334    FFLAGS="-g -O2"
3335  else
3336    FFLAGS="-g"
3337  fi
3338else
3339  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3340    FFLAGS="-O2"
3341  else
3342    FFLAGS=
3343  fi
3344fi
3345
3346G77=`test $ac_compiler_gnu = yes && echo yes`
3347ac_ext=f
3348ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3349ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3351
3352else
3353  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3354echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3355fi
3356
3357FFLAGS="$save_fflags"
3358
3359# Check if a project specific FFLAGS variable has been set
3360if test x$COIN_PRJCT != x; then
3361  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3362  if test x$coin_tmp = xset; then
3363    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3364  fi
3365fi
3366
3367if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3368
3369  coin_add_fflags=
3370  coin_opt_fflags=
3371  coin_dbg_fflags=
3372  coin_warn_fflags=
3373
3374  if test "$G77" = "yes"; then
3375    coin_opt_fflags="-O3 -fomit-frame-pointer"
3376    coin_add_fflags="-pipe"
3377    coin_dbg_fflags="-g"
3378    case $enable_doscompile in
3379      mingw)
3380        FFLAGS="-mno-cygwin"
3381        cat >conftest.$ac_ext <<_ACEOF
3382      program main
3383      write(*,*) 'Hello world'
3384      end
3385_ACEOF
3386rm -f conftest.$ac_objext conftest$ac_exeext
3387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3388  (eval $ac_link) 2>conftest.er1
3389  ac_status=$?
3390  grep -v '^ *+' conftest.er1 >conftest.err
3391  rm -f conftest.er1
3392  cat conftest.err >&5
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); } &&
3395         { ac_try='test -z "$ac_f77_werror_flag"
3396                         || test ! -s conftest.err'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; } &&
3402         { ac_try='test -s conftest$ac_exeext'
3403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404  (eval $ac_try) 2>&5
3405  ac_status=$?
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); }; }; then
3408  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3409else
3410  echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413fi
3414rm -f conftest.err conftest.$ac_objext \
3415      conftest$ac_exeext conftest.$ac_ext
3416        FFLAGS=
3417      ;;
3418    esac
3419  else
3420    case $build in
3421      *-cygwin* | *-mingw*)
3422        case $F77 in
3423          ifort* | */ifort* | IFORT* | */IFORT* )
3424            coin_opt_fflags='-O3'
3425            coin_add_fflags='-fpp -nologo -MT'
3426            coin_dbg_fflags='-debug'
3427          ;;
3428          compile_f2c*)
3429            coin_opt_fflags='-MT -O2'
3430            coin_add_fflags='-nologo -wd4996'
3431            coin_dbg_fflags='-MTd'
3432          ;;
3433        esac
3434        ;;
3435      *-linux-*)
3436        case $F77 in
3437          ifc* | */ifc* | ifort* | */ifort*)
3438            coin_opt_fflags="-O3 -ip"
3439            coin_add_fflags="-cm -w90 -w95"
3440            coin_dbg_fflags="-g -CA -CB -CS"
3441            # Check if -i_dynamic is necessary (for new glibc library)
3442            FFLAGS=
3443            cat >conftest.$ac_ext <<_ACEOF
3444      program main
3445      write(*,*) 'Hello world'
3446      end
3447_ACEOF
3448rm -f conftest.$ac_objext conftest$ac_exeext
3449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3450  (eval $ac_link) 2>conftest.er1
3451  ac_status=$?
3452  grep -v '^ *+' conftest.er1 >conftest.err
3453  rm -f conftest.er1
3454  cat conftest.err >&5
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); } &&
3457         { ac_try='test -z "$ac_f77_werror_flag"
3458                         || test ! -s conftest.err'
3459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460  (eval $ac_try) 2>&5
3461  ac_status=$?
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); }; } &&
3464         { ac_try='test -s conftest$ac_exeext'
3465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466  (eval $ac_try) 2>&5
3467  ac_status=$?
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); }; }; then
3470  :
3471else
3472  echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475coin_add_fflags="-i_dynamic $coin_add_fflags"
3476fi
3477rm -f conftest.err conftest.$ac_objext \
3478      conftest$ac_exeext conftest.$ac_ext
3479            ;;
3480          pgf77* | */pgf77* | pgf90* | */pgf90*)
3481            coin_opt_fflags="-fast"
3482            coin_add_fflags="-Kieee -pc 64"
3483            coin_dbg_fflags="-g"
3484          ;;
3485        esac
3486        ;;
3487      *-ibm-*)
3488        case "$F77" in
3489          xlf* | */xlf* | mpxlf* | */mpxlf* )
3490            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3491            coin_add_fflags="-bmaxdata:0x80000000"
3492            coin_dbg_fflags="-g -C"
3493            ;;
3494        esac
3495        ;;
3496      *-hp-*)
3497        coin_opt_fflags="+O3"
3498        coin_add_fflags="+U77"
3499        coin_dbg_fflags="-C -g"
3500        ;;
3501      *-sun-*)
3502        coin_opt_fflags="-O4"
3503        coin_dbg_fflags="-g"
3504        ;;
3505      *-sgi-*)
3506        coin_opt_fflags="-O5 -OPT:Olimit=0"
3507        coin_dbg_fflags="-g"
3508        ;;
3509    esac
3510  fi
3511
3512  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3513    coin_dbg_fflags="-g"
3514  fi
3515
3516  if test -z "$coin_opt_fflags"; then
3517    # Try if -O option works if nothing else is set
3518    FFLAGS=-O
3519    cat >conftest.$ac_ext <<_ACEOF
3520      program main
3521      integer i
3522      end
3523_ACEOF
3524rm -f conftest.$ac_objext conftest$ac_exeext
3525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3526  (eval $ac_link) 2>conftest.er1
3527  ac_status=$?
3528  grep -v '^ *+' conftest.er1 >conftest.err
3529  rm -f conftest.er1
3530  cat conftest.err >&5
3531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532  (exit $ac_status); } &&
3533         { ac_try='test -z "$ac_f77_werror_flag"
3534                         || test ! -s conftest.err'
3535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536  (eval $ac_try) 2>&5
3537  ac_status=$?
3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); }; } &&
3540         { ac_try='test -s conftest$ac_exeext'
3541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542  (eval $ac_try) 2>&5
3543  ac_status=$?
3544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545  (exit $ac_status); }; }; then
3546  coin_opt_fflags="-O"
3547else
3548  echo "$as_me: failed program was:" >&5
3549sed 's/^/| /' conftest.$ac_ext >&5
3550
3551fi
3552rm -f conftest.err conftest.$ac_objext \
3553      conftest$ac_exeext conftest.$ac_ext
3554  fi
3555
3556  # if PM doesn't want the warning messages, take them out
3557  if test x"$coin_skip_warn_fflags" = xyes; then
3558    coin_warn_fflags=
3559  fi
3560
3561  if test x${DBG_FFLAGS+set} != xset; then
3562    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3563  fi
3564  if test x${OPT_FFLAGS+set} != xset; then
3565    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3566  fi
3567
3568  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3569  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3570
3571  if test "$coin_debug_compile" = "true"; then
3572    FFLAGS="$DBG_FFLAGS"
3573  else
3574    FFLAGS="$OPT_FFLAGS"
3575  fi
3576else
3577  FFLAGS="$FFLAGS $ADD_FFLAGS"
3578  if test x${DBG_FFLAGS+set} != xset; then
3579    DBG_FFLAGS="$FFLAGS"
3580  fi
3581  if test x${OPT_FFLAGS+set} != xset; then
3582    OPT_FFLAGS="$FFLAGS"
3583  fi
3584fi
3585
3586# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3587case "$FFLAGS" in
3588  *-mno-cygwin*)
3589    if test x${CPPFLAGS+set} != xset ; then
3590      CPPFLAGS="-mno-cygwin"
3591    else
3592      case "$CPPFLAGS" in
3593        *-mno-cygwin*)
3594          ;;
3595        *)
3596          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3597          ;;
3598      esac
3599    fi ;;
3600esac
3601
3602# Try if FFLAGS works
3603if test "$F77" != "unavailable" ; then
3604  cat >conftest.$ac_ext <<_ACEOF
3605      program main
3606      integer i
3607      end
3608_ACEOF
3609rm -f conftest.$ac_objext conftest$ac_exeext
3610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3611  (eval $ac_link) 2>conftest.er1
3612  ac_status=$?
3613  grep -v '^ *+' conftest.er1 >conftest.err
3614  rm -f conftest.er1
3615  cat conftest.err >&5
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); } &&
3618         { ac_try='test -z "$ac_f77_werror_flag"
3619                         || test ! -s conftest.err'
3620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621  (eval $ac_try) 2>&5
3622  ac_status=$?
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); }; } &&
3625         { ac_try='test -s conftest$ac_exeext'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; }; then
3631  :
3632else
3633  echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636FFLAGS=
3637fi
3638rm -f conftest.err conftest.$ac_objext \
3639      conftest$ac_exeext conftest.$ac_ext
3640  if test -z "$FFLAGS"; then
3641    { 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
3642echo "$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;}
3643    FFLAGS='-O'
3644    cat >conftest.$ac_ext <<_ACEOF
3645      program main
3646      integer i
3647      end
3648_ACEOF
3649rm -f conftest.$ac_objext conftest$ac_exeext
3650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3651  (eval $ac_link) 2>conftest.er1
3652  ac_status=$?
3653  grep -v '^ *+' conftest.er1 >conftest.err
3654  rm -f conftest.er1
3655  cat conftest.err >&5
3656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657  (exit $ac_status); } &&
3658         { ac_try='test -z "$ac_f77_werror_flag"
3659                         || test ! -s conftest.err'
3660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661  (eval $ac_try) 2>&5
3662  ac_status=$?
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); }; } &&
3665         { ac_try='test -s conftest$ac_exeext'
3666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667  (eval $ac_try) 2>&5
3668  ac_status=$?
3669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670  (exit $ac_status); }; }; then
3671  :
3672else
3673  echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676FFLAGS=
3677fi
3678rm -f conftest.err conftest.$ac_objext \
3679      conftest$ac_exeext conftest.$ac_ext
3680    if test -z "$FFLAGS"; then
3681      { 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
3682echo "$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;}
3683    fi
3684  fi
3685fi
3686
3687{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3688echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3689
3690
3691if test x"$MPIF77" = x; then :; else
3692  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3693echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3694  F77="$MPIF77"
3695fi
3696
3697case "$F77" in
3698  ifort* | */ifort* | IFORT* | */IFORT*)
3699    case $build in
3700  *-mingw*)
3701    if test "${LD+set}" = set; then :; else
3702      LD=link
3703    fi
3704    ;;
3705 esac
3706 case $enable_doscompile in
3707   msvc)
3708     if test "x${LD+set}" = xset; then :; else
3709       LD=link
3710     fi
3711     ;;
3712 esac
3713
3714    ;;
3715esac
3716
3717ac_ext=c
3718ac_cpp='$CPP $CPPFLAGS'
3719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723
3724
3725# Find out how to call Fortran from C and determine Fortran runtime libraries
3726ac_ext=f
3727ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3728ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3730echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3731echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3732if test "${ac_cv_prog_f77_v+set}" = set; then
3733  echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735  cat >conftest.$ac_ext <<_ACEOF
3736      program main
3737
3738      end
3739_ACEOF
3740rm -f conftest.$ac_objext
3741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742  (eval $ac_compile) 2>conftest.er1
3743  ac_status=$?
3744  grep -v '^ *+' conftest.er1 >conftest.err
3745  rm -f conftest.er1
3746  cat conftest.err >&5
3747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748  (exit $ac_status); } &&
3749         { ac_try='test -z "$ac_f77_werror_flag"
3750                         || test ! -s conftest.err'
3751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752  (eval $ac_try) 2>&5
3753  ac_status=$?
3754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755  (exit $ac_status); }; } &&
3756         { ac_try='test -s conftest.$ac_objext'
3757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758  (eval $ac_try) 2>&5
3759  ac_status=$?
3760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761  (exit $ac_status); }; }; then
3762  ac_cv_prog_f77_v=
3763# Try some options frequently used verbose output
3764for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3765  cat >conftest.$ac_ext <<_ACEOF
3766      program main
3767
3768      end
3769_ACEOF
3770
3771# Compile and link our simple test program by passing a flag (argument
3772# 1 to this macro) to the Fortran compiler in order to get
3773# "verbose" output that we can then parse for the Fortran linker
3774# flags.
3775ac_save_FFLAGS=$FFLAGS
3776FFLAGS="$FFLAGS $ac_verb"
3777(eval echo $as_me:3777: \"$ac_link\") >&5
3778ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3779echo "$ac_f77_v_output" >&5
3780FFLAGS=$ac_save_FFLAGS
3781
3782rm -f conftest*
3783
3784# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3785# /foo, /bar, and /baz are search directories for the Fortran linker.
3786# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3787ac_f77_v_output="`echo $ac_f77_v_output |
3788        grep 'LPATH is:' |
3789        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3790
3791case $ac_f77_v_output in
3792  # If we are using xlf then replace all the commas with spaces.
3793  *xlfentry*)
3794    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3795
3796  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3797  # $LIBS confuse us, and the libraries appear later in the output anyway).
3798  *mGLOB_options_string*)
3799    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3800
3801  # If we are using Cray Fortran then delete quotes.
3802  # Use "\"" instead of '"' for font-lock-mode.
3803  # FIXME: a more general fix for quoted arguments with spaces?
3804  *cft90*)
3805    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3806esac
3807
3808
3809  # look for -l* and *.a constructs in the output
3810  for ac_arg in $ac_f77_v_output; do
3811     case $ac_arg in
3812        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3813          ac_cv_prog_f77_v=$ac_verb
3814          break 2 ;;
3815     esac
3816  done
3817done
3818if test -z "$ac_cv_prog_f77_v"; then
3819   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3820echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3821fi
3822else
3823  echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3827echo "$as_me: WARNING: compilation failed" >&2;}
3828fi
3829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830
3831fi
3832echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3833echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3834echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3835echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3836if test "${ac_cv_f77_libs+set}" = set; then
3837  echo $ECHO_N "(cached) $ECHO_C" >&6
3838else
3839  if test "x$FLIBS" != "x"; then
3840  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3841else
3842
3843cat >conftest.$ac_ext <<_ACEOF
3844      program main
3845
3846      end
3847_ACEOF
3848
3849# Compile and link our simple test program by passing a flag (argument
3850# 1 to this macro) to the Fortran compiler in order to get
3851# "verbose" output that we can then parse for the Fortran linker
3852# flags.
3853ac_save_FFLAGS=$FFLAGS
3854FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3855(eval echo $as_me:3855: \"$ac_link\") >&5
3856ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3857echo "$ac_f77_v_output" >&5
3858FFLAGS=$ac_save_FFLAGS
3859
3860rm -f conftest*
3861
3862# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3863# /foo, /bar, and /baz are search directories for the Fortran linker.
3864# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3865ac_f77_v_output="`echo $ac_f77_v_output |
3866        grep 'LPATH is:' |
3867        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3868
3869case $ac_f77_v_output in
3870  # If we are using xlf then replace all the commas with spaces.
3871  *xlfentry*)
3872    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3873
3874  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3875  # $LIBS confuse us, and the libraries appear later in the output anyway).
3876  *mGLOB_options_string*)
3877    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3878
3879  # If we are using Cray Fortran then delete quotes.
3880  # Use "\"" instead of '"' for font-lock-mode.
3881  # FIXME: a more general fix for quoted arguments with spaces?
3882  *cft90*)
3883    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3884esac
3885
3886
3887
3888ac_cv_f77_libs=
3889
3890# Save positional arguments (if any)
3891ac_save_positional="$@"
3892
3893set X $ac_f77_v_output
3894while test $# != 1; do
3895  shift
3896  ac_arg=$1
3897  case $ac_arg in
3898        [\\/]*.a | ?:[\\/]*.a)
3899            ac_exists=false
3900  for ac_i in $ac_cv_f77_libs; do
3901    if test x"$ac_arg" = x"$ac_i"; then
3902      ac_exists=true
3903      break
3904    fi
3905  done
3906
3907  if test x"$ac_exists" = xtrue; then
3908  :
3909else
3910  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3911fi
3912
3913          ;;
3914        -bI:*)
3915            ac_exists=false
3916  for ac_i in $ac_cv_f77_libs; do
3917    if test x"$ac_arg" = x"$ac_i"; then
3918      ac_exists=true
3919      break
3920    fi
3921  done
3922
3923  if test x"$ac_exists" = xtrue; then
3924  :
3925else
3926  if test "$ac_compiler_gnu" = yes; then
3927  for ac_link_opt in $ac_arg; do
3928    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
3929  done
3930else
3931  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3932fi
3933fi
3934
3935          ;;
3936          # Ignore these flags.
3937        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
3938          ;;
3939        -lkernel32)
3940          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3941          ;;
3942        -[LRuY])
3943          # These flags, when seen by themselves, take an argument.
3944          # We remove the space between option and argument and re-iterate
3945          # unless we find an empty arg or a new option (starting with -)
3946          case $2 in
3947             "" | -*);;
3948             *)
3949                ac_arg="$ac_arg$2"
3950                shift; shift
3951                set X $ac_arg "$@"
3952                ;;
3953          esac
3954          ;;
3955        -YP,*)
3956          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3957              ac_exists=false
3958  for ac_i in $ac_cv_f77_libs; do
3959    if test x"$ac_j" = x"$ac_i"; then
3960      ac_exists=true
3961      break
3962    fi
3963  done
3964
3965  if test x"$ac_exists" = xtrue; then
3966  :
3967else
3968  ac_arg="$ac_arg $ac_j"
3969                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
3970fi
3971
3972          done
3973          ;;
3974        -[lLR]*)
3975            ac_exists=false
3976  for ac_i in $ac_cv_f77_libs; do
3977    if test x"$ac_arg" = x"$ac_i"; then
3978      ac_exists=true
3979      break
3980    fi
3981  done
3982
3983  if test x"$ac_exists" = xtrue; then
3984  :
3985else
3986  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3987fi
3988
3989          ;;
3990          # Ignore everything else.
3991  esac
3992done
3993# restore positional arguments
3994set X $ac_save_positional; shift
3995
3996# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3997# then we insist that the "run path" must be an absolute path (i.e. it
3998# must begin with a "/").
3999case `(uname -sr) 2>/dev/null` in
4000   "SunOS 5"*)
4001      ac_ld_run_path=`echo $ac_f77_v_output |
4002                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4003      test "x$ac_ld_run_path" != x &&
4004        if test "$ac_compiler_gnu" = yes; then
4005  for ac_link_opt in $ac_ld_run_path; do
4006    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4007  done
4008else
4009  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4010fi
4011      ;;
4012esac
4013fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4014
4015fi
4016echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4017echo "${ECHO_T}$ac_cv_f77_libs" >&6
4018FLIBS="$ac_cv_f77_libs"
4019
4020
4021ac_ext=f
4022ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4023ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4025
4026ac_ext=f
4027ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4028ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4030
4031echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4032echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4033if test "${ac_cv_f77_dummy_main+set}" = set; then
4034  echo $ECHO_N "(cached) $ECHO_C" >&6
4035else
4036  ac_f77_dm_save_LIBS=$LIBS
4037 LIBS="$LIBS $FLIBS"
4038 ac_fortran_dm_var=F77_DUMMY_MAIN
4039 ac_ext=c
4040ac_cpp='$CPP $CPPFLAGS'
4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044
4045 # First, try linking without a dummy main:
4046 cat >conftest.$ac_ext <<_ACEOF
4047/* confdefs.h.  */
4048_ACEOF
4049cat confdefs.h >>conftest.$ac_ext
4050cat >>conftest.$ac_ext <<_ACEOF
4051/* end confdefs.h.  */
4052
4053#ifdef F77_DUMMY_MAIN
4054
4055#  ifdef __cplusplus
4056     extern "C"
4057#  endif
4058   int F77_DUMMY_MAIN() { return 1; }
4059
4060#endif
4061int
4062main ()
4063{
4064
4065  ;
4066  return 0;
4067}
4068_ACEOF
4069rm -f conftest.$ac_objext conftest$ac_exeext
4070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4071  (eval $ac_link) 2>conftest.er1
4072  ac_status=$?
4073  grep -v '^ *+' conftest.er1 >conftest.err
4074  rm -f conftest.er1
4075  cat conftest.err >&5
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); } &&
4078         { ac_try='test -z "$ac_c_werror_flag"
4079                         || test ! -s conftest.err'
4080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081  (eval $ac_try) 2>&5
4082  ac_status=$?
4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084  (exit $ac_status); }; } &&
4085         { ac_try='test -s conftest$ac_exeext'
4086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087  (eval $ac_try) 2>&5
4088  ac_status=$?
4089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090  (exit $ac_status); }; }; then
4091  ac_cv_fortran_dummy_main=none
4092else
4093  echo "$as_me: failed program was:" >&5
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
4096ac_cv_fortran_dummy_main=unknown
4097fi
4098rm -f conftest.err conftest.$ac_objext \
4099      conftest$ac_exeext conftest.$ac_ext
4100
4101 if test $ac_cv_fortran_dummy_main = unknown; then
4102   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4103     cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h.  */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h.  */
4109#define $ac_fortran_dm_var $ac_func
4110#ifdef F77_DUMMY_MAIN
4111
4112#  ifdef __cplusplus
4113     extern "C"
4114#  endif
4115   int F77_DUMMY_MAIN() { return 1; }
4116
4117#endif
4118int
4119main ()
4120{
4121
4122  ;
4123  return 0;
4124}
4125_ACEOF
4126rm -f conftest.$ac_objext conftest$ac_exeext
4127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4128  (eval $ac_link) 2>conftest.er1
4129  ac_status=$?
4130  grep -v '^ *+' conftest.er1 >conftest.err
4131  rm -f conftest.er1
4132  cat conftest.err >&5
4133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134  (exit $ac_status); } &&
4135         { ac_try='test -z "$ac_c_werror_flag"
4136                         || test ! -s conftest.err'
4137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138  (eval $ac_try) 2>&5
4139  ac_status=$?
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); }; } &&
4142         { ac_try='test -s conftest$ac_exeext'
4143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144  (eval $ac_try) 2>&5
4145  ac_status=$?
4146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147  (exit $ac_status); }; }; then
4148  ac_cv_fortran_dummy_main=$ac_func; break
4149else
4150  echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
4153fi
4154rm -f conftest.err conftest.$ac_objext \
4155      conftest$ac_exeext conftest.$ac_ext
4156   done
4157 fi
4158 ac_ext=f
4159ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4160ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4162 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4163 rm -f conftest*
4164 LIBS=$ac_f77_dm_save_LIBS
4165
4166fi
4167echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4168echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4169F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4170if test "$F77_DUMMY_MAIN" != unknown; then
4171  if test $F77_DUMMY_MAIN != none; then
4172
4173cat >>confdefs.h <<_ACEOF
4174#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4175_ACEOF
4176
4177  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4178
4179cat >>confdefs.h <<\_ACEOF
4180#define FC_DUMMY_MAIN_EQ_F77 1
4181_ACEOF
4182
4183  fi
4184fi
4185else
4186  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4187See \`config.log' for more details." >&5
4188echo "$as_me: error: linking to Fortran libraries from C fails
4189See \`config.log' for more details." >&2;}
4190   { (exit 1); exit 1; }; }
4191fi
4192
4193
4194ac_ext=f
4195ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4196ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4198
4199ac_ext=f
4200ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4201ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4203echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4204echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4205if test "${ac_cv_f77_mangling+set}" = set; then
4206  echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208  cat >conftest.$ac_ext <<_ACEOF
4209      subroutine foobar()
4210      return
4211      end
4212      subroutine foo_bar()
4213      return
4214      end
4215_ACEOF
4216rm -f conftest.$ac_objext
4217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218  (eval $ac_compile) 2>conftest.er1
4219  ac_status=$?
4220  grep -v '^ *+' conftest.er1 >conftest.err
4221  rm -f conftest.er1
4222  cat conftest.err >&5
4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224  (exit $ac_status); } &&
4225         { ac_try='test -z "$ac_f77_werror_flag"
4226                         || test ! -s conftest.err'
4227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228  (eval $ac_try) 2>&5
4229  ac_status=$?
4230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231  (exit $ac_status); }; } &&
4232         { ac_try='test -s conftest.$ac_objext'
4233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234  (eval $ac_try) 2>&5
4235  ac_status=$?
4236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237  (exit $ac_status); }; }; then
4238  mv conftest.$ac_objext cfortran_test.$ac_objext
4239
4240  ac_save_LIBS=$LIBS
4241  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4242
4243  ac_ext=c
4244ac_cpp='$CPP $CPPFLAGS'
4245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248  ac_success=no
4249  for ac_foobar in foobar FOOBAR; do
4250    for ac_underscore in "" "_"; do
4251      ac_func="$ac_foobar$ac_underscore"
4252      cat >conftest.$ac_ext <<_ACEOF
4253/* confdefs.h.  */
4254_ACEOF
4255cat confdefs.h >>conftest.$ac_ext
4256cat >>conftest.$ac_ext <<_ACEOF
4257/* end confdefs.h.  */
4258
4259/* Override any gcc2 internal prototype to avoid an error.  */
4260#ifdef __cplusplus
4261extern "C"
4262#endif
4263/* We use char because int might match the return type of a gcc2
4264   builtin and then its argument prototype would still apply.  */
4265char $ac_func ();
4266#ifdef F77_DUMMY_MAIN
4267
4268#  ifdef __cplusplus
4269     extern "C"
4270#  endif
4271   int F77_DUMMY_MAIN() { return 1; }
4272
4273#endif
4274int
4275main ()
4276{
4277$ac_func ();
4278  ;
4279  return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext conftest$ac_exeext
4283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284  (eval $ac_link) 2>conftest.er1
4285  ac_status=$?
4286  grep -v '^ *+' conftest.er1 >conftest.err
4287  rm -f conftest.er1
4288  cat conftest.err >&5
4289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290  (exit $ac_status); } &&
4291         { ac_try='test -z "$ac_c_werror_flag"
4292                         || test ! -s conftest.err'
4293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294  (eval $ac_try) 2>&5
4295  ac_status=$?
4296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297  (exit $ac_status); }; } &&
4298         { ac_try='test -s conftest$ac_exeext'
4299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300  (eval $ac_try) 2>&5
4301  ac_status=$?
4302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303  (exit $ac_status); }; }; then
4304  ac_success=yes; break 2
4305else
4306  echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309fi
4310rm -f conftest.err conftest.$ac_objext \
4311      conftest$ac_exeext conftest.$ac_ext
4312    done
4313  done
4314  ac_ext=f
4315ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4316ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4318
4319  if test "$ac_success" = "yes"; then
4320     case $ac_foobar in
4321        foobar)
4322           ac_case=lower
4323           ac_foo_bar=foo_bar
4324           ;;
4325        FOOBAR)
4326           ac_case=upper
4327           ac_foo_bar=FOO_BAR
4328           ;;
4329     esac
4330
4331     ac_ext=c
4332ac_cpp='$CPP $CPPFLAGS'
4333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336     ac_success_extra=no
4337     for ac_extra in "" "_"; do
4338        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4339        cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h.  */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h.  */
4345
4346/* Override any gcc2 internal prototype to avoid an error.  */
4347#ifdef __cplusplus
4348extern "C"
4349#endif
4350/* We use char because int might match the return type of a gcc2
4351   builtin and then its argument prototype would still apply.  */
4352char $ac_func ();
4353#ifdef F77_DUMMY_MAIN
4354
4355#  ifdef __cplusplus
4356     extern "C"
4357#  endif
4358   int F77_DUMMY_MAIN() { return 1; }
4359
4360#endif
4361int
4362main ()
4363{
4364$ac_func ();
4365  ;
4366  return 0;
4367}
4368_ACEOF
4369rm -f conftest.$ac_objext conftest$ac_exeext
4370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4371  (eval $ac_link) 2>conftest.er1
4372  ac_status=$?
4373  grep -v '^ *+' conftest.er1 >conftest.err
4374  rm -f conftest.er1
4375  cat conftest.err >&5
4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377  (exit $ac_status); } &&
4378         { ac_try='test -z "$ac_c_werror_flag"
4379                         || test ! -s conftest.err'
4380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381  (eval $ac_try) 2>&5
4382  ac_status=$?
4383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384  (exit $ac_status); }; } &&
4385         { ac_try='test -s conftest$ac_exeext'
4386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387  (eval $ac_try) 2>&5
4388  ac_status=$?
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); }; }; then
4391  ac_success_extra=yes; break
4392else
4393  echo "$as_me: failed program was:" >&5
4394sed 's/^/| /' conftest.$ac_ext >&5
4395
4396fi
4397rm -f conftest.err conftest.$ac_objext \
4398      conftest$ac_exeext conftest.$ac_ext
4399     done
4400     ac_ext=f
4401ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4402ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4404
4405     if test "$ac_success_extra" = "yes"; then
4406        ac_cv_f77_mangling="$ac_case case"
4407        if test -z "$ac_underscore"; then
4408           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4409        else
4410           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4411        fi
4412        if test -z "$ac_extra"; then
4413           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4414        else
4415           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4416        fi
4417      else
4418        ac_cv_f77_mangling="unknown"
4419      fi
4420  else
4421     ac_cv_f77_mangling="unknown"
4422  fi
4423
4424  LIBS=$ac_save_LIBS
4425  rm -f cfortran_test* conftest*
4426else
4427  echo "$as_me: failed program was:" >&5
4428sed 's/^/| /' conftest.$ac_ext >&5
4429
4430{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4431See \`config.log' for more details." >&5
4432echo "$as_me: error: cannot compile a simple Fortran program
4433See \`config.log' for more details." >&2;}
4434   { (exit 1); exit 1; }; }
4435fi
4436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4437
4438fi
4439echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4440echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4441
4442ac_ext=f
4443ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4444ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4446
4447
4448ac_ext=f
4449ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4450ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4452
4453
4454save_FLIBS="$FLIBS"
4455
4456ac_ext=f
4457ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4458ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4460
4461
4462case $ac_cv_f77_mangling in
4463  "lower case, no underscore, no extra underscore")
4464          cat >>confdefs.h <<\_ACEOF
4465#define F77_FUNC(name,NAME) name
4466_ACEOF
4467
4468          cat >>confdefs.h <<\_ACEOF
4469#define F77_FUNC_(name,NAME) name
4470_ACEOF
4471 ;;
4472  "lower case, no underscore, extra underscore")
4473          cat >>confdefs.h <<\_ACEOF
4474#define F77_FUNC(name,NAME) name
4475_ACEOF
4476
4477          cat >>confdefs.h <<\_ACEOF
4478#define F77_FUNC_(name,NAME) name ## _
4479_ACEOF
4480 ;;
4481  "lower case, underscore, no extra underscore")
4482          cat >>confdefs.h <<\_ACEOF
4483#define F77_FUNC(name,NAME) name ## _
4484_ACEOF
4485
4486          cat >>confdefs.h <<\_ACEOF
4487#define F77_FUNC_(name,NAME) name ## _
4488_ACEOF
4489 ;;
4490  "lower case, underscore, extra underscore")
4491          cat >>confdefs.h <<\_ACEOF
4492#define F77_FUNC(name,NAME) name ## _
4493_ACEOF
4494
4495          cat >>confdefs.h <<\_ACEOF
4496#define F77_FUNC_(name,NAME) name ## __
4497_ACEOF
4498 ;;
4499  "upper case, no underscore, no extra underscore")
4500          cat >>confdefs.h <<\_ACEOF
4501#define F77_FUNC(name,NAME) NAME
4502_ACEOF
4503
4504          cat >>confdefs.h <<\_ACEOF
4505#define F77_FUNC_(name,NAME) NAME
4506_ACEOF
4507 ;;
4508  "upper case, no underscore, extra underscore")
4509          cat >>confdefs.h <<\_ACEOF
4510#define F77_FUNC(name,NAME) NAME
4511_ACEOF
4512
4513          cat >>confdefs.h <<\_ACEOF
4514#define F77_FUNC_(name,NAME) NAME ## _
4515_ACEOF
4516 ;;
4517  "upper case, underscore, no extra underscore")
4518          cat >>confdefs.h <<\_ACEOF
4519#define F77_FUNC(name,NAME) NAME ## _
4520_ACEOF
4521
4522          cat >>confdefs.h <<\_ACEOF
4523#define F77_FUNC_(name,NAME) NAME ## _
4524_ACEOF
4525 ;;
4526  "upper case, underscore, extra underscore")
4527          cat >>confdefs.h <<\_ACEOF
4528#define F77_FUNC(name,NAME) NAME ## _
4529_ACEOF
4530
4531          cat >>confdefs.h <<\_ACEOF
4532#define F77_FUNC_(name,NAME) NAME ## __
4533_ACEOF
4534 ;;
4535  *)
4536          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4537echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4538          ;;
4539esac
4540
4541ac_ext=f
4542ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4543ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4545
4546
4547if test x"$save_FLIBS" != x; then
4548  FLIBS="$save_FLIBS"
4549else
4550  # This is to correct a missing exclusion in autoconf 2.59
4551  if test x"$FLIBS" != x; then
4552    my_flibs=
4553    for flag in $FLIBS; do
4554      case $flag in
4555        -lcrt*.o) ;;
4556               *) my_flibs="$my_flibs $flag" ;;
4557      esac
4558    done
4559    FLIBS="$my_flibs"
4560  fi
4561
4562  case $build in
4563  # The following is a fix to define FLIBS for ifort on Windows
4564     *-cygwin* | *-mingw*)
4565       case "$F77" in
4566         ifort* | */ifort* | IFORT* | */IFORT*)
4567           FLIBS="-link libifcorert.lib $LIBS /NODEFAULTLIB:libc.lib";;
4568         compile_f2c*)
4569           FLIBS=`$F77 -FLIBS` ;;
4570       esac;;
4571     *-hp-*)
4572         FLIBS="$FLIBS -lm";;
4573     *-ibm-*)
4574         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4575     *-linux-*)
4576       case "$F77" in
4577         pgf77* | */pgf77* | pgf90* | */pgf90*)
4578# ask linker to go through the archives multiple times
4579# (the Fortran compiler seems to do that automatically...
4580           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4581       esac
4582  esac
4583  ac_cv_f77_libs="$FLIBS"
4584fi
4585
4586ac_ext=c
4587ac_cpp='$CPP $CPPFLAGS'
4588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591
4592
4593
4594
4595# We need to translate the result from autoconf to what MUMPS wants
4596case "$ac_cv_f77_mangling" in
4597  "lower case, no underscore, no extra underscore")
4598  ;;
4599  "lower case, underscore, no extra underscore")
4600  MY_DEFS="-DAdd_"
4601  ;;
4602  "lower case, no underscore, extra underscore")
4603  MY_DEFS="-DAdd_"
4604  ;;
4605  "lower case, underscore, extra underscore")
4606  MY_DEFS="-DAdd__"
4607  ;;
4608  "upper case, no underscore, no extra underscore")
4609  MY_DEFS="-DUPPER"
4610  ;;
4611  "upper case, no underscore, extra underscore")
4612  MY_DEFS="-DUPPER"
4613  ;;
4614  "upper case, underscore, no extra underscore")
4615  MY_DEFS="-DUPPER"
4616  ;;
4617  "upper case, underscore, extra underscore")
4618  MY_DEFS="-DUPPER"
4619  ;;
4620esac
4621MY_DEFS="$MY_DEFS -DALLOW_NON_INIT"
4622
4623
4624# Initialize automake
4625{
4626
4627
4628
4629# START
4630
4631# On Cygwin, building DLLs doesn't work
4632case $build in
4633  *-cygwin*)
4634    coin_disable_shared=yes
4635    platform=Cygwin
4636  ;;
4637  *-mingw*)
4638    coin_disable_shared=yes
4639    platform="Msys"
4640#    case "$CXX" in
4641#      cl*)
4642#        coin_disable_shared=yes
4643#        platform="Msys with cl"
4644#    ;;
4645#    esac
4646  ;;
4647esac
4648if test x"$coin_disable_shared" = xyes; then
4649  if test x"$enable_shared" = xyes; then
4650    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4651echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4652  fi
4653  enable_shared=no
4654fi
4655# By default, we only want the shared objects to be compiled
4656# Check whether --enable-static or --disable-static was given.
4657if test "${enable_static+set}" = set; then
4658  enableval="$enable_static"
4659  p=${PACKAGE-default}
4660    case $enableval in
4661    yes) enable_static=yes ;;
4662    no) enable_static=no ;;
4663    *)
4664     enable_static=no
4665      # Look at the argument we got.  We use all the common list separators.
4666      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4667      for pkg in $enableval; do
4668        IFS="$lt_save_ifs"
4669        if test "X$pkg" = "X$p"; then
4670          enable_static=yes
4671        fi
4672      done
4673      IFS="$lt_save_ifs"
4674      ;;
4675    esac
4676else
4677  enable_static=no
4678fi;
4679
4680
4681
4682
4683# Initialize automake
4684echo "$as_me:$LINENO: checking for egrep" >&5
4685echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4686if test "${ac_cv_prog_egrep+set}" = set; then
4687  echo $ECHO_N "(cached) $ECHO_C" >&6
4688else
4689  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4690    then ac_cv_prog_egrep='grep -E'
4691    else ac_cv_prog_egrep='egrep'
4692    fi
4693fi
4694echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4695echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4696 EGREP=$ac_cv_prog_egrep
4697
4698
4699am__api_version="1.9"
4700# Find a good install program.  We prefer a C program (faster),
4701# so one script is as good as another.  But avoid the broken or
4702# incompatible versions:
4703# SysV /etc/install, /usr/sbin/install
4704# SunOS /usr/etc/install
4705# IRIX /sbin/install
4706# AIX /bin/install
4707# AmigaOS /C/install, which installs bootblocks on floppy discs
4708# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4709# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4710# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4711# OS/2's system install, which has a completely different semantic
4712# ./install, which can be erroneously created by make from ./install.sh.
4713echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4714echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4715if test -z "$INSTALL"; then
4716if test "${ac_cv_path_install+set}" = set; then
4717  echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH
4721do
4722  IFS=$as_save_IFS
4723  test -z "$as_dir" && as_dir=.
4724  # Account for people who put trailing slashes in PATH elements.
4725case $as_dir/ in
4726  ./ | .// | /cC/* | \
4727  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4728  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4729  /usr/ucb/* ) ;;
4730  *)
4731    # OSF1 and SCO ODT 3.0 have their own names for install.
4732    # Don't use installbsd from OSF since it installs stuff as root
4733    # by default.
4734    for ac_prog in ginstall scoinst install; do
4735      for ac_exec_ext in '' $ac_executable_extensions; do
4736        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4737          if test $ac_prog = install &&
4738            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4739            # AIX install.  It has an incompatible calling convention.
4740            :
4741          elif test $ac_prog = install &&
4742            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4743            # program-specific install script used by HP pwplus--don't use.
4744            :
4745          else
4746            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4747            break 3
4748          fi
4749        fi
4750      done
4751    done
4752    ;;
4753esac
4754done
4755
4756
4757fi
4758  if test "${ac_cv_path_install+set}" = set; then
4759    INSTALL=$ac_cv_path_install
4760  else
4761    # As a last resort, use the slow shell script.  We don't cache a
4762    # path for INSTALL within a source directory, because that will
4763    # break other packages using the cache if that directory is
4764    # removed, or if the path is relative.
4765    INSTALL=$ac_install_sh
4766  fi
4767fi
4768echo "$as_me:$LINENO: result: $INSTALL" >&5
4769echo "${ECHO_T}$INSTALL" >&6
4770
4771# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4772# It thinks the first close brace ends the variable substitution.
4773test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4774
4775test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4776
4777test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4778
4779echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4780echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4781# Just in case
4782sleep 1
4783echo timestamp > conftest.file
4784# Do `set' in a subshell so we don't clobber the current shell's
4785# arguments.  Must try -L first in case configure is actually a
4786# symlink; some systems play weird games with the mod time of symlinks
4787# (eg FreeBSD returns the mod time of the symlink's containing
4788# directory).
4789if (
4790   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4791   if test "$*" = "X"; then
4792      # -L didn't work.
4793      set X `ls -t $srcdir/configure conftest.file`
4794   fi
4795   rm -f conftest.file
4796   if test "$*" != "X $srcdir/configure conftest.file" \
4797      && test "$*" != "X conftest.file $srcdir/configure"; then
4798
4799      # If neither matched, then we have a broken ls.  This can happen
4800      # if, for instance, CONFIG_SHELL is bash and it inherits a
4801      # broken ls alias from the environment.  This has actually
4802      # happened.  Such a system could not be considered "sane".
4803      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4804alias in your environment" >&5
4805echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4806alias in your environment" >&2;}
4807   { (exit 1); exit 1; }; }
4808   fi
4809
4810   test "$2" = conftest.file
4811   )
4812then
4813   # Ok.
4814   :
4815else
4816   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4817Check your system clock" >&5
4818echo "$as_me: error: newly created file is older than distributed files!
4819Check your system clock" >&2;}
4820   { (exit 1); exit 1; }; }
4821fi
4822echo "$as_me:$LINENO: result: yes" >&5
4823echo "${ECHO_T}yes" >&6
4824test "$program_prefix" != NONE &&
4825  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4826# Use a double $ so make ignores it.
4827test "$program_suffix" != NONE &&
4828  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4829# Double any \ or $.  echo might interpret backslashes.
4830# By default was `s,x,x', remove it if useless.
4831cat <<\_ACEOF >conftest.sed
4832s/[\\$]/&&/g;s/;s,x,x,$//
4833_ACEOF
4834program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4835rm conftest.sed
4836
4837# expand $ac_aux_dir to an absolute path
4838am_aux_dir=`cd $ac_aux_dir && pwd`
4839
4840test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4841# Use eval to expand $SHELL
4842if eval "$MISSING --run true"; then
4843  am_missing_run="$MISSING --run "
4844else
4845  am_missing_run=
4846  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4847echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4848fi
4849
4850if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4851  # We used to keeping the `.' as first argument, in order to
4852  # allow $(mkdir_p) to be used without argument.  As in
4853  #   $(mkdir_p) $(somedir)
4854  # where $(somedir) is conditionally defined.  However this is wrong
4855  # for two reasons:
4856  #  1. if the package is installed by a user who cannot write `.'
4857  #     make install will fail,
4858  #  2. the above comment should most certainly read
4859  #     $(mkdir_p) $(DESTDIR)$(somedir)
4860  #     so it does not work when $(somedir) is undefined and
4861  #     $(DESTDIR) is not.
4862  #  To support the latter case, we have to write
4863  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4864  #  so the `.' trick is pointless.
4865  mkdir_p='mkdir -p --'
4866else
4867  # On NextStep and OpenStep, the `mkdir' command does not
4868  # recognize any option.  It will interpret all options as
4869  # directories to create, and then abort because `.' already
4870  # exists.
4871  for d in ./-p ./--version;
4872  do
4873    test -d $d && rmdir $d
4874  done
4875  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4876  if test -f "$ac_aux_dir/mkinstalldirs"; then
4877    mkdir_p='$(mkinstalldirs)'
4878  else
4879    mkdir_p='$(install_sh) -d'
4880  fi
4881fi
4882
4883for ac_prog in gawk mawk nawk awk
4884do
4885  # Extract the first word of "$ac_prog", so it can be a program name with args.
4886set dummy $ac_prog; ac_word=$2
4887echo "$as_me:$LINENO: checking for $ac_word" >&5
4888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4889if test "${ac_cv_prog_AWK+set}" = set; then
4890  echo $ECHO_N "(cached) $ECHO_C" >&6
4891else
4892  if test -n "$AWK"; then
4893  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4894else
4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898  IFS=$as_save_IFS
4899  test -z "$as_dir" && as_dir=.
4900  for ac_exec_ext in '' $ac_executable_extensions; do
4901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902    ac_cv_prog_AWK="$ac_prog"
4903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904    break 2
4905  fi
4906done
4907done
4908
4909fi
4910fi
4911AWK=$ac_cv_prog_AWK
4912if test -n "$AWK"; then
4913  echo "$as_me:$LINENO: result: $AWK" >&5
4914echo "${ECHO_T}$AWK" >&6
4915else
4916  echo "$as_me:$LINENO: result: no" >&5
4917echo "${ECHO_T}no" >&6
4918fi
4919
4920  test -n "$AWK" && break
4921done
4922
4923echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4924echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4925set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4926if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4927  echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929  cat >conftest.make <<\_ACEOF
4930all:
4931        @echo 'ac_maketemp="$(MAKE)"'
4932_ACEOF
4933# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4934eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4935if test -n "$ac_maketemp"; then
4936  eval ac_cv_prog_make_${ac_make}_set=yes
4937else
4938  eval ac_cv_prog_make_${ac_make}_set=no
4939fi
4940rm -f conftest.make
4941fi
4942if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4943  echo "$as_me:$LINENO: result: yes" >&5
4944echo "${ECHO_T}yes" >&6
4945  SET_MAKE=
4946else
4947  echo "$as_me:$LINENO: result: no" >&5
4948echo "${ECHO_T}no" >&6
4949  SET_MAKE="MAKE=${MAKE-make}"
4950fi
4951
4952rm -rf .tst 2>/dev/null
4953mkdir .tst 2>/dev/null
4954if test -d .tst; then
4955  am__leading_dot=.
4956else
4957  am__leading_dot=_
4958fi
4959rmdir .tst 2>/dev/null
4960
4961DEPDIR="${am__leading_dot}deps"
4962
4963          ac_config_commands="$ac_config_commands depfiles"
4964
4965
4966am_make=${MAKE-make}
4967cat > confinc << 'END'
4968am__doit:
4969        @echo done
4970.PHONY: am__doit
4971END
4972# If we don't find an include directive, just comment out the code.
4973echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4974echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4975am__include="#"
4976am__quote=
4977_am_result=none
4978# First try GNU make style include.
4979echo "include confinc" > confmf
4980# We grep out `Entering directory' and `Leaving directory'
4981# messages which can occur if `w' ends up in MAKEFLAGS.
4982# In particular we don't look at `^make:' because GNU make might
4983# be invoked under some other name (usually "gmake"), in which
4984# case it prints its new name instead of `make'.
4985if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4986   am__include=include
4987   am__quote=
4988   _am_result=GNU
4989fi
4990# Now try BSD make style include.
4991if test "$am__include" = "#"; then
4992   echo '.include "confinc"' > confmf
4993   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4994      am__include=.include
4995      am__quote="\""
4996      _am_result=BSD
4997   fi
4998fi
4999
5000
5001echo "$as_me:$LINENO: result: $_am_result" >&5
5002echo "${ECHO_T}$_am_result" >&6
5003rm -f confinc confmf
5004
5005# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5006if test "${enable_dependency_tracking+set}" = set; then
5007  enableval="$enable_dependency_tracking"
5008
5009fi;
5010if test "x$enable_dependency_tracking" != xno; then
5011  am_depcomp="$ac_aux_dir/depcomp"
5012  AMDEPBACKSLASH='\'
5013fi
5014
5015
5016if test "x$enable_dependency_tracking" != xno; then
5017  AMDEP_TRUE=
5018  AMDEP_FALSE='#'
5019else
5020  AMDEP_TRUE='#'
5021  AMDEP_FALSE=
5022fi
5023
5024
5025
5026
5027
5028# AC_MSG_NOTICE([Beginning automake initialisation.])
5029# Stuff for automake
5030# test to see if srcdir already configured
5031if test "`cd $srcdir && pwd`" != "`pwd`" &&
5032   test -f $srcdir/config.status; then
5033  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5034echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5035   { (exit 1); exit 1; }; }
5036fi
5037
5038# test whether we have cygpath
5039if test -z "$CYGPATH_W"; then
5040  if (cygpath --version) >/dev/null 2>/dev/null; then
5041    CYGPATH_W='cygpath -w'
5042  else
5043    CYGPATH_W=echo
5044  fi
5045fi
5046
5047
5048# Define the identity of the package.
5049 PACKAGE='thirdpartymumps'
5050 VERSION='1.0trunk'
5051
5052
5053cat >>confdefs.h <<_ACEOF
5054#define PACKAGE "$PACKAGE"
5055_ACEOF
5056
5057
5058cat >>confdefs.h <<_ACEOF
5059#define VERSION "$VERSION"
5060_ACEOF
5061
5062# Some tools Automake needs.
5063
5064ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5065
5066
5067AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5068
5069
5070AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5071
5072
5073AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5074
5075
5076MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5077
5078install_sh=${install_sh-"$am_aux_dir/install-sh"}
5079
5080# Installed binaries are usually stripped using `strip' when the user
5081# run `make install-strip'.  However `strip' might not be the right
5082# tool to use in cross-compilation environments, therefore Automake
5083# will honor the `STRIP' environment variable to overrule this program.
5084if test "$cross_compiling" != no; then
5085  if test -n "$ac_tool_prefix"; then
5086  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5087set dummy ${ac_tool_prefix}strip; ac_word=$2
5088echo "$as_me:$LINENO: checking for $ac_word" >&5
5089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5090if test "${ac_cv_prog_STRIP+set}" = set; then
5091  echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093  if test -n "$STRIP"; then
5094  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5095else
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099  IFS=$as_save_IFS
5100  test -z "$as_dir" && as_dir=.
5101  for ac_exec_ext in '' $ac_executable_extensions; do
5102  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5104    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105    break 2
5106  fi
5107done
5108done
5109
5110fi
5111fi
5112STRIP=$ac_cv_prog_STRIP
5113if test -n "$STRIP"; then
5114  echo "$as_me:$LINENO: result: $STRIP" >&5
5115echo "${ECHO_T}$STRIP" >&6
5116else
5117  echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6
5119fi
5120
5121fi
5122if test -z "$ac_cv_prog_STRIP"; then
5123  ac_ct_STRIP=$STRIP
5124  # Extract the first word of "strip", so it can be a program name with args.
5125set dummy strip; ac_word=$2
5126echo "$as_me:$LINENO: checking for $ac_word" >&5
5127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5128if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5129  echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131  if test -n "$ac_ct_STRIP"; then
5132  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137  IFS=$as_save_IFS
5138  test -z "$as_dir" && as_dir=.
5139  for ac_exec_ext in '' $ac_executable_extensions; do
5140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141    ac_cv_prog_ac_ct_STRIP="strip"
5142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143    break 2
5144  fi
5145done
5146done
5147
5148  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5149fi
5150fi
5151ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5152if test -n "$ac_ct_STRIP"; then
5153  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5154echo "${ECHO_T}$ac_ct_STRIP" >&6
5155else
5156  echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158fi
5159
5160  STRIP=$ac_ct_STRIP
5161else
5162  STRIP="$ac_cv_prog_STRIP"
5163fi
5164
5165fi
5166INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5167
5168# We need awk for the "check" target.  The system "awk" is bad on
5169# some platforms.
5170# Always define AMTAR for backward compatibility.
5171
5172AMTAR=${AMTAR-"${am_missing_run}tar"}
5173
5174am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5175
5176
5177
5178
5179depcc="$CC"   am_compiler_list=
5180
5181echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5182echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5183if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5184  echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5187  # We make a subdir and do the tests there.  Otherwise we can end up
5188  # making bogus files that we don't know about and never remove.  For
5189  # instance it was reported that on HP-UX the gcc test will end up
5190  # making a dummy file named `D' -- because `-MD' means `put the output
5191  # in D'.
5192  mkdir conftest.dir
5193  # Copy depcomp to subdir because otherwise we won't find it if we're
5194  # using a relative directory.
5195  cp "$am_depcomp" conftest.dir
5196  cd conftest.dir
5197  # We will build objects and dependencies in a subdirectory because
5198  # it helps to detect inapplicable dependency modes.  For instance
5199  # both Tru64's cc and ICC support -MD to output dependencies as a
5200  # side effect of compilation, but ICC will put the dependencies in
5201  # the current directory while Tru64 will put them in the object
5202  # directory.
5203  mkdir sub
5204
5205  am_cv_CC_dependencies_compiler_type=none
5206  if test "$am_compiler_list" = ""; then
5207     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5208  fi
5209  for depmode in $am_compiler_list; do
5210    # Setup a source with many dependencies, because some compilers
5211    # like to wrap large dependency lists on column 80 (with \), and
5212    # we should not choose a depcomp mode which is confused by this.
5213    #
5214    # We need to recreate these files for each test, as the compiler may
5215    # overwrite some of them when testing with obscure command lines.
5216    # This happens at least with the AIX C compiler.
5217    : > sub/conftest.c
5218    for i in 1 2 3 4 5 6; do
5219      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5220      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5221      # Solaris 8's {/usr,}/bin/sh.
5222      touch sub/conftst$i.h
5223    done
5224    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5225
5226    case $depmode in
5227    nosideeffect)
5228      # after this tag, mechanisms are not by side-effect, so they'll
5229      # only be used when explicitly requested
5230      if test "x$enable_dependency_tracking" = xyes; then
5231        continue
5232      else
5233        break
5234      fi
5235      ;;
5236    none) break ;;
5237    esac
5238    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5239    # mode.  It turns out that the SunPro C++ compiler does not properly
5240    # handle `-M -o', and we need to detect this.
5241    if depmode=$depmode \
5242       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5243       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5244       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5245         >/dev/null 2>conftest.err &&
5246       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5247       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5248       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5249      # icc doesn't choke on unknown options, it will just issue warnings
5250      # or remarks (even with -Werror).  So we grep stderr for any message
5251      # that says an option was ignored or not supported.
5252      # When given -MP, icc 7.0 and 7.1 complain thusly:
5253      #   icc: Command line warning: ignoring option '-M'; no argument required
5254      # The diagnosis changed in icc 8.0:
5255      #   icc: Command line remark: option '-MP' not supported
5256      if (grep 'ignoring option' conftest.err ||
5257          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5258        am_cv_CC_dependencies_compiler_type=$depmode
5259        break
5260      fi
5261    fi
5262  done
5263
5264  cd ..
5265  rm -rf conftest.dir
5266else
5267  am_cv_CC_dependencies_compiler_type=none
5268fi
5269
5270fi
5271echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5272echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5273CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5274
5275
5276
5277if
5278  test "x$enable_dependency_tracking" != xno \
5279  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5280  am__fastdepCC_TRUE=
5281  am__fastdepCC_FALSE='#'
5282else
5283  am__fastdepCC_TRUE='#'
5284  am__fastdepCC_FALSE=
5285fi
5286
5287
5288
5289echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5290echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5291    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5292if test "${enable_maintainer_mode+set}" = set; then
5293  enableval="$enable_maintainer_mode"
5294  USE_MAINTAINER_MODE=$enableval
5295else
5296  USE_MAINTAINER_MODE=no
5297fi;
5298  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5299echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5300
5301
5302if test $USE_MAINTAINER_MODE = yes; then
5303  MAINTAINER_MODE_TRUE=
5304  MAINTAINER_MODE_FALSE='#'
5305else
5306  MAINTAINER_MODE_TRUE='#'
5307  MAINTAINER_MODE_FALSE=
5308fi
5309
5310  MAINT=$MAINTAINER_MODE_TRUE
5311
5312
5313
5314coin_have_externals=no
5315if test "$enable_maintainer_mode" = yes; then
5316
5317  # If maintainer mode is chosen, we make sure that the correct versions
5318  # of the tools are used, and that we know where libtool.m4 is (to
5319  # recreate acinclude.m4)
5320
5321
5322  LIBTOOLM4=
5323  # Normally, $HOME
5324  AUTOTOOLS_DFLT=$HOME
5325
5326  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5327echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5328if test "${ac_cv_use_correct_autotools+set}" = set; then
5329  echo $ECHO_N "(cached) $ECHO_C" >&6
5330else
5331  ac_cv_use_correct_autotools=check
5332fi
5333echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5334echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5335
5336  if test $ac_cv_use_correct_autotools = check; then
5337    ac_cv_use_correct_autotools=yes
5338    # Check if we have autoconf
5339    # Extract the first word of "autoconf", so it can be a program name with args.
5340set dummy autoconf; ac_word=$2
5341echo "$as_me:$LINENO: checking for $ac_word" >&5
5342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343if test "${ac_cv_prog_have_autoconf+set}" = set; then
5344  echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346  if test -n "$have_autoconf"; then
5347  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5348else
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352  IFS=$as_save_IFS
5353  test -z "$as_dir" && as_dir=.
5354  for ac_exec_ext in '' $ac_executable_extensions; do
5355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356    ac_cv_prog_have_autoconf="yes"
5357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358    break 2
5359  fi
5360done
5361done
5362
5363  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5364fi
5365fi
5366have_autoconf=$ac_cv_prog_have_autoconf
5367if test -n "$have_autoconf"; then
5368  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5369echo "${ECHO_T}$have_autoconf" >&6
5370else
5371  echo "$as_me:$LINENO: result: no" >&5
5372echo "${ECHO_T}no" >&6
5373fi
5374
5375    if test $have_autoconf = no; then
5376      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5377echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5378   { (exit 1); exit 1; }; }
5379    fi
5380
5381    # Check whether autoconf is the correct version
5382    correct_version='2.59'
5383    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5384    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5385echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5386    autoconf --version > confauto.out 2>&1
5387    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5388      echo "$as_me:$LINENO: result: yes" >&5
5389echo "${ECHO_T}yes" >&6
5390    else
5391      rm -f confauto.out
5392      echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
5394      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5395echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5396   { (exit 1); exit 1; }; }
5397    fi
5398    rm -f confauto.out
5399
5400    # Check if the executable autoconf is picked up from the correct location
5401    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5402echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5403    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5404    autoconf_dir=`cd $autoconf_dir; pwd`
5405    if test x$AUTOTOOLS_DIR = x; then
5406      want_dir=$AUTOTOOLS_DFLT/bin
5407    else
5408      want_dir=$AUTOTOOLS_DIR/bin
5409    fi
5410    if test $autoconf_dir = `cd $want_dir; pwd`; then
5411      echo "$as_me:$LINENO: result: yes" >&5
5412echo "${ECHO_T}yes" >&6
5413    else
5414      rm -f confauto.out
5415      echo "$as_me:$LINENO: result: no" >&5
5416echo "${ECHO_T}no" >&6
5417      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5418echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5419   { (exit 1); exit 1; }; }
5420    fi
5421
5422    # Check if we have automake
5423    # Extract the first word of "automake", so it can be a program name with args.
5424set dummy automake; ac_word=$2
5425echo "$as_me:$LINENO: checking for $ac_word" >&5
5426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427if test "${ac_cv_prog_have_automake+set}" = set; then
5428  echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430  if test -n "$have_automake"; then
5431  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5432else
5433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436  IFS=$as_save_IFS
5437  test -z "$as_dir" && as_dir=.
5438  for ac_exec_ext in '' $ac_executable_extensions; do
5439  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440    ac_cv_prog_have_automake="yes"
5441    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442    break 2
5443  fi
5444done
5445done
5446
5447  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5448fi
5449fi
5450have_automake=$ac_cv_prog_have_automake
5451if test -n "$have_automake"; then
5452  echo "$as_me:$LINENO: result: $have_automake" >&5
5453echo "${ECHO_T}$have_automake" >&6
5454else
5455  echo "$as_me:$LINENO: result: no" >&5
5456echo "${ECHO_T}no" >&6
5457fi
5458
5459    if test $have_automake = no; then
5460      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5461echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5462   { (exit 1); exit 1; }; }
5463    fi
5464
5465    # Check whether automake is the correct version
5466    correct_version='1.9.6'
5467    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5468    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5469echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5470    automake --version > confauto.out 2>&1
5471    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5472      echo "$as_me:$LINENO: result: yes" >&5
5473echo "${ECHO_T}yes" >&6
5474    else
5475      rm -f confauto.out
5476      echo "$as_me:$LINENO: result: no" >&5
5477echo "${ECHO_T}no" >&6
5478      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5479echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5480   { (exit 1); exit 1; }; }
5481    fi
5482    rm -f confauto.out
5483
5484    # Check if the executable automake is picked up from the correct location
5485    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5486echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5487    automake_dir=`which automake | sed -e 's=/automake=='`
5488    automake_dir=`cd $automake_dir; pwd`
5489    if test x$AUTOTOOLS_DIR = x; then
5490      want_dir=$AUTOTOOLS_DFLT/bin
5491    else
5492      want_dir=$AUTOTOOLS_DIR/bin
5493    fi
5494    if test $automake_dir = `cd $want_dir; pwd`; then
5495      echo "$as_me:$LINENO: result: yes" >&5
5496echo "${ECHO_T}yes" >&6
5497    else
5498      rm -f confauto.out
5499      echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5502echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5503   { (exit 1); exit 1; }; }
5504    fi
5505
5506    # Check if this is the correct version of libtool (with escaped dots)
5507    if test x$AUTOTOOLS_DIR = x; then
5508      want_dir=$AUTOTOOLS_DFLT/share
5509    else
5510      want_dir=$AUTOTOOLS_DIR/share
5511    fi
5512    correct_version='1.5.22'
5513    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5514    if test -r $want_dir/libtool/ltmain.sh; then
5515  have_ltmain=yes
5516  :
5517else
5518  have_ltmain=no
5519  :
5520fi
5521
5522    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5523echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5524    if test $have_ltmain = yes; then
5525    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5526        echo "$as_me:$LINENO: result: yes" >&5
5527echo "${ECHO_T}yes" >&6
5528      else
5529        echo "$as_me:$LINENO: result: no" >&5
5530echo "${ECHO_T}no" >&6
5531        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5532echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5533   { (exit 1); exit 1; }; }
5534      fi
5535    else
5536      echo "$as_me:$LINENO: result: no" >&5
5537echo "${ECHO_T}no" >&6
5538      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5539echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5540   { (exit 1); exit 1; }; }
5541    fi
5542  fi
5543
5544  # Check if we can find the libtool file
5545  if test x$AUTOTOOLS_DIR = x; then
5546    want_dir=$AUTOTOOLS_DFLT/share
5547  else
5548    want_dir=$AUTOTOOLS_DIR/share
5549  fi
5550  if test -r $want_dir/aclocal/libtool.m4; then
5551  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5552  :
5553else
5554  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5555echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5556   { (exit 1); exit 1; }; }
5557  :
5558fi
5559
5560
5561  # Check if we have an Externals file
5562  if test -r $srcdir/Externals; then
5563    coin_have_externals=yes
5564  fi
5565  # Check if subversion is installed and understands https
5566  # Extract the first word of "svn", so it can be a program name with args.
5567set dummy svn; ac_word=$2
5568echo "$as_me:$LINENO: checking for $ac_word" >&5
5569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570if test "${ac_cv_prog_have_svn+set}" = set; then
5571  echo $ECHO_N "(cached) $ECHO_C" >&6
5572else
5573  if test -n "$have_svn"; then
5574  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5575else
5576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH
5578do
5579  IFS=$as_save_IFS
5580  test -z "$as_dir" && as_dir=.
5581  for ac_exec_ext in '' $ac_executable_extensions; do
5582  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583    ac_cv_prog_have_svn="yes"
5584    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585    break 2
5586  fi
5587done
5588done
5589
5590  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5591fi
5592fi
5593have_svn=$ac_cv_prog_have_svn
5594if test -n "$have_svn"; then
5595  echo "$as_me:$LINENO: result: $have_svn" >&5
5596echo "${ECHO_T}$have_svn" >&6
5597else
5598  echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
5600fi
5601
5602  if test x$have_svn = xyes; then
5603    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5604echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5605if test "${ac_cv_svn_understands_https+set}" = set; then
5606  echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608  svn --version > confauto.out 2>&1
5609                    if $EGREP https confauto.out >/dev/null 2>&1; then
5610                      ac_cv_svn_understands_https=yes
5611                    else
5612                      ac_cv_svn_understands_https=no
5613                      have_svn=no
5614                      ac_cv_prog_have_svn=no
5615                    fi
5616                    rm -f confauto.out
5617fi
5618echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5619echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5620  fi
5621
5622  # Find the location of the BuildTools directory
5623  BUILDTOOLSDIR=
5624  if test -r $srcdir/BuildTools/coin.m4; then
5625    BUILDTOOLSDIR=$srcdir/BuildTools
5626  else
5627    if test -r $srcdir/../BuildTools/coin.m4; then
5628      BUILDTOOLSDIR=$srcdir/../BuildTools
5629    else
5630      if test -r $srcdir/../../BuildTools/coin.m4; then
5631        BUILDTOOLSDIR=$srcdir/../../BuildTools
5632      else
5633        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5634echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5635   { (exit 1); exit 1; }; }
5636      fi
5637    fi
5638  fi
5639
5640
5641  # The following variable is set to the name of the directory where
5642  # the autotool scripts are located
5643
5644  AUX_DIR=$ac_aux_dir
5645fi
5646
5647# helpful variable for the base directory of this package
5648abs_source_dir=`cd $srcdir; pwd`
5649
5650
5651# Stuff for example Makefiles
5652if test x$prefix = xNONE; then
5653  full_prefix=$ac_default_prefix
5654else
5655  full_prefix=$prefix
5656fi
5657full_prefix=`cd $full_prefix ; pwd`
5658
5659abs_lib_dir=$full_prefix/lib
5660
5661abs_include_dir=$full_prefix/include
5662
5663abs_bin_dir=$full_prefix/bin
5664
5665
5666
5667if test $coin_have_externals = yes && test x$have_svn = xyes; then
5668  HAVE_EXTERNALS_TRUE=
5669  HAVE_EXTERNALS_FALSE='#'
5670else
5671  HAVE_EXTERNALS_TRUE='#'
5672  HAVE_EXTERNALS_FALSE=
5673fi
5674
5675
5676# AC_MSG_NOTICE([End automake initialisation.])
5677
5678
5679
5680LIBTOOL=
5681if test -r ../libtool; then
5682  coin_config_dir=..
5683  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5684fi
5685if test "x$LIBTOOL" = x; then
5686  if test -r ../../libtool; then
5687    coin_config_dir=../..
5688    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5689  fi
5690fi
5691
5692if test "x$LIBTOOL" = x; then
5693# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5694  # Stuff for libtool
5695  # Check whether --enable-shared or --disable-shared was given.
5696if test "${enable_shared+set}" = set; then
5697  enableval="$enable_shared"
5698  p=${PACKAGE-default}
5699    case $enableval in
5700    yes) enable_shared=yes ;;
5701    no) enable_shared=no ;;
5702    *)
5703      enable_shared=no
5704      # Look at the argument we got.  We use all the common list separators.
5705      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5706      for pkg in $enableval; do
5707        IFS="$lt_save_ifs"
5708        if test "X$pkg" = "X$p"; then
5709          enable_shared=yes
5710        fi
5711      done
5712      IFS="$lt_save_ifs"
5713      ;;
5714    esac
5715else
5716  enable_shared=yes
5717fi;
5718
5719# Check whether --enable-fast-install or --disable-fast-install was given.
5720if test "${enable_fast_install+set}" = set; then
5721  enableval="$enable_fast_install"
5722  p=${PACKAGE-default}
5723    case $enableval in
5724    yes) enable_fast_install=yes ;;
5725    no) enable_fast_install=no ;;
5726    *)
5727      enable_fast_install=no
5728      # Look at the argument we got.  We use all the common list separators.
5729      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5730      for pkg in $enableval; do
5731        IFS="$lt_save_ifs"
5732        if test "X$pkg" = "X$p"; then
5733          enable_fast_install=yes
5734        fi
5735      done
5736      IFS="$lt_save_ifs"
5737      ;;
5738    esac
5739else
5740  enable_fast_install=yes
5741fi;
5742
5743echo "$as_me:$LINENO: checking host system type" >&5
5744echo $ECHO_N "checking host system type... $ECHO_C" >&6
5745if test "${ac_cv_host+set}" = set; then
5746  echo $ECHO_N "(cached) $ECHO_C" >&6
5747else
5748  ac_cv_host_alias=$host_alias
5749test -z "$ac_cv_host_alias" &&
5750  ac_cv_host_alias=$ac_cv_build_alias
5751ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5752  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5753echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5754   { (exit 1); exit 1; }; }
5755
5756fi
5757echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5758echo "${ECHO_T}$ac_cv_host" >&6
5759host=$ac_cv_host
5760host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5761host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5762host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5763
5764
5765echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5766echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5767if test "${lt_cv_path_SED+set}" = set; then
5768  echo $ECHO_N "(cached) $ECHO_C" >&6
5769else
5770  # Loop through the user's path and test for sed and gsed.
5771# Then use that list of sed's as ones to test for truncation.
5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773for as_dir in $PATH
5774do
5775  IFS=$as_save_IFS
5776  test -z "$as_dir" && as_dir=.
5777  for lt_ac_prog in sed gsed; do
5778    for ac_exec_ext in '' $ac_executable_extensions; do
5779      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5780        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5781      fi
5782    done
5783  done
5784done
5785lt_ac_max=0
5786lt_ac_count=0
5787# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5788# along with /bin/sed that truncates output.
5789for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5790  test ! -f $lt_ac_sed && continue
5791  cat /dev/null > conftest.in
5792  lt_ac_count=0
5793  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5794  # Check for GNU sed and select it if it is found.
5795  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5796    lt_cv_path_SED=$lt_ac_sed
5797    break
5798  fi
5799  while true; do
5800    cat conftest.in conftest.in >conftest.tmp
5801    mv conftest.tmp conftest.in
5802    cp conftest.in conftest.nl
5803    echo >>conftest.nl
5804    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5805    cmp -s conftest.out conftest.nl || break
5806    # 10000 chars as input seems more than enough
5807    test $lt_ac_count -gt 10 && break
5808    lt_ac_count=`expr $lt_ac_count + 1`
5809    if test $lt_ac_count -gt $lt_ac_max; then
5810      lt_ac_max=$lt_ac_count
5811      lt_cv_path_SED=$lt_ac_sed
5812    fi
5813  done
5814done
5815
5816fi
5817
5818SED=$lt_cv_path_SED
5819echo "$as_me:$LINENO: result: $SED" >&5
5820echo "${ECHO_T}$SED" >&6
5821
5822
5823# Check whether --with-gnu-ld or --without-gnu-ld was given.
5824if test "${with_gnu_ld+set}" = set; then
5825  withval="$with_gnu_ld"
5826  test "$withval" = no || with_gnu_ld=yes
5827else
5828  with_gnu_ld=no
5829fi;
5830ac_prog=ld
5831if test "$GCC" = yes; then
5832  # Check if gcc -print-prog-name=ld gives a path.
5833  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5834echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5835  case $host in
5836  *-*-mingw*)
5837    # gcc leaves a trailing carriage return which upsets mingw
5838    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5839  *)
5840    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5841  esac
5842  case $ac_prog in
5843    # Accept absolute paths.
5844    [\\/]* | ?:[\\/]*)
5845      re_direlt='/[^/][^/]*/\.\./'
5846      # Canonicalize the pathname of ld
5847      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5848      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5849        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5850      done
5851      test -z "$LD" && LD="$ac_prog"
5852      ;;
5853  "")
5854    # If it fails, then pretend we aren't using GCC.
5855    ac_prog=ld
5856    ;;
5857  *)
5858    # If it is relative, then search for the first ld in PATH.
5859    with_gnu_ld=unknown
5860    ;;
5861  esac
5862elif test "$with_gnu_ld" = yes; then
5863  echo "$as_me:$LINENO: checking for GNU ld" >&5
5864echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5865else
5866  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5867echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5868fi
5869if test "${lt_cv_path_LD+set}" = set; then
5870  echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872  if test -z "$LD"; then
5873  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5874  for ac_dir in $PATH; do
5875    IFS="$lt_save_ifs"
5876    test -z "$ac_dir" && ac_dir=.
5877    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5878      lt_cv_path_LD="$ac_dir/$ac_prog"
5879      # Check to see if the program is GNU ld.  I'd rather use --version,
5880      # but apparently some variants of GNU ld only accept -v.
5881      # Break only if it was the GNU/non-GNU ld that we prefer.
5882      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5883      *GNU* | *'with BFD'*)
5884        test "$with_gnu_ld" != no && break
5885        ;;
5886      *)
5887        test "$with_gnu_ld" != yes && break
5888        ;;
5889      esac
5890    fi
5891  done
5892  IFS="$lt_save_ifs"
5893else
5894  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5895fi
5896fi
5897
5898LD="$lt_cv_path_LD"
5899if test -n "$LD"; then
5900  echo "$as_me:$LINENO: result: $LD" >&5
5901echo "${ECHO_T}$LD" >&6
5902else
5903  echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
5905fi
5906test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5907echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5908   { (exit 1); exit 1; }; }
5909echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5910echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5911if test "${lt_cv_prog_gnu_ld+set}" = set; then
5912  echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5915case `$LD -v 2>&1 </dev/null` in
5916*GNU* | *'with BFD'*)
5917  lt_cv_prog_gnu_ld=yes
5918  ;;
5919*)
5920  lt_cv_prog_gnu_ld=no
5921  ;;
5922esac
5923fi
5924echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5925echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5926with_gnu_ld=$lt_cv_prog_gnu_ld
5927
5928
5929echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5930echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5931if test "${lt_cv_ld_reload_flag+set}" = set; then
5932  echo $ECHO_N "(cached) $ECHO_C" >&6
5933else
5934  lt_cv_ld_reload_flag='-r'
5935fi
5936echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5937echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5938reload_flag=$lt_cv_ld_reload_flag
5939case $reload_flag in
5940"" | " "*) ;;
5941*) reload_flag=" $reload_flag" ;;
5942esac
5943reload_cmds='$LD$reload_flag -o $output$reload_objs'
5944case $host_os in
5945  darwin*)
5946    if test "$GCC" = yes; then
5947      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5948    else
5949      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5950    fi
5951    ;;
5952esac
5953
5954echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5955echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5956if test "${lt_cv_path_NM+set}" = set; then
5957  echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959  if test -n "$NM"; then
5960  # Let the user override the test.
5961  lt_cv_path_NM="$NM"
5962else
5963  lt_nm_to_check="${ac_tool_prefix}nm"
5964  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5965    lt_nm_to_check="$lt_nm_to_check nm"
5966  fi
5967  for lt_tmp_nm in $lt_nm_to_check; do
5968    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5969    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5970      IFS="$lt_save_ifs"
5971      test -z "$ac_dir" && ac_dir=.
5972      tmp_nm="$ac_dir/$lt_tmp_nm"
5973      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5974        # Check to see if the nm accepts a BSD-compat flag.
5975        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5976        #   nm: unknown option "B" ignored
5977        # Tru64's nm complains that /dev/null is an invalid object file
5978        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5979        */dev/null* | *'Invalid file or object type'*)
5980          lt_cv_path_NM="$tmp_nm -B"
5981          break
5982          ;;
5983        *)
5984          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5985          */dev/null*)
5986            lt_cv_path_NM="$tmp_nm -p"
5987            break
5988            ;;
5989          *)
5990            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5991            continue # so that we can try to find one that supports BSD flags
5992            ;;
5993          esac
5994          ;;
5995        esac
5996      fi
5997    done
5998    IFS="$lt_save_ifs"
5999  done
6000  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6001fi
6002fi
6003echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6004echo "${ECHO_T}$lt_cv_path_NM" >&6
6005NM="$lt_cv_path_NM"
6006
6007echo "$as_me:$LINENO: checking whether ln -s works" >&5
6008echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6009LN_S=$as_ln_s
6010if test "$LN_S" = "ln -s"; then
6011  echo "$as_me:$LINENO: result: yes" >&5
6012echo "${ECHO_T}yes" >&6
6013else
6014  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6015echo "${ECHO_T}no, using $LN_S" >&6
6016fi
6017
6018echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6019echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6020if test "${lt_cv_deplibs_check_method+set}" = set; then
6021  echo $ECHO_N "(cached) $ECHO_C" >&6
6022else
6023  lt_cv_file_magic_cmd='$MAGIC_CMD'
6024lt_cv_file_magic_test_file=
6025lt_cv_deplibs_check_method='unknown'
6026# Need to set the preceding variable on all platforms that support
6027# interlibrary dependencies.
6028# 'none' -- dependencies not supported.
6029# `unknown' -- same as none, but documents that we really don't know.
6030# 'pass_all' -- all dependencies passed with no checks.
6031# 'test_compile' -- check by making test program.
6032# 'file_magic [[regex]]' -- check by looking for files in library path
6033# which responds to the $file_magic_cmd with a given extended regex.
6034# If you have `file' or equivalent on your system and you're not sure
6035# whether `pass_all' will *always* work, you probably want this one.
6036
6037case $host_os in
6038aix4* | aix5*)
6039  lt_cv_deplibs_check_method=pass_all
6040  ;;
6041
6042beos*)
6043  lt_cv_deplibs_check_method=pass_all
6044  ;;
6045
6046bsdi[45]*)
6047  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6048  lt_cv_file_magic_cmd='/usr/bin/file -L'
6049  lt_cv_file_magic_test_file=/shlib/libc.so
6050  ;;
6051
6052cygwin*)
6053  # func_win32_libid is a shell function defined in ltmain.sh
6054  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6055  lt_cv_file_magic_cmd='func_win32_libid'
6056  ;;
6057
6058mingw* | pw32*)
6059  # Base MSYS/MinGW do not provide the 'file' command needed by
6060  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6061  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6062  lt_cv_file_magic_cmd='$OBJDUMP -f'
6063  ;;
6064
6065darwin* | rhapsody*)
6066  lt_cv_deplibs_check_method=pass_all
6067  ;;
6068
6069freebsd* | kfreebsd*-gnu | dragonfly*)
6070  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6071    case $host_cpu in
6072    i*86 )
6073      # Not sure whether the presence of OpenBSD here was a mistake.
6074      # Let's accept both of them until this is cleared up.
6075      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6076      lt_cv_file_magic_cmd=/usr/bin/file
6077      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6078      ;;
6079    esac
6080  else
6081    lt_cv_deplibs_check_method=pass_all
6082  fi
6083  ;;
6084
6085gnu*)
6086  lt_cv_deplibs_check_method=pass_all
6087  ;;
6088
6089hpux10.20* | hpux11*)
6090  lt_cv_file_magic_cmd=/usr/bin/file
6091  case $host_cpu in
6092  ia64*)
6093    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6094    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6095    ;;
6096  hppa*64*)
6097    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]'
6098    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6099    ;;
6100  *)
6101    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6102    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6103    ;;
6104  esac
6105  ;;
6106
6107interix3*)
6108  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6109  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6110  ;;
6111
6112irix5* | irix6* | nonstopux*)
6113  case $LD in
6114  *-32|*"-32 ") libmagic=32-bit;;
6115  *-n32|*"-n32 ") libmagic=N32;;
6116  *-64|*"-64 ") libmagic=64-bit;;
6117  *) libmagic=never-match;;
6118  esac
6119  lt_cv_deplibs_check_method=pass_all
6120  ;;
6121
6122# This must be Linux ELF.
6123linux*)
6124  lt_cv_deplibs_check_method=pass_all
6125  ;;
6126
6127netbsd*)
6128  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6129    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6130  else
6131    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6132  fi
6133  ;;
6134
6135newos6*)
6136  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6137  lt_cv_file_magic_cmd=/usr/bin/file
6138  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6139  ;;
6140
6141nto-qnx*)
6142  lt_cv_deplibs_check_method=unknown
6143  ;;
6144
6145openbsd*)
6146  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6147    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6148  else
6149    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6150  fi
6151  ;;
6152
6153osf3* | osf4* | osf5*)
6154  lt_cv_deplibs_check_method=pass_all
6155  ;;
6156
6157solaris*)
6158  lt_cv_deplibs_check_method=pass_all
6159  ;;
6160
6161sysv4 | sysv4.3*)
6162  case $host_vendor in
6163  motorola)
6164    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]'
6165    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6166    ;;
6167  ncr)
6168    lt_cv_deplibs_check_method=pass_all
6169    ;;
6170  sequent)
6171    lt_cv_file_magic_cmd='/bin/file'
6172    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6173    ;;
6174  sni)
6175    lt_cv_file_magic_cmd='/bin/file'
6176    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6177    lt_cv_file_magic_test_file=/lib/libc.so
6178    ;;
6179  siemens)
6180    lt_cv_deplibs_check_method=pass_all
6181    ;;
6182  pc)
6183    lt_cv_deplibs_check_method=pass_all
6184    ;;
6185  esac
6186  ;;
6187
6188sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6189  lt_cv_deplibs_check_method=pass_all
6190  ;;
6191esac
6192
6193fi
6194echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6195echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6196file_magic_cmd=$lt_cv_file_magic_cmd
6197deplibs_check_method=$lt_cv_deplibs_check_method
6198test -z "$deplibs_check_method" && deplibs_check_method=unknown
6199
6200
6201
6202
6203# If no C compiler was specified, use CC.
6204LTCC=${LTCC-"$CC"}
6205
6206# If no C compiler flags were specified, use CFLAGS.
6207LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6208
6209# Allow CC to be a program name with arguments.
6210compiler=$CC
6211
6212# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6213if test "${enable_libtool_lock+set}" = set; then
6214  enableval="$enable_libtool_lock"
6215
6216fi;
6217test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6218
6219# Some flags need to be propagated to the compiler or linker for good
6220# libtool support.
6221case $host in
6222ia64-*-hpux*)
6223  # Find out which ABI we are using.
6224  echo 'int i;' > conftest.$ac_ext
6225  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226  (eval $ac_compile) 2>&5
6227  ac_status=$?
6228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229  (exit $ac_status); }; then
6230    case `/usr/bin/file conftest.$ac_objext` in
6231    *ELF-32*)
6232      HPUX_IA64_MODE="32"
6233      ;;
6234    *ELF-64*)
6235      HPUX_IA64_MODE="64"
6236      ;;
6237    esac
6238  fi
6239  rm -rf conftest*
6240  ;;
6241*-*-irix6*)
6242  # Find out which ABI we are using.
6243  echo '#line 6243 "configure"' > conftest.$ac_ext
6244  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245  (eval $ac_compile) 2>&5
6246  ac_status=$?
6247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248  (exit $ac_status); }; then
6249   if test "$lt_cv_prog_gnu_ld" = yes; then
6250    case `/usr/bin/file conftest.$ac_objext` in
6251    *32-bit*)
6252      LD="${LD-ld} -melf32bsmip"
6253      ;;
6254    *N32*)
6255      LD="${LD-ld} -melf32bmipn32"
6256      ;;
6257    *64-bit*)
6258      LD="${LD-ld} -melf64bmip"
6259      ;;
6260    esac
6261   else
6262    case `/usr/bin/file conftest.$ac_objext` in
6263    *32-bit*)
6264      LD="${LD-ld} -32"
6265      ;;
6266    *N32*)
6267      LD="${LD-ld} -n32"
6268      ;;
6269    *64-bit*)
6270      LD="${LD-ld} -64"
6271      ;;
6272    esac
6273   fi
6274  fi
6275  rm -rf conftest*
6276  ;;
6277
6278x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6279  # Find out which ABI we are using.
6280  echo 'int i;' > conftest.$ac_ext
6281  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282  (eval $ac_compile) 2>&5
6283  ac_status=$?
6284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285  (exit $ac_status); }; then
6286    case `/usr/bin/file conftest.o` in
6287    *32-bit*)
6288      case $host in
6289        x86_64-*linux*)
6290          LD="${LD-ld} -m elf_i386"
6291          ;;
6292        ppc64-*linux*|powerpc64-*linux*)
6293          LD="${LD-ld} -m elf32ppclinux"
6294          ;;
6295        s390x-*linux*)
6296          LD="${LD-ld} -m elf_s390"
6297          ;;
6298        sparc64-*linux*)
6299          LD="${LD-ld} -m elf32_sparc"
6300          ;;
6301      esac
6302      ;;
6303    *64-bit*)
6304      case $host in
6305        x86_64-*linux*)
6306          LD="${LD-ld} -m elf_x86_64"
6307          ;;
6308        ppc*-*linux*|powerpc*-*linux*)
6309          LD="${LD-ld} -m elf64ppc"
6310          ;;
6311        s390*-*linux*)
6312          LD="${LD-ld} -m elf64_s390"
6313          ;;
6314        sparc*-*linux*)
6315          LD="${LD-ld} -m elf64_sparc"
6316          ;;
6317      esac
6318      ;;
6319    esac
6320  fi
6321  rm -rf conftest*
6322  ;;
6323
6324*-*-sco3.2v5*)
6325  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6326  SAVE_CFLAGS="$CFLAGS"
6327  CFLAGS="$CFLAGS -belf"
6328  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6329echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6330if test "${lt_cv_cc_needs_belf+set}" = set; then
6331  echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333  ac_ext=c
6334ac_cpp='$CPP $CPPFLAGS'
6335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338
6339     cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h.  */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h.  */
6345
6346#ifdef F77_DUMMY_MAIN
6347
6348#  ifdef __cplusplus
6349     extern "C"
6350#  endif
6351   int F77_DUMMY_MAIN() { return 1; }
6352
6353#endif
6354int
6355main ()
6356{
6357
6358  ;
6359  return 0;
6360}
6361_ACEOF
6362rm -f conftest.$ac_objext conftest$ac_exeext
6363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364  (eval $ac_link) 2>conftest.er1
6365  ac_status=$?
6366  grep -v '^ *+' conftest.er1 >conftest.err
6367  rm -f conftest.er1
6368  cat conftest.err >&5
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); } &&
6371         { ac_try='test -z "$ac_c_werror_flag"
6372                         || test ! -s conftest.err'
6373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374  (eval $ac_try) 2>&5
6375  ac_status=$?
6376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377  (exit $ac_status); }; } &&
6378         { ac_try='test -s conftest$ac_exeext'
6379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380  (eval $ac_try) 2>&5
6381  ac_status=$?
6382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383  (exit $ac_status); }; }; then
6384  lt_cv_cc_needs_belf=yes
6385else
6386  echo "$as_me: failed program was:" >&5
6387sed 's/^/| /' conftest.$ac_ext >&5
6388
6389lt_cv_cc_needs_belf=no
6390fi
6391rm -f conftest.err conftest.$ac_objext \
6392      conftest$ac_exeext conftest.$ac_ext
6393     ac_ext=c
6394ac_cpp='$CPP $CPPFLAGS'
6395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397ac_compiler_gnu=$ac_cv_c_compiler_gnu
6398
6399fi
6400echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6401echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6402  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6403    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6404    CFLAGS="$SAVE_CFLAGS"
6405  fi
6406  ;;
6407sparc*-*solaris*)
6408  # Find out which ABI we are using.
6409  echo 'int i;' > conftest.$ac_ext
6410  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411  (eval $ac_compile) 2>&5
6412  ac_status=$?
6413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414  (exit $ac_status); }; then
6415    case `/usr/bin/file conftest.o` in
6416    *64-bit*)
6417      case $lt_cv_prog_gnu_ld in
6418      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6419      *)    LD="${LD-ld} -64" ;;
6420      esac
6421      ;;
6422    esac
6423  fi
6424  rm -rf conftest*
6425  ;;
6426
6427
6428esac
6429
6430need_locks="$enable_libtool_lock"
6431
6432
6433ac_ext=c
6434ac_cpp='$CPP $CPPFLAGS'
6435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6439echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6440# On Suns, sometimes $CPP names a directory.
6441if test -n "$CPP" && test -d "$CPP"; then
6442  CPP=
6443fi
6444if test -z "$CPP"; then
6445  if test "${ac_cv_prog_CPP+set}" = set; then
6446  echo $ECHO_N "(cached) $ECHO_C" >&6
6447else
6448      # Double quotes because CPP needs to be expanded
6449    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6450    do
6451      ac_preproc_ok=false
6452for ac_c_preproc_warn_flag in '' yes
6453do
6454  # Use a header file that comes with gcc, so configuring glibc
6455  # with a fresh cross-compiler works.
6456  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6457  # <limits.h> exists even on freestanding compilers.
6458  # On the NeXT, cc -E runs the code through the compiler's parser,
6459  # not just through cpp. "Syntax error" is here to catch this case.
6460  cat >conftest.$ac_ext <<_ACEOF
6461/* confdefs.h.  */
6462_ACEOF
6463cat confdefs.h >>conftest.$ac_ext
6464cat >>conftest.$ac_ext <<_ACEOF
6465/* end confdefs.h.  */
6466#ifdef __STDC__
6467# include <limits.h>
6468#else
6469# include <assert.h>
6470#endif
6471                     Syntax error
6472_ACEOF
6473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6474  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6475  ac_status=$?
6476  grep -v '^ *+' conftest.er1 >conftest.err
6477  rm -f conftest.er1
6478  cat conftest.err >&5
6479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480  (exit $ac_status); } >/dev/null; then
6481  if test -s conftest.err; then
6482    ac_cpp_err=$ac_c_preproc_warn_flag
6483    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6484  else
6485    ac_cpp_err=
6486  fi
6487else
6488  ac_cpp_err=yes
6489fi
6490if test -z "$ac_cpp_err"; then
6491  :
6492else
6493  echo "$as_me: failed program was:" >&5
6494sed 's/^/| /' conftest.$ac_ext >&5
6495
6496  # Broken: fails on valid input.
6497continue
6498fi
6499rm -f conftest.err conftest.$ac_ext
6500
6501  # OK, works on sane cases.  Now check whether non-existent headers
6502  # can be detected and how.
6503  cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h.  */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h.  */
6509#include <ac_nonexistent.h>
6510_ACEOF
6511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6512  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6513  ac_status=$?
6514  grep -v '^ *+' conftest.er1 >conftest.err
6515  rm -f conftest.er1
6516  cat conftest.err >&5
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); } >/dev/null; then
6519  if test -s conftest.err; then
6520    ac_cpp_err=$ac_c_preproc_warn_flag
6521    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6522  else
6523    ac_cpp_err=
6524  fi
6525else
6526  ac_cpp_err=yes
6527fi
6528if test -z "$ac_cpp_err"; then
6529  # Broken: success on invalid input.
6530continue
6531else
6532  echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535  # Passes both tests.
6536ac_preproc_ok=:
6537break
6538fi
6539rm -f conftest.err conftest.$ac_ext
6540
6541done
6542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6543rm -f conftest.err conftest.$ac_ext
6544if $ac_preproc_ok; then
6545  break
6546fi
6547
6548    done
6549    ac_cv_prog_CPP=$CPP
6550
6551fi
6552  CPP=$ac_cv_prog_CPP
6553else
6554  ac_cv_prog_CPP=$CPP
6555fi
6556echo "$as_me:$LINENO: result: $CPP" >&5
6557echo "${ECHO_T}$CPP" >&6
6558ac_preproc_ok=false
6559for ac_c_preproc_warn_flag in '' yes
6560do
6561  # Use a header file that comes with gcc, so configuring glibc
6562  # with a fresh cross-compiler works.
6563  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6564  # <limits.h> exists even on freestanding compilers.
6565  # On the NeXT, cc -E runs the code through the compiler's parser,
6566  # not just through cpp. "Syntax error" is here to catch this case.
6567  cat >conftest.$ac_ext <<_ACEOF
6568/* confdefs.h.  */
6569_ACEOF
6570cat confdefs.h >>conftest.$ac_ext
6571cat >>conftest.$ac_ext <<_ACEOF
6572/* end confdefs.h.  */
6573#ifdef __STDC__
6574# include <limits.h>
6575#else
6576# include <assert.h>
6577#endif
6578                     Syntax error
6579_ACEOF
6580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6581  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6582  ac_status=$?
6583  grep -v '^ *+' conftest.er1 >conftest.err
6584  rm -f conftest.er1
6585  cat conftest.err >&5
6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587  (exit $ac_status); } >/dev/null; then
6588  if test -s conftest.err; then
6589    ac_cpp_err=$ac_c_preproc_warn_flag
6590    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6591  else
6592    ac_cpp_err=
6593  fi
6594else
6595  ac_cpp_err=yes
6596fi
6597if test -z "$ac_cpp_err"; then
6598  :
6599else
6600  echo "$as_me: failed program was:" >&5
6601sed 's/^/| /' conftest.$ac_ext >&5
6602
6603  # Broken: fails on valid input.
6604continue
6605fi
6606rm -f conftest.err conftest.$ac_ext
6607
6608  # OK, works on sane cases.  Now check whether non-existent headers
6609  # can be detected and how.
6610  cat >conftest.$ac_ext <<_ACEOF
6611/* confdefs.h.  */
6612_ACEOF
6613cat confdefs.h >>conftest.$ac_ext
6614cat >>conftest.$ac_ext <<_ACEOF
6615/* end confdefs.h.  */
6616#include <ac_nonexistent.h>
6617_ACEOF
6618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6619  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6620  ac_status=$?
6621  grep -v '^ *+' conftest.er1 >conftest.err
6622  rm -f conftest.er1
6623  cat conftest.err >&5
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); } >/dev/null; then
6626  if test -s conftest.err; then
6627    ac_cpp_err=$ac_c_preproc_warn_flag
6628    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6629  else
6630    ac_cpp_err=
6631  fi
6632else
6633  ac_cpp_err=yes
6634fi
6635if test -z "$ac_cpp_err"; then
6636  # Broken: success on invalid input.
6637continue
6638else
6639  echo "$as_me: failed program was:" >&5
6640sed 's/^/| /' conftest.$ac_ext >&5
6641
6642  # Passes both tests.
6643ac_preproc_ok=:
6644break
6645fi
6646rm -f conftest.err conftest.$ac_ext
6647
6648done
6649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6650rm -f conftest.err conftest.$ac_ext
6651if $ac_preproc_ok; then
6652  :
6653else
6654  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6655See \`config.log' for more details." >&5
6656echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6657See \`config.log' for more details." >&2;}
6658   { (exit 1); exit 1; }; }
6659fi
6660
6661ac_ext=c
6662ac_cpp='$CPP $CPPFLAGS'
6663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6665ac_compiler_gnu=$ac_cv_c_compiler_gnu
6666
6667
6668echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6669echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6670if test "${ac_cv_header_stdc+set}" = set; then
6671  echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673  cat >conftest.$ac_ext <<_ACEOF
6674/* confdefs.h.  */
6675_ACEOF
6676cat confdefs.h >>conftest.$ac_ext
6677cat >>conftest.$ac_ext <<_ACEOF
6678/* end confdefs.h.  */
6679#include <stdlib.h>
6680#include <stdarg.h>
6681#include <string.h>
6682#include <float.h>
6683
6684#ifdef F77_DUMMY_MAIN
6685
6686#  ifdef __cplusplus
6687     extern "C"
6688#  endif
6689   int F77_DUMMY_MAIN() { return 1; }
6690
6691#endif
6692int
6693main ()
6694{
6695
6696  ;
6697  return 0;
6698}
6699_ACEOF
6700rm -f conftest.$ac_objext
6701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6702  (eval $ac_compile) 2>conftest.er1
6703  ac_status=$?
6704  grep -v '^ *+' conftest.er1 >conftest.err
6705  rm -f conftest.er1
6706  cat conftest.err >&5
6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); } &&
6709         { ac_try='test -z "$ac_c_werror_flag"
6710                         || test ! -s conftest.err'
6711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712  (eval $ac_try) 2>&5
6713  ac_status=$?
6714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715  (exit $ac_status); }; } &&
6716         { ac_try='test -s conftest.$ac_objext'
6717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718  (eval $ac_try) 2>&5
6719  ac_status=$?
6720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721  (exit $ac_status); }; }; then
6722  ac_cv_header_stdc=yes
6723else
6724  echo "$as_me: failed program was:" >&5
6725sed 's/^/| /' conftest.$ac_ext >&5
6726
6727ac_cv_header_stdc=no
6728fi
6729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6730
6731if test $ac_cv_header_stdc = yes; then
6732  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6733  cat >conftest.$ac_ext <<_ACEOF
6734/* confdefs.h.  */
6735_ACEOF
6736cat confdefs.h >>conftest.$ac_ext
6737cat >>conftest.$ac_ext <<_ACEOF
6738/* end confdefs.h.  */
6739#include <string.h>
6740
6741_ACEOF
6742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743  $EGREP "memchr" >/dev/null 2>&1; then
6744  :
6745else
6746  ac_cv_header_stdc=no
6747fi
6748rm -f conftest*
6749
6750fi
6751
6752if test $ac_cv_header_stdc = yes; then
6753  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6754  cat >conftest.$ac_ext <<_ACEOF
6755/* confdefs.h.  */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h.  */
6760#include <stdlib.h>
6761
6762_ACEOF
6763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6764  $EGREP "free" >/dev/null 2>&1; then
6765  :
6766else
6767  ac_cv_header_stdc=no
6768fi
6769rm -f conftest*
6770
6771fi
6772
6773if test $ac_cv_header_stdc = yes; then
6774  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6775  if test "$cross_compiling" = yes; then
6776  :
6777else
6778  cat >conftest.$ac_ext <<_ACEOF
6779/* confdefs.h.  */
6780_ACEOF
6781cat confdefs.h >>conftest.$ac_ext
6782cat >>conftest.$ac_ext <<_ACEOF
6783/* end confdefs.h.  */
6784#include <ctype.h>
6785#if ((' ' & 0x0FF) == 0x020)
6786# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6787# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6788#else
6789# define ISLOWER(c) \
6790                   (('a' <= (c) && (c) <= 'i') \
6791                     || ('j' <= (c) && (c) <= 'r') \
6792                     || ('s' <= (c) && (c) <= 'z'))
6793# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6794#endif
6795
6796#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6797int
6798main ()
6799{
6800  int i;
6801  for (i = 0; i < 256; i++)
6802    if (XOR (islower (i), ISLOWER (i))
6803        || toupper (i) != TOUPPER (i))
6804      exit(2);
6805  exit (0);
6806}
6807_ACEOF
6808rm -f conftest$ac_exeext
6809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6810  (eval $ac_link) 2>&5
6811  ac_status=$?
6812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815  (eval $ac_try) 2>&5
6816  ac_status=$?
6817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818  (exit $ac_status); }; }; then
6819  :
6820else
6821  echo "$as_me: program exited with status $ac_status" >&5
6822echo "$as_me: failed program was:" >&5
6823sed 's/^/| /' conftest.$ac_ext >&5
6824
6825( exit $ac_status )
6826ac_cv_header_stdc=no
6827fi
6828rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6829fi
6830fi
6831fi
6832echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6833echo "${ECHO_T}$ac_cv_header_stdc" >&6
6834if test $ac_cv_header_stdc = yes; then
6835
6836cat >>confdefs.h <<\_ACEOF
6837#define STDC_HEADERS 1
6838_ACEOF
6839
6840fi
6841
6842# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6853                  inttypes.h stdint.h unistd.h
6854do
6855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6856echo "$as_me:$LINENO: checking for $ac_header" >&5
6857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6858if eval "test \"\${$as_ac_Header+set}\" = set"; then
6859  echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861  cat >conftest.$ac_ext <<_ACEOF
6862/* confdefs.h.  */
6863_ACEOF
6864cat confdefs.h >>conftest.$ac_ext
6865cat >>conftest.$ac_ext <<_ACEOF
6866/* end confdefs.h.  */
6867$ac_includes_default
6868
6869#include <$ac_header>
6870_ACEOF
6871rm -f conftest.$ac_objext
6872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873  (eval $ac_compile) 2>conftest.er1
6874  ac_status=$?
6875  grep -v '^ *+' conftest.er1 >conftest.err
6876  rm -f conftest.er1
6877  cat conftest.err >&5
6878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879  (exit $ac_status); } &&
6880         { ac_try='test -z "$ac_c_werror_flag"
6881                         || test ! -s conftest.err'
6882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883  (eval $ac_try) 2>&5
6884  ac_status=$?
6885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886  (exit $ac_status); }; } &&
6887         { ac_try='test -s conftest.$ac_objext'
6888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889  (eval $ac_try) 2>&5
6890  ac_status=$?
6891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892  (exit $ac_status); }; }; then
6893  eval "$as_ac_Header=yes"
6894else
6895  echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
6898eval "$as_ac_Header=no"
6899fi
6900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6901fi
6902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6904if test `eval echo '${'$as_ac_Header'}'` = yes; then
6905  cat >>confdefs.h <<_ACEOF
6906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6907_ACEOF
6908
6909fi
6910
6911done
6912
6913
6914
6915for ac_header in dlfcn.h
6916do
6917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6918if eval "test \"\${$as_ac_Header+set}\" = set"; then
6919  echo "$as_me:$LINENO: checking for $ac_header" >&5
6920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6921if eval "test \"\${$as_ac_Header+set}\" = set"; then
6922  echo $ECHO_N "(cached) $ECHO_C" >&6
6923fi
6924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6926else
6927  # Is the header compilable?
6928echo "$as_me:$LINENO: checking $ac_header usability" >&5
6929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6930cat >conftest.$ac_ext <<_ACEOF
6931/* confdefs.h.  */
6932_ACEOF
6933cat confdefs.h >>conftest.$ac_ext
6934cat >>conftest.$ac_ext <<_ACEOF
6935/* end confdefs.h.  */
6936$ac_includes_default
6937#include <$ac_header>
6938_ACEOF
6939rm -f conftest.$ac_objext
6940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941  (eval $ac_compile) 2>conftest.er1
6942  ac_status=$?
6943  grep -v '^ *+' conftest.er1 >conftest.err
6944  rm -f conftest.er1
6945  cat conftest.err >&5
6946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947  (exit $ac_status); } &&
6948         { ac_try='test -z "$ac_c_werror_flag"
6949                         || test ! -s conftest.err'
6950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951  (eval $ac_try) 2>&5
6952  ac_status=$?
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); }; } &&
6955         { ac_try='test -s conftest.$ac_objext'
6956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957  (eval $ac_try) 2>&5
6958  ac_status=$?
6959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960  (exit $ac_status); }; }; then
6961  ac_header_compiler=yes
6962else
6963  echo "$as_me: failed program was:" >&5
6964sed 's/^/| /' conftest.$ac_ext >&5
6965
6966ac_header_compiler=no
6967fi
6968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6970echo "${ECHO_T}$ac_header_compiler" >&6
6971
6972# Is the header present?
6973echo "$as_me:$LINENO: checking $ac_header presence" >&5
6974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6975cat >conftest.$ac_ext <<_ACEOF
6976/* confdefs.h.  */
6977_ACEOF
6978cat confdefs.h >>conftest.$ac_ext
6979cat >>conftest.$ac_ext <<_ACEOF
6980/* end confdefs.h.  */
6981#include <$ac_header>
6982_ACEOF
6983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6984  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6985  ac_status=$?
6986  grep -v '^ *+' conftest.er1 >conftest.err
6987  rm -f conftest.er1
6988  cat conftest.err >&5
6989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990  (exit $ac_status); } >/dev/null; then
6991  if test -s conftest.err; then
6992    ac_cpp_err=$ac_c_preproc_warn_flag
6993    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6994  else
6995    ac_cpp_err=
6996  fi
6997else
6998  ac_cpp_err=yes
6999fi
7000if test -z "$ac_cpp_err"; then
7001  ac_header_preproc=yes
7002else
7003  echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006  ac_header_preproc=no
7007fi
7008rm -f conftest.err conftest.$ac_ext
7009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7010echo "${ECHO_T}$ac_header_preproc" >&6
7011
7012# So?  What about this header?
7013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7014  yes:no: )
7015    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7017    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7019    ac_header_preproc=yes
7020    ;;
7021  no:yes:* )
7022    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7024    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7025echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7026    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7028    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7029echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7030    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7032    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7034    (
7035      cat <<\_ASBOX
7036## --------------------------------------------------------------- ##
7037## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7038## --------------------------------------------------------------- ##
7039_ASBOX
7040    ) |
7041      sed "s/^/$as_me: WARNING:     /" >&2
7042    ;;
7043esac
7044echo "$as_me:$LINENO: checking for $ac_header" >&5
7045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7046if eval "test \"\${$as_ac_Header+set}\" = set"; then
7047  echo $ECHO_N "(cached) $ECHO_C" >&6
7048else
7049  eval "$as_ac_Header=\$ac_header_preproc"
7050fi
7051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7053
7054fi
7055if test `eval echo '${'$as_ac_Header'}'` = yes; then
7056  cat >>confdefs.h <<_ACEOF
7057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7058_ACEOF
7059
7060fi
7061
7062done
7063
7064ac_ext=cc
7065ac_cpp='$CXXCPP $CPPFLAGS'
7066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7069if test -n "$ac_tool_prefix"; then
7070  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7071  do
7072    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7074echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7076if test "${ac_cv_prog_CXX+set}" = set; then
7077  echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079  if test -n "$CXX"; then
7080  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  test -z "$as_dir" && as_dir=.
7087  for ac_exec_ext in '' $ac_executable_extensions; do
7088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094done
7095
7096fi
7097fi
7098CXX=$ac_cv_prog_CXX
7099if test -n "$CXX"; then
7100  echo "$as_me:$LINENO: result: $CXX" >&5
7101echo "${ECHO_T}$CXX" >&6
7102else
7103  echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6
7105fi
7106
7107    test -n "$CXX" && break
7108  done
7109fi
7110if test -z "$CXX"; then
7111  ac_ct_CXX=$CXX
7112  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7113do
7114  # Extract the first word of "$ac_prog", so it can be a program name with args.
7115set dummy $ac_prog; ac_word=$2
7116echo "$as_me:$LINENO: checking for $ac_word" >&5
7117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7118if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7119  echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121  if test -n "$ac_ct_CXX"; then
7122  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127  IFS=$as_save_IFS
7128  test -z "$as_dir" && as_dir=.
7129  for ac_exec_ext in '' $ac_executable_extensions; do
7130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131    ac_cv_prog_ac_ct_CXX="$ac_prog"
7132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133    break 2
7134  fi
7135done
7136done
7137
7138fi
7139fi
7140ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7141if test -n "$ac_ct_CXX"; then
7142  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7143echo "${ECHO_T}$ac_ct_CXX" >&6
7144else
7145  echo "$as_me:$LINENO: result: no" >&5
7146echo "${ECHO_T}no" >&6
7147fi
7148
7149  test -n "$ac_ct_CXX" && break
7150done
7151test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7152
7153  CXX=$ac_ct_CXX
7154fi
7155
7156
7157# Provide some information about the compiler.
7158echo "$as_me:$LINENO:" \
7159     "checking for C++ compiler version" >&5
7160ac_compiler=`set X $ac_compile; echo $2`
7161{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7162  (eval $ac_compiler --version </dev/null >&5) 2>&5
7163  ac_status=$?
7164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165  (exit $ac_status); }
7166{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7167  (eval $ac_compiler -v </dev/null >&5) 2>&5
7168  ac_status=$?
7169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170  (exit $ac_status); }
7171{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7172  (eval $ac_compiler -V </dev/null >&5) 2>&5
7173  ac_status=$?
7174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175  (exit $ac_status); }
7176
7177echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7178echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7179if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7180  echo $ECHO_N "(cached) $ECHO_C" >&6
7181else
7182  cat >conftest.$ac_ext <<_ACEOF
7183/* confdefs.h.  */
7184_ACEOF
7185cat confdefs.h >>conftest.$ac_ext
7186cat >>conftest.$ac_ext <<_ACEOF
7187/* end confdefs.h.  */
7188
7189#ifdef F77_DUMMY_MAIN
7190
7191#  ifdef __cplusplus
7192     extern "C"
7193#  endif
7194   int F77_DUMMY_MAIN() { return 1; }
7195
7196#endif
7197int
7198main ()
7199{
7200#ifndef __GNUC__
7201       choke me
7202#endif
7203
7204  ;
7205  return 0;
7206}
7207_ACEOF
7208rm -f conftest.$ac_objext
7209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7210  (eval $ac_compile) 2>conftest.er1
7211  ac_status=$?
7212  grep -v '^ *+' conftest.er1 >conftest.err
7213  rm -f conftest.er1
7214  cat conftest.err >&5
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); } &&
7217         { ac_try='test -z "$ac_cxx_werror_flag"
7218                         || test ! -s conftest.err'
7219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220  (eval $ac_try) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; } &&
7224         { ac_try='test -s conftest.$ac_objext'
7225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226  (eval $ac_try) 2>&5
7227  ac_status=$?
7228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229  (exit $ac_status); }; }; then
7230  ac_compiler_gnu=yes
7231else
7232  echo "$as_me: failed program was:" >&5
7233sed 's/^/| /' conftest.$ac_ext >&5
7234
7235ac_compiler_gnu=no
7236fi
7237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7239
7240fi
7241echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7242echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7243GXX=`test $ac_compiler_gnu = yes && echo yes`
7244ac_test_CXXFLAGS=${CXXFLAGS+set}
7245ac_save_CXXFLAGS=$CXXFLAGS
7246CXXFLAGS="-g"
7247echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7248echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7249if test "${ac_cv_prog_cxx_g+set}" = set; then
7250  echo $ECHO_N "(cached) $ECHO_C" >&6
7251else
7252  cat >conftest.$ac_ext <<_ACEOF
7253/* confdefs.h.  */
7254_ACEOF
7255cat confdefs.h >>conftest.$ac_ext
7256cat >>conftest.$ac_ext <<_ACEOF
7257/* end confdefs.h.  */
7258
7259#ifdef F77_DUMMY_MAIN
7260
7261#  ifdef __cplusplus
7262     extern "C"
7263#  endif
7264   int F77_DUMMY_MAIN() { return 1; }
7265
7266#endif
7267int
7268main ()
7269{
7270
7271  ;
7272  return 0;
7273}
7274_ACEOF
7275rm -f conftest.$ac_objext
7276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277  (eval $ac_compile) 2>conftest.er1
7278  ac_status=$?
7279  grep -v '^ *+' conftest.er1 >conftest.err
7280  rm -f conftest.er1
7281  cat conftest.err >&5
7282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283  (exit $ac_status); } &&
7284         { ac_try='test -z "$ac_cxx_werror_flag"
7285                         || test ! -s conftest.err'
7286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287  (eval $ac_try) 2>&5
7288  ac_status=$?
7289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290  (exit $ac_status); }; } &&
7291         { ac_try='test -s conftest.$ac_objext'
7292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293  (eval $ac_try) 2>&5
7294  ac_status=$?
7295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296  (exit $ac_status); }; }; then
7297  ac_cv_prog_cxx_g=yes
7298else
7299  echo "$as_me: failed program was:" >&5
7300sed 's/^/| /' conftest.$ac_ext >&5
7301
7302ac_cv_prog_cxx_g=no
7303fi
7304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7305fi
7306echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7307echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7308if test "$ac_test_CXXFLAGS" = set; then
7309  CXXFLAGS=$ac_save_CXXFLAGS
7310elif test $ac_cv_prog_cxx_g = yes; then
7311  if test "$GXX" = yes; then
7312    CXXFLAGS="-g -O2"
7313  else
7314    CXXFLAGS="-g"
7315  fi
7316else
7317  if test "$GXX" = yes; then
7318    CXXFLAGS="-O2"
7319  else
7320    CXXFLAGS=
7321  fi
7322fi
7323for ac_declaration in \
7324   '' \
7325   'extern "C" void std::exit (int) throw (); using std::exit;' \
7326   'extern "C" void std::exit (int); using std::exit;' \
7327   'extern "C" void exit (int) throw ();' \
7328   'extern "C" void exit (int);' \
7329   'void exit (int);'
7330do
7331  cat >conftest.$ac_ext <<_ACEOF
7332/* confdefs.h.  */
7333_ACEOF
7334cat confdefs.h >>conftest.$ac_ext
7335cat >>conftest.$ac_ext <<_ACEOF
7336/* end confdefs.h.  */
7337$ac_declaration
7338#include <stdlib.h>
7339#ifdef F77_DUMMY_MAIN
7340
7341#  ifdef __cplusplus
7342     extern "C"
7343#  endif
7344   int F77_DUMMY_MAIN() { return 1; }
7345
7346#endif
7347int
7348main ()
7349{
7350exit (42);
7351  ;
7352  return 0;
7353}
7354_ACEOF
7355rm -f conftest.$ac_objext
7356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7357  (eval $ac_compile) 2>conftest.er1
7358  ac_status=$?
7359  grep -v '^ *+' conftest.er1 >conftest.err
7360  rm -f conftest.er1
7361  cat conftest.err >&5
7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363  (exit $ac_status); } &&
7364         { ac_try='test -z "$ac_cxx_werror_flag"
7365                         || test ! -s conftest.err'
7366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367  (eval $ac_try) 2>&5
7368  ac_status=$?
7369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370  (exit $ac_status); }; } &&
7371         { ac_try='test -s conftest.$ac_objext'
7372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373  (eval $ac_try) 2>&5
7374  ac_status=$?
7375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376  (exit $ac_status); }; }; then
7377  :
7378else
7379  echo "$as_me: failed program was:" >&5
7380sed 's/^/| /' conftest.$ac_ext >&5
7381
7382continue
7383fi
7384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7385  cat >conftest.$ac_ext <<_ACEOF
7386/* confdefs.h.  */
7387_ACEOF
7388cat confdefs.h >>conftest.$ac_ext
7389cat >>conftest.$ac_ext <<_ACEOF
7390/* end confdefs.h.  */
7391$ac_declaration
7392#ifdef F77_DUMMY_MAIN
7393
7394#  ifdef __cplusplus
7395     extern "C"
7396#  endif
7397   int F77_DUMMY_MAIN() { return 1; }
7398
7399#endif
7400int
7401main ()
7402{
7403exit (42);
7404  ;
7405  return 0;
7406}
7407_ACEOF
7408rm -f conftest.$ac_objext
7409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410  (eval $ac_compile) 2>conftest.er1
7411  ac_status=$?
7412  grep -v '^ *+' conftest.er1 >conftest.err
7413  rm -f conftest.er1
7414  cat conftest.err >&5
7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416  (exit $ac_status); } &&
7417         { ac_try='test -z "$ac_cxx_werror_flag"
7418                         || test ! -s conftest.err'
7419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420  (eval $ac_try) 2>&5
7421  ac_status=$?
7422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423  (exit $ac_status); }; } &&
7424         { ac_try='test -s conftest.$ac_objext'
7425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426  (eval $ac_try) 2>&5
7427  ac_status=$?
7428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429  (exit $ac_status); }; }; then
7430  break
7431else
7432  echo "$as_me: failed program was:" >&5
7433sed 's/^/| /' conftest.$ac_ext >&5
7434
7435fi
7436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7437done
7438rm -f conftest*
7439if test -n "$ac_declaration"; then
7440  echo '#ifdef __cplusplus' >>confdefs.h
7441  echo $ac_declaration      >>confdefs.h
7442  echo '#endif'             >>confdefs.h
7443fi
7444
7445ac_ext=cc
7446ac_cpp='$CXXCPP $CPPFLAGS'
7447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7450
7451depcc="$CXX"  am_compiler_list=
7452
7453echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7454echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7455if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7456  echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7459  # We make a subdir and do the tests there.  Otherwise we can end up
7460  # making bogus files that we don't know about and never remove.  For
7461  # instance it was reported that on HP-UX the gcc test will end up
7462  # making a dummy file named `D' -- because `-MD' means `put the output
7463  # in D'.
7464  mkdir conftest.dir
7465  # Copy depcomp to subdir because otherwise we won't find it if we're
7466  # using a relative directory.
7467  cp "$am_depcomp" conftest.dir
7468  cd conftest.dir
7469  # We will build objects and dependencies in a subdirectory because
7470  # it helps to detect inapplicable dependency modes.  For instance
7471  # both Tru64's cc and ICC support -MD to output dependencies as a
7472  # side effect of compilation, but ICC will put the dependencies in
7473  # the current directory while Tru64 will put them in the object
7474  # directory.
7475  mkdir sub
7476
7477  am_cv_CXX_dependencies_compiler_type=none
7478  if test "$am_compiler_list" = ""; then
7479     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7480  fi
7481  for depmode in $am_compiler_list; do
7482    # Setup a source with many dependencies, because some compilers
7483    # like to wrap large dependency lists on column 80 (with \), and
7484    # we should not choose a depcomp mode which is confused by this.
7485    #
7486    # We need to recreate these files for each test, as the compiler may
7487    # overwrite some of them when testing with obscure command lines.
7488    # This happens at least with the AIX C compiler.
7489    : > sub/conftest.c
7490    for i in 1 2 3 4 5 6; do
7491      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7492      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7493      # Solaris 8's {/usr,}/bin/sh.
7494      touch sub/conftst$i.h
7495    done
7496    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7497
7498    case $depmode in
7499    nosideeffect)
7500      # after this tag, mechanisms are not by side-effect, so they'll
7501      # only be used when explicitly requested
7502      if test "x$enable_dependency_tracking" = xyes; then
7503        continue
7504      else
7505        break
7506      fi
7507      ;;
7508    none) break ;;
7509    esac
7510    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7511    # mode.  It turns out that the SunPro C++ compiler does not properly
7512    # handle `-M -o', and we need to detect this.
7513    if depmode=$depmode \
7514       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7515       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7516       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7517         >/dev/null 2>conftest.err &&
7518       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7519       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7520       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7521      # icc doesn't choke on unknown options, it will just issue warnings
7522      # or remarks (even with -Werror).  So we grep stderr for any message
7523      # that says an option was ignored or not supported.
7524      # When given -MP, icc 7.0 and 7.1 complain thusly:
7525      #   icc: Command line warning: ignoring option '-M'; no argument required
7526      # The diagnosis changed in icc 8.0:
7527      #   icc: Command line remark: option '-MP' not supported
7528      if (grep 'ignoring option' conftest.err ||
7529          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7530        am_cv_CXX_dependencies_compiler_type=$depmode
7531        break
7532      fi
7533    fi
7534  done
7535
7536  cd ..
7537  rm -rf conftest.dir
7538else
7539  am_cv_CXX_dependencies_compiler_type=none
7540fi
7541
7542fi
7543echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7544echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7545CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7546
7547
7548
7549if
7550  test "x$enable_dependency_tracking" != xno \
7551  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7552  am__fastdepCXX_TRUE=
7553  am__fastdepCXX_FALSE='#'
7554else
7555  am__fastdepCXX_TRUE='#'
7556  am__fastdepCXX_FALSE=
7557fi
7558
7559
7560
7561
7562if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7563    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7564    (test "X$CXX" != "Xg++"))) ; then
7565  ac_ext=cc
7566ac_cpp='$CXXCPP $CPPFLAGS'
7567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7570echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7571echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7572if test -z "$CXXCPP"; then
7573  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7574  echo $ECHO_N "(cached) $ECHO_C" >&6
7575else
7576      # Double quotes because CXXCPP needs to be expanded
7577    for CXXCPP in "$CXX -E" "/lib/cpp"
7578    do
7579      ac_preproc_ok=false
7580for ac_cxx_preproc_warn_flag in '' yes
7581do
7582  # Use a header file that comes with gcc, so configuring glibc
7583  # with a fresh cross-compiler works.
7584  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7585  # <limits.h> exists even on freestanding compilers.
7586  # On the NeXT, cc -E runs the code through the compiler's parser,
7587  # not just through cpp. "Syntax error" is here to catch this case.
7588  cat >conftest.$ac_ext <<_ACEOF
7589/* confdefs.h.  */
7590_ACEOF
7591cat confdefs.h >>conftest.$ac_ext
7592cat >>conftest.$ac_ext <<_ACEOF
7593/* end confdefs.h.  */
7594#ifdef __STDC__
7595# include <limits.h>
7596#else
7597# include <assert.h>
7598#endif
7599                     Syntax error
7600_ACEOF
7601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7602  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7603  ac_status=$?
7604  grep -v '^ *+' conftest.er1 >conftest.err
7605  rm -f conftest.er1
7606  cat conftest.err >&5
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); } >/dev/null; then
7609  if test -s conftest.err; then
7610    ac_cpp_err=$ac_cxx_preproc_warn_flag
7611    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7612  else
7613    ac_cpp_err=
7614  fi
7615else
7616  ac_cpp_err=yes
7617fi
7618if test -z "$ac_cpp_err"; then
7619  :
7620else
7621  echo "$as_me: failed program was:" >&5
7622sed 's/^/| /' conftest.$ac_ext >&5
7623
7624  # Broken: fails on valid input.
7625continue
7626fi
7627rm -f conftest.err conftest.$ac_ext
7628
7629  # OK, works on sane cases.  Now check whether non-existent headers
7630  # can be detected and how.
7631  cat >conftest.$ac_ext <<_ACEOF
7632/* confdefs.h.  */
7633_ACEOF
7634cat confdefs.h >>conftest.$ac_ext
7635cat >>conftest.$ac_ext <<_ACEOF
7636/* end confdefs.h.  */
7637#include <ac_nonexistent.h>
7638_ACEOF
7639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7640  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7641  ac_status=$?
7642  grep -v '^ *+' conftest.er1 >conftest.err
7643  rm -f conftest.er1
7644  cat conftest.err >&5
7645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646  (exit $ac_status); } >/dev/null; then
7647  if test -s conftest.err; then
7648    ac_cpp_err=$ac_cxx_preproc_warn_flag
7649    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7650  else
7651    ac_cpp_err=
7652  fi
7653else
7654  ac_cpp_err=yes
7655fi
7656if test -z "$ac_cpp_err"; then
7657  # Broken: success on invalid input.
7658continue
7659else
7660  echo "$as_me: failed program was:" >&5
7661sed 's/^/| /' conftest.$ac_ext >&5
7662
7663  # Passes both tests.
7664ac_preproc_ok=:
7665break
7666fi
7667rm -f conftest.err conftest.$ac_ext
7668
7669done
7670# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7671rm -f conftest.err conftest.$ac_ext
7672if $ac_preproc_ok; then
7673  break
7674fi
7675
7676    done
7677    ac_cv_prog_CXXCPP=$CXXCPP
7678
7679fi
7680  CXXCPP=$ac_cv_prog_CXXCPP
7681else
7682  ac_cv_prog_CXXCPP=$CXXCPP
7683fi
7684echo "$as_me:$LINENO: result: $CXXCPP" >&5
7685echo "${ECHO_T}$CXXCPP" >&6
7686ac_preproc_ok=false
7687for ac_cxx_preproc_warn_flag in '' yes
7688do
7689  # Use a header file that comes with gcc, so configuring glibc
7690  # with a fresh cross-compiler works.
7691  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7692  # <limits.h> exists even on freestanding compilers.
7693  # On the NeXT, cc -E runs the code through the compiler's parser,
7694  # not just through cpp. "Syntax error" is here to catch this case.
7695  cat >conftest.$ac_ext <<_ACEOF
7696/* confdefs.h.  */
7697_ACEOF
7698cat confdefs.h >>conftest.$ac_ext
7699cat >>conftest.$ac_ext <<_ACEOF
7700/* end confdefs.h.  */
7701#ifdef __STDC__
7702# include <limits.h>
7703#else
7704# include <assert.h>
7705#endif
7706                     Syntax error
7707_ACEOF
7708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7709  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7710  ac_status=$?
7711  grep -v '^ *+' conftest.er1 >conftest.err
7712  rm -f conftest.er1
7713  cat conftest.err >&5
7714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715  (exit $ac_status); } >/dev/null; then
7716  if test -s conftest.err; then
7717    ac_cpp_err=$ac_cxx_preproc_warn_flag
7718    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7719  else
7720    ac_cpp_err=
7721  fi
7722else
7723  ac_cpp_err=yes
7724fi
7725if test -z "$ac_cpp_err"; then
7726  :
7727else
7728  echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
7731  # Broken: fails on valid input.
7732continue
7733fi
7734rm -f conftest.err conftest.$ac_ext
7735
7736  # OK, works on sane cases.  Now check whether non-existent headers
7737  # can be detected and how.
7738  cat >conftest.$ac_ext <<_ACEOF
7739/* confdefs.h.  */
7740_ACEOF
7741cat confdefs.h >>conftest.$ac_ext
7742cat >>conftest.$ac_ext <<_ACEOF
7743/* end confdefs.h.  */
7744#include <ac_nonexistent.h>
7745_ACEOF
7746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7747  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7748  ac_status=$?
7749  grep -v '^ *+' conftest.er1 >conftest.err
7750  rm -f conftest.er1
7751  cat conftest.err >&5
7752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753  (exit $ac_status); } >/dev/null; then
7754  if test -s conftest.err; then
7755    ac_cpp_err=$ac_cxx_preproc_warn_flag
7756    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7757  else
7758    ac_cpp_err=
7759  fi
7760else
7761  ac_cpp_err=yes
7762fi
7763if test -z "$ac_cpp_err"; then
7764  # Broken: success on invalid input.
7765continue
7766else
7767  echo "$as_me: failed program was:" >&5
7768sed 's/^/| /' conftest.$ac_ext >&5
7769
7770  # Passes both tests.
7771ac_preproc_ok=:
7772break
7773fi
7774rm -f conftest.err conftest.$ac_ext
7775
7776done
7777# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7778rm -f conftest.err conftest.$ac_ext
7779if $ac_preproc_ok; then
7780  :
7781else
7782  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7783See \`config.log' for more details." >&5
7784echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7785See \`config.log' for more details." >&2;}
7786   { (exit 1); exit 1; }; }
7787fi
7788
7789ac_ext=cc
7790ac_cpp='$CXXCPP $CPPFLAGS'
7791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7794
7795fi
7796
7797
7798
7799# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7800
7801# find the maximum length of command line arguments
7802echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7803echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7804if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7805  echo $ECHO_N "(cached) $ECHO_C" >&6
7806else
7807    i=0
7808  teststring="ABCD"
7809
7810  case $build_os in
7811  msdosdjgpp*)
7812    # On DJGPP, this test can blow up pretty badly due to problems in libc
7813    # (any single argument exceeding 2000 bytes causes a buffer overrun
7814    # during glob expansion).  Even if it were fixed, the result of this
7815    # check would be larger than it should be.
7816    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7817    ;;
7818
7819  gnu*)
7820    # Under GNU Hurd, this test is not required because there is
7821    # no limit to the length of command line arguments.
7822    # Libtool will interpret -1 as no limit whatsoever
7823    lt_cv_sys_max_cmd_len=-1;
7824    ;;
7825
7826  cygwin* | mingw*)
7827    # On Win9x/ME, this test blows up -- it succeeds, but takes
7828    # about 5 minutes as the teststring grows exponentially.
7829    # Worse, since 9x/ME are not pre-emptively multitasking,
7830    # you end up with a "frozen" computer, even though with patience
7831    # the test eventually succeeds (with a max line length of 256k).
7832    # Instead, let's just punt: use the minimum linelength reported by
7833    # all of the supported platforms: 8192 (on NT/2K/XP).
7834    lt_cv_sys_max_cmd_len=8192;
7835    ;;
7836
7837  amigaos*)
7838    # On AmigaOS with pdksh, this test takes hours, literally.
7839    # So we just punt and use a minimum line length of 8192.
7840    lt_cv_sys_max_cmd_len=8192;
7841    ;;
7842
7843  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7844    # This has been around since 386BSD, at least.  Likely further.
7845    if test -x /sbin/sysctl; then
7846      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7847    elif test -x /usr/sbin/sysctl; then
7848      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7849    else
7850      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7851    fi
7852    # And add a safety zone
7853    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7854    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7855    ;;
7856
7857  interix*)
7858    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7859    lt_cv_sys_max_cmd_len=196608
7860    ;;
7861
7862  osf*)
7863    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7864    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7865    # nice to cause kernel panics so lets avoid the loop below.
7866    # First set a reasonable default.
7867    lt_cv_sys_max_cmd_len=16384
7868    #
7869    if test -x /sbin/sysconfig; then
7870      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7871        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7872      esac
7873    fi
7874    ;;
7875  sco3.2v5*)
7876    lt_cv_sys_max_cmd_len=102400
7877    ;;
7878  sysv5* | sco5v6* | sysv4.2uw2*)
7879    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7880    if test -n "$kargmax"; then
7881      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7882    else
7883      lt_cv_sys_max_cmd_len=32768
7884    fi
7885    ;;
7886  *)
7887    # If test is not a shell built-in, we'll probably end up computing a
7888    # maximum length that is only half of the actual maximum length, but
7889    # we can't tell.
7890    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7891    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7892               = "XX$teststring") >/dev/null 2>&1 &&
7893            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7894            lt_cv_sys_max_cmd_len=$new_result &&
7895            test $i != 17 # 1/2 MB should be enough
7896    do
7897      i=`expr $i + 1`
7898      teststring=$teststring$teststring
7899    done
7900    teststring=
7901    # Add a significant safety factor because C++ compilers can tack on massive
7902    # amounts of additional arguments before passing them to the linker.
7903    # It appears as though 1/2 is a usable value.
7904    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7905    ;;
7906  esac
7907
7908fi
7909
7910if test -n $lt_cv_sys_max_cmd_len ; then
7911  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7912echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7913else
7914  echo "$as_me:$LINENO: result: none" >&5
7915echo "${ECHO_T}none" >&6
7916fi
7917
7918
7919
7920
7921# Check for command to grab the raw symbol name followed by C symbol from nm.
7922echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7923echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7924if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7925  echo $ECHO_N "(cached) $ECHO_C" >&6
7926else
7927
7928# These are sane defaults that work on at least a few old systems.
7929# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7930
7931# Character class describing NM global symbol codes.
7932symcode='[BCDEGRST]'
7933
7934# Regexp to match symbols that can be accessed directly from C.
7935sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7936
7937# Transform an extracted symbol line into a proper C declaration
7938lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7939
7940# Transform an extracted symbol line into symbol name and symbol address
7941lt_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'"
7942
7943# Define system-specific variables.
7944case $host_os in
7945aix*)
7946  symcode='[BCDT]'
7947  ;;
7948cygwin* | mingw* | pw32*)
7949  symcode='[ABCDGISTW]'
7950  ;;
7951hpux*) # Its linker distinguishes data from code symbols
7952  if test "$host_cpu" = ia64; then
7953    symcode='[ABCDEGRST]'
7954  fi
7955  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7956  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'"
7957  ;;
7958linux*)
7959  if test "$host_cpu" = ia64; then
7960    symcode='[ABCDGIRSTW]'
7961    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7962    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'"
7963  fi
7964  ;;
7965irix* | nonstopux*)
7966  symcode='[BCDEGRST]'
7967  ;;
7968osf*)
7969  symcode='[BCDEGQRST]'
7970  ;;
7971solaris*)
7972  symcode='[BDRT]'
7973  ;;
7974sco3.2v5*)
7975  symcode='[DT]'
7976  ;;
7977sysv4.2uw2*)
7978  symcode='[DT]'
7979  ;;
7980sysv5* | sco5v6* | unixware* | OpenUNIX*)
7981  symcode='[ABDT]'
7982  ;;
7983sysv4)
7984  symcode='[DFNSTU]'
7985  ;;
7986esac
7987
7988# Handle CRLF in mingw tool chain
7989opt_cr=
7990case $build_os in
7991mingw*)
7992  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7993  ;;
7994esac
7995
7996# If we're using GNU nm, then use its standard symbol codes.
7997case `$NM -V 2>&1` in
7998*GNU* | *'with BFD'*)
7999  symcode='[ABCDGIRSTW]' ;;
8000esac
8001
8002# Try without a prefix undercore, then with it.
8003for ac_symprfx in "" "_"; do
8004
8005  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8006  symxfrm="\\1 $ac_symprfx\\2 \\2"
8007
8008  # Write the raw and C identifiers.
8009  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8010
8011  # Check to see that the pipe works correctly.
8012  pipe_works=no
8013
8014  rm -f conftest*
8015  cat > conftest.$ac_ext <<EOF
8016#ifdef __cplusplus
8017extern "C" {
8018#endif
8019char nm_test_var;
8020void nm_test_func(){}
8021#ifdef __cplusplus
8022}
8023#endif
8024int main(){nm_test_var='a';nm_test_func();return(0);}
8025EOF
8026
8027  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8028  (eval $ac_compile) 2>&5
8029  ac_status=$?
8030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031  (exit $ac_status); }; then
8032    # Now try to grab the symbols.
8033    nlist=conftest.nm
8034    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8035  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8036  ac_status=$?
8037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038  (exit $ac_status); } && test -s "$nlist"; then
8039      # Try sorting and uniquifying the output.
8040      if sort "$nlist" | uniq > "$nlist"T; then
8041        mv -f "$nlist"T "$nlist"
8042      else
8043        rm -f "$nlist"T
8044      fi
8045
8046      # Make sure that we snagged all the symbols we need.
8047      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8048        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8049          cat <<EOF > conftest.$ac_ext
8050#ifdef __cplusplus
8051extern "C" {
8052#endif
8053
8054EOF
8055          # Now generate the symbol file.
8056          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8057
8058          cat <<EOF >> conftest.$ac_ext
8059#if defined (__STDC__) && __STDC__
8060# define lt_ptr_t void *
8061#else
8062# define lt_ptr_t char *
8063# define const
8064#endif
8065
8066/* The mapping between symbol names and symbols. */
8067const struct {
8068  const char *name;
8069  lt_ptr_t address;
8070}
8071lt_preloaded_symbols[] =
8072{
8073EOF
8074          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8075          cat <<\EOF >> conftest.$ac_ext
8076  {0, (lt_ptr_t) 0}
8077};
8078
8079#ifdef __cplusplus
8080}
8081#endif
8082EOF
8083          # Now try linking the two files.
8084          mv conftest.$ac_objext conftstm.$ac_objext
8085          lt_save_LIBS="$LIBS"
8086          lt_save_CFLAGS="$CFLAGS"
8087          LIBS="conftstm.$ac_objext"
8088          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8089          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090  (eval $ac_link) 2>&5
8091  ac_status=$?
8092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8094            pipe_works=yes
8095          fi
8096          LIBS="$lt_save_LIBS"
8097          CFLAGS="$lt_save_CFLAGS"
8098        else
8099          echo "cannot find nm_test_func in $nlist" >&5
8100        fi
8101      else
8102        echo "cannot find nm_test_var in $nlist" >&5
8103      fi
8104    else
8105      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8106    fi
8107  else
8108    echo "$progname: failed program was:" >&5
8109    cat conftest.$ac_ext >&5
8110  fi
8111  rm -f conftest* conftst*
8112
8113  # Do not use the global_symbol_pipe unless it works.
8114  if test "$pipe_works" = yes; then
8115    break
8116  else
8117    lt_cv_sys_global_symbol_pipe=
8118  fi
8119done
8120
8121fi
8122
8123if test -z "$lt_cv_sys_global_symbol_pipe"; then
8124  lt_cv_sys_global_symbol_to_cdecl=
8125fi
8126if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8127  echo "$as_me:$LINENO: result: failed" >&5
8128echo "${ECHO_T}failed" >&6
8129else
8130  echo "$as_me:$LINENO: result: ok" >&5
8131echo "${ECHO_T}ok" >&6
8132fi
8133
8134echo "$as_me:$LINENO: checking for objdir" >&5
8135echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8136if test "${lt_cv_objdir+set}" = set; then
8137  echo $ECHO_N "(cached) $ECHO_C" >&6
8138else
8139  rm -f .libs 2>/dev/null
8140mkdir .libs 2>/dev/null
8141if test -d .libs; then
8142  lt_cv_objdir=.libs
8143else
8144  # MS-DOS does not allow filenames that begin with a dot.
8145  lt_cv_objdir=_libs
8146fi
8147rmdir .libs 2>/dev/null
8148fi
8149echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8150echo "${ECHO_T}$lt_cv_objdir" >&6
8151objdir=$lt_cv_objdir
8152
8153
8154
8155
8156
8157case $host_os in
8158aix3*)
8159  # AIX sometimes has problems with the GCC collect2 program.  For some
8160  # reason, if we set the COLLECT_NAMES environment variable, the problems
8161  # vanish in a puff of smoke.
8162  if test "X${COLLECT_NAMES+set}" != Xset; then
8163    COLLECT_NAMES=
8164    export COLLECT_NAMES
8165  fi
8166  ;;
8167esac
8168
8169# Sed substitution that helps us do robust quoting.  It backslashifies
8170# metacharacters that are still active within double-quoted strings.
8171Xsed='sed -e 1s/^X//'
8172sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8173
8174# Same as above, but do not quote variable references.
8175double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8176
8177# Sed substitution to delay expansion of an escaped shell variable in a
8178# double_quote_subst'ed string.
8179delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8180
8181# Sed substitution to avoid accidental globbing in evaled expressions
8182no_glob_subst='s/\*/\\\*/g'
8183
8184# Constants:
8185rm="rm -f"
8186
8187# Global variables:
8188default_ofile=libtool
8189can_build_shared=yes
8190
8191# All known linkers require a `.a' archive for static linking (except MSVC,
8192# which needs '.lib').
8193libext=a
8194ltmain="$ac_aux_dir/ltmain.sh"
8195ofile="$default_ofile"
8196with_gnu_ld="$lt_cv_prog_gnu_ld"
8197
8198if test -n "$ac_tool_prefix"; then
8199  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8200set dummy ${ac_tool_prefix}ar; ac_word=$2
8201echo "$as_me:$LINENO: checking for $ac_word" >&5
8202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8203if test "${ac_cv_prog_AR+set}" = set; then
8204  echo $ECHO_N "(cached) $ECHO_C" >&6
8205else
8206  if test -n "$AR"; then
8207  ac_cv_prog_AR="$AR" # Let the user override the test.
8208else
8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212  IFS=$as_save_IFS
8213  test -z "$as_dir" && as_dir=.
8214  for ac_exec_ext in '' $ac_executable_extensions; do
8215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216    ac_cv_prog_AR="${ac_tool_prefix}ar"
8217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8218    break 2
8219  fi
8220done
8221done
8222
8223fi
8224fi
8225AR=$ac_cv_prog_AR
8226if test -n "$AR"; then
8227  echo "$as_me:$LINENO: result: $AR" >&5
8228echo "${ECHO_T}$AR" >&6
8229else
8230  echo "$as_me:$LINENO: result: no" >&5
8231echo "${ECHO_T}no" >&6
8232fi
8233
8234fi
8235if test -z "$ac_cv_prog_AR"; then
8236  ac_ct_AR=$AR
8237  # Extract the first word of "ar", so it can be a program name with args.
8238set dummy ar; ac_word=$2
8239echo "$as_me:$LINENO: checking for $ac_word" >&5
8240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8241if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8242  echo $ECHO_N "(cached) $ECHO_C" >&6
8243else
8244  if test -n "$ac_ct_AR"; then
8245  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8246else
8247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248for as_dir in $PATH
8249do
8250  IFS=$as_save_IFS
8251  test -z "$as_dir" && as_dir=.
8252  for ac_exec_ext in '' $ac_executable_extensions; do
8253  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8254    ac_cv_prog_ac_ct_AR="ar"
8255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8256    break 2
8257  fi
8258done
8259done
8260
8261  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8262fi
8263fi
8264ac_ct_AR=$ac_cv_prog_ac_ct_AR
8265if test -n "$ac_ct_AR"; then
8266  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8267echo "${ECHO_T}$ac_ct_AR" >&6
8268else
8269  echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6
8271fi
8272
8273  AR=$ac_ct_AR
8274else
8275  AR="$ac_cv_prog_AR"
8276fi
8277
8278if test -n "$ac_tool_prefix"; then
8279  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8280set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8281echo "$as_me:$LINENO: checking for $ac_word" >&5
8282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283if test "${ac_cv_prog_RANLIB+set}" = set; then
8284  echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286  if test -n "$RANLIB"; then
8287  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8288else
8289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290for as_dir in $PATH
8291do
8292  IFS=$as_save_IFS
8293  test -z "$as_dir" && as_dir=.
8294  for ac_exec_ext in '' $ac_executable_extensions; do
8295  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8297    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298    break 2
8299  fi
8300done
8301done
8302
8303fi
8304fi
8305RANLIB=$ac_cv_prog_RANLIB
8306if test -n "$RANLIB"; then
8307  echo "$as_me:$LINENO: result: $RANLIB" >&5
8308echo "${ECHO_T}$RANLIB" >&6
8309else
8310  echo "$as_me:$LINENO: result: no" >&5
8311echo "${ECHO_T}no" >&6
8312fi
8313
8314fi
8315if test -z "$ac_cv_prog_RANLIB"; then
8316  ac_ct_RANLIB=$RANLIB
8317  # Extract the first word of "ranlib", so it can be a program name with args.
8318set dummy ranlib; ac_word=$2
8319echo "$as_me:$LINENO: checking for $ac_word" >&5
8320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8321if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8322  echo $ECHO_N "(cached) $ECHO_C" >&6
8323else
8324  if test -n "$ac_ct_RANLIB"; then
8325  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8326else
8327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328for as_dir in $PATH
8329do
8330  IFS=$as_save_IFS
8331  test -z "$as_dir" && as_dir=.
8332  for ac_exec_ext in '' $ac_executable_extensions; do
8333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334    ac_cv_prog_ac_ct_RANLIB="ranlib"
8335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336    break 2
8337  fi
8338done
8339done
8340
8341  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8342fi
8343fi
8344ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8345if test -n "$ac_ct_RANLIB"; then
8346  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8347echo "${ECHO_T}$ac_ct_RANLIB" >&6
8348else
8349  echo "$as_me:$LINENO: result: no" >&5
8350echo "${ECHO_T}no" >&6
8351fi
8352
8353  RANLIB=$ac_ct_RANLIB
8354else
8355  RANLIB="$ac_cv_prog_RANLIB"
8356fi
8357
8358if test -n "$ac_tool_prefix"; then
8359  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8360set dummy ${ac_tool_prefix}strip; ac_word=$2
8361echo "$as_me:$LINENO: checking for $ac_word" >&5
8362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8363if test "${ac_cv_prog_STRIP+set}" = set; then
8364  echo $ECHO_N "(cached) $ECHO_C" >&6
8365else
8366  if test -n "$STRIP"; then
8367  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8368else
8369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372  IFS=$as_save_IFS
8373  test -z "$as_dir" && as_dir=.
8374  for ac_exec_ext in '' $ac_executable_extensions; do
8375  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8376    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8378    break 2
8379  fi
8380done
8381done
8382
8383fi
8384fi
8385STRIP=$ac_cv_prog_STRIP
8386if test -n "$STRIP"; then
8387  echo "$as_me:$LINENO: result: $STRIP" >&5
8388echo "${ECHO_T}$STRIP" >&6
8389else
8390  echo "$as_me:$LINENO: result: no" >&5
8391echo "${ECHO_T}no" >&6
8392fi
8393
8394fi
8395if test -z "$ac_cv_prog_STRIP"; then
8396  ac_ct_STRIP=$STRIP
8397  # Extract the first word of "strip", so it can be a program name with args.
8398set dummy strip; ac_word=$2
8399echo "$as_me:$LINENO: checking for $ac_word" >&5
8400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8401if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8402  echo $ECHO_N "(cached) $ECHO_C" >&6
8403else
8404  if test -n "$ac_ct_STRIP"; then
8405  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8406else
8407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408for as_dir in $PATH
8409do
8410  IFS=$as_save_IFS
8411  test -z "$as_dir" && as_dir=.
8412  for ac_exec_ext in '' $ac_executable_extensions; do
8413  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414    ac_cv_prog_ac_ct_STRIP="strip"
8415    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416    break 2
8417  fi
8418done
8419done
8420
8421  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8422fi
8423fi
8424ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8425if test -n "$ac_ct_STRIP"; then
8426  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8427echo "${ECHO_T}$ac_ct_STRIP" >&6
8428else
8429  echo "$as_me:$LINENO: result: no" >&5
8430echo "${ECHO_T}no" >&6
8431fi
8432
8433  STRIP=$ac_ct_STRIP
8434else
8435  STRIP="$ac_cv_prog_STRIP"
8436fi
8437
8438
8439old_CC="$CC"
8440old_CFLAGS="$CFLAGS"
8441
8442# Set sane defaults for various variables
8443test -z "$AR" && AR=ar
8444test -z "$AR_FLAGS" && AR_FLAGS=cru
8445test -z "$AS" && AS=as
8446test -z "$CC" && CC=cc
8447test -z "$LTCC" && LTCC=$CC
8448test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8449test -z "$DLLTOOL" && DLLTOOL=dlltool
8450test -z "$LD" && LD=ld
8451test -z "$LN_S" && LN_S="ln -s"
8452test -z "$MAGIC_CMD" && MAGIC_CMD=file
8453test -z "$NM" && NM=nm
8454test -z "$SED" && SED=sed
8455test -z "$OBJDUMP" && OBJDUMP=objdump
8456test -z "$RANLIB" && RANLIB=:
8457test -z "$STRIP" && STRIP=:
8458test -z "$ac_objext" && ac_objext=o
8459
8460# Determine commands to create old-style static archives.
8461old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8462old_postinstall_cmds='chmod 644 $oldlib'
8463old_postuninstall_cmds=
8464
8465if test -n "$RANLIB"; then
8466  case $host_os in
8467  openbsd*)
8468    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8469    ;;
8470  *)
8471    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8472    ;;
8473  esac
8474  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8475fi
8476
8477for cc_temp in $compiler""; do
8478  case $cc_temp in
8479    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8480    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8481    \-*) ;;
8482    *) break;;
8483  esac
8484done
8485cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8486
8487
8488# Only perform the check for file, if the check method requires it
8489case $deplibs_check_method in
8490file_magic*)
8491  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8492    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8493echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8494if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8495  echo $ECHO_N "(cached) $ECHO_C" >&6
8496else
8497  case $MAGIC_CMD in
8498[\\/*] |  ?:[\\/]*)
8499  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8500  ;;
8501*)
8502  lt_save_MAGIC_CMD="$MAGIC_CMD"
8503  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8504  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8505  for ac_dir in $ac_dummy; do
8506    IFS="$lt_save_ifs"
8507    test -z "$ac_dir" && ac_dir=.
8508    if test -f $ac_dir/${ac_tool_prefix}file; then
8509      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8510      if test -n "$file_magic_test_file"; then
8511        case $deplibs_check_method in
8512        "file_magic "*)
8513          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8514          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8515          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8516            $EGREP "$file_magic_regex" > /dev/null; then
8517            :
8518          else
8519            cat <<EOF 1>&2
8520
8521*** Warning: the command libtool uses to detect shared libraries,
8522*** $file_magic_cmd, produces output that libtool cannot recognize.
8523*** The result is that libtool may fail to recognize shared libraries
8524*** as such.  This will affect the creation of libtool libraries that
8525*** depend on shared libraries, but programs linked with such libtool
8526*** libraries will work regardless of this problem.  Nevertheless, you
8527*** may want to report the problem to your system manager and/or to
8528*** bug-libtool@gnu.org
8529
8530EOF
8531          fi ;;
8532        esac
8533      fi
8534      break
8535    fi
8536  done
8537  IFS="$lt_save_ifs"
8538  MAGIC_CMD="$lt_save_MAGIC_CMD"
8539  ;;
8540esac
8541fi
8542
8543MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8544if test -n "$MAGIC_CMD"; then
8545  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8546echo "${ECHO_T}$MAGIC_CMD" >&6
8547else
8548  echo "$as_me:$LINENO: result: no" >&5
8549echo "${ECHO_T}no" >&6
8550fi
8551
8552if test -z "$lt_cv_path_MAGIC_CMD"; then
8553  if test -n "$ac_tool_prefix"; then
8554    echo "$as_me:$LINENO: checking for file" >&5
8555echo $ECHO_N "checking for file... $ECHO_C" >&6
8556if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8557  echo $ECHO_N "(cached) $ECHO_C" >&6
8558else
8559  case $MAGIC_CMD in
8560[\\/*] |  ?:[\\/]*)
8561  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8562  ;;
8563*)
8564  lt_save_MAGIC_CMD="$MAGIC_CMD"
8565  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8566  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8567  for ac_dir in $ac_dummy; do
8568    IFS="$lt_save_ifs"
8569    test -z "$ac_dir" && ac_dir=.
8570    if test -f $ac_dir/file; then
8571      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8572      if test -n "$file_magic_test_file"; then
8573        case $deplibs_check_method in
8574        "file_magic "*)
8575          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8576          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8577          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8578            $EGREP "$file_magic_regex" > /dev/null; then
8579            :
8580          else
8581            cat <<EOF 1>&2
8582
8583*** Warning: the command libtool uses to detect shared libraries,
8584*** $file_magic_cmd, produces output that libtool cannot recognize.
8585*** The result is that libtool may fail to recognize shared libraries
8586*** as such.  This will affect the creation of libtool libraries that
8587*** depend on shared libraries, but programs linked with such libtool
8588*** libraries will work regardless of this problem.  Nevertheless, you
8589*** may want to report the problem to your system manager and/or to
8590*** bug-libtool@gnu.org
8591
8592EOF
8593          fi ;;
8594        esac
8595      fi
8596      break
8597    fi
8598  done
8599  IFS="$lt_save_ifs"
8600  MAGIC_CMD="$lt_save_MAGIC_CMD"
8601  ;;
8602esac
8603fi
8604
8605MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8606if test -n "$MAGIC_CMD"; then
8607  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8608echo "${ECHO_T}$MAGIC_CMD" >&6
8609else
8610  echo "$as_me:$LINENO: result: no" >&5
8611echo "${ECHO_T}no" >&6
8612fi
8613
8614  else
8615    MAGIC_CMD=:
8616  fi
8617fi
8618
8619  fi
8620  ;;
8621esac
8622
8623enable_dlopen=no
8624enable_win32_dll=no
8625
8626# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8627if test "${enable_libtool_lock+set}" = set; then
8628  enableval="$enable_libtool_lock"
8629
8630fi;
8631test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8632
8633
8634# Check whether --with-pic or --without-pic was given.
8635if test "${with_pic+set}" = set; then
8636  withval="$with_pic"
8637  pic_mode="$withval"
8638else
8639  pic_mode=default
8640fi;
8641test -z "$pic_mode" && pic_mode=default
8642
8643# Use C for the default configuration in the libtool script
8644tagname=
8645lt_save_CC="$CC"
8646ac_ext=c
8647ac_cpp='$CPP $CPPFLAGS'
8648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8650ac_compiler_gnu=$ac_cv_c_compiler_gnu
8651
8652
8653# Source file extension for C test sources.
8654ac_ext=c
8655
8656# Object file extension for compiled C test sources.
8657objext=o
8658objext=$objext
8659
8660# Code to be used in simple compile tests
8661lt_simple_compile_test_code="int some_variable = 0;\n"
8662
8663# Code to be used in simple link tests
8664lt_simple_link_test_code='int main(){return(0);}\n'
8665
8666
8667# If no C compiler was specified, use CC.
8668LTCC=${LTCC-"$CC"}
8669
8670# If no C compiler flags were specified, use CFLAGS.
8671LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8672
8673# Allow CC to be a program name with arguments.
8674compiler=$CC
8675
8676
8677# save warnings/boilerplate of simple test code
8678ac_outfile=conftest.$ac_objext
8679printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8680eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8681_lt_compiler_boilerplate=`cat conftest.err`
8682$rm conftest*
8683
8684ac_outfile=conftest.$ac_objext
8685printf "$lt_simple_link_test_code" >conftest.$ac_ext
8686eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8687_lt_linker_boilerplate=`cat conftest.err`
8688$rm conftest*
8689
8690
8691## CAVEAT EMPTOR:
8692## There is no encapsulation within the following macros, do not change
8693## the running order or otherwise move them around unless you know exactly
8694## what you are doing...
8695
8696lt_prog_compiler_no_builtin_flag=
8697
8698if test "$GCC" = yes; then
8699  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8700
8701
8702echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8703echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8704if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8705  echo $ECHO_N "(cached) $ECHO_C" >&6
8706else
8707  lt_cv_prog_compiler_rtti_exceptions=no
8708  ac_outfile=conftest.$ac_objext
8709   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8710   lt_compiler_flag="-fno-rtti -fno-exceptions"
8711   # Insert the option either (1) after the last *FLAGS variable, or
8712   # (2) before a word containing "conftest.", or (3) at the end.
8713   # Note that $ac_compile itself does not contain backslashes and begins
8714   # with a dollar sign (not a hyphen), so the echo should work correctly.
8715   # The option is referenced via a variable to avoid confusing sed.
8716   lt_compile=`echo "$ac_compile" | $SED \
8717   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8718   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8719   -e 's:$: $lt_compiler_flag:'`
8720   (eval echo "\"\$as_me:8720: $lt_compile\"" >&5)
8721   (eval "$lt_compile" 2>conftest.err)
8722   ac_status=$?
8723   cat conftest.err >&5
8724   echo "$as_me:8724: \$? = $ac_status" >&5
8725   if (exit $ac_status) && test -s "$ac_outfile"; then
8726     # The compiler can only warn and ignore the option if not recognized
8727     # So say no if there are warnings other than the usual output.
8728     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8729     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8730     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8731       lt_cv_prog_compiler_rtti_exceptions=yes
8732     fi
8733   fi
8734   $rm conftest*
8735
8736fi
8737echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8738echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8739
8740if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8741    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8742else
8743    :
8744fi
8745
8746fi
8747
8748lt_prog_compiler_wl=
8749lt_prog_compiler_pic=
8750lt_prog_compiler_static=
8751
8752echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8753echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8754
8755  if test "$GCC" = yes; then
8756    lt_prog_compiler_wl='-Wl,'
8757    lt_prog_compiler_static='-static'
8758
8759    case $host_os in
8760      aix*)
8761      # All AIX code is PIC.
8762      if test "$host_cpu" = ia64; then
8763        # AIX 5 now supports IA64 processor
8764        lt_prog_compiler_static='-Bstatic'
8765      fi
8766      ;;
8767
8768    amigaos*)
8769      # FIXME: we need at least 68020 code to build shared libraries, but
8770      # adding the `-m68020' flag to GCC prevents building anything better,
8771      # like `-m68040'.
8772      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8773      ;;
8774
8775    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8776      # PIC is the default for these OSes.
8777      ;;
8778
8779    mingw* | pw32* | os2*)
8780      # This hack is so that the source file can tell whether it is being
8781      # built for inclusion in a dll (and should export symbols for example).
8782      lt_prog_compiler_pic='-DDLL_EXPORT'
8783      ;;
8784
8785    darwin* | rhapsody*)
8786      # PIC is the default on this platform
8787      # Common symbols not allowed in MH_DYLIB files
8788      lt_prog_compiler_pic='-fno-common'
8789      ;;
8790
8791    interix3*)
8792      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8793      # Instead, we relocate shared libraries at runtime.
8794      ;;
8795
8796    msdosdjgpp*)
8797      # Just because we use GCC doesn't mean we suddenly get shared libraries
8798      # on systems that don't support them.
8799      lt_prog_compiler_can_build_shared=no
8800      enable_shared=no
8801      ;;
8802
8803    sysv4*MP*)
8804      if test -d /usr/nec; then
8805        lt_prog_compiler_pic=-Kconform_pic
8806      fi
8807      ;;
8808
8809    hpux*)
8810      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8811      # not for PA HP-UX.
8812      case $host_cpu in
8813      hppa*64*|ia64*)
8814        # +Z the default
8815        ;;
8816      *)
8817        lt_prog_compiler_pic='-fPIC'
8818        ;;
8819      esac
8820      ;;
8821
8822    *)
8823      lt_prog_compiler_pic='-fPIC'
8824      ;;
8825    esac
8826  else
8827    # PORTME Check for flag to pass linker flags through the system compiler.
8828    case $host_os in
8829    aix*)
8830      lt_prog_compiler_wl='-Wl,'
8831      if test "$host_cpu" = ia64; then
8832        # AIX 5 now supports IA64 processor
8833        lt_prog_compiler_static='-Bstatic'
8834      else
8835        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8836      fi
8837      ;;
8838      darwin*)
8839        # PIC is the default on this platform
8840        # Common symbols not allowed in MH_DYLIB files
8841       case $cc_basename in
8842         xlc*)
8843         lt_prog_compiler_pic='-qnocommon'
8844         lt_prog_compiler_wl='-Wl,'
8845         ;;
8846       esac
8847       ;;
8848
8849    mingw* | pw32* | os2*)
8850      # This hack is so that the source file can tell whether it is being
8851      # built for inclusion in a dll (and should export symbols for example).
8852      lt_prog_compiler_pic='-DDLL_EXPORT'
8853      ;;
8854
8855    hpux9* | hpux10* | hpux11*)
8856      lt_prog_compiler_wl='-Wl,'
8857      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8858      # not for PA HP-UX.
8859      case $host_cpu in
8860      hppa*64*|ia64*)
8861        # +Z the default
8862        ;;
8863      *)
8864        lt_prog_compiler_pic='+Z'
8865        ;;
8866      esac
8867      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8868      lt_prog_compiler_static='${wl}-a ${wl}archive'
8869      ;;
8870
8871    irix5* | irix6* | nonstopux*)
8872      lt_prog_compiler_wl='-Wl,'
8873      # PIC (with -KPIC) is the default.
8874      lt_prog_compiler_static='-non_shared'
8875      ;;
8876
8877    newsos6)
8878      lt_prog_compiler_pic='-KPIC'
8879      lt_prog_compiler_static='-Bstatic'
8880      ;;
8881
8882    linux*)
8883      case $cc_basename in
8884      icc* | ecc*)
8885        lt_prog_compiler_wl='-Wl,'
8886        lt_prog_compiler_pic='-KPIC'
8887        lt_prog_compiler_static='-static'
8888        ;;
8889      pgcc* | pgf77* | pgf90* | pgf95*)
8890        # Portland Group compilers (*not* the Pentium gcc compiler,
8891        # which looks to be a dead project)
8892        lt_prog_compiler_wl='-Wl,'
8893        lt_prog_compiler_pic='-fpic'
8894        lt_prog_compiler_static='-Bstatic'
8895        ;;
8896      ccc*)
8897        lt_prog_compiler_wl='-Wl,'
8898        # All Alpha code is PIC.
8899        lt_prog_compiler_static='-non_shared'
8900        ;;
8901      esac
8902      ;;
8903
8904    osf3* | osf4* | osf5*)
8905      lt_prog_compiler_wl='-Wl,'
8906      # All OSF/1 code is PIC.
8907      lt_prog_compiler_static='-non_shared'
8908      ;;
8909
8910    solaris*)
8911      lt_prog_compiler_pic='-KPIC'
8912      lt_prog_compiler_static='-Bstatic'
8913      case $cc_basename in
8914      f77* | f90* | f95*)
8915        lt_prog_compiler_wl='-Qoption ld ';;
8916      *)
8917        lt_prog_compiler_wl='-Wl,';;
8918      esac
8919      ;;
8920
8921    sunos4*)
8922      lt_prog_compiler_wl='-Qoption ld '
8923      lt_prog_compiler_pic='-PIC'
8924      lt_prog_compiler_static='-Bstatic'
8925      ;;
8926
8927    sysv4 | sysv4.2uw2* | sysv4.3*)
8928      lt_prog_compiler_wl='-Wl,'
8929      lt_prog_compiler_pic='-KPIC'
8930      lt_prog_compiler_static='-Bstatic'
8931      ;;
8932
8933    sysv4*MP*)
8934      if test -d /usr/nec ;then
8935        lt_prog_compiler_pic='-Kconform_pic'
8936        lt_prog_compiler_static='-Bstatic'
8937      fi
8938      ;;
8939
8940    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8941      lt_prog_compiler_wl='-Wl,'
8942      lt_prog_compiler_pic='-KPIC'
8943      lt_prog_compiler_static='-Bstatic'
8944      ;;
8945
8946    unicos*)
8947      lt_prog_compiler_wl='-Wl,'
8948      lt_prog_compiler_can_build_shared=no
8949      ;;
8950
8951    uts4*)
8952      lt_prog_compiler_pic='-pic'
8953      lt_prog_compiler_static='-Bstatic'
8954      ;;
8955
8956    *)
8957      lt_prog_compiler_can_build_shared=no
8958      ;;
8959    esac
8960  fi
8961
8962echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8963echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8964
8965#
8966# Check to make sure the PIC flag actually works.
8967#
8968if test -n "$lt_prog_compiler_pic"; then
8969
8970echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8971echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8972if test "${lt_prog_compiler_pic_works+set}" = set; then
8973  echo $ECHO_N "(cached) $ECHO_C" >&6
8974else
8975  lt_prog_compiler_pic_works=no
8976  ac_outfile=conftest.$ac_objext
8977   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8978   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8979   # Insert the option either (1) after the last *FLAGS variable, or
8980   # (2) before a word containing "conftest.", or (3) at the end.
8981   # Note that $ac_compile itself does not contain backslashes and begins
8982   # with a dollar sign (not a hyphen), so the echo should work correctly.
8983   # The option is referenced via a variable to avoid confusing sed.
8984   lt_compile=`echo "$ac_compile" | $SED \
8985   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8986   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8987   -e 's:$: $lt_compiler_flag:'`
8988   (eval echo "\"\$as_me:8988: $lt_compile\"" >&5)
8989   (eval "$lt_compile" 2>conftest.err)
8990   ac_status=$?
8991   cat conftest.err >&5
8992   echo "$as_me:8992: \$? = $ac_status" >&5
8993   if (exit $ac_status) && test -s "$ac_outfile"; then
8994     # The compiler can only warn and ignore the option if not recognized
8995     # So say no if there are warnings other than the usual output.
8996     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8997     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8998     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8999       lt_prog_compiler_pic_works=yes
9000     fi
9001   fi
9002   $rm conftest*
9003
9004fi
9005echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9006echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9007
9008if test x"$lt_prog_compiler_pic_works" = xyes; then
9009    case $lt_prog_compiler_pic in
9010     "" | " "*) ;;
9011     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9012     esac
9013else
9014    lt_prog_compiler_pic=
9015     lt_prog_compiler_can_build_shared=no
9016fi
9017
9018fi
9019case $host_os in
9020  # For platforms which do not support PIC, -DPIC is meaningless:
9021  *djgpp*)
9022    lt_prog_compiler_pic=
9023    ;;
9024  *)
9025    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9026    ;;
9027esac
9028
9029#
9030# Check to make sure the static flag actually works.
9031#
9032wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9033echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9034echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9035if test "${lt_prog_compiler_static_works+set}" = set; then
9036  echo $ECHO_N "(cached) $ECHO_C" >&6
9037else
9038  lt_prog_compiler_static_works=no
9039   save_LDFLAGS="$LDFLAGS"
9040   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9041   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9042   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9043     # The linker can only warn and ignore the option if not recognized
9044     # So say no if there are warnings
9045     if test -s conftest.err; then
9046       # Append any errors to the config.log.
9047       cat conftest.err 1>&5
9048       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9049       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9050       if diff conftest.exp conftest.er2 >/dev/null; then
9051         lt_prog_compiler_static_works=yes
9052       fi
9053     else
9054       lt_prog_compiler_static_works=yes
9055     fi
9056   fi
9057   $rm conftest*
9058   LDFLAGS="$save_LDFLAGS"
9059
9060fi
9061echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9062echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9063
9064if test x"$lt_prog_compiler_static_works" = xyes; then
9065    :
9066else
9067    lt_prog_compiler_static=
9068fi
9069
9070
9071echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9072echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9073if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9074  echo $ECHO_N "(cached) $ECHO_C" >&6
9075else
9076  lt_cv_prog_compiler_c_o=no
9077   $rm -r conftest 2>/dev/null
9078   mkdir conftest
9079   cd conftest
9080   mkdir out
9081   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9082
9083   lt_compiler_flag="-o out/conftest2.$ac_objext"
9084   # Insert the option either (1) after the last *FLAGS variable, or
9085   # (2) before a word containing "conftest.", or (3) at the end.
9086   # Note that $ac_compile itself does not contain backslashes and begins
9087   # with a dollar sign (not a hyphen), so the echo should work correctly.
9088   lt_compile=`echo "$ac_compile" | $SED \
9089   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9090   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9091   -e 's:$: $lt_compiler_flag:'`
9092   (eval echo "\"\$as_me:9092: $lt_compile\"" >&5)
9093   (eval "$lt_compile" 2>out/conftest.err)
9094   ac_status=$?
9095   cat out/conftest.err >&5
9096   echo "$as_me:9096: \$? = $ac_status" >&5
9097   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9098   then
9099     # The compiler can only warn and ignore the option if not recognized
9100     # So say no if there are warnings
9101     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9102     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9103     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9104       lt_cv_prog_compiler_c_o=yes
9105     fi
9106   fi
9107   chmod u+w . 2>&5
9108   $rm conftest*
9109   # SGI C++ compiler will create directory out/ii_files/ for
9110   # template instantiation
9111   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9112   $rm out/* && rmdir out
9113   cd ..
9114   rmdir conftest
9115   $rm conftest*
9116
9117fi
9118echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9119echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9120
9121
9122hard_links="nottested"
9123if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9124  # do not overwrite the value of need_locks provided by the user
9125  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9126echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9127  hard_links=yes
9128  $rm conftest*
9129  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9130  touch conftest.a
9131  ln conftest.a conftest.b 2>&5 || hard_links=no
9132  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9133  echo "$as_me:$LINENO: result: $hard_links" >&5
9134echo "${ECHO_T}$hard_links" >&6
9135  if test "$hard_links" = no; then
9136    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9137echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9138    need_locks=warn
9139  fi
9140else
9141  need_locks=no
9142fi
9143
9144echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9145echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9146
9147  runpath_var=
9148  allow_undefined_flag=
9149  enable_shared_with_static_runtimes=no
9150  archive_cmds=
9151  archive_expsym_cmds=
9152  old_archive_From_new_cmds=
9153  old_archive_from_expsyms_cmds=
9154  export_dynamic_flag_spec=
9155  whole_archive_flag_spec=
9156  thread_safe_flag_spec=
9157  hardcode_libdir_flag_spec=
9158  hardcode_libdir_flag_spec_ld=
9159  hardcode_libdir_separator=
9160  hardcode_direct=no
9161  hardcode_minus_L=no
9162  hardcode_shlibpath_var=unsupported
9163  link_all_deplibs=unknown
9164  hardcode_automatic=no
9165  module_cmds=
9166  module_expsym_cmds=
9167  always_export_symbols=no
9168  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9169  # include_expsyms should be a list of space-separated symbols to be *always*
9170  # included in the symbol list
9171  include_expsyms=
9172  # exclude_expsyms can be an extended regexp of symbols to exclude
9173  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9174  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9175  # as well as any symbol that contains `d'.
9176  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9177  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9178  # platforms (ab)use it in PIC code, but their linkers get confused if
9179  # the symbol is explicitly referenced.  Since portable code cannot
9180  # rely on this symbol name, it's probably fine to never include it in
9181  # preloaded symbol tables.
9182  extract_expsyms_cmds=
9183  # Just being paranoid about ensuring that cc_basename is set.
9184  for cc_temp in $compiler""; do
9185  case $cc_temp in
9186    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9187    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9188    \-*) ;;
9189    *) break;;
9190  esac
9191done
9192cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9193
9194  case $host_os in
9195  cygwin* | mingw* | pw32*)
9196    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9197    # When not using gcc, we currently assume that we are using
9198    # Microsoft Visual C++.
9199    if test "$GCC" != yes; then
9200      with_gnu_ld=no
9201    fi
9202    ;;
9203  interix*)
9204    # we just hope/assume this is gcc and not c89 (= MSVC++)
9205    with_gnu_ld=yes
9206    ;;
9207  openbsd*)
9208    with_gnu_ld=no
9209    ;;
9210  esac
9211
9212  ld_shlibs=yes
9213  if test "$with_gnu_ld" = yes; then
9214    # If archive_cmds runs LD, not CC, wlarc should be empty
9215    wlarc='${wl}'
9216
9217    # Set some defaults for GNU ld with shared library support. These
9218    # are reset later if shared libraries are not supported. Putting them
9219    # here allows them to be overridden if necessary.
9220    runpath_var=LD_RUN_PATH
9221    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9222    export_dynamic_flag_spec='${wl}--export-dynamic'
9223    # ancient GNU ld didn't support --whole-archive et. al.
9224    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9225        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9226      else
9227        whole_archive_flag_spec=
9228    fi
9229    supports_anon_versioning=no
9230    case `$LD -v 2>/dev/null` in
9231      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9232      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9233      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9234      *\ 2.11.*) ;; # other 2.11 versions
9235      *) supports_anon_versioning=yes ;;
9236    esac
9237
9238    # See if GNU ld supports shared libraries.
9239    case $host_os in
9240    aix3* | aix4* | aix5*)
9241      # On AIX/PPC, the GNU linker is very broken
9242      if test "$host_cpu" != ia64; then
9243        ld_shlibs=no
9244        cat <<EOF 1>&2
9245
9246*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9247*** to be unable to reliably create shared libraries on AIX.
9248*** Therefore, libtool is disabling shared libraries support.  If you
9249*** really care for shared libraries, you may want to modify your PATH
9250*** so that a non-GNU linker is found, and then restart.
9251
9252EOF
9253      fi
9254      ;;
9255
9256    amigaos*)
9257      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)'
9258      hardcode_libdir_flag_spec='-L$libdir'
9259      hardcode_minus_L=yes
9260
9261      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9262      # that the semantics of dynamic libraries on AmigaOS, at least up
9263      # to version 4, is to share data among multiple programs linked
9264      # with the same dynamic library.  Since this doesn't match the
9265      # behavior of shared libraries on other platforms, we can't use
9266      # them.
9267      ld_shlibs=no
9268      ;;
9269
9270    beos*)
9271      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9272        allow_undefined_flag=unsupported
9273        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9274        # support --undefined.  This deserves some investigation.  FIXME
9275        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276      else
9277        ld_shlibs=no
9278      fi
9279      ;;
9280
9281    cygwin* | mingw* | pw32*)
9282      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9283      # as there is no search path for DLLs.
9284      hardcode_libdir_flag_spec='-L$libdir'
9285      allow_undefined_flag=unsupported
9286      always_export_symbols=no
9287      enable_shared_with_static_runtimes=yes
9288      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9289
9290      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9291        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9292        # If the export-symbols file already is a .def file (1st line
9293        # is EXPORTS), use it as is; otherwise, prepend...
9294        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9295          cp $export_symbols $output_objdir/$soname.def;
9296        else
9297          echo EXPORTS > $output_objdir/$soname.def;
9298          cat $export_symbols >> $output_objdir/$soname.def;
9299        fi~
9300        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9301      else
9302        ld_shlibs=no
9303      fi
9304      ;;
9305
9306    interix3*)
9307      hardcode_direct=no
9308      hardcode_shlibpath_var=no
9309      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9310      export_dynamic_flag_spec='${wl}-E'
9311      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9312      # Instead, shared libraries are loaded at an image base (0x10000000 by
9313      # default) and relocated if they conflict, which is a slow very memory
9314      # consuming and fragmenting process.  To avoid this, we pick a random,
9315      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9316      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9317      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9318      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'
9319      ;;
9320
9321    linux*)
9322      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9323        tmp_addflag=
9324        case $cc_basename,$host_cpu in
9325        pgcc*)                          # Portland Group C compiler
9326          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'
9327          tmp_addflag=' $pic_flag'
9328          ;;
9329        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9330          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'
9331          tmp_addflag=' $pic_flag -Mnomain' ;;
9332        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9333          tmp_addflag=' -i_dynamic' ;;
9334        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9335          tmp_addflag=' -i_dynamic -nofor_main' ;;
9336        ifc* | ifort*)                  # Intel Fortran compiler
9337          tmp_addflag=' -nofor_main' ;;
9338        esac
9339        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9340
9341        if test $supports_anon_versioning = yes; then
9342          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9343  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9344  $echo "local: *; };" >> $output_objdir/$libname.ver~
9345          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9346        fi
9347      else
9348        ld_shlibs=no
9349      fi
9350      ;;
9351
9352    netbsd*)
9353      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9354        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9355        wlarc=
9356      else
9357        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9359      fi
9360      ;;
9361
9362    solaris*)
9363      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9364        ld_shlibs=no
9365        cat <<EOF 1>&2
9366
9367*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9368*** create shared libraries on Solaris systems.  Therefore, libtool
9369*** is disabling shared libraries support.  We urge you to upgrade GNU
9370*** binutils to release 2.9.1 or newer.  Another option is to modify
9371*** your PATH or compiler configuration so that the native linker is
9372*** used, and then restart.
9373
9374EOF
9375      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9376        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9377        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9378      else
9379        ld_shlibs=no
9380      fi
9381      ;;
9382
9383    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9384      case `$LD -v 2>&1` in
9385        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9386        ld_shlibs=no
9387        cat <<_LT_EOF 1>&2
9388
9389*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9390*** reliably create shared libraries on SCO systems.  Therefore, libtool
9391*** is disabling shared libraries support.  We urge you to upgrade GNU
9392*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9393*** your PATH or compiler configuration so that the native linker is
9394*** used, and then restart.
9395
9396_LT_EOF
9397        ;;
9398        *)
9399          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9400            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9401            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9402            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9403          else
9404            ld_shlibs=no
9405          fi
9406        ;;
9407      esac
9408      ;;
9409
9410    sunos4*)
9411      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9412      wlarc=
9413      hardcode_direct=yes
9414      hardcode_shlibpath_var=no
9415      ;;
9416
9417    *)
9418      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9419        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9421      else
9422        ld_shlibs=no
9423      fi
9424      ;;
9425    esac
9426
9427    if test "$ld_shlibs" = no; then
9428      runpath_var=
9429      hardcode_libdir_flag_spec=
9430      export_dynamic_flag_spec=
9431      whole_archive_flag_spec=
9432    fi
9433  else
9434    # PORTME fill in a description of your system's linker (not GNU ld)
9435    case $host_os in
9436    aix3*)
9437      allow_undefined_flag=unsupported
9438      always_export_symbols=yes
9439      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'
9440      # Note: this linker hardcodes the directories in LIBPATH if there
9441      # are no directories specified by -L.
9442      hardcode_minus_L=yes
9443      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9444        # Neither direct hardcoding nor static linking is supported with a
9445        # broken collect2.
9446        hardcode_direct=unsupported
9447      fi
9448      ;;
9449
9450    aix4* | aix5*)
9451      if test "$host_cpu" = ia64; then
9452        # On IA64, the linker does run time linking by default, so we don't
9453        # have to do anything special.
9454        aix_use_runtimelinking=no
9455        exp_sym_flag='-Bexport'
9456        no_entry_flag=""
9457      else
9458        # If we're using GNU nm, then we don't want the "-C" option.
9459        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9460        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9461          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'
9462        else
9463          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'
9464        fi
9465        aix_use_runtimelinking=no
9466
9467        # Test if we are trying to use run time linking or normal
9468        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9469        # need to do runtime linking.
9470        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9471          for ld_flag in $LDFLAGS; do
9472          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9473            aix_use_runtimelinking=yes
9474            break
9475          fi
9476          done
9477          ;;
9478        esac
9479
9480        exp_sym_flag='-bexport'
9481        no_entry_flag='-bnoentry'
9482      fi
9483
9484      # When large executables or shared objects are built, AIX ld can
9485      # have problems creating the table of contents.  If linking a library
9486      # or program results in "error TOC overflow" add -mminimal-toc to
9487      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9488      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9489
9490      archive_cmds=''
9491      hardcode_direct=yes
9492      hardcode_libdir_separator=':'
9493      link_all_deplibs=yes
9494
9495      if test "$GCC" = yes; then
9496        case $host_os in aix4.[012]|aix4.[012].*)
9497        # We only want to do this on AIX 4.2 and lower, the check
9498        # below for broken collect2 doesn't work under 4.3+
9499          collect2name=`${CC} -print-prog-name=collect2`
9500          if test -f "$collect2name" && \
9501           strings "$collect2name" | grep resolve_lib_name >/dev/null
9502          then
9503          # We have reworked collect2
9504          hardcode_direct=yes
9505          else
9506          # We have old collect2
9507          hardcode_direct=unsupported
9508          # It fails to find uninstalled libraries when the uninstalled
9509          # path is not listed in the libpath.  Setting hardcode_minus_L
9510          # to unsupported forces relinking
9511          hardcode_minus_L=yes
9512          hardcode_libdir_flag_spec='-L$libdir'
9513          hardcode_libdir_separator=
9514          fi
9515          ;;
9516        esac
9517        shared_flag='-shared'
9518        if test "$aix_use_runtimelinking" = yes; then
9519          shared_flag="$shared_flag "'${wl}-G'
9520        fi
9521      else
9522        # not using gcc
9523        if test "$host_cpu" = ia64; then
9524        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9525        # chokes on -Wl,-G. The following line is correct:
9526          shared_flag='-G'
9527        else
9528          if test "$aix_use_runtimelinking" = yes; then
9529            shared_flag='${wl}-G'
9530          else
9531            shared_flag='${wl}-bM:SRE'
9532          fi
9533        fi
9534      fi
9535
9536      # It seems that -bexpall does not export symbols beginning with
9537      # underscore (_), so it is better to generate a list of symbols to export.
9538      always_export_symbols=yes
9539      if test "$aix_use_runtimelinking" = yes; then
9540        # Warning - without using the other runtime loading flags (-brtl),
9541        # -berok will link without error, but may produce a broken library.
9542        allow_undefined_flag='-berok'
9543       # Determine the default libpath from the value encoded in an empty executable.
9544       cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h.  */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h.  */
9550
9551#ifdef F77_DUMMY_MAIN
9552
9553#  ifdef __cplusplus
9554     extern "C"
9555#  endif
9556   int F77_DUMMY_MAIN() { return 1; }
9557
9558#endif
9559int
9560main ()
9561{
9562
9563  ;
9564  return 0;
9565}
9566_ACEOF
9567rm -f conftest.$ac_objext conftest$ac_exeext
9568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569  (eval $ac_link) 2>conftest.er1
9570  ac_status=$?
9571  grep -v '^ *+' conftest.er1 >conftest.err
9572  rm -f conftest.er1
9573  cat conftest.err >&5
9574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575  (exit $ac_status); } &&
9576         { ac_try='test -z "$ac_c_werror_flag"
9577                         || test ! -s conftest.err'
9578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579  (eval $ac_try) 2>&5
9580  ac_status=$?
9581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582  (exit $ac_status); }; } &&
9583         { ac_try='test -s conftest$ac_exeext'
9584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585  (eval $ac_try) 2>&5
9586  ac_status=$?
9587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588  (exit $ac_status); }; }; then
9589
9590aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9591}'`
9592# Check for a 64-bit object if we didn't find anything.
9593if 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; }
9594}'`; fi
9595else
9596  echo "$as_me: failed program was:" >&5
9597sed 's/^/| /' conftest.$ac_ext >&5
9598
9599fi
9600rm -f conftest.err conftest.$ac_objext \
9601      conftest$ac_exeext conftest.$ac_ext
9602if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9603
9604       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9605        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"
9606       else
9607        if test "$host_cpu" = ia64; then
9608          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9609          allow_undefined_flag="-z nodefs"
9610          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"
9611        else
9612         # Determine the default libpath from the value encoded in an empty executable.
9613         cat >conftest.$ac_ext <<_ACEOF
9614/* confdefs.h.  */
9615_ACEOF
9616cat confdefs.h >>conftest.$ac_ext
9617cat >>conftest.$ac_ext <<_ACEOF
9618/* end confdefs.h.  */
9619
9620#ifdef F77_DUMMY_MAIN
9621
9622#  ifdef __cplusplus
9623     extern "C"
9624#  endif
9625   int F77_DUMMY_MAIN() { return 1; }
9626
9627#endif
9628int
9629main ()
9630{
9631
9632  ;
9633  return 0;
9634}
9635_ACEOF
9636rm -f conftest.$ac_objext conftest$ac_exeext
9637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638  (eval $ac_link) 2>conftest.er1
9639  ac_status=$?
9640  grep -v '^ *+' conftest.er1 >conftest.err
9641  rm -f conftest.er1
9642  cat conftest.err >&5
9643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644  (exit $ac_status); } &&
9645         { ac_try='test -z "$ac_c_werror_flag"
9646                         || test ! -s conftest.err'
9647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648  (eval $ac_try) 2>&5
9649  ac_status=$?
9650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651  (exit $ac_status); }; } &&
9652         { ac_try='test -s conftest$ac_exeext'
9653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654  (eval $ac_try) 2>&5
9655  ac_status=$?
9656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657  (exit $ac_status); }; }; then
9658
9659aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9660}'`
9661# Check for a 64-bit object if we didn't find anything.
9662if 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; }
9663}'`; fi
9664else
9665  echo "$as_me: failed program was:" >&5
9666sed 's/^/| /' conftest.$ac_ext >&5
9667
9668fi
9669rm -f conftest.err conftest.$ac_objext \
9670      conftest$ac_exeext conftest.$ac_ext
9671if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9672
9673         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9674          # Warning - without using the other run time loading flags,
9675          # -berok will link without error, but may produce a broken library.
9676          no_undefined_flag=' ${wl}-bernotok'
9677          allow_undefined_flag=' ${wl}-berok'
9678          # Exported symbols can be pulled into shared objects from archives
9679          whole_archive_flag_spec='$convenience'
9680          archive_cmds_need_lc=yes
9681          # This is similar to how AIX traditionally builds its shared libraries.
9682          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'
9683        fi
9684      fi
9685      ;;
9686
9687    amigaos*)
9688      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)'
9689      hardcode_libdir_flag_spec='-L$libdir'
9690      hardcode_minus_L=yes
9691      # see comment about different semantics on the GNU ld section
9692      ld_shlibs=no
9693      ;;
9694
9695    bsdi[45]*)
9696      export_dynamic_flag_spec=-rdynamic
9697      ;;
9698
9699    cygwin* | mingw* | pw32*)
9700      # When not using gcc, we currently assume that we are using
9701      # Microsoft Visual C++.
9702      # hardcode_libdir_flag_spec is actually meaningless, as there is
9703      # no search path for DLLs.
9704      hardcode_libdir_flag_spec=' '
9705      allow_undefined_flag=unsupported
9706      # Tell ltmain to make .lib files, not .a files.
9707      libext=lib
9708      # Tell ltmain to make .dll files, not .so files.
9709      shrext_cmds=".dll"
9710      # FIXME: Setting linknames here is a bad hack.
9711      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9712      # The linker will automatically build a .lib file if we build a DLL.
9713      old_archive_From_new_cmds='true'
9714      # FIXME: Should let the user specify the lib program.
9715      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9716      fix_srcfile_path='`cygpath -w "$srcfile"`'
9717      enable_shared_with_static_runtimes=yes
9718      ;;
9719
9720    darwin* | rhapsody*)
9721      case $host_os in
9722        rhapsody* | darwin1.[012])
9723         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9724         ;;
9725       *) # Darwin 1.3 on
9726         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9727           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9728         else
9729           case ${MACOSX_DEPLOYMENT_TARGET} in
9730             10.[012])
9731               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9732               ;;
9733             10.*)
9734               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9735               ;;
9736           esac
9737         fi
9738         ;;
9739      esac
9740      archive_cmds_need_lc=no
9741      hardcode_direct=no
9742      hardcode_automatic=yes
9743      hardcode_shlibpath_var=unsupported
9744      whole_archive_flag_spec=''
9745      link_all_deplibs=yes
9746    if test "$GCC" = yes ; then
9747        output_verbose_link_cmd='echo'
9748        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9749      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9750      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9751      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}'
9752      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}'
9753    else
9754      case $cc_basename in
9755        xlc*)
9756         output_verbose_link_cmd='echo'
9757         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9758         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9759          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9760         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}'
9761          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}'
9762          ;;
9763       *)
9764         ld_shlibs=no
9765          ;;
9766      esac
9767    fi
9768      ;;
9769
9770    dgux*)
9771      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9772      hardcode_libdir_flag_spec='-L$libdir'
9773      hardcode_shlibpath_var=no
9774      ;;
9775
9776    freebsd1*)
9777      ld_shlibs=no
9778      ;;
9779
9780    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9781    # support.  Future versions do this automatically, but an explicit c++rt0.o
9782    # does not break anything, and helps significantly (at the cost of a little
9783    # extra space).
9784    freebsd2.2*)
9785      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9786      hardcode_libdir_flag_spec='-R$libdir'
9787      hardcode_direct=yes
9788      hardcode_shlibpath_var=no
9789      ;;
9790
9791    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9792    freebsd2*)
9793      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9794      hardcode_direct=yes
9795      hardcode_minus_L=yes
9796      hardcode_shlibpath_var=no
9797      ;;
9798
9799    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9800    freebsd* | kfreebsd*-gnu | dragonfly*)
9801      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9802      hardcode_libdir_flag_spec='-R$libdir'
9803      hardcode_direct=yes
9804      hardcode_shlibpath_var=no
9805      ;;
9806
9807    hpux9*)
9808      if test "$GCC" = yes; then
9809        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'
9810      else
9811        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'
9812      fi
9813      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9814      hardcode_libdir_separator=:
9815      hardcode_direct=yes
9816
9817      # hardcode_minus_L: Not really in the search PATH,
9818      # but as the default location of the library.
9819      hardcode_minus_L=yes
9820      export_dynamic_flag_spec='${wl}-E'
9821      ;;
9822
9823    hpux10*)
9824      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9825        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9826      else
9827        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9828      fi
9829      if test "$with_gnu_ld" = no; then
9830        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9831        hardcode_libdir_separator=:
9832
9833        hardcode_direct=yes
9834        export_dynamic_flag_spec='${wl}-E'
9835
9836        # hardcode_minus_L: Not really in the search PATH,
9837        # but as the default location of the library.
9838        hardcode_minus_L=yes
9839      fi
9840      ;;
9841
9842    hpux11*)
9843      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9844        case $host_cpu in
9845        hppa*64*)
9846          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9847          ;;
9848        ia64*)
9849          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9850          ;;
9851        *)
9852          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9853          ;;
9854        esac
9855      else
9856        case $host_cpu in
9857        hppa*64*)
9858          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9859          ;;
9860        ia64*)
9861          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9862          ;;
9863        *)
9864          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9865          ;;
9866        esac
9867      fi
9868      if test "$with_gnu_ld" = no; then
9869        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9870        hardcode_libdir_separator=:
9871
9872        case $host_cpu in
9873        hppa*64*|ia64*)
9874          hardcode_libdir_flag_spec_ld='+b $libdir'
9875          hardcode_direct=no
9876          hardcode_shlibpath_var=no
9877          ;;
9878        *)
9879          hardcode_direct=yes
9880          export_dynamic_flag_spec='${wl}-E'
9881
9882          # hardcode_minus_L: Not really in the search PATH,
9883          # but as the default location of the library.
9884          hardcode_minus_L=yes
9885          ;;
9886        esac
9887      fi
9888      ;;
9889
9890    irix5* | irix6* | nonstopux*)
9891      if test "$GCC" = yes; then
9892        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'
9893      else
9894        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'
9895        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9896      fi
9897      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9898      hardcode_libdir_separator=:
9899      link_all_deplibs=yes
9900      ;;
9901
9902    netbsd*)
9903      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9904        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9905      else
9906        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9907      fi
9908      hardcode_libdir_flag_spec='-R$libdir'
9909      hardcode_direct=yes
9910      hardcode_shlibpath_var=no
9911      ;;
9912
9913    newsos6)
9914      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9915      hardcode_direct=yes
9916      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9917      hardcode_libdir_separator=:
9918      hardcode_shlibpath_var=no
9919      ;;
9920
9921    openbsd*)
9922      hardcode_direct=yes
9923      hardcode_shlibpath_var=no
9924      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9925        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9926        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9927        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9928        export_dynamic_flag_spec='${wl}-E'
9929      else
9930       case $host_os in
9931         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9932           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9933           hardcode_libdir_flag_spec='-R$libdir'
9934           ;;
9935         *)
9936           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9937           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9938           ;;
9939       esac
9940      fi
9941      ;;
9942
9943    os2*)
9944      hardcode_libdir_flag_spec='-L$libdir'
9945      hardcode_minus_L=yes
9946      allow_undefined_flag=unsupported
9947      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'
9948      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9949      ;;
9950
9951    osf3*)
9952      if test "$GCC" = yes; then
9953        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9954        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'
9955      else
9956        allow_undefined_flag=' -expect_unresolved \*'
9957        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'
9958      fi
9959      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9960      hardcode_libdir_separator=:
9961      ;;
9962
9963    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9964      if test "$GCC" = yes; then
9965        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9966        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'
9967        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9968      else
9969        allow_undefined_flag=' -expect_unresolved \*'
9970        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'
9971        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9972        $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'
9973
9974        # Both c and cxx compiler support -rpath directly
9975        hardcode_libdir_flag_spec='-rpath $libdir'
9976      fi
9977      hardcode_libdir_separator=:
9978      ;;
9979
9980    solaris*)
9981      no_undefined_flag=' -z text'
9982      if test "$GCC" = yes; then
9983        wlarc='${wl}'
9984        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9985        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9986          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9987      else
9988        wlarc=''
9989        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9991        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9992      fi
9993      hardcode_libdir_flag_spec='-R$libdir'
9994      hardcode_shlibpath_var=no
9995      case $host_os in
9996      solaris2.[0-5] | solaris2.[0-5].*) ;;
9997      *)
9998        # The compiler driver will combine linker options so we
9999        # cannot just pass the convience library names through
10000        # without $wl, iff we do not link with $LD.
10001        # Luckily, gcc supports the same syntax we need for Sun Studio.
10002        # Supported since Solaris 2.6 (maybe 2.5.1?)
10003        case $wlarc in
10004        '')
10005          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10006        *)
10007          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' ;;
10008        esac ;;
10009      esac
10010      link_all_deplibs=yes
10011      ;;
10012
10013    sunos4*)
10014      if test "x$host_vendor" = xsequent; then
10015        # Use $CC to link under sequent, because it throws in some extra .o
10016        # files that make .init and .fini sections work.
10017        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10018      else
10019        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10020      fi
10021      hardcode_libdir_flag_spec='-L$libdir'
10022      hardcode_direct=yes
10023      hardcode_minus_L=yes
10024      hardcode_shlibpath_var=no
10025      ;;
10026
10027    sysv4)
10028      case $host_vendor in
10029        sni)
10030          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031          hardcode_direct=yes # is this really true???
10032        ;;
10033        siemens)
10034          ## LD is ld it makes a PLAMLIB
10035          ## CC just makes a GrossModule.
10036          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10037          reload_cmds='$CC -r -o $output$reload_objs'
10038          hardcode_direct=no
10039        ;;
10040        motorola)
10041          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10042          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10043        ;;
10044      esac
10045      runpath_var='LD_RUN_PATH'
10046      hardcode_shlibpath_var=no
10047      ;;
10048
10049    sysv4.3*)
10050      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10051      hardcode_shlibpath_var=no
10052      export_dynamic_flag_spec='-Bexport'
10053      ;;
10054
10055    sysv4*MP*)
10056      if test -d /usr/nec; then
10057        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058        hardcode_shlibpath_var=no
10059        runpath_var=LD_RUN_PATH
10060        hardcode_runpath_var=yes
10061        ld_shlibs=yes
10062      fi
10063      ;;
10064
10065    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10066      no_undefined_flag='${wl}-z,text'
10067      archive_cmds_need_lc=no
10068      hardcode_shlibpath_var=no
10069      runpath_var='LD_RUN_PATH'
10070
10071      if test "$GCC" = yes; then
10072        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10073        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10074      else
10075        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10076        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10077      fi
10078      ;;
10079
10080    sysv5* | sco3.2v5* | sco5v6*)
10081      # Note: We can NOT use -z defs as we might desire, because we do not
10082      # link with -lc, and that would cause any symbols used from libc to
10083      # always be unresolved, which means just about no library would
10084      # ever link correctly.  If we're not using GNU ld we use -z text
10085      # though, which does catch some bad symbols but isn't as heavy-handed
10086      # as -z defs.
10087      no_undefined_flag='${wl}-z,text'
10088      allow_undefined_flag='${wl}-z,nodefs'
10089      archive_cmds_need_lc=no
10090      hardcode_shlibpath_var=no
10091      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10092      hardcode_libdir_separator=':'
10093      link_all_deplibs=yes
10094      export_dynamic_flag_spec='${wl}-Bexport'
10095      runpath_var='LD_RUN_PATH'
10096
10097      if test "$GCC" = yes; then
10098        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10099        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10100      else
10101        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10102        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10103      fi
10104      ;;
10105
10106    uts4*)
10107      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108      hardcode_libdir_flag_spec='-L$libdir'
10109      hardcode_shlibpath_var=no
10110      ;;
10111
10112    *)
10113      ld_shlibs=no
10114      ;;
10115    esac
10116  fi
10117
10118echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10119echo "${ECHO_T}$ld_shlibs" >&6
10120test "$ld_shlibs" = no && can_build_shared=no
10121
10122#
10123# Do we need to explicitly link libc?
10124#
10125case "x$archive_cmds_need_lc" in
10126x|xyes)
10127  # Assume -lc should be added
10128  archive_cmds_need_lc=yes
10129
10130  if test "$enable_shared" = yes && test "$GCC" = yes; then
10131    case $archive_cmds in
10132    *'~'*)
10133      # FIXME: we may have to deal with multi-command sequences.
10134      ;;
10135    '$CC '*)
10136      # Test whether the compiler implicitly links with -lc since on some
10137      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10138      # to ld, don't add -lc before -lgcc.
10139      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10140echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10141      $rm conftest*
10142      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10143
10144      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10145  (eval $ac_compile) 2>&5
10146  ac_status=$?
10147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148  (exit $ac_status); } 2>conftest.err; then
10149        soname=conftest
10150        lib=conftest
10151        libobjs=conftest.$ac_objext
10152        deplibs=
10153        wl=$lt_prog_compiler_wl
10154        pic_flag=$lt_prog_compiler_pic
10155        compiler_flags=-v
10156        linker_flags=-v
10157        verstring=
10158        output_objdir=.
10159        libname=conftest
10160        lt_save_allow_undefined_flag=$allow_undefined_flag
10161        allow_undefined_flag=
10162        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10163  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10164  ac_status=$?
10165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166  (exit $ac_status); }
10167        then
10168          archive_cmds_need_lc=no
10169        else
10170          archive_cmds_need_lc=yes
10171        fi
10172        allow_undefined_flag=$lt_save_allow_undefined_flag
10173      else
10174        cat conftest.err 1>&5
10175      fi
10176      $rm conftest*
10177      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10178echo "${ECHO_T}$archive_cmds_need_lc" >&6
10179      ;;
10180    esac
10181  fi
10182  ;;
10183esac
10184
10185echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10186echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10187library_names_spec=
10188libname_spec='lib$name'
10189soname_spec=
10190shrext_cmds=".so"
10191postinstall_cmds=
10192postuninstall_cmds=
10193finish_cmds=
10194finish_eval=
10195shlibpath_var=
10196shlibpath_overrides_runpath=unknown
10197version_type=none
10198dynamic_linker="$host_os ld.so"
10199sys_lib_dlsearch_path_spec="/lib /usr/lib"
10200if test "$GCC" = yes; then
10201  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10202  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10203    # if the path contains ";" then we assume it to be the separator
10204    # otherwise default to the standard path separator (i.e. ":") - it is
10205    # assumed that no part of a normal pathname contains ";" but that should
10206    # okay in the real world where ";" in dirpaths is itself problematic.
10207    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10208  else
10209    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10210  fi
10211else
10212  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10213fi
10214need_lib_prefix=unknown
10215hardcode_into_libs=no
10216
10217# when you set need_version to no, make sure it does not cause -set_version
10218# flags to be left without arguments
10219need_version=unknown
10220
10221case $host_os in
10222aix3*)
10223  version_type=linux
10224  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10225  shlibpath_var=LIBPATH
10226
10227  # AIX 3 has no versioning support, so we append a major version to the name.
10228  soname_spec='${libname}${release}${shared_ext}$major'
10229  ;;
10230
10231aix4* | aix5*)
10232  version_type=linux
10233  need_lib_prefix=no
10234  need_version=no
10235  hardcode_into_libs=yes
10236  if test "$host_cpu" = ia64; then
10237    # AIX 5 supports IA64
10238    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10239    shlibpath_var=LD_LIBRARY_PATH
10240  else
10241    # With GCC up to 2.95.x, collect2 would create an import file
10242    # for dependence libraries.  The import file would start with
10243    # the line `#! .'.  This would cause the generated library to
10244    # depend on `.', always an invalid library.  This was fixed in
10245    # development snapshots of GCC prior to 3.0.
10246    case $host_os in
10247      aix4 | aix4.[01] | aix4.[01].*)
10248      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10249           echo ' yes '
10250           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10251        :
10252      else
10253        can_build_shared=no
10254      fi
10255      ;;
10256    esac
10257    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10258    # soname into executable. Probably we can add versioning support to
10259    # collect2, so additional links can be useful in future.
10260    if test "$aix_use_runtimelinking" = yes; then
10261      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10262      # instead of lib<name>.a to let people know that these are not
10263      # typical AIX shared libraries.
10264      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265    else
10266      # We preserve .a as extension for shared libraries through AIX4.2
10267      # and later when we are not doing run time linking.
10268      library_names_spec='${libname}${release}.a $libname.a'
10269      soname_spec='${libname}${release}${shared_ext}$major'
10270    fi
10271    shlibpath_var=LIBPATH
10272  fi
10273  ;;
10274
10275amigaos*)
10276  library_names_spec='$libname.ixlibrary $libname.a'
10277  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10278  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'
10279  ;;
10280
10281beos*)
10282  library_names_spec='${libname}${shared_ext}'
10283  dynamic_linker="$host_os ld.so"
10284  shlibpath_var=LIBRARY_PATH
10285  ;;
10286
10287bsdi[45]*)
10288  version_type=linux
10289  need_version=no
10290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291  soname_spec='${libname}${release}${shared_ext}$major'
10292  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10293  shlibpath_var=LD_LIBRARY_PATH
10294  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10295  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10296  # the default ld.so.conf also contains /usr/contrib/lib and
10297  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10298  # libtool to hard-code these into programs
10299  ;;
10300
10301cygwin* | mingw* | pw32*)
10302  version_type=windows
10303  shrext_cmds=".dll"
10304  need_version=no
10305  need_lib_prefix=no
10306
10307  case $GCC,$host_os in
10308  yes,cygwin* | yes,mingw* | yes,pw32*)
10309    library_names_spec='$libname.dll.a'
10310    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10311    postinstall_cmds='base_file=`basename \${file}`~
10312      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10313      dldir=$destdir/`dirname \$dlpath`~
10314      test -d \$dldir || mkdir -p \$dldir~
10315      $install_prog $dir/$dlname \$dldir/$dlname~
10316      chmod a+x \$dldir/$dlname'
10317    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10318      dlpath=$dir/\$dldll~
10319       $rm \$dlpath'
10320    shlibpath_overrides_runpath=yes
10321
10322    case $host_os in
10323    cygwin*)
10324      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10325      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10326      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10327      ;;
10328    mingw*)
10329      # MinGW DLLs use traditional 'lib' prefix
10330      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10331      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10332      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10333        # It is most probably a Windows format PATH printed by
10334        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10335        # path with ; separators, and with drive letters. We can handle the
10336        # drive letters (cygwin fileutils understands them), so leave them,
10337        # especially as we might pass files found there to a mingw objdump,
10338        # which wouldn't understand a cygwinified path. Ahh.
10339        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10340      else
10341        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10342      fi
10343      ;;
10344    pw32*)
10345      # pw32 DLLs use 'pw' prefix rather than 'lib'
10346      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10347      ;;
10348    esac
10349    ;;
10350
10351  *)
10352    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10353    ;;
10354  esac
10355  dynamic_linker='Win32 ld.exe'
10356  # FIXME: first we should search . and the directory the executable is in
10357  shlibpath_var=PATH
10358  ;;
10359
10360darwin* | rhapsody*)
10361  dynamic_linker="$host_os dyld"
10362  version_type=darwin
10363  need_lib_prefix=no
10364  need_version=no
10365  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10366  soname_spec='${libname}${release}${major}$shared_ext'
10367  shlibpath_overrides_runpath=yes
10368  shlibpath_var=DYLD_LIBRARY_PATH
10369  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10370  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10371  if test "$GCC" = yes; then
10372    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"`
10373  else
10374    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10375  fi
10376  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10377  ;;
10378
10379dgux*)
10380  version_type=linux
10381  need_lib_prefix=no
10382  need_version=no
10383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10384  soname_spec='${libname}${release}${shared_ext}$major'
10385  shlibpath_var=LD_LIBRARY_PATH
10386  ;;
10387
10388freebsd1*)
10389  dynamic_linker=no
10390  ;;
10391
10392kfreebsd*-gnu)
10393  version_type=linux
10394  need_lib_prefix=no
10395  need_version=no
10396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10397  soname_spec='${libname}${release}${shared_ext}$major'
10398  shlibpath_var=LD_LIBRARY_PATH
10399  shlibpath_overrides_runpath=no
10400  hardcode_into_libs=yes
10401  dynamic_linker='GNU ld.so'
10402  ;;
10403
10404freebsd* | dragonfly*)
10405  # DragonFly does not have aout.  When/if they implement a new
10406  # versioning mechanism, adjust this.
10407  if test -x /usr/bin/objformat; then
10408    objformat=`/usr/bin/objformat`
10409  else
10410    case $host_os in
10411    freebsd[123]*) objformat=aout ;;
10412    *) objformat=elf ;;
10413    esac
10414  fi
10415  version_type=freebsd-$objformat
10416  case $version_type in
10417    freebsd-elf*)
10418      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10419      need_version=no
10420      need_lib_prefix=no
10421      ;;
10422    freebsd-*)
10423      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10424      need_version=yes
10425      ;;
10426  esac
10427  shlibpath_var=LD_LIBRARY_PATH
10428  case $host_os in
10429  freebsd2*)
10430    shlibpath_overrides_runpath=yes
10431    ;;
10432  freebsd3.[01]* | freebsdelf3.[01]*)
10433    shlibpath_overrides_runpath=yes
10434    hardcode_into_libs=yes
10435    ;;
10436  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10437  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10438    shlibpath_overrides_runpath=no
10439    hardcode_into_libs=yes
10440    ;;
10441  freebsd*) # from 4.6 on
10442    shlibpath_overrides_runpath=yes
10443    hardcode_into_libs=yes
10444    ;;
10445  esac
10446  ;;
10447
10448gnu*)
10449  version_type=linux
10450  need_lib_prefix=no
10451  need_version=no
10452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10453  soname_spec='${libname}${release}${shared_ext}$major'
10454  shlibpath_var=LD_LIBRARY_PATH
10455  hardcode_into_libs=yes
10456  ;;
10457
10458hpux9* | hpux10* | hpux11*)
10459  # Give a soname corresponding to the major version so that dld.sl refuses to
10460  # link against other versions.
10461  version_type=sunos
10462  need_lib_prefix=no
10463  need_version=no
10464  case $host_cpu in
10465  ia64*)
10466    shrext_cmds='.so'
10467    hardcode_into_libs=yes
10468    dynamic_linker="$host_os dld.so"
10469    shlibpath_var=LD_LIBRARY_PATH
10470    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test "X$HPUX_IA64_MODE" = X32; then
10474      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10475    else
10476      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10477    fi
10478    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10479    ;;
10480   hppa*64*)
10481     shrext_cmds='.sl'
10482     hardcode_into_libs=yes
10483     dynamic_linker="$host_os dld.sl"
10484     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10485     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10486     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10487     soname_spec='${libname}${release}${shared_ext}$major'
10488     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10489     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10490     ;;
10491   *)
10492    shrext_cmds='.sl'
10493    dynamic_linker="$host_os dld.sl"
10494    shlibpath_var=SHLIB_PATH
10495    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10496    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10497    soname_spec='${libname}${release}${shared_ext}$major'
10498    ;;
10499  esac
10500  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10501  postinstall_cmds='chmod 555 $lib'
10502  ;;
10503
10504interix3*)
10505  version_type=linux
10506  need_lib_prefix=no
10507  need_version=no
10508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10509  soname_spec='${libname}${release}${shared_ext}$major'
10510  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10511  shlibpath_var=LD_LIBRARY_PATH
10512  shlibpath_overrides_runpath=no
10513  hardcode_into_libs=yes
10514  ;;
10515
10516irix5* | irix6* | nonstopux*)
10517  case $host_os in
10518    nonstopux*) version_type=nonstopux ;;
10519    *)
10520        if test "$lt_cv_prog_gnu_ld" = yes; then
10521                version_type=linux
10522        else
10523                version_type=irix
10524        fi ;;
10525  esac
10526  need_lib_prefix=no
10527  need_version=no
10528  soname_spec='${libname}${release}${shared_ext}$major'
10529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10530  case $host_os in
10531  irix5* | nonstopux*)
10532    libsuff= shlibsuff=
10533    ;;
10534  *)
10535    case $LD in # libtool.m4 will add one of these switches to LD
10536    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10537      libsuff= shlibsuff= libmagic=32-bit;;
10538    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10539      libsuff=32 shlibsuff=N32 libmagic=N32;;
10540    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10541      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10542    *) libsuff= shlibsuff= libmagic=never-match;;
10543    esac
10544    ;;
10545  esac
10546  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10547  shlibpath_overrides_runpath=no
10548  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10549  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10550  hardcode_into_libs=yes
10551  ;;
10552
10553# No shared lib support for Linux oldld, aout, or coff.
10554linux*oldld* | linux*aout* | linux*coff*)
10555  dynamic_linker=no
10556  ;;
10557
10558# This must be Linux ELF.
10559linux*)
10560  version_type=linux
10561  need_lib_prefix=no
10562  need_version=no
10563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564  soname_spec='${libname}${release}${shared_ext}$major'
10565  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10566  shlibpath_var=LD_LIBRARY_PATH
10567  shlibpath_overrides_runpath=no
10568  # This implies no fast_install, which is unacceptable.
10569  # Some rework will be needed to allow for fast_install
10570  # before this can be enabled.
10571  hardcode_into_libs=yes
10572
10573  # Append ld.so.conf contents to the search path
10574  if test -f /etc/ld.so.conf; then
10575    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' ' '`
10576    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10577  fi
10578
10579  # We used to test for /lib/ld.so.1 and disable shared libraries on
10580  # powerpc, because MkLinux only supported shared libraries with the
10581  # GNU dynamic linker.  Since this was broken with cross compilers,
10582  # most powerpc-linux boxes support dynamic linking these days and
10583  # people can always --disable-shared, the test was removed, and we
10584  # assume the GNU/Linux dynamic linker is in use.
10585  dynamic_linker='GNU/Linux ld.so'
10586  ;;
10587
10588knetbsd*-gnu)
10589  version_type=linux
10590  need_lib_prefix=no
10591  need_version=no
10592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10593  soname_spec='${libname}${release}${shared_ext}$major'
10594  shlibpath_var=LD_LIBRARY_PATH
10595  shlibpath_overrides_runpath=no
10596  hardcode_into_libs=yes
10597  dynamic_linker='GNU ld.so'
10598  ;;
10599
10600netbsd*)
10601  version_type=sunos
10602  need_lib_prefix=no
10603  need_version=no
10604  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10605    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10606    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10607    dynamic_linker='NetBSD (a.out) ld.so'
10608  else
10609    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10610    soname_spec='${libname}${release}${shared_ext}$major'
10611    dynamic_linker='NetBSD ld.elf_so'
10612  fi
10613  shlibpath_var=LD_LIBRARY_PATH
10614  shlibpath_overrides_runpath=yes
10615  hardcode_into_libs=yes
10616  ;;
10617
10618newsos6)
10619  version_type=linux
10620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621  shlibpath_var=LD_LIBRARY_PATH
10622  shlibpath_overrides_runpath=yes
10623  ;;
10624
10625nto-qnx*)
10626  version_type=linux
10627  need_lib_prefix=no
10628  need_version=no
10629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630  soname_spec='${libname}${release}${shared_ext}$major'
10631  shlibpath_var=LD_LIBRARY_PATH
10632  shlibpath_overrides_runpath=yes
10633  ;;
10634
10635openbsd*)
10636  version_type=sunos
10637  sys_lib_dlsearch_path_spec="/usr/lib"
10638  need_lib_prefix=no
10639  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10640  case $host_os in
10641    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10642    *)                         need_version=no  ;;
10643  esac
10644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10645  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10646  shlibpath_var=LD_LIBRARY_PATH
10647  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10648    case $host_os in
10649      openbsd2.[89] | openbsd2.[89].*)
10650        shlibpath_overrides_runpath=no
10651        ;;
10652      *)
10653        shlibpath_overrides_runpath=yes
10654        ;;
10655      esac
10656  else
10657    shlibpath_overrides_runpath=yes
10658  fi
10659  ;;
10660
10661os2*)
10662  libname_spec='$name'
10663  shrext_cmds=".dll"
10664  need_lib_prefix=no
10665  library_names_spec='$libname${shared_ext} $libname.a'
10666  dynamic_linker='OS/2 ld.exe'
10667  shlibpath_var=LIBPATH
10668  ;;
10669
10670osf3* | osf4* | osf5*)
10671  version_type=osf
10672  need_lib_prefix=no
10673  need_version=no
10674  soname_spec='${libname}${release}${shared_ext}$major'
10675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676  shlibpath_var=LD_LIBRARY_PATH
10677  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10678  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10679  ;;
10680
10681solaris*)
10682  version_type=linux
10683  need_lib_prefix=no
10684  need_version=no
10685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686  soname_spec='${libname}${release}${shared_ext}$major'
10687  shlibpath_var=LD_LIBRARY_PATH
10688  shlibpath_overrides_runpath=yes
10689  hardcode_into_libs=yes
10690  # ldd complains unless libraries are executable
10691  postinstall_cmds='chmod +x $lib'
10692  ;;
10693
10694sunos4*)
10695  version_type=sunos
10696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10697  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10698  shlibpath_var=LD_LIBRARY_PATH
10699  shlibpath_overrides_runpath=yes
10700  if test "$with_gnu_ld" = yes; then
10701    need_lib_prefix=no
10702  fi
10703  need_version=yes
10704  ;;
10705
10706sysv4 | sysv4.3*)
10707  version_type=linux
10708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709  soname_spec='${libname}${release}${shared_ext}$major'
10710  shlibpath_var=LD_LIBRARY_PATH
10711  case $host_vendor in
10712    sni)
10713      shlibpath_overrides_runpath=no
10714      need_lib_prefix=no
10715      export_dynamic_flag_spec='${wl}-Blargedynsym'
10716      runpath_var=LD_RUN_PATH
10717      ;;
10718    siemens)
10719      need_lib_prefix=no
10720      ;;
10721    motorola)
10722      need_lib_prefix=no
10723      need_version=no
10724      shlibpath_overrides_runpath=no
10725      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10726      ;;
10727  esac
10728  ;;
10729
10730sysv4*MP*)
10731  if test -d /usr/nec ;then
10732    version_type=linux
10733    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10734    soname_spec='$libname${shared_ext}.$major'
10735    shlibpath_var=LD_LIBRARY_PATH
10736  fi
10737  ;;
10738
10739sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10740  version_type=freebsd-elf
10741  need_lib_prefix=no
10742  need_version=no
10743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10744  soname_spec='${libname}${release}${shared_ext}$major'
10745  shlibpath_var=LD_LIBRARY_PATH
10746  hardcode_into_libs=yes
10747  if test "$with_gnu_ld" = yes; then
10748    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10749    shlibpath_overrides_runpath=no
10750  else
10751    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10752    shlibpath_overrides_runpath=yes
10753    case $host_os in
10754      sco3.2v5*)
10755        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10756        ;;
10757    esac
10758  fi
10759  sys_lib_dlsearch_path_spec='/usr/lib'
10760  ;;
10761
10762uts4*)
10763  version_type=linux
10764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765  soname_spec='${libname}${release}${shared_ext}$major'
10766  shlibpath_var=LD_LIBRARY_PATH
10767  ;;
10768
10769*)
10770  dynamic_linker=no
10771  ;;
10772esac
10773echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10774echo "${ECHO_T}$dynamic_linker" >&6
10775test "$dynamic_linker" = no && can_build_shared=no
10776
10777variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10778if test "$GCC" = yes; then
10779  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10780fi
10781
10782echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10783echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10784hardcode_action=
10785if test -n "$hardcode_libdir_flag_spec" || \
10786   test -n "$runpath_var" || \
10787   test "X$hardcode_automatic" = "Xyes" ; then
10788
10789  # We can hardcode non-existant directories.
10790  if test "$hardcode_direct" != no &&
10791     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10792     # have to relink, otherwise we might link with an installed library
10793     # when we should be linking with a yet-to-be-installed one
10794     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10795     test "$hardcode_minus_L" != no; then
10796    # Linking always hardcodes the temporary library directory.
10797    hardcode_action=relink
10798</