source: ThirdParty/Mumps/stable/1.4/configure @ 2796

Last change on this file since 2796 was 2796, checked in by stefan, 7 years ago

restoring BuildTools/ThirdParty/Mumps?/stable/1.4

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