source: ThirdParty/HSL/trunk/configure @ 2968

Last change on this file since 2968 was 2968, checked in by tkr, 7 years ago

Re-running the autotools

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