source: ThirdParty/HSL/stable/1.3/configure @ 2930

Last change on this file since 2930 was 2930, checked in by stefan, 6 years ago

restoring BuildTools/ThirdParty?/HSL/stable/1.3

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