source: ThirdParty/Mumps/trunk/configure @ 344

Last change on this file since 344 was 344, checked in by andreasw, 13 years ago

reran autotools

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