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

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

temporarily committing release candidate to stable

File size: 743.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMumps 1.1.1.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2008 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMumps'
431PACKAGE_TARNAME='thirdpartymumps'
432PACKAGE_VERSION='1.1.1'
433PACKAGE_STRING='ThirdPartyMumps 1.1.1'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="MUMPS/src/dmumps_part1.F"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS MY_DEFS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS MUMPSINCDIR MUMPSLIB COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE MUMPS_INCFLAGS COIN_BUILD_MUMPS_TRUE COIN_BUILD_MUMPS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE MUMPSDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyMumps 1.1.1 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyMumps 1.1.1:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-mumps compile this project (Mumps) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS. Set to mingw to use gcc/g++/ld with
1077                          -mno-cygwin. Set to msvc to use cl/link (or
1078                          icl/link). Default when mentioned: mingw. Default
1079                          when not mentioned: disabled.
1080  --enable-static[=PKGS]
1081                          build static libraries [default=no]
1082  --disable-dependency-tracking  speeds up one-time build
1083  --enable-dependency-tracking   do not reject slow dependency extractors
1084  --enable-maintainer-mode  enable make rules and dependencies not useful
1085                          (and sometimes confusing) to the casual installer
1086  --enable-shared[=PKGS]
1087                          build shared libraries [default=yes]
1088  --enable-fast-install[=PKGS]
1089                          optimize for fast installation [default=yes]
1090  --disable-libtool-lock  avoid locking (might break parallel builds)
1091  --enable-mumps-libcheck use disable-mumps-libcheck to skip the
1092                          link check at configuration time
1093
1094Optional Packages:
1095  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1096  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1097  --with-mumps-verbosity specify the debug verbosity level for project Mumps
1098  --with-mumps-checklevel specify the sanity check level for project Mumps
1099  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1100  --with-pic              try to use only PIC/non-PIC objects [default=use
1101                          both]
1102  --with-tags[=TAGS]
1103                          include additional configurations [automatic]
1104  --with-mumps-incdir specify the header file directory for library mumps
1105  --with-mumps-lib specify the flags used to link with the library mumps
1106
1107Some influential environment variables:
1108  CDEFS       Additional -D flags to be used when compiling C code.
1109  ADD_CFLAGS  Additional C compiler options
1110  DBG_CFLAGS  Debug C compiler options
1111  OPT_CFLAGS  Optimize C compiler options
1112  CC          C compiler command
1113  CFLAGS      C compiler flags
1114  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1115              nonstandard directory <lib dir>
1116  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1117              headers in a nonstandard directory <include dir>
1118  MPICC       C MPI Compiler
1119  ADD_FFLAGS  Additional Fortran compiler options
1120  DBG_FFLAGS  Debug Fortran compiler options
1121  OPT_FFLAGS  Optimize Fortran compiler options
1122  F77         Fortran 77 compiler command
1123  FFLAGS      Fortran 77 compiler flags
1124  MPIF77      Fortran MPI Compiler
1125  CPP         C preprocessor
1126  CXX         C++ compiler command
1127  CXXFLAGS    C++ compiler flags
1128  CXXCPP      C++ preprocessor
1129
1130Use these variables to override the choices made by `configure' or to help
1131it to find libraries and programs with nonstandard names/locations.
1132
1133Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1134_ACEOF
1135fi
1136
1137if test "$ac_init_help" = "recursive"; then
1138  # If there are subdirs, report their specific --help.
1139  ac_popdir=`pwd`
1140  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1141    test -d $ac_dir || continue
1142    ac_builddir=.
1143
1144if test "$ac_dir" != .; then
1145  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1146  # A "../" for each directory in $ac_dir_suffix.
1147  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1148else
1149  ac_dir_suffix= ac_top_builddir=
1150fi
1151
1152case $srcdir in
1153  .)  # No --srcdir option.  We are building in place.
1154    ac_srcdir=.
1155    if test -z "$ac_top_builddir"; then
1156       ac_top_srcdir=.
1157    else
1158       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1159    fi ;;
1160  [\\/]* | ?:[\\/]* )  # Absolute path.
1161    ac_srcdir=$srcdir$ac_dir_suffix;
1162    ac_top_srcdir=$srcdir ;;
1163  *) # Relative path.
1164    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1165    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1166esac
1167
1168# Do not use `cd foo && pwd` to compute absolute paths, because
1169# the directories may not exist.
1170case `pwd` in
1171.) ac_abs_builddir="$ac_dir";;
1172*)
1173  case "$ac_dir" in
1174  .) ac_abs_builddir=`pwd`;;
1175  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1176  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1177  esac;;
1178esac
1179case $ac_abs_builddir in
1180.) ac_abs_top_builddir=${ac_top_builddir}.;;
1181*)
1182  case ${ac_top_builddir}. in
1183  .) ac_abs_top_builddir=$ac_abs_builddir;;
1184  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1185  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1186  esac;;
1187esac
1188case $ac_abs_builddir in
1189.) ac_abs_srcdir=$ac_srcdir;;
1190*)
1191  case $ac_srcdir in
1192  .) ac_abs_srcdir=$ac_abs_builddir;;
1193  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1194  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1195  esac;;
1196esac
1197case $ac_abs_builddir in
1198.) ac_abs_top_srcdir=$ac_top_srcdir;;
1199*)
1200  case $ac_top_srcdir in
1201  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1202  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1203  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1204  esac;;
1205esac
1206
1207    cd $ac_dir
1208    # Check for guested configure; otherwise get Cygnus style configure.
1209    if test -f $ac_srcdir/configure.gnu; then
1210      echo
1211      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1212    elif test -f $ac_srcdir/configure; then
1213      echo
1214      $SHELL $ac_srcdir/configure  --help=recursive
1215    elif test -f $ac_srcdir/configure.ac ||
1216           test -f $ac_srcdir/configure.in; then
1217      echo
1218      $ac_configure --help
1219    else
1220      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1221    fi
1222    cd $ac_popdir
1223  done
1224fi
1225
1226test -n "$ac_init_help" && exit 0
1227if $ac_init_version; then
1228  cat <<\_ACEOF
1229ThirdPartyMumps configure 1.1.1
1230generated by GNU Autoconf 2.59
1231
1232Copyright (C) 2003 Free Software Foundation, Inc.
1233This configure script is free software; the Free Software Foundation
1234gives unlimited permission to copy, distribute and modify it.
1235
1236
1237Copyright 2007-2008 International Business Machines and others.
1238All Rights Reserved.
1239This file is part of the open source package Coin which is distributed
1240under the Common Public License.
1241_ACEOF
1242  exit 0
1243fi
1244exec 5>config.log
1245cat >&5 <<_ACEOF
1246This file contains any messages produced by compilers while
1247running configure, to aid debugging if configure makes a mistake.
1248
1249It was created by ThirdPartyMumps $as_me 1.1.1, which was
1250generated by GNU Autoconf 2.59.  Invocation command line was
1251
1252  $ $0 $@
1253
1254_ACEOF
1255{
1256cat <<_ASUNAME
1257## --------- ##
1258## Platform. ##
1259## --------- ##
1260
1261hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1262uname -m = `(uname -m) 2>/dev/null || echo unknown`
1263uname -r = `(uname -r) 2>/dev/null || echo unknown`
1264uname -s = `(uname -s) 2>/dev/null || echo unknown`
1265uname -v = `(uname -v) 2>/dev/null || echo unknown`
1266
1267/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1268/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1269
1270/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1271/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1272/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1273hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1274/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1275/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1276/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1277
1278_ASUNAME
1279
1280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1281for as_dir in $PATH
1282do
1283  IFS=$as_save_IFS
1284  test -z "$as_dir" && as_dir=.
1285  echo "PATH: $as_dir"
1286done
1287
1288} >&5
1289
1290cat >&5 <<_ACEOF
1291
1292
1293## ----------- ##
1294## Core tests. ##
1295## ----------- ##
1296
1297_ACEOF
1298
1299
1300# Keep a trace of the command line.
1301# Strip out --no-create and --no-recursion so they do not pile up.
1302# Strip out --silent because we don't want to record it for future runs.
1303# Also quote any args containing shell meta-characters.
1304# Make two passes to allow for proper duplicate-argument suppression.
1305ac_configure_args=
1306ac_configure_args0=
1307ac_configure_args1=
1308ac_sep=
1309ac_must_keep_next=false
1310for ac_pass in 1 2
1311do
1312  for ac_arg
1313  do
1314    case $ac_arg in
1315    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1316    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1317    | -silent | --silent | --silen | --sile | --sil)
1318      continue ;;
1319    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1321    esac
1322    case $ac_pass in
1323    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1324    2)
1325      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1326      if test $ac_must_keep_next = true; then
1327        ac_must_keep_next=false # Got value, back to normal.
1328      else
1329        case $ac_arg in
1330          *=* | --config-cache | -C | -disable-* | --disable-* \
1331          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1332          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1333          | -with-* | --with-* | -without-* | --without-* | --x)
1334            case "$ac_configure_args0 " in
1335              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1336            esac
1337            ;;
1338          -* ) ac_must_keep_next=true ;;
1339        esac
1340      fi
1341      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1342      # Get rid of the leading space.
1343      ac_sep=" "
1344      ;;
1345    esac
1346  done
1347done
1348$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1349$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1350
1351# When interrupted or exit'd, cleanup temporary files, and complete
1352# config.log.  We remove comments because anyway the quotes in there
1353# would cause problems or look ugly.
1354# WARNING: Be sure not to use single quotes in there, as some shells,
1355# such as our DU 5.0 friend, will then `close' the trap.
1356trap 'exit_status=$?
1357  # Save into config.log some information that might help in debugging.
1358  {
1359    echo
1360
1361    cat <<\_ASBOX
1362## ---------------- ##
1363## Cache variables. ##
1364## ---------------- ##
1365_ASBOX
1366    echo
1367    # The following way of writing the cache mishandles newlines in values,
1368{
1369  (set) 2>&1 |
1370    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1371    *ac_space=\ *)
1372      sed -n \
1373        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1374          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1375      ;;
1376    *)
1377      sed -n \
1378        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1379      ;;
1380    esac;
1381}
1382    echo
1383
1384    cat <<\_ASBOX
1385## ----------------- ##
1386## Output variables. ##
1387## ----------------- ##
1388_ASBOX
1389    echo
1390    for ac_var in $ac_subst_vars
1391    do
1392      eval ac_val=$`echo $ac_var`
1393      echo "$ac_var='"'"'$ac_val'"'"'"
1394    done | sort
1395    echo
1396
1397    if test -n "$ac_subst_files"; then
1398      cat <<\_ASBOX
1399## ------------- ##
1400## Output files. ##
1401## ------------- ##
1402_ASBOX
1403      echo
1404      for ac_var in $ac_subst_files
1405      do
1406        eval ac_val=$`echo $ac_var`
1407        echo "$ac_var='"'"'$ac_val'"'"'"
1408      done | sort
1409      echo
1410    fi
1411
1412    if test -s confdefs.h; then
1413      cat <<\_ASBOX
1414## ----------- ##
1415## confdefs.h. ##
1416## ----------- ##
1417_ASBOX
1418      echo
1419      sed "/^$/d" confdefs.h | sort
1420      echo
1421    fi
1422    test "$ac_signal" != 0 &&
1423      echo "$as_me: caught signal $ac_signal"
1424    echo "$as_me: exit $exit_status"
1425  } >&5
1426  rm -f core *.core &&
1427  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1428    exit $exit_status
1429     ' 0
1430for ac_signal in 1 2 13 15; do
1431  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1432done
1433ac_signal=0
1434
1435# confdefs.h avoids OS command line length limits that DEFS can exceed.
1436rm -rf conftest* confdefs.h
1437# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1438echo >confdefs.h
1439
1440# Predefined preprocessor variables.
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_NAME "$PACKAGE_NAME"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1449_ACEOF
1450
1451
1452cat >>confdefs.h <<_ACEOF
1453#define PACKAGE_VERSION "$PACKAGE_VERSION"
1454_ACEOF
1455
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_STRING "$PACKAGE_STRING"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1464_ACEOF
1465
1466
1467# Let the site file select an alternate cache file if it wants to.
1468# Prefer explicitly selected file to automatically selected ones.
1469if test -z "$CONFIG_SITE"; then
1470  if test "x$prefix" != xNONE; then
1471    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1472  else
1473    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1474  fi
1475fi
1476for ac_site_file in $CONFIG_SITE; do
1477  if test -r "$ac_site_file"; then
1478    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1479echo "$as_me: loading site script $ac_site_file" >&6;}
1480    sed 's/^/| /' "$ac_site_file" >&5
1481    . "$ac_site_file"
1482  fi
1483done
1484
1485if test -r "$cache_file"; then
1486  # Some versions of bash will fail to source /dev/null (special
1487  # files actually), so we avoid doing that.
1488  if test -f "$cache_file"; then
1489    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1490echo "$as_me: loading cache $cache_file" >&6;}
1491    case $cache_file in
1492      [\\/]* | ?:[\\/]* ) . $cache_file;;
1493      *)                      . ./$cache_file;;
1494    esac
1495  fi
1496else
1497  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1498echo "$as_me: creating cache $cache_file" >&6;}
1499  >$cache_file
1500fi
1501
1502# Check that the precious variables saved in the cache have kept the same
1503# value.
1504ac_cache_corrupted=false
1505for ac_var in `(set) 2>&1 |
1506               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1507  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1508  eval ac_new_set=\$ac_env_${ac_var}_set
1509  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1510  eval ac_new_val="\$ac_env_${ac_var}_value"
1511  case $ac_old_set,$ac_new_set in
1512    set,)
1513      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1514echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1515      ac_cache_corrupted=: ;;
1516    ,set)
1517      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1518echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1519      ac_cache_corrupted=: ;;
1520    ,);;
1521    *)
1522      if test "x$ac_old_val" != "x$ac_new_val"; then
1523        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1524echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1525        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1526echo "$as_me:   former value:  $ac_old_val" >&2;}
1527        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1528echo "$as_me:   current value: $ac_new_val" >&2;}
1529        ac_cache_corrupted=:
1530      fi;;
1531  esac
1532  # Pass precious variables to config.status.
1533  if test "$ac_new_set" = set; then
1534    case $ac_new_val in
1535    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1536      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1537    *) ac_arg=$ac_var=$ac_new_val ;;
1538    esac
1539    case " $ac_configure_args " in
1540      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1541      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1542    esac
1543  fi
1544done
1545if $ac_cache_corrupted; then
1546  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1547echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1548  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1549echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1550   { (exit 1); exit 1; }; }
1551fi
1552
1553ac_ext=c
1554ac_cpp='$CPP $CPPFLAGS'
1555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1557ac_compiler_gnu=$ac_cv_c_compiler_gnu
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588# List one file in the package so that the configure script can test
1589# whether the package is actually there
1590
1591
1592# Where should everything be installed by default?  Here, we want it
1593# to be installed directly in 'bin', 'lib', 'include' subdirectories
1594# of the directory where configure is run.  The default would be
1595# /usr/local.
1596
1597
1598# Initialize the ADDLIBS variable
1599ADDLIBS="-lm $LIBS"
1600
1601
1602# Initialize the FADDLIBS variable (which is to be used with a fortran
1603# compiler and will not include FLIBS)
1604FADDLIBS="$LIBS"
1605
1606
1607# A useful makefile conditional that is always false
1608
1609
1610if false; then
1611  ALWAYS_FALSE_TRUE=
1612  ALWAYS_FALSE_FALSE='#'
1613else
1614  ALWAYS_FALSE_TRUE='#'
1615  ALWAYS_FALSE_FALSE=
1616fi
1617
1618
1619# We set the following variable so that we know later in AC_COIN_FINALIZE
1620# that we are in a project main directory
1621coin_projectdir=yes
1622
1623
1624#############################################################################
1625#                         Standard build tool stuff                         #
1626#############################################################################
1627
1628# Get the system type
1629ac_aux_dir=
1630for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1631  if test -f $ac_dir/install-sh; then
1632    ac_aux_dir=$ac_dir
1633    ac_install_sh="$ac_aux_dir/install-sh -c"
1634    break
1635  elif test -f $ac_dir/install.sh; then
1636    ac_aux_dir=$ac_dir
1637    ac_install_sh="$ac_aux_dir/install.sh -c"
1638    break
1639  elif test -f $ac_dir/shtool; then
1640    ac_aux_dir=$ac_dir
1641    ac_install_sh="$ac_aux_dir/shtool install -c"
1642    break
1643  fi
1644done
1645if test -z "$ac_aux_dir"; then
1646  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1647echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1648   { (exit 1); exit 1; }; }
1649fi
1650ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1651ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1652ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1653
1654# Make sure we can run config.sub.
1655$ac_config_sub sun4 >/dev/null 2>&1 ||
1656  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1657echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1658   { (exit 1); exit 1; }; }
1659
1660echo "$as_me:$LINENO: checking build system type" >&5
1661echo $ECHO_N "checking build system type... $ECHO_C" >&6
1662if test "${ac_cv_build+set}" = set; then
1663  echo $ECHO_N "(cached) $ECHO_C" >&6
1664else
1665  ac_cv_build_alias=$build_alias
1666test -z "$ac_cv_build_alias" &&
1667  ac_cv_build_alias=`$ac_config_guess`
1668test -z "$ac_cv_build_alias" &&
1669  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1670echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1671   { (exit 1); exit 1; }; }
1672ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1673  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1674echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1675   { (exit 1); exit 1; }; }
1676
1677fi
1678echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1679echo "${ECHO_T}$ac_cv_build" >&6
1680build=$ac_cv_build
1681build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1682build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1683build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684
1685
1686
1687#turn off warnings and pedantic mode since they could make trouble on some platforms,
1688#and we couldn't fix them anyway
1689coin_skip_warn_cflags=yes
1690coin_skip_warn_fflags=yes
1691
1692# Check if user wants to produce debugging code
1693
1694echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1695echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1696
1697# Check whether --enable-debug or --disable-debug was given.
1698if test "${enable_debug+set}" = set; then
1699  enableval="$enable_debug"
1700  case "${enableval}" in
1701   yes) coin_debug_compile=true
1702        if test "${enable_shared+set}" = set; then :; else
1703          enable_shared=no
1704        fi
1705        ;;
1706   no)  coin_debug_compile=false
1707        ;;
1708   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1709echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1710   { (exit 1); exit 1; }; }
1711        ;;
1712esac
1713else
1714  coin_debug_compile=false
1715fi;
1716
1717# Check whether --enable-debug-mumps or --disable-debug-mumps was given.
1718if test "${enable_debug_mumps+set}" = set; then
1719  enableval="$enable_debug_mumps"
1720  case "${enableval}" in
1721    yes) coin_debug_compile=true
1722         enable_shared=no
1723         ;;
1724    no)  coin_debug_compile=false
1725         ;;
1726    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5
1727echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;}
1728   { (exit 1); exit 1; }; }
1729         ;;
1730 esac
1731else
1732  :
1733fi;
1734
1735 # m4_ifvaln([Mumps],
1736
1737if test $coin_debug_compile = true; then
1738  echo "$as_me:$LINENO: result: yes" >&5
1739echo "${ECHO_T}yes" >&6
1740else
1741  echo "$as_me:$LINENO: result: no" >&5
1742echo "${ECHO_T}no" >&6
1743fi
1744
1745
1746# Check whether --with-mumps-verbosity or --without-mumps-verbosity was given.
1747if test "${with_mumps_verbosity+set}" = set; then
1748  withval="$with_mumps_verbosity"
1749  if test "$withval" = yes; then
1750                withval=1
1751              fi
1752              coin_mumps_verbosity=$withval
1753else
1754  coin_mumps_verbosity=0
1755fi;
1756
1757cat >>confdefs.h <<_ACEOF
1758#define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity
1759_ACEOF
1760
1761
1762
1763# Check whether --with-mumps-checklevel or --without-mumps-checklevel was given.
1764if test "${with_mumps_checklevel+set}" = set; then
1765  withval="$with_mumps_checklevel"
1766  if test "$withval" = yes; then
1767                withval=1
1768              fi
1769              coin_mumps_checklevel=$withval
1770else
1771  coin_mumps_checklevel=0
1772fi;
1773
1774cat >>confdefs.h <<_ACEOF
1775#define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel
1776_ACEOF
1777
1778
1779# We use the following variable to have a string with the upper case
1780# version of the project name
1781COIN_PRJCT=MUMPS
1782
1783
1784 # m4_ifvaln([Mumps],
1785
1786
1787
1788# Get the name of the C compiler
1789case $build in
1790  *-mingw*)
1791    if test "${LD+set}" = set; then :; else
1792      LD=link
1793    fi
1794    ;;
1795 esac
1796 case $enable_doscompile in
1797   msvc)
1798     if test "x${LD+set}" = xset; then :; else
1799       LD=link
1800     fi
1801     ;;
1802 esac
1803
1804
1805 # Check whether --enable-doscompile or --disable-doscompile was given.
1806if test "${enable_doscompile+set}" = set; then
1807  enableval="$enable_doscompile"
1808  if test "$enable_doscompile" != no; then
1809     case $build in
1810       *-cygwin* | *-mingw*) ;;
1811       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1812echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1813   { (exit 1); exit 1; }; } ;;
1814     esac
1815   fi
1816else
1817  enable_doscompile=no
1818fi;
1819 case "$enable_doscompile" in
1820   mingw)
1821     case $build in
1822       *-mingw*) enable_doscompile=no ;;
1823     esac
1824     ;;
1825   msvc|no) ;;
1826   yes) enable_doscompile=mingw ;;
1827   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1828                    Try configure --help=recursive." >&5
1829echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1830                    Try configure --help=recursive." >&2;}
1831   { (exit 1); exit 1; }; }
1832      ;;
1833  esac
1834  if test "$enable_doscompile" != no ; then
1835    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1836echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1837  fi
1838
1839
1840
1841
1842ac_ext=c
1843ac_cpp='$CPP $CPPFLAGS'
1844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1846ac_compiler_gnu=$ac_cv_c_compiler_gnu
1847
1848
1849# For consistency, we set the C compiler to the same value of the C++
1850# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1851if test x"$CXX" != x; then
1852  case "$CXX" in
1853    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1854      if test x"$CC" = x; then
1855        CC="$CXX"
1856        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1857echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1858      fi
1859      ;;
1860  esac
1861fi
1862
1863
1864
1865
1866
1867
1868coin_has_cc=yes
1869
1870save_cflags="$CFLAGS"
1871
1872# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1873# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1874# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1875# compiler. In this case, put cc after gcc.
1876
1877case $build in
1878  *-cygwin* | *-mingw*)
1879             if test "$enable_doscompile" = msvc ; then
1880               comps="icl cl"
1881             else
1882               comps="gcc cl"
1883             fi ;;
1884  *-*-solaris*)
1885             # Extract the first word of "cc", so it can be a program name with args.
1886set dummy cc; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$sol_cc_compiler"; then
1893  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1894else
1895  ac_prog_rejected=no
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899  IFS=$as_save_IFS
1900  test -z "$as_dir" && as_dir=.
1901  for ac_exec_ext in '' $ac_executable_extensions; do
1902  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1904       ac_prog_rejected=yes
1905       continue
1906     fi
1907    ac_cv_prog_sol_cc_compiler="cc"
1908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909    break 2
1910  fi
1911done
1912done
1913
1914if test $ac_prog_rejected = yes; then
1915  # We found a bogon in the path, so make sure we never use it.
1916  set dummy $ac_cv_prog_sol_cc_compiler
1917  shift
1918  if test $# != 0; then
1919    # We chose a different compiler from the bogus one.
1920    # However, it has the same basename, so the bogon will be chosen
1921    # first if we set sol_cc_compiler to just the basename; use the full file name.
1922    shift
1923    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1924  fi
1925fi
1926fi
1927fi
1928sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1929if test -n "$sol_cc_compiler"; then
1930  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1931echo "${ECHO_T}$sol_cc_compiler" >&6
1932else
1933  echo "$as_me:$LINENO: result: no" >&5
1934echo "${ECHO_T}no" >&6
1935fi
1936
1937             if test "$sol_cc_compiler" = "cc" ; then
1938               comps="cc xlc gcc pgcc icc"
1939             else
1940               comps="xlc gcc pgcc icc cc"
1941             fi
1942             ;;
1943  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1944  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1945esac
1946
1947# We delete the cached value, since the test might not have been
1948# performed with our choice of compilers earlier
1949$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1950# AC_MSG_NOTICE([C compiler candidates: $comps])
1951ac_ext=c
1952ac_cpp='$CPP $CPPFLAGS'
1953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956if test -n "$ac_tool_prefix"; then
1957  for ac_prog in $comps
1958  do
1959    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961echo "$as_me:$LINENO: checking for $ac_word" >&5
1962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963if test "${ac_cv_prog_CC+set}" = set; then
1964  echo $ECHO_N "(cached) $ECHO_C" >&6
1965else
1966  if test -n "$CC"; then
1967  ac_cv_prog_CC="$CC" # Let the user override the test.
1968else
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972  IFS=$as_save_IFS
1973  test -z "$as_dir" && as_dir=.
1974  for ac_exec_ext in '' $ac_executable_extensions; do
1975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978    break 2
1979  fi
1980done
1981done
1982
1983fi
1984fi
1985CC=$ac_cv_prog_CC
1986if test -n "$CC"; then
1987  echo "$as_me:$LINENO: result: $CC" >&5
1988echo "${ECHO_T}$CC" >&6
1989else
1990  echo "$as_me:$LINENO: result: no" >&5
1991echo "${ECHO_T}no" >&6
1992fi
1993
1994    test -n "$CC" && break
1995  done
1996fi
1997if test -z "$CC"; then
1998  ac_ct_CC=$CC
1999  for ac_prog in $comps
2000do
2001  # Extract the first word of "$ac_prog", so it can be a program name with args.
2002set dummy $ac_prog; ac_word=$2
2003echo "$as_me:$LINENO: checking for $ac_word" >&5
2004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2006  echo $ECHO_N "(cached) $ECHO_C" >&6
2007else
2008  if test -n "$ac_ct_CC"; then
2009  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2010else
2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012for as_dir in $PATH
2013do
2014  IFS=$as_save_IFS
2015  test -z "$as_dir" && as_dir=.
2016  for ac_exec_ext in '' $ac_executable_extensions; do
2017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018    ac_cv_prog_ac_ct_CC="$ac_prog"
2019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020    break 2
2021  fi
2022done
2023done
2024
2025fi
2026fi
2027ac_ct_CC=$ac_cv_prog_ac_ct_CC
2028if test -n "$ac_ct_CC"; then
2029  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2030echo "${ECHO_T}$ac_ct_CC" >&6
2031else
2032  echo "$as_me:$LINENO: result: no" >&5
2033echo "${ECHO_T}no" >&6
2034fi
2035
2036  test -n "$ac_ct_CC" && break
2037done
2038
2039  CC=$ac_ct_CC
2040fi
2041
2042
2043test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2044See \`config.log' for more details." >&5
2045echo "$as_me: error: no acceptable C compiler found in \$PATH
2046See \`config.log' for more details." >&2;}
2047   { (exit 1); exit 1; }; }
2048
2049# Provide some information about the compiler.
2050echo "$as_me:$LINENO:" \
2051     "checking for C compiler version" >&5
2052ac_compiler=`set X $ac_compile; echo $2`
2053{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2054  (eval $ac_compiler --version </dev/null >&5) 2>&5
2055  ac_status=$?
2056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057  (exit $ac_status); }
2058{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2059  (eval $ac_compiler -v </dev/null >&5) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }
2063{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2064  (eval $ac_compiler -V </dev/null >&5) 2>&5
2065  ac_status=$?
2066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067  (exit $ac_status); }
2068
2069cat >conftest.$ac_ext <<_ACEOF
2070/* confdefs.h.  */
2071_ACEOF
2072cat confdefs.h >>conftest.$ac_ext
2073cat >>conftest.$ac_ext <<_ACEOF
2074/* end confdefs.h.  */
2075
2076int
2077main ()
2078{
2079
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084ac_clean_files_save=$ac_clean_files
2085ac_clean_files="$ac_clean_files a.out a.exe b.out"
2086# Try to create an executable without -o first, disregard a.out.
2087# It will help us diagnose broken compilers, and finding out an intuition
2088# of exeext.
2089echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2090echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2091ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2092if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2093  (eval $ac_link_default) 2>&5
2094  ac_status=$?
2095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096  (exit $ac_status); }; then
2097  # Find the output, starting from the most likely.  This scheme is
2098# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2099# resort.
2100
2101# Be careful to initialize this variable, since it used to be cached.
2102# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2103ac_cv_exeext=
2104# b.out is created by i960 compilers.
2105for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2106do
2107  test -f "$ac_file" || continue
2108  case $ac_file in
2109    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2110        ;;
2111    conftest.$ac_ext )
2112        # This is the source file.
2113        ;;
2114    [ab].out )
2115        # We found the default executable, but exeext='' is most
2116        # certainly right.
2117        break;;
2118    *.* )
2119        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120        # FIXME: I believe we export ac_cv_exeext for Libtool,
2121        # but it would be cool to find out if it's true.  Does anybody
2122        # maintain Libtool? --akim.
2123        export ac_cv_exeext
2124        break;;
2125    * )
2126        break;;
2127  esac
2128done
2129else
2130  echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
2133{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2134See \`config.log' for more details." >&5
2135echo "$as_me: error: C compiler cannot create executables
2136See \`config.log' for more details." >&2;}
2137   { (exit 77); exit 77; }; }
2138fi
2139
2140ac_exeext=$ac_cv_exeext
2141echo "$as_me:$LINENO: result: $ac_file" >&5
2142echo "${ECHO_T}$ac_file" >&6
2143
2144# Check the compiler produces executables we can run.  If not, either
2145# the compiler is broken, or we cross compile.
2146echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2147echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2148# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2149# If not cross compiling, check that we can run a simple program.
2150if test "$cross_compiling" != yes; then
2151  if { ac_try='./$ac_file'
2152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153  (eval $ac_try) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); }; }; then
2157    cross_compiling=no
2158  else
2159    if test "$cross_compiling" = maybe; then
2160        cross_compiling=yes
2161    else
2162        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2163If you meant to cross compile, use \`--host'.
2164See \`config.log' for more details." >&5
2165echo "$as_me: error: cannot run C compiled programs.
2166If you meant to cross compile, use \`--host'.
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169    fi
2170  fi
2171fi
2172echo "$as_me:$LINENO: result: yes" >&5
2173echo "${ECHO_T}yes" >&6
2174
2175rm -f a.out a.exe conftest$ac_cv_exeext b.out
2176ac_clean_files=$ac_clean_files_save
2177# Check the compiler produces executables we can run.  If not, either
2178# the compiler is broken, or we cross compile.
2179echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2180echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2181echo "$as_me:$LINENO: result: $cross_compiling" >&5
2182echo "${ECHO_T}$cross_compiling" >&6
2183
2184echo "$as_me:$LINENO: checking for suffix of executables" >&5
2185echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2187  (eval $ac_link) 2>&5
2188  ac_status=$?
2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190  (exit $ac_status); }; then
2191  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2192# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2193# work properly (i.e., refer to `conftest.exe'), while it won't with
2194# `rm'.
2195for ac_file in conftest.exe conftest conftest.*; do
2196  test -f "$ac_file" || continue
2197  case $ac_file in
2198    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2199    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200          export ac_cv_exeext
2201          break;;
2202    * ) break;;
2203  esac
2204done
2205else
2206  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2207See \`config.log' for more details." >&5
2208echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2209See \`config.log' for more details." >&2;}
2210   { (exit 1); exit 1; }; }
2211fi
2212
2213rm -f conftest$ac_cv_exeext
2214echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2215echo "${ECHO_T}$ac_cv_exeext" >&6
2216
2217rm -f conftest.$ac_ext
2218EXEEXT=$ac_cv_exeext
2219ac_exeext=$EXEEXT
2220echo "$as_me:$LINENO: checking for suffix of object files" >&5
2221echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2222if test "${ac_cv_objext+set}" = set; then
2223  echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225  cat >conftest.$ac_ext <<_ACEOF
2226/* confdefs.h.  */
2227_ACEOF
2228cat confdefs.h >>conftest.$ac_ext
2229cat >>conftest.$ac_ext <<_ACEOF
2230/* end confdefs.h.  */
2231
2232int
2233main ()
2234{
2235
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240rm -f conftest.o conftest.obj
2241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242  (eval $ac_compile) 2>&5
2243  ac_status=$?
2244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245  (exit $ac_status); }; then
2246  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2247  case $ac_file in
2248    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2249    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2250       break;;
2251  esac
2252done
2253else
2254  echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2258See \`config.log' for more details." >&5
2259echo "$as_me: error: cannot compute suffix of object files: cannot compile
2260See \`config.log' for more details." >&2;}
2261   { (exit 1); exit 1; }; }
2262fi
2263
2264rm -f conftest.$ac_cv_objext conftest.$ac_ext
2265fi
2266echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2267echo "${ECHO_T}$ac_cv_objext" >&6
2268OBJEXT=$ac_cv_objext
2269ac_objext=$OBJEXT
2270echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2271echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2272if test "${ac_cv_c_compiler_gnu+set}" = set; then
2273  echo $ECHO_N "(cached) $ECHO_C" >&6
2274else
2275  cat >conftest.$ac_ext <<_ACEOF
2276/* confdefs.h.  */
2277_ACEOF
2278cat confdefs.h >>conftest.$ac_ext
2279cat >>conftest.$ac_ext <<_ACEOF
2280/* end confdefs.h.  */
2281
2282int
2283main ()
2284{
2285#ifndef __GNUC__
2286       choke me
2287#endif
2288
2289  ;
2290  return 0;
2291}
2292_ACEOF
2293rm -f conftest.$ac_objext
2294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295  (eval $ac_compile) 2>conftest.er1
2296  ac_status=$?
2297  grep -v '^ *+' conftest.er1 >conftest.err
2298  rm -f conftest.er1
2299  cat conftest.err >&5
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); } &&
2302         { ac_try='test -z "$ac_c_werror_flag"
2303                         || test ! -s conftest.err'
2304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305  (eval $ac_try) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; } &&
2309         { ac_try='test -s conftest.$ac_objext'
2310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311  (eval $ac_try) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; }; then
2315  ac_compiler_gnu=yes
2316else
2317  echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320ac_compiler_gnu=no
2321fi
2322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323ac_cv_c_compiler_gnu=$ac_compiler_gnu
2324
2325fi
2326echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2327echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2328GCC=`test $ac_compiler_gnu = yes && echo yes`
2329ac_test_CFLAGS=${CFLAGS+set}
2330ac_save_CFLAGS=$CFLAGS
2331CFLAGS="-g"
2332echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2333echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2334if test "${ac_cv_prog_cc_g+set}" = set; then
2335  echo $ECHO_N "(cached) $ECHO_C" >&6
2336else
2337  cat >conftest.$ac_ext <<_ACEOF
2338/* confdefs.h.  */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h.  */
2343
2344int
2345main ()
2346{
2347
2348  ;
2349  return 0;
2350}
2351_ACEOF
2352rm -f conftest.$ac_objext
2353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354  (eval $ac_compile) 2>conftest.er1
2355  ac_status=$?
2356  grep -v '^ *+' conftest.er1 >conftest.err
2357  rm -f conftest.er1
2358  cat conftest.err >&5
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); } &&
2361         { ac_try='test -z "$ac_c_werror_flag"
2362                         || test ! -s conftest.err'
2363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364  (eval $ac_try) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); }; } &&
2368         { ac_try='test -s conftest.$ac_objext'
2369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370  (eval $ac_try) 2>&5
2371  ac_status=$?
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); }; }; then
2374  ac_cv_prog_cc_g=yes
2375else
2376  echo "$as_me: failed program was:" >&5
2377sed 's/^/| /' conftest.$ac_ext >&5
2378
2379ac_cv_prog_cc_g=no
2380fi
2381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382fi
2383echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2384echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2385if test "$ac_test_CFLAGS" = set; then
2386  CFLAGS=$ac_save_CFLAGS
2387elif test $ac_cv_prog_cc_g = yes; then
2388  if test "$GCC" = yes; then
2389    CFLAGS="-g -O2"
2390  else
2391    CFLAGS="-g"
2392  fi
2393else
2394  if test "$GCC" = yes; then
2395    CFLAGS="-O2"
2396  else
2397    CFLAGS=
2398  fi
2399fi
2400echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2401echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2402if test "${ac_cv_prog_cc_stdc+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405  ac_cv_prog_cc_stdc=no
2406ac_save_CC=$CC
2407cat >conftest.$ac_ext <<_ACEOF
2408/* confdefs.h.  */
2409_ACEOF
2410cat confdefs.h >>conftest.$ac_ext
2411cat >>conftest.$ac_ext <<_ACEOF
2412/* end confdefs.h.  */
2413#include <stdarg.h>
2414#include <stdio.h>
2415#include <sys/types.h>
2416#include <sys/stat.h>
2417/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2418struct buf { int x; };
2419FILE * (*rcsopen) (struct buf *, struct stat *, int);
2420static char *e (p, i)
2421     char **p;
2422     int i;
2423{
2424  return p[i];
2425}
2426static char *f (char * (*g) (char **, int), char **p, ...)
2427{
2428  char *s;
2429  va_list v;
2430  va_start (v,p);
2431  s = g (p, va_arg (v,int));
2432  va_end (v);
2433  return s;
2434}
2435
2436/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2437   function prototypes and stuff, but not '\xHH' hex character constants.
2438   These don't provoke an error unfortunately, instead are silently treated
2439   as 'x'.  The following induces an error, until -std1 is added to get
2440   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2441   array size at least.  It's necessary to write '\x00'==0 to get something
2442   that's true only with -std1.  */
2443int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2444
2445int test (int i, double x);
2446struct s1 {int (*f) (int a);};
2447struct s2 {int (*f) (double a);};
2448int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2449int argc;
2450char **argv;
2451int
2452main ()
2453{
2454return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2455  ;
2456  return 0;
2457}
2458_ACEOF
2459# Don't try gcc -ansi; that turns off useful extensions and
2460# breaks some systems' header files.
2461# AIX                   -qlanglvl=ansi
2462# Ultrix and OSF/1      -std1
2463# HP-UX 10.20 and later -Ae
2464# HP-UX older versions  -Aa -D_HPUX_SOURCE
2465# SVR4                  -Xc -D__EXTENSIONS__
2466for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2467do
2468  CC="$ac_save_CC $ac_arg"
2469  rm -f conftest.$ac_objext
2470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471  (eval $ac_compile) 2>conftest.er1
2472  ac_status=$?
2473  grep -v '^ *+' conftest.er1 >conftest.err
2474  rm -f conftest.er1
2475  cat conftest.err >&5
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); } &&
2478         { ac_try='test -z "$ac_c_werror_flag"
2479                         || test ! -s conftest.err'
2480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481  (eval $ac_try) 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); }; } &&
2485         { ac_try='test -s conftest.$ac_objext'
2486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487  (eval $ac_try) 2>&5
2488  ac_status=$?
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); }; }; then
2491  ac_cv_prog_cc_stdc=$ac_arg
2492break
2493else
2494  echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497fi
2498rm -f conftest.err conftest.$ac_objext
2499done
2500rm -f conftest.$ac_ext conftest.$ac_objext
2501CC=$ac_save_CC
2502
2503fi
2504
2505case "x$ac_cv_prog_cc_stdc" in
2506  x|xno)
2507    echo "$as_me:$LINENO: result: none needed" >&5
2508echo "${ECHO_T}none needed" >&6 ;;
2509  *)
2510    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2511echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2512    CC="$CC $ac_cv_prog_cc_stdc" ;;
2513esac
2514
2515# Some people use a C++ compiler to compile C.  Since we use `exit',
2516# in C++ we need to declare it.  In case someone uses the same compiler
2517# for both compiling C and C++ we need to have the C++ compiler decide
2518# the declaration of exit, since it's the most demanding environment.
2519cat >conftest.$ac_ext <<_ACEOF
2520#ifndef __cplusplus
2521  choke me
2522#endif
2523_ACEOF
2524rm -f conftest.$ac_objext
2525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526  (eval $ac_compile) 2>conftest.er1
2527  ac_status=$?
2528  grep -v '^ *+' conftest.er1 >conftest.err
2529  rm -f conftest.er1
2530  cat conftest.err >&5
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); } &&
2533         { ac_try='test -z "$ac_c_werror_flag"
2534                         || test ! -s conftest.err'
2535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536  (eval $ac_try) 2>&5
2537  ac_status=$?
2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539  (exit $ac_status); }; } &&
2540         { ac_try='test -s conftest.$ac_objext'
2541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542  (eval $ac_try) 2>&5
2543  ac_status=$?
2544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545  (exit $ac_status); }; }; then
2546  for ac_declaration in \
2547   '' \
2548   'extern "C" void std::exit (int) throw (); using std::exit;' \
2549   'extern "C" void std::exit (int); using std::exit;' \
2550   'extern "C" void exit (int) throw ();' \
2551   'extern "C" void exit (int);' \
2552   'void exit (int);'
2553do
2554  cat >conftest.$ac_ext <<_ACEOF
2555/* confdefs.h.  */
2556_ACEOF
2557cat confdefs.h >>conftest.$ac_ext
2558cat >>conftest.$ac_ext <<_ACEOF
2559/* end confdefs.h.  */
2560$ac_declaration
2561#include <stdlib.h>
2562int
2563main ()
2564{
2565exit (42);
2566  ;
2567  return 0;
2568}
2569_ACEOF
2570rm -f conftest.$ac_objext
2571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572  (eval $ac_compile) 2>conftest.er1
2573  ac_status=$?
2574  grep -v '^ *+' conftest.er1 >conftest.err
2575  rm -f conftest.er1
2576  cat conftest.err >&5
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); } &&
2579         { ac_try='test -z "$ac_c_werror_flag"
2580                         || test ! -s conftest.err'
2581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582  (eval $ac_try) 2>&5
2583  ac_status=$?
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); }; } &&
2586         { ac_try='test -s conftest.$ac_objext'
2587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588  (eval $ac_try) 2>&5
2589  ac_status=$?
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); }; }; then
2592  :
2593else
2594  echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597continue
2598fi
2599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2600  cat >conftest.$ac_ext <<_ACEOF
2601/* confdefs.h.  */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h.  */
2606$ac_declaration
2607int
2608main ()
2609{
2610exit (42);
2611  ;
2612  return 0;
2613}
2614_ACEOF
2615rm -f conftest.$ac_objext
2616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617  (eval $ac_compile) 2>conftest.er1
2618  ac_status=$?
2619  grep -v '^ *+' conftest.er1 >conftest.err
2620  rm -f conftest.er1
2621  cat conftest.err >&5
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); } &&
2624         { ac_try='test -z "$ac_c_werror_flag"
2625                         || test ! -s conftest.err'
2626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627  (eval $ac_try) 2>&5
2628  ac_status=$?
2629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630  (exit $ac_status); }; } &&
2631         { ac_try='test -s conftest.$ac_objext'
2632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633  (eval $ac_try) 2>&5
2634  ac_status=$?
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); }; }; then
2637  break
2638else
2639  echo "$as_me: failed program was:" >&5
2640sed 's/^/| /' conftest.$ac_ext >&5
2641
2642fi
2643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644done
2645rm -f conftest*
2646if test -n "$ac_declaration"; then
2647  echo '#ifdef __cplusplus' >>confdefs.h
2648  echo $ac_declaration      >>confdefs.h
2649  echo '#endif'             >>confdefs.h
2650fi
2651
2652else
2653  echo "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656fi
2657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658ac_ext=c
2659ac_cpp='$CPP $CPPFLAGS'
2660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663
2664if test -z "$CC" ; then
2665  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2666echo "$as_me: error: Failed to find a C compiler!" >&2;}
2667   { (exit 1); exit 1; }; }
2668fi
2669# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2670case "$CC" in
2671  cl* | */cl* | CL* | */CL* )
2672    if test "$ac_cv_prog_cc_g" = yes ; then
2673      ac_cv_prog_cc_g=no
2674      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2675echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2676    fi ;;
2677esac
2678CFLAGS="$save_cflags"
2679
2680# Check if a project specific CFLAGS variable has been set
2681if test x$COIN_PRJCT != x; then
2682  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2683  if test x$coin_tmp = xset; then
2684    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2685  fi
2686fi
2687
2688if test x"$CFLAGS" = x; then
2689
2690  coin_add_cflags=
2691  coin_opt_cflags=
2692  coin_dbg_cflags=
2693  coin_warn_cflags=
2694
2695  if test "$GCC" = "yes"; then
2696    case "$CC" in
2697      icc* | */icc*)
2698        ;;
2699      *)
2700        coin_opt_cflags="-O3 -fomit-frame-pointer"
2701        coin_add_cflags="-pipe"
2702        coin_dbg_cflags="-g"
2703        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2704        case $build in
2705          *-darwin*)
2706            ;;
2707          *)
2708            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2709            ;;
2710        esac
2711        case $enable_doscompile in
2712          mingw)
2713            CFLAGS="-mno-cygwin"
2714            cat >conftest.$ac_ext <<_ACEOF
2715/* confdefs.h.  */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h.  */
2720
2721int
2722main ()
2723{
2724int i=0; i++;
2725  ;
2726  return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext conftest$ac_exeext
2730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2731  (eval $ac_link) 2>conftest.er1
2732  ac_status=$?
2733  grep -v '^ *+' conftest.er1 >conftest.err
2734  rm -f conftest.er1
2735  cat conftest.err >&5
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); } &&
2738         { ac_try='test -z "$ac_c_werror_flag"
2739                         || test ! -s conftest.err'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; } &&
2745         { ac_try='test -s conftest$ac_exeext'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; }; then
2751  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2752else
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756fi
2757rm -f conftest.err conftest.$ac_objext \
2758      conftest$ac_exeext conftest.$ac_ext
2759            CFLAGS=
2760          ;;
2761        esac
2762    esac
2763  fi
2764  if test -z "$coin_opt_cflags"; then
2765    case $build in
2766      *-cygwin* | *-mingw*)
2767        case "$CC" in
2768          cl* | */cl* | CL* | */CL*)
2769            coin_opt_cflags='-MT -O2'
2770            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2771            coin_dbg_cflags='-MTd'
2772            ;;
2773          icl* | */icl* | ICL* | */ICL*)
2774            coin_opt_cflags='-MT -Ox'
2775            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2776            coin_dbg_cflags='-MTd -debug'
2777            ;;
2778        esac
2779        ;;
2780      *-linux-*)
2781        case "$CC" in
2782          icc* | */icc*)
2783            coin_opt_cflags="-O3 -ip -mp1"
2784            coin_add_cflags=""
2785            coin_dbg_cflags="-g"
2786            # Check if -i_dynamic is necessary (for new glibc library)
2787            CFLAGS=
2788            cat >conftest.$ac_ext <<_ACEOF
2789/* confdefs.h.  */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h.  */
2794
2795int
2796main ()
2797{
2798int i=0; i++;
2799  ;
2800  return 0;
2801}
2802_ACEOF
2803rm -f conftest.$ac_objext conftest$ac_exeext
2804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2805  (eval $ac_link) 2>conftest.er1
2806  ac_status=$?
2807  grep -v '^ *+' conftest.er1 >conftest.err
2808  rm -f conftest.er1
2809  cat conftest.err >&5
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); } &&
2812         { ac_try='test -z "$ac_c_werror_flag"
2813                         || test ! -s conftest.err'
2814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815  (eval $ac_try) 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }; } &&
2819         { ac_try='test -s conftest$ac_exeext'
2820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821  (eval $ac_try) 2>&5
2822  ac_status=$?
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); }; }; then
2825  :
2826else
2827  echo "$as_me: failed program was:" >&5
2828sed 's/^/| /' conftest.$ac_ext >&5
2829
2830coin_add_cflags="-i_dynamic $coin_add_cflags"
2831fi
2832rm -f conftest.err conftest.$ac_objext \
2833      conftest$ac_exeext conftest.$ac_ext
2834            ;;
2835          pgcc* | */pgcc*)
2836            coin_opt_cflags="-fast"
2837            coin_add_cflags="-Kieee -pc 64"
2838            coin_dbg_cflags="-g"
2839            ;;
2840        esac
2841        ;;
2842      *-ibm-*)
2843        case "$CC" in
2844          xlc* | */xlc* | mpxlc* | */mpxlc*)
2845            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2846            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2847            coin_dbg_cflags="-g"
2848          ;;
2849        esac
2850        ;;
2851      *-hp-*)
2852        coin_opt_cflags="-O"
2853        coin_add_cflags="-Ae"
2854        coin_dbg_cflags="-g"
2855        ;;
2856      *-*-solaris*)
2857        coin_opt_cflags="-xO4"
2858        coin_dbg_cflags="-g"
2859        ;;
2860      *-sgi-*)
2861        coin_opt_cflags="-O -OPT:Olimit=0"
2862        coin_dbg_cflags="-g"
2863        ;;
2864    esac
2865  fi
2866
2867  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2868    coin_dbg_cflags="-g"
2869  fi
2870
2871  if test -z "$coin_opt_cflags"; then
2872    # Try if -O option works if nothing else is set
2873    CFLAGS="-O"
2874    cat >conftest.$ac_ext <<_ACEOF
2875/* confdefs.h.  */
2876_ACEOF
2877cat confdefs.h >>conftest.$ac_ext
2878cat >>conftest.$ac_ext <<_ACEOF
2879/* end confdefs.h.  */
2880
2881int
2882main ()
2883{
2884int i=0; i++;
2885  ;
2886  return 0;
2887}
2888_ACEOF
2889rm -f conftest.$ac_objext conftest$ac_exeext
2890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2891  (eval $ac_link) 2>conftest.er1
2892  ac_status=$?
2893  grep -v '^ *+' conftest.er1 >conftest.err
2894  rm -f conftest.er1
2895  cat conftest.err >&5
2896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897  (exit $ac_status); } &&
2898         { ac_try='test -z "$ac_c_werror_flag"
2899                         || test ! -s conftest.err'
2900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901  (eval $ac_try) 2>&5
2902  ac_status=$?
2903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); }; } &&
2905         { ac_try='test -s conftest$ac_exeext'
2906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907  (eval $ac_try) 2>&5
2908  ac_status=$?
2909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910  (exit $ac_status); }; }; then
2911  coin_opt_cflags="-O"
2912else
2913  echo "$as_me: failed program was:" >&5
2914sed 's/^/| /' conftest.$ac_ext >&5
2915
2916fi
2917rm -f conftest.err conftest.$ac_objext \
2918      conftest$ac_exeext conftest.$ac_ext
2919  fi
2920
2921  # if PM doesn't want the warning messages, take them out
2922  if test x"$coin_skip_warn_cflags" = xyes; then
2923    coin_warn_cflags=
2924  fi
2925
2926  if test x${DBG_CFLAGS+set} != xset; then
2927    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2928  fi
2929  if test x${OPT_CFLAGS+set} != xset; then
2930    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2931  fi
2932
2933  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2934  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2935
2936  if test "$coin_debug_compile" = "true"; then
2937    CFLAGS="$DBG_CFLAGS"
2938  else
2939    CFLAGS="$OPT_CFLAGS"
2940  fi
2941else
2942  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2943  if test x${DBG_CFLAGS+set} != xset; then
2944    DBG_CFLAGS="$CFLAGS"
2945  fi
2946  if test x${OPT_CFLAGS+set} != xset; then
2947    OPT_CFLAGS="$CFLAGS"
2948  fi
2949fi
2950
2951# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2952
2953case "$CFLAGS" in
2954  *-mno-cygwin*)
2955    if test x${CPPFLAGS+set} != xset ; then
2956      CPPFLAGS="-mno-cygwin"
2957    else
2958      case "$CPPFLAGS" in
2959        *-mno-cygwin*)
2960          ;;
2961        *)
2962          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2963          ;;
2964      esac
2965    fi ;;
2966esac
2967
2968# Try if CFLAGS works
2969save_CFLAGS="$CFLAGS"
2970cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h.  */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h.  */
2976
2977int
2978main ()
2979{
2980int i=0; i++;
2981  ;
2982  return 0;
2983}
2984_ACEOF
2985rm -f conftest.$ac_objext conftest$ac_exeext
2986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2987  (eval $ac_link) 2>conftest.er1
2988  ac_status=$?
2989  grep -v '^ *+' conftest.er1 >conftest.err
2990  rm -f conftest.er1
2991  cat conftest.err >&5
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); } &&
2994         { ac_try='test -z "$ac_c_werror_flag"
2995                         || test ! -s conftest.err'
2996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997  (eval $ac_try) 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; } &&
3001         { ac_try='test -s conftest$ac_exeext'
3002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003  (eval $ac_try) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }; }; then
3007  :
3008else
3009  echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
3011
3012CFLAGS=
3013fi
3014rm -f conftest.err conftest.$ac_objext \
3015      conftest$ac_exeext conftest.$ac_ext
3016if test -z "$CFLAGS"; then
3017  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3018echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3019  CFLAGS='-O'
3020  cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h.  */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h.  */
3026
3027int
3028main ()
3029{
3030int i=0; i++;
3031  ;
3032  return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext conftest$ac_exeext
3036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3037  (eval $ac_link) 2>conftest.er1
3038  ac_status=$?
3039  grep -v '^ *+' conftest.er1 >conftest.err
3040  rm -f conftest.er1
3041  cat conftest.err >&5
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); } &&
3044         { ac_try='test -z "$ac_c_werror_flag"
3045                         || test ! -s conftest.err'
3046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047  (eval $ac_try) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; } &&
3051         { ac_try='test -s conftest$ac_exeext'
3052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053  (eval $ac_try) 2>&5
3054  ac_status=$?
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); }; }; then
3057  :
3058else
3059  echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062CFLAGS=
3063fi
3064rm -f conftest.err conftest.$ac_objext \
3065      conftest$ac_exeext conftest.$ac_ext
3066  if test -z "$CFLAGS"; then
3067    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3068echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3069  fi
3070fi
3071
3072{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3073echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3074
3075
3076if test x"$MPICC" = x; then :; else
3077  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3078echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3079  CC="$MPICC"
3080fi
3081
3082# Correct ADDLIBS initialization if we are using the MS compiler
3083case "$CC" in
3084  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3085    ADDLIBS=
3086    case $build in
3087  *-mingw*)
3088    if test "${LD+set}" = set; then :; else
3089      LD=link
3090    fi
3091    ;;
3092 esac
3093 case $enable_doscompile in
3094   msvc)
3095     if test "x${LD+set}" = xset; then :; else
3096       LD=link
3097     fi
3098     ;;
3099 esac
3100
3101    ;;
3102esac
3103
3104ac_ext=c
3105ac_cpp='$CPP $CPPFLAGS'
3106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109
3110
3111
3112# Get the name of the Fortran compiler and appropriate compiler options
3113case $build in
3114  *-cygwin* | *-mingw*)
3115     if test "$enable_doscompile" = msvc ; then
3116       coin_f77_comps="ifort fl32 compile_f2c"
3117     else
3118       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3119     fi ;;
3120  *-*-solaris*)
3121     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3122  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3123 esac
3124
3125
3126
3127
3128
3129
3130ac_ext=f
3131ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3132ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3134
3135
3136
3137
3138
3139
3140coin_has_f77=yes
3141
3142save_fflags="$FFLAGS"
3143
3144# We delete the cached value, since the test might not have been
3145# performed with our choice of compilers earlier
3146$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3147
3148# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3149# coin_f77_comps to see if there's a program that matches one of the names.
3150# If there's no such program, F77 = unavailable. If we match the name,
3151# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3152# compiler.
3153# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3154
3155
3156{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3157echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3158for ac_prog in $coin_f77_comps
3159do
3160  # Extract the first word of "$ac_prog", so it can be a program name with args.
3161set dummy $ac_prog; ac_word=$2
3162echo "$as_me:$LINENO: checking for $ac_word" >&5
3163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164if test "${ac_cv_prog_F77+set}" = set; then
3165  echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167  if test -n "$F77"; then
3168  ac_cv_prog_F77="$F77" # Let the user override the test.
3169else
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173  IFS=$as_save_IFS
3174  test -z "$as_dir" && as_dir=.
3175  for ac_exec_ext in '' $ac_executable_extensions; do
3176  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177    ac_cv_prog_F77="$ac_prog"
3178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179    break 2
3180  fi
3181done
3182done
3183
3184fi
3185fi
3186F77=$ac_cv_prog_F77
3187if test -n "$F77"; then
3188  echo "$as_me:$LINENO: result: $F77" >&5
3189echo "${ECHO_T}$F77" >&6
3190else
3191  echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6
3193fi
3194
3195  test -n "$F77" && break
3196done
3197test -n "$F77" || F77="unavailable"
3198
3199
3200if test "$F77" != "unavailable" ; then
3201  ac_ext=f
3202ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3203ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3205if test -n "$ac_tool_prefix"; then
3206  for ac_prog in $coin_f77_comps
3207  do
3208    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3209set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3210echo "$as_me:$LINENO: checking for $ac_word" >&5
3211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3212if test "${ac_cv_prog_F77+set}" = set; then
3213  echo $ECHO_N "(cached) $ECHO_C" >&6
3214else
3215  if test -n "$F77"; then
3216  ac_cv_prog_F77="$F77" # Let the user override the test.
3217else
3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219for as_dir in $PATH
3220do
3221  IFS=$as_save_IFS
3222  test -z "$as_dir" && as_dir=.
3223  for ac_exec_ext in '' $ac_executable_extensions; do
3224  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3226    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227    break 2
3228  fi
3229done
3230done
3231
3232fi
3233fi
3234F77=$ac_cv_prog_F77
3235if test -n "$F77"; then
3236  echo "$as_me:$LINENO: result: $F77" >&5
3237echo "${ECHO_T}$F77" >&6
3238else
3239  echo "$as_me:$LINENO: result: no" >&5
3240echo "${ECHO_T}no" >&6
3241fi
3242
3243    test -n "$F77" && break
3244  done
3245fi
3246if test -z "$F77"; then
3247  ac_ct_F77=$F77
3248  for ac_prog in $coin_f77_comps
3249do
3250  # Extract the first word of "$ac_prog", so it can be a program name with args.
3251set dummy $ac_prog; ac_word=$2
3252echo "$as_me:$LINENO: checking for $ac_word" >&5
3253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3255  echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257  if test -n "$ac_ct_F77"; then
3258  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3259else
3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261for as_dir in $PATH
3262do
3263  IFS=$as_save_IFS
3264  test -z "$as_dir" && as_dir=.
3265  for ac_exec_ext in '' $ac_executable_extensions; do
3266  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267    ac_cv_prog_ac_ct_F77="$ac_prog"
3268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269    break 2
3270  fi
3271done
3272done
3273
3274fi
3275fi
3276ac_ct_F77=$ac_cv_prog_ac_ct_F77
3277if test -n "$ac_ct_F77"; then
3278  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3279echo "${ECHO_T}$ac_ct_F77" >&6
3280else
3281  echo "$as_me:$LINENO: result: no" >&5
3282echo "${ECHO_T}no" >&6
3283fi
3284
3285  test -n "$ac_ct_F77" && break
3286done
3287
3288  F77=$ac_ct_F77
3289fi
3290
3291
3292# Provide some information about the compiler.
3293echo "$as_me:3293:" \
3294     "checking for Fortran 77 compiler version" >&5
3295ac_compiler=`set X $ac_compile; echo $2`
3296{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3297  (eval $ac_compiler --version </dev/null >&5) 2>&5
3298  ac_status=$?
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); }
3301{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3302  (eval $ac_compiler -v </dev/null >&5) 2>&5
3303  ac_status=$?
3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305  (exit $ac_status); }
3306{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3307  (eval $ac_compiler -V </dev/null >&5) 2>&5
3308  ac_status=$?
3309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310  (exit $ac_status); }
3311rm -f a.out
3312
3313# If we don't use `.F' as extension, the preprocessor is not run on the
3314# input file.  (Note that this only needs to work for GNU compilers.)
3315ac_save_ext=$ac_ext
3316ac_ext=F
3317echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3318echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3319if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3320  echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322  cat >conftest.$ac_ext <<_ACEOF
3323      program main
3324#ifndef __GNUC__
3325       choke me
3326#endif
3327
3328      end
3329_ACEOF
3330rm -f conftest.$ac_objext
3331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332  (eval $ac_compile) 2>conftest.er1
3333  ac_status=$?
3334  grep -v '^ *+' conftest.er1 >conftest.err
3335  rm -f conftest.er1
3336  cat conftest.err >&5
3337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); } &&
3339         { ac_try='test -z "$ac_f77_werror_flag"
3340                         || test ! -s conftest.err'
3341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342  (eval $ac_try) 2>&5
3343  ac_status=$?
3344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345  (exit $ac_status); }; } &&
3346         { ac_try='test -s conftest.$ac_objext'
3347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348  (eval $ac_try) 2>&5
3349  ac_status=$?
3350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351  (exit $ac_status); }; }; then
3352  ac_compiler_gnu=yes
3353else
3354  echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357ac_compiler_gnu=no
3358fi
3359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3360ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3361
3362fi
3363echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3364echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3365ac_ext=$ac_save_ext
3366ac_test_FFLAGS=${FFLAGS+set}
3367ac_save_FFLAGS=$FFLAGS
3368FFLAGS=
3369echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3370echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3371if test "${ac_cv_prog_f77_g+set}" = set; then
3372  echo $ECHO_N "(cached) $ECHO_C" >&6
3373else
3374  FFLAGS=-g
3375cat >conftest.$ac_ext <<_ACEOF
3376      program main
3377
3378      end
3379_ACEOF
3380rm -f conftest.$ac_objext
3381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3382  (eval $ac_compile) 2>conftest.er1
3383  ac_status=$?
3384  grep -v '^ *+' conftest.er1 >conftest.err
3385  rm -f conftest.er1
3386  cat conftest.err >&5
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); } &&
3389         { ac_try='test -z "$ac_f77_werror_flag"
3390                         || test ! -s conftest.err'
3391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392  (eval $ac_try) 2>&5
3393  ac_status=$?
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); }; } &&
3396         { ac_try='test -s conftest.$ac_objext'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; }; then
3402  ac_cv_prog_f77_g=yes
3403else
3404  echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407ac_cv_prog_f77_g=no
3408fi
3409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410
3411fi
3412echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3413echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3414if test "$ac_test_FFLAGS" = set; then
3415  FFLAGS=$ac_save_FFLAGS
3416elif test $ac_cv_prog_f77_g = yes; then
3417  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3418    FFLAGS="-g -O2"
3419  else
3420    FFLAGS="-g"
3421  fi
3422else
3423  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3424    FFLAGS="-O2"
3425  else
3426    FFLAGS=
3427  fi
3428fi
3429
3430G77=`test $ac_compiler_gnu = yes && echo yes`
3431ac_ext=f
3432ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3433ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3435
3436else
3437  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3438echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3439fi
3440
3441FFLAGS="$save_fflags"
3442
3443# Check if a project specific FFLAGS variable has been set
3444if test x$COIN_PRJCT != x; then
3445  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3446  if test x$coin_tmp = xset; then
3447    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3448  fi
3449fi
3450
3451if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3452
3453  coin_add_fflags=
3454  coin_opt_fflags=
3455  coin_dbg_fflags=
3456  coin_warn_fflags=
3457
3458  if test "$G77" = "yes"; then
3459    coin_opt_fflags="-O3 -fomit-frame-pointer"
3460    coin_add_fflags="-pipe"
3461    coin_dbg_fflags="-g"
3462    case $enable_doscompile in
3463      mingw)
3464        FFLAGS="-mno-cygwin"
3465        cat >conftest.$ac_ext <<_ACEOF
3466      program main
3467      write(*,*) 'Hello world'
3468      end
3469_ACEOF
3470rm -f conftest.$ac_objext conftest$ac_exeext
3471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3472  (eval $ac_link) 2>conftest.er1
3473  ac_status=$?
3474  grep -v '^ *+' conftest.er1 >conftest.err
3475  rm -f conftest.er1
3476  cat conftest.err >&5
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); } &&
3479         { ac_try='test -z "$ac_f77_werror_flag"
3480                         || test ! -s conftest.err'
3481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482  (eval $ac_try) 2>&5
3483  ac_status=$?
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); }; } &&
3486         { ac_try='test -s conftest$ac_exeext'
3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488  (eval $ac_try) 2>&5
3489  ac_status=$?
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); }; }; then
3492  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3493else
3494  echo "$as_me: failed program was:" >&5
3495sed 's/^/| /' conftest.$ac_ext >&5
3496
3497fi
3498rm -f conftest.err conftest.$ac_objext \
3499      conftest$ac_exeext conftest.$ac_ext
3500        FFLAGS=
3501      ;;
3502    esac
3503  else
3504    case $build in
3505      *-cygwin* | *-mingw*)
3506        case $F77 in
3507          ifort* | */ifort* | IFORT* | */IFORT* )
3508            coin_opt_fflags='-MT -O3'
3509            coin_add_fflags='-fpp -nologo'
3510            coin_dbg_fflags='-MTd -debug'
3511          ;;
3512          compile_f2c*)
3513            coin_opt_fflags='-MT -O2'
3514            coin_add_fflags='-nologo -wd4996'
3515            coin_dbg_fflags='-MTd'
3516          ;;
3517        esac
3518        ;;
3519      *-linux-*)
3520        case $F77 in
3521          ifc* | */ifc* | ifort* | */ifort*)
3522            coin_opt_fflags="-O3 -ip"
3523            coin_add_fflags="-cm -w90 -w95"
3524            coin_dbg_fflags="-g -CA -CB -CS"
3525            # Check if -i_dynamic is necessary (for new glibc library)
3526            FFLAGS=
3527            cat >conftest.$ac_ext <<_ACEOF
3528      program main
3529      write(*,*) 'Hello world'
3530      end
3531_ACEOF
3532rm -f conftest.$ac_objext conftest$ac_exeext
3533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3534  (eval $ac_link) 2>conftest.er1
3535  ac_status=$?
3536  grep -v '^ *+' conftest.er1 >conftest.err
3537  rm -f conftest.er1
3538  cat conftest.err >&5
3539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); } &&
3541         { ac_try='test -z "$ac_f77_werror_flag"
3542                         || test ! -s conftest.err'
3543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544  (eval $ac_try) 2>&5
3545  ac_status=$?
3546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); }; } &&
3548         { ac_try='test -s conftest$ac_exeext'
3549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550  (eval $ac_try) 2>&5
3551  ac_status=$?
3552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553  (exit $ac_status); }; }; then
3554  :
3555else
3556  echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559coin_add_fflags="-i_dynamic $coin_add_fflags"
3560fi
3561rm -f conftest.err conftest.$ac_objext \
3562      conftest$ac_exeext conftest.$ac_ext
3563            ;;
3564          pgf77* | */pgf77* | pgf90* | */pgf90*)
3565            coin_opt_fflags="-fast"
3566            coin_add_fflags="-Kieee -pc 64"
3567            coin_dbg_fflags="-g"
3568          ;;
3569        esac
3570        ;;
3571      *-ibm-*)
3572        case "$F77" in
3573          xlf* | */xlf* | mpxlf* | */mpxlf* )
3574            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3575            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3576            coin_dbg_fflags="-g -C"
3577            ;;
3578        esac
3579        ;;
3580      *-hp-*)
3581        coin_opt_fflags="+O3"
3582        coin_add_fflags="+U77"
3583        coin_dbg_fflags="-C -g"
3584        ;;
3585      *-*-solaris*)
3586        coin_opt_fflags="-O4"
3587        coin_dbg_fflags="-g"
3588        ;;
3589      *-sgi-*)
3590        coin_opt_fflags="-O5 -OPT:Olimit=0"
3591        coin_dbg_fflags="-g"
3592        ;;
3593    esac
3594  fi
3595
3596  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3597    coin_dbg_fflags="-g"
3598  fi
3599
3600  if test -z "$coin_opt_fflags"; then
3601    # Try if -O option works if nothing else is set
3602    FFLAGS=-O
3603    cat >conftest.$ac_ext <<_ACEOF
3604      program main
3605      integer i
3606      end
3607_ACEOF
3608rm -f conftest.$ac_objext conftest$ac_exeext
3609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3610  (eval $ac_link) 2>conftest.er1
3611  ac_status=$?
3612  grep -v '^ *+' conftest.er1 >conftest.err
3613  rm -f conftest.er1
3614  cat conftest.err >&5
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); } &&
3617         { ac_try='test -z "$ac_f77_werror_flag"
3618                         || test ! -s conftest.err'
3619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620  (eval $ac_try) 2>&5
3621  ac_status=$?
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); }; } &&
3624         { ac_try='test -s conftest$ac_exeext'
3625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626  (eval $ac_try) 2>&5
3627  ac_status=$?
3628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629  (exit $ac_status); }; }; then
3630  coin_opt_fflags="-O"
3631else
3632  echo "$as_me: failed program was:" >&5
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
3635fi
3636rm -f conftest.err conftest.$ac_objext \
3637      conftest$ac_exeext conftest.$ac_ext
3638  fi
3639
3640  # if PM doesn't want the warning messages, take them out
3641  if test x"$coin_skip_warn_fflags" = xyes; then
3642    coin_warn_fflags=
3643  fi
3644
3645  if test x${DBG_FFLAGS+set} != xset; then
3646    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3647  fi
3648  if test x${OPT_FFLAGS+set} != xset; then
3649    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3650  fi
3651
3652  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3653  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3654
3655  if test "$coin_debug_compile" = "true"; then
3656    FFLAGS="$DBG_FFLAGS"
3657  else
3658    FFLAGS="$OPT_FFLAGS"
3659  fi
3660else
3661  FFLAGS="$FFLAGS $ADD_FFLAGS"
3662  if test x${DBG_FFLAGS+set} != xset; then
3663    DBG_FFLAGS="$FFLAGS"
3664  fi
3665  if test x${OPT_FFLAGS+set} != xset; then
3666    OPT_FFLAGS="$FFLAGS"
3667  fi
3668fi
3669
3670# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3671case "$FFLAGS" in
3672  *-mno-cygwin*)
3673    if test x${CPPFLAGS+set} != xset ; then
3674      CPPFLAGS="-mno-cygwin"
3675    else
3676      case "$CPPFLAGS" in
3677        *-mno-cygwin*)
3678          ;;
3679        *)
3680          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3681          ;;
3682      esac
3683    fi ;;
3684esac
3685
3686# Try if FFLAGS works
3687if test "$F77" != "unavailable" ; then
3688  cat >conftest.$ac_ext <<_ACEOF
3689      program main
3690      integer i
3691      end
3692_ACEOF
3693rm -f conftest.$ac_objext conftest$ac_exeext
3694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3695  (eval $ac_link) 2>conftest.er1
3696  ac_status=$?
3697  grep -v '^ *+' conftest.er1 >conftest.err
3698  rm -f conftest.er1
3699  cat conftest.err >&5
3700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701  (exit $ac_status); } &&
3702         { ac_try='test -z "$ac_f77_werror_flag"
3703                         || test ! -s conftest.err'
3704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705  (eval $ac_try) 2>&5
3706  ac_status=$?
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); }; } &&
3709         { ac_try='test -s conftest$ac_exeext'
3710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711  (eval $ac_try) 2>&5
3712  ac_status=$?
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); }; }; then
3715  :
3716else
3717  echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720FFLAGS=
3721fi
3722rm -f conftest.err conftest.$ac_objext \
3723      conftest$ac_exeext conftest.$ac_ext
3724  if test -z "$FFLAGS"; then
3725    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
3726echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
3727    FFLAGS='-O'
3728    cat >conftest.$ac_ext <<_ACEOF
3729      program main
3730      integer i
3731      end
3732_ACEOF
3733rm -f conftest.$ac_objext conftest$ac_exeext
3734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3735  (eval $ac_link) 2>conftest.er1
3736  ac_status=$?
3737  grep -v '^ *+' conftest.er1 >conftest.err
3738  rm -f conftest.er1
3739  cat conftest.err >&5
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); } &&
3742         { ac_try='test -z "$ac_f77_werror_flag"
3743                         || test ! -s conftest.err'
3744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745  (eval $ac_try) 2>&5
3746  ac_status=$?
3747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748  (exit $ac_status); }; } &&
3749         { ac_try='test -s conftest$ac_exeext'
3750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751  (eval $ac_try) 2>&5
3752  ac_status=$?
3753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754  (exit $ac_status); }; }; then
3755  :
3756else
3757  echo "$as_me: failed program was:" >&5
3758sed 's/^/| /' conftest.$ac_ext >&5
3759
3760FFLAGS=
3761fi
3762rm -f conftest.err conftest.$ac_objext \
3763      conftest$ac_exeext conftest.$ac_ext
3764    if test -z "$FFLAGS"; then
3765      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
3766echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
3767    fi
3768  fi
3769fi
3770
3771{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3772echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3773
3774
3775if test x"$MPIF77" = x; then :; else
3776  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3777echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3778  F77="$MPIF77"
3779fi
3780
3781case "$F77" in
3782  ifort* | */ifort* | IFORT* | */IFORT*)
3783    case $build in
3784  *-mingw*)
3785    if test "${LD+set}" = set; then :; else
3786      LD=link
3787    fi
3788    ;;
3789 esac
3790 case $enable_doscompile in
3791   msvc)
3792     if test "x${LD+set}" = xset; then :; else
3793       LD=link
3794     fi
3795     ;;
3796 esac
3797
3798    ;;
3799esac
3800
3801ac_ext=c
3802ac_cpp='$CPP $CPPFLAGS'
3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807
3808
3809# Find out how to call Fortran from C and determine Fortran runtime libraries
3810ac_ext=f
3811ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3812ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3814echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3815echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3816if test "${ac_cv_prog_f77_v+set}" = set; then
3817  echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819  cat >conftest.$ac_ext <<_ACEOF
3820      program main
3821
3822      end
3823_ACEOF
3824rm -f conftest.$ac_objext
3825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826  (eval $ac_compile) 2>conftest.er1
3827  ac_status=$?
3828  grep -v '^ *+' conftest.er1 >conftest.err
3829  rm -f conftest.er1
3830  cat conftest.err >&5
3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); } &&
3833         { ac_try='test -z "$ac_f77_werror_flag"
3834                         || test ! -s conftest.err'
3835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836  (eval $ac_try) 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }; } &&
3840         { ac_try='test -s conftest.$ac_objext'
3841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842  (eval $ac_try) 2>&5
3843  ac_status=$?
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); }; }; then
3846  ac_cv_prog_f77_v=
3847# Try some options frequently used verbose output
3848for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3849  cat >conftest.$ac_ext <<_ACEOF
3850      program main
3851
3852      end
3853_ACEOF
3854
3855# Compile and link our simple test program by passing a flag (argument
3856# 1 to this macro) to the Fortran compiler in order to get
3857# "verbose" output that we can then parse for the Fortran linker
3858# flags.
3859ac_save_FFLAGS=$FFLAGS
3860FFLAGS="$FFLAGS $ac_verb"
3861(eval echo $as_me:3861: \"$ac_link\") >&5
3862ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3863echo "$ac_f77_v_output" >&5
3864FFLAGS=$ac_save_FFLAGS
3865
3866rm -f conftest*
3867
3868# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3869# /foo, /bar, and /baz are search directories for the Fortran linker.
3870# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3871ac_f77_v_output="`echo $ac_f77_v_output |
3872        grep 'LPATH is:' |
3873        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3874
3875case $ac_f77_v_output in
3876  # If we are using xlf then replace all the commas with spaces.
3877  *xlfentry*)
3878    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3879
3880  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3881  # $LIBS confuse us, and the libraries appear later in the output anyway).
3882  *mGLOB_options_string*)
3883    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3884
3885  # If we are using Cray Fortran then delete quotes.
3886  # Use "\"" instead of '"' for font-lock-mode.
3887  # FIXME: a more general fix for quoted arguments with spaces?
3888  *cft90*)
3889    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3890esac
3891
3892
3893  # look for -l* and *.a constructs in the output
3894  for ac_arg in $ac_f77_v_output; do
3895     case $ac_arg in
3896        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3897          ac_cv_prog_f77_v=$ac_verb
3898          break 2 ;;
3899     esac
3900  done
3901done
3902if test -z "$ac_cv_prog_f77_v"; then
3903   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3904echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3905fi
3906else
3907  echo "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
3910{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3911echo "$as_me: WARNING: compilation failed" >&2;}
3912fi
3913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3914
3915fi
3916echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3917echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3918echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3919echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3920if test "${ac_cv_f77_libs+set}" = set; then
3921  echo $ECHO_N "(cached) $ECHO_C" >&6
3922else
3923  if test "x$FLIBS" != "x"; then
3924  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3925else
3926
3927cat >conftest.$ac_ext <<_ACEOF
3928      program main
3929
3930      end
3931_ACEOF
3932
3933# Compile and link our simple test program by passing a flag (argument
3934# 1 to this macro) to the Fortran compiler in order to get
3935# "verbose" output that we can then parse for the Fortran linker
3936# flags.
3937ac_save_FFLAGS=$FFLAGS
3938FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3939(eval echo $as_me:3939: \"$ac_link\") >&5
3940ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3941echo "$ac_f77_v_output" >&5
3942FFLAGS=$ac_save_FFLAGS
3943
3944rm -f conftest*
3945
3946# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3947# /foo, /bar, and /baz are search directories for the Fortran linker.
3948# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3949ac_f77_v_output="`echo $ac_f77_v_output |
3950        grep 'LPATH is:' |
3951        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3952
3953case $ac_f77_v_output in
3954  # If we are using xlf then replace all the commas with spaces.
3955  *xlfentry*)
3956    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3957
3958  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3959  # $LIBS confuse us, and the libraries appear later in the output anyway).
3960  *mGLOB_options_string*)
3961    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3962
3963  # If we are using Cray Fortran then delete quotes.
3964  # Use "\"" instead of '"' for font-lock-mode.
3965  # FIXME: a more general fix for quoted arguments with spaces?
3966  *cft90*)
3967    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3968esac
3969
3970
3971
3972ac_cv_f77_libs=
3973
3974# Save positional arguments (if any)
3975ac_save_positional="$@"
3976
3977set X $ac_f77_v_output
3978while test $# != 1; do
3979  shift
3980  ac_arg=$1
3981  case $ac_arg in
3982        [\\/]*.a | ?:[\\/]*.a)
3983            ac_exists=false
3984  for ac_i in $ac_cv_f77_libs; do
3985    if test x"$ac_arg" = x"$ac_i"; then
3986      ac_exists=true
3987      break
3988    fi
3989  done
3990
3991  if test x"$ac_exists" = xtrue; then
3992  :
3993else
3994  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3995fi
3996
3997          ;;
3998        -bI:*)
3999            ac_exists=false
4000  for ac_i in $ac_cv_f77_libs; do
4001    if test x"$ac_arg" = x"$ac_i"; then
4002      ac_exists=true
4003      break
4004    fi
4005  done
4006
4007  if test x"$ac_exists" = xtrue; then
4008  :
4009else
4010  if test "$ac_compiler_gnu" = yes; then
4011  for ac_link_opt in $ac_arg; do
4012    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4013  done
4014else
4015  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4016fi
4017fi
4018
4019          ;;
4020          # Ignore these flags.
4021        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4022          ;;
4023        -lkernel32)
4024          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4025          ;;
4026        -[LRuY])
4027          # These flags, when seen by themselves, take an argument.
4028          # We remove the space between option and argument and re-iterate
4029          # unless we find an empty arg or a new option (starting with -)
4030          case $2 in
4031             "" | -*);;
4032             *)
4033                ac_arg="$ac_arg$2"
4034                shift; shift
4035                set X $ac_arg "$@"
4036                ;;
4037          esac
4038          ;;
4039        -YP,*)
4040          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4041              ac_exists=false
4042  for ac_i in $ac_cv_f77_libs; do
4043    if test x"$ac_j" = x"$ac_i"; then
4044      ac_exists=true
4045      break
4046    fi
4047  done
4048
4049  if test x"$ac_exists" = xtrue; then
4050  :
4051else
4052  ac_arg="$ac_arg $ac_j"
4053                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4054fi
4055
4056          done
4057          ;;
4058        -[lLR]*)
4059            ac_exists=false
4060  for ac_i in $ac_cv_f77_libs; do
4061    if test x"$ac_arg" = x"$ac_i"; then
4062      ac_exists=true
4063      break
4064    fi
4065  done
4066
4067  if test x"$ac_exists" = xtrue; then
4068  :
4069else
4070  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4071fi
4072
4073          ;;
4074          # Ignore everything else.
4075  esac
4076done
4077# restore positional arguments
4078set X $ac_save_positional; shift
4079
4080# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4081# then we insist that the "run path" must be an absolute path (i.e. it
4082# must begin with a "/").
4083case `(uname -sr) 2>/dev/null` in
4084   "SunOS 5"*)
4085      ac_ld_run_path=`echo $ac_f77_v_output |
4086                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4087      test "x$ac_ld_run_path" != x &&
4088        if test "$ac_compiler_gnu" = yes; then
4089  for ac_link_opt in $ac_ld_run_path; do
4090    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4091  done
4092else
4093  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4094fi
4095      ;;
4096esac
4097fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4098
4099fi
4100echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4101echo "${ECHO_T}$ac_cv_f77_libs" >&6
4102FLIBS="$ac_cv_f77_libs"
4103
4104
4105ac_ext=f
4106ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4107ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4109
4110ac_ext=f
4111ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4112ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4114
4115echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4116echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4117if test "${ac_cv_f77_dummy_main+set}" = set; then
4118  echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120  ac_f77_dm_save_LIBS=$LIBS
4121 LIBS="$LIBS $FLIBS"
4122 ac_fortran_dm_var=F77_DUMMY_MAIN
4123 ac_ext=c
4124ac_cpp='$CPP $CPPFLAGS'
4125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128
4129 # First, try linking without a dummy main:
4130 cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h.  */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h.  */
4136
4137#ifdef F77_DUMMY_MAIN
4138
4139#  ifdef __cplusplus
4140     extern "C"
4141#  endif
4142   int F77_DUMMY_MAIN() { return 1; }
4143
4144#endif
4145int
4146main ()
4147{
4148
4149  ;
4150  return 0;
4151}
4152_ACEOF
4153rm -f conftest.$ac_objext conftest$ac_exeext
4154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4155  (eval $ac_link) 2>conftest.er1
4156  ac_status=$?
4157  grep -v '^ *+' conftest.er1 >conftest.err
4158  rm -f conftest.er1
4159  cat conftest.err >&5
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); } &&
4162         { ac_try='test -z "$ac_c_werror_flag"
4163                         || test ! -s conftest.err'
4164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165  (eval $ac_try) 2>&5
4166  ac_status=$?
4167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168  (exit $ac_status); }; } &&
4169         { ac_try='test -s conftest$ac_exeext'
4170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171  (eval $ac_try) 2>&5
4172  ac_status=$?
4173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174  (exit $ac_status); }; }; then
4175  ac_cv_fortran_dummy_main=none
4176else
4177  echo "$as_me: failed program was:" >&5
4178sed 's/^/| /' conftest.$ac_ext >&5
4179
4180ac_cv_fortran_dummy_main=unknown
4181fi
4182rm -f conftest.err conftest.$ac_objext \
4183      conftest$ac_exeext conftest.$ac_ext
4184
4185 if test $ac_cv_fortran_dummy_main = unknown; then
4186   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4187     cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h.  */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h.  */
4193#define $ac_fortran_dm_var $ac_func
4194#ifdef F77_DUMMY_MAIN
4195
4196#  ifdef __cplusplus
4197     extern "C"
4198#  endif
4199   int F77_DUMMY_MAIN() { return 1; }
4200
4201#endif
4202int
4203main ()
4204{
4205
4206  ;
4207  return 0;
4208}
4209_ACEOF
4210rm -f conftest.$ac_objext conftest$ac_exeext
4211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212  (eval $ac_link) 2>conftest.er1
4213  ac_status=$?
4214  grep -v '^ *+' conftest.er1 >conftest.err
4215  rm -f conftest.er1
4216  cat conftest.err >&5
4217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218  (exit $ac_status); } &&
4219         { ac_try='test -z "$ac_c_werror_flag"
4220                         || test ! -s conftest.err'
4221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222  (eval $ac_try) 2>&5
4223  ac_status=$?
4224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225  (exit $ac_status); }; } &&
4226         { ac_try='test -s conftest$ac_exeext'
4227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228  (eval $ac_try) 2>&5
4229  ac_status=$?
4230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231  (exit $ac_status); }; }; then
4232  ac_cv_fortran_dummy_main=$ac_func; break
4233else
4234  echo "$as_me: failed program was:" >&5
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
4237fi
4238rm -f conftest.err conftest.$ac_objext \
4239      conftest$ac_exeext conftest.$ac_ext
4240   done
4241 fi
4242 ac_ext=f
4243ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4244ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4246 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4247 rm -f conftest*
4248 LIBS=$ac_f77_dm_save_LIBS
4249
4250fi
4251echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4252echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4253F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4254if test "$F77_DUMMY_MAIN" != unknown; then
4255  if test $F77_DUMMY_MAIN != none; then
4256
4257cat >>confdefs.h <<_ACEOF
4258#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4259_ACEOF
4260
4261  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4262
4263cat >>confdefs.h <<\_ACEOF
4264#define FC_DUMMY_MAIN_EQ_F77 1
4265_ACEOF
4266
4267  fi
4268fi
4269else
4270  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4271See \`config.log' for more details." >&5
4272echo "$as_me: error: linking to Fortran libraries from C fails
4273See \`config.log' for more details." >&2;}
4274   { (exit 1); exit 1; }; }
4275fi
4276
4277
4278ac_ext=f
4279ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4280ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4282
4283ac_ext=f
4284ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4285ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4287echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4288echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4289if test "${ac_cv_f77_mangling+set}" = set; then
4290  echo $ECHO_N "(cached) $ECHO_C" >&6
4291else
4292  cat >conftest.$ac_ext <<_ACEOF
4293      subroutine foobar()
4294      return
4295      end
4296      subroutine foo_bar()
4297      return
4298      end
4299_ACEOF
4300rm -f conftest.$ac_objext
4301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302  (eval $ac_compile) 2>conftest.er1
4303  ac_status=$?
4304  grep -v '^ *+' conftest.er1 >conftest.err
4305  rm -f conftest.er1
4306  cat conftest.err >&5
4307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308  (exit $ac_status); } &&
4309         { ac_try='test -z "$ac_f77_werror_flag"
4310                         || test ! -s conftest.err'
4311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312  (eval $ac_try) 2>&5
4313  ac_status=$?
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); }; } &&
4316         { ac_try='test -s conftest.$ac_objext'
4317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318  (eval $ac_try) 2>&5
4319  ac_status=$?
4320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321  (exit $ac_status); }; }; then
4322  mv conftest.$ac_objext cfortran_test.$ac_objext
4323
4324  ac_save_LIBS=$LIBS
4325  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4326
4327  ac_ext=c
4328ac_cpp='$CPP $CPPFLAGS'
4329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332  ac_success=no
4333  for ac_foobar in foobar FOOBAR; do
4334    for ac_underscore in "" "_"; do
4335      ac_func="$ac_foobar$ac_underscore"
4336      cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h.  */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h.  */
4342
4343/* Override any gcc2 internal prototype to avoid an error.  */
4344#ifdef __cplusplus
4345extern "C"
4346#endif
4347/* We use char because int might match the return type of a gcc2
4348   builtin and then its argument prototype would still apply.  */
4349char $ac_func ();
4350#ifdef F77_DUMMY_MAIN
4351
4352#  ifdef __cplusplus
4353     extern "C"
4354#  endif
4355   int F77_DUMMY_MAIN() { return 1; }
4356
4357#endif
4358int
4359main ()
4360{
4361$ac_func ();
4362  ;
4363  return 0;
4364}
4365_ACEOF
4366rm -f conftest.$ac_objext conftest$ac_exeext
4367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4368  (eval $ac_link) 2>conftest.er1
4369  ac_status=$?
4370  grep -v '^ *+' conftest.er1 >conftest.err
4371  rm -f conftest.er1
4372  cat conftest.err >&5
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); } &&
4375         { ac_try='test -z "$ac_c_werror_flag"
4376                         || test ! -s conftest.err'
4377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378  (eval $ac_try) 2>&5
4379  ac_status=$?
4380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381  (exit $ac_status); }; } &&
4382         { ac_try='test -s conftest$ac_exeext'
4383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384  (eval $ac_try) 2>&5
4385  ac_status=$?
4386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387  (exit $ac_status); }; }; then
4388  ac_success=yes; break 2
4389else
4390  echo "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393fi
4394rm -f conftest.err conftest.$ac_objext \
4395      conftest$ac_exeext conftest.$ac_ext
4396    done
4397  done
4398  ac_ext=f
4399ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4400ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4402
4403  if test "$ac_success" = "yes"; then
4404     case $ac_foobar in
4405        foobar)
4406           ac_case=lower
4407           ac_foo_bar=foo_bar
4408           ;;
4409        FOOBAR)
4410           ac_case=upper
4411           ac_foo_bar=FOO_BAR
4412           ;;
4413     esac
4414
4415     ac_ext=c
4416ac_cpp='$CPP $CPPFLAGS'
4417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420     ac_success_extra=no
4421     for ac_extra in "" "_"; do
4422        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4423        cat >conftest.$ac_ext <<_ACEOF
4424/* confdefs.h.  */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h.  */
4429
4430/* Override any gcc2 internal prototype to avoid an error.  */
4431#ifdef __cplusplus
4432extern "C"
4433#endif
4434/* We use char because int might match the return type of a gcc2
4435   builtin and then its argument prototype would still apply.  */
4436char $ac_func ();
4437#ifdef F77_DUMMY_MAIN
4438
4439#  ifdef __cplusplus
4440     extern "C"
4441#  endif
4442   int F77_DUMMY_MAIN() { return 1; }
4443
4444#endif
4445int
4446main ()
4447{
4448$ac_func ();
4449  ;
4450  return 0;
4451}
4452_ACEOF
4453rm -f conftest.$ac_objext conftest$ac_exeext
4454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455  (eval $ac_link) 2>conftest.er1
4456  ac_status=$?
4457  grep -v '^ *+' conftest.er1 >conftest.err
4458  rm -f conftest.er1
4459  cat conftest.err >&5
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); } &&
4462         { ac_try='test -z "$ac_c_werror_flag"
4463                         || test ! -s conftest.err'
4464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465  (eval $ac_try) 2>&5
4466  ac_status=$?
4467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468  (exit $ac_status); }; } &&
4469         { ac_try='test -s conftest$ac_exeext'
4470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471  (eval $ac_try) 2>&5
4472  ac_status=$?
4473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474  (exit $ac_status); }; }; then
4475  ac_success_extra=yes; break
4476else
4477  echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480fi
4481rm -f conftest.err conftest.$ac_objext \
4482      conftest$ac_exeext conftest.$ac_ext
4483     done
4484     ac_ext=f
4485ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4486ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4488
4489     if test "$ac_success_extra" = "yes"; then
4490        ac_cv_f77_mangling="$ac_case case"
4491        if test -z "$ac_underscore"; then
4492           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4493        else
4494           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4495        fi
4496        if test -z "$ac_extra"; then
4497           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4498        else
4499           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4500        fi
4501      else
4502        ac_cv_f77_mangling="unknown"
4503      fi
4504  else
4505     ac_cv_f77_mangling="unknown"
4506  fi
4507
4508  LIBS=$ac_save_LIBS
4509  rm -f cfortran_test* conftest*
4510else
4511  echo "$as_me: failed program was:" >&5
4512sed 's/^/| /' conftest.$ac_ext >&5
4513
4514{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4515See \`config.log' for more details." >&5
4516echo "$as_me: error: cannot compile a simple Fortran program
4517See \`config.log' for more details." >&2;}
4518   { (exit 1); exit 1; }; }
4519fi
4520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4521
4522fi
4523echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4524echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4525
4526ac_ext=f
4527ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4528ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4530
4531
4532ac_ext=f
4533ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4534ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4536
4537
4538save_FLIBS="$FLIBS"
4539
4540ac_ext=f
4541ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4542ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4544
4545
4546case $ac_cv_f77_mangling in
4547  "lower case, no underscore, no extra underscore")
4548          cat >>confdefs.h <<\_ACEOF
4549#define F77_FUNC(name,NAME) name
4550_ACEOF
4551
4552          cat >>confdefs.h <<\_ACEOF
4553#define F77_FUNC_(name,NAME) name
4554_ACEOF
4555 ;;
4556  "lower case, no underscore, extra underscore")
4557          cat >>confdefs.h <<\_ACEOF
4558#define F77_FUNC(name,NAME) name
4559_ACEOF
4560
4561          cat >>confdefs.h <<\_ACEOF
4562#define F77_FUNC_(name,NAME) name ## _
4563_ACEOF
4564 ;;
4565  "lower case, underscore, no extra underscore")
4566          cat >>confdefs.h <<\_ACEOF
4567#define F77_FUNC(name,NAME) name ## _
4568_ACEOF
4569
4570          cat >>confdefs.h <<\_ACEOF
4571#define F77_FUNC_(name,NAME) name ## _
4572_ACEOF
4573 ;;
4574  "lower case, underscore, extra underscore")
4575          cat >>confdefs.h <<\_ACEOF
4576#define F77_FUNC(name,NAME) name ## _
4577_ACEOF
4578
4579          cat >>confdefs.h <<\_ACEOF
4580#define F77_FUNC_(name,NAME) name ## __
4581_ACEOF
4582 ;;
4583  "upper case, no underscore, no extra underscore")
4584          cat >>confdefs.h <<\_ACEOF
4585#define F77_FUNC(name,NAME) NAME
4586_ACEOF
4587
4588          cat >>confdefs.h <<\_ACEOF
4589#define F77_FUNC_(name,NAME) NAME
4590_ACEOF
4591 ;;
4592  "upper case, no underscore, extra underscore")
4593          cat >>confdefs.h <<\_ACEOF
4594#define F77_FUNC(name,NAME) NAME
4595_ACEOF
4596
4597          cat >>confdefs.h <<\_ACEOF
4598#define F77_FUNC_(name,NAME) NAME ## _
4599_ACEOF
4600 ;;
4601  "upper case, underscore, no extra underscore")
4602          cat >>confdefs.h <<\_ACEOF
4603#define F77_FUNC(name,NAME) NAME ## _
4604_ACEOF
4605
4606          cat >>confdefs.h <<\_ACEOF
4607#define F77_FUNC_(name,NAME) NAME ## _
4608_ACEOF
4609 ;;
4610  "upper case, underscore, extra underscore")
4611          cat >>confdefs.h <<\_ACEOF
4612#define F77_FUNC(name,NAME) NAME ## _
4613_ACEOF
4614
4615          cat >>confdefs.h <<\_ACEOF
4616#define F77_FUNC_(name,NAME) NAME ## __
4617_ACEOF
4618 ;;
4619  *)
4620          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4621echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4622          ;;
4623esac
4624
4625ac_ext=f
4626ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4627ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4629
4630
4631if test x"$save_FLIBS" != x; then
4632  FLIBS="$save_FLIBS"
4633else
4634  # This is to correct a missing exclusion in autoconf 2.59
4635  if test x"$FLIBS" != x; then
4636    my_flibs=
4637    for flag in $FLIBS; do
4638      case $flag in
4639        -lcrt*.o) ;;
4640               *) my_flibs="$my_flibs $flag" ;;
4641      esac
4642    done
4643    FLIBS="$my_flibs"
4644  fi
4645
4646  case $build in
4647  # The following is a fix to define FLIBS for ifort on Windows
4648  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4649  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4650  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4651     *-cygwin* | *-mingw*)
4652       case "$F77" in
4653         ifort* | */ifort* | IFORT* | */IFORT*)
4654           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4655#           if "$coin_debug_compile" = true ; then
4656#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4657#           else
4658#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4659#           fi
4660           ;;
4661         compile_f2c*)
4662           FLIBS=`$F77 -FLIBS` ;;
4663       esac;;
4664     *-hp-*)
4665         FLIBS="$FLIBS -lm";;
4666     *-ibm-*)
4667         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4668     *-linux-*)
4669       case "$F77" in
4670         pgf77* | */pgf77* | pgf90* | */pgf90*)
4671# ask linker to go through the archives multiple times
4672# (the Fortran compiler seems to do that automatically...
4673           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4674       esac
4675  esac
4676  ac_cv_f77_libs="$FLIBS"
4677fi
4678
4679ac_ext=c
4680ac_cpp='$CPP $CPPFLAGS'
4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684
4685
4686
4687
4688# We need to translate the result from autoconf to what MUMPS wants
4689case "$ac_cv_f77_mangling" in
4690  "lower case, no underscore, no extra underscore")
4691  ;;
4692  "lower case, underscore, no extra underscore")
4693  MY_DEFS="-DAdd_"
4694  ;;
4695  "lower case, no underscore, extra underscore")
4696  MY_DEFS="-DAdd_"
4697  ;;
4698  "lower case, underscore, extra underscore")
4699  MY_DEFS="-DAdd__"
4700  ;;
4701  "upper case, no underscore, no extra underscore")
4702  MY_DEFS="-DUPPER"
4703  ;;
4704  "upper case, no underscore, extra underscore")
4705  MY_DEFS="-DUPPER"
4706  ;;
4707  "upper case, underscore, no extra underscore")
4708  MY_DEFS="-DUPPER"
4709  ;;
4710  "upper case, underscore, extra underscore")
4711  MY_DEFS="-DUPPER"
4712  ;;
4713esac
4714MY_DEFS="$MY_DEFS -DALLOW_NON_INIT"
4715
4716
4717# Initialize automake
4718{
4719
4720
4721
4722# START
4723
4724# Test if force_shared has been set
4725if test "x" = xforce_shared; then
4726  if test x$enable_shared = xno; then
4727    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4728echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4729   { (exit 1); exit 1; }; }
4730  fi
4731  enable_shared=yes;
4732else
4733  # On Cygwin and AIX, building DLLs doesn't work
4734  case $build in
4735    *-cygwin*)
4736      coin_disable_shared=yes
4737      platform=Cygwin
4738    ;;
4739    *-aix*)
4740      coin_disable_shared=yes
4741      platform=AIX
4742    ;;
4743    *-mingw*)
4744      coin_disable_shared=yes
4745      platform="Msys"
4746#      case "$CXX" in
4747#        cl*)
4748#          coin_disable_shared=yes
4749#          platform="Msys with cl"
4750#      ;;
4751#      esac
4752    ;;
4753  esac
4754fi
4755if test x"$coin_disable_shared" = xyes; then
4756  if test x"$enable_shared" = xyes; then
4757    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4758echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4759  fi
4760  enable_shared=no
4761fi
4762# By default, we only want the shared objects to be compiled
4763# Check whether --enable-static or --disable-static was given.
4764if test "${enable_static+set}" = set; then
4765  enableval="$enable_static"
4766  p=${PACKAGE-default}
4767    case $enableval in
4768    yes) enable_static=yes ;;
4769    no) enable_static=no ;;
4770    *)
4771     enable_static=no
4772      # Look at the argument we got.  We use all the common list separators.
4773      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4774      for pkg in $enableval; do
4775        IFS="$lt_save_ifs"
4776        if test "X$pkg" = "X$p"; then
4777          enable_static=yes
4778        fi
4779      done
4780      IFS="$lt_save_ifs"
4781      ;;
4782    esac
4783else
4784  enable_static=no
4785fi;
4786
4787
4788
4789
4790# Initialize automake
4791echo "$as_me:$LINENO: checking for egrep" >&5
4792echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4793if test "${ac_cv_prog_egrep+set}" = set; then
4794  echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4797    then ac_cv_prog_egrep='grep -E'
4798    else ac_cv_prog_egrep='egrep'
4799    fi
4800fi
4801echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4802echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4803 EGREP=$ac_cv_prog_egrep
4804
4805
4806am__api_version="1.9"
4807# Find a good install program.  We prefer a C program (faster),
4808# so one script is as good as another.  But avoid the broken or
4809# incompatible versions:
4810# SysV /etc/install, /usr/sbin/install
4811# SunOS /usr/etc/install
4812# IRIX /sbin/install
4813# AIX /bin/install
4814# AmigaOS /C/install, which installs bootblocks on floppy discs
4815# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4816# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4817# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4818# OS/2's system install, which has a completely different semantic
4819# ./install, which can be erroneously created by make from ./install.sh.
4820echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4821echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4822if test -z "$INSTALL"; then
4823if test "${ac_cv_path_install+set}" = set; then
4824  echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
4826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829  IFS=$as_save_IFS
4830  test -z "$as_dir" && as_dir=.
4831  # Account for people who put trailing slashes in PATH elements.
4832case $as_dir/ in
4833  ./ | .// | /cC/* | \
4834  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4835  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4836  /usr/ucb/* ) ;;
4837  *)
4838    # OSF1 and SCO ODT 3.0 have their own names for install.
4839    # Don't use installbsd from OSF since it installs stuff as root
4840    # by default.
4841    for ac_prog in ginstall scoinst install; do
4842      for ac_exec_ext in '' $ac_executable_extensions; do
4843        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4844          if test $ac_prog = install &&
4845            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4846            # AIX install.  It has an incompatible calling convention.
4847            :
4848          elif test $ac_prog = install &&
4849            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4850            # program-specific install script used by HP pwplus--don't use.
4851            :
4852          else
4853            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4854            break 3
4855          fi
4856        fi
4857      done
4858    done
4859    ;;
4860esac
4861done
4862
4863
4864fi
4865  if test "${ac_cv_path_install+set}" = set; then
4866    INSTALL=$ac_cv_path_install
4867  else
4868    # As a last resort, use the slow shell script.  We don't cache a
4869    # path for INSTALL within a source directory, because that will
4870    # break other packages using the cache if that directory is
4871    # removed, or if the path is relative.
4872    INSTALL=$ac_install_sh
4873  fi
4874fi
4875echo "$as_me:$LINENO: result: $INSTALL" >&5
4876echo "${ECHO_T}$INSTALL" >&6
4877
4878# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4879# It thinks the first close brace ends the variable substitution.
4880test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4881
4882test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4883
4884test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4885
4886echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4887echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4888# Just in case
4889sleep 1
4890echo timestamp > conftest.file
4891# Do `set' in a subshell so we don't clobber the current shell's
4892# arguments.  Must try -L first in case configure is actually a
4893# symlink; some systems play weird games with the mod time of symlinks
4894# (eg FreeBSD returns the mod time of the symlink's containing
4895# directory).
4896if (
4897   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4898   if test "$*" = "X"; then
4899      # -L didn't work.
4900      set X `ls -t $srcdir/configure conftest.file`
4901   fi
4902   rm -f conftest.file
4903   if test "$*" != "X $srcdir/configure conftest.file" \
4904      && test "$*" != "X conftest.file $srcdir/configure"; then
4905
4906      # If neither matched, then we have a broken ls.  This can happen
4907      # if, for instance, CONFIG_SHELL is bash and it inherits a
4908      # broken ls alias from the environment.  This has actually
4909      # happened.  Such a system could not be considered "sane".
4910      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4911alias in your environment" >&5
4912echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4913alias in your environment" >&2;}
4914   { (exit 1); exit 1; }; }
4915   fi
4916
4917   test "$2" = conftest.file
4918   )
4919then
4920   # Ok.
4921   :
4922else
4923   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4924Check your system clock" >&5
4925echo "$as_me: error: newly created file is older than distributed files!
4926Check your system clock" >&2;}
4927   { (exit 1); exit 1; }; }
4928fi
4929echo "$as_me:$LINENO: result: yes" >&5
4930echo "${ECHO_T}yes" >&6
4931test "$program_prefix" != NONE &&
4932  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4933# Use a double $ so make ignores it.
4934test "$program_suffix" != NONE &&
4935  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4936# Double any \ or $.  echo might interpret backslashes.
4937# By default was `s,x,x', remove it if useless.
4938cat <<\_ACEOF >conftest.sed
4939s/[\\$]/&&/g;s/;s,x,x,$//
4940_ACEOF
4941program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4942rm conftest.sed
4943
4944# expand $ac_aux_dir to an absolute path
4945am_aux_dir=`cd $ac_aux_dir && pwd`
4946
4947test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4948# Use eval to expand $SHELL
4949if eval "$MISSING --run true"; then
4950  am_missing_run="$MISSING --run "
4951else
4952  am_missing_run=
4953  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4954echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4955fi
4956
4957if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4958  # We used to keeping the `.' as first argument, in order to
4959  # allow $(mkdir_p) to be used without argument.  As in
4960  #   $(mkdir_p) $(somedir)
4961  # where $(somedir) is conditionally defined.  However this is wrong
4962  # for two reasons:
4963  #  1. if the package is installed by a user who cannot write `.'
4964  #     make install will fail,
4965  #  2. the above comment should most certainly read
4966  #     $(mkdir_p) $(DESTDIR)$(somedir)
4967  #     so it does not work when $(somedir) is undefined and
4968  #     $(DESTDIR) is not.
4969  #  To support the latter case, we have to write
4970  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4971  #  so the `.' trick is pointless.
4972  mkdir_p='mkdir -p --'
4973else
4974  # On NextStep and OpenStep, the `mkdir' command does not
4975  # recognize any option.  It will interpret all options as
4976  # directories to create, and then abort because `.' already
4977  # exists.
4978  for d in ./-p ./--version;
4979  do
4980    test -d $d && rmdir $d
4981  done
4982  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4983  if test -f "$ac_aux_dir/mkinstalldirs"; then
4984    mkdir_p='$(mkinstalldirs)'
4985  else
4986    mkdir_p='$(install_sh) -d'
4987  fi
4988fi
4989
4990for ac_prog in gawk mawk nawk awk
4991do
4992  # Extract the first word of "$ac_prog", so it can be a program name with args.
4993set dummy $ac_prog; ac_word=$2
4994echo "$as_me:$LINENO: checking for $ac_word" >&5
4995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4996if test "${ac_cv_prog_AWK+set}" = set; then
4997  echo $ECHO_N "(cached) $ECHO_C" >&6
4998else
4999  if test -n "$AWK"; then
5000  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5001else
5002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH
5004do
5005  IFS=$as_save_IFS
5006  test -z "$as_dir" && as_dir=.
5007  for ac_exec_ext in '' $ac_executable_extensions; do
5008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009    ac_cv_prog_AWK="$ac_prog"
5010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011    break 2
5012  fi
5013done
5014done
5015
5016fi
5017fi
5018AWK=$ac_cv_prog_AWK
5019if test -n "$AWK"; then
5020  echo "$as_me:$LINENO: result: $AWK" >&5
5021echo "${ECHO_T}$AWK" >&6
5022else
5023  echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6
5025fi
5026
5027  test -n "$AWK" && break
5028done
5029
5030echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5031echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5032set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5033if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5034  echo $ECHO_N "(cached) $ECHO_C" >&6
5035else
5036  cat >conftest.make <<\_ACEOF
5037all:
5038        @echo 'ac_maketemp="$(MAKE)"'
5039_ACEOF
5040# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5041eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5042if test -n "$ac_maketemp"; then
5043  eval ac_cv_prog_make_${ac_make}_set=yes
5044else
5045  eval ac_cv_prog_make_${ac_make}_set=no
5046fi
5047rm -f conftest.make
5048fi
5049if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5050  echo "$as_me:$LINENO: result: yes" >&5
5051echo "${ECHO_T}yes" >&6
5052  SET_MAKE=
5053else
5054  echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
5056  SET_MAKE="MAKE=${MAKE-make}"
5057fi
5058
5059rm -rf .tst 2>/dev/null
5060mkdir .tst 2>/dev/null
5061if test -d .tst; then
5062  am__leading_dot=.
5063else
5064  am__leading_dot=_
5065fi
5066rmdir .tst 2>/dev/null
5067
5068DEPDIR="${am__leading_dot}deps"
5069
5070          ac_config_commands="$ac_config_commands depfiles"
5071
5072
5073am_make=${MAKE-make}
5074cat > confinc << 'END'
5075am__doit:
5076        @echo done
5077.PHONY: am__doit
5078END
5079# If we don't find an include directive, just comment out the code.
5080echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5081echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5082am__include="#"
5083am__quote=
5084_am_result=none
5085# First try GNU make style include.
5086echo "include confinc" > confmf
5087# We grep out `Entering directory' and `Leaving directory'
5088# messages which can occur if `w' ends up in MAKEFLAGS.
5089# In particular we don't look at `^make:' because GNU make might
5090# be invoked under some other name (usually "gmake"), in which
5091# case it prints its new name instead of `make'.
5092if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5093   am__include=include
5094   am__quote=
5095   _am_result=GNU
5096fi
5097# Now try BSD make style include.
5098if test "$am__include" = "#"; then
5099   echo '.include "confinc"' > confmf
5100   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5101      am__include=.include
5102      am__quote="\""
5103      _am_result=BSD
5104   fi
5105fi
5106
5107
5108echo "$as_me:$LINENO: result: $_am_result" >&5
5109echo "${ECHO_T}$_am_result" >&6
5110rm -f confinc confmf
5111
5112# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5113if test "${enable_dependency_tracking+set}" = set; then
5114  enableval="$enable_dependency_tracking"
5115
5116fi;
5117if test "x$enable_dependency_tracking" != xno; then
5118  am_depcomp="$ac_aux_dir/depcomp"
5119  AMDEPBACKSLASH='\'
5120fi
5121
5122
5123if test "x$enable_dependency_tracking" != xno; then
5124  AMDEP_TRUE=
5125  AMDEP_FALSE='#'
5126else
5127  AMDEP_TRUE='#'
5128  AMDEP_FALSE=
5129fi
5130
5131
5132
5133
5134
5135# AC_MSG_NOTICE([Beginning automake initialisation.])
5136# Stuff for automake
5137# test to see if srcdir already configured
5138if test "`cd $srcdir && pwd`" != "`pwd`" &&
5139   test -f $srcdir/config.status; then
5140  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5141echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5142   { (exit 1); exit 1; }; }
5143fi
5144
5145# test whether we have cygpath
5146if test -z "$CYGPATH_W"; then
5147  if (cygpath --version) >/dev/null 2>/dev/null; then
5148    CYGPATH_W='cygpath -w'
5149  else
5150    CYGPATH_W=echo
5151  fi
5152fi
5153
5154
5155# Define the identity of the package.
5156 PACKAGE='thirdpartymumps'
5157 VERSION='1.1.1'
5158
5159
5160cat >>confdefs.h <<_ACEOF
5161#define PACKAGE "$PACKAGE"
5162_ACEOF
5163
5164
5165cat >>confdefs.h <<_ACEOF
5166#define VERSION "$VERSION"
5167_ACEOF
5168
5169# Some tools Automake needs.
5170
5171ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5172
5173
5174AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5175
5176
5177AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5178
5179
5180AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5181
5182
5183MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5184
5185install_sh=${install_sh-"$am_aux_dir/install-sh"}
5186
5187# Installed binaries are usually stripped using `strip' when the user
5188# run `make install-strip'.  However `strip' might not be the right
5189# tool to use in cross-compilation environments, therefore Automake
5190# will honor the `STRIP' environment variable to overrule this program.
5191if test "$cross_compiling" != no; then
5192  if test -n "$ac_tool_prefix"; then
5193  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5194set dummy ${ac_tool_prefix}strip; ac_word=$2
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_prog_STRIP+set}" = set; then
5198  echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200  if test -n "$STRIP"; then
5201  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206  IFS=$as_save_IFS
5207  test -z "$as_dir" && as_dir=.
5208  for ac_exec_ext in '' $ac_executable_extensions; do
5209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212    break 2
5213  fi
5214done
5215done
5216
5217fi
5218fi
5219STRIP=$ac_cv_prog_STRIP
5220if test -n "$STRIP"; then
5221  echo "$as_me:$LINENO: result: $STRIP" >&5
5222echo "${ECHO_T}$STRIP" >&6
5223else
5224  echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226fi
5227
5228fi
5229if test -z "$ac_cv_prog_STRIP"; then
5230  ac_ct_STRIP=$STRIP
5231  # Extract the first word of "strip", so it can be a program name with args.
5232set dummy strip; ac_word=$2
5233echo "$as_me:$LINENO: checking for $ac_word" >&5
5234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5236  echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238  if test -n "$ac_ct_STRIP"; then
5239  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246  for ac_exec_ext in '' $ac_executable_extensions; do
5247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248    ac_cv_prog_ac_ct_STRIP="strip"
5249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250    break 2
5251  fi
5252done
5253done
5254
5255  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5256fi
5257fi
5258ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5259if test -n "$ac_ct_STRIP"; then
5260  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5261echo "${ECHO_T}$ac_ct_STRIP" >&6
5262else
5263  echo "$as_me:$LINENO: result: no" >&5
5264echo "${ECHO_T}no" >&6
5265fi
5266
5267  STRIP=$ac_ct_STRIP
5268else
5269  STRIP="$ac_cv_prog_STRIP"
5270fi
5271
5272fi
5273INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5274
5275# We need awk for the "check" target.  The system "awk" is bad on
5276# some platforms.
5277# Always define AMTAR for backward compatibility.
5278
5279AMTAR=${AMTAR-"${am_missing_run}tar"}
5280
5281am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5282
5283
5284
5285
5286depcc="$CC"   am_compiler_list=
5287
5288echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5289echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5290if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5294  # We make a subdir and do the tests there.  Otherwise we can end up
5295  # making bogus files that we don't know about and never remove.  For
5296  # instance it was reported that on HP-UX the gcc test will end up
5297  # making a dummy file named `D' -- because `-MD' means `put the output
5298  # in D'.
5299  mkdir conftest.dir
5300  # Copy depcomp to subdir because otherwise we won't find it if we're
5301  # using a relative directory.
5302  cp "$am_depcomp" conftest.dir
5303  cd conftest.dir
5304  # We will build objects and dependencies in a subdirectory because
5305  # it helps to detect inapplicable dependency modes.  For instance
5306  # both Tru64's cc and ICC support -MD to output dependencies as a
5307  # side effect of compilation, but ICC will put the dependencies in
5308  # the current directory while Tru64 will put them in the object
5309  # directory.
5310  mkdir sub
5311
5312  am_cv_CC_dependencies_compiler_type=none
5313  if test "$am_compiler_list" = ""; then
5314     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5315  fi
5316  for depmode in $am_compiler_list; do
5317    # Setup a source with many dependencies, because some compilers
5318    # like to wrap large dependency lists on column 80 (with \), and
5319    # we should not choose a depcomp mode which is confused by this.
5320    #
5321    # We need to recreate these files for each test, as the compiler may
5322    # overwrite some of them when testing with obscure command lines.
5323    # This happens at least with the AIX C compiler.
5324    : > sub/conftest.c
5325    for i in 1 2 3 4 5 6; do
5326      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5327      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5328      # Solaris 8's {/usr,}/bin/sh.
5329      touch sub/conftst$i.h
5330    done
5331    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5332
5333    case $depmode in
5334    nosideeffect)
5335      # after this tag, mechanisms are not by side-effect, so they'll
5336      # only be used when explicitly requested
5337      if test "x$enable_dependency_tracking" = xyes; then
5338        continue
5339      else
5340        break
5341      fi
5342      ;;
5343    none) break ;;
5344    esac
5345    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5346    # mode.  It turns out that the SunPro C++ compiler does not properly
5347    # handle `-M -o', and we need to detect this.
5348    if depmode=$depmode \
5349       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5350       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5351       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5352         >/dev/null 2>conftest.err &&
5353       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5354       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5355       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5356      # icc doesn't choke on unknown options, it will just issue warnings
5357      # or remarks (even with -Werror).  So we grep stderr for any message
5358      # that says an option was ignored or not supported.
5359      # When given -MP, icc 7.0 and 7.1 complain thusly:
5360      #   icc: Command line warning: ignoring option '-M'; no argument required
5361      # The diagnosis changed in icc 8.0:
5362      #   icc: Command line remark: option '-MP' not supported
5363      if (grep 'ignoring option' conftest.err ||
5364          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5365        am_cv_CC_dependencies_compiler_type=$depmode
5366        break
5367      fi
5368    fi
5369  done
5370
5371  cd ..
5372  rm -rf conftest.dir
5373else
5374  am_cv_CC_dependencies_compiler_type=none
5375fi
5376
5377fi
5378echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5379echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5380CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5381
5382
5383
5384if
5385  test "x$enable_dependency_tracking" != xno \
5386  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5387  am__fastdepCC_TRUE=
5388  am__fastdepCC_FALSE='#'
5389else
5390  am__fastdepCC_TRUE='#'
5391  am__fastdepCC_FALSE=
5392fi
5393
5394
5395
5396echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5397echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5398    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5399if test "${enable_maintainer_mode+set}" = set; then
5400  enableval="$enable_maintainer_mode"
5401  USE_MAINTAINER_MODE=$enableval
5402else
5403  USE_MAINTAINER_MODE=no
5404fi;
5405  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5406echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5407
5408
5409if test $USE_MAINTAINER_MODE = yes; then
5410  MAINTAINER_MODE_TRUE=
5411  MAINTAINER_MODE_FALSE='#'
5412else
5413  MAINTAINER_MODE_TRUE='#'
5414  MAINTAINER_MODE_FALSE=
5415fi
5416
5417  MAINT=$MAINTAINER_MODE_TRUE
5418
5419
5420
5421coin_have_externals=no
5422if test "$enable_maintainer_mode" = yes; then
5423
5424  # If maintainer mode is chosen, we make sure that the correct versions
5425  # of the tools are used, and that we know where libtool.m4 is (to
5426  # recreate acinclude.m4)
5427
5428
5429  LIBTOOLM4=
5430  # Normally, $HOME
5431  AUTOTOOLS_DFLT=$HOME
5432
5433  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5434echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5435if test "${ac_cv_use_correct_autotools+set}" = set; then
5436  echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438  ac_cv_use_correct_autotools=check
5439fi
5440echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5441echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5442
5443  if test $ac_cv_use_correct_autotools = check; then
5444    ac_cv_use_correct_autotools=yes
5445    # Check if we have autoconf
5446    # Extract the first word of "autoconf", so it can be a program name with args.
5447set dummy autoconf; ac_word=$2
5448echo "$as_me:$LINENO: checking for $ac_word" >&5
5449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450if test "${ac_cv_prog_have_autoconf+set}" = set; then
5451  echo $ECHO_N "(cached) $ECHO_C" >&6
5452else
5453  if test -n "$have_autoconf"; then
5454  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5455else
5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH
5458do
5459  IFS=$as_save_IFS
5460  test -z "$as_dir" && as_dir=.
5461  for ac_exec_ext in '' $ac_executable_extensions; do
5462  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463    ac_cv_prog_have_autoconf="yes"
5464    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465    break 2
5466  fi
5467done
5468done
5469
5470  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5471fi
5472fi
5473have_autoconf=$ac_cv_prog_have_autoconf
5474if test -n "$have_autoconf"; then
5475  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5476echo "${ECHO_T}$have_autoconf" >&6
5477else
5478  echo "$as_me:$LINENO: result: no" >&5
5479echo "${ECHO_T}no" >&6
5480fi
5481
5482    if test $have_autoconf = no; then
5483      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5484echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5485   { (exit 1); exit 1; }; }
5486    fi
5487
5488    # Check whether autoconf is the correct version
5489    correct_version='2.59'
5490    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5491    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5492echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5493    autoconf --version > confauto.out 2>&1
5494    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5495      echo "$as_me:$LINENO: result: yes" >&5
5496echo "${ECHO_T}yes" >&6
5497    else
5498      rm -f confauto.out
5499      echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5502echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5503   { (exit 1); exit 1; }; }
5504    fi
5505    rm -f confauto.out
5506
5507    # Check if the executable autoconf is picked up from the correct location
5508    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5509echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5510    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5511    autoconf_dir=`cd $autoconf_dir; pwd`
5512    if test x$AUTOTOOLS_DIR = x; then
5513      want_dir=$AUTOTOOLS_DFLT/bin
5514    else
5515      want_dir=$AUTOTOOLS_DIR/bin
5516    fi
5517    if test $autoconf_dir = `cd $want_dir; pwd`; then
5518      echo "$as_me:$LINENO: result: yes" >&5
5519echo "${ECHO_T}yes" >&6
5520    else
5521      rm -f confauto.out
5522      echo "$as_me:$LINENO: result: no" >&5
5523echo "${ECHO_T}no" >&6
5524      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5525echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5526   { (exit 1); exit 1; }; }
5527    fi
5528
5529    # Check if we have automake
5530    # Extract the first word of "automake", so it can be a program name with args.
5531set dummy automake; ac_word=$2
5532echo "$as_me:$LINENO: checking for $ac_word" >&5
5533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5534if test "${ac_cv_prog_have_automake+set}" = set; then
5535  echo $ECHO_N "(cached) $ECHO_C" >&6
5536else
5537  if test -n "$have_automake"; then
5538  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5539else
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543  IFS=$as_save_IFS
5544  test -z "$as_dir" && as_dir=.
5545  for ac_exec_ext in '' $ac_executable_extensions; do
5546  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547    ac_cv_prog_have_automake="yes"
5548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5549    break 2
5550  fi
5551done
5552done
5553
5554  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5555fi
5556fi
5557have_automake=$ac_cv_prog_have_automake
5558if test -n "$have_automake"; then
5559  echo "$as_me:$LINENO: result: $have_automake" >&5
5560echo "${ECHO_T}$have_automake" >&6
5561else
5562  echo "$as_me:$LINENO: result: no" >&5
5563echo "${ECHO_T}no" >&6
5564fi
5565
5566    if test $have_automake = no; then
5567      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5568echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5569   { (exit 1); exit 1; }; }
5570    fi
5571
5572    # Check whether automake is the correct version
5573    correct_version='1.9.6'
5574    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5575    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5576echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5577    automake --version > confauto.out 2>&1
5578    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5579      echo "$as_me:$LINENO: result: yes" >&5
5580echo "${ECHO_T}yes" >&6
5581    else
5582      rm -f confauto.out
5583      echo "$as_me:$LINENO: result: no" >&5
5584echo "${ECHO_T}no" >&6
5585      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5586echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5587   { (exit 1); exit 1; }; }
5588    fi
5589    rm -f confauto.out
5590
5591    # Check if the executable automake is picked up from the correct location
5592    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5593echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5594    automake_dir=`which automake | sed -e 's=/automake=='`
5595    automake_dir=`cd $automake_dir; pwd`
5596    if test x$AUTOTOOLS_DIR = x; then
5597      want_dir=$AUTOTOOLS_DFLT/bin
5598    else
5599      want_dir=$AUTOTOOLS_DIR/bin
5600    fi
5601    if test $automake_dir = `cd $want_dir; pwd`; then
5602      echo "$as_me:$LINENO: result: yes" >&5
5603echo "${ECHO_T}yes" >&6
5604    else
5605      rm -f confauto.out
5606      echo "$as_me:$LINENO: result: no" >&5
5607echo "${ECHO_T}no" >&6
5608      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5609echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5610   { (exit 1); exit 1; }; }
5611    fi
5612
5613    # Check if this is the correct version of libtool (with escaped dots)
5614    if test x$AUTOTOOLS_DIR = x; then
5615      want_dir=$AUTOTOOLS_DFLT/share
5616    else
5617      want_dir=$AUTOTOOLS_DIR/share
5618    fi
5619    correct_version='1.5.22'
5620    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5621    if test -r $want_dir/libtool/ltmain.sh; then
5622  have_ltmain=yes
5623  :
5624else
5625  have_ltmain=no
5626  :
5627fi
5628
5629    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5630echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5631    if test $have_ltmain = yes; then
5632    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5633        echo "$as_me:$LINENO: result: yes" >&5
5634echo "${ECHO_T}yes" >&6
5635      else
5636        echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5639echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5640   { (exit 1); exit 1; }; }
5641      fi
5642    else
5643      echo "$as_me:$LINENO: result: no" >&5
5644echo "${ECHO_T}no" >&6
5645      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5646echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5647   { (exit 1); exit 1; }; }
5648    fi
5649  fi
5650
5651  # Check if we can find the libtool file
5652  if test x$AUTOTOOLS_DIR = x; then
5653    want_dir=$AUTOTOOLS_DFLT/share
5654  else
5655    want_dir=$AUTOTOOLS_DIR/share
5656  fi
5657  if test -r $want_dir/aclocal/libtool.m4; then
5658  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5659  :
5660else
5661  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5662echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5663   { (exit 1); exit 1; }; }
5664  :
5665fi
5666
5667
5668  # Check if we have an Externals file
5669  if test -r $srcdir/Externals; then
5670    coin_have_externals=yes
5671  fi
5672  # Check if subversion is installed and understands https
5673  # Extract the first word of "svn", so it can be a program name with args.
5674set dummy svn; ac_word=$2
5675echo "$as_me:$LINENO: checking for $ac_word" >&5
5676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5677if test "${ac_cv_prog_have_svn+set}" = set; then
5678  echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680  if test -n "$have_svn"; then
5681  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686  IFS=$as_save_IFS
5687  test -z "$as_dir" && as_dir=.
5688  for ac_exec_ext in '' $ac_executable_extensions; do
5689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690    ac_cv_prog_have_svn="yes"
5691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692    break 2
5693  fi
5694done
5695done
5696
5697  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5698fi
5699fi
5700have_svn=$ac_cv_prog_have_svn
5701if test -n "$have_svn"; then
5702  echo "$as_me:$LINENO: result: $have_svn" >&5
5703echo "${ECHO_T}$have_svn" >&6
5704else
5705  echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6
5707fi
5708
5709  if test x$have_svn = xyes; then
5710    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5711echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5712if test "${ac_cv_svn_understands_https+set}" = set; then
5713  echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
5715  svn --version > confauto.out 2>&1
5716                    if $EGREP https confauto.out >/dev/null 2>&1; then
5717                      ac_cv_svn_understands_https=yes
5718                    else
5719                      ac_cv_svn_understands_https=no
5720                      have_svn=no
5721                      ac_cv_prog_have_svn=no
5722                    fi
5723                    rm -f confauto.out
5724fi
5725echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5726echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5727  fi
5728
5729  # Find the location of the BuildTools directory
5730  BUILDTOOLSDIR=
5731  if test -r $srcdir/BuildTools/coin.m4; then
5732    BUILDTOOLSDIR=$srcdir/BuildTools
5733  else
5734    if test -r $srcdir/../BuildTools/coin.m4; then
5735      BUILDTOOLSDIR=$srcdir/../BuildTools
5736    else
5737      if test -r $srcdir/../../BuildTools/coin.m4; then
5738        BUILDTOOLSDIR=$srcdir/../../BuildTools
5739      else
5740        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5741echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5742   { (exit 1); exit 1; }; }
5743      fi
5744    fi
5745  fi
5746
5747
5748  # The following variable is set to the name of the directory where
5749  # the autotool scripts are located
5750
5751  AUX_DIR=$ac_aux_dir
5752fi
5753
5754# helpful variable for the base directory of this package
5755abs_source_dir=`cd $srcdir; pwd`
5756
5757
5758# Stuff for example Makefiles
5759if test x$prefix = xNONE; then
5760  full_prefix=$ac_default_prefix
5761else
5762  full_prefix=$prefix
5763fi
5764full_prefix=`cd $full_prefix ; pwd`
5765
5766abs_lib_dir=$full_prefix/lib
5767
5768abs_include_dir=$full_prefix/include
5769
5770abs_bin_dir=$full_prefix/bin
5771
5772
5773
5774if test $coin_have_externals = yes && test x$have_svn = xyes; then
5775  HAVE_EXTERNALS_TRUE=
5776  HAVE_EXTERNALS_FALSE='#'
5777else
5778  HAVE_EXTERNALS_TRUE='#'
5779  HAVE_EXTERNALS_FALSE=
5780fi
5781
5782
5783# AC_MSG_NOTICE([End automake initialisation.])
5784
5785
5786
5787LIBTOOL=
5788if test -r ../libtool; then
5789  coin_config_dir=..
5790  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5791fi
5792if test "x$LIBTOOL" = x; then
5793  if test -r ../../libtool; then
5794    coin_config_dir=../..
5795    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5796  fi
5797fi
5798
5799if test "x$LIBTOOL" = x; then
5800# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5801  # Stuff for libtool
5802  # Check whether --enable-shared or --disable-shared was given.
5803if test "${enable_shared+set}" = set; then
5804  enableval="$enable_shared"
5805  p=${PACKAGE-default}
5806    case $enableval in
5807    yes) enable_shared=yes ;;
5808    no) enable_shared=no ;;
5809    *)
5810      enable_shared=no
5811      # Look at the argument we got.  We use all the common list separators.
5812      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5813      for pkg in $enableval; do
5814        IFS="$lt_save_ifs"
5815        if test "X$pkg" = "X$p"; then
5816          enable_shared=yes
5817        fi
5818      done
5819      IFS="$lt_save_ifs"
5820      ;;
5821    esac
5822else
5823  enable_shared=yes
5824fi;
5825
5826# Check whether --enable-fast-install or --disable-fast-install was given.
5827if test "${enable_fast_install+set}" = set; then
5828  enableval="$enable_fast_install"
5829  p=${PACKAGE-default}
5830    case $enableval in
5831    yes) enable_fast_install=yes ;;
5832    no) enable_fast_install=no ;;
5833    *)
5834      enable_fast_install=no
5835      # Look at the argument we got.  We use all the common list separators.
5836      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5837      for pkg in $enableval; do
5838        IFS="$lt_save_ifs"
5839        if test "X$pkg" = "X$p"; then
5840          enable_fast_install=yes
5841        fi
5842      done
5843      IFS="$lt_save_ifs"
5844      ;;
5845    esac
5846else
5847  enable_fast_install=yes
5848fi;
5849
5850echo "$as_me:$LINENO: checking host system type" >&5
5851echo $ECHO_N "checking host system type... $ECHO_C" >&6
5852if test "${ac_cv_host+set}" = set; then
5853  echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855  ac_cv_host_alias=$host_alias
5856test -z "$ac_cv_host_alias" &&
5857  ac_cv_host_alias=$ac_cv_build_alias
5858ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5859  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5860echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5861   { (exit 1); exit 1; }; }
5862
5863fi
5864echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5865echo "${ECHO_T}$ac_cv_host" >&6
5866host=$ac_cv_host
5867host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5868host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5869host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5870
5871
5872echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5873echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5874if test "${lt_cv_path_SED+set}" = set; then
5875  echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877  # Loop through the user's path and test for sed and gsed.
5878# Then use that list of sed's as ones to test for truncation.
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882  IFS=$as_save_IFS
5883  test -z "$as_dir" && as_dir=.
5884  for lt_ac_prog in sed gsed; do
5885    for ac_exec_ext in '' $ac_executable_extensions; do
5886      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5887        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5888      fi
5889    done
5890  done
5891done
5892lt_ac_max=0
5893lt_ac_count=0
5894# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5895# along with /bin/sed that truncates output.
5896for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5897  test ! -f $lt_ac_sed && continue
5898  cat /dev/null > conftest.in
5899  lt_ac_count=0
5900  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5901  # Check for GNU sed and select it if it is found.
5902  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5903    lt_cv_path_SED=$lt_ac_sed
5904    break
5905  fi
5906  while true; do
5907    cat conftest.in conftest.in >conftest.tmp
5908    mv conftest.tmp conftest.in
5909    cp conftest.in conftest.nl
5910    echo >>conftest.nl
5911    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5912    cmp -s conftest.out conftest.nl || break
5913    # 10000 chars as input seems more than enough
5914    test $lt_ac_count -gt 10 && break
5915    lt_ac_count=`expr $lt_ac_count + 1`
5916    if test $lt_ac_count -gt $lt_ac_max; then
5917      lt_ac_max=$lt_ac_count
5918      lt_cv_path_SED=$lt_ac_sed
5919    fi
5920  done
5921done
5922
5923fi
5924
5925SED=$lt_cv_path_SED
5926echo "$as_me:$LINENO: result: $SED" >&5
5927echo "${ECHO_T}$SED" >&6
5928
5929
5930# Check whether --with-gnu-ld or --without-gnu-ld was given.
5931if test "${with_gnu_ld+set}" = set; then
5932  withval="$with_gnu_ld"
5933  test "$withval" = no || with_gnu_ld=yes
5934else
5935  with_gnu_ld=no
5936fi;
5937ac_prog=ld
5938if test "$GCC" = yes; then
5939  # Check if gcc -print-prog-name=ld gives a path.
5940  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5941echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5942  case $host in
5943  *-*-mingw*)
5944    # gcc leaves a trailing carriage return which upsets mingw
5945    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5946  *)
5947    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5948  esac
5949  case $ac_prog in
5950    # Accept absolute paths.
5951    [\\/]* | ?:[\\/]*)
5952      re_direlt='/[^/][^/]*/\.\./'
5953      # Canonicalize the pathname of ld
5954      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5955      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5956        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5957      done
5958      test -z "$LD" && LD="$ac_prog"
5959      ;;
5960  "")
5961    # If it fails, then pretend we aren't using GCC.
5962    ac_prog=ld
5963    ;;
5964  *)
5965    # If it is relative, then search for the first ld in PATH.
5966    with_gnu_ld=unknown
5967    ;;
5968  esac
5969elif test "$with_gnu_ld" = yes; then
5970  echo "$as_me:$LINENO: checking for GNU ld" >&5
5971echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5972else
5973  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5974echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5975fi
5976if test "${lt_cv_path_LD+set}" = set; then
5977  echo $ECHO_N "(cached) $ECHO_C" >&6
5978else
5979  if test -z "$LD"; then
5980  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5981  for ac_dir in $PATH; do
5982    IFS="$lt_save_ifs"
5983    test -z "$ac_dir" && ac_dir=.
5984    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5985      lt_cv_path_LD="$ac_dir/$ac_prog"
5986      # Check to see if the program is GNU ld.  I'd rather use --version,
5987      # but apparently some variants of GNU ld only accept -v.
5988      # Break only if it was the GNU/non-GNU ld that we prefer.
5989      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5990      *GNU* | *'with BFD'*)
5991        test "$with_gnu_ld" != no && break
5992        ;;
5993      *)
5994        test "$with_gnu_ld" != yes && break
5995        ;;
5996      esac
5997    fi
5998  done
5999  IFS="$lt_save_ifs"
6000else
6001  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6002fi
6003fi
6004
6005LD="$lt_cv_path_LD"
6006if test -n "$LD"; then
6007  echo "$as_me:$LINENO: result: $LD" >&5
6008echo "${ECHO_T}$LD" >&6
6009else
6010  echo "$as_me:$LINENO: result: no" >&5
6011echo "${ECHO_T}no" >&6
6012fi
6013test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6014echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6015   { (exit 1); exit 1; }; }
6016echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6017echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6018if test "${lt_cv_prog_gnu_ld+set}" = set; then
6019  echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6022case `$LD -v 2>&1 </dev/null` in
6023*GNU* | *'with BFD'*)
6024  lt_cv_prog_gnu_ld=yes
6025  ;;
6026*)
6027  lt_cv_prog_gnu_ld=no
6028  ;;
6029esac
6030fi
6031echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6032echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6033with_gnu_ld=$lt_cv_prog_gnu_ld
6034
6035
6036echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6037echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6038if test "${lt_cv_ld_reload_flag+set}" = set; then
6039  echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041  lt_cv_ld_reload_flag='-r'
6042fi
6043echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6044echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6045reload_flag=$lt_cv_ld_reload_flag
6046case $reload_flag in
6047"" | " "*) ;;
6048*) reload_flag=" $reload_flag" ;;
6049esac
6050reload_cmds='$LD$reload_flag -o $output$reload_objs'
6051case $host_os in
6052  darwin*)
6053    if test "$GCC" = yes; then
6054      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6055    else
6056      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6057    fi
6058    ;;
6059esac
6060
6061echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6062echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6063if test "${lt_cv_path_NM+set}" = set; then
6064  echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066  if test -n "$NM"; then
6067  # Let the user override the test.
6068  lt_cv_path_NM="$NM"
6069else
6070  lt_nm_to_check="${ac_tool_prefix}nm"
6071  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6072    lt_nm_to_check="$lt_nm_to_check nm"
6073  fi
6074  for lt_tmp_nm in $lt_nm_to_check; do
6075    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6076    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6077      IFS="$lt_save_ifs"
6078      test -z "$ac_dir" && ac_dir=.
6079      tmp_nm="$ac_dir/$lt_tmp_nm"
6080      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6081        # Check to see if the nm accepts a BSD-compat flag.
6082        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6083        #   nm: unknown option "B" ignored
6084        # Tru64's nm complains that /dev/null is an invalid object file
6085        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6086        */dev/null* | *'Invalid file or object type'*)
6087          lt_cv_path_NM="$tmp_nm -B"
6088          break
6089          ;;
6090        *)
6091          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6092          */dev/null*)
6093            lt_cv_path_NM="$tmp_nm -p"
6094            break
6095            ;;
6096          *)
6097            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6098            continue # so that we can try to find one that supports BSD flags
6099            ;;
6100          esac
6101          ;;
6102        esac
6103      fi
6104    done
6105    IFS="$lt_save_ifs"
6106  done
6107  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6108fi
6109fi
6110echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6111echo "${ECHO_T}$lt_cv_path_NM" >&6
6112NM="$lt_cv_path_NM"
6113
6114echo "$as_me:$LINENO: checking whether ln -s works" >&5
6115echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6116LN_S=$as_ln_s
6117if test "$LN_S" = "ln -s"; then
6118  echo "$as_me:$LINENO: result: yes" >&5
6119echo "${ECHO_T}yes" >&6
6120else
6121  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6122echo "${ECHO_T}no, using $LN_S" >&6
6123fi
6124
6125echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6126echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6127if test "${lt_cv_deplibs_check_method+set}" = set; then
6128  echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130  lt_cv_file_magic_cmd='$MAGIC_CMD'
6131lt_cv_file_magic_test_file=
6132lt_cv_deplibs_check_method='unknown'
6133# Need to set the preceding variable on all platforms that support
6134# interlibrary dependencies.
6135# 'none' -- dependencies not supported.
6136# `unknown' -- same as none, but documents that we really don't know.
6137# 'pass_all' -- all dependencies passed with no checks.
6138# 'test_compile' -- check by making test program.
6139# 'file_magic [[regex]]' -- check by looking for files in library path
6140# which responds to the $file_magic_cmd with a given extended regex.
6141# If you have `file' or equivalent on your system and you're not sure
6142# whether `pass_all' will *always* work, you probably want this one.
6143
6144case $host_os in
6145aix4* | aix5*)
6146  lt_cv_deplibs_check_method=pass_all
6147  ;;
6148
6149beos*)
6150  lt_cv_deplibs_check_method=pass_all
6151  ;;
6152
6153bsdi[45]*)
6154  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6155  lt_cv_file_magic_cmd='/usr/bin/file -L'
6156  lt_cv_file_magic_test_file=/shlib/libc.so
6157  ;;
6158
6159cygwin*)
6160  # func_win32_libid is a shell function defined in ltmain.sh
6161  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6162  lt_cv_file_magic_cmd='func_win32_libid'
6163  ;;
6164
6165mingw* | pw32*)
6166  # Base MSYS/MinGW do not provide the 'file' command needed by
6167  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6168  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6169  lt_cv_file_magic_cmd='$OBJDUMP -f'
6170  ;;
6171
6172darwin* | rhapsody*)
6173  lt_cv_deplibs_check_method=pass_all
6174  ;;
6175
6176freebsd* | kfreebsd*-gnu | dragonfly*)
6177  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6178    case $host_cpu in
6179    i*86 )
6180      # Not sure whether the presence of OpenBSD here was a mistake.
6181      # Let's accept both of them until this is cleared up.
6182      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6183      lt_cv_file_magic_cmd=/usr/bin/file
6184      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6185      ;;
6186    esac
6187  else
6188    lt_cv_deplibs_check_method=pass_all
6189  fi
6190  ;;
6191
6192gnu*)
6193  lt_cv_deplibs_check_method=pass_all
6194  ;;
6195
6196hpux10.20* | hpux11*)
6197  lt_cv_file_magic_cmd=/usr/bin/file
6198  case $host_cpu in
6199  ia64*)
6200    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6201    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6202    ;;
6203  hppa*64*)
6204    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]'
6205    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6206    ;;
6207  *)
6208    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6209    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6210    ;;
6211  esac
6212  ;;
6213
6214interix3*)
6215  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6216  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6217  ;;
6218
6219irix5* | irix6* | nonstopux*)
6220  case $LD in
6221  *-32|*"-32 ") libmagic=32-bit;;
6222  *-n32|*"-n32 ") libmagic=N32;;
6223  *-64|*"-64 ") libmagic=64-bit;;
6224  *) libmagic=never-match;;
6225  esac
6226  lt_cv_deplibs_check_method=pass_all
6227  ;;
6228
6229# This must be Linux ELF.
6230linux*)
6231  lt_cv_deplibs_check_method=pass_all
6232  ;;
6233
6234netbsd*)
6235  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6236    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6237  else
6238    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6239  fi
6240  ;;
6241
6242newos6*)
6243  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6244  lt_cv_file_magic_cmd=/usr/bin/file
6245  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6246  ;;
6247
6248nto-qnx*)
6249  lt_cv_deplibs_check_method=unknown
6250  ;;
6251
6252openbsd*)
6253  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6254    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6255  else
6256    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6257  fi
6258  ;;
6259
6260osf3* | osf4* | osf5*)
6261  lt_cv_deplibs_check_method=pass_all
6262  ;;
6263
6264solaris*)
6265  lt_cv_deplibs_check_method=pass_all
6266  ;;
6267
6268sysv4 | sysv4.3*)
6269  case $host_vendor in
6270  motorola)
6271    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]'
6272    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6273    ;;
6274  ncr)
6275    lt_cv_deplibs_check_method=pass_all
6276    ;;
6277  sequent)
6278    lt_cv_file_magic_cmd='/bin/file'
6279    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6280    ;;
6281  sni)
6282    lt_cv_file_magic_cmd='/bin/file'
6283    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6284    lt_cv_file_magic_test_file=/lib/libc.so
6285    ;;
6286  siemens)
6287    lt_cv_deplibs_check_method=pass_all
6288    ;;
6289  pc)
6290    lt_cv_deplibs_check_method=pass_all
6291    ;;
6292  esac
6293  ;;
6294
6295sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6296  lt_cv_deplibs_check_method=pass_all
6297  ;;
6298esac
6299
6300fi
6301echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6302echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6303file_magic_cmd=$lt_cv_file_magic_cmd
6304deplibs_check_method=$lt_cv_deplibs_check_method
6305test -z "$deplibs_check_method" && deplibs_check_method=unknown
6306
6307
6308
6309
6310# If no C compiler was specified, use CC.
6311LTCC=${LTCC-"$CC"}
6312
6313# If no C compiler flags were specified, use CFLAGS.
6314LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6315
6316# Allow CC to be a program name with arguments.
6317compiler=$CC
6318
6319# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6320if test "${enable_libtool_lock+set}" = set; then
6321  enableval="$enable_libtool_lock"
6322
6323fi;
6324test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6325
6326# Some flags need to be propagated to the compiler or linker for good
6327# libtool support.
6328case $host in
6329ia64-*-hpux*)
6330  # Find out which ABI we are using.
6331  echo 'int i;' > conftest.$ac_ext
6332  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333  (eval $ac_compile) 2>&5
6334  ac_status=$?
6335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336  (exit $ac_status); }; then
6337    case `/usr/bin/file conftest.$ac_objext` in
6338    *ELF-32*)
6339      HPUX_IA64_MODE="32"
6340      ;;
6341    *ELF-64*)
6342      HPUX_IA64_MODE="64"
6343      ;;
6344    esac
6345  fi
6346  rm -rf conftest*
6347  ;;
6348*-*-irix6*)
6349  # Find out which ABI we are using.
6350  echo '#line 6350 "configure"' > conftest.$ac_ext
6351  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352  (eval $ac_compile) 2>&5
6353  ac_status=$?
6354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355  (exit $ac_status); }; then
6356   if test "$lt_cv_prog_gnu_ld" = yes; then
6357    case `/usr/bin/file conftest.$ac_objext` in
6358    *32-bit*)
6359      LD="${LD-ld} -melf32bsmip"
6360      ;;
6361    *N32*)
6362      LD="${LD-ld} -melf32bmipn32"
6363      ;;
6364    *64-bit*)
6365      LD="${LD-ld} -melf64bmip"
6366      ;;
6367    esac
6368   else
6369    case `/usr/bin/file conftest.$ac_objext` in
6370    *32-bit*)
6371      LD="${LD-ld} -32"
6372      ;;
6373    *N32*)
6374      LD="${LD-ld} -n32"
6375      ;;
6376    *64-bit*)
6377      LD="${LD-ld} -64"
6378      ;;
6379    esac
6380   fi
6381  fi
6382  rm -rf conftest*
6383  ;;
6384
6385x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6386  # Find out which ABI we are using.
6387  echo 'int i;' > conftest.$ac_ext
6388  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389  (eval $ac_compile) 2>&5
6390  ac_status=$?
6391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392  (exit $ac_status); }; then
6393    case `/usr/bin/file conftest.o` in
6394    *32-bit*)
6395      case $host in
6396        x86_64-*linux*)
6397          LD="${LD-ld} -m elf_i386"
6398          ;;
6399        ppc64-*linux*|powerpc64-*linux*)
6400          LD="${LD-ld} -m elf32ppclinux"
6401          ;;
6402        s390x-*linux*)
6403          LD="${LD-ld} -m elf_s390"
6404          ;;
6405        sparc64-*linux*)
6406          LD="${LD-ld} -m elf32_sparc"
6407          ;;
6408      esac
6409      ;;
6410    *64-bit*)
6411      case $host in
6412        x86_64-*linux*)
6413          LD="${LD-ld} -m elf_x86_64"
6414          ;;
6415        ppc*-*linux*|powerpc*-*linux*)
6416          LD="${LD-ld} -m elf64ppc"
6417          ;;
6418        s390*-*linux*)
6419          LD="${LD-ld} -m elf64_s390"
6420          ;;
6421        sparc*-*linux*)
6422          LD="${LD-ld} -m elf64_sparc"
6423          ;;
6424      esac
6425      ;;
6426    esac
6427  fi
6428  rm -rf conftest*
6429  ;;
6430
6431*-*-sco3.2v5*)
6432  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6433  SAVE_CFLAGS="$CFLAGS"
6434  CFLAGS="$CFLAGS -belf"
6435  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6436echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6437if test "${lt_cv_cc_needs_belf+set}" = set; then
6438  echo $ECHO_N "(cached) $ECHO_C" >&6
6439else
6440  ac_ext=c
6441ac_cpp='$CPP $CPPFLAGS'
6442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444ac_compiler_gnu=$ac_cv_c_compiler_gnu
6445
6446     cat >conftest.$ac_ext <<_ACEOF
6447/* confdefs.h.  */
6448_ACEOF
6449cat confdefs.h >>conftest.$ac_ext
6450cat >>conftest.$ac_ext <<_ACEOF
6451/* end confdefs.h.  */
6452
6453#ifdef F77_DUMMY_MAIN
6454
6455#  ifdef __cplusplus
6456     extern "C"
6457#  endif
6458   int F77_DUMMY_MAIN() { return 1; }
6459
6460#endif
6461int
6462main ()
6463{
6464
6465  ;
6466  return 0;
6467}
6468_ACEOF
6469rm -f conftest.$ac_objext conftest$ac_exeext
6470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471  (eval $ac_link) 2>conftest.er1
6472  ac_status=$?
6473  grep -v '^ *+' conftest.er1 >conftest.err
6474  rm -f conftest.er1
6475  cat conftest.err >&5
6476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477  (exit $ac_status); } &&
6478         { ac_try='test -z "$ac_c_werror_flag"
6479                         || test ! -s conftest.err'
6480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481  (eval $ac_try) 2>&5
6482  ac_status=$?
6483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484  (exit $ac_status); }; } &&
6485         { ac_try='test -s conftest$ac_exeext'
6486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487  (eval $ac_try) 2>&5
6488  ac_status=$?
6489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); }; }; then
6491  lt_cv_cc_needs_belf=yes
6492else
6493  echo "$as_me: failed program was:" >&5
6494sed 's/^/| /' conftest.$ac_ext >&5
6495
6496lt_cv_cc_needs_belf=no
6497fi
6498rm -f conftest.err conftest.$ac_objext \
6499      conftest$ac_exeext conftest.$ac_ext
6500     ac_ext=c
6501ac_cpp='$CPP $CPPFLAGS'
6502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504ac_compiler_gnu=$ac_cv_c_compiler_gnu
6505
6506fi
6507echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6508echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6509  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6510    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6511    CFLAGS="$SAVE_CFLAGS"
6512  fi
6513  ;;
6514sparc*-*solaris*)
6515  # Find out which ABI we are using.
6516  echo 'int i;' > conftest.$ac_ext
6517  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6518  (eval $ac_compile) 2>&5
6519  ac_status=$?
6520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521  (exit $ac_status); }; then
6522    case `/usr/bin/file conftest.o` in
6523    *64-bit*)
6524      case $lt_cv_prog_gnu_ld in
6525      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6526      *)    LD="${LD-ld} -64" ;;
6527      esac
6528      ;;
6529    esac
6530  fi
6531  rm -rf conftest*
6532  ;;
6533
6534
6535esac
6536
6537need_locks="$enable_libtool_lock"
6538
6539
6540ac_ext=c
6541ac_cpp='$CPP $CPPFLAGS'
6542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544ac_compiler_gnu=$ac_cv_c_compiler_gnu
6545echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6546echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6547# On Suns, sometimes $CPP names a directory.
6548if test -n "$CPP" && test -d "$CPP"; then
6549  CPP=
6550fi
6551if test -z "$CPP"; then
6552  if test "${ac_cv_prog_CPP+set}" = set; then
6553  echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
6555      # Double quotes because CPP needs to be expanded
6556    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6557    do
6558      ac_preproc_ok=false
6559for ac_c_preproc_warn_flag in '' yes
6560do
6561  # Use a header file that comes with gcc, so configuring glibc
6562  # with a fresh cross-compiler works.
6563  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6564  # <limits.h> exists even on freestanding compilers.
6565  # On the NeXT, cc -E runs the code through the compiler's parser,
6566  # not just through cpp. "Syntax error" is here to catch this case.
6567  cat >conftest.$ac_ext <<_ACEOF
6568/* confdefs.h.  */
6569_ACEOF
6570cat confdefs.h >>conftest.$ac_ext
6571cat >>conftest.$ac_ext <<_ACEOF
6572/* end confdefs.h.  */
6573#ifdef __STDC__
6574# include <limits.h>
6575#else
6576# include <assert.h>
6577#endif
6578                     Syntax error
6579_ACEOF
6580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6581  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6582  ac_status=$?
6583  grep -v '^ *+' conftest.er1 >conftest.err
6584  rm -f conftest.er1
6585  cat conftest.err >&5
6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587  (exit $ac_status); } >/dev/null; then
6588  if test -s conftest.err; then
6589    ac_cpp_err=$ac_c_preproc_warn_flag
6590    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6591  else
6592    ac_cpp_err=
6593  fi
6594else
6595  ac_cpp_err=yes
6596fi
6597if test -z "$ac_cpp_err"; then
6598  :
6599else
6600  echo "$as_me: failed program was:" >&5
6601sed 's/^/| /' conftest.$ac_ext >&5
6602
6603  # Broken: fails on valid input.
6604continue
6605fi
6606rm -f conftest.err conftest.$ac_ext
6607
6608  # OK, works on sane cases.  Now check whether non-existent headers
6609  # can be detected and how.
6610  cat >conftest.$ac_ext <<_ACEOF
6611/* confdefs.h.  */
6612_ACEOF
6613cat confdefs.h >>conftest.$ac_ext
6614cat >>conftest.$ac_ext <<_ACEOF
6615/* end confdefs.h.  */
6616#include <ac_nonexistent.h>
6617_ACEOF
6618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6619  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6620  ac_status=$?
6621  grep -v '^ *+' conftest.er1 >conftest.err
6622  rm -f conftest.er1
6623  cat conftest.err >&5
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); } >/dev/null; then
6626  if test -s conftest.err; then
6627    ac_cpp_err=$ac_c_preproc_warn_flag
6628    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6629  else
6630    ac_cpp_err=
6631  fi
6632else
6633  ac_cpp_err=yes
6634fi
6635if test -z "$ac_cpp_err"; then
6636  # Broken: success on invalid input.
6637continue
6638else
6639  echo "$as_me: failed program was:" >&5
6640sed 's/^/| /' conftest.$ac_ext >&5
6641
6642  # Passes both tests.
6643ac_preproc_ok=:
6644break
6645fi
6646rm -f conftest.err conftest.$ac_ext
6647
6648done
6649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6650rm -f conftest.err conftest.$ac_ext
6651if $ac_preproc_ok; then
6652  break
6653fi
6654
6655    done
6656    ac_cv_prog_CPP=$CPP
6657
6658fi
6659  CPP=$ac_cv_prog_CPP
6660else
6661  ac_cv_prog_CPP=$CPP
6662fi
6663echo "$as_me:$LINENO: result: $CPP" >&5
6664echo "${ECHO_T}$CPP" >&6
6665ac_preproc_ok=false
6666for ac_c_preproc_warn_flag in '' yes
6667do
6668  # Use a header file that comes with gcc, so configuring glibc
6669  # with a fresh cross-compiler works.
6670  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6671  # <limits.h> exists even on freestanding compilers.
6672  # On the NeXT, cc -E runs the code through the compiler's parser,
6673  # not just through cpp. "Syntax error" is here to catch this case.
6674  cat >conftest.$ac_ext <<_ACEOF
6675/* confdefs.h.  */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h.  */
6680#ifdef __STDC__
6681# include <limits.h>
6682#else
6683# include <assert.h>
6684#endif
6685                     Syntax error
6686_ACEOF
6687if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6688  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6689  ac_status=$?
6690  grep -v '^ *+' conftest.er1 >conftest.err
6691  rm -f conftest.er1
6692  cat conftest.err >&5
6693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694  (exit $ac_status); } >/dev/null; then
6695  if test -s conftest.err; then
6696    ac_cpp_err=$ac_c_preproc_warn_flag
6697    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6698  else
6699    ac_cpp_err=
6700  fi
6701else
6702  ac_cpp_err=yes
6703fi
6704if test -z "$ac_cpp_err"; then
6705  :
6706else
6707  echo "$as_me: failed program was:" >&5
6708sed 's/^/| /' conftest.$ac_ext >&5
6709
6710  # Broken: fails on valid input.
6711continue
6712fi
6713rm -f conftest.err conftest.$ac_ext
6714
6715  # OK, works on sane cases.  Now check whether non-existent headers
6716  # can be detected and how.
6717  cat >conftest.$ac_ext <<_ACEOF
6718/* confdefs.h.  */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h.  */
6723#include <ac_nonexistent.h>
6724_ACEOF
6725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6726  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6727  ac_status=$?
6728  grep -v '^ *+' conftest.er1 >conftest.err
6729  rm -f conftest.er1
6730  cat conftest.err >&5
6731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732  (exit $ac_status); } >/dev/null; then
6733  if test -s conftest.err; then
6734    ac_cpp_err=$ac_c_preproc_warn_flag
6735    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6736  else
6737    ac_cpp_err=
6738  fi
6739else
6740  ac_cpp_err=yes
6741fi
6742if test -z "$ac_cpp_err"; then
6743  # Broken: success on invalid input.
6744continue
6745else
6746  echo "$as_me: failed program was:" >&5
6747sed 's/^/| /' conftest.$ac_ext >&5
6748
6749  # Passes both tests.
6750ac_preproc_ok=:
6751break
6752fi
6753rm -f conftest.err conftest.$ac_ext
6754
6755done
6756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6757rm -f conftest.err conftest.$ac_ext
6758if $ac_preproc_ok; then
6759  :
6760else
6761  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6762See \`config.log' for more details." >&5
6763echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6764See \`config.log' for more details." >&2;}
6765   { (exit 1); exit 1; }; }
6766fi
6767
6768ac_ext=c
6769ac_cpp='$CPP $CPPFLAGS'
6770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773
6774
6775echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6776echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6777if test "${ac_cv_header_stdc+set}" = set; then
6778  echo $ECHO_N "(cached) $ECHO_C" >&6
6779else
6780  cat >conftest.$ac_ext <<_ACEOF
6781/* confdefs.h.  */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h.  */
6786#include <stdlib.h>
6787#include <stdarg.h>
6788#include <string.h>
6789#include <float.h>
6790
6791#ifdef F77_DUMMY_MAIN
6792
6793#  ifdef __cplusplus
6794     extern "C"
6795#  endif
6796   int F77_DUMMY_MAIN() { return 1; }
6797
6798#endif
6799int
6800main ()
6801{
6802
6803  ;
6804  return 0;
6805}
6806_ACEOF
6807rm -f conftest.$ac_objext
6808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6809  (eval $ac_compile) 2>conftest.er1
6810  ac_status=$?
6811  grep -v '^ *+' conftest.er1 >conftest.err
6812  rm -f conftest.er1
6813  cat conftest.err >&5
6814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815  (exit $ac_status); } &&
6816         { ac_try='test -z "$ac_c_werror_flag"
6817                         || test ! -s conftest.err'
6818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819  (eval $ac_try) 2>&5
6820  ac_status=$?
6821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822  (exit $ac_status); }; } &&
6823         { ac_try='test -s conftest.$ac_objext'
6824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825  (eval $ac_try) 2>&5
6826  ac_status=$?
6827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828  (exit $ac_status); }; }; then
6829  ac_cv_header_stdc=yes
6830else
6831  echo "$as_me: failed program was:" >&5
6832sed 's/^/| /' conftest.$ac_ext >&5
6833
6834ac_cv_header_stdc=no
6835fi
6836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6837
6838if test $ac_cv_header_stdc = yes; then
6839  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6840  cat >conftest.$ac_ext <<_ACEOF
6841/* confdefs.h.  */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h.  */
6846#include <string.h>
6847
6848_ACEOF
6849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6850  $EGREP "memchr" >/dev/null 2>&1; then
6851  :
6852else
6853  ac_cv_header_stdc=no
6854fi
6855rm -f conftest*
6856
6857fi
6858
6859if test $ac_cv_header_stdc = yes; then
6860  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6861  cat >conftest.$ac_ext <<_ACEOF
6862/* confdefs.h.  */
6863_ACEOF
6864cat confdefs.h >>conftest.$ac_ext
6865cat >>conftest.$ac_ext <<_ACEOF
6866/* end confdefs.h.  */
6867#include <stdlib.h>
6868
6869_ACEOF
6870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871  $EGREP "free" >/dev/null 2>&1; then
6872  :
6873else
6874  ac_cv_header_stdc=no
6875fi
6876rm -f conftest*
6877
6878fi
6879
6880if test $ac_cv_header_stdc = yes; then
6881  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6882  if test "$cross_compiling" = yes; then
6883  :
6884else
6885  cat >conftest.$ac_ext <<_ACEOF
6886/* confdefs.h.  */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h.  */
6891#include <ctype.h>
6892#if ((' ' & 0x0FF) == 0x020)
6893# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6894# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6895#else
6896# define ISLOWER(c) \
6897                   (('a' <= (c) && (c) <= 'i') \
6898                     || ('j' <= (c) && (c) <= 'r') \
6899                     || ('s' <= (c) && (c) <= 'z'))
6900# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6901#endif
6902
6903#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6904int
6905main ()
6906{
6907  int i;
6908  for (i = 0; i < 256; i++)
6909    if (XOR (islower (i), ISLOWER (i))
6910        || toupper (i) != TOUPPER (i))
6911      exit(2);
6912  exit (0);
6913}
6914_ACEOF
6915rm -f conftest$ac_exeext
6916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6917  (eval $ac_link) 2>&5
6918  ac_status=$?
6919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922  (eval $ac_try) 2>&5
6923  ac_status=$?
6924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925  (exit $ac_status); }; }; then
6926  :
6927else
6928  echo "$as_me: program exited with status $ac_status" >&5
6929echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
6932( exit $ac_status )
6933ac_cv_header_stdc=no
6934fi
6935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6936fi
6937fi
6938fi
6939echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6940echo "${ECHO_T}$ac_cv_header_stdc" >&6
6941if test $ac_cv_header_stdc = yes; then
6942
6943cat >>confdefs.h <<\_ACEOF
6944#define STDC_HEADERS 1
6945_ACEOF
6946
6947fi
6948
6949# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6960                  inttypes.h stdint.h unistd.h
6961do
6962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6963echo "$as_me:$LINENO: checking for $ac_header" >&5
6964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6965if eval "test \"\${$as_ac_Header+set}\" = set"; then
6966  echo $ECHO_N "(cached) $ECHO_C" >&6
6967else
6968  cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h.  */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h.  */
6974$ac_includes_default
6975
6976#include <$ac_header>
6977_ACEOF
6978rm -f conftest.$ac_objext
6979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980  (eval $ac_compile) 2>conftest.er1
6981  ac_status=$?
6982  grep -v '^ *+' conftest.er1 >conftest.err
6983  rm -f conftest.er1
6984  cat conftest.err >&5
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); } &&
6987         { ac_try='test -z "$ac_c_werror_flag"
6988                         || test ! -s conftest.err'
6989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990  (eval $ac_try) 2>&5
6991  ac_status=$?
6992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993  (exit $ac_status); }; } &&
6994         { ac_try='test -s conftest.$ac_objext'
6995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996  (eval $ac_try) 2>&5
6997  ac_status=$?
6998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999  (exit $ac_status); }; }; then
7000  eval "$as_ac_Header=yes"
7001else
7002  echo "$as_me: failed program was:" >&5
7003sed 's/^/| /' conftest.$ac_ext >&5
7004
7005eval "$as_ac_Header=no"
7006fi
7007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7008fi
7009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7011if test `eval echo '${'$as_ac_Header'}'` = yes; then
7012  cat >>confdefs.h <<_ACEOF
7013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7014_ACEOF
7015
7016fi
7017
7018done
7019
7020
7021
7022for ac_header in dlfcn.h
7023do
7024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7025if eval "test \"\${$as_ac_Header+set}\" = set"; then
7026  echo "$as_me:$LINENO: checking for $ac_header" >&5
7027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7028if eval "test \"\${$as_ac_Header+set}\" = set"; then
7029  echo $ECHO_N "(cached) $ECHO_C" >&6
7030fi
7031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7033else
7034  # Is the header compilable?
7035echo "$as_me:$LINENO: checking $ac_header usability" >&5
7036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7037cat >conftest.$ac_ext <<_ACEOF
7038/* confdefs.h.  */
7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h.  */
7043$ac_includes_default
7044#include <$ac_header>
7045_ACEOF
7046rm -f conftest.$ac_objext
7047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048  (eval $ac_compile) 2>conftest.er1
7049  ac_status=$?
7050  grep -v '^ *+' conftest.er1 >conftest.err
7051  rm -f conftest.er1
7052  cat conftest.err >&5
7053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054  (exit $ac_status); } &&
7055         { ac_try='test -z "$ac_c_werror_flag"
7056                         || test ! -s conftest.err'
7057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058  (eval $ac_try) 2>&5
7059  ac_status=$?
7060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061  (exit $ac_status); }; } &&
7062         { ac_try='test -s conftest.$ac_objext'
7063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064  (eval $ac_try) 2>&5
7065  ac_status=$?
7066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067  (exit $ac_status); }; }; then
7068  ac_header_compiler=yes
7069else
7070  echo "$as_me: failed program was:" >&5
7071sed 's/^/| /' conftest.$ac_ext >&5
7072
7073ac_header_compiler=no
7074fi
7075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7077echo "${ECHO_T}$ac_header_compiler" >&6
7078
7079# Is the header present?
7080echo "$as_me:$LINENO: checking $ac_header presence" >&5
7081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7082cat >conftest.$ac_ext <<_ACEOF
7083/* confdefs.h.  */
7084_ACEOF
7085cat confdefs.h >>conftest.$ac_ext
7086cat >>conftest.$ac_ext <<_ACEOF
7087/* end confdefs.h.  */
7088#include <$ac_header>
7089_ACEOF
7090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7091  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7092  ac_status=$?
7093  grep -v '^ *+' conftest.er1 >conftest.err
7094  rm -f conftest.er1
7095  cat conftest.err >&5
7096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097  (exit $ac_status); } >/dev/null; then
7098  if test -s conftest.err; then
7099    ac_cpp_err=$ac_c_preproc_warn_flag
7100    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7101  else
7102    ac_cpp_err=
7103  fi
7104else
7105  ac_cpp_err=yes
7106fi
7107if test -z "$ac_cpp_err"; then
7108  ac_header_preproc=yes
7109else
7110  echo "$as_me: failed program was:" >&5
7111sed 's/^/| /' conftest.$ac_ext >&5
7112
7113  ac_header_preproc=no
7114fi
7115rm -f conftest.err conftest.$ac_ext
7116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7117echo "${ECHO_T}$ac_header_preproc" >&6
7118
7119# So?  What about this header?
7120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7121  yes:no: )
7122    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7124    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7125echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7126    ac_header_preproc=yes
7127    ;;
7128  no:yes:* )
7129    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7131    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7132echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7133    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7134echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7135    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7136echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7137    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7138echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7139    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7140echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7141    (
7142      cat <<\_ASBOX
7143## --------------------------------------------------------------- ##
7144## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7145## --------------------------------------------------------------- ##
7146_ASBOX
7147    ) |
7148      sed "s/^/$as_me: WARNING:     /" >&2
7149    ;;
7150esac
7151echo "$as_me:$LINENO: checking for $ac_header" >&5
7152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7153if eval "test \"\${$as_ac_Header+set}\" = set"; then
7154  echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156  eval "$as_ac_Header=\$ac_header_preproc"
7157fi
7158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7160
7161fi
7162if test `eval echo '${'$as_ac_Header'}'` = yes; then
7163  cat >>confdefs.h <<_ACEOF
7164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165_ACEOF
7166
7167fi
7168
7169done
7170
7171ac_ext=cc
7172ac_cpp='$CXXCPP $CPPFLAGS'
7173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7176if test -n "$ac_tool_prefix"; then
7177  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7178  do
7179    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7181echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7183if test "${ac_cv_prog_CXX+set}" = set; then
7184  echo $ECHO_N "(cached) $ECHO_C" >&6
7185else
7186  if test -n "$CXX"; then
7187  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192  IFS=$as_save_IFS
7193  test -z "$as_dir" && as_dir=.
7194  for ac_exec_ext in '' $ac_executable_extensions; do
7195  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198    break 2
7199  fi
7200done
7201done
7202
7203fi
7204fi
7205CXX=$ac_cv_prog_CXX
7206if test -n "$CXX"; then
7207  echo "$as_me:$LINENO: result: $CXX" >&5
7208echo "${ECHO_T}$CXX" >&6
7209else
7210  echo "$as_me:$LINENO: result: no" >&5
7211echo "${ECHO_T}no" >&6
7212fi
7213
7214    test -n "$CXX" && break
7215  done
7216fi
7217if test -z "$CXX"; then
7218  ac_ct_CXX=$CXX
7219  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7220do
7221  # Extract the first word of "$ac_prog", so it can be a program name with args.
7222set dummy $ac_prog; ac_word=$2
7223echo "$as_me:$LINENO: checking for $ac_word" >&5
7224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7225if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7226  echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228  if test -n "$ac_ct_CXX"; then
7229  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7230else
7231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234  IFS=$as_save_IFS
7235  test -z "$as_dir" && as_dir=.
7236  for ac_exec_ext in '' $ac_executable_extensions; do
7237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238    ac_cv_prog_ac_ct_CXX="$ac_prog"
7239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240    break 2
7241  fi
7242done
7243done
7244
7245fi
7246fi
7247ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7248if test -n "$ac_ct_CXX"; then
7249  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7250echo "${ECHO_T}$ac_ct_CXX" >&6
7251else
7252  echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
7254fi
7255
7256  test -n "$ac_ct_CXX" && break
7257done
7258test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7259
7260  CXX=$ac_ct_CXX
7261fi
7262
7263
7264# Provide some information about the compiler.
7265echo "$as_me:$LINENO:" \
7266     "checking for C++ compiler version" >&5
7267ac_compiler=`set X $ac_compile; echo $2`
7268{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7269  (eval $ac_compiler --version </dev/null >&5) 2>&5
7270  ac_status=$?
7271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272  (exit $ac_status); }
7273{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7274  (eval $ac_compiler -v </dev/null >&5) 2>&5
7275  ac_status=$?
7276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277  (exit $ac_status); }
7278{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7279  (eval $ac_compiler -V </dev/null >&5) 2>&5
7280  ac_status=$?
7281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282  (exit $ac_status); }
7283
7284echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7285echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7286if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7287  echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289  cat >conftest.$ac_ext <<_ACEOF
7290/* confdefs.h.  */
7291_ACEOF
7292cat confdefs.h >>conftest.$ac_ext
7293cat >>conftest.$ac_ext <<_ACEOF
7294/* end confdefs.h.  */
7295
7296#ifdef F77_DUMMY_MAIN
7297
7298#  ifdef __cplusplus
7299     extern "C"
7300#  endif
7301   int F77_DUMMY_MAIN() { return 1; }
7302
7303#endif
7304int
7305main ()
7306{
7307#ifndef __GNUC__
7308       choke me
7309#endif
7310
7311  ;
7312  return 0;
7313}
7314_ACEOF
7315rm -f conftest.$ac_objext
7316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317  (eval $ac_compile) 2>conftest.er1
7318  ac_status=$?
7319  grep -v '^ *+' conftest.er1 >conftest.err
7320  rm -f conftest.er1
7321  cat conftest.err >&5
7322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323  (exit $ac_status); } &&
7324         { ac_try='test -z "$ac_cxx_werror_flag"
7325                         || test ! -s conftest.err'
7326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327  (eval $ac_try) 2>&5
7328  ac_status=$?
7329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330  (exit $ac_status); }; } &&
7331         { ac_try='test -s conftest.$ac_objext'
7332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333  (eval $ac_try) 2>&5
7334  ac_status=$?
7335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336  (exit $ac_status); }; }; then
7337  ac_compiler_gnu=yes
7338else
7339  echo "$as_me: failed program was:" >&5
7340sed 's/^/| /' conftest.$ac_ext >&5
7341
7342ac_compiler_gnu=no
7343fi
7344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7345ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7346
7347fi
7348echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7349echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7350GXX=`test $ac_compiler_gnu = yes && echo yes`
7351ac_test_CXXFLAGS=${CXXFLAGS+set}
7352ac_save_CXXFLAGS=$CXXFLAGS
7353CXXFLAGS="-g"
7354echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7355echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7356if test "${ac_cv_prog_cxx_g+set}" = set; then
7357  echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359  cat >conftest.$ac_ext <<_ACEOF
7360/* confdefs.h.  */
7361_ACEOF
7362cat confdefs.h >>conftest.$ac_ext
7363cat >>conftest.$ac_ext <<_ACEOF
7364/* end confdefs.h.  */
7365
7366#ifdef F77_DUMMY_MAIN
7367
7368#  ifdef __cplusplus
7369     extern "C"
7370#  endif
7371   int F77_DUMMY_MAIN() { return 1; }
7372
7373#endif
7374int
7375main ()
7376{
7377
7378  ;
7379  return 0;
7380}
7381_ACEOF
7382rm -f conftest.$ac_objext
7383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7384  (eval $ac_compile) 2>conftest.er1
7385  ac_status=$?
7386  grep -v '^ *+' conftest.er1 >conftest.err
7387  rm -f conftest.er1
7388  cat conftest.err >&5
7389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390  (exit $ac_status); } &&
7391         { ac_try='test -z "$ac_cxx_werror_flag"
7392                         || test ! -s conftest.err'
7393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394  (eval $ac_try) 2>&5
7395  ac_status=$?
7396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397  (exit $ac_status); }; } &&
7398         { ac_try='test -s conftest.$ac_objext'
7399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400  (eval $ac_try) 2>&5
7401  ac_status=$?
7402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403  (exit $ac_status); }; }; then
7404  ac_cv_prog_cxx_g=yes
7405else
7406  echo "$as_me: failed program was:" >&5
7407sed 's/^/| /' conftest.$ac_ext >&5
7408
7409ac_cv_prog_cxx_g=no
7410fi
7411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7412fi
7413echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7414echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7415if test "$ac_test_CXXFLAGS" = set; then
7416  CXXFLAGS=$ac_save_CXXFLAGS
7417elif test $ac_cv_prog_cxx_g = yes; then
7418  if test "$GXX" = yes; then
7419    CXXFLAGS="-g -O2"
7420  else
7421    CXXFLAGS="-g"
7422  fi
7423else
7424  if test "$GXX" = yes; then
7425    CXXFLAGS="-O2"
7426  else
7427    CXXFLAGS=
7428  fi
7429fi
7430for ac_declaration in \
7431   '' \
7432   'extern "C" void std::exit (int) throw (); using std::exit;' \
7433   'extern "C" void std::exit (int); using std::exit;' \
7434   'extern "C" void exit (int) throw ();' \
7435   'extern "C" void exit (int);' \
7436   'void exit (int);'
7437do
7438  cat >conftest.$ac_ext <<_ACEOF
7439/* confdefs.h.  */
7440_ACEOF
7441cat confdefs.h >>conftest.$ac_ext
7442cat >>conftest.$ac_ext <<_ACEOF
7443/* end confdefs.h.  */
7444$ac_declaration
7445#include <stdlib.h>
7446#ifdef F77_DUMMY_MAIN
7447
7448#  ifdef __cplusplus
7449     extern "C"
7450#  endif
7451   int F77_DUMMY_MAIN() { return 1; }
7452
7453#endif
7454int
7455main ()
7456{
7457exit (42);
7458  ;
7459  return 0;
7460}
7461_ACEOF
7462rm -f conftest.$ac_objext
7463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7464  (eval $ac_compile) 2>conftest.er1
7465  ac_status=$?
7466  grep -v '^ *+' conftest.er1 >conftest.err
7467  rm -f conftest.er1
7468  cat conftest.err >&5
7469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470  (exit $ac_status); } &&
7471         { ac_try='test -z "$ac_cxx_werror_flag"
7472                         || test ! -s conftest.err'
7473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474  (eval $ac_try) 2>&5
7475  ac_status=$?
7476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477  (exit $ac_status); }; } &&
7478         { ac_try='test -s conftest.$ac_objext'
7479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480  (eval $ac_try) 2>&5
7481  ac_status=$?
7482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483  (exit $ac_status); }; }; then
7484  :
7485else
7486  echo "$as_me: failed program was:" >&5
7487sed 's/^/| /' conftest.$ac_ext >&5
7488
7489continue
7490fi
7491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7492  cat >conftest.$ac_ext <<_ACEOF
7493/* confdefs.h.  */
7494_ACEOF
7495cat confdefs.h >>conftest.$ac_ext
7496cat >>conftest.$ac_ext <<_ACEOF
7497/* end confdefs.h.  */
7498$ac_declaration
7499#ifdef F77_DUMMY_MAIN
7500
7501#  ifdef __cplusplus
7502     extern "C"
7503#  endif
7504   int F77_DUMMY_MAIN() { return 1; }
7505
7506#endif
7507int
7508main ()
7509{
7510exit (42);
7511  ;
7512  return 0;
7513}
7514_ACEOF
7515rm -f conftest.$ac_objext
7516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7517  (eval $ac_compile) 2>conftest.er1
7518  ac_status=$?
7519  grep -v '^ *+' conftest.er1 >conftest.err
7520  rm -f conftest.er1
7521  cat conftest.err >&5
7522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523  (exit $ac_status); } &&
7524         { ac_try='test -z "$ac_cxx_werror_flag"
7525                         || test ! -s conftest.err'
7526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527  (eval $ac_try) 2>&5
7528  ac_status=$?
7529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530  (exit $ac_status); }; } &&
7531         { ac_try='test -s conftest.$ac_objext'
7532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533  (eval $ac_try) 2>&5
7534  ac_status=$?
7535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536  (exit $ac_status); }; }; then
7537  break
7538else
7539  echo "$as_me: failed program was:" >&5
7540sed 's/^/| /' conftest.$ac_ext >&5
7541
7542fi
7543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7544done
7545rm -f conftest*
7546if test -n "$ac_declaration"; then
7547  echo '#ifdef __cplusplus' >>confdefs.h
7548  echo $ac_declaration      >>confdefs.h
7549  echo '#endif'             >>confdefs.h
7550fi
7551
7552ac_ext=cc
7553ac_cpp='$CXXCPP $CPPFLAGS'
7554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7557
7558depcc="$CXX"  am_compiler_list=
7559
7560echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7561echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7562if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7563  echo $ECHO_N "(cached) $ECHO_C" >&6
7564else
7565  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7566  # We make a subdir and do the tests there.  Otherwise we can end up
7567  # making bogus files that we don't know about and never remove.  For
7568  # instance it was reported that on HP-UX the gcc test will end up
7569  # making a dummy file named `D' -- because `-MD' means `put the output
7570  # in D'.
7571  mkdir conftest.dir
7572  # Copy depcomp to subdir because otherwise we won't find it if we're
7573  # using a relative directory.
7574  cp "$am_depcomp" conftest.dir
7575  cd conftest.dir
7576  # We will build objects and dependencies in a subdirectory because
7577  # it helps to detect inapplicable dependency modes.  For instance
7578  # both Tru64's cc and ICC support -MD to output dependencies as a
7579  # side effect of compilation, but ICC will put the dependencies in
7580  # the current directory while Tru64 will put them in the object
7581  # directory.
7582  mkdir sub
7583
7584  am_cv_CXX_dependencies_compiler_type=none
7585  if test "$am_compiler_list" = ""; then
7586     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7587  fi
7588  for depmode in $am_compiler_list; do
7589    # Setup a source with many dependencies, because some compilers
7590    # like to wrap large dependency lists on column 80 (with \), and
7591    # we should not choose a depcomp mode which is confused by this.
7592    #
7593    # We need to recreate these files for each test, as the compiler may
7594    # overwrite some of them when testing with obscure command lines.
7595    # This happens at least with the AIX C compiler.
7596    : > sub/conftest.c
7597    for i in 1 2 3 4 5 6; do
7598      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7599      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7600      # Solaris 8's {/usr,}/bin/sh.
7601      touch sub/conftst$i.h
7602    done
7603    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7604
7605    case $depmode in
7606    nosideeffect)
7607      # after this tag, mechanisms are not by side-effect, so they'll
7608      # only be used when explicitly requested
7609      if test "x$enable_dependency_tracking" = xyes; then
7610        continue
7611      else
7612        break
7613      fi
7614      ;;
7615    none) break ;;
7616    esac
7617    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7618    # mode.  It turns out that the SunPro C++ compiler does not properly
7619    # handle `-M -o', and we need to detect this.
7620    if depmode=$depmode \
7621       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7622       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7623       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7624         >/dev/null 2>conftest.err &&
7625       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7626       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7627       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7628      # icc doesn't choke on unknown options, it will just issue warnings
7629      # or remarks (even with -Werror).  So we grep stderr for any message
7630      # that says an option was ignored or not supported.
7631      # When given -MP, icc 7.0 and 7.1 complain thusly:
7632      #   icc: Command line warning: ignoring option '-M'; no argument required
7633      # The diagnosis changed in icc 8.0:
7634      #   icc: Command line remark: option '-MP' not supported
7635      if (grep 'ignoring option' conftest.err ||
7636          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7637        am_cv_CXX_dependencies_compiler_type=$depmode
7638        break
7639      fi
7640    fi
7641  done
7642
7643  cd ..
7644  rm -rf conftest.dir
7645else
7646  am_cv_CXX_dependencies_compiler_type=none
7647fi
7648
7649fi
7650echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7651echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7652CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7653
7654
7655
7656if
7657  test "x$enable_dependency_tracking" != xno \
7658  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7659  am__fastdepCXX_TRUE=
7660  am__fastdepCXX_FALSE='#'
7661else
7662  am__fastdepCXX_TRUE='#'
7663  am__fastdepCXX_FALSE=
7664fi
7665
7666
7667
7668
7669if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7670    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7671    (test "X$CXX" != "Xg++"))) ; then
7672  ac_ext=cc
7673ac_cpp='$CXXCPP $CPPFLAGS'
7674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7677echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7678echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7679if test -z "$CXXCPP"; then
7680  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7681  echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683      # Double quotes because CXXCPP needs to be expanded
7684    for CXXCPP in "$CXX -E" "/lib/cpp"
7685    do
7686      ac_preproc_ok=false
7687for ac_cxx_preproc_warn_flag in '' yes
7688do
7689  # Use a header file that comes with gcc, so configuring glibc
7690  # with a fresh cross-compiler works.
7691  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7692  # <limits.h> exists even on freestanding compilers.
7693  # On the NeXT, cc -E runs the code through the compiler's parser,
7694  # not just through cpp. "Syntax error" is here to catch this case.
7695  cat >conftest.$ac_ext <<_ACEOF
7696/* confdefs.h.  */
7697_ACEOF
7698cat confdefs.h >>conftest.$ac_ext
7699cat >>conftest.$ac_ext <<_ACEOF
7700/* end confdefs.h.  */
7701#ifdef __STDC__
7702# include <limits.h>
7703#else
7704# include <assert.h>
7705#endif
7706                     Syntax error
7707_ACEOF
7708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7709  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7710  ac_status=$?
7711  grep -v '^ *+' conftest.er1 >conftest.err
7712  rm -f conftest.er1
7713  cat conftest.err >&5
7714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715  (exit $ac_status); } >/dev/null; then
7716  if test -s conftest.err; then
7717    ac_cpp_err=$ac_cxx_preproc_warn_flag
7718    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7719  else
7720    ac_cpp_err=
7721  fi
7722else
7723  ac_cpp_err=yes
7724fi
7725if test -z "$ac_cpp_err"; then
7726  :
7727else
7728  echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
7731  # Broken: fails on valid input.
7732continue
7733fi
7734rm -f conftest.err conftest.$ac_ext
7735
7736  # OK, works on sane cases.  Now check whether non-existent headers
7737  # can be detected and how.
7738  cat >conftest.$ac_ext <<_ACEOF
7739/* confdefs.h.  */
7740_ACEOF
7741cat confdefs.h >>conftest.$ac_ext
7742cat >>conftest.$ac_ext <<_ACEOF
7743/* end confdefs.h.  */
7744#include <ac_nonexistent.h>
7745_ACEOF
7746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7747  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7748  ac_status=$?
7749  grep -v '^ *+' conftest.er1 >conftest.err
7750  rm -f conftest.er1
7751  cat conftest.err >&5
7752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753  (exit $ac_status); } >/dev/null; then
7754  if test -s conftest.err; then
7755    ac_cpp_err=$ac_cxx_preproc_warn_flag
7756    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7757  else
7758    ac_cpp_err=
7759  fi
7760else
7761  ac_cpp_err=yes
7762fi
7763if test -z "$ac_cpp_err"; then
7764  # Broken: success on invalid input.
7765continue
7766else
7767  echo "$as_me: failed program was:" >&5
7768sed 's/^/| /' conftest.$ac_ext >&5
7769
7770  # Passes both tests.
7771ac_preproc_ok=:
7772break
7773fi
7774rm -f conftest.err conftest.$ac_ext
7775
7776done
7777# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7778rm -f conftest.err conftest.$ac_ext
7779if $ac_preproc_ok; then
7780  break
7781fi
7782
7783    done
7784    ac_cv_prog_CXXCPP=$CXXCPP
7785
7786fi
7787  CXXCPP=$ac_cv_prog_CXXCPP
7788else
7789  ac_cv_prog_CXXCPP=$CXXCPP
7790fi
7791echo "$as_me:$LINENO: result: $CXXCPP" >&5
7792echo "${ECHO_T}$CXXCPP" >&6
7793ac_preproc_ok=false
7794for ac_cxx_preproc_warn_flag in '' yes
7795do
7796  # Use a header file that comes with gcc, so configuring glibc
7797  # with a fresh cross-compiler works.
7798  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7799  # <limits.h> exists even on freestanding compilers.
7800  # On the NeXT, cc -E runs the code through the compiler's parser,
7801  # not just through cpp. "Syntax error" is here to catch this case.
7802  cat >conftest.$ac_ext <<_ACEOF
7803/* confdefs.h.  */
7804_ACEOF
7805cat confdefs.h >>conftest.$ac_ext
7806cat >>conftest.$ac_ext <<_ACEOF
7807/* end confdefs.h.  */
7808#ifdef __STDC__
7809# include <limits.h>
7810#else
7811# include <assert.h>
7812#endif
7813                     Syntax error
7814_ACEOF
7815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7816  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7817  ac_status=$?
7818  grep -v '^ *+' conftest.er1 >conftest.err
7819  rm -f conftest.er1
7820  cat conftest.err >&5
7821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822  (exit $ac_status); } >/dev/null; then
7823  if test -s conftest.err; then
7824    ac_cpp_err=$ac_cxx_preproc_warn_flag
7825    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7826  else
7827    ac_cpp_err=
7828  fi
7829else
7830  ac_cpp_err=yes
7831fi
7832if test -z "$ac_cpp_err"; then
7833  :
7834else
7835  echo "$as_me: failed program was:" >&5
7836sed 's/^/| /' conftest.$ac_ext >&5
7837
7838  # Broken: fails on valid input.
7839continue
7840fi
7841rm -f conftest.err conftest.$ac_ext
7842
7843  # OK, works on sane cases.  Now check whether non-existent headers
7844  # can be detected and how.
7845  cat >conftest.$ac_ext <<_ACEOF
7846/* confdefs.h.  */
7847_ACEOF
7848cat confdefs.h >>conftest.$ac_ext
7849cat >>conftest.$ac_ext <<_ACEOF
7850/* end confdefs.h.  */
7851#include <ac_nonexistent.h>
7852_ACEOF
7853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7854  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7855  ac_status=$?
7856  grep -v '^ *+' conftest.er1 >conftest.err
7857  rm -f conftest.er1
7858  cat conftest.err >&5
7859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860  (exit $ac_status); } >/dev/null; then
7861  if test -s conftest.err; then
7862    ac_cpp_err=$ac_cxx_preproc_warn_flag
7863    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7864  else
7865    ac_cpp_err=
7866  fi
7867else
7868  ac_cpp_err=yes
7869fi
7870if test -z "$ac_cpp_err"; then
7871  # Broken: success on invalid input.
7872continue
7873else
7874  echo "$as_me: failed program was:" >&5
7875sed 's/^/| /' conftest.$ac_ext >&5
7876
7877  # Passes both tests.
7878ac_preproc_ok=:
7879break
7880fi
7881rm -f conftest.err conftest.$ac_ext
7882
7883done
7884# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7885rm -f conftest.err conftest.$ac_ext
7886if $ac_preproc_ok; then
7887  :
7888else
7889  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7890See \`config.log' for more details." >&5
7891echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7892See \`config.log' for more details." >&2;}
7893   { (exit 1); exit 1; }; }
7894fi
7895
7896ac_ext=cc
7897ac_cpp='$CXXCPP $CPPFLAGS'
7898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7901
7902fi
7903
7904
7905
7906# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7907
7908# find the maximum length of command line arguments
7909echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7910echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7911if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7912  echo $ECHO_N "(cached) $ECHO_C" >&6
7913else
7914    i=0
7915  teststring="ABCD"
7916
7917  case $build_os in
7918  msdosdjgpp*)
7919    # On DJGPP, this test can blow up pretty badly due to problems in libc
7920    # (any single argument exceeding 2000 bytes causes a buffer overrun
7921    # during glob expansion).  Even if it were fixed, the result of this
7922    # check would be larger than it should be.
7923    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7924    ;;
7925
7926  gnu*)
7927    # Under GNU Hurd, this test is not required because there is
7928    # no limit to the length of command line arguments.
7929    # Libtool will interpret -1 as no limit whatsoever
7930    lt_cv_sys_max_cmd_len=-1;
7931    ;;
7932
7933  cygwin* | mingw*)
7934    # On Win9x/ME, this test blows up -- it succeeds, but takes
7935    # about 5 minutes as the teststring grows exponentially.
7936    # Worse, since 9x/ME are not pre-emptively multitasking,
7937    # you end up with a "frozen" computer, even though with patience
7938    # the test eventually succeeds (with a max line length of 256k).
7939    # Instead, let's just punt: use the minimum linelength reported by
7940    # all of the supported platforms: 8192 (on NT/2K/XP).
7941    lt_cv_sys_max_cmd_len=8192;
7942    ;;
7943
7944  amigaos*)
7945    # On AmigaOS with pdksh, this test takes hours, literally.
7946    # So we just punt and use a minimum line length of 8192.
7947    lt_cv_sys_max_cmd_len=8192;
7948    ;;
7949
7950  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7951    # This has been around since 386BSD, at least.  Likely further.
7952    if test -x /sbin/sysctl; then
7953      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7954    elif test -x /usr/sbin/sysctl; then
7955      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7956    else
7957      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7958    fi
7959    # And add a safety zone
7960    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7961    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7962    ;;
7963
7964  interix*)
7965    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7966    lt_cv_sys_max_cmd_len=196608
7967    ;;
7968
7969  osf*)
7970    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7971    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7972    # nice to cause kernel panics so lets avoid the loop below.
7973    # First set a reasonable default.
7974    lt_cv_sys_max_cmd_len=16384
7975    #
7976    if test -x /sbin/sysconfig; then
7977      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7978        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7979      esac
7980    fi
7981    ;;
7982  sco3.2v5*)
7983    lt_cv_sys_max_cmd_len=102400
7984    ;;
7985  sysv5* | sco5v6* | sysv4.2uw2*)
7986    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7987    if test -n "$kargmax"; then
7988      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7989    else
7990      lt_cv_sys_max_cmd_len=32768
7991    fi
7992    ;;
7993  *)
7994    # If test is not a shell built-in, we'll probably end up computing a
7995    # maximum length that is only half of the actual maximum length, but
7996    # we can't tell.
7997    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7998    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7999               = "XX$teststring") >/dev/null 2>&1 &&
8000            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8001            lt_cv_sys_max_cmd_len=$new_result &&
8002            test $i != 17 # 1/2 MB should be enough
8003    do
8004      i=`expr $i + 1`
8005      teststring=$teststring$teststring
8006    done
8007    teststring=
8008    # Add a significant safety factor because C++ compilers can tack on massive
8009    # amounts of additional arguments before passing them to the linker.
8010    # It appears as though 1/2 is a usable value.
8011    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8012    ;;
8013  esac
8014
8015fi
8016
8017if test -n $lt_cv_sys_max_cmd_len ; then
8018  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8019echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8020else
8021  echo "$as_me:$LINENO: result: none" >&5
8022echo "${ECHO_T}none" >&6
8023fi
8024
8025
8026
8027
8028# Check for command to grab the raw symbol name followed by C symbol from nm.
8029echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8030echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8031if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8032  echo $ECHO_N "(cached) $ECHO_C" >&6
8033else
8034
8035# These are sane defaults that work on at least a few old systems.
8036# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8037
8038# Character class describing NM global symbol codes.
8039symcode='[BCDEGRST]'
8040
8041# Regexp to match symbols that can be accessed directly from C.
8042sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8043
8044# Transform an extracted symbol line into a proper C declaration
8045lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8046
8047# Transform an extracted symbol line into symbol name and symbol address
8048lt_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'"
8049
8050# Define system-specific variables.
8051case $host_os in
8052aix*)
8053  symcode='[BCDT]'
8054  ;;
8055cygwin* | mingw* | pw32*)
8056  symcode='[ABCDGISTW]'
8057  ;;
8058hpux*) # Its linker distinguishes data from code symbols
8059  if test "$host_cpu" = ia64; then
8060    symcode='[ABCDEGRST]'
8061  fi
8062  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8063  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'"
8064  ;;
8065linux*)
8066  if test "$host_cpu" = ia64; then
8067    symcode='[ABCDGIRSTW]'
8068    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8069    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'"
8070  fi
8071  ;;
8072irix* | nonstopux*)
8073  symcode='[BCDEGRST]'
8074  ;;
8075osf*)
8076  symcode='[BCDEGQRST]'
8077  ;;
8078solaris*)
8079  symcode='[BDRT]'
8080  ;;
8081sco3.2v5*)
8082  symcode='[DT]'
8083  ;;
8084sysv4.2uw2*)
8085  symcode='[DT]'
8086  ;;
8087sysv5* | sco5v6* | unixware* | OpenUNIX*)
8088  symcode='[ABDT]'
8089  ;;
8090sysv4)
8091  symcode='[DFNSTU]'
8092  ;;
8093esac
8094
8095# Handle CRLF in mingw tool chain
8096opt_cr=
8097case $build_os in
8098mingw*)
8099  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8100  ;;
8101esac
8102
8103# If we're using GNU nm, then use its standard symbol codes.
8104case `$NM -V 2>&1` in
8105*GNU* | *'with BFD'*)
8106  symcode='[ABCDGIRSTW]' ;;
8107esac
8108
8109# Try without a prefix undercore, then with it.
8110for ac_symprfx in "" "_"; do
8111
8112  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8113  symxfrm="\\1 $ac_symprfx\\2 \\2"
8114
8115  # Write the raw and C identifiers.
8116  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8117
8118  # Check to see that the pipe works correctly.
8119  pipe_works=no
8120
8121  rm -f conftest*
8122  cat > conftest.$ac_ext <<EOF
8123#ifdef __cplusplus
8124extern "C" {
8125#endif
8126char nm_test_var;
8127void nm_test_func(){}
8128#ifdef __cplusplus
8129}
8130#endif
8131int main(){nm_test_var='a';nm_test_func();return(0);}
8132EOF
8133
8134  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8135  (eval $ac_compile) 2>&5
8136  ac_status=$?
8137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138  (exit $ac_status); }; then
8139    # Now try to grab the symbols.
8140    nlist=conftest.nm
8141    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8142  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8143  ac_status=$?
8144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145  (exit $ac_status); } && test -s "$nlist"; then
8146      # Try sorting and uniquifying the output.
8147      if sort "$nlist" | uniq > "$nlist"T; then
8148        mv -f "$nlist"T "$nlist"
8149      else
8150        rm -f "$nlist"T
8151      fi
8152
8153      # Make sure that we snagged all the symbols we need.
8154      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8155        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8156          cat <<EOF > conftest.$ac_ext
8157#ifdef __cplusplus
8158extern "C" {
8159#endif
8160
8161EOF
8162          # Now generate the symbol file.
8163          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8164
8165          cat <<EOF >> conftest.$ac_ext
8166#if defined (__STDC__) && __STDC__
8167# define lt_ptr_t void *
8168#else
8169# define lt_ptr_t char *
8170# define const
8171#endif
8172
8173/* The mapping between symbol names and symbols. */
8174const struct {
8175  const char *name;
8176  lt_ptr_t address;
8177}
8178lt_preloaded_symbols[] =
8179{
8180EOF
8181          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8182          cat <<\EOF >> conftest.$ac_ext
8183  {0, (lt_ptr_t) 0}
8184};
8185
8186#ifdef __cplusplus
8187}
8188#endif
8189EOF
8190          # Now try linking the two files.
8191          mv conftest.$ac_objext conftstm.$ac_objext
8192          lt_save_LIBS="$LIBS"
8193          lt_save_CFLAGS="$CFLAGS"
8194          LIBS="conftstm.$ac_objext"
8195          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8196          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197  (eval $ac_link) 2>&5
8198  ac_status=$?
8199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8201            pipe_works=yes
8202          fi
8203          LIBS="$lt_save_LIBS"
8204          CFLAGS="$lt_save_CFLAGS"
8205        else
8206          echo "cannot find nm_test_func in $nlist" >&5
8207        fi
8208      else
8209        echo "cannot find nm_test_var in $nlist" >&5
8210      fi
8211    else
8212      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8213    fi
8214  else
8215    echo "$progname: failed program was:" >&5
8216    cat conftest.$ac_ext >&5
8217  fi
8218  rm -f conftest* conftst*
8219
8220  # Do not use the global_symbol_pipe unless it works.
8221  if test "$pipe_works" = yes; then
8222    break
8223  else
8224    lt_cv_sys_global_symbol_pipe=
8225  fi
8226done
8227
8228fi
8229
8230if test -z "$lt_cv_sys_global_symbol_pipe"; then
8231  lt_cv_sys_global_symbol_to_cdecl=
8232fi
8233if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8234  echo "$as_me:$LINENO: result: failed" >&5
8235echo "${ECHO_T}failed" >&6
8236else
8237  echo "$as_me:$LINENO: result: ok" >&5
8238echo "${ECHO_T}ok" >&6
8239fi
8240
8241echo "$as_me:$LINENO: checking for objdir" >&5
8242echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8243if test "${lt_cv_objdir+set}" = set; then
8244  echo $ECHO_N "(cached) $ECHO_C" >&6
8245else
8246  rm -f .libs 2>/dev/null
8247mkdir .libs 2>/dev/null
8248if test -d .libs; then
8249  lt_cv_objdir=.libs
8250else
8251  # MS-DOS does not allow filenames that begin with a dot.
8252  lt_cv_objdir=_libs
8253fi
8254rmdir .libs 2>/dev/null
8255fi
8256echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8257echo "${ECHO_T}$lt_cv_objdir" >&6
8258objdir=$lt_cv_objdir
8259
8260
8261
8262
8263
8264case $host_os in
8265aix3*)
8266  # AIX sometimes has problems with the GCC collect2 program.  For some
8267  # reason, if we set the COLLECT_NAMES environment variable, the problems
8268  # vanish in a puff of smoke.
8269  if test "X${COLLECT_NAMES+set}" != Xset; then
8270    COLLECT_NAMES=
8271    export COLLECT_NAMES
8272  fi
8273  ;;
8274esac
8275
8276# Sed substitution that helps us do robust quoting.  It backslashifies
8277# metacharacters that are still active within double-quoted strings.
8278Xsed='sed -e 1s/^X//'
8279sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8280
8281# Same as above, but do not quote variable references.
8282double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8283
8284# Sed substitution to delay expansion of an escaped shell variable in a
8285# double_quote_subst'ed string.
8286delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8287
8288# Sed substitution to avoid accidental globbing in evaled expressions
8289no_glob_subst='s/\*/\\\*/g'
8290
8291# Constants:
8292rm="rm -f"
8293
8294# Global variables:
8295default_ofile=libtool
8296can_build_shared=yes
8297
8298# All known linkers require a `.a' archive for static linking (except MSVC,
8299# which needs '.lib').
8300libext=a
8301ltmain="$ac_aux_dir/ltmain.sh"
8302ofile="$default_ofile"
8303with_gnu_ld="$lt_cv_prog_gnu_ld"
8304
8305if test -n "$ac_tool_prefix"; then
8306  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8307set dummy ${ac_tool_prefix}ar; ac_word=$2
8308echo "$as_me:$LINENO: checking for $ac_word" >&5
8309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8310if test "${ac_cv_prog_AR+set}" = set; then
8311  echo $ECHO_N "(cached) $ECHO_C" >&6
8312else
8313  if test -n "$AR"; then
8314  ac_cv_prog_AR="$AR" # Let the user override the test.
8315else
8316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317for as_dir in $PATH
8318do
8319  IFS=$as_save_IFS
8320  test -z "$as_dir" && as_dir=.
8321  for ac_exec_ext in '' $ac_executable_extensions; do
8322  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323    ac_cv_prog_AR="${ac_tool_prefix}ar"
8324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325    break 2
8326  fi
8327done
8328done
8329
8330fi
8331fi
8332AR=$ac_cv_prog_AR
8333if test -n "$AR"; then
8334  echo "$as_me:$LINENO: result: $AR" >&5
8335echo "${ECHO_T}$AR" >&6
8336else
8337  echo "$as_me:$LINENO: result: no" >&5
8338echo "${ECHO_T}no" >&6
8339fi
8340
8341fi
8342if test -z "$ac_cv_prog_AR"; then
8343  ac_ct_AR=$AR
8344  # Extract the first word of "ar", so it can be a program name with args.
8345set dummy ar; ac_word=$2
8346echo "$as_me:$LINENO: checking for $ac_word" >&5
8347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8348if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8349  echo $ECHO_N "(cached) $ECHO_C" >&6
8350else
8351  if test -n "$ac_ct_AR"; then
8352  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8353else
8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355for as_dir in $PATH
8356do
8357  IFS=$as_save_IFS
8358  test -z "$as_dir" && as_dir=.
8359  for ac_exec_ext in '' $ac_executable_extensions; do
8360  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361    ac_cv_prog_ac_ct_AR="ar"
8362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8363    break 2
8364  fi
8365done
8366done
8367
8368  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8369fi
8370fi
8371ac_ct_AR=$ac_cv_prog_ac_ct_AR
8372if test -n "$ac_ct_AR"; then
8373  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8374echo "${ECHO_T}$ac_ct_AR" >&6
8375else
8376  echo "$as_me:$LINENO: result: no" >&5
8377echo "${ECHO_T}no" >&6
8378fi
8379
8380  AR=$ac_ct_AR
8381else
8382  AR="$ac_cv_prog_AR"
8383fi
8384
8385if test -n "$ac_tool_prefix"; then
8386  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8387set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8388echo "$as_me:$LINENO: checking for $ac_word" >&5
8389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8390if test "${ac_cv_prog_RANLIB+set}" = set; then
8391  echo $ECHO_N "(cached) $ECHO_C" >&6
8392else
8393  if test -n "$RANLIB"; then
8394  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8395else
8396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397for as_dir in $PATH
8398do
8399  IFS=$as_save_IFS
8400  test -z "$as_dir" && as_dir=.
8401  for ac_exec_ext in '' $ac_executable_extensions; do
8402  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8403    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8404    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405    break 2
8406  fi
8407done
8408done
8409
8410fi
8411fi
8412RANLIB=$ac_cv_prog_RANLIB
8413if test -n "$RANLIB"; then
8414  echo "$as_me:$LINENO: result: $RANLIB" >&5
8415echo "${ECHO_T}$RANLIB" >&6
8416else
8417  echo "$as_me:$LINENO: result: no" >&5
8418echo "${ECHO_T}no" >&6
8419fi
8420
8421fi
8422if test -z "$ac_cv_prog_RANLIB"; then
8423  ac_ct_RANLIB=$RANLIB
8424  # Extract the first word of "ranlib", so it can be a program name with args.
8425set dummy ranlib; ac_word=$2
8426echo "$as_me:$LINENO: checking for $ac_word" >&5
8427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8428if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8429  echo $ECHO_N "(cached) $ECHO_C" >&6
8430else
8431  if test -n "$ac_ct_RANLIB"; then
8432  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8433else
8434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435for as_dir in $PATH
8436do
8437  IFS=$as_save_IFS
8438  test -z "$as_dir" && as_dir=.
8439  for ac_exec_ext in '' $ac_executable_extensions; do
8440  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8441    ac_cv_prog_ac_ct_RANLIB="ranlib"
8442    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8443    break 2
8444  fi
8445done
8446done
8447
8448  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8449fi
8450fi
8451ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8452if test -n "$ac_ct_RANLIB"; then
8453  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8454echo "${ECHO_T}$ac_ct_RANLIB" >&6
8455else
8456  echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
8458fi
8459
8460  RANLIB=$ac_ct_RANLIB
8461else
8462  RANLIB="$ac_cv_prog_RANLIB"
8463fi
8464
8465if test -n "$ac_tool_prefix"; then
8466  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8467set dummy ${ac_tool_prefix}strip; ac_word=$2
8468echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8470if test "${ac_cv_prog_STRIP+set}" = set; then
8471  echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
8473  if test -n "$STRIP"; then
8474  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8475else
8476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479  IFS=$as_save_IFS
8480  test -z "$as_dir" && as_dir=.
8481  for ac_exec_ext in '' $ac_executable_extensions; do
8482  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8483    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8485    break 2
8486  fi
8487done
8488done
8489
8490fi
8491fi
8492STRIP=$ac_cv_prog_STRIP
8493if test -n "$STRIP"; then
8494  echo "$as_me:$LINENO: result: $STRIP" >&5
8495echo "${ECHO_T}$STRIP" >&6
8496else
8497  echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
8499fi
8500
8501fi
8502if test -z "$ac_cv_prog_STRIP"; then
8503  ac_ct_STRIP=$STRIP
8504  # Extract the first word of "strip", so it can be a program name with args.
8505set dummy strip; ac_word=$2
8506echo "$as_me:$LINENO: checking for $ac_word" >&5
8507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8508if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8509  echo $ECHO_N "(cached) $ECHO_C" >&6
8510else
8511  if test -n "$ac_ct_STRIP"; then
8512  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8513else
8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517  IFS=$as_save_IFS
8518  test -z "$as_dir" && as_dir=.
8519  for ac_exec_ext in '' $ac_executable_extensions; do
8520  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521    ac_cv_prog_ac_ct_STRIP="strip"
8522    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523    break 2
8524  fi
8525done
8526done
8527
8528  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8529fi
8530fi
8531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8532if test -n "$ac_ct_STRIP"; then
8533  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8534echo "${ECHO_T}$ac_ct_STRIP" >&6
8535else
8536  echo "$as_me:$LINENO: result: no" >&5
8537echo "${ECHO_T}no" >&6
8538fi
8539
8540  STRIP=$ac_ct_STRIP
8541else
8542  STRIP="$ac_cv_prog_STRIP"
8543fi
8544
8545
8546old_CC="$CC"
8547old_CFLAGS="$CFLAGS"
8548
8549# Set sane defaults for various variables
8550test -z "$AR" && AR=ar
8551test -z "$AR_FLAGS" && AR_FLAGS=cru
8552test -z "$AS" && AS=as
8553test -z "$CC" && CC=cc
8554test -z "$LTCC" && LTCC=$CC
8555test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8556test -z "$DLLTOOL" && DLLTOOL=dlltool
8557test -z "$LD" && LD=ld
8558test -z "$LN_S" && LN_S="ln -s"
8559test -z "$MAGIC_CMD" && MAGIC_CMD=file
8560test -z "$NM" && NM=nm
8561test -z "$SED" && SED=sed
8562test -z "$OBJDUMP" && OBJDUMP=objdump
8563test -z "$RANLIB" && RANLIB=:
8564test -z "$STRIP" && STRIP=:
8565test -z "$ac_objext" && ac_objext=o
8566
8567# Determine commands to create old-style static archives.
8568old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8569old_postinstall_cmds='chmod 644 $oldlib'
8570old_postuninstall_cmds=
8571
8572if test -n "$RANLIB"; then
8573  case $host_os in
8574  openbsd*)
8575    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8576    ;;
8577  *)
8578    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8579    ;;
8580  esac
8581  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8582fi
8583
8584for cc_temp in $compiler""; do
8585  case $cc_temp in
8586    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8587    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8588    \-*) ;;
8589    *) break;;
8590  esac
8591done
8592cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8593
8594
8595# Only perform the check for file, if the check method requires it
8596case $deplibs_check_method in
8597file_magic*)
8598  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8599    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8600echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8601if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8602  echo $ECHO_N "(cached) $ECHO_C" >&6
8603else
8604  case $MAGIC_CMD in
8605[\\/*] |  ?:[\\/]*)
8606  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8607  ;;
8608*)
8609  lt_save_MAGIC_CMD="$MAGIC_CMD"
8610  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8611  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8612  for ac_dir in $ac_dummy; do
8613    IFS="$lt_save_ifs"
8614    test -z "$ac_dir" && ac_dir=.
8615    if test -f $ac_dir/${ac_tool_prefix}file; then
8616      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8617      if test -n "$file_magic_test_file"; then
8618        case $deplibs_check_method in
8619        "file_magic "*)
8620          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8621          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8622          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8623            $EGREP "$file_magic_regex" > /dev/null; then
8624            :
8625          else
8626            cat <<EOF 1>&2
8627
8628*** Warning: the command libtool uses to detect shared libraries,
8629*** $file_magic_cmd, produces output that libtool cannot recognize.
8630*** The result is that libtool may fail to recognize shared libraries
8631*** as such.  This will affect the creation of libtool libraries that
8632*** depend on shared libraries, but programs linked with such libtool
8633*** libraries will work regardless of this problem.  Nevertheless, you
8634*** may want to report the problem to your system manager and/or to
8635*** bug-libtool@gnu.org
8636
8637EOF
8638          fi ;;
8639        esac
8640      fi
8641      break
8642    fi
8643  done
8644  IFS="$lt_save_ifs"
8645  MAGIC_CMD="$lt_save_MAGIC_CMD"
8646  ;;
8647esac
8648fi
8649
8650MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8651if test -n "$MAGIC_CMD"; then
8652  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8653echo "${ECHO_T}$MAGIC_CMD" >&6
8654else
8655  echo "$as_me:$LINENO: result: no" >&5
8656echo "${ECHO_T}no" >&6
8657fi
8658
8659if test -z "$lt_cv_path_MAGIC_CMD"; then
8660  if test -n "$ac_tool_prefix"; then
8661    echo "$as_me:$LINENO: checking for file" >&5
8662echo $ECHO_N "checking for file... $ECHO_C" >&6
8663if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8664  echo $ECHO_N "(cached) $ECHO_C" >&6
8665else
8666  case $MAGIC_CMD in
8667[\\/*] |  ?:[\\/]*)
8668  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8669  ;;
8670*)
8671  lt_save_MAGIC_CMD="$MAGIC_CMD"
8672  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8673  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8674  for ac_dir in $ac_dummy; do
8675    IFS="$lt_save_ifs"
8676    test -z "$ac_dir" && ac_dir=.
8677    if test -f $ac_dir/file; then
8678      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8679      if test -n "$file_magic_test_file"; then
8680        case $deplibs_check_method in
8681        "file_magic "*)
8682          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8683          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8684          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8685            $EGREP "$file_magic_regex" > /dev/null; then
8686            :
8687          else
8688            cat <<EOF 1>&2
8689
8690*** Warning: the command libtool uses to detect shared libraries,
8691*** $file_magic_cmd, produces output that libtool cannot recognize.
8692*** The result is that libtool may fail to recognize shared libraries
8693*** as such.  This will affect the creation of libtool libraries that
8694*** depend on shared libraries, but programs linked with such libtool
8695*** libraries will work regardless of this problem.  Nevertheless, you
8696*** may want to report the problem to your system manager and/or to
8697*** bug-libtool@gnu.org
8698
8699EOF
8700          fi ;;
8701        esac
8702      fi
8703      break
8704    fi
8705  done
8706  IFS="$lt_save_ifs"
8707  MAGIC_CMD="$lt_save_MAGIC_CMD"
8708  ;;
8709esac
8710fi
8711
8712MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8713if test -n "$MAGIC_CMD"; then
8714  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8715echo "${ECHO_T}$MAGIC_CMD" >&6
8716else
8717  echo "$as_me:$LINENO: result: no" >&5
8718echo "${ECHO_T}no" >&6
8719fi
8720
8721  else
8722    MAGIC_CMD=:
8723  fi
8724fi
8725
8726  fi
8727  ;;
8728esac
8729
8730enable_dlopen=no
8731enable_win32_dll=no
8732
8733# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8734if test "${enable_libtool_lock+set}" = set; then
8735  enableval="$enable_libtool_lock"
8736
8737fi;
8738test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8739
8740
8741# Check whether --with-pic or --without-pic was given.
8742if test "${with_pic+set}" = set; then
8743  withval="$with_pic"
8744  pic_mode="$withval"
8745else
8746  pic_mode=default
8747fi;
8748test -z "$pic_mode" && pic_mode=default
8749
8750# Use C for the default configuration in the libtool script
8751tagname=
8752lt_save_CC="$CC"
8753ac_ext=c
8754ac_cpp='$CPP $CPPFLAGS'
8755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8757ac_compiler_gnu=$ac_cv_c_compiler_gnu
8758
8759
8760# Source file extension for C test sources.
8761ac_ext=c
8762
8763# Object file extension for compiled C test sources.
8764objext=o
8765objext=$objext
8766
8767# Code to be used in simple compile tests
8768lt_simple_compile_test_code="int some_variable = 0;\n"
8769
8770# Code to be used in simple link tests
8771lt_simple_link_test_code='int main(){return(0);}\n'
8772
8773
8774# If no C compiler was specified, use CC.
8775LTCC=${LTCC-"$CC"}
8776
8777# If no C compiler flags were specified, use CFLAGS.
8778LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8779
8780# Allow CC to be a program name with arguments.
8781compiler=$CC
8782
8783
8784# save warnings/boilerplate of simple test code
8785ac_outfile=conftest.$ac_objext
8786printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8787eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8788_lt_compiler_boilerplate=`cat conftest.err`
8789$rm conftest*
8790
8791ac_outfile=conftest.$ac_objext
8792printf "$lt_simple_link_test_code" >conftest.$ac_ext
8793eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8794_lt_linker_boilerplate=`cat conftest.err`
8795$rm conftest*
8796
8797
8798## CAVEAT EMPTOR:
8799## There is no encapsulation within the following macros, do not change
8800## the running order or otherwise move them around unless you know exactly
8801## what you are doing...
8802
8803lt_prog_compiler_no_builtin_flag=
8804
8805if test "$GCC" = yes; then
8806  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8807
8808
8809echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8810echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8811if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8812  echo $ECHO_N "(cached) $ECHO_C" >&6
8813else
8814  lt_cv_prog_compiler_rtti_exceptions=no
8815  ac_outfile=conftest.$ac_objext
8816   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8817   lt_compiler_flag="-fno-rtti -fno-exceptions"
8818   # Insert the option either (1) after the last *FLAGS variable, or
8819   # (2) before a word containing "conftest.", or (3) at the end.
8820   # Note that $ac_compile itself does not contain backslashes and begins
8821   # with a dollar sign (not a hyphen), so the echo should work correctly.
8822   # The option is referenced via a variable to avoid confusing sed.
8823   lt_compile=`echo "$ac_compile" | $SED \
8824   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8825   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8826   -e 's:$: $lt_compiler_flag:'`
8827   (eval echo "\"\$as_me:8827: $lt_compile\"" >&5)
8828   (eval "$lt_compile" 2>conftest.err)
8829   ac_status=$?
8830   cat conftest.err >&5
8831   echo "$as_me:8831: \$? = $ac_status" >&5
8832   if (exit $ac_status) && test -s "$ac_outfile"; then
8833     # The compiler can only warn and ignore the option if not recognized
8834     # So say no if there are warnings other than the usual output.
8835     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8836     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8837     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8838       lt_cv_prog_compiler_rtti_exceptions=yes
8839     fi
8840   fi
8841   $rm conftest*
8842
8843fi
8844echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8845echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8846
8847if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8848    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8849else
8850    :
8851fi
8852
8853fi
8854
8855lt_prog_compiler_wl=
8856lt_prog_compiler_pic=
8857lt_prog_compiler_static=
8858
8859echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8860echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8861
8862  if test "$GCC" = yes; then
8863    lt_prog_compiler_wl='-Wl,'
8864    lt_prog_compiler_static='-static'
8865
8866    case $host_os in
8867      aix*)
8868      # All AIX code is PIC.
8869      if test "$host_cpu" = ia64; then
8870        # AIX 5 now supports IA64 processor
8871        lt_prog_compiler_static='-Bstatic'
8872      fi
8873      ;;
8874
8875    amigaos*)
8876      # FIXME: we need at least 68020 code to build shared libraries, but
8877      # adding the `-m68020' flag to GCC prevents building anything better,
8878      # like `-m68040'.
8879      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8880      ;;
8881
8882    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8883      # PIC is the default for these OSes.
8884      ;;
8885
8886    mingw* | pw32* | os2*)
8887      # This hack is so that the source file can tell whether it is being
8888      # built for inclusion in a dll (and should export symbols for example).
8889      lt_prog_compiler_pic='-DDLL_EXPORT'
8890      ;;
8891
8892    darwin* | rhapsody*)
8893      # PIC is the default on this platform
8894      # Common symbols not allowed in MH_DYLIB files
8895      lt_prog_compiler_pic='-fno-common'
8896      ;;
8897
8898    interix3*)
8899      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8900      # Instead, we relocate shared libraries at runtime.
8901      ;;
8902
8903    msdosdjgpp*)
8904      # Just because we use GCC doesn't mean we suddenly get shared libraries
8905      # on systems that don't support them.
8906      lt_prog_compiler_can_build_shared=no
8907      enable_shared=no
8908      ;;
8909
8910    sysv4*MP*)
8911      if test -d /usr/nec; then
8912        lt_prog_compiler_pic=-Kconform_pic
8913      fi
8914      ;;
8915
8916    hpux*)
8917      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8918      # not for PA HP-UX.
8919      case $host_cpu in
8920      hppa*64*|ia64*)
8921        # +Z the default
8922        ;;
8923      *)
8924        lt_prog_compiler_pic='-fPIC'
8925        ;;
8926      esac
8927      ;;
8928
8929    *)
8930      lt_prog_compiler_pic='-fPIC'
8931      ;;
8932    esac
8933  else
8934    # PORTME Check for flag to pass linker flags through the system compiler.
8935    case $host_os in
8936    aix*)
8937      lt_prog_compiler_wl='-Wl,'
8938      if test "$host_cpu" = ia64; then
8939        # AIX 5 now supports IA64 processor
8940        lt_prog_compiler_static='-Bstatic'
8941      else
8942        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8943      fi
8944      ;;
8945      darwin*)
8946        # PIC is the default on this platform
8947        # Common symbols not allowed in MH_DYLIB files
8948       case $cc_basename in
8949         xlc*)
8950         lt_prog_compiler_pic='-qnocommon'
8951         lt_prog_compiler_wl='-Wl,'
8952         ;;
8953       esac
8954       ;;
8955
8956    mingw* | pw32* | os2*)
8957      # This hack is so that the source file can tell whether it is being
8958      # built for inclusion in a dll (and should export symbols for example).
8959      lt_prog_compiler_pic='-DDLL_EXPORT'
8960      ;;
8961
8962    hpux9* | hpux10* | hpux11*)
8963      lt_prog_compiler_wl='-Wl,'
8964      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8965      # not for PA HP-UX.
8966      case $host_cpu in
8967      hppa*64*|ia64*)
8968        # +Z the default
8969        ;;
8970      *)
8971        lt_prog_compiler_pic='+Z'
8972        ;;
8973      esac
8974      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8975      lt_prog_compiler_static='${wl}-a ${wl}archive'
8976      ;;
8977
8978    irix5* | irix6* | nonstopux*)
8979      lt_prog_compiler_wl='-Wl,'
8980      # PIC (with -KPIC) is the default.
8981      lt_prog_compiler_static='-non_shared'
8982      ;;
8983
8984    newsos6)
8985      lt_prog_compiler_pic='-KPIC'
8986      lt_prog_compiler_static='-Bstatic'
8987      ;;
8988
8989    linux*)
8990      case $cc_basename in
8991      icc* | ecc*)
8992        lt_prog_compiler_wl='-Wl,'
8993        lt_prog_compiler_pic='-KPIC'
8994        lt_prog_compiler_static='-static'
8995        ;;
8996      pgcc* | pgf77* | pgf90* | pgf95*)
8997        # Portland Group compilers (*not* the Pentium gcc compiler,
8998        # which looks to be a dead project)
8999        lt_prog_compiler_wl='-Wl,'
9000        lt_prog_compiler_pic='-fpic'
9001        lt_prog_compiler_static='-Bstatic'
9002        ;;
9003      ccc*)
9004        lt_prog_compiler_wl='-Wl,'
9005        # All Alpha code is PIC.
9006        lt_prog_compiler_static='-non_shared'
9007        ;;
9008      esac
9009      ;;
9010
9011    osf3* | osf4* | osf5*)
9012      lt_prog_compiler_wl='-Wl,'
9013      # All OSF/1 code is PIC.
9014      lt_prog_compiler_static='-non_shared'
9015      ;;
9016
9017    solaris*)
9018      lt_prog_compiler_pic='-KPIC'
9019      lt_prog_compiler_static='-Bstatic'
9020      case $cc_basename in
9021      f77* | f90* | f95*)
9022        lt_prog_compiler_wl='-Qoption ld ';;
9023      *)
9024        lt_prog_compiler_wl='-Wl,';;
9025      esac
9026      ;;
9027
9028    sunos4*)
9029      lt_prog_compiler_wl='-Qoption ld '
9030      lt_prog_compiler_pic='-PIC'
9031      lt_prog_compiler_static='-Bstatic'
9032      ;;
9033
9034    sysv4 | sysv4.2uw2* | sysv4.3*)
9035      lt_prog_compiler_wl='-Wl,'
9036      lt_prog_compiler_pic='-KPIC'
9037      lt_prog_compiler_static='-Bstatic'
9038      ;;
9039
9040    sysv4*MP*)
9041      if test -d /usr/nec ;then
9042        lt_prog_compiler_pic='-Kconform_pic'
9043        lt_prog_compiler_static='-Bstatic'
9044      fi
9045      ;;
9046
9047    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9048      lt_prog_compiler_wl='-Wl,'
9049      lt_prog_compiler_pic='-KPIC'
9050      lt_prog_compiler_static='-Bstatic'
9051      ;;
9052
9053    unicos*)
9054      lt_prog_compiler_wl='-Wl,'
9055      lt_prog_compiler_can_build_shared=no
9056      ;;
9057
9058    uts4*)
9059      lt_prog_compiler_pic='-pic'
9060      lt_prog_compiler_static='-Bstatic'
9061      ;;
9062
9063    *)
9064      lt_prog_compiler_can_build_shared=no
9065      ;;
9066    esac
9067  fi
9068
9069echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9070echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9071
9072#
9073# Check to make sure the PIC flag actually works.
9074#
9075if test -n "$lt_prog_compiler_pic"; then
9076
9077echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9078echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9079if test "${lt_prog_compiler_pic_works+set}" = set; then
9080  echo $ECHO_N "(cached) $ECHO_C" >&6
9081else
9082  lt_prog_compiler_pic_works=no
9083  ac_outfile=conftest.$ac_objext
9084   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9085   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9086   # Insert the option either (1) after the last *FLAGS variable, or
9087   # (2) before a word containing "conftest.", or (3) at the end.
9088   # Note that $ac_compile itself does not contain backslashes and begins
9089   # with a dollar sign (not a hyphen), so the echo should work correctly.
9090   # The option is referenced via a variable to avoid confusing sed.
9091   lt_compile=`echo "$ac_compile" | $SED \
9092   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9093   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9094   -e 's:$: $lt_compiler_flag:'`
9095   (eval echo "\"\$as_me:9095: $lt_compile\"" >&5)
9096   (eval "$lt_compile" 2>conftest.err)
9097   ac_status=$?
9098   cat conftest.err >&5
9099   echo "$as_me:9099: \$? = $ac_status" >&5
9100   if (exit $ac_status) && test -s "$ac_outfile"; then
9101     # The compiler can only warn and ignore the option if not recognized
9102     # So say no if there are warnings other than the usual output.
9103     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9104     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9105     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9106       lt_prog_compiler_pic_works=yes
9107     fi
9108   fi
9109   $rm conftest*
9110
9111fi
9112echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9113echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9114
9115if test x"$lt_prog_compiler_pic_works" = xyes; then
9116    case $lt_prog_compiler_pic in
9117     "" | " "*) ;;
9118     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9119     esac
9120else
9121    lt_prog_compiler_pic=
9122     lt_prog_compiler_can_build_shared=no
9123fi
9124
9125fi
9126case $host_os in
9127  # For platforms which do not support PIC, -DPIC is meaningless:
9128  *djgpp*)
9129    lt_prog_compiler_pic=
9130    ;;
9131  *)
9132    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9133    ;;
9134esac
9135
9136#
9137# Check to make sure the static flag actually works.
9138#
9139wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9140echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9141echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9142if test "${lt_prog_compiler_static_works+set}" = set; then
9143  echo $ECHO_N "(cached) $ECHO_C" >&6
9144else
9145  lt_prog_compiler_static_works=no
9146   save_LDFLAGS="$LDFLAGS"
9147   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9148   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9149   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9150     # The linker can only warn and ignore the option if not recognized
9151     # So say no if there are warnings
9152     if test -s conftest.err; then
9153       # Append any errors to the config.log.
9154       cat conftest.err 1>&5
9155       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9156       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9157       if diff conftest.exp conftest.er2 >/dev/null; then
9158         lt_prog_compiler_static_works=yes
9159       fi
9160     else
9161       lt_prog_compiler_static_works=yes
9162     fi
9163   fi
9164   $rm conftest*
9165   LDFLAGS="$save_LDFLAGS"
9166
9167fi
9168echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9169echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9170
9171if test x"$lt_prog_compiler_static_works" = xyes; then
9172    :
9173else
9174    lt_prog_compiler_static=
9175fi
9176
9177
9178echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9179echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9180if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9181  echo $ECHO_N "(cached) $ECHO_C" >&6
9182else
9183  lt_cv_prog_compiler_c_o=no
9184   $rm -r conftest 2>/dev/null
9185   mkdir conftest
9186   cd conftest
9187   mkdir out
9188   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9189
9190   lt_compiler_flag="-o out/conftest2.$ac_objext"
9191   # Insert the option either (1) after the last *FLAGS variable, or
9192   # (2) before a word containing "conftest.", or (3) at the end.
9193   # Note that $ac_compile itself does not contain backslashes and begins
9194   # with a dollar sign (not a hyphen), so the echo should work correctly.
9195   lt_compile=`echo "$ac_compile" | $SED \
9196   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9197   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9198   -e 's:$: $lt_compiler_flag:'`
9199   (eval echo "\"\$as_me:9199: $lt_compile\"" >&5)
9200   (eval "$lt_compile" 2>out/conftest.err)
9201   ac_status=$?
9202   cat out/conftest.err >&5
9203   echo "$as_me:9203: \$? = $ac_status" >&5
9204   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9205   then
9206     # The compiler can only warn and ignore the option if not recognized
9207     # So say no if there are warnings
9208     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9209     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9210     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9211       lt_cv_prog_compiler_c_o=yes
9212     fi
9213   fi
9214   chmod u+w . 2>&5
9215   $rm conftest*
9216   # SGI C++ compiler will create directory out/ii_files/ for
9217   # template instantiation
9218   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9219   $rm out/* && rmdir out
9220   cd ..
9221   rmdir conftest
9222   $rm conftest*
9223
9224fi
9225echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9226echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9227
9228
9229hard_links="nottested"
9230if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9231  # do not overwrite the value of need_locks provided by the user
9232  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9233echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9234  hard_links=yes
9235  $rm conftest*
9236  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9237  touch conftest.a
9238  ln conftest.a conftest.b 2>&5 || hard_links=no
9239  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9240  echo "$as_me:$LINENO: result: $hard_links" >&5
9241echo "${ECHO_T}$hard_links" >&6
9242  if test "$hard_links" = no; then
9243    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9244echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9245    need_locks=warn
9246  fi
9247else
9248  need_locks=no
9249fi
9250
9251echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9252echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9253
9254  runpath_var=
9255  allow_undefined_flag=
9256  enable_shared_with_static_runtimes=no
9257  archive_cmds=
9258  archive_expsym_cmds=
9259  old_archive_From_new_cmds=
9260  old_archive_from_expsyms_cmds=
9261  export_dynamic_flag_spec=
9262  whole_archive_flag_spec=
9263  thread_safe_flag_spec=
9264  hardcode_libdir_flag_spec=
9265  hardcode_libdir_flag_spec_ld=
9266  hardcode_libdir_separator=
9267  hardcode_direct=no
9268  hardcode_minus_L=no
9269  hardcode_shlibpath_var=unsupported
9270  link_all_deplibs=unknown
9271  hardcode_automatic=no
9272  module_cmds=
9273  module_expsym_cmds=
9274  always_export_symbols=no
9275  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9276  # include_expsyms should be a list of space-separated symbols to be *always*
9277  # included in the symbol list
9278  include_expsyms=
9279  # exclude_expsyms can be an extended regexp of symbols to exclude
9280  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9281  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9282  # as well as any symbol that contains `d'.
9283  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9284  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9285  # platforms (ab)use it in PIC code, but their linkers get confused if
9286  # the symbol is explicitly referenced.  Since portable code cannot
9287  # rely on this symbol name, it's probably fine to never include it in
9288  # preloaded symbol tables.
9289  extract_expsyms_cmds=
9290  # Just being paranoid about ensuring that cc_basename is set.
9291  for cc_temp in $compiler""; do
9292  case $cc_temp in
9293    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9294    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9295    \-*) ;;
9296    *) break;;
9297  esac
9298done
9299cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9300
9301  case $host_os in
9302  cygwin* | mingw* | pw32*)
9303    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9304    # When not using gcc, we currently assume that we are using
9305    # Microsoft Visual C++.
9306    if test "$GCC" != yes; then
9307      with_gnu_ld=no
9308    fi
9309    ;;
9310  interix*)
9311    # we just hope/assume this is gcc and not c89 (= MSVC++)
9312    with_gnu_ld=yes
9313    ;;
9314  openbsd*)
9315    with_gnu_ld=no
9316    ;;
9317  esac
9318
9319  ld_shlibs=yes
9320  if test "$with_gnu_ld" = yes; then
9321    # If archive_cmds runs LD, not CC, wlarc should be empty
9322    wlarc='${wl}'
9323
9324    # Set some defaults for GNU ld with shared library support. These
9325    # are reset later if shared libraries are not supported. Putting them
9326    # here allows them to be overridden if necessary.
9327    runpath_var=LD_RUN_PATH
9328    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9329    export_dynamic_flag_spec='${wl}--export-dynamic'
9330    # ancient GNU ld didn't support --whole-archive et. al.
9331    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9332        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9333      else
9334        whole_archive_flag_spec=
9335    fi
9336    supports_anon_versioning=no
9337    case `$LD -v 2>/dev/null` in
9338      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9339      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9340      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9341      *\ 2.11.*) ;; # other 2.11 versions
9342      *) supports_anon_versioning=yes ;;
9343    esac
9344
9345    # See if GNU ld supports shared libraries.
9346    case $host_os in
9347    aix3* | aix4* | aix5*)
9348      # On AIX/PPC, the GNU linker is very broken
9349      if test "$host_cpu" != ia64; then
9350        ld_shlibs=no
9351        cat <<EOF 1>&2
9352
9353*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9354*** to be unable to reliably create shared libraries on AIX.
9355*** Therefore, libtool is disabling shared libraries support.  If you
9356*** really care for shared libraries, you may want to modify your PATH
9357*** so that a non-GNU linker is found, and then restart.
9358
9359EOF
9360      fi
9361      ;;
9362
9363    amigaos*)
9364      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)'
9365      hardcode_libdir_flag_spec='-L$libdir'
9366      hardcode_minus_L=yes
9367
9368      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9369      # that the semantics of dynamic libraries on AmigaOS, at least up
9370      # to version 4, is to share data among multiple programs linked
9371      # with the same dynamic library.  Since this doesn't match the
9372      # behavior of shared libraries on other platforms, we can't use
9373      # them.
9374      ld_shlibs=no
9375      ;;
9376
9377    beos*)
9378      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9379        allow_undefined_flag=unsupported
9380        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9381        # support --undefined.  This deserves some investigation.  FIXME
9382        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383      else
9384        ld_shlibs=no
9385      fi
9386      ;;
9387
9388    cygwin* | mingw* | pw32*)
9389      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9390      # as there is no search path for DLLs.
9391      hardcode_libdir_flag_spec='-L$libdir'
9392      allow_undefined_flag=unsupported
9393      always_export_symbols=no
9394      enable_shared_with_static_runtimes=yes
9395      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9396
9397      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9398        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9399        # If the export-symbols file already is a .def file (1st line
9400        # is EXPORTS), use it as is; otherwise, prepend...
9401        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9402          cp $export_symbols $output_objdir/$soname.def;
9403        else
9404          echo EXPORTS > $output_objdir/$soname.def;
9405          cat $export_symbols >> $output_objdir/$soname.def;
9406        fi~
9407        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9408      else
9409        ld_shlibs=no
9410      fi
9411      ;;
9412
9413    interix3*)
9414      hardcode_direct=no
9415      hardcode_shlibpath_var=no
9416      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9417      export_dynamic_flag_spec='${wl}-E'
9418      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9419      # Instead, shared libraries are loaded at an image base (0x10000000 by
9420      # default) and relocated if they conflict, which is a slow very memory
9421      # consuming and fragmenting process.  To avoid this, we pick a random,
9422      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9423      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9424      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9425      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'
9426      ;;
9427
9428    linux*)
9429      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9430        tmp_addflag=
9431        case $cc_basename,$host_cpu in
9432        pgcc*)                          # Portland Group C compiler
9433          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'
9434          tmp_addflag=' $pic_flag'
9435          ;;
9436        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9437          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'
9438          tmp_addflag=' $pic_flag -Mnomain' ;;
9439        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9440          tmp_addflag=' -i_dynamic' ;;
9441        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9442          tmp_addflag=' -i_dynamic -nofor_main' ;;
9443        ifc* | ifort*)                  # Intel Fortran compiler
9444          tmp_addflag=' -nofor_main' ;;
9445        esac
9446        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447
9448        if test $supports_anon_versioning = yes; then
9449          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9450  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9451  $echo "local: *; };" >> $output_objdir/$libname.ver~
9452          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9453        fi
9454      else
9455        ld_shlibs=no
9456      fi
9457      ;;
9458
9459    netbsd*)
9460      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9461        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9462        wlarc=
9463      else
9464        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9466      fi
9467      ;;
9468
9469    solaris*)
9470      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9471        ld_shlibs=no
9472        cat <<EOF 1>&2
9473
9474*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9475*** create shared libraries on Solaris systems.  Therefore, libtool
9476*** is disabling shared libraries support.  We urge you to upgrade GNU
9477*** binutils to release 2.9.1 or newer.  Another option is to modify
9478*** your PATH or compiler configuration so that the native linker is
9479*** used, and then restart.
9480
9481EOF
9482      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9483        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9485      else
9486        ld_shlibs=no
9487      fi
9488      ;;
9489
9490    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9491      case `$LD -v 2>&1` in
9492        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9493        ld_shlibs=no
9494        cat <<_LT_EOF 1>&2
9495
9496*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9497*** reliably create shared libraries on SCO systems.  Therefore, libtool
9498*** is disabling shared libraries support.  We urge you to upgrade GNU
9499*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9500*** your PATH or compiler configuration so that the native linker is
9501*** used, and then restart.
9502
9503_LT_EOF
9504        ;;
9505        *)
9506          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9507            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9508            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9509            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9510          else
9511            ld_shlibs=no
9512          fi
9513        ;;
9514      esac
9515      ;;
9516
9517    sunos4*)
9518      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519      wlarc=
9520      hardcode_direct=yes
9521      hardcode_shlibpath_var=no
9522      ;;
9523
9524    *)
9525      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9526        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528      else
9529        ld_shlibs=no
9530      fi
9531      ;;
9532    esac
9533
9534    if test "$ld_shlibs" = no; then
9535      runpath_var=
9536      hardcode_libdir_flag_spec=
9537      export_dynamic_flag_spec=
9538      whole_archive_flag_spec=
9539    fi
9540  else
9541    # PORTME fill in a description of your system's linker (not GNU ld)
9542    case $host_os in
9543    aix3*)
9544      allow_undefined_flag=unsupported
9545      always_export_symbols=yes
9546      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'
9547      # Note: this linker hardcodes the directories in LIBPATH if there
9548      # are no directories specified by -L.
9549      hardcode_minus_L=yes
9550      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9551        # Neither direct hardcoding nor static linking is supported with a
9552        # broken collect2.
9553        hardcode_direct=unsupported
9554      fi
9555      ;;
9556
9557    aix4* | aix5*)
9558      if test "$host_cpu" = ia64; then
9559        # On IA64, the linker does run time linking by default, so we don't
9560        # have to do anything special.
9561        aix_use_runtimelinking=no
9562        exp_sym_flag='-Bexport'
9563        no_entry_flag=""
9564      else
9565        # If we're using GNU nm, then we don't want the "-C" option.
9566        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9567        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9568          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'
9569        else
9570          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'
9571        fi
9572        aix_use_runtimelinking=no
9573
9574        # Test if we are trying to use run time linking or normal
9575        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9576        # need to do runtime linking.
9577        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9578          for ld_flag in $LDFLAGS; do
9579          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9580            aix_use_runtimelinking=yes
9581            break
9582          fi
9583          done
9584          ;;
9585        esac
9586
9587        exp_sym_flag='-bexport'
9588        no_entry_flag='-bnoentry'
9589      fi
9590
9591      # When large executables or shared objects are built, AIX ld can
9592      # have problems creating the table of contents.  If linking a library
9593      # or program results in "error TOC overflow" add -mminimal-toc to
9594      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9595      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9596
9597      archive_cmds=''
9598      hardcode_direct=yes
9599      hardcode_libdir_separator=':'
9600      link_all_deplibs=yes
9601
9602      if test "$GCC" = yes; then
9603        case $host_os in aix4.[012]|aix4.[012].*)
9604        # We only want to do this on AIX 4.2 and lower, the check
9605        # below for broken collect2 doesn't work under 4.3+
9606          collect2name=`${CC} -print-prog-name=collect2`
9607          if test -f "$collect2name" && \
9608           strings "$collect2name" | grep resolve_lib_name >/dev/null
9609          then
9610          # We have reworked collect2
9611          hardcode_direct=yes
9612          else
9613          # We have old collect2
9614          hardcode_direct=unsupported
9615          # It fails to find uninstalled libraries when the uninstalled
9616          # path is not listed in the libpath.  Setting hardcode_minus_L
9617          # to unsupported forces relinking
9618          hardcode_minus_L=yes
9619          hardcode_libdir_flag_spec='-L$libdir'
9620          hardcode_libdir_separator=
9621          fi
9622          ;;
9623        esac
9624        shared_flag='-shared'
9625        if test "$aix_use_runtimelinking" = yes; then
9626          shared_flag="$shared_flag "'${wl}-G'
9627        fi
9628      else
9629        # not using gcc
9630        if test "$host_cpu" = ia64; then
9631        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9632        # chokes on -Wl,-G. The following line is correct:
9633          shared_flag='-G'
9634        else
9635          if test "$aix_use_runtimelinking" = yes; then
9636            shared_flag='${wl}-G'
9637          else
9638            shared_flag='${wl}-bM:SRE'
9639          fi
9640        fi
9641      fi
9642
9643      # It seems that -bexpall does not export symbols beginning with
9644      # underscore (_), so it is better to generate a list of symbols to export.
9645      always_export_symbols=yes
9646      if test "$aix_use_runtimelinking" = yes; then
9647        # Warning - without using the other runtime loading flags (-brtl),
9648        # -berok will link without error, but may produce a broken library.
9649        allow_undefined_flag='-berok'
9650       # Determine the default libpath from the value encoded in an empty executable.
9651       cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h.  */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h.  */
9657
9658#ifdef F77_DUMMY_MAIN
9659
9660#  ifdef __cplusplus
9661     extern "C"
9662#  endif
9663   int F77_DUMMY_MAIN() { return 1; }
9664
9665#endif
9666int
9667main ()
9668{
9669
9670  ;
9671  return 0;
9672}
9673_ACEOF
9674rm -f conftest.$ac_objext conftest$ac_exeext
9675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676  (eval $ac_link) 2>conftest.er1
9677  ac_status=$?
9678  grep -v '^ *+' conftest.er1 >conftest.err
9679  rm -f conftest.er1
9680  cat conftest.err >&5
9681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682  (exit $ac_status); } &&
9683         { ac_try='test -z "$ac_c_werror_flag"
9684                         || test ! -s conftest.err'
9685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686  (eval $ac_try) 2>&5
9687  ac_status=$?
9688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689  (exit $ac_status); }; } &&
9690         { ac_try='test -s conftest$ac_exeext'
9691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692  (eval $ac_try) 2>&5
9693  ac_status=$?
9694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695  (exit $ac_status); }; }; then
9696
9697aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9698}'`
9699# Check for a 64-bit object if we didn't find anything.
9700if 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; }
9701}'`; fi
9702else
9703  echo "$as_me: failed program was:" >&5
9704sed 's/^/| /' conftest.$ac_ext >&5
9705
9706fi
9707rm -f conftest.err conftest.$ac_objext \
9708      conftest$ac_exeext conftest.$ac_ext
9709if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9710
9711       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9712        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"
9713       else
9714        if test "$host_cpu" = ia64; then
9715          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9716          allow_undefined_flag="-z nodefs"
9717          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"
9718        else
9719         # Determine the default libpath from the value encoded in an empty executable.
9720         cat >conftest.$ac_ext <<_ACEOF
9721/* confdefs.h.  */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h.  */
9726
9727#ifdef F77_DUMMY_MAIN
9728
9729#  ifdef __cplusplus
9730     extern "C"
9731#  endif
9732   int F77_DUMMY_MAIN() { return 1; }
9733
9734#endif
9735int
9736main ()
9737{
9738
9739  ;
9740  return 0;
9741}
9742_ACEOF
9743rm -f conftest.$ac_objext conftest$ac_exeext
9744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745  (eval $ac_link) 2>conftest.er1
9746  ac_status=$?
9747  grep -v '^ *+' conftest.er1 >conftest.err
9748  rm -f conftest.er1
9749  cat conftest.err >&5
9750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751  (exit $ac_status); } &&
9752         { ac_try='test -z "$ac_c_werror_flag"
9753                         || test ! -s conftest.err'
9754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755  (eval $ac_try) 2>&5
9756  ac_status=$?
9757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758  (exit $ac_status); }; } &&
9759         { ac_try='test -s conftest$ac_exeext'
9760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761  (eval $ac_try) 2>&5
9762  ac_status=$?
9763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764  (exit $ac_status); }; }; then
9765
9766aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9767}'`
9768# Check for a 64-bit object if we didn't find anything.
9769if 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; }
9770}'`; fi
9771else
9772  echo "$as_me: failed program was:" >&5
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
9775fi
9776rm -f conftest.err conftest.$ac_objext \
9777      conftest$ac_exeext conftest.$ac_ext
9778if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9779
9780         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9781          # Warning - without using the other run time loading flags,
9782          # -berok will link without error, but may produce a broken library.
9783          no_undefined_flag=' ${wl}-bernotok'
9784          allow_undefined_flag=' ${wl}-berok'
9785          # Exported symbols can be pulled into shared objects from archives
9786          whole_archive_flag_spec='$convenience'
9787          archive_cmds_need_lc=yes
9788          # This is similar to how AIX traditionally builds its shared libraries.
9789          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'
9790        fi
9791      fi
9792      ;;
9793
9794    amigaos*)
9795      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)'
9796      hardcode_libdir_flag_spec='-L$libdir'
9797      hardcode_minus_L=yes
9798      # see comment about different semantics on the GNU ld section
9799      ld_shlibs=no
9800      ;;
9801
9802    bsdi[45]*)
9803      export_dynamic_flag_spec=-rdynamic
9804      ;;
9805
9806    cygwin* | mingw* | pw32*)
9807      # When not using gcc, we currently assume that we are using
9808      # Microsoft Visual C++.
9809      # hardcode_libdir_flag_spec is actually meaningless, as there is
9810      # no search path for DLLs.
9811      hardcode_libdir_flag_spec=' '
9812      allow_undefined_flag=unsupported
9813      # Tell ltmain to make .lib files, not .a files.
9814      libext=lib
9815      # Tell ltmain to make .dll files, not .so files.
9816      shrext_cmds=".dll"
9817      # FIXME: Setting linknames here is a bad hack.
9818      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9819      # The linker will automatically build a .lib file if we build a DLL.
9820      old_archive_From_new_cmds='true'
9821      # FIXME: Should let the user specify the lib program.
9822      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9823      fix_srcfile_path='`cygpath -w "$srcfile"`'
9824      enable_shared_with_static_runtimes=yes
9825      ;;
9826
9827    darwin* | rhapsody*)
9828      case $host_os in
9829        rhapsody* | darwin1.[012])
9830         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9831         ;;
9832       *) # Darwin 1.3 on
9833         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9834           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9835         else
9836           case ${MACOSX_DEPLOYMENT_TARGET} in
9837             10.[012])
9838               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9839               ;;
9840             10.*)
9841               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9842               ;;
9843           esac
9844         fi
9845         ;;
9846      esac
9847      archive_cmds_need_lc=no
9848      hardcode_direct=no
9849      hardcode_automatic=yes
9850      hardcode_shlibpath_var=unsupported
9851      whole_archive_flag_spec=''
9852      link_all_deplibs=yes
9853    if test "$GCC" = yes ; then
9854        output_verbose_link_cmd='echo'
9855        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9856      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9857      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9858      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}'
9859      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}'
9860    else
9861      case $cc_basename in
9862        xlc*)
9863         output_verbose_link_cmd='echo'
9864         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9865         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9866          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9867         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}'
9868          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}'
9869          ;;
9870       *)
9871         ld_shlibs=no
9872          ;;
9873      esac
9874    fi
9875      ;;
9876
9877    dgux*)
9878      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9879      hardcode_libdir_flag_spec='-L$libdir'
9880      hardcode_shlibpath_var=no
9881      ;;
9882
9883    freebsd1*)
9884      ld_shlibs=no
9885      ;;
9886
9887    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9888    # support.  Future versions do this automatically, but an explicit c++rt0.o
9889    # does not break anything, and helps significantly (at the cost of a little
9890    # extra space).
9891    freebsd2.2*)
9892      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9893      hardcode_libdir_flag_spec='-R$libdir'
9894      hardcode_direct=yes
9895      hardcode_shlibpath_var=no
9896      ;;
9897
9898    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9899    freebsd2*)
9900      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9901      hardcode_direct=yes
9902      hardcode_minus_L=yes
9903      hardcode_shlibpath_var=no
9904      ;;
9905
9906    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9907    freebsd* | kfreebsd*-gnu | dragonfly*)
9908      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9909      hardcode_libdir_flag_spec='-R$libdir'
9910      hardcode_direct=yes
9911      hardcode_shlibpath_var=no
9912      ;;
9913
9914    hpux9*)
9915      if test "$GCC" = yes; then
9916        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'
9917      else
9918        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'
9919      fi
9920      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9921      hardcode_libdir_separator=:
9922      hardcode_direct=yes
9923
9924      # hardcode_minus_L: Not really in the search PATH,
9925      # but as the default location of the library.
9926      hardcode_minus_L=yes
9927      export_dynamic_flag_spec='${wl}-E'
9928      ;;
9929
9930    hpux10*)
9931      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9932        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9933      else
9934        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9935      fi
9936      if test "$with_gnu_ld" = no; then
9937        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9938        hardcode_libdir_separator=:
9939
9940        hardcode_direct=yes
9941        export_dynamic_flag_spec='${wl}-E'
9942
9943        # hardcode_minus_L: Not really in the search PATH,
9944        # but as the default location of the library.
9945        hardcode_minus_L=yes
9946      fi
9947      ;;
9948
9949    hpux11*)
9950      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9951        case $host_cpu in
9952        hppa*64*)
9953          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9954          ;;
9955        ia64*)
9956          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9957          ;;
9958        *)
9959          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9960          ;;
9961        esac
9962      else
9963        case $host_cpu in
9964        hppa*64*)
9965          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9966          ;;
9967        ia64*)
9968          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9969          ;;
9970        *)
9971          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9972          ;;
9973        esac
9974      fi
9975      if test "$with_gnu_ld" = no; then
9976        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9977        hardcode_libdir_separator=:
9978
9979        case $host_cpu in
9980        hppa*64*|ia64*)
9981          hardcode_libdir_flag_spec_ld='+b $libdir'
9982          hardcode_direct=no
9983          hardcode_shlibpath_var=no
9984          ;;
9985        *)
9986          hardcode_direct=yes
9987          export_dynamic_flag_spec='${wl}-E'
9988
9989          # hardcode_minus_L: Not really in the search PATH,
9990          # but as the default location of the library.
9991          hardcode_minus_L=yes
9992          ;;
9993        esac
9994      fi
9995      ;;
9996
9997    irix5* | irix6* | nonstopux*)
9998      if test "$GCC" = yes; then
9999        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'
10000      else
10001        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'
10002        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10003      fi
10004      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10005      hardcode_libdir_separator=:
10006      link_all_deplibs=yes
10007      ;;
10008
10009    netbsd*)
10010      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10011        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10012      else
10013        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10014      fi
10015      hardcode_libdir_flag_spec='-R$libdir'
10016      hardcode_direct=yes
10017      hardcode_shlibpath_var=no
10018      ;;
10019
10020    newsos6)
10021      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022      hardcode_direct=yes
10023      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10024      hardcode_libdir_separator=:
10025      hardcode_shlibpath_var=no
10026      ;;
10027
10028    openbsd*)
10029      hardcode_direct=yes
10030      hardcode_shlibpath_var=no
10031      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10032        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10033        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10034        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10035        export_dynamic_flag_spec='${wl}-E'
10036      else
10037       case $host_os in
10038         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10039           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10040           hardcode_libdir_flag_spec='-R$libdir'
10041           ;;
10042         *)
10043           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10044           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10045           ;;
10046       esac
10047      fi
10048      ;;
10049
10050    os2*)
10051      hardcode_libdir_flag_spec='-L$libdir'
10052      hardcode_minus_L=yes
10053      allow_undefined_flag=unsupported
10054      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'
10055      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10056      ;;
10057
10058    osf3*)
10059      if test "$GCC" = yes; then
10060        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10061        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'
10062      else
10063        allow_undefined_flag=' -expect_unresolved \*'
10064        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'
10065      fi
10066      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10067      hardcode_libdir_separator=:
10068      ;;
10069
10070    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10071      if test "$GCC" = yes; then
10072        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10073        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'
10074        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10075      else
10076        allow_undefined_flag=' -expect_unresolved \*'
10077        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'
10078        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10079        $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'
10080
10081        # Both c and cxx compiler support -rpath directly
10082        hardcode_libdir_flag_spec='-rpath $libdir'
10083      fi
10084      hardcode_libdir_separator=:
10085      ;;
10086
10087    solaris*)
10088      no_undefined_flag=' -z text'
10089      if test "$GCC" = yes; then
10090        wlarc='${wl}'
10091        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10092        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10093          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10094      else
10095        wlarc=''
10096        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10097        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10098        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10099      fi
10100      hardcode_libdir_flag_spec='-R$libdir'
10101      hardcode_shlibpath_var=no
10102      case $host_os in
10103      solaris2.[0-5] | solaris2.[0-5].*) ;;
10104      *)
10105        # The compiler driver will combine linker options so we
10106        # cannot just pass the convience library names through
10107        # without $wl, iff we do not link with $LD.
10108        # Luckily, gcc supports the same syntax we need for Sun Studio.
10109        # Supported since Solaris 2.6 (maybe 2.5.1?)
10110        case $wlarc in
10111        '')
10112          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10113        *)
10114          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' ;;
10115        esac ;;
10116      esac
10117      link_all_deplibs=yes
10118      ;;
10119
10120    sunos4*)
10121      if test "x$host_vendor" = xsequent; then
10122        # Use $CC to link under sequent, because it throws in some extra .o
10123        # files that make .init and .fini sections work.
10124        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10125      else
10126        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10127      fi
10128      hardcode_libdir_flag_spec='-L$libdir'
10129      hardcode_direct=yes
10130      hardcode_minus_L=yes
10131      hardcode_shlibpath_var=no
10132      ;;
10133
10134    sysv4)
10135      case $host_vendor in
10136        sni)
10137          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138          hardcode_direct=yes # is this really true???
10139        ;;
10140        siemens)
10141          ## LD is ld it makes a PLAMLIB
10142          ## CC just makes a GrossModule.
10143          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10144          reload_cmds='$CC -r -o $output$reload_objs'
10145          hardcode_direct=no
10146        ;;
10147        motorola)
10148          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10150        ;;
10151      esac
10152      runpath_var='LD_RUN_PATH'
10153      hardcode_shlibpath_var=no
10154      ;;
10155
10156    sysv4.3*)
10157      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158      hardcode_shlibpath_var=no
10159      export_dynamic_flag_spec='-Bexport'
10160      ;;
10161
10162    sysv4*MP*)
10163      if test -d /usr/nec; then
10164        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165        hardcode_shlibpath_var=no
10166        runpath_var=LD_RUN_PATH
10167        hardcode_runpath_var=yes
10168        ld_shlibs=yes
10169      fi
10170      ;;
10171
10172    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10173      no_undefined_flag='${wl}-z,text'
10174      archive_cmds_need_lc=no
10175      hardcode_shlibpath_var=no
10176      runpath_var='LD_RUN_PATH'
10177
10178      if test "$GCC" = yes; then
10179        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181      else
10182        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184      fi
10185      ;;
10186
10187    sysv5* | sco3.2v5* | sco5v6*)
10188      # Note: We can NOT use -z defs as we might desire, because we do not
10189      # link with -lc, and that would cause any symbols used from libc to
10190      # always be unresolved, which means just about no library would
10191      # ever link correctly.  If we're not using GNU ld we use -z text
10192      # though, which does catch some bad symbols but isn't as heavy-handed
10193      # as -z defs.
10194      no_undefined_flag='${wl}-z,text'
10195      allow_undefined_flag='${wl}-z,nodefs'
10196      archive_cmds_need_lc=no
10197      hardcode_shlibpath_var=no
10198      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10199      hardcode_libdir_separator=':'
10200      link_all_deplibs=yes
10201      export_dynamic_flag_spec='${wl}-Bexport'
10202      runpath_var='LD_RUN_PATH'
10203
10204      if test "$GCC" = yes; then
10205        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10206        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10207      else
10208        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10209        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10210      fi
10211      ;;
10212
10213    uts4*)
10214      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215      hardcode_libdir_flag_spec='-L$libdir'
10216      hardcode_shlibpath_var=no
10217      ;;
10218
10219    *)
10220      ld_shlibs=no
10221      ;;
10222    esac
10223  fi
10224
10225echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10226echo "${ECHO_T}$ld_shlibs" >&6
10227test "$ld_shlibs" = no && can_build_shared=no
10228
10229#
10230# Do we need to explicitly link libc?
10231#
10232case "x$archive_cmds_need_lc" in
10233x|xyes)
10234  # Assume -lc should be added
10235  archive_cmds_need_lc=yes
10236
10237  if test "$enable_shared" = yes && test "$GCC" = yes; then
10238    case $archive_cmds in
10239    *'~'*)
10240      # FIXME: we may have to deal with multi-command sequences.
10241      ;;
10242    '$CC '*)
10243      # Test whether the compiler implicitly links with -lc since on some
10244      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10245      # to ld, don't add -lc before -lgcc.
10246      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10247echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10248      $rm conftest*
10249      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10250
10251      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252  (eval $ac_compile) 2>&5
10253  ac_status=$?
10254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255  (exit $ac_status); } 2>conftest.err; then
10256        soname=conftest
10257        lib=conftest
10258        libobjs=conftest.$ac_objext
10259        deplibs=
10260        wl=$lt_prog_compiler_wl
10261        pic_flag=$lt_prog_compiler_pic
10262        compiler_flags=-v
10263        linker_flags=-v
10264        verstring=
10265        output_objdir=.
10266        libname=conftest
10267        lt_save_allow_undefined_flag=$allow_undefined_flag
10268        allow_undefined_flag=
10269        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10270  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10271  ac_status=$?
10272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273  (exit $ac_status); }
10274        then
10275          archive_cmds_need_lc=no
10276        else
10277          archive_cmds_need_lc=yes
10278        fi
10279        allow_undefined_flag=$lt_save_allow_undefined_flag
10280      else
10281        cat conftest.err 1>&5
10282      fi
10283      $rm conftest*
10284      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10285echo "${ECHO_T}$archive_cmds_need_lc" >&6
10286      ;;
10287    esac
10288  fi
10289  ;;
10290esac
10291
10292echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10293echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10294library_names_spec=
10295libname_spec='lib$name'
10296soname_spec=
10297shrext_cmds=".so"
10298postinstall_cmds=
10299postuninstall_cmds=
10300finish_cmds=
10301finish_eval=
10302shlibpath_var=
10303shlibpath_overrides_runpath=unknown
10304version_type=none
10305dynamic_linker="$host_os ld.so"
10306sys_lib_dlsearch_path_spec="/lib /usr/lib"
10307if test "$GCC" = yes; then
10308  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10309  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10310    # if the path contains ";" then we assume it to be the separator
10311    # otherwise default to the standard path separator (i.e. ":") - it is
10312    # assumed that no part of a normal pathname contains ";" but that should
10313    # okay in the real world where ";" in dirpaths is itself problematic.
10314    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10315  else
10316    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10317  fi
10318else
10319  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10320fi
10321need_lib_prefix=unknown
10322hardcode_into_libs=no
10323
10324# when you set need_version to no, make sure it does not cause -set_version
10325# flags to be left without arguments
10326need_version=unknown
10327
10328case $host_os in
10329aix3*)
10330  version_type=linux
10331  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10332  shlibpath_var=LIBPATH
10333
10334  # AIX 3 has no versioning support, so we append a major version to the name.
10335  soname_spec='${libname}${release}${shared_ext}$major'
10336  ;;
10337
10338aix4* | aix5*)
10339  version_type=linux
10340  need_lib_prefix=no
10341  need_version=no
10342  hardcode_into_libs=yes
10343  if test "$host_cpu" = ia64; then
10344    # AIX 5 supports IA64
10345    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10346    shlibpath_var=LD_LIBRARY_PATH
10347  else
10348    # With GCC up to 2.95.x, collect2 would create an import file
10349    # for dependence libraries.  The import file would start with
10350    # the line `#! .'.  This would cause the generated library to
10351    # depend on `.', always an invalid library.  This was fixed in
10352    # development snapshots of GCC prior to 3.0.
10353    case $host_os in
10354      aix4 | aix4.[01] | aix4.[01].*)
10355      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10356           echo ' yes '
10357           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10358        :
10359      else
10360        can_build_shared=no
10361      fi
10362      ;;
10363    esac
10364    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10365    # soname into executable. Probably we can add versioning support to
10366    # collect2, so additional links can be useful in future.
10367    if test "$aix_use_runtimelinking" = yes; then
10368      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10369      # instead of lib<name>.a to let people know that these are not
10370      # typical AIX shared libraries.
10371      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372    else
10373      # We preserve .a as extension for shared libraries through AIX4.2
10374      # and later when we are not doing run time linking.
10375      library_names_spec='${libname}${release}.a $libname.a'
10376      soname_spec='${libname}${release}${shared_ext}$major'
10377    fi
10378    shlibpath_var=LIBPATH
10379  fi
10380  ;;
10381
10382amigaos*)
10383  library_names_spec='$libname.ixlibrary $libname.a'
10384  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10385  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'
10386  ;;
10387
10388beos*)
10389  library_names_spec='${libname}${shared_ext}'
10390  dynamic_linker="$host_os ld.so"
10391  shlibpath_var=LIBRARY_PATH
10392  ;;
10393
10394bsdi[45]*)
10395  version_type=linux
10396  need_version=no
10397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398  soname_spec='${libname}${release}${shared_ext}$major'
10399  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10400  shlibpath_var=LD_LIBRARY_PATH
10401  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10402  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10403  # the default ld.so.conf also contains /usr/contrib/lib and
10404  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10405  # libtool to hard-code these into programs
10406  ;;
10407
10408cygwin* | mingw* | pw32*)
10409  version_type=windows
10410  shrext_cmds=".dll"
10411  need_version=no
10412  need_lib_prefix=no
10413
10414  case $GCC,$host_os in
10415  yes,cygwin* | yes,mingw* | yes,pw32*)
10416    library_names_spec='$libname.dll.a'
10417    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10418    postinstall_cmds='base_file=`basename \${file}`~
10419      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10420      dldir=$destdir/`dirname \$dlpath`~
10421      test -d \$dldir || mkdir -p \$dldir~
10422      $install_prog $dir/$dlname \$dldir/$dlname~
10423      chmod a+x \$dldir/$dlname'
10424    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10425      dlpath=$dir/\$dldll~
10426       $rm \$dlpath'
10427    shlibpath_overrides_runpath=yes
10428
10429    case $host_os in
10430    cygwin*)
10431      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10432      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10433      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10434      ;;
10435    mingw*)
10436      # MinGW DLLs use traditional 'lib' prefix
10437      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10438      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10439      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10440        # It is most probably a Windows format PATH printed by
10441        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10442        # path with ; separators, and with drive letters. We can handle the
10443        # drive letters (cygwin fileutils understands them), so leave them,
10444        # especially as we might pass files found there to a mingw objdump,
10445        # which wouldn't understand a cygwinified path. Ahh.
10446        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10447      else
10448        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10449      fi
10450      ;;
10451    pw32*)
10452      # pw32 DLLs use 'pw' prefix rather than 'lib'
10453      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10454      ;;
10455    esac
10456    ;;
10457
10458  *)
10459    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10460    ;;
10461  esac
10462  dynamic_linker='Win32 ld.exe'
10463  # FIXME: first we should search . and the directory the executable is in
10464  shlibpath_var=PATH
10465  ;;
10466
10467darwin* | rhapsody*)
10468  dynamic_linker="$host_os dyld"
10469  version_type=darwin
10470  need_lib_prefix=no
10471  need_version=no
10472  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10473  soname_spec='${libname}${release}${major}$shared_ext'
10474  shlibpath_overrides_runpath=yes
10475  shlibpath_var=DYLD_LIBRARY_PATH
10476  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10477  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10478  if test "$GCC" = yes; then
10479    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"`
10480  else
10481    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10482  fi
10483  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10484  ;;
10485
10486dgux*)
10487  version_type=linux
10488  need_lib_prefix=no
10489  need_version=no
10490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10491  soname_spec='${libname}${release}${shared_ext}$major'
10492  shlibpath_var=LD_LIBRARY_PATH
10493  ;;
10494
10495freebsd1*)
10496  dynamic_linker=no
10497  ;;
10498
10499kfreebsd*-gnu)
10500  version_type=linux
10501  need_lib_prefix=no
10502  need_version=no
10503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10504  soname_spec='${libname}${release}${shared_ext}$major'
10505  shlibpath_var=LD_LIBRARY_PATH
10506  shlibpath_overrides_runpath=no
10507  hardcode_into_libs=yes
10508  dynamic_linker='GNU ld.so'
10509  ;;
10510
10511freebsd* | dragonfly*)
10512  # DragonFly does not have aout.  When/if they implement a new
10513  # versioning mechanism, adjust this.
10514  if test -x /usr/bin/objformat; then
10515    objformat=`/usr/bin/objformat`
10516  else
10517    case $host_os in
10518    freebsd[123]*) objformat=aout ;;
10519    *) objformat=elf ;;
10520    esac
10521  fi
10522  version_type=freebsd-$objformat
10523  case $version_type in
10524    freebsd-elf*)
10525      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10526      need_version=no
10527      need_lib_prefix=no
10528      ;;
10529    freebsd-*)
10530      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10531      need_version=yes
10532      ;;
10533  esac
10534  shlibpath_var=LD_LIBRARY_PATH
10535  case $host_os in
10536  freebsd2*)
10537    shlibpath_overrides_runpath=yes
10538    ;;
10539  freebsd3.[01]* | freebsdelf3.[01]*)
10540    shlibpath_overrides_runpath=yes
10541    hardcode_into_libs=yes
10542    ;;
10543  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10544  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10545    shlibpath_overrides_runpath=no
10546    hardcode_into_libs=yes
10547    ;;
10548  freebsd*) # from 4.6 on
10549    shlibpath_overrides_runpath=yes
10550    hardcode_into_libs=yes
10551    ;;
10552  esac
10553  ;;
10554
10555gnu*)
10556  version_type=linux
10557  need_lib_prefix=no
10558  need_version=no
10559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10560  soname_spec='${libname}${release}${shared_ext}$major'
10561  shlibpath_var=LD_LIBRARY_PATH
10562  hardcode_into_libs=yes
10563  ;;
10564
10565hpux9* | hpux10* | hpux11*)
10566  # Give a soname corresponding to the major version so that dld.sl refuses to
10567  # link against other versions.
10568  version_type=sunos
10569  need_lib_prefix=no
10570  need_version=no
10571  case $host_cpu in
10572  ia64*)
10573    shrext_cmds='.so'
10574    hardcode_into_libs=yes
10575    dynamic_linker="$host_os dld.so"
10576    shlibpath_var=LD_LIBRARY_PATH
10577    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10578    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579    soname_spec='${libname}${release}${shared_ext}$major'
10580    if test "X$HPUX_IA64_MODE" = X32; then
10581      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10582    else
10583      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10584    fi
10585    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10586    ;;
10587   hppa*64*)
10588     shrext_cmds='.sl'
10589     hardcode_into_libs=yes
10590     dynamic_linker="$host_os dld.sl"
10591     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10592     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10596     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10597     ;;
10598   *)
10599    shrext_cmds='.sl'
10600    dynamic_linker="$host_os dld.sl"
10601    shlibpath_var=SHLIB_PATH
10602    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10603    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604    soname_spec='${libname}${release}${shared_ext}$major'
10605    ;;
10606  esac
10607  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10608  postinstall_cmds='chmod 555 $lib'
10609  ;;
10610
10611interix3*)
10612  version_type=linux
10613  need_lib_prefix=no
10614  need_version=no
10615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10616  soname_spec='${libname}${release}${shared_ext}$major'
10617  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10618  shlibpath_var=LD_LIBRARY_PATH
10619  shlibpath_overrides_runpath=no
10620  hardcode_into_libs=yes
10621  ;;
10622
10623irix5* | irix6* | nonstopux*)
10624  case $host_os in
10625    nonstopux*) version_type=nonstopux ;;
10626    *)
10627        if test "$lt_cv_prog_gnu_ld" = yes; then
10628                version_type=linux
10629        else
10630                version_type=irix
10631        fi ;;
10632  esac
10633  need_lib_prefix=no
10634  need_version=no
10635  soname_spec='${libname}${release}${shared_ext}$major'
10636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10637  case $host_os in
10638  irix5* | nonstopux*)
10639    libsuff= shlibsuff=
10640    ;;
10641  *)
10642    case $LD in # libtool.m4 will add one of these switches to LD
10643    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10644      libsuff= shlibsuff= libmagic=32-bit;;
10645    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10646      libsuff=32 shlibsuff=N32 libmagic=N32;;
10647    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10648      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10649    *) libsuff= shlibsuff= libmagic=never-match;;
10650    esac
10651    ;;
10652  esac
10653  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10654  shlibpath_overrides_runpath=no
10655  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10656  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10657  hardcode_into_libs=yes
10658  ;;
10659
10660# No shared lib support for Linux oldld, aout, or coff.
10661linux*oldld* | linux*aout* | linux*coff*)
10662  dynamic_linker=no
10663  ;;
10664
10665# This must be Linux ELF.
10666linux*)
10667  version_type=linux
10668  need_lib_prefix=no
10669  need_version=no
10670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671  soname_spec='${libname}${release}${shared_ext}$major'
10672  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10673  shlibpath_var=LD_LIBRARY_PATH
10674  shlibpath_overrides_runpath=no
10675  # This implies no fast_install, which is unacceptable.
10676  # Some rework will be needed to allow for fast_install
10677  # before this can be enabled.
10678  hardcode_into_libs=yes
10679
10680  # Append ld.so.conf contents to the search path
10681  if test -f /etc/ld.so.conf; then
10682    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' ' '`
10683    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10684  fi
10685
10686  # We used to test for /lib/ld.so.1 and disable shared libraries on
10687  # powerpc, because MkLinux only supported shared libraries with the
10688  # GNU dynamic linker.  Since this was broken with cross compilers,
10689  # most powerpc-linux boxes support dynamic linking these days and
10690  # people can always --disable-shared, the test was removed, and we
10691  # assume the GNU/Linux dynamic linker is in use.
10692  dynamic_linker='GNU/Linux ld.so'
10693  ;;
10694
10695knetbsd*-gnu)
10696  version_type=linux
10697  need_lib_prefix=no
10698  need_version=no
10699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10700  soname_spec='${libname}${release}${shared_ext}$major'
10701  shlibpath_var=LD_LIBRARY_PATH
10702  shlibpath_overrides_runpath=no
10703  hardcode_into_libs=yes
10704  dynamic_linker='GNU ld.so'
10705  ;;
10706
10707netbsd*)
10708  version_type=sunos
10709  need_lib_prefix=no
10710  need_version=no
10711  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10712    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10713    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10714    dynamic_linker='NetBSD (a.out) ld.so'
10715  else
10716    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10717    soname_spec='${libname}${release}${shared_ext}$major'
10718    dynamic_linker='NetBSD ld.elf_so'
10719  fi
10720  shlibpath_var=LD_LIBRARY_PATH
10721  shlibpath_overrides_runpath=yes
10722  hardcode_into_libs=yes
10723  ;;
10724
10725newsos6)
10726  version_type=linux
10727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728  shlibpath_var=LD_LIBRARY_PATH
10729  shlibpath_overrides_runpath=yes
10730  ;;
10731
10732nto-qnx*)
10733  version_type=linux
10734  need_lib_prefix=no
10735  need_version=no
10736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737  soname_spec='${libname}${release}${shared_ext}$major'
10738  shlibpath_var=LD_LIBRARY_PATH
10739  shlibpath_overrides_runpath=yes
10740  ;;
10741
10742openbsd*)
10743  version_type=sunos
10744  sys_lib_dlsearch_path_spec="/usr/lib"
10745  need_lib_prefix=no
10746  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10747  case $host_os in
10748    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10749    *)                         need_version=no  ;;
10750  esac
10751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10752  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10753  shlibpath_var=LD_LIBRARY_PATH
10754  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10755    case $host_os in
10756      openbsd2.[89] | openbsd2.[89].*)
10757        shlibpath_overrides_runpath=no
10758        ;;
10759      *)
10760        shlibpath_overrides_runpath=yes
10761        ;;
10762      esac
10763  else
10764    shlibpath_overrides_runpath=yes
10765  fi
10766  ;;
10767
10768os2*)
10769  libname_spec='$name'
10770  shrext_cmds=".dll"
10771  need_lib_prefix=no
10772  library_names_spec='$libname${shared_ext} $libname.a'
10773  dynamic_linker='OS/2 ld.exe'
10774  shlibpath_var=LIBPATH
10775  ;;
10776
10777osf3* | osf4* | osf5*)
10778  version_type=osf
10779  need_lib_prefix=no
10780  need_version=no
10781  soname_spec='${libname}${release}${shared_ext}$major'
10782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783  shlibpath_var=LD_LIBRARY_PATH
10784  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10785  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10786  ;;
10787
10788solaris*)
10789  version_type=linux
10790  need_lib_prefix=no
10791  need_v