source: ThirdParty/HSL/releases/1.4.2/configure @ 2979

Last change on this file since 2979 was 2979, checked in by tkr, 6 years ago

Re-running the autotools

  • Property svn:executable set to *
File size: 892.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.4.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package BuildTools which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='1.4.2'
433PACKAGE_STRING='ThirdPartyHSL 1.4.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="coinhsl/common/deps.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COINHSL_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED FLIBS EGREP FC FCFLAGS ac_ct_FC LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE COIN_HAS_HSL_MA77_TRUE COIN_HAS_HSL_MA77_FALSE COIN_HAS_HSL_MA86_TRUE COIN_HAS_HSL_MA86_FALSE COIN_HAS_HSL_MA97_TRUE COIN_HAS_HSL_MA97_FALSE COIN_HAS_HSL_MC68_TRUE COIN_HAS_HSL_MC68_FALSE COIN_HAS_DEPSF90_TRUE COIN_HAS_DEPSF90_FALSE BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED HSL_CFLAGS HSL_LIBS HSL_PCLIBS HSL_PCREQUIRES HSL_DEPENDENCIES HSL_CFLAGS_INSTALLED HSL_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE BUILD_COINHSL_TRUE BUILD_COINHSL_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_FC_set=${FC+set}
981ac_env_FC_value=$FC
982ac_cv_env_FC_set=${FC+set}
983ac_cv_env_FC_value=$FC
984ac_env_FCFLAGS_set=${FCFLAGS+set}
985ac_env_FCFLAGS_value=$FCFLAGS
986ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
987ac_cv_env_FCFLAGS_value=$FCFLAGS
988ac_env_CPP_set=${CPP+set}
989ac_env_CPP_value=$CPP
990ac_cv_env_CPP_set=${CPP+set}
991ac_cv_env_CPP_value=$CPP
992ac_env_CXX_set=${CXX+set}
993ac_env_CXX_value=$CXX
994ac_cv_env_CXX_set=${CXX+set}
995ac_cv_env_CXX_value=$CXX
996ac_env_CXXFLAGS_set=${CXXFLAGS+set}
997ac_env_CXXFLAGS_value=$CXXFLAGS
998ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
999ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1000ac_env_CXXCPP_set=${CXXCPP+set}
1001ac_env_CXXCPP_value=$CXXCPP
1002ac_cv_env_CXXCPP_set=${CXXCPP+set}
1003ac_cv_env_CXXCPP_value=$CXXCPP
1004
1005#
1006# Report the --help message.
1007#
1008if test "$ac_init_help" = "long"; then
1009  # Omit some internal or obsolete options to make the list less imposing.
1010  # This message is too long to be a string in the A/UX 3.1 sh.
1011  cat <<_ACEOF
1012\`configure' configures ThirdPartyHSL 1.4.2 to adapt to many kinds of systems.
1013
1014Usage: $0 [OPTION]... [VAR=VALUE]...
1015
1016To assign environment variables (e.g., CC, CFLAGS...), specify them as
1017VAR=VALUE.  See below for descriptions of some of the useful variables.
1018
1019Defaults for the options are specified in brackets.
1020
1021Configuration:
1022  -h, --help              display this help and exit
1023      --help=short        display options specific to this package
1024      --help=recursive    display the short help of all the included packages
1025  -V, --version           display version information and exit
1026  -q, --quiet, --silent   do not print \`checking...' messages
1027      --cache-file=FILE   cache test results in FILE [disabled]
1028  -C, --config-cache      alias for \`--cache-file=config.cache'
1029  -n, --no-create         do not create output files
1030      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1031
1032_ACEOF
1033
1034  cat <<_ACEOF
1035Installation directories:
1036  --prefix=PREFIX         install architecture-independent files in PREFIX
1037                          [$ac_default_prefix]
1038  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1039                          [PREFIX]
1040
1041By default, \`make install' will install all the files in
1042\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1043an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1044for instance \`--prefix=\$HOME'.
1045
1046For better control, use the options below.
1047
1048Fine tuning of the installation directories:
1049  --bindir=DIR           user executables [EPREFIX/bin]
1050  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1051  --libexecdir=DIR       program executables [EPREFIX/libexec]
1052  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1053  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1054  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1055  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1056  --libdir=DIR           object code libraries [EPREFIX/lib]
1057  --includedir=DIR       C header files [PREFIX/include]
1058  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1059  --infodir=DIR          info documentation [PREFIX/info]
1060  --mandir=DIR           man documentation [PREFIX/man]
1061_ACEOF
1062
1063  cat <<\_ACEOF
1064
1065Program names:
1066  --program-prefix=PREFIX            prepend PREFIX to installed program names
1067  --program-suffix=SUFFIX            append SUFFIX to installed program names
1068  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1069
1070System types:
1071  --build=BUILD     configure for building on BUILD [guessed]
1072  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1073_ACEOF
1074fi
1075
1076if test -n "$ac_init_help"; then
1077  case $ac_init_help in
1078     short | recursive ) echo "Configuration of ThirdPartyHSL 1.4.2:";;
1079   esac
1080  cat <<\_ACEOF
1081
1082Optional Features:
1083  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1084  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1085  --enable-loadable-library
1086                          compile stand-alone shared library for delayed
1087                          loading
1088  --enable-debug          compile all projects with debug options tests
1089                          (implies --disable-shared)
1090  --enable-debug-hsl compile project HSL with debug compiler flags
1091
1092  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1093  --disable-pkg-config    disable use of pkg-config (if available)
1094  --enable-static[=PKGS]
1095                          build static libraries [default=no]
1096  --disable-dependency-tracking  speeds up one-time build
1097  --enable-dependency-tracking   do not reject slow dependency extractors
1098  --enable-maintainer-mode  enable make rules and dependencies not useful
1099                          (and sometimes confusing) to the casual installer
1100  --enable-shared[=PKGS]
1101                          build shared libraries [default=yes]
1102  --enable-fast-install[=PKGS]
1103                          optimize for fast installation [default=yes]
1104  --disable-libtool-lock  avoid locking (might break parallel builds)
1105  --disable-interpackage-dependencies
1106                          disables deduction of Makefile dependencies from
1107                          package linker flags
1108
1109Optional Packages:
1110  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1111  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1112  --with-hsl-verbosity specify the debug verbosity level for project HSL
1113  --with-hsl-checklevel specify the sanity check level for project HSL
1114  --with-coin-instdir     prefix of installation directory for precompiled
1115                          COIN packages
1116  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1117  --with-pic              try to use only PIC/non-PIC objects [default=use
1118                          both]
1119  --with-tags[=TAGS]
1120                          include additional configurations [automatic]
1121  --with-blas             specify BLAS library (or BUILD to enforce use of
1122                          ThirdParty/Blas)
1123
1124  --with-blas-lib linker flags for using package Blas
1125  --with-blas-incdir directory with header files for using package Blas
1126  --with-blas-datadir directory with data files for using package Blas
1127  --with-metis-lib linker flags for using package Metis
1128  --with-metis-incdir directory with header files for using package Metis
1129  --with-metis-datadir directory with data files for using package Metis
1130
1131Some influential environment variables:
1132  CDEFS       Additional -D flags to be used when compiling C code.
1133  ADD_CFLAGS  Additional C compiler options
1134  DBG_CFLAGS  Debug C compiler options
1135  OPT_CFLAGS  Optimize C compiler options
1136  CC          C compiler command
1137  CFLAGS      C compiler flags
1138  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1139              nonstandard directory <lib dir>
1140  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1141              headers in a nonstandard directory <include dir>
1142  MPICC       C MPI Compiler
1143  ADD_FFLAGS  Additional Fortran compiler options
1144  DBG_FFLAGS  Debug Fortran compiler options
1145  OPT_FFLAGS  Optimize Fortran compiler options
1146  F77         Fortran 77 compiler command
1147  FFLAGS      Fortran 77 compiler flags
1148  MPIF77      Fortran MPI Compiler
1149  PKG_CONFIG  path to pkg-config utility
1150  FC          Fortran compiler command
1151  FCFLAGS     Fortran compiler flags
1152  CPP         C preprocessor
1153  CXX         C++ compiler command
1154  CXXFLAGS    C++ compiler flags
1155  CXXCPP      C++ preprocessor
1156
1157Use these variables to override the choices made by `configure' or to help
1158it to find libraries and programs with nonstandard names/locations.
1159
1160Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1161_ACEOF
1162fi
1163
1164if test "$ac_init_help" = "recursive"; then
1165  # If there are subdirs, report their specific --help.
1166  ac_popdir=`pwd`
1167  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1168    test -d $ac_dir || continue
1169    ac_builddir=.
1170
1171if test "$ac_dir" != .; then
1172  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1173  # A "../" for each directory in $ac_dir_suffix.
1174  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1175else
1176  ac_dir_suffix= ac_top_builddir=
1177fi
1178
1179case $srcdir in
1180  .)  # No --srcdir option.  We are building in place.
1181    ac_srcdir=.
1182    if test -z "$ac_top_builddir"; then
1183       ac_top_srcdir=.
1184    else
1185       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1186    fi ;;
1187  [\\/]* | ?:[\\/]* )  # Absolute path.
1188    ac_srcdir=$srcdir$ac_dir_suffix;
1189    ac_top_srcdir=$srcdir ;;
1190  *) # Relative path.
1191    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1192    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1193esac
1194
1195# Do not use `cd foo && pwd` to compute absolute paths, because
1196# the directories may not exist.
1197case `pwd` in
1198.) ac_abs_builddir="$ac_dir";;
1199*)
1200  case "$ac_dir" in
1201  .) ac_abs_builddir=`pwd`;;
1202  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1203  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1204  esac;;
1205esac
1206case $ac_abs_builddir in
1207.) ac_abs_top_builddir=${ac_top_builddir}.;;
1208*)
1209  case ${ac_top_builddir}. in
1210  .) ac_abs_top_builddir=$ac_abs_builddir;;
1211  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1212  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1213  esac;;
1214esac
1215case $ac_abs_builddir in
1216.) ac_abs_srcdir=$ac_srcdir;;
1217*)
1218  case $ac_srcdir in
1219  .) ac_abs_srcdir=$ac_abs_builddir;;
1220  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1221  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1222  esac;;
1223esac
1224case $ac_abs_builddir in
1225.) ac_abs_top_srcdir=$ac_top_srcdir;;
1226*)
1227  case $ac_top_srcdir in
1228  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1229  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1230  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1231  esac;;
1232esac
1233
1234    cd $ac_dir
1235    # Check for guested configure; otherwise get Cygnus style configure.
1236    if test -f $ac_srcdir/configure.gnu; then
1237      echo
1238      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1239    elif test -f $ac_srcdir/configure; then
1240      echo
1241      $SHELL $ac_srcdir/configure  --help=recursive
1242    elif test -f $ac_srcdir/configure.ac ||
1243           test -f $ac_srcdir/configure.in; then
1244      echo
1245      $ac_configure --help
1246    else
1247      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1248    fi
1249    cd $ac_popdir
1250  done
1251fi
1252
1253test -n "$ac_init_help" && exit 0
1254if $ac_init_version; then
1255  cat <<\_ACEOF
1256ThirdPartyHSL configure 1.4.2
1257generated by GNU Autoconf 2.59
1258
1259Copyright (C) 2003 Free Software Foundation, Inc.
1260This configure script is free software; the Free Software Foundation
1261gives unlimited permission to copy, distribute and modify it.
1262
1263
1264Copyright 2006, 2009 International Business Machines and others.
1265All Rights Reserved.
1266This file is part of the open source package BuildTools which is distributed
1267under the Eclipse Public License.
1268_ACEOF
1269  exit 0
1270fi
1271exec 5>config.log
1272cat >&5 <<_ACEOF
1273This file contains any messages produced by compilers while
1274running configure, to aid debugging if configure makes a mistake.
1275
1276It was created by ThirdPartyHSL $as_me 1.4.2, which was
1277generated by GNU Autoconf 2.59.  Invocation command line was
1278
1279  $ $0 $@
1280
1281_ACEOF
1282{
1283cat <<_ASUNAME
1284## --------- ##
1285## Platform. ##
1286## --------- ##
1287
1288hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1289uname -m = `(uname -m) 2>/dev/null || echo unknown`
1290uname -r = `(uname -r) 2>/dev/null || echo unknown`
1291uname -s = `(uname -s) 2>/dev/null || echo unknown`
1292uname -v = `(uname -v) 2>/dev/null || echo unknown`
1293
1294/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1295/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1296
1297/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1298/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1299/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1300hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1301/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1302/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1303/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1304
1305_ASUNAME
1306
1307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1308for as_dir in $PATH
1309do
1310  IFS=$as_save_IFS
1311  test -z "$as_dir" && as_dir=.
1312  echo "PATH: $as_dir"
1313done
1314
1315} >&5
1316
1317cat >&5 <<_ACEOF
1318
1319
1320## ----------- ##
1321## Core tests. ##
1322## ----------- ##
1323
1324_ACEOF
1325
1326
1327# Keep a trace of the command line.
1328# Strip out --no-create and --no-recursion so they do not pile up.
1329# Strip out --silent because we don't want to record it for future runs.
1330# Also quote any args containing shell meta-characters.
1331# Make two passes to allow for proper duplicate-argument suppression.
1332ac_configure_args=
1333ac_configure_args0=
1334ac_configure_args1=
1335ac_sep=
1336ac_must_keep_next=false
1337for ac_pass in 1 2
1338do
1339  for ac_arg
1340  do
1341    case $ac_arg in
1342    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1343    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1344    | -silent | --silent | --silen | --sile | --sil)
1345      continue ;;
1346    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1347      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1348    esac
1349    case $ac_pass in
1350    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1351    2)
1352      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1353      if test $ac_must_keep_next = true; then
1354        ac_must_keep_next=false # Got value, back to normal.
1355      else
1356        case $ac_arg in
1357          *=* | --config-cache | -C | -disable-* | --disable-* \
1358          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1359          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1360          | -with-* | --with-* | -without-* | --without-* | --x)
1361            case "$ac_configure_args0 " in
1362              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1363            esac
1364            ;;
1365          -* ) ac_must_keep_next=true ;;
1366        esac
1367      fi
1368      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1369      # Get rid of the leading space.
1370      ac_sep=" "
1371      ;;
1372    esac
1373  done
1374done
1375$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1376$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1377
1378# When interrupted or exit'd, cleanup temporary files, and complete
1379# config.log.  We remove comments because anyway the quotes in there
1380# would cause problems or look ugly.
1381# WARNING: Be sure not to use single quotes in there, as some shells,
1382# such as our DU 5.0 friend, will then `close' the trap.
1383trap 'exit_status=$?
1384  # Save into config.log some information that might help in debugging.
1385  {
1386    echo
1387
1388    cat <<\_ASBOX
1389## ---------------- ##
1390## Cache variables. ##
1391## ---------------- ##
1392_ASBOX
1393    echo
1394    # The following way of writing the cache mishandles newlines in values,
1395{
1396  (set) 2>&1 |
1397    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1398    *ac_space=\ *)
1399      sed -n \
1400        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1401          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1402      ;;
1403    *)
1404      sed -n \
1405        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1406      ;;
1407    esac;
1408}
1409    echo
1410
1411    cat <<\_ASBOX
1412## ----------------- ##
1413## Output variables. ##
1414## ----------------- ##
1415_ASBOX
1416    echo
1417    for ac_var in $ac_subst_vars
1418    do
1419      eval ac_val=$`echo $ac_var`
1420      echo "$ac_var='"'"'$ac_val'"'"'"
1421    done | sort
1422    echo
1423
1424    if test -n "$ac_subst_files"; then
1425      cat <<\_ASBOX
1426## ------------- ##
1427## Output files. ##
1428## ------------- ##
1429_ASBOX
1430      echo
1431      for ac_var in $ac_subst_files
1432      do
1433        eval ac_val=$`echo $ac_var`
1434        echo "$ac_var='"'"'$ac_val'"'"'"
1435      done | sort
1436      echo
1437    fi
1438
1439    if test -s confdefs.h; then
1440      cat <<\_ASBOX
1441## ----------- ##
1442## confdefs.h. ##
1443## ----------- ##
1444_ASBOX
1445      echo
1446      sed "/^$/d" confdefs.h | sort
1447      echo
1448    fi
1449    test "$ac_signal" != 0 &&
1450      echo "$as_me: caught signal $ac_signal"
1451    echo "$as_me: exit $exit_status"
1452  } >&5
1453  rm -f core *.core &&
1454  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1455    exit $exit_status
1456     ' 0
1457for ac_signal in 1 2 13 15; do
1458  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1459done
1460ac_signal=0
1461
1462# confdefs.h avoids OS command line length limits that DEFS can exceed.
1463rm -rf conftest* confdefs.h
1464# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1465echo >confdefs.h
1466
1467# Predefined preprocessor variables.
1468
1469cat >>confdefs.h <<_ACEOF
1470#define PACKAGE_NAME "$PACKAGE_NAME"
1471_ACEOF
1472
1473
1474cat >>confdefs.h <<_ACEOF
1475#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1476_ACEOF
1477
1478
1479cat >>confdefs.h <<_ACEOF
1480#define PACKAGE_VERSION "$PACKAGE_VERSION"
1481_ACEOF
1482
1483
1484cat >>confdefs.h <<_ACEOF
1485#define PACKAGE_STRING "$PACKAGE_STRING"
1486_ACEOF
1487
1488
1489cat >>confdefs.h <<_ACEOF
1490#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1491_ACEOF
1492
1493
1494# Let the site file select an alternate cache file if it wants to.
1495# Prefer explicitly selected file to automatically selected ones.
1496if test -z "$CONFIG_SITE"; then
1497  if test "x$prefix" != xNONE; then
1498    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1499  else
1500    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1501  fi
1502fi
1503for ac_site_file in $CONFIG_SITE; do
1504  if test -r "$ac_site_file"; then
1505    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1506echo "$as_me: loading site script $ac_site_file" >&6;}
1507    sed 's/^/| /' "$ac_site_file" >&5
1508    . "$ac_site_file"
1509  fi
1510done
1511
1512if test -r "$cache_file"; then
1513  # Some versions of bash will fail to source /dev/null (special
1514  # files actually), so we avoid doing that.
1515  if test -f "$cache_file"; then
1516    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1517echo "$as_me: loading cache $cache_file" >&6;}
1518    case $cache_file in
1519      [\\/]* | ?:[\\/]* ) . $cache_file;;
1520      *)                      . ./$cache_file;;
1521    esac
1522  fi
1523else
1524  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1525echo "$as_me: creating cache $cache_file" >&6;}
1526  >$cache_file
1527fi
1528
1529# Check that the precious variables saved in the cache have kept the same
1530# value.
1531ac_cache_corrupted=false
1532for ac_var in `(set) 2>&1 |
1533               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1534  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1535  eval ac_new_set=\$ac_env_${ac_var}_set
1536  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1537  eval ac_new_val="\$ac_env_${ac_var}_value"
1538  case $ac_old_set,$ac_new_set in
1539    set,)
1540      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1541echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1542      ac_cache_corrupted=: ;;
1543    ,set)
1544      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1545echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1546      ac_cache_corrupted=: ;;
1547    ,);;
1548    *)
1549      if test "x$ac_old_val" != "x$ac_new_val"; then
1550        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1551echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1552        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1553echo "$as_me:   former value:  $ac_old_val" >&2;}
1554        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1555echo "$as_me:   current value: $ac_new_val" >&2;}
1556        ac_cache_corrupted=:
1557      fi;;
1558  esac
1559  # Pass precious variables to config.status.
1560  if test "$ac_new_set" = set; then
1561    case $ac_new_val in
1562    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1563      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1564    *) ac_arg=$ac_var=$ac_new_val ;;
1565    esac
1566    case " $ac_configure_args " in
1567      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1568      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1569    esac
1570  fi
1571done
1572if $ac_cache_corrupted; then
1573  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1574echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1575  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1576echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1577   { (exit 1); exit 1; }; }
1578fi
1579
1580ac_ext=c
1581ac_cpp='$CPP $CPPFLAGS'
1582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1584ac_compiler_gnu=$ac_cv_c_compiler_gnu
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615# List one file in the package so that the configure script can test
1616# whether the package is actually there
1617
1618
1619# Where should everything be installed by default?  Here, we want it
1620# to be installed directly in 'bin', 'lib', 'include' subdirectories
1621# of the directory where configure is run.  The default would be
1622# /usr/local.
1623
1624
1625
1626# As backup, we make sure we don't loose an FLIBS if it has been set
1627# by the user
1628save_FLIBS="$FLIBS"
1629
1630# A useful makefile conditional that is always false
1631
1632
1633if false; then
1634  ALWAYS_FALSE_TRUE=
1635  ALWAYS_FALSE_FALSE='#'
1636else
1637  ALWAYS_FALSE_TRUE='#'
1638  ALWAYS_FALSE_FALSE=
1639fi
1640
1641
1642# We set the following variable so that we know later in AC_COIN_FINALIZE
1643# that we are in a project main directory
1644coin_projectdir=yes
1645
1646# Set the project's version numbers
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define COINHSL_VERSION "$PACKAGE_VERSION"
1651_ACEOF
1652
1653
1654  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1655  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1656  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1657  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1658  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1659  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1660
1661cat >>confdefs.h <<_ACEOF
1662#define COINHSL_VERSION_MAJOR $coin_majorver
1663_ACEOF
1664
1665
1666cat >>confdefs.h <<_ACEOF
1667#define COINHSL_VERSION_MINOR $coin_minorver
1668_ACEOF
1669
1670
1671cat >>confdefs.h <<_ACEOF
1672#define COINHSL_VERSION_RELEASE $coin_releasever
1673_ACEOF
1674
1675
1676  # We use the following variable to have a string with the upper case
1677  # version of the project name
1678  COIN_PRJCT=COINHSL
1679
1680  # Set the project's SVN revision number. The complicated sed expression
1681  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1682  # as a single number.
1683  # Extract the first word of "svnversion", so it can be a program name with args.
1684set dummy svnversion; ac_word=$2
1685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_have_svnversion+set}" = set; then
1688  echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690  if test -n "$have_svnversion"; then
1691  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1692else
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696  IFS=$as_save_IFS
1697  test -z "$as_dir" && as_dir=.
1698  for ac_exec_ext in '' $ac_executable_extensions; do
1699  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700    ac_cv_prog_have_svnversion="yes"
1701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702    break 2
1703  fi
1704done
1705done
1706
1707  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1708fi
1709fi
1710have_svnversion=$ac_cv_prog_have_svnversion
1711if test -n "$have_svnversion"; then
1712  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1713echo "${ECHO_T}$have_svnversion" >&6
1714else
1715  echo "$as_me:$LINENO: result: no" >&5
1716echo "${ECHO_T}no" >&6
1717fi
1718
1719  if test "x$have_svnversion" = xyes; then
1720
1721    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1722    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1723      COINHSL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1724
1725cat >>confdefs.h <<_ACEOF
1726#define COINHSL_SVN_REV $COINHSL_SVN_REV
1727_ACEOF
1728
1729    fi
1730  fi
1731
1732
1733
1734# Capture libtool library version, if given.
1735 coin_libversion=5:2:4
1736
1737
1738
1739
1740#############################################################################
1741#                         Standard build tool stuff                         #
1742#############################################################################
1743
1744# Get the system type
1745ac_aux_dir=
1746for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1747  if test -f $ac_dir/install-sh; then
1748    ac_aux_dir=$ac_dir
1749    ac_install_sh="$ac_aux_dir/install-sh -c"
1750    break
1751  elif test -f $ac_dir/install.sh; then
1752    ac_aux_dir=$ac_dir
1753    ac_install_sh="$ac_aux_dir/install.sh -c"
1754    break
1755  elif test -f $ac_dir/shtool; then
1756    ac_aux_dir=$ac_dir
1757    ac_install_sh="$ac_aux_dir/shtool install -c"
1758    break
1759  fi
1760done
1761if test -z "$ac_aux_dir"; then
1762  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1763echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1764   { (exit 1); exit 1; }; }
1765fi
1766ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1767ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1768ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1769
1770# Make sure we can run config.sub.
1771$ac_config_sub sun4 >/dev/null 2>&1 ||
1772  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1773echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1774   { (exit 1); exit 1; }; }
1775
1776echo "$as_me:$LINENO: checking build system type" >&5
1777echo $ECHO_N "checking build system type... $ECHO_C" >&6
1778if test "${ac_cv_build+set}" = set; then
1779  echo $ECHO_N "(cached) $ECHO_C" >&6
1780else
1781  ac_cv_build_alias=$build_alias
1782test -z "$ac_cv_build_alias" &&
1783  ac_cv_build_alias=`$ac_config_guess`
1784test -z "$ac_cv_build_alias" &&
1785  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1786echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1787   { (exit 1); exit 1; }; }
1788ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1789  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1790echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1791   { (exit 1); exit 1; }; }
1792
1793fi
1794echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1795echo "${ECHO_T}$ac_cv_build" >&6
1796build=$ac_cv_build
1797build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1798build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1799build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1800
1801
1802
1803# provide flag to allow compilation of a stand-alone shared library
1804# Check whether --enable-loadable-library or --disable-loadable-library was given.
1805if test "${enable_loadable_library+set}" = set; then
1806  enableval="$enable_loadable_library"
1807
1808fi;
1809
1810# Check if user wants to produce debugging code
1811
1812echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1813echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1814
1815# Check whether --enable-debug or --disable-debug was given.
1816if test "${enable_debug+set}" = set; then
1817  enableval="$enable_debug"
1818  case "${enableval}" in
1819   yes) coin_debug_compile=true
1820        if test "${enable_shared+set}" = set; then :; else
1821          enable_shared=no
1822        fi
1823        ;;
1824   no)  coin_debug_compile=false
1825        ;;
1826   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1827echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1828   { (exit 1); exit 1; }; }
1829        ;;
1830esac
1831else
1832  coin_debug_compile=false
1833fi;
1834
1835# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1836if test "${enable_debug_hsl+set}" = set; then
1837  enableval="$enable_debug_hsl"
1838  case "${enableval}" in
1839    yes) coin_debug_compile=true
1840         ;;
1841    no)  coin_debug_compile=false
1842         ;;
1843    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1844echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1845   { (exit 1); exit 1; }; }
1846         ;;
1847 esac
1848else
1849  :
1850fi;
1851
1852 # m4_ifvaln([HSL],
1853
1854if test $coin_debug_compile = true; then
1855  echo "$as_me:$LINENO: result: yes" >&5
1856echo "${ECHO_T}yes" >&6
1857else
1858  echo "$as_me:$LINENO: result: no" >&5
1859echo "${ECHO_T}no" >&6
1860fi
1861
1862
1863# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1864if test "${with_hsl_verbosity+set}" = set; then
1865  withval="$with_hsl_verbosity"
1866  if test "$withval" = yes; then
1867                withval=1
1868              fi
1869              coin_hsl_verbosity=$withval
1870else
1871  coin_hsl_verbosity=0
1872fi;
1873
1874cat >>confdefs.h <<_ACEOF
1875#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1876_ACEOF
1877
1878
1879
1880# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1881if test "${with_hsl_checklevel+set}" = set; then
1882  withval="$with_hsl_checklevel"
1883  if test "$withval" = yes; then
1884                withval=1
1885              fi
1886              coin_hsl_checklevel=$withval
1887else
1888  coin_hsl_checklevel=0
1889fi;
1890
1891cat >>confdefs.h <<_ACEOF
1892#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1893_ACEOF
1894
1895
1896 # m4_ifvaln([HSL],
1897
1898
1899
1900# Get the name of the C compiler (for a dummy program)
1901
1902
1903  # for backward compatibility
1904  # Check whether --enable-doscompile or --disable-doscompile was given.
1905if test "${enable_doscompile+set}" = set; then
1906  enableval="$enable_doscompile"
1907  enable_doscompile=$enableval
1908else
1909  enable_doscompile=no
1910fi;
1911
1912  # Check whether --enable-msvc or --disable-msvc was given.
1913if test "${enable_msvc+set}" = set; then
1914  enableval="$enable_msvc"
1915  enable_msvc=$enableval
1916else
1917  enable_msvc=no
1918     if test "$enable_doscompile" = msvc ; then
1919       enable_msvc=yes
1920     elif test "$enable_doscompile" != no ; then
1921       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1922echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1923   { (exit 1); exit 1; }; }
1924     fi
1925
1926fi;
1927
1928  if test "$enable_msvc" = yes; then
1929    case $build in
1930      *-cygwin* | *-mingw*) ;;
1931      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1932echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1933   { (exit 1); exit 1; }; } ;;
1934    esac
1935  fi
1936
1937
1938 case $build in
1939  *-mingw*)
1940    if test "${LD+set}" = set; then :; else
1941      LD=link
1942    fi
1943    ;;
1944 esac
1945 if test $enable_msvc = yes ; then
1946   if test "x${LD+set}" = xset; then :; else
1947     LD=link
1948   fi
1949 fi
1950
1951
1952
1953
1954ac_ext=c
1955ac_cpp='$CPP $CPPFLAGS'
1956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959
1960
1961# For consistency, we set the C compiler to the same value of the C++
1962# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1963if test x"$CXX" != x; then
1964  case "$CXX" in
1965    clang* ) ;;
1966    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1967      if test x"$CC" = x; then
1968        CC="$CXX"
1969        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1970echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1971      fi
1972      ;;
1973  esac
1974fi
1975
1976
1977
1978
1979
1980
1981coin_has_cc=yes
1982
1983save_cflags="$CFLAGS"
1984
1985# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1986# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1987# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1988# compiler. In this case, put cc after gcc.
1989
1990case $build in
1991  *-cygwin* | *-mingw*)
1992             if test "$enable_msvc" = yes ; then
1993               comps="icl cl gcc"
1994             else
1995               comps="gcc icl cl"
1996             fi ;;
1997  *-*-solaris*)
1998             # Extract the first word of "cc", so it can be a program name with args.
1999set dummy cc; ac_word=$2
2000echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2003  echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005  if test -n "$sol_cc_compiler"; then
2006  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2007else
2008  ac_prog_rejected=no
2009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010for as_dir in $PATH
2011do
2012  IFS=$as_save_IFS
2013  test -z "$as_dir" && as_dir=.
2014  for ac_exec_ext in '' $ac_executable_extensions; do
2015  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2017       ac_prog_rejected=yes
2018       continue
2019     fi
2020    ac_cv_prog_sol_cc_compiler="cc"
2021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022    break 2
2023  fi
2024done
2025done
2026
2027if test $ac_prog_rejected = yes; then
2028  # We found a bogon in the path, so make sure we never use it.
2029  set dummy $ac_cv_prog_sol_cc_compiler
2030  shift
2031  if test $# != 0; then
2032    # We chose a different compiler from the bogus one.
2033    # However, it has the same basename, so the bogon will be chosen
2034    # first if we set sol_cc_compiler to just the basename; use the full file name.
2035    shift
2036    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2037  fi
2038fi
2039fi
2040fi
2041sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2042if test -n "$sol_cc_compiler"; then
2043  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2044echo "${ECHO_T}$sol_cc_compiler" >&6
2045else
2046  echo "$as_me:$LINENO: result: no" >&5
2047echo "${ECHO_T}no" >&6
2048fi
2049
2050             if test "$sol_cc_compiler" = "cc" ; then
2051               comps="cc xlc gcc pgcc icc"
2052             else
2053               comps="xlc gcc pgcc icc cc"
2054             fi
2055             ;;
2056  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2057  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2058  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2059esac
2060
2061# We delete the cached value, since the test might not have been
2062# performed with our choice of compilers earlier
2063$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2064# AC_MSG_NOTICE([C compiler candidates: $comps])
2065ac_ext=c
2066ac_cpp='$CPP $CPPFLAGS'
2067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070if test -n "$ac_tool_prefix"; then
2071  for ac_prog in $comps
2072  do
2073    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2075echo "$as_me:$LINENO: checking for $ac_word" >&5
2076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077if test "${ac_cv_prog_CC+set}" = set; then
2078  echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
2080  if test -n "$CC"; then
2081  ac_cv_prog_CC="$CC" # Let the user override the test.
2082else
2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086  IFS=$as_save_IFS
2087  test -z "$as_dir" && as_dir=.
2088  for ac_exec_ext in '' $ac_executable_extensions; do
2089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092    break 2
2093  fi
2094done
2095done
2096
2097fi
2098fi
2099CC=$ac_cv_prog_CC
2100if test -n "$CC"; then
2101  echo "$as_me:$LINENO: result: $CC" >&5
2102echo "${ECHO_T}$CC" >&6
2103else
2104  echo "$as_me:$LINENO: result: no" >&5
2105echo "${ECHO_T}no" >&6
2106fi
2107
2108    test -n "$CC" && break
2109  done
2110fi
2111if test -z "$CC"; then
2112  ac_ct_CC=$CC
2113  for ac_prog in $comps
2114do
2115  # Extract the first word of "$ac_prog", so it can be a program name with args.
2116set dummy $ac_prog; ac_word=$2
2117echo "$as_me:$LINENO: checking for $ac_word" >&5
2118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2120  echo $ECHO_N "(cached) $ECHO_C" >&6
2121else
2122  if test -n "$ac_ct_CC"; then
2123  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2124else
2125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126for as_dir in $PATH
2127do
2128  IFS=$as_save_IFS
2129  test -z "$as_dir" && as_dir=.
2130  for ac_exec_ext in '' $ac_executable_extensions; do
2131  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132    ac_cv_prog_ac_ct_CC="$ac_prog"
2133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134    break 2
2135  fi
2136done
2137done
2138
2139fi
2140fi
2141ac_ct_CC=$ac_cv_prog_ac_ct_CC
2142if test -n "$ac_ct_CC"; then
2143  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2144echo "${ECHO_T}$ac_ct_CC" >&6
2145else
2146  echo "$as_me:$LINENO: result: no" >&5
2147echo "${ECHO_T}no" >&6
2148fi
2149
2150  test -n "$ac_ct_CC" && break
2151done
2152
2153  CC=$ac_ct_CC
2154fi
2155
2156
2157test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2158See \`config.log' for more details." >&5
2159echo "$as_me: error: no acceptable C compiler found in \$PATH
2160See \`config.log' for more details." >&2;}
2161   { (exit 1); exit 1; }; }
2162
2163# Provide some information about the compiler.
2164echo "$as_me:$LINENO:" \
2165     "checking for C compiler version" >&5
2166ac_compiler=`set X $ac_compile; echo $2`
2167{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2168  (eval $ac_compiler --version </dev/null >&5) 2>&5
2169  ac_status=$?
2170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171  (exit $ac_status); }
2172{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2173  (eval $ac_compiler -v </dev/null >&5) 2>&5
2174  ac_status=$?
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); }
2177{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2178  (eval $ac_compiler -V </dev/null >&5) 2>&5
2179  ac_status=$?
2180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181  (exit $ac_status); }
2182
2183cat >conftest.$ac_ext <<_ACEOF
2184/* confdefs.h.  */
2185_ACEOF
2186cat confdefs.h >>conftest.$ac_ext
2187cat >>conftest.$ac_ext <<_ACEOF
2188/* end confdefs.h.  */
2189
2190int
2191main ()
2192{
2193
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198ac_clean_files_save=$ac_clean_files
2199ac_clean_files="$ac_clean_files a.out a.exe b.out"
2200# Try to create an executable without -o first, disregard a.out.
2201# It will help us diagnose broken compilers, and finding out an intuition
2202# of exeext.
2203echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2204echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2205ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2206if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2207  (eval $ac_link_default) 2>&5
2208  ac_status=$?
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); }; then
2211  # Find the output, starting from the most likely.  This scheme is
2212# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2213# resort.
2214
2215# Be careful to initialize this variable, since it used to be cached.
2216# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2217ac_cv_exeext=
2218# b.out is created by i960 compilers.
2219for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2220do
2221  test -f "$ac_file" || continue
2222  case $ac_file in
2223    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2224        ;;
2225    conftest.$ac_ext )
2226        # This is the source file.
2227        ;;
2228    [ab].out )
2229        # We found the default executable, but exeext='' is most
2230        # certainly right.
2231        break;;
2232    *.* )
2233        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2234        # FIXME: I believe we export ac_cv_exeext for Libtool,
2235        # but it would be cool to find out if it's true.  Does anybody
2236        # maintain Libtool? --akim.
2237        export ac_cv_exeext
2238        break;;
2239    * )
2240        break;;
2241  esac
2242done
2243else
2244  echo "$as_me: failed program was:" >&5
2245sed 's/^/| /' conftest.$ac_ext >&5
2246
2247{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2248See \`config.log' for more details." >&5
2249echo "$as_me: error: C compiler cannot create executables
2250See \`config.log' for more details." >&2;}
2251   { (exit 77); exit 77; }; }
2252fi
2253
2254ac_exeext=$ac_cv_exeext
2255echo "$as_me:$LINENO: result: $ac_file" >&5
2256echo "${ECHO_T}$ac_file" >&6
2257
2258# Check the compiler produces executables we can run.  If not, either
2259# the compiler is broken, or we cross compile.
2260echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2261echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2262# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2263# If not cross compiling, check that we can run a simple program.
2264if test "$cross_compiling" != yes; then
2265  if { ac_try='./$ac_file'
2266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267  (eval $ac_try) 2>&5
2268  ac_status=$?
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); }; }; then
2271    cross_compiling=no
2272  else
2273    if test "$cross_compiling" = maybe; then
2274        cross_compiling=yes
2275    else
2276        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2277If you meant to cross compile, use \`--host'.
2278See \`config.log' for more details." >&5
2279echo "$as_me: error: cannot run C compiled programs.
2280If you meant to cross compile, use \`--host'.
2281See \`config.log' for more details." >&2;}
2282   { (exit 1); exit 1; }; }
2283    fi
2284  fi
2285fi
2286echo "$as_me:$LINENO: result: yes" >&5
2287echo "${ECHO_T}yes" >&6
2288
2289rm -f a.out a.exe conftest$ac_cv_exeext b.out
2290ac_clean_files=$ac_clean_files_save
2291# Check the compiler produces executables we can run.  If not, either
2292# the compiler is broken, or we cross compile.
2293echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2294echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2295echo "$as_me:$LINENO: result: $cross_compiling" >&5
2296echo "${ECHO_T}$cross_compiling" >&6
2297
2298echo "$as_me:$LINENO: checking for suffix of executables" >&5
2299echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2301  (eval $ac_link) 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); }; then
2305  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2306# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2307# work properly (i.e., refer to `conftest.exe'), while it won't with
2308# `rm'.
2309for ac_file in conftest.exe conftest conftest.*; do
2310  test -f "$ac_file" || continue
2311  case $ac_file in
2312    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2313    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2314          export ac_cv_exeext
2315          break;;
2316    * ) break;;
2317  esac
2318done
2319else
2320  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2321See \`config.log' for more details." >&5
2322echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2323See \`config.log' for more details." >&2;}
2324   { (exit 1); exit 1; }; }
2325fi
2326
2327rm -f conftest$ac_cv_exeext
2328echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2329echo "${ECHO_T}$ac_cv_exeext" >&6
2330
2331rm -f conftest.$ac_ext
2332EXEEXT=$ac_cv_exeext
2333ac_exeext=$EXEEXT
2334echo "$as_me:$LINENO: checking for suffix of object files" >&5
2335echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2336if test "${ac_cv_objext+set}" = set; then
2337  echo $ECHO_N "(cached) $ECHO_C" >&6
2338else
2339  cat >conftest.$ac_ext <<_ACEOF
2340/* confdefs.h.  */
2341_ACEOF
2342cat confdefs.h >>conftest.$ac_ext
2343cat >>conftest.$ac_ext <<_ACEOF
2344/* end confdefs.h.  */
2345
2346int
2347main ()
2348{
2349
2350  ;
2351  return 0;
2352}
2353_ACEOF
2354rm -f conftest.o conftest.obj
2355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356  (eval $ac_compile) 2>&5
2357  ac_status=$?
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); }; then
2360  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2361  case $ac_file in
2362    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2363    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364       break;;
2365  esac
2366done
2367else
2368  echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372See \`config.log' for more details." >&5
2373echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374See \`config.log' for more details." >&2;}
2375   { (exit 1); exit 1; }; }
2376fi
2377
2378rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379fi
2380echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381echo "${ECHO_T}$ac_cv_objext" >&6
2382OBJEXT=$ac_cv_objext
2383ac_objext=$OBJEXT
2384echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2386if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387  echo $ECHO_N "(cached) $ECHO_C" >&6
2388else
2389  cat >conftest.$ac_ext <<_ACEOF
2390/* confdefs.h.  */
2391_ACEOF
2392cat confdefs.h >>conftest.$ac_ext
2393cat >>conftest.$ac_ext <<_ACEOF
2394/* end confdefs.h.  */
2395
2396int
2397main ()
2398{
2399#ifndef __GNUC__
2400       choke me
2401#endif
2402
2403  ;
2404  return 0;
2405}
2406_ACEOF
2407rm -f conftest.$ac_objext
2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409  (eval $ac_compile) 2>conftest.er1
2410  ac_status=$?
2411  grep -v '^ *+' conftest.er1 >conftest.err
2412  rm -f conftest.er1
2413  cat conftest.err >&5
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); } &&
2416         { ac_try='test -z "$ac_c_werror_flag"
2417                         || test ! -s conftest.err'
2418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419  (eval $ac_try) 2>&5
2420  ac_status=$?
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); }; } &&
2423         { ac_try='test -s conftest.$ac_objext'
2424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425  (eval $ac_try) 2>&5
2426  ac_status=$?
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); }; }; then
2429  ac_compiler_gnu=yes
2430else
2431  echo "$as_me: failed program was:" >&5
2432sed 's/^/| /' conftest.$ac_ext >&5
2433
2434ac_compiler_gnu=no
2435fi
2436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437ac_cv_c_compiler_gnu=$ac_compiler_gnu
2438
2439fi
2440echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2441echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2442GCC=`test $ac_compiler_gnu = yes && echo yes`
2443ac_test_CFLAGS=${CFLAGS+set}
2444ac_save_CFLAGS=$CFLAGS
2445CFLAGS="-g"
2446echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2447echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2448if test "${ac_cv_prog_cc_g+set}" = set; then
2449  echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451  cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h.  */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h.  */
2457
2458int
2459main ()
2460{
2461
2462  ;
2463  return 0;
2464}
2465_ACEOF
2466rm -f conftest.$ac_objext
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468  (eval $ac_compile) 2>conftest.er1
2469  ac_status=$?
2470  grep -v '^ *+' conftest.er1 >conftest.err
2471  rm -f conftest.er1
2472  cat conftest.err >&5
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); } &&
2475         { ac_try='test -z "$ac_c_werror_flag"
2476                         || test ! -s conftest.err'
2477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478  (eval $ac_try) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }; } &&
2482         { ac_try='test -s conftest.$ac_objext'
2483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484  (eval $ac_try) 2>&5
2485  ac_status=$?
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); }; }; then
2488  ac_cv_prog_cc_g=yes
2489else
2490  echo "$as_me: failed program was:" >&5
2491sed 's/^/| /' conftest.$ac_ext >&5
2492
2493ac_cv_prog_cc_g=no
2494fi
2495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496fi
2497echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2498echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2499if test "$ac_test_CFLAGS" = set; then
2500  CFLAGS=$ac_save_CFLAGS
2501elif test $ac_cv_prog_cc_g = yes; then
2502  if test "$GCC" = yes; then
2503    CFLAGS="-g -O2"
2504  else
2505    CFLAGS="-g"
2506  fi
2507else
2508  if test "$GCC" = yes; then
2509    CFLAGS="-O2"
2510  else
2511    CFLAGS=
2512  fi
2513fi
2514echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2515echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2516if test "${ac_cv_prog_cc_stdc+set}" = set; then
2517  echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519  ac_cv_prog_cc_stdc=no
2520ac_save_CC=$CC
2521cat >conftest.$ac_ext <<_ACEOF
2522/* confdefs.h.  */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h.  */
2527#include <stdarg.h>
2528#include <stdio.h>
2529#include <sys/types.h>
2530#include <sys/stat.h>
2531/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2532struct buf { int x; };
2533FILE * (*rcsopen) (struct buf *, struct stat *, int);
2534static char *e (p, i)
2535     char **p;
2536     int i;
2537{
2538  return p[i];
2539}
2540static char *f (char * (*g) (char **, int), char **p, ...)
2541{
2542  char *s;
2543  va_list v;
2544  va_start (v,p);
2545  s = g (p, va_arg (v,int));
2546  va_end (v);
2547  return s;
2548}
2549
2550/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2551   function prototypes and stuff, but not '\xHH' hex character constants.
2552   These don't provoke an error unfortunately, instead are silently treated
2553   as 'x'.  The following induces an error, until -std1 is added to get
2554   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2555   array size at least.  It's necessary to write '\x00'==0 to get something
2556   that's true only with -std1.  */
2557int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2558
2559int test (int i, double x);
2560struct s1 {int (*f) (int a);};
2561struct s2 {int (*f) (double a);};
2562int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2563int argc;
2564char **argv;
2565int
2566main ()
2567{
2568return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2569  ;
2570  return 0;
2571}
2572_ACEOF
2573# Don't try gcc -ansi; that turns off useful extensions and
2574# breaks some systems' header files.
2575# AIX                   -qlanglvl=ansi
2576# Ultrix and OSF/1      -std1
2577# HP-UX 10.20 and later -Ae
2578# HP-UX older versions  -Aa -D_HPUX_SOURCE
2579# SVR4                  -Xc -D__EXTENSIONS__
2580for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2581do
2582  CC="$ac_save_CC $ac_arg"
2583  rm -f conftest.$ac_objext
2584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585  (eval $ac_compile) 2>conftest.er1
2586  ac_status=$?
2587  grep -v '^ *+' conftest.er1 >conftest.err
2588  rm -f conftest.er1
2589  cat conftest.err >&5
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); } &&
2592         { ac_try='test -z "$ac_c_werror_flag"
2593                         || test ! -s conftest.err'
2594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595  (eval $ac_try) 2>&5
2596  ac_status=$?
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); }; } &&
2599         { ac_try='test -s conftest.$ac_objext'
2600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601  (eval $ac_try) 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }; }; then
2605  ac_cv_prog_cc_stdc=$ac_arg
2606break
2607else
2608  echo "$as_me: failed program was:" >&5
2609sed 's/^/| /' conftest.$ac_ext >&5
2610
2611fi
2612rm -f conftest.err conftest.$ac_objext
2613done
2614rm -f conftest.$ac_ext conftest.$ac_objext
2615CC=$ac_save_CC
2616
2617fi
2618
2619case "x$ac_cv_prog_cc_stdc" in
2620  x|xno)
2621    echo "$as_me:$LINENO: result: none needed" >&5
2622echo "${ECHO_T}none needed" >&6 ;;
2623  *)
2624    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2625echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2626    CC="$CC $ac_cv_prog_cc_stdc" ;;
2627esac
2628
2629# Some people use a C++ compiler to compile C.  Since we use `exit',
2630# in C++ we need to declare it.  In case someone uses the same compiler
2631# for both compiling C and C++ we need to have the C++ compiler decide
2632# the declaration of exit, since it's the most demanding environment.
2633cat >conftest.$ac_ext <<_ACEOF
2634#ifndef __cplusplus
2635  choke me
2636#endif
2637_ACEOF
2638rm -f conftest.$ac_objext
2639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640  (eval $ac_compile) 2>conftest.er1
2641  ac_status=$?
2642  grep -v '^ *+' conftest.er1 >conftest.err
2643  rm -f conftest.er1
2644  cat conftest.err >&5
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); } &&
2647         { ac_try='test -z "$ac_c_werror_flag"
2648                         || test ! -s conftest.err'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; } &&
2654         { ac_try='test -s conftest.$ac_objext'
2655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656  (eval $ac_try) 2>&5
2657  ac_status=$?
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); }; }; then
2660  for ac_declaration in \
2661   '' \
2662   'extern "C" void std::exit (int) throw (); using std::exit;' \
2663   'extern "C" void std::exit (int); using std::exit;' \
2664   'extern "C" void exit (int) throw ();' \
2665   'extern "C" void exit (int);' \
2666   'void exit (int);'
2667do
2668  cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h.  */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h.  */
2674$ac_declaration
2675#include <stdlib.h>
2676int
2677main ()
2678{
2679exit (42);
2680  ;
2681  return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686  (eval $ac_compile) 2>conftest.er1
2687  ac_status=$?
2688  grep -v '^ *+' conftest.er1 >conftest.err
2689  rm -f conftest.er1
2690  cat conftest.err >&5
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); } &&
2693         { ac_try='test -z "$ac_c_werror_flag"
2694                         || test ! -s conftest.err'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; } &&
2700         { ac_try='test -s conftest.$ac_objext'
2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702  (eval $ac_try) 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; }; then
2706  :
2707else
2708  echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
2710
2711continue
2712fi
2713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714  cat >conftest.$ac_ext <<_ACEOF
2715/* confdefs.h.  */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h.  */
2720$ac_declaration
2721int
2722main ()
2723{
2724exit (42);
2725  ;
2726  return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext
2730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731  (eval $ac_compile) 2>conftest.er1
2732  ac_status=$?
2733  grep -v '^ *+' conftest.er1 >conftest.err
2734  rm -f conftest.er1
2735  cat conftest.err >&5
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); } &&
2738         { ac_try='test -z "$ac_c_werror_flag"
2739                         || test ! -s conftest.err'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; } &&
2745         { ac_try='test -s conftest.$ac_objext'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; }; then
2751  break
2752else
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756fi
2757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2758done
2759rm -f conftest*
2760if test -n "$ac_declaration"; then
2761  echo '#ifdef __cplusplus' >>confdefs.h
2762  echo $ac_declaration      >>confdefs.h
2763  echo '#endif'             >>confdefs.h
2764fi
2765
2766else
2767  echo "$as_me: failed program was:" >&5
2768sed 's/^/| /' conftest.$ac_ext >&5
2769
2770fi
2771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772ac_ext=c
2773ac_cpp='$CPP $CPPFLAGS'
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777
2778if test -z "$CC" ; then
2779  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2780echo "$as_me: error: Failed to find a C compiler!" >&2;}
2781   { (exit 1); exit 1; }; }
2782fi
2783# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2784case "$CC" in
2785  clang* ) ;;
2786  cl* | */cl* | CL* | */CL* )
2787    if test "$ac_cv_prog_cc_g" = yes ; then
2788      ac_cv_prog_cc_g=no
2789      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2790echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2791    fi ;;
2792  * )
2793    CYGPATH_W=echo
2794    ;;
2795esac
2796CFLAGS="$save_cflags"
2797
2798# add automake conditional so we can recognize cl compiler in makefile
2799coin_cc_is_cl=false
2800case "$CC" in
2801  clang* ) ;;
2802  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2803    coin_cc_is_cl=true
2804    ;;
2805esac
2806
2807
2808if test $coin_cc_is_cl = true; then
2809  COIN_CC_IS_CL_TRUE=
2810  COIN_CC_IS_CL_FALSE='#'
2811else
2812  COIN_CC_IS_CL_TRUE='#'
2813  COIN_CC_IS_CL_FALSE=
2814fi
2815
2816
2817# Check if a project specific CFLAGS variable has been set
2818if test x$COIN_PRJCT != x; then
2819  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2820  if test x$coin_tmp = xset; then
2821    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2822  fi
2823fi
2824
2825if test x"$CFLAGS" = x; then
2826
2827  coin_add_cflags=
2828  coin_opt_cflags=
2829  coin_dbg_cflags=
2830  coin_warn_cflags=
2831
2832  if test "$GCC" = "yes"; then
2833    case "$CC" in
2834      icc* | */icc*)
2835        ;;
2836      *)
2837        coin_opt_cflags="-O3"
2838        coin_add_cflags="-pipe"
2839        coin_dbg_cflags="-g -O0"
2840        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2841        case $build in
2842          *-darwin*)
2843            ;;
2844          *)
2845            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2846            ;;
2847        esac
2848    esac
2849  fi
2850  if test -z "$coin_opt_cflags"; then
2851    case $build in
2852      *-cygwin* | *-mingw*)
2853        case "$CC" in
2854          clang* ) ;;
2855          cl* | */cl* | CL* | */CL*)
2856            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2857              coin_opt_cflags='-MD -O2'
2858              coin_dbg_cflags='-MDd'
2859            else
2860              coin_opt_cflags='-MT -O2'
2861              coin_dbg_cflags='-MTd'
2862            fi
2863            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2864            ;;
2865          icl* | */icl* | ICL* | */ICL*)
2866            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2867              coin_opt_cflags='-MD -Ox'
2868              coin_dbg_cflags='-MDd -debug'
2869            else
2870              coin_opt_cflags='-MT -Ox'
2871              coin_dbg_cflags='-MTd -debug'
2872            fi
2873            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2874            ;;
2875        esac
2876        ;;
2877      *-linux-*)
2878        case "$CC" in
2879          icc* | */icc*)
2880            coin_opt_cflags="-O3 -ip -mp1"
2881            coin_add_cflags=""
2882            coin_dbg_cflags="-g"
2883            # Check if -i_dynamic is necessary (for new glibc library)
2884            CFLAGS=
2885            cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h.  */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h.  */
2891
2892int
2893main ()
2894{
2895int i=0; i++;
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext conftest$ac_exeext
2901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2902  (eval $ac_link) 2>conftest.er1
2903  ac_status=$?
2904  grep -v '^ *+' conftest.er1 >conftest.err
2905  rm -f conftest.er1
2906  cat conftest.err >&5
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); } &&
2909         { ac_try='test -z "$ac_c_werror_flag"
2910                         || test ! -s conftest.err'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; } &&
2916         { ac_try='test -s conftest$ac_exeext'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; }; then
2922  :
2923else
2924  echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927coin_add_cflags="-i_dynamic $coin_add_cflags"
2928fi
2929rm -f conftest.err conftest.$ac_objext \
2930      conftest$ac_exeext conftest.$ac_ext
2931            ;;
2932          pgcc* | */pgcc*)
2933            coin_opt_cflags="-fast"
2934            coin_add_cflags="-Kieee -pc 64"
2935            coin_dbg_cflags="-g"
2936            ;;
2937        esac
2938        ;;
2939      *-ibm-*)
2940        case "$CC" in
2941          xlc* | */xlc* | mpxlc* | */mpxlc*)
2942            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2943            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2944            coin_dbg_cflags="-g"
2945          ;;
2946        esac
2947        ;;
2948      *-hp-*)
2949        coin_opt_cflags="-O"
2950        coin_add_cflags="-Ae"
2951        coin_dbg_cflags="-g"
2952        ;;
2953      *-*-solaris*)
2954        coin_opt_cflags="-xO4"
2955        coin_dbg_cflags="-g"
2956        ;;
2957      *-sgi-*)
2958        coin_opt_cflags="-O -OPT:Olimit=0"
2959        coin_dbg_cflags="-g"
2960        ;;
2961    esac
2962  fi
2963
2964  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2965    coin_dbg_cflags="-g"
2966  fi
2967
2968  if test -z "$coin_opt_cflags"; then
2969    # Try if -O option works if nothing else is set
2970    CFLAGS="-O"
2971    cat >conftest.$ac_ext <<_ACEOF
2972/* confdefs.h.  */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h.  */
2977
2978int
2979main ()
2980{
2981int i=0; i++;
2982  ;
2983  return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext conftest$ac_exeext
2987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988  (eval $ac_link) 2>conftest.er1
2989  ac_status=$?
2990  grep -v '^ *+' conftest.er1 >conftest.err
2991  rm -f conftest.er1
2992  cat conftest.err >&5
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); } &&
2995         { ac_try='test -z "$ac_c_werror_flag"
2996                         || test ! -s conftest.err'
2997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998  (eval $ac_try) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; } &&
3002         { ac_try='test -s conftest$ac_exeext'
3003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004  (eval $ac_try) 2>&5
3005  ac_status=$?
3006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007  (exit $ac_status); }; }; then
3008  coin_opt_cflags="-O"
3009else
3010  echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013fi
3014rm -f conftest.err conftest.$ac_objext \
3015      conftest$ac_exeext conftest.$ac_ext
3016  fi
3017
3018  # if PM doesn't want the warning messages, take them out
3019  if test x"$coin_skip_warn_cflags" = xyes; then
3020    coin_warn_cflags=
3021  fi
3022
3023  if test x${DBG_CFLAGS+set} != xset; then
3024    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3025  fi
3026  if test x${OPT_CFLAGS+set} != xset; then
3027    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3028  fi
3029
3030  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3031  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3032
3033  if test "$coin_debug_compile" = "true"; then
3034    CFLAGS="$DBG_CFLAGS"
3035  else
3036    CFLAGS="$OPT_CFLAGS"
3037  fi
3038else
3039  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3040  if test x${DBG_CFLAGS+set} != xset; then
3041    DBG_CFLAGS="$CFLAGS"
3042  fi
3043  if test x${OPT_CFLAGS+set} != xset; then
3044    OPT_CFLAGS="$CFLAGS"
3045  fi
3046fi
3047
3048# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3049
3050case "$CFLAGS" in
3051  *-mno-cygwin*)
3052    if test x${CPPFLAGS+set} != xset ; then
3053      CPPFLAGS="-mno-cygwin"
3054    else
3055      case "$CPPFLAGS" in
3056        *-mno-cygwin*)
3057          ;;
3058        *)
3059          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3060          ;;
3061      esac
3062    fi ;;
3063esac
3064
3065# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3066if test x$COIN_PRJCT != x; then
3067  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3068fi
3069
3070# Try if CFLAGS works
3071save_CFLAGS="$CFLAGS"
3072cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h.  */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h.  */
3078
3079int
3080main ()
3081{
3082int i=0; i++;
3083  ;
3084  return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext conftest$ac_exeext
3088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3089  (eval $ac_link) 2>conftest.er1
3090  ac_status=$?
3091  grep -v '^ *+' conftest.er1 >conftest.err
3092  rm -f conftest.er1
3093  cat conftest.err >&5
3094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); } &&
3096         { ac_try='test -z "$ac_c_werror_flag"
3097                         || test ! -s conftest.err'
3098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099  (eval $ac_try) 2>&5
3100  ac_status=$?
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); }; } &&
3103         { ac_try='test -s conftest$ac_exeext'
3104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105  (eval $ac_try) 2>&5
3106  ac_status=$?
3107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108  (exit $ac_status); }; }; then
3109  :
3110else
3111  echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114CFLAGS=
3115fi
3116rm -f conftest.err conftest.$ac_objext \
3117      conftest$ac_exeext conftest.$ac_ext
3118if test -z "$CFLAGS"; then
3119  { 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
3120echo "$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;}
3121  CFLAGS='-O'
3122  cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h.  */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h.  */
3128
3129int
3130main ()
3131{
3132int i=0; i++;
3133  ;
3134  return 0;
3135}
3136_ACEOF
3137rm -f conftest.$ac_objext conftest$ac_exeext
3138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3139  (eval $ac_link) 2>conftest.er1
3140  ac_status=$?
3141  grep -v '^ *+' conftest.er1 >conftest.err
3142  rm -f conftest.er1
3143  cat conftest.err >&5
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); } &&
3146         { ac_try='test -z "$ac_c_werror_flag"
3147                         || test ! -s conftest.err'
3148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149  (eval $ac_try) 2>&5
3150  ac_status=$?
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); }; } &&
3153         { ac_try='test -s conftest$ac_exeext'
3154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155  (eval $ac_try) 2>&5
3156  ac_status=$?
3157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); }; }; then
3159  :
3160else
3161  echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164CFLAGS=
3165fi
3166rm -f conftest.err conftest.$ac_objext \
3167      conftest$ac_exeext conftest.$ac_ext
3168  if test -z "$CFLAGS"; then
3169    { 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
3170echo "$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;}
3171  fi
3172fi
3173
3174{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3175echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3176
3177
3178if test x"$MPICC" = x; then :; else
3179  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3180echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3181  CC="$MPICC"
3182fi
3183
3184# Correct the LD variable if we are using the MS or Intel-windows compiler
3185case "$CC" in
3186  clang* ) ;;
3187  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3188
3189 case $build in
3190  *-mingw*)
3191    if test "${LD+set}" = set; then :; else
3192      LD=link
3193    fi
3194    ;;
3195 esac
3196 if test $enable_msvc = yes ; then
3197   if test "x${LD+set}" = xset; then :; else
3198     LD=link
3199   fi
3200 fi
3201
3202    ;;
3203esac
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212
3213# Get the name of the Fortran compiler and appropriate compiler options
3214case $build in
3215  *-cygwin* | *-mingw*)
3216     if test "$enable_msvc" = yes ; then
3217       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3218     else
3219       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3220     fi ;;
3221  *-*-solaris*)
3222     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3223  *-linux-gnu*)
3224     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3225  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3226 esac
3227
3228
3229
3230
3231
3232
3233ac_ext=f
3234ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3235ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3237
3238
3239
3240
3241
3242
3243coin_has_f77=yes
3244
3245save_fflags="$FFLAGS"
3246
3247# We delete the cached value, since the test might not have been
3248# performed with our choice of compilers earlier
3249$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3250
3251# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3252# coin_f77_comps to see if there's a program that matches one of the names.
3253# If there's no such program, F77 = unavailable. If we match the name,
3254# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3255# compiler.
3256# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3257
3258
3259{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3260echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3261if test -n "$ac_tool_prefix"; then
3262  for ac_prog in $coin_f77_comps
3263  do
3264    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3265set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3266echo "$as_me:$LINENO: checking for $ac_word" >&5
3267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268if test "${ac_cv_prog_F77+set}" = set; then
3269  echo $ECHO_N "(cached) $ECHO_C" >&6
3270else
3271  if test -n "$F77"; then
3272  ac_cv_prog_F77="$F77" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277  IFS=$as_save_IFS
3278  test -z "$as_dir" && as_dir=.
3279  for ac_exec_ext in '' $ac_executable_extensions; do
3280  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283    break 2
3284  fi
3285done
3286done
3287
3288fi
3289fi
3290F77=$ac_cv_prog_F77
3291if test -n "$F77"; then
3292  echo "$as_me:$LINENO: result: $F77" >&5
3293echo "${ECHO_T}$F77" >&6
3294else
3295  echo "$as_me:$LINENO: result: no" >&5
3296echo "${ECHO_T}no" >&6
3297fi
3298
3299    test -n "$F77" && break
3300  done
3301fi
3302if test -z "$F77"; then
3303  ac_ct_F77=$F77
3304  for ac_prog in $coin_f77_comps
3305do
3306  # Extract the first word of "$ac_prog", so it can be a program name with args.
3307set dummy $ac_prog; ac_word=$2
3308echo "$as_me:$LINENO: checking for $ac_word" >&5
3309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3311  echo $ECHO_N "(cached) $ECHO_C" >&6
3312else
3313  if test -n "$ac_ct_F77"; then
3314  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3315else
3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317for as_dir in $PATH
3318do
3319  IFS=$as_save_IFS
3320  test -z "$as_dir" && as_dir=.
3321  for ac_exec_ext in '' $ac_executable_extensions; do
3322  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323    ac_cv_prog_ac_ct_F77="$ac_prog"
3324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325    break 2
3326  fi
3327done
3328done
3329
3330fi
3331fi
3332ac_ct_F77=$ac_cv_prog_ac_ct_F77
3333if test -n "$ac_ct_F77"; then
3334  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3335echo "${ECHO_T}$ac_ct_F77" >&6
3336else
3337  echo "$as_me:$LINENO: result: no" >&5
3338echo "${ECHO_T}no" >&6
3339fi
3340
3341  test -n "$ac_ct_F77" && break
3342done
3343test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3344
3345  F77=$ac_ct_F77
3346fi
3347
3348
3349if test "$F77" != "unavailable" ; then
3350  ac_ext=f
3351ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3352ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3354if test -n "$ac_tool_prefix"; then
3355  for ac_prog in $coin_f77_comps
3356  do
3357    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3358set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3359echo "$as_me:$LINENO: checking for $ac_word" >&5
3360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3361if test "${ac_cv_prog_F77+set}" = set; then
3362  echo $ECHO_N "(cached) $ECHO_C" >&6
3363else
3364  if test -n "$F77"; then
3365  ac_cv_prog_F77="$F77" # Let the user override the test.
3366else
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370  IFS=$as_save_IFS
3371  test -z "$as_dir" && as_dir=.
3372  for ac_exec_ext in '' $ac_executable_extensions; do
3373  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3375    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376    break 2
3377  fi
3378done
3379done
3380
3381fi
3382fi
3383F77=$ac_cv_prog_F77
3384if test -n "$F77"; then
3385  echo "$as_me:$LINENO: result: $F77" >&5
3386echo "${ECHO_T}$F77" >&6
3387else
3388  echo "$as_me:$LINENO: result: no" >&5
3389echo "${ECHO_T}no" >&6
3390fi
3391
3392    test -n "$F77" && break
3393  done
3394fi
3395if test -z "$F77"; then
3396  ac_ct_F77=$F77
3397  for ac_prog in $coin_f77_comps
3398do
3399  # Extract the first word of "$ac_prog", so it can be a program name with args.
3400set dummy $ac_prog; ac_word=$2
3401echo "$as_me:$LINENO: checking for $ac_word" >&5
3402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3403if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3404  echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406  if test -n "$ac_ct_F77"; then
3407  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3408else
3409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410for as_dir in $PATH
3411do
3412  IFS=$as_save_IFS
3413  test -z "$as_dir" && as_dir=.
3414  for ac_exec_ext in '' $ac_executable_extensions; do
3415  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416    ac_cv_prog_ac_ct_F77="$ac_prog"
3417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418    break 2
3419  fi
3420done
3421done
3422
3423fi
3424fi
3425ac_ct_F77=$ac_cv_prog_ac_ct_F77
3426if test -n "$ac_ct_F77"; then
3427  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3428echo "${ECHO_T}$ac_ct_F77" >&6
3429else
3430  echo "$as_me:$LINENO: result: no" >&5
3431echo "${ECHO_T}no" >&6
3432fi
3433
3434  test -n "$ac_ct_F77" && break
3435done
3436
3437  F77=$ac_ct_F77
3438fi
3439
3440
3441# Provide some information about the compiler.
3442echo "$as_me:3442:" \
3443     "checking for Fortran 77 compiler version" >&5
3444ac_compiler=`set X $ac_compile; echo $2`
3445{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3446  (eval $ac_compiler --version </dev/null >&5) 2>&5
3447  ac_status=$?
3448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449  (exit $ac_status); }
3450{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3451  (eval $ac_compiler -v </dev/null >&5) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }
3455{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3456  (eval $ac_compiler -V </dev/null >&5) 2>&5
3457  ac_status=$?
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); }
3460rm -f a.out
3461
3462# If we don't use `.F' as extension, the preprocessor is not run on the
3463# input file.  (Note that this only needs to work for GNU compilers.)
3464ac_save_ext=$ac_ext
3465ac_ext=F
3466echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3467echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3468if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3469  echo $ECHO_N "(cached) $ECHO_C" >&6
3470else
3471  cat >conftest.$ac_ext <<_ACEOF
3472      program main
3473#ifndef __GNUC__
3474       choke me
3475#endif
3476
3477      end
3478_ACEOF
3479rm -f conftest.$ac_objext
3480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3481  (eval $ac_compile) 2>conftest.er1
3482  ac_status=$?
3483  grep -v '^ *+' conftest.er1 >conftest.err
3484  rm -f conftest.er1
3485  cat conftest.err >&5
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); } &&
3488         { ac_try='test -z "$ac_f77_werror_flag"
3489                         || test ! -s conftest.err'
3490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491  (eval $ac_try) 2>&5
3492  ac_status=$?
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); }; } &&
3495         { ac_try='test -s conftest.$ac_objext'
3496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497  (eval $ac_try) 2>&5
3498  ac_status=$?
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); }; }; then
3501  ac_compiler_gnu=yes
3502else
3503  echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506ac_compiler_gnu=no
3507fi
3508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3509ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3510
3511fi
3512echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3513echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3514ac_ext=$ac_save_ext
3515ac_test_FFLAGS=${FFLAGS+set}
3516ac_save_FFLAGS=$FFLAGS
3517FFLAGS=
3518echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3519echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3520if test "${ac_cv_prog_f77_g+set}" = set; then
3521  echo $ECHO_N "(cached) $ECHO_C" >&6
3522else
3523  FFLAGS=-g
3524cat >conftest.$ac_ext <<_ACEOF
3525      program main
3526
3527      end
3528_ACEOF
3529rm -f conftest.$ac_objext
3530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531  (eval $ac_compile) 2>conftest.er1
3532  ac_status=$?
3533  grep -v '^ *+' conftest.er1 >conftest.err
3534  rm -f conftest.er1
3535  cat conftest.err >&5
3536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537  (exit $ac_status); } &&
3538         { ac_try='test -z "$ac_f77_werror_flag"
3539                         || test ! -s conftest.err'
3540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541  (eval $ac_try) 2>&5
3542  ac_status=$?
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); }; } &&
3545         { ac_try='test -s conftest.$ac_objext'
3546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547  (eval $ac_try) 2>&5
3548  ac_status=$?
3549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550  (exit $ac_status); }; }; then
3551  ac_cv_prog_f77_g=yes
3552else
3553  echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556ac_cv_prog_f77_g=no
3557fi
3558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3559
3560fi
3561echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3562echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3563if test "$ac_test_FFLAGS" = set; then
3564  FFLAGS=$ac_save_FFLAGS
3565elif test $ac_cv_prog_f77_g = yes; then
3566  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3567    FFLAGS="-g -O2"
3568  else
3569    FFLAGS="-g"
3570  fi
3571else
3572  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3573    FFLAGS="-O2"
3574  else
3575    FFLAGS=
3576  fi
3577fi
3578
3579G77=`test $ac_compiler_gnu = yes && echo yes`
3580ac_ext=f
3581ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3582ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3584
3585else
3586  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3587echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3588fi
3589
3590FFLAGS="$save_fflags"
3591
3592# Check if a project specific FFLAGS variable has been set
3593if test x$COIN_PRJCT != x; then
3594  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3595  if test x$coin_tmp = xset; then
3596    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3597  fi
3598fi
3599
3600if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3601
3602  coin_add_fflags=
3603  coin_opt_fflags=
3604  coin_dbg_fflags=
3605  coin_warn_fflags=
3606
3607  if test "$G77" = "yes"; then
3608    coin_opt_fflags="-O3"
3609    coin_add_fflags="-pipe"
3610    coin_dbg_fflags="-g -O0"
3611  else
3612    case $build in
3613      *-cygwin* | *-mingw*)
3614        case $F77 in
3615          ifort* | */ifort* | IFORT* | */IFORT* )
3616            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3617              coin_opt_fflags='-MD -O3'
3618              coin_dbg_fflags='-MDd -debug'
3619            else
3620              coin_opt_fflags='-MT -O3'
3621              coin_dbg_fflags='-MTd -debug'
3622            fi
3623            coin_add_fflags='-fpp -nologo'
3624          ;;
3625          compile_f2c*)
3626            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3627              coin_opt_fflags='-MD -O2'
3628              coin_dbg_fflags='-MDd'
3629            else
3630              coin_opt_fflags='-MT -O2'
3631              coin_dbg_fflags='-MTd'
3632            fi
3633            coin_add_fflags='-nologo -wd4996'
3634          ;;
3635        esac
3636        ;;
3637      *-linux-*)
3638        case $F77 in
3639          ifc* | */ifc* | ifort* | */ifort*)
3640            coin_opt_fflags="-O3 -ip"
3641            coin_add_fflags="-cm -w90 -w95"
3642            coin_dbg_fflags="-g -CA -CB -CS"
3643            # Check if -i_dynamic is necessary (for new glibc library)
3644            FFLAGS=
3645            cat >conftest.$ac_ext <<_ACEOF
3646      program main
3647      write(*,*) 'Hello world'
3648      end
3649_ACEOF
3650rm -f conftest.$ac_objext conftest$ac_exeext
3651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3652  (eval $ac_link) 2>conftest.er1
3653  ac_status=$?
3654  grep -v '^ *+' conftest.er1 >conftest.err
3655  rm -f conftest.er1
3656  cat conftest.err >&5
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); } &&
3659         { ac_try='test -z "$ac_f77_werror_flag"
3660                         || test ! -s conftest.err'
3661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662  (eval $ac_try) 2>&5
3663  ac_status=$?
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); }; } &&
3666         { ac_try='test -s conftest$ac_exeext'
3667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668  (eval $ac_try) 2>&5
3669  ac_status=$?
3670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); }; }; then
3672  :
3673else
3674  echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677coin_add_fflags="-i_dynamic $coin_add_fflags"
3678fi
3679rm -f conftest.err conftest.$ac_objext \
3680      conftest$ac_exeext conftest.$ac_ext
3681            ;;
3682          pgf77* | */pgf77* | pgf90* | */pgf90*)
3683            coin_opt_fflags="-fast"
3684            coin_add_fflags="-Kieee -pc 64"
3685            coin_dbg_fflags="-g"
3686          ;;
3687        esac
3688        ;;
3689      *-ibm-*)
3690        case "$F77" in
3691          xlf* | */xlf* | mpxlf* | */mpxlf* )
3692            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3693            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3694            coin_dbg_fflags="-g -C"
3695            ;;
3696        esac
3697        ;;
3698      *-hp-*)
3699        coin_opt_fflags="+O3"
3700        coin_add_fflags="+U77"
3701        coin_dbg_fflags="-C -g"
3702        ;;
3703      *-*-solaris*)
3704        coin_opt_fflags="-O4"
3705        coin_dbg_fflags="-g"
3706        ;;
3707      *-sgi-*)
3708        coin_opt_fflags="-O5 -OPT:Olimit=0"
3709        coin_dbg_fflags="-g"
3710        ;;
3711    esac
3712  fi
3713
3714  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3715    coin_dbg_fflags="-g"
3716  fi
3717
3718  if test -z "$coin_opt_fflags"; then
3719    # Try if -O option works if nothing else is set
3720    FFLAGS=-O
3721    cat >conftest.$ac_ext <<_ACEOF
3722      program main
3723      integer i
3724      end
3725_ACEOF
3726rm -f conftest.$ac_objext conftest$ac_exeext
3727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728  (eval $ac_link) 2>conftest.er1
3729  ac_status=$?
3730  grep -v '^ *+' conftest.er1 >conftest.err
3731  rm -f conftest.er1
3732  cat conftest.err >&5
3733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734  (exit $ac_status); } &&
3735         { ac_try='test -z "$ac_f77_werror_flag"
3736                         || test ! -s conftest.err'
3737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738  (eval $ac_try) 2>&5
3739  ac_status=$?
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); }; } &&
3742         { ac_try='test -s conftest$ac_exeext'
3743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744  (eval $ac_try) 2>&5
3745  ac_status=$?
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); }; }; then
3748  coin_opt_fflags="-O"
3749else
3750  echo "$as_me: failed program was:" >&5
3751sed 's/^/| /' conftest.$ac_ext >&5
3752
3753fi
3754rm -f conftest.err conftest.$ac_objext \
3755      conftest$ac_exeext conftest.$ac_ext
3756  fi
3757
3758  # if PM doesn't want the warning messages, take them out
3759  if test x"$coin_skip_warn_fflags" = xyes; then
3760    coin_warn_fflags=
3761  fi
3762
3763  if test x${DBG_FFLAGS+set} != xset; then
3764    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3765  fi
3766  if test x${OPT_FFLAGS+set} != xset; then
3767    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3768  fi
3769
3770  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3771  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3772
3773  if test "$coin_debug_compile" = "true"; then
3774    FFLAGS="$DBG_FFLAGS"
3775  else
3776    FFLAGS="$OPT_FFLAGS"
3777  fi
3778else
3779  FFLAGS="$FFLAGS $ADD_FFLAGS"
3780  if test x${DBG_FFLAGS+set} != xset; then
3781    DBG_FFLAGS="$FFLAGS"
3782  fi
3783  if test x${OPT_FFLAGS+set} != xset; then
3784    OPT_FFLAGS="$FFLAGS"
3785  fi
3786fi
3787
3788# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3789case "$FFLAGS" in
3790  *-mno-cygwin*)
3791    if test x${CPPFLAGS+set} != xset ; then
3792      CPPFLAGS="-mno-cygwin"
3793    else
3794      case "$CPPFLAGS" in
3795        *-mno-cygwin*)
3796          ;;
3797        *)
3798          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3799          ;;
3800      esac
3801    fi ;;
3802esac
3803
3804# Try if FFLAGS works
3805if test "$F77" != "unavailable" ; then
3806  cat >conftest.$ac_ext <<_ACEOF
3807      program main
3808      integer i
3809      end
3810_ACEOF
3811rm -f conftest.$ac_objext conftest$ac_exeext
3812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813  (eval $ac_link) 2>conftest.er1
3814  ac_status=$?
3815  grep -v '^ *+' conftest.er1 >conftest.err
3816  rm -f conftest.er1
3817  cat conftest.err >&5
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); } &&
3820         { ac_try='test -z "$ac_f77_werror_flag"
3821                         || test ! -s conftest.err'
3822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823  (eval $ac_try) 2>&5
3824  ac_status=$?
3825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826  (exit $ac_status); }; } &&
3827         { ac_try='test -s conftest$ac_exeext'
3828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829  (eval $ac_try) 2>&5
3830  ac_status=$?
3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); }; }; then
3833  :
3834else
3835  echo "$as_me: failed program was:" >&5
3836sed 's/^/| /' conftest.$ac_ext >&5
3837
3838FFLAGS=
3839fi
3840rm -f conftest.err conftest.$ac_objext \
3841      conftest$ac_exeext conftest.$ac_ext
3842  if test -z "$FFLAGS"; then
3843    { 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
3844echo "$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;}
3845    FFLAGS='-O'
3846    cat >conftest.$ac_ext <<_ACEOF
3847      program main
3848      integer i
3849      end
3850_ACEOF
3851rm -f conftest.$ac_objext conftest$ac_exeext
3852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853  (eval $ac_link) 2>conftest.er1
3854  ac_status=$?
3855  grep -v '^ *+' conftest.er1 >conftest.err
3856  rm -f conftest.er1
3857  cat conftest.err >&5
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); } &&
3860         { ac_try='test -z "$ac_f77_werror_flag"
3861                         || test ! -s conftest.err'
3862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863  (eval $ac_try) 2>&5
3864  ac_status=$?
3865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866  (exit $ac_status); }; } &&
3867         { ac_try='test -s conftest$ac_exeext'
3868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869  (eval $ac_try) 2>&5
3870  ac_status=$?
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); }; }; then
3873  :
3874else
3875  echo "$as_me: failed program was:" >&5
3876sed 's/^/| /' conftest.$ac_ext >&5
3877
3878FFLAGS=
3879fi
3880rm -f conftest.err conftest.$ac_objext \
3881      conftest$ac_exeext conftest.$ac_ext
3882    if test -z "$FFLAGS"; then
3883      { 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
3884echo "$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;}
3885    fi
3886  fi
3887fi
3888
3889{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3890echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3891
3892
3893if test x"$MPIF77" = x; then :; else
3894  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3895echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3896  F77="$MPIF77"
3897fi
3898
3899# correct the LD variable if we use the intel fortran compiler in windows
3900case "$F77" in
3901  ifort* | */ifort* | IFORT* | */IFORT*)
3902
3903 case $build in
3904  *-mingw*)
3905    if test "${LD+set}" = set; then :; else
3906      LD=link
3907    fi
3908    ;;
3909 esac
3910 if test $enable_msvc = yes ; then
3911   if test "x${LD+set}" = xset; then :; else
3912     LD=link
3913   fi
3914 fi
3915
3916    ;;
3917esac
3918
3919ac_ext=c
3920ac_cpp='$CPP $CPPFLAGS'
3921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924
3925
3926
3927# Check if pkg-config is available (to setup addlibs file)
3928
3929
3930# Check whether --enable-pkg-config or --disable-pkg-config was given.
3931if test "${enable_pkg_config+set}" = set; then
3932  enableval="$enable_pkg_config"
3933  use_pkgconfig="$enableval"
3934else
3935  if test x$coin_cc_is_cl = xtrue; then
3936     use_pkgconfig=no
3937   else
3938     use_pkgconfig=yes
3939   fi
3940fi;
3941
3942if test $use_pkgconfig = yes ; then
3943  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3944    if test -n "$ac_tool_prefix"; then
3945  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3946set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3947echo "$as_me:$LINENO: checking for $ac_word" >&5
3948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3950  echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3952  if test -n "$PKG_CONFIG"; then
3953  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958  IFS=$as_save_IFS
3959  test -z "$as_dir" && as_dir=.
3960  for ac_exec_ext in '' $ac_executable_extensions; do
3961  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3963    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964    break 2
3965  fi
3966done
3967done
3968
3969fi
3970fi
3971PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3972if test -n "$PKG_CONFIG"; then
3973  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3974echo "${ECHO_T}$PKG_CONFIG" >&6
3975else
3976  echo "$as_me:$LINENO: result: no" >&5
3977echo "${ECHO_T}no" >&6
3978fi
3979
3980fi
3981if test -z "$ac_cv_prog_PKG_CONFIG"; then
3982  ac_ct_PKG_CONFIG=$PKG_CONFIG
3983  # Extract the first word of "pkg-config", so it can be a program name with args.
3984set dummy pkg-config; ac_word=$2
3985echo "$as_me:$LINENO: checking for $ac_word" >&5
3986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3988  echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990  if test -n "$ac_ct_PKG_CONFIG"; then
3991  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3992else
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996  IFS=$as_save_IFS
3997  test -z "$as_dir" && as_dir=.
3998  for ac_exec_ext in '' $ac_executable_extensions; do
3999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002    break 2
4003  fi
4004done
4005done
4006
4007fi
4008fi
4009ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4010if test -n "$ac_ct_PKG_CONFIG"; then
4011  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4012echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4013else
4014  echo "$as_me:$LINENO: result: no" >&5
4015echo "${ECHO_T}no" >&6
4016fi
4017
4018  PKG_CONFIG=$ac_ct_PKG_CONFIG
4019else
4020  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4021fi
4022
4023  fi
4024  if test -n "$PKG_CONFIG"; then
4025    _pkg_min_version=0.16.0
4026    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4027echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4028    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4029      echo "$as_me:$LINENO: result: yes" >&5
4030echo "${ECHO_T}yes" >&6
4031    else
4032      echo "$as_me:$LINENO: result: no" >&5
4033echo "${ECHO_T}no" >&6
4034      PKG_CONFIG=""
4035    fi
4036  fi
4037
4038  # check if pkg-config supports the short-errors flag
4039  if test -n "$PKG_CONFIG" && \
4040    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4041    pkg_short_errors=" --short-errors "
4042  else
4043    pkg_short_errors=""
4044  fi
4045fi
4046
4047
4048
4049if test -n "$PKG_CONFIG"; then
4050  COIN_HAS_PKGCONFIG_TRUE=
4051  COIN_HAS_PKGCONFIG_FALSE='#'
4052else
4053  COIN_HAS_PKGCONFIG_TRUE='#'
4054  COIN_HAS_PKGCONFIG_FALSE=
4055fi
4056
4057
4058
4059# assemble pkg-config search path for installed projects
4060COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4061
4062# 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
4063# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4064# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4065if test "x${prefix}" = xNONE ; then
4066  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4067else
4068  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4069fi
4070
4071
4072# Check whether --with-coin-instdir or --without-coin-instdir was given.
4073if test "${with_coin_instdir+set}" = set; then
4074  withval="$with_coin_instdir"
4075  if test -d "$withval"; then : ; else
4076     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4077echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4078   { (exit 1); exit 1; }; }
4079   fi
4080   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4081
4082fi;
4083
4084
4085
4086# assemble additional pkg-config search paths for uninstalled projects
4087if test x$coin_projectdir = xyes ; then
4088  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4089  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4090  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4091  # 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)
4092  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4093  if test -e ../coin_subdirs.txt ; then
4094    for i in `cat ../coin_subdirs.txt` ; do
4095      if test -d ../$i ; then
4096        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4097      fi
4098      if test -d ../$i/pkgconfig ; then
4099        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4100      fi
4101    done
4102  fi
4103
4104  if test -e ../../coin_subdirs.txt ; then
4105    for i in `cat ../../coin_subdirs.txt` ; do
4106      if test -d ../../$i ; then
4107        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4108      fi
4109      if test -d ../../$i/pkgconfig ; then
4110        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4111      fi
4112    done
4113  fi
4114
4115
4116fi
4117
4118if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4119  { 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
4120echo "$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;}
4121fi
4122
4123
4124
4125# Get the linker flags (FLIBS) that are required for linking against this blas library
4126
4127# get FLIBS
4128ac_ext=f
4129ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4130ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4132echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4133echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4134if test "${ac_cv_prog_f77_v+set}" = set; then
4135  echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137  cat >conftest.$ac_ext <<_ACEOF
4138      program main
4139
4140      end
4141_ACEOF
4142rm -f conftest.$ac_objext
4143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144  (eval $ac_compile) 2>conftest.er1
4145  ac_status=$?
4146  grep -v '^ *+' conftest.er1 >conftest.err
4147  rm -f conftest.er1
4148  cat conftest.err >&5
4149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150  (exit $ac_status); } &&
4151         { ac_try='test -z "$ac_f77_werror_flag"
4152                         || test ! -s conftest.err'
4153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154  (eval $ac_try) 2>&5
4155  ac_status=$?
4156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157  (exit $ac_status); }; } &&
4158         { ac_try='test -s conftest.$ac_objext'
4159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160  (eval $ac_try) 2>&5
4161  ac_status=$?
4162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163  (exit $ac_status); }; }; then
4164  ac_cv_prog_f77_v=
4165# Try some options frequently used verbose output
4166for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4167  cat >conftest.$ac_ext <<_ACEOF
4168      program main
4169
4170      end
4171_ACEOF
4172
4173# Compile and link our simple test program by passing a flag (argument
4174# 1 to this macro) to the Fortran compiler in order to get
4175# "verbose" output that we can then parse for the Fortran linker
4176# flags.
4177ac_save_FFLAGS=$FFLAGS
4178FFLAGS="$FFLAGS $ac_verb"
4179(eval echo $as_me:4179: \"$ac_link\") >&5
4180ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4181echo "$ac_f77_v_output" >&5
4182FFLAGS=$ac_save_FFLAGS
4183
4184rm -f conftest*
4185
4186# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4187# /foo, /bar, and /baz are search directories for the Fortran linker.
4188# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4189ac_f77_v_output="`echo $ac_f77_v_output |
4190        grep 'LPATH is:' |
4191        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4192
4193case $ac_f77_v_output in
4194  # If we are using xlf then replace all the commas with spaces.
4195  *xlfentry*)
4196    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4197
4198  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4199  # $LIBS confuse us, and the libraries appear later in the output anyway).
4200  *mGLOB_options_string*)
4201    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4202
4203  # If we are using Cray Fortran then delete quotes.
4204  # Use "\"" instead of '"' for font-lock-mode.
4205  # FIXME: a more general fix for quoted arguments with spaces?
4206  *cft90*)
4207    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4208esac
4209
4210
4211  # look for -l* and *.a constructs in the output
4212  for ac_arg in $ac_f77_v_output; do
4213     case $ac_arg in
4214        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4215          ac_cv_prog_f77_v=$ac_verb
4216          break 2 ;;
4217     esac
4218  done
4219done
4220if test -z "$ac_cv_prog_f77_v"; then
4221   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4222echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4223fi
4224else
4225  echo "$as_me: failed program was:" >&5
4226sed 's/^/| /' conftest.$ac_ext >&5
4227
4228{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4229echo "$as_me: WARNING: compilation failed" >&2;}
4230fi
4231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232
4233fi
4234echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4235echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4236echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4237echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4238if test "${ac_cv_f77_libs+set}" = set; then
4239  echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241  if test "x$FLIBS" != "x"; then
4242  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4243else
4244
4245cat >conftest.$ac_ext <<_ACEOF
4246      program main
4247
4248      end
4249_ACEOF
4250
4251# Compile and link our simple test program by passing a flag (argument
4252# 1 to this macro) to the Fortran compiler in order to get
4253# "verbose" output that we can then parse for the Fortran linker
4254# flags.
4255ac_save_FFLAGS=$FFLAGS
4256FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4257(eval echo $as_me:4257: \"$ac_link\") >&5
4258ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4259echo "$ac_f77_v_output" >&5
4260FFLAGS=$ac_save_FFLAGS
4261
4262rm -f conftest*
4263
4264# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4265# /foo, /bar, and /baz are search directories for the Fortran linker.
4266# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4267ac_f77_v_output="`echo $ac_f77_v_output |
4268        grep 'LPATH is:' |
4269        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4270
4271case $ac_f77_v_output in
4272  # If we are using xlf then replace all the commas with spaces.
4273  *xlfentry*)
4274    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4275
4276  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4277  # $LIBS confuse us, and the libraries appear later in the output anyway).
4278  *mGLOB_options_string*)
4279    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4280
4281  # If we are using Cray Fortran then delete quotes.
4282  # Use "\"" instead of '"' for font-lock-mode.
4283  # FIXME: a more general fix for quoted arguments with spaces?
4284  *cft90*)
4285    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4286esac
4287
4288
4289
4290ac_cv_f77_libs=
4291
4292# Save positional arguments (if any)
4293ac_save_positional="$@"
4294
4295set X $ac_f77_v_output
4296while test $# != 1; do
4297  shift
4298  ac_arg=$1
4299  case $ac_arg in
4300        [\\/]*.a | ?:[\\/]*.a)
4301            ac_exists=false
4302  for ac_i in $ac_cv_f77_libs; do
4303    if test x"$ac_arg" = x"$ac_i"; then
4304      ac_exists=true
4305      break
4306    fi
4307  done
4308
4309  if test x"$ac_exists" = xtrue; then
4310  :
4311else
4312  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4313fi
4314
4315          ;;
4316        -bI:*)
4317            ac_exists=false
4318  for ac_i in $ac_cv_f77_libs; do
4319    if test x"$ac_arg" = x"$ac_i"; then
4320      ac_exists=true
4321      break
4322    fi
4323  done
4324
4325  if test x"$ac_exists" = xtrue; then
4326  :
4327else
4328  if test "$ac_compiler_gnu" = yes; then
4329  for ac_link_opt in $ac_arg; do
4330    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4331  done
4332else
4333  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4334fi
4335fi
4336
4337          ;;
4338          # Ignore these flags.
4339        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4340          ;;
4341        -lkernel32)
4342          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4343          ;;
4344        -[LRuY])
4345          # These flags, when seen by themselves, take an argument.
4346          # We remove the space between option and argument and re-iterate
4347          # unless we find an empty arg or a new option (starting with -)
4348          case $2 in
4349             "" | -*);;
4350             *)
4351                ac_arg="$ac_arg$2"
4352                shift; shift
4353                set X $ac_arg "$@"
4354                ;;
4355          esac
4356          ;;
4357        -YP,*)
4358          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4359              ac_exists=false
4360  for ac_i in $ac_cv_f77_libs; do
4361    if test x"$ac_j" = x"$ac_i"; then
4362      ac_exists=true
4363      break
4364    fi
4365  done
4366
4367  if test x"$ac_exists" = xtrue; then
4368  :
4369else
4370  ac_arg="$ac_arg $ac_j"
4371                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4372fi
4373
4374          done
4375          ;;
4376        -[lLR]*)
4377            ac_exists=false
4378  for ac_i in $ac_cv_f77_libs; do
4379    if test x"$ac_arg" = x"$ac_i"; then
4380      ac_exists=true
4381      break
4382    fi
4383  done
4384
4385  if test x"$ac_exists" = xtrue; then
4386  :
4387else
4388  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4389fi
4390
4391          ;;
4392          # Ignore everything else.
4393  esac
4394done
4395# restore positional arguments
4396set X $ac_save_positional; shift
4397
4398# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4399# then we insist that the "run path" must be an absolute path (i.e. it
4400# must begin with a "/").
4401case `(uname -sr) 2>/dev/null` in
4402   "SunOS 5"*)
4403      ac_ld_run_path=`echo $ac_f77_v_output |
4404                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4405      test "x$ac_ld_run_path" != x &&
4406        if test "$ac_compiler_gnu" = yes; then
4407  for ac_link_opt in $ac_ld_run_path; do
4408    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4409  done
4410else
4411  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4412fi
4413      ;;
4414esac
4415fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4416
4417fi
4418echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4419echo "${ECHO_T}$ac_cv_f77_libs" >&6
4420FLIBS="$ac_cv_f77_libs"
4421
4422
4423ac_ext=c
4424ac_cpp='$CPP $CPPFLAGS'
4425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428
4429orig_FLIBS="$FLIBS"
4430
4431# If FLIBS has been set by the user, we just restore its value here
4432if test x"$save_FLIBS" != x; then
4433  FLIBS="$save_FLIBS"
4434else
4435  # This is to correct a missing exclusion in autoconf 2.59
4436  if test x"$FLIBS" != x; then
4437    my_flibs=
4438    for flag in $FLIBS; do
4439      case $flag in
4440        -lcrt*.o) ;;
4441        -lcygwin) ;;
4442               *) my_flibs="$my_flibs $flag" ;;
4443      esac
4444    done
4445    FLIBS="$my_flibs"
4446  fi
4447
4448  case $build in
4449  # The following is a fix to define FLIBS for ifort on Windows
4450  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4451  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4452  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4453  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4454  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4455     *-cygwin* | *-mingw*)
4456       case "$F77" in
4457#         ifort* | */ifort* | IFORT* | */IFORT*)
4458#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4459#           if "$coin_debug_compile" = true ; then
4460#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4461#           else
4462#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4463#           fi
4464#           ;;
4465         compile_f2c*)
4466           FLIBS=`$F77 -FLIBS` ;;
4467       esac;;
4468     *-hp-*)
4469         FLIBS="$FLIBS -lm";;
4470     *-ibm-*)
4471         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4472     *-linux-*)
4473       case "$F77" in
4474         pgf77* | */pgf77* | pgf90* | */pgf90*)
4475# ask linker to go through the archives multiple times
4476# (the Fortran compiler seems to do that automatically...)
4477           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4478       esac
4479  esac
4480  ac_cv_f77_libs="$FLIBS"
4481fi
4482
4483if test "x$orig_FLIBS" != "x$FLIBS" ; then
4484  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4485echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4486fi
4487
4488ac_ext=f
4489ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4490ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4492
4493echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4494echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4495if test "${ac_cv_f77_dummy_main+set}" = set; then
4496  echo $ECHO_N "(cached) $ECHO_C" >&6
4497else
4498  ac_f77_dm_save_LIBS=$LIBS
4499 LIBS="$LIBS $FLIBS"
4500 ac_fortran_dm_var=F77_DUMMY_MAIN
4501 ac_ext=c
4502ac_cpp='$CPP $CPPFLAGS'
4503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506
4507 # First, try linking without a dummy main:
4508 cat >conftest.$ac_ext <<_ACEOF
4509/* confdefs.h.  */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h.  */
4514
4515#ifdef F77_DUMMY_MAIN
4516
4517#  ifdef __cplusplus
4518     extern "C"
4519#  endif
4520   int F77_DUMMY_MAIN() { return 1; }
4521
4522#endif
4523int
4524main ()
4525{
4526
4527  ;
4528  return 0;
4529}
4530_ACEOF
4531rm -f conftest.$ac_objext conftest$ac_exeext
4532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4533  (eval $ac_link) 2>conftest.er1
4534  ac_status=$?
4535  grep -v '^ *+' conftest.er1 >conftest.err
4536  rm -f conftest.er1
4537  cat conftest.err >&5
4538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539  (exit $ac_status); } &&
4540         { ac_try='test -z "$ac_c_werror_flag"
4541                         || test ! -s conftest.err'
4542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543  (eval $ac_try) 2>&5
4544  ac_status=$?
4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); }; } &&
4547         { ac_try='test -s conftest$ac_exeext'
4548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549  (eval $ac_try) 2>&5
4550  ac_status=$?
4551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); }; }; then
4553  ac_cv_fortran_dummy_main=none
4554else
4555  echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
4558ac_cv_fortran_dummy_main=unknown
4559fi
4560rm -f conftest.err conftest.$ac_objext \
4561      conftest$ac_exeext conftest.$ac_ext
4562
4563 if test $ac_cv_fortran_dummy_main = unknown; then
4564   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4565     cat >conftest.$ac_ext <<_ACEOF
4566/* confdefs.h.  */
4567_ACEOF
4568cat confdefs.h >>conftest.$ac_ext
4569cat >>conftest.$ac_ext <<_ACEOF
4570/* end confdefs.h.  */
4571#define $ac_fortran_dm_var $ac_func
4572#ifdef F77_DUMMY_MAIN
4573
4574#  ifdef __cplusplus
4575     extern "C"
4576#  endif
4577   int F77_DUMMY_MAIN() { return 1; }
4578
4579#endif
4580int
4581main ()
4582{
4583
4584  ;
4585  return 0;
4586}
4587_ACEOF
4588rm -f conftest.$ac_objext conftest$ac_exeext
4589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590  (eval $ac_link) 2>conftest.er1
4591  ac_status=$?
4592  grep -v '^ *+' conftest.er1 >conftest.err
4593  rm -f conftest.er1
4594  cat conftest.err >&5
4595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596  (exit $ac_status); } &&
4597         { ac_try='test -z "$ac_c_werror_flag"
4598                         || test ! -s conftest.err'
4599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600  (eval $ac_try) 2>&5
4601  ac_status=$?
4602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603  (exit $ac_status); }; } &&
4604         { ac_try='test -s conftest$ac_exeext'
4605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606  (eval $ac_try) 2>&5
4607  ac_status=$?
4608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609  (exit $ac_status); }; }; then
4610  ac_cv_fortran_dummy_main=$ac_func; break
4611else
4612  echo "$as_me: failed program was:" >&5
4613sed 's/^/| /' conftest.$ac_ext >&5
4614
4615fi
4616rm -f conftest.err conftest.$ac_objext \
4617      conftest$ac_exeext conftest.$ac_ext
4618   done
4619 fi
4620 ac_ext=f
4621ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4622ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4624 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4625 rm -f conftest*
4626 LIBS=$ac_f77_dm_save_LIBS
4627
4628fi
4629echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4630echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4631F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4632if test "$F77_DUMMY_MAIN" != unknown; then
4633  if test $F77_DUMMY_MAIN != none; then
4634
4635cat >>confdefs.h <<_ACEOF
4636#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4637_ACEOF
4638
4639  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4640
4641cat >>confdefs.h <<\_ACEOF
4642#define FC_DUMMY_MAIN_EQ_F77 1
4643_ACEOF
4644
4645  fi
4646fi
4647else
4648  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4649See \`config.log' for more details." >&5
4650echo "$as_me: error: linking to Fortran libraries from C fails
4651See \`config.log' for more details." >&2;}
4652   { (exit 1); exit 1; }; }
4653fi
4654
4655
4656ac_ext=f
4657ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4658ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4660
4661ac_ext=f
4662ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4663ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4665echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4666echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4667if test "${ac_cv_f77_mangling+set}" = set; then
4668  echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670  cat >conftest.$ac_ext <<_ACEOF
4671      subroutine foobar()
4672      return
4673      end
4674      subroutine foo_bar()
4675      return
4676      end
4677_ACEOF
4678rm -f conftest.$ac_objext
4679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680  (eval $ac_compile) 2>conftest.er1
4681  ac_status=$?
4682  grep -v '^ *+' conftest.er1 >conftest.err
4683  rm -f conftest.er1
4684  cat conftest.err >&5
4685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686  (exit $ac_status); } &&
4687         { ac_try='test -z "$ac_f77_werror_flag"
4688                         || test ! -s conftest.err'
4689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690  (eval $ac_try) 2>&5
4691  ac_status=$?
4692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693  (exit $ac_status); }; } &&
4694         { ac_try='test -s conftest.$ac_objext'
4695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696  (eval $ac_try) 2>&5
4697  ac_status=$?
4698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699  (exit $ac_status); }; }; then
4700  mv conftest.$ac_objext cfortran_test.$ac_objext
4701
4702  ac_save_LIBS=$LIBS
4703  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4704
4705  ac_ext=c
4706ac_cpp='$CPP $CPPFLAGS'
4707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709ac_compiler_gnu=$ac_cv_c_compiler_gnu
4710  ac_success=no
4711  for ac_foobar in foobar FOOBAR; do
4712    for ac_underscore in "" "_"; do
4713      ac_func="$ac_foobar$ac_underscore"
4714      cat >conftest.$ac_ext <<_ACEOF
4715/* confdefs.h.  */
4716_ACEOF
4717cat confdefs.h >>conftest.$ac_ext
4718cat >>conftest.$ac_ext <<_ACEOF
4719/* end confdefs.h.  */
4720
4721/* Override any gcc2 internal prototype to avoid an error.  */
4722#ifdef __cplusplus
4723extern "C"
4724#endif
4725/* We use char because int might match the return type of a gcc2
4726   builtin and then its argument prototype would still apply.  */
4727char $ac_func ();
4728#ifdef F77_DUMMY_MAIN
4729
4730#  ifdef __cplusplus
4731     extern "C"
4732#  endif
4733   int F77_DUMMY_MAIN() { return 1; }
4734
4735#endif
4736int
4737main ()
4738{
4739$ac_func ();
4740  ;
4741  return 0;
4742}
4743_ACEOF
4744rm -f conftest.$ac_objext conftest$ac_exeext
4745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4746  (eval $ac_link) 2>conftest.er1
4747  ac_status=$?
4748  grep -v '^ *+' conftest.er1 >conftest.err
4749  rm -f conftest.er1
4750  cat conftest.err >&5
4751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752  (exit $ac_status); } &&
4753         { ac_try='test -z "$ac_c_werror_flag"
4754                         || test ! -s conftest.err'
4755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756  (eval $ac_try) 2>&5
4757  ac_status=$?
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); }; } &&
4760         { ac_try='test -s conftest$ac_exeext'
4761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762  (eval $ac_try) 2>&5
4763  ac_status=$?
4764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765  (exit $ac_status); }; }; then
4766  ac_success=yes; break 2
4767else
4768  echo "$as_me: failed program was:" >&5
4769sed 's/^/| /' conftest.$ac_ext >&5
4770
4771fi
4772rm -f conftest.err conftest.$ac_objext \
4773      conftest$ac_exeext conftest.$ac_ext
4774    done
4775  done
4776  ac_ext=f
4777ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4778ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4780
4781  if test "$ac_success" = "yes"; then
4782     case $ac_foobar in
4783        foobar)
4784           ac_case=lower
4785           ac_foo_bar=foo_bar
4786           ;;
4787        FOOBAR)
4788           ac_case=upper
4789           ac_foo_bar=FOO_BAR
4790           ;;
4791     esac
4792
4793     ac_ext=c
4794ac_cpp='$CPP $CPPFLAGS'
4795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798     ac_success_extra=no
4799     for ac_extra in "" "_"; do
4800        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4801        cat >conftest.$ac_ext <<_ACEOF
4802/* confdefs.h.  */
4803_ACEOF
4804cat confdefs.h >>conftest.$ac_ext
4805cat >>conftest.$ac_ext <<_ACEOF
4806/* end confdefs.h.  */
4807
4808/* Override any gcc2 internal prototype to avoid an error.  */
4809#ifdef __cplusplus
4810extern "C"
4811#endif
4812/* We use char because int might match the return type of a gcc2
4813   builtin and then its argument prototype would still apply.  */
4814char $ac_func ();
4815#ifdef F77_DUMMY_MAIN
4816
4817#  ifdef __cplusplus
4818     extern "C"
4819#  endif
4820   int F77_DUMMY_MAIN() { return 1; }
4821
4822#endif
4823int
4824main ()
4825{
4826$ac_func ();
4827  ;
4828  return 0;
4829}
4830_ACEOF
4831rm -f conftest.$ac_objext conftest$ac_exeext
4832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4833  (eval $ac_link) 2>conftest.er1
4834  ac_status=$?
4835  grep -v '^ *+' conftest.er1 >conftest.err
4836  rm -f conftest.er1
4837  cat conftest.err >&5
4838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839  (exit $ac_status); } &&
4840         { ac_try='test -z "$ac_c_werror_flag"
4841                         || test ! -s conftest.err'
4842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843  (eval $ac_try) 2>&5
4844  ac_status=$?
4845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846  (exit $ac_status); }; } &&
4847         { ac_try='test -s conftest$ac_exeext'
4848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849  (eval $ac_try) 2>&5
4850  ac_status=$?
4851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852  (exit $ac_status); }; }; then
4853  ac_success_extra=yes; break
4854else
4855  echo "$as_me: failed program was:" >&5
4856sed 's/^/| /' conftest.$ac_ext >&5
4857
4858fi
4859rm -f conftest.err conftest.$ac_objext \
4860      conftest$ac_exeext conftest.$ac_ext
4861     done
4862     ac_ext=f
4863ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4864ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4866
4867     if test "$ac_success_extra" = "yes"; then
4868        ac_cv_f77_mangling="$ac_case case"
4869        if test -z "$ac_underscore"; then
4870           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4871        else
4872           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4873        fi
4874        if test -z "$ac_extra"; then
4875           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4876        else
4877           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4878        fi
4879      else
4880        ac_cv_f77_mangling="unknown"
4881      fi
4882  else
4883     ac_cv_f77_mangling="unknown"
4884  fi
4885
4886  LIBS=$ac_save_LIBS
4887  rm -f cfortran_test* conftest*
4888else
4889  echo "$as_me: failed program was:" >&5
4890sed 's/^/| /' conftest.$ac_ext >&5
4891
4892{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4893See \`config.log' for more details." >&5
4894echo "$as_me: error: cannot compile a simple Fortran program
4895See \`config.log' for more details." >&2;}
4896   { (exit 1); exit 1; }; }
4897fi
4898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4899
4900fi
4901echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4902echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4903
4904ac_ext=f
4905ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4906ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4908
4909
4910ac_ext=f
4911ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4912ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4914
4915ac_ext=f
4916ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4917ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4919
4920
4921case $ac_cv_f77_mangling in
4922  "lower case, no underscore, no extra underscore")
4923          cat >>confdefs.h <<\_ACEOF
4924#define F77_FUNC(name,NAME) name
4925_ACEOF
4926
4927          cat >>confdefs.h <<\_ACEOF
4928#define F77_FUNC_(name,NAME) name
4929_ACEOF
4930 ;;
4931  "lower case, no underscore, extra underscore")
4932          cat >>confdefs.h <<\_ACEOF
4933#define F77_FUNC(name,NAME) name
4934_ACEOF
4935
4936          cat >>confdefs.h <<\_ACEOF
4937#define F77_FUNC_(name,NAME) name ## _
4938_ACEOF
4939 ;;
4940  "lower case, underscore, no extra underscore")
4941          cat >>confdefs.h <<\_ACEOF
4942#define F77_FUNC(name,NAME) name ## _
4943_ACEOF
4944
4945          cat >>confdefs.h <<\_ACEOF
4946#define F77_FUNC_(name,NAME) name ## _
4947_ACEOF
4948 ;;
4949  "lower case, underscore, extra underscore")
4950          cat >>confdefs.h <<\_ACEOF
4951#define F77_FUNC(name,NAME) name ## _
4952_ACEOF
4953
4954          cat >>confdefs.h <<\_ACEOF
4955#define F77_FUNC_(name,NAME) name ## __
4956_ACEOF
4957 ;;
4958  "upper case, no underscore, no extra underscore")
4959          cat >>confdefs.h <<\_ACEOF
4960#define F77_FUNC(name,NAME) NAME
4961_ACEOF
4962
4963          cat >>confdefs.h <<\_ACEOF
4964#define F77_FUNC_(name,NAME) NAME
4965_ACEOF
4966 ;;
4967  "upper case, no underscore, extra underscore")
4968          cat >>confdefs.h <<\_ACEOF
4969#define F77_FUNC(name,NAME) NAME
4970_ACEOF
4971
4972          cat >>confdefs.h <<\_ACEOF
4973#define F77_FUNC_(name,NAME) NAME ## _
4974_ACEOF
4975 ;;
4976  "upper case, underscore, no extra underscore")
4977          cat >>confdefs.h <<\_ACEOF
4978#define F77_FUNC(name,NAME) NAME ## _
4979_ACEOF
4980
4981          cat >>confdefs.h <<\_ACEOF
4982#define F77_FUNC_(name,NAME) NAME ## _
4983_ACEOF
4984 ;;
4985  "upper case, underscore, extra underscore")
4986          cat >>confdefs.h <<\_ACEOF
4987#define F77_FUNC(name,NAME) NAME ## _
4988_ACEOF
4989
4990          cat >>confdefs.h <<\_ACEOF
4991#define F77_FUNC_(name,NAME) NAME ## __
4992_ACEOF
4993 ;;
4994  *)
4995          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4996echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4997          ;;
4998esac
4999
5000ac_ext=f
5001ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5002ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5004
5005ac_ext=c
5006ac_cpp='$CPP $CPPFLAGS'
5007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010
5011
5012
5013
5014# Add FLIBS to HSL_PCLIBS, so that they get into the .pc files
5015HSL_PCLIBS="$HSL_PCLIBS $FLIBS"
5016
5017# Need egrep later on
5018echo "$as_me:$LINENO: checking for egrep" >&5
5019echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5020if test "${ac_cv_prog_egrep+set}" = set; then
5021  echo $ECHO_N "(cached) $ECHO_C" >&6
5022else
5023  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5024    then ac_cv_prog_egrep='grep -E'
5025    else ac_cv_prog_egrep='egrep'
5026    fi
5027fi
5028echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5029echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5030 EGREP=$ac_cv_prog_egrep
5031
5032
5033
5034# Also set up the FC compiler variable, required to compile .f90
5035# files.  We use the same compile and flags as F77 and FFLAGS, unless
5036# the user has set FC and FCFLAGS explicitly.
5037if test "$FC" = ""; then
5038  FC="$F77"
5039fi
5040if test "$FCFLAGS" = ""; then
5041  FCFLAGS="$FFLAGS"
5042fi
5043ac_ext=${FC_SRCEXT-f}
5044ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5045ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5046ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5047if test -n "$ac_tool_prefix"; then
5048  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5049  do
5050    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5051set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5052echo "$as_me:$LINENO: checking for $ac_word" >&5
5053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5054if test "${ac_cv_prog_FC+set}" = set; then
5055  echo $ECHO_N "(cached) $ECHO_C" >&6
5056else
5057  if test -n "$FC"; then
5058  ac_cv_prog_FC="$FC" # Let the user override the test.
5059else
5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063  IFS=$as_save_IFS
5064  test -z "$as_dir" && as_dir=.
5065  for ac_exec_ext in '' $ac_executable_extensions; do
5066  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5068    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069    break 2
5070  fi
5071done
5072done
5073
5074fi
5075fi
5076FC=$ac_cv_prog_FC
5077if test -n "$FC"; then
5078  echo "$as_me:$LINENO: result: $FC" >&5
5079echo "${ECHO_T}$FC" >&6
5080else
5081  echo "$as_me:$LINENO: result: no" >&5
5082echo "${ECHO_T}no" >&6
5083fi
5084
5085    test -n "$FC" && break
5086  done
5087fi
5088if test -z "$FC"; then
5089  ac_ct_FC=$FC
5090  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5091do
5092  # Extract the first word of "$ac_prog", so it can be a program name with args.
5093set dummy $ac_prog; ac_word=$2
5094echo "$as_me:$LINENO: checking for $ac_word" >&5
5095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5096if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
5097  echo $ECHO_N "(cached) $ECHO_C" >&6
5098else
5099  if test -n "$ac_ct_FC"; then
5100  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5101else
5102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH
5104do
5105  IFS=$as_save_IFS
5106  test -z "$as_dir" && as_dir=.
5107  for ac_exec_ext in '' $ac_executable_extensions; do
5108  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5109    ac_cv_prog_ac_ct_FC="$ac_prog"
5110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5111    break 2
5112  fi
5113done
5114done
5115
5116fi
5117fi
5118ac_ct_FC=$ac_cv_prog_ac_ct_FC
5119if test -n "$ac_ct_FC"; then
5120  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
5121echo "${ECHO_T}$ac_ct_FC" >&6
5122else
5123  echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
5125fi
5126
5127  test -n "$ac_ct_FC" && break
5128done
5129
5130  FC=$ac_ct_FC
5131fi
5132
5133
5134# Provide some information about the compiler.
5135echo "$as_me:5135:" \
5136     "checking for Fortran compiler version" >&5
5137ac_compiler=`set X $ac_compile; echo $2`
5138{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5139  (eval $ac_compiler --version </dev/null >&5) 2>&5
5140  ac_status=$?
5141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142  (exit $ac_status); }
5143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5144  (eval $ac_compiler -v </dev/null >&5) 2>&5
5145  ac_status=$?
5146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147  (exit $ac_status); }
5148{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5149  (eval $ac_compiler -V </dev/null >&5) 2>&5
5150  ac_status=$?
5151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); }
5153rm -f a.out
5154
5155# If we don't use `.F' as extension, the preprocessor is not run on the
5156# input file.  (Note that this only needs to work for GNU compilers.)
5157ac_save_ext=$ac_ext
5158ac_ext=F
5159echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
5160echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
5161if test "${ac_cv_fc_compiler_gnu+set}" = set; then
5162  echo $ECHO_N "(cached) $ECHO_C" >&6
5163else
5164  cat >conftest.$ac_ext <<_ACEOF
5165      program main
5166#ifndef __GNUC__
5167       choke me
5168#endif
5169
5170      end
5171_ACEOF
5172rm -f conftest.$ac_objext
5173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5174  (eval $ac_compile) 2>conftest.er1
5175  ac_status=$?
5176  grep -v '^ *+' conftest.er1 >conftest.err
5177  rm -f conftest.er1
5178  cat conftest.err >&5
5179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180  (exit $ac_status); } &&
5181         { ac_try='test -z "$ac_fc_werror_flag"
5182                         || test ! -s conftest.err'
5183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184  (eval $ac_try) 2>&5
5185  ac_status=$?
5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187  (exit $ac_status); }; } &&
5188         { ac_try='test -s conftest.$ac_objext'
5189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190  (eval $ac_try) 2>&5
5191  ac_status=$?
5192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193  (exit $ac_status); }; }; then
5194  ac_compiler_gnu=yes
5195else
5196  echo "$as_me: failed program was:" >&5
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199ac_compiler_gnu=no
5200fi
5201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5202ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5203
5204fi
5205echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
5206echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
5207ac_ext=$ac_save_ext
5208ac_test_FFLAGS=${FCFLAGS+set}
5209ac_save_FFLAGS=$FCFLAGS
5210FCFLAGS=
5211echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
5212echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
5213if test "${ac_cv_prog_fc_g+set}" = set; then
5214  echo $ECHO_N "(cached) $ECHO_C" >&6
5215else
5216  FCFLAGS=-g
5217cat >conftest.$ac_ext <<_ACEOF
5218      program main
5219
5220      end
5221_ACEOF
5222rm -f conftest.$ac_objext
5223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224  (eval $ac_compile) 2>conftest.er1
5225  ac_status=$?
5226  grep -v '^ *+' conftest.er1 >conftest.err
5227  rm -f conftest.er1
5228  cat conftest.err >&5
5229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230  (exit $ac_status); } &&
5231         { ac_try='test -z "$ac_fc_werror_flag"
5232                         || test ! -s conftest.err'
5233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234  (eval $ac_try) 2>&5
5235  ac_status=$?
5236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237  (exit $ac_status); }; } &&
5238         { ac_try='test -s conftest.$ac_objext'
5239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240  (eval $ac_try) 2>&5
5241  ac_status=$?
5242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243  (exit $ac_status); }; }; then
5244  ac_cv_prog_fc_g=yes
5245else
5246  echo "$as_me: failed program was:" >&5
5247sed 's/^/| /' conftest.$ac_ext >&5
5248
5249ac_cv_prog_fc_g=no
5250fi
5251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5252
5253fi
5254echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
5255echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
5256if test "$ac_test_FFLAGS" = set; then
5257  FCFLAGS=$ac_save_FFLAGS
5258elif test $ac_cv_prog_fc_g = yes; then
5259  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5260    FCFLAGS="-g -O2"
5261  else
5262    FCFLAGS="-g"
5263  fi
5264else
5265  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5266    FCFLAGS="-O2"
5267  else
5268    FCFLAGS=
5269  fi
5270fi
5271
5272ac_ext=c
5273ac_cpp='$CPP $CPPFLAGS'
5274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276ac_compiler_gnu=$ac_cv_c_compiler_gnu
5277
5278
5279# recent autotools versions can recognize OpenMP with the following macro
5280# this would be useful when using MA86 and MA97
5281# AC_OPENMP
5282
5283# Initialize autotools
5284
5285if test x$enable_loadable_library = xyes; then
5286  flag=force_shared
5287fi
5288{
5289
5290
5291
5292# START
5293
5294coin_disable_shared=no
5295# Test if force_shared has been set
5296if test "x$flag" = xforce_shared; then
5297  if test x$enable_shared = xno; then
5298    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5299echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5300   { (exit 1); exit 1; }; }
5301  fi
5302  enable_shared=yes;
5303else
5304  # On Cygwin and AIX, building DLLs doesn't work
5305  case $build in
5306    *-cygwin* | *-mingw*)
5307      coin_disable_shared=yes
5308      if test x"$enable_shared" = xyes; then
5309        case "$CXX" in
5310          clang* )
5311            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5312echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5313            ;;
5314          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5315            { 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
5316echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
5317            ;;
5318          *)
5319            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5320echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5321            ;;
5322        esac
5323      fi
5324    ;;
5325    *-aix*)
5326      coin_disable_shared=yes
5327      platform=AIX
5328      if test x"$enable_shared" = xyes; then
5329        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
5330echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
5331      fi
5332    ;;
5333  esac
5334fi
5335if test x"$coin_disable_shared" = xyes; then
5336  if test x"$enable_shared" = xyes; then
5337    :
5338  else
5339    # we don't disable shared, because it was not selected anyway
5340    coin_disable_shared=no
5341  fi
5342  enable_shared=no
5343fi
5344# By default, we only want the shared objects to be compiled
5345# Check whether --enable-static or --disable-static was given.
5346if test "${enable_static+set}" = set; then
5347  enableval="$enable_static"
5348  p=${PACKAGE-default}
5349    case $enableval in
5350    yes) enable_static=yes ;;
5351    no) enable_static=no ;;
5352    *)
5353     enable_static=no
5354      # Look at the argument we got.  We use all the common list separators.
5355      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5356      for pkg in $enableval; do
5357        IFS="$lt_save_ifs"
5358        if test "X$pkg" = "X$p"; then
5359          enable_static=yes
5360        fi
5361      done
5362      IFS="$lt_save_ifs"
5363      ;;
5364    esac
5365else
5366  enable_static=no
5367fi;
5368
5369
5370
5371
5372# Initialize automake
5373echo "$as_me:$LINENO: checking whether ln -s works" >&5
5374echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5375LN_S=$as_ln_s
5376if test "$LN_S" = "ln -s"; then
5377  echo "$as_me:$LINENO: result: yes" >&5
5378echo "${ECHO_T}yes" >&6
5379else
5380  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5381echo "${ECHO_T}no, using $LN_S" >&6
5382fi
5383
5384am__api_version="1.9"
5385# Find a good install program.  We prefer a C program (faster),
5386# so one script is as good as another.  But avoid the broken or
5387# incompatible versions:
5388# SysV /etc/install, /usr/sbin/install
5389# SunOS /usr/etc/install
5390# IRIX /sbin/install
5391# AIX /bin/install
5392# AmigaOS /C/install, which installs bootblocks on floppy discs
5393# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5394# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5395# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5396# OS/2's system install, which has a completely different semantic
5397# ./install, which can be erroneously created by make from ./install.sh.
5398echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5399echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5400if test -z "$INSTALL"; then
5401if test "${ac_cv_path_install+set}" = set; then
5402  echo $ECHO_N "(cached) $ECHO_C" >&6
5403else
5404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407  IFS=$as_save_IFS
5408  test -z "$as_dir" && as_dir=.
5409  # Account for people who put trailing slashes in PATH elements.
5410case $as_dir/ in
5411  ./ | .// | /cC/* | \
5412  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5413  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5414  /usr/ucb/* ) ;;
5415  *)
5416    # OSF1 and SCO ODT 3.0 have their own names for install.
5417    # Don't use installbsd from OSF since it installs stuff as root
5418    # by default.
5419    for ac_prog in ginstall scoinst install; do
5420      for ac_exec_ext in '' $ac_executable_extensions; do
5421        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5422          if test $ac_prog = install &&
5423            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5424            # AIX install.  It has an incompatible calling convention.
5425            :
5426          elif test $ac_prog = install &&
5427            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5428            # program-specific install script used by HP pwplus--don't use.
5429            :
5430          else
5431            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5432            break 3
5433          fi
5434        fi
5435      done
5436    done
5437    ;;
5438esac
5439done
5440
5441
5442fi
5443  if test "${ac_cv_path_install+set}" = set; then
5444    INSTALL=$ac_cv_path_install
5445  else
5446    # As a last resort, use the slow shell script.  We don't cache a
5447    # path for INSTALL within a source directory, because that will
5448    # break other packages using the cache if that directory is
5449    # removed, or if the path is relative.
5450    INSTALL=$ac_install_sh
5451  fi
5452fi
5453echo "$as_me:$LINENO: result: $INSTALL" >&5
5454echo "${ECHO_T}$INSTALL" >&6
5455
5456# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5457# It thinks the first close brace ends the variable substitution.
5458test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5459
5460test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5461
5462test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5463
5464echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5465echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5466# Just in case
5467sleep 1
5468echo timestamp > conftest.file
5469# Do `set' in a subshell so we don't clobber the current shell's
5470# arguments.  Must try -L first in case configure is actually a
5471# symlink; some systems play weird games with the mod time of symlinks
5472# (eg FreeBSD returns the mod time of the symlink's containing
5473# directory).
5474if (
5475   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5476   if test "$*" = "X"; then
5477      # -L didn't work.
5478      set X `ls -t $srcdir/configure conftest.file`
5479   fi
5480   rm -f conftest.file
5481   if test "$*" != "X $srcdir/configure conftest.file" \
5482      && test "$*" != "X conftest.file $srcdir/configure"; then
5483
5484      # If neither matched, then we have a broken ls.  This can happen
5485      # if, for instance, CONFIG_SHELL is bash and it inherits a
5486      # broken ls alias from the environment.  This has actually
5487      # happened.  Such a system could not be considered "sane".
5488      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5489alias in your environment" >&5
5490echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5491alias in your environment" >&2;}
5492   { (exit 1); exit 1; }; }
5493   fi
5494
5495   test "$2" = conftest.file
5496   )
5497then
5498   # Ok.
5499   :
5500else
5501   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5502Check your system clock" >&5
5503echo "$as_me: error: newly created file is older than distributed files!
5504Check your system clock" >&2;}
5505   { (exit 1); exit 1; }; }
5506fi
5507echo "$as_me:$LINENO: result: yes" >&5
5508echo "${ECHO_T}yes" >&6
5509test "$program_prefix" != NONE &&
5510  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5511# Use a double $ so make ignores it.
5512test "$program_suffix" != NONE &&
5513  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5514# Double any \ or $.  echo might interpret backslashes.
5515# By default was `s,x,x', remove it if useless.
5516cat <<\_ACEOF >conftest.sed
5517s/[\\$]/&&/g;s/;s,x,x,$//
5518_ACEOF
5519program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5520rm conftest.sed
5521
5522# expand $ac_aux_dir to an absolute path
5523am_aux_dir=`cd $ac_aux_dir && pwd`
5524
5525test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5526# Use eval to expand $SHELL
5527if eval "$MISSING --run true"; then
5528  am_missing_run="$MISSING --run "
5529else
5530  am_missing_run=
5531  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5532echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5533fi
5534
5535if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5536  # We used to keeping the `.' as first argument, in order to
5537  # allow $(mkdir_p) to be used without argument.  As in
5538  #   $(mkdir_p) $(somedir)
5539  # where $(somedir) is conditionally defined.  However this is wrong
5540  # for two reasons:
5541  #  1. if the package is installed by a user who cannot write `.'
5542  #     make install will fail,
5543  #  2. the above comment should most certainly read
5544  #     $(mkdir_p) $(DESTDIR)$(somedir)
5545  #     so it does not work when $(somedir) is undefined and
5546  #     $(DESTDIR) is not.
5547  #  To support the latter case, we have to write
5548  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5549  #  so the `.' trick is pointless.
5550  mkdir_p='mkdir -p --'
5551else
5552  # On NextStep and OpenStep, the `mkdir' command does not
5553  # recognize any option.  It will interpret all options as
5554  # directories to create, and then abort because `.' already
5555  # exists.
5556  for d in ./-p ./--version;
5557  do
5558    test -d $d && rmdir $d
5559  done
5560  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5561  if test -f "$ac_aux_dir/mkinstalldirs"; then
5562    mkdir_p='$(mkinstalldirs)'
5563  else
5564    mkdir_p='$(install_sh) -d'
5565  fi
5566fi
5567
5568for ac_prog in gawk mawk nawk awk
5569do
5570  # Extract the first word of "$ac_prog", so it can be a program name with args.
5571set dummy $ac_prog; ac_word=$2
5572echo "$as_me:$LINENO: checking for $ac_word" >&5
5573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5574if test "${ac_cv_prog_AWK+set}" = set; then
5575  echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577  if test -n "$AWK"; then
5578  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5579else
5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583  IFS=$as_save_IFS
5584  test -z "$as_dir" && as_dir=.
5585  for ac_exec_ext in '' $ac_executable_extensions; do
5586  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587    ac_cv_prog_AWK="$ac_prog"
5588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589    break 2
5590  fi
5591done
5592done
5593
5594fi
5595fi
5596AWK=$ac_cv_prog_AWK
5597if test -n "$AWK"; then
5598  echo "$as_me:$LINENO: result: $AWK" >&5
5599echo "${ECHO_T}$AWK" >&6
5600else
5601  echo "$as_me:$LINENO: result: no" >&5
5602echo "${ECHO_T}no" >&6
5603fi
5604
5605  test -n "$AWK" && break
5606done
5607
5608echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5609echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5610set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5611if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5612  echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614  cat >conftest.make <<\_ACEOF
5615all:
5616        @echo 'ac_maketemp="$(MAKE)"'
5617_ACEOF
5618# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5619eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5620if test -n "$ac_maketemp"; then
5621  eval ac_cv_prog_make_${ac_make}_set=yes
5622else
5623  eval ac_cv_prog_make_${ac_make}_set=no
5624fi
5625rm -f conftest.make
5626fi
5627if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5628  echo "$as_me:$LINENO: result: yes" >&5
5629echo "${ECHO_T}yes" >&6
5630  SET_MAKE=
5631else
5632  echo "$as_me:$LINENO: result: no" >&5
5633echo "${ECHO_T}no" >&6
5634  SET_MAKE="MAKE=${MAKE-make}"
5635fi
5636
5637rm -rf .tst 2>/dev/null
5638mkdir .tst 2>/dev/null
5639if test -d .tst; then
5640  am__leading_dot=.
5641else
5642  am__leading_dot=_
5643fi
5644rmdir .tst 2>/dev/null
5645
5646DEPDIR="${am__leading_dot}deps"
5647
5648          ac_config_commands="$ac_config_commands depfiles"
5649
5650
5651am_make=${MAKE-make}
5652cat > confinc << 'END'
5653am__doit:
5654        @echo done
5655.PHONY: am__doit
5656END
5657# If we don't find an include directive, just comment out the code.
5658echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5659echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5660am__include="#"
5661am__quote=
5662_am_result=none
5663# First try GNU make style include.
5664echo "include confinc" > confmf
5665# We grep out `Entering directory' and `Leaving directory'
5666# messages which can occur if `w' ends up in MAKEFLAGS.
5667# In particular we don't look at `^make:' because GNU make might
5668# be invoked under some other name (usually "gmake"), in which
5669# case it prints its new name instead of `make'.
5670if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5671   am__include=include
5672   am__quote=
5673   _am_result=GNU
5674fi
5675# Now try BSD make style include.
5676if test "$am__include" = "#"; then
5677   echo '.include "confinc"' > confmf
5678   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5679      am__include=.include
5680      am__quote="\""
5681      _am_result=BSD
5682   fi
5683fi
5684
5685
5686echo "$as_me:$LINENO: result: $_am_result" >&5
5687echo "${ECHO_T}$_am_result" >&6
5688rm -f confinc confmf
5689
5690# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5691if test "${enable_dependency_tracking+set}" = set; then
5692  enableval="$enable_dependency_tracking"
5693
5694fi;
5695if test "x$enable_dependency_tracking" != xno; then
5696  am_depcomp="$ac_aux_dir/depcomp"
5697  AMDEPBACKSLASH='\'
5698fi
5699
5700
5701if test "x$enable_dependency_tracking" != xno; then
5702  AMDEP_TRUE=
5703  AMDEP_FALSE='#'
5704else
5705  AMDEP_TRUE='#'
5706  AMDEP_FALSE=
5707fi
5708
5709
5710
5711
5712
5713
5714# AC_MSG_NOTICE([Beginning automake initialisation.])
5715# Stuff for automake
5716# test to see if srcdir already configured
5717if test "`cd $srcdir && pwd`" != "`pwd`" &&
5718   test -f $srcdir/config.status; then
5719  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5720echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5721   { (exit 1); exit 1; }; }
5722fi
5723
5724# test whether we have cygpath
5725if test -z "$CYGPATH_W"; then
5726  if (cygpath --version) >/dev/null 2>/dev/null; then
5727    CYGPATH_W='cygpath -w'
5728  else
5729    CYGPATH_W=echo
5730  fi
5731fi
5732
5733
5734# Define the identity of the package.
5735 PACKAGE='thirdpartyhsl'
5736 VERSION='1.4.2'
5737
5738
5739cat >>confdefs.h <<_ACEOF
5740#define PACKAGE "$PACKAGE"
5741_ACEOF
5742
5743
5744cat >>confdefs.h <<_ACEOF
5745#define VERSION "$VERSION"
5746_ACEOF
5747
5748# Some tools Automake needs.
5749
5750ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5751
5752
5753AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5754
5755
5756AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5757
5758
5759AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5760
5761
5762MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5763
5764install_sh=${install_sh-"$am_aux_dir/install-sh"}
5765
5766# Installed binaries are usually stripped using `strip' when the user
5767# run `make install-strip'.  However `strip' might not be the right
5768# tool to use in cross-compilation environments, therefore Automake
5769# will honor the `STRIP' environment variable to overrule this program.
5770if test "$cross_compiling" != no; then
5771  if test -n "$ac_tool_prefix"; then
5772  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5773set dummy ${ac_tool_prefix}strip; ac_word=$2
5774echo "$as_me:$LINENO: checking for $ac_word" >&5
5775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5776if test "${ac_cv_prog_STRIP+set}" = set; then
5777  echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779  if test -n "$STRIP"; then
5780  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5781else
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785  IFS=$as_save_IFS
5786  test -z "$as_dir" && as_dir=.
5787  for ac_exec_ext in '' $ac_executable_extensions; do
5788  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791    break 2
5792  fi
5793done
5794done
5795
5796fi
5797fi
5798STRIP=$ac_cv_prog_STRIP
5799if test -n "$STRIP"; then
5800  echo "$as_me:$LINENO: result: $STRIP" >&5
5801echo "${ECHO_T}$STRIP" >&6
5802else
5803  echo "$as_me:$LINENO: result: no" >&5
5804echo "${ECHO_T}no" >&6
5805fi
5806
5807fi
5808if test -z "$ac_cv_prog_STRIP"; then
5809  ac_ct_STRIP=$STRIP
5810  # Extract the first word of "strip", so it can be a program name with args.
5811set dummy strip; ac_word=$2
5812echo "$as_me:$LINENO: checking for $ac_word" >&5
5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5815  echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817  if test -n "$ac_ct_STRIP"; then
5818  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823  IFS=$as_save_IFS
5824  test -z "$as_dir" && as_dir=.
5825  for ac_exec_ext in '' $ac_executable_extensions; do
5826  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827    ac_cv_prog_ac_ct_STRIP="strip"
5828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829    break 2
5830  fi
5831done
5832done
5833
5834  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5835fi
5836fi
5837ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5838if test -n "$ac_ct_STRIP"; then
5839  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5840echo "${ECHO_T}$ac_ct_STRIP" >&6
5841else
5842  echo "$as_me:$LINENO: result: no" >&5
5843echo "${ECHO_T}no" >&6
5844fi
5845
5846  STRIP=$ac_ct_STRIP
5847else
5848  STRIP="$ac_cv_prog_STRIP"
5849fi
5850
5851fi
5852INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5853
5854# We need awk for the "check" target.  The system "awk" is bad on
5855# some platforms.
5856# Always define AMTAR for backward compatibility.
5857
5858AMTAR=${AMTAR-"${am_missing_run}tar"}
5859
5860am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5861
5862
5863
5864
5865depcc="$CC"   am_compiler_list=
5866
5867echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5868echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5869if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5870  echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5873  # We make a subdir and do the tests there.  Otherwise we can end up
5874  # making bogus files that we don't know about and never remove.  For
5875  # instance it was reported that on HP-UX the gcc test will end up
5876  # making a dummy file named `D' -- because `-MD' means `put the output
5877  # in D'.
5878  mkdir conftest.dir
5879  # Copy depcomp to subdir because otherwise we won't find it if we're
5880  # using a relative directory.
5881  cp "$am_depcomp" conftest.dir
5882  cd conftest.dir
5883  # We will build objects and dependencies in a subdirectory because
5884  # it helps to detect inapplicable dependency modes.  For instance
5885  # both Tru64's cc and ICC support -MD to output dependencies as a
5886  # side effect of compilation, but ICC will put the dependencies in
5887  # the current directory while Tru64 will put them in the object
5888  # directory.
5889  mkdir sub
5890
5891  am_cv_CC_dependencies_compiler_type=none
5892  if test "$am_compiler_list" = ""; then
5893     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5894  fi
5895  for depmode in $am_compiler_list; do
5896    # Setup a source with many dependencies, because some compilers
5897    # like to wrap large dependency lists on column 80 (with \), and
5898    # we should not choose a depcomp mode which is confused by this.
5899    #
5900    # We need to recreate these files for each test, as the compiler may
5901    # overwrite some of them when testing with obscure command lines.
5902    # This happens at least with the AIX C compiler.
5903    : > sub/conftest.c
5904    for i in 1 2 3 4 5 6; do
5905      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5906      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5907      # Solaris 8's {/usr,}/bin/sh.
5908      touch sub/conftst$i.h
5909    done
5910    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5911
5912    case $depmode in
5913    nosideeffect)
5914      # after this tag, mechanisms are not by side-effect, so they'll
5915      # only be used when explicitly requested
5916      if test "x$enable_dependency_tracking" = xyes; then
5917        continue
5918      else
5919        break
5920      fi
5921      ;;
5922    none) break ;;
5923    esac
5924    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5925    # mode.  It turns out that the SunPro C++ compiler does not properly
5926    # handle `-M -o', and we need to detect this.
5927    if depmode=$depmode \
5928       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5929       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5930       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5931         >/dev/null 2>conftest.err &&
5932       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5933       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5934       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5935      # icc doesn't choke on unknown options, it will just issue warnings
5936      # or remarks (even with -Werror).  So we grep stderr for any message
5937      # that says an option was ignored or not supported.
5938      # When given -MP, icc 7.0 and 7.1 complain thusly:
5939      #   icc: Command line warning: ignoring option '-M'; no argument required
5940      # The diagnosis changed in icc 8.0:
5941      #   icc: Command line remark: option '-MP' not supported
5942      if (grep 'ignoring option' conftest.err ||
5943          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5944        am_cv_CC_dependencies_compiler_type=$depmode
5945        break
5946      fi
5947    fi
5948  done
5949
5950  cd ..
5951  rm -rf conftest.dir
5952else
5953  am_cv_CC_dependencies_compiler_type=none
5954fi
5955
5956fi
5957echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5958echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5959CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5960
5961
5962
5963if
5964  test "x$enable_dependency_tracking" != xno \
5965  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5966  am__fastdepCC_TRUE=
5967  am__fastdepCC_FALSE='#'
5968else
5969  am__fastdepCC_TRUE='#'
5970  am__fastdepCC_FALSE=
5971fi
5972
5973
5974
5975echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5976echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5977    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5978if test "${enable_maintainer_mode+set}" = set; then
5979  enableval="$enable_maintainer_mode"
5980  USE_MAINTAINER_MODE=$enableval
5981else
5982  USE_MAINTAINER_MODE=no
5983fi;
5984  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5985echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5986
5987
5988if test $USE_MAINTAINER_MODE = yes; then
5989  MAINTAINER_MODE_TRUE=
5990  MAINTAINER_MODE_FALSE='#'
5991else
5992  MAINTAINER_MODE_TRUE='#'
5993  MAINTAINER_MODE_FALSE=
5994fi
5995
5996  MAINT=$MAINTAINER_MODE_TRUE
5997
5998
5999
6000coin_have_externals=no
6001if test "$enable_maintainer_mode" = yes; then
6002
6003  # If maintainer mode is chosen, we make sure that the correct versions
6004  # of the tools are used, and that we know where libtool.m4 is (to
6005  # recreate acinclude.m4)
6006
6007
6008  LIBTOOLM4=
6009  # Normally, $HOME
6010  AUTOTOOLS_DFLT=$HOME
6011
6012  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6013echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6014if test "${ac_cv_use_correct_autotools+set}" = set; then
6015  echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017  ac_cv_use_correct_autotools=check
6018fi
6019echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6020echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6021
6022  if test $ac_cv_use_correct_autotools = check; then
6023    ac_cv_use_correct_autotools=yes
6024    # Check if we have autoconf
6025    # Extract the first word of "autoconf", so it can be a program name with args.
6026set dummy autoconf; ac_word=$2
6027echo "$as_me:$LINENO: checking for $ac_word" >&5
6028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6029if test "${ac_cv_prog_have_autoconf+set}" = set; then
6030  echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032  if test -n "$have_autoconf"; then
6033  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6034else
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038  IFS=$as_save_IFS
6039  test -z "$as_dir" && as_dir=.
6040  for ac_exec_ext in '' $ac_executable_extensions; do
6041  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6042    ac_cv_prog_have_autoconf="yes"
6043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044    break 2
6045  fi
6046done
6047done
6048
6049  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6050fi
6051fi
6052have_autoconf=$ac_cv_prog_have_autoconf
6053if test -n "$have_autoconf"; then
6054  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6055echo "${ECHO_T}$have_autoconf" >&6
6056else
6057  echo "$as_me:$LINENO: result: no" >&5
6058echo "${ECHO_T}no" >&6
6059fi
6060
6061    if test $have_autoconf = no; then
6062      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6063echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6064   { (exit 1); exit 1; }; }
6065    fi
6066
6067    # Check whether autoconf is the correct version
6068    correct_version='2.59'
6069    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6070    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6071echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6072    autoconf --version > confauto.out 2>&1
6073    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6074      echo "$as_me:$LINENO: result: yes" >&5
6075echo "${ECHO_T}yes" >&6
6076    else
6077      rm -f confauto.out
6078      echo "$as_me:$LINENO: result: no" >&5
6079echo "${ECHO_T}no" >&6
6080      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6081echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6082   { (exit 1); exit 1; }; }
6083    fi
6084    rm -f confauto.out
6085
6086    # Check if the executable autoconf is picked up from the correct location
6087    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6088echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6089    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6090    autoconf_dir=`cd $autoconf_dir; pwd`
6091    if test x$AUTOTOOLS_DIR = x; then
6092      want_dir=$AUTOTOOLS_DFLT/bin
6093    else
6094      want_dir=$AUTOTOOLS_DIR/bin
6095    fi
6096    if test $autoconf_dir = `cd $want_dir; pwd`; then
6097      echo "$as_me:$LINENO: result: yes" >&5
6098echo "${ECHO_T}yes" >&6
6099    else
6100      rm -f confauto.out
6101      echo "$as_me:$LINENO: result: no" >&5
6102echo "${ECHO_T}no" >&6
6103      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6104echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6105   { (exit 1); exit 1; }; }
6106    fi
6107
6108    # Check if we have automake
6109    # Extract the first word of "automake", so it can be a program name with args.
6110set dummy automake; ac_word=$2
6111echo "$as_me:$LINENO: checking for $ac_word" >&5
6112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6113if test "${ac_cv_prog_have_automake+set}" = set; then
6114  echo $ECHO_N "(cached) $ECHO_C" >&6
6115else
6116  if test -n "$have_automake"; then
6117  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122  IFS=$as_save_IFS
6123  test -z "$as_dir" && as_dir=.
6124  for ac_exec_ext in '' $ac_executable_extensions; do
6125  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126    ac_cv_prog_have_automake="yes"
6127    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128    break 2
6129  fi
6130done
6131done
6132
6133  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6134fi
6135fi
6136have_automake=$ac_cv_prog_have_automake
6137if test -n "$have_automake"; then
6138  echo "$as_me:$LINENO: result: $have_automake" >&5
6139echo "${ECHO_T}$have_automake" >&6
6140else
6141  echo "$as_me:$LINENO: result: no" >&5
6142echo "${ECHO_T}no" >&6
6143fi
6144
6145    if test $have_automake = no; then
6146      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6147echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6148   { (exit 1); exit 1; }; }
6149    fi
6150
6151    # Check whether automake is the correct version
6152    correct_version='1.9.6'
6153    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6154    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6155echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6156    automake --version > confauto.out 2>&1
6157    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6158      echo "$as_me:$LINENO: result: yes" >&5
6159echo "${ECHO_T}yes" >&6
6160    else
6161      rm -f confauto.out
6162      echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6
6164      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6165echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6166   { (exit 1); exit 1; }; }
6167    fi
6168    rm -f confauto.out
6169
6170    # Check if the executable automake is picked up from the correct location
6171    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6172echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6173    automake_dir=`which automake | sed -e 's=/automake=='`
6174    automake_dir=`cd $automake_dir; pwd`
6175    if test x$AUTOTOOLS_DIR = x; then
6176      want_dir=$AUTOTOOLS_DFLT/bin
6177    else
6178      want_dir=$AUTOTOOLS_DIR/bin
6179    fi
6180    if test $automake_dir = `cd $want_dir; pwd`; then
6181      echo "$as_me:$LINENO: result: yes" >&5
6182echo "${ECHO_T}yes" >&6
6183    else
6184      rm -f confauto.out
6185      echo "$as_me:$LINENO: result: no" >&5
6186echo "${ECHO_T}no" >&6
6187      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6188echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6189   { (exit 1); exit 1; }; }
6190    fi
6191
6192    # Check if this is the correct version of libtool (with escaped dots)
6193    if test x$AUTOTOOLS_DIR = x; then
6194      want_dir=$AUTOTOOLS_DFLT/share
6195    else
6196      want_dir=$AUTOTOOLS_DIR/share
6197    fi
6198    correct_version='1.5.22'
6199    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6200    if test -r $want_dir/libtool/ltmain.sh; then
6201  have_ltmain=yes
6202  :
6203else
6204  have_ltmain=no
6205  :
6206fi
6207
6208    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6209echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6210    if test $have_ltmain = yes; then
6211    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6212        echo "$as_me:$LINENO: result: yes" >&5
6213echo "${ECHO_T}yes" >&6
6214      else
6215        echo "$as_me:$LINENO: result: no" >&5
6216echo "${ECHO_T}no" >&6
6217        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6218echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6219   { (exit 1); exit 1; }; }
6220      fi
6221    else
6222      echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6
6224      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6225echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6226   { (exit 1); exit 1; }; }
6227    fi
6228  fi
6229
6230  # Check if we can find the libtool file
6231  if test x$AUTOTOOLS_DIR = x; then
6232    want_dir=$AUTOTOOLS_DFLT/share
6233  else
6234    want_dir=$AUTOTOOLS_DIR/share
6235  fi
6236  if test -r $want_dir/aclocal/libtool.m4; then
6237  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6238  :
6239else
6240  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6241echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6242   { (exit 1); exit 1; }; }
6243  :
6244fi
6245
6246
6247  # Check if we have an Dependencies file
6248  if test -r $srcdir/Dependencies; then
6249    coin_have_externals=yes
6250  fi
6251  # Check if subversion is installed and understands https
6252  # Extract the first word of "svn", so it can be a program name with args.
6253set dummy svn; ac_word=$2
6254echo "$as_me:$LINENO: checking for $ac_word" >&5
6255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6256if test "${ac_cv_prog_have_svn+set}" = set; then
6257  echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259  if test -n "$have_svn"; then
6260  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6261else
6262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263for as_dir in $PATH
6264do
6265  IFS=$as_save_IFS
6266  test -z "$as_dir" && as_dir=.
6267  for ac_exec_ext in '' $ac_executable_extensions; do
6268  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269    ac_cv_prog_have_svn="yes"
6270    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271    break 2
6272  fi
6273done
6274done
6275
6276  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6277fi
6278fi
6279have_svn=$ac_cv_prog_have_svn
6280if test -n "$have_svn"; then
6281  echo "$as_me:$LINENO: result: $have_svn" >&5
6282echo "${ECHO_T}$have_svn" >&6
6283else
6284  echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6
6286fi
6287
6288  if test x$have_svn = xyes; then
6289    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6290echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6291if test "${ac_cv_svn_understands_https+set}" = set; then
6292  echo $ECHO_N "(cached) $ECHO_C" >&6
6293else
6294  svn --version > confauto.out 2>&1
6295                    if $EGREP https confauto.out >/dev/null 2>&1; then
6296                      ac_cv_svn_understands_https=yes
6297                    else
6298                      ac_cv_svn_understands_https=no
6299                      have_svn=no
6300                      ac_cv_prog_have_svn=no
6301                    fi
6302                    rm -f confauto.out
6303fi
6304echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6305echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6306  fi
6307
6308  # Find the location of the BuildTools directory
6309  BUILDTOOLSDIR=
6310  if test -r $srcdir/BuildTools/coin.m4; then
6311    BUILDTOOLSDIR=$srcdir/BuildTools
6312  else
6313    if test -r $srcdir/../BuildTools/coin.m4; then
6314      BUILDTOOLSDIR=$srcdir/../BuildTools
6315    else
6316      if test -r $srcdir/../../BuildTools/coin.m4; then
6317        BUILDTOOLSDIR=$srcdir/../../BuildTools
6318      else
6319        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6320echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6321   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6322      fi
6323    fi
6324  fi
6325
6326
6327  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6328  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6329    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6330  fi
6331
6332  # The following variable is set to the name of the directory where
6333  # the autotool scripts are located
6334
6335  AUX_DIR=$ac_aux_dir
6336fi
6337
6338# helpful variable for the base directory of this package
6339abs_source_dir=`cd $srcdir; pwd`
6340
6341
6342# Stuff for example Makefiles
6343if test x$prefix = xNONE; then
6344  full_prefix=$ac_default_prefix
6345else
6346  full_prefix=$prefix
6347fi
6348full_prefix=`cd $full_prefix ; pwd`
6349
6350abs_lib_dir=$full_prefix/lib
6351
6352abs_include_dir=$full_prefix/include
6353
6354abs_bin_dir=$full_prefix/bin
6355
6356
6357
6358if test $coin_have_externals = yes && test x$have_svn = xyes; then
6359  HAVE_EXTERNALS_TRUE=
6360  HAVE_EXTERNALS_FALSE='#'
6361else
6362  HAVE_EXTERNALS_TRUE='#'
6363  HAVE_EXTERNALS_FALSE=
6364fi
6365
6366
6367# AC_MSG_NOTICE([End automake initialisation.])
6368
6369
6370
6371LIBTOOL=
6372if test -r ../libtool; then
6373  coin_config_dir=..
6374  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6375fi
6376if test "x$LIBTOOL" = x; then
6377  if test -r ../../libtool; then
6378    coin_config_dir=../..
6379    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6380  fi
6381fi
6382
6383if test "x$LIBTOOL" = x; then
6384# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6385  # Stuff for libtool
6386  # Check whether --enable-shared or --disable-shared was given.
6387if test "${enable_shared+set}" = set; then
6388  enableval="$enable_shared"
6389  p=${PACKAGE-default}
6390    case $enableval in
6391    yes) enable_shared=yes ;;
6392    no) enable_shared=no ;;
6393    *)
6394      enable_shared=no
6395      # Look at the argument we got.  We use all the common list separators.
6396      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6397      for pkg in $enableval; do
6398        IFS="$lt_save_ifs"
6399        if test "X$pkg" = "X$p"; then
6400          enable_shared=yes
6401        fi
6402      done
6403      IFS="$lt_save_ifs"
6404      ;;
6405    esac
6406else
6407  enable_shared=yes
6408fi;
6409
6410# Check whether --enable-fast-install or --disable-fast-install was given.
6411if test "${enable_fast_install+set}" = set; then
6412  enableval="$enable_fast_install"
6413  p=${PACKAGE-default}
6414    case $enableval in
6415    yes) enable_fast_install=yes ;;
6416    no) enable_fast_install=no ;;
6417    *)
6418      enable_fast_install=no
6419      # Look at the argument we got.  We use all the common list separators.
6420      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6421      for pkg in $enableval; do
6422        IFS="$lt_save_ifs"
6423        if test "X$pkg" = "X$p"; then
6424          enable_fast_install=yes
6425        fi
6426      done
6427      IFS="$lt_save_ifs"
6428      ;;
6429    esac
6430else
6431  enable_fast_install=yes
6432fi;
6433
6434echo "$as_me:$LINENO: checking host system type" >&5
6435echo $ECHO_N "checking host system type... $ECHO_C" >&6
6436if test "${ac_cv_host+set}" = set; then
6437  echo $ECHO_N "(cached) $ECHO_C" >&6
6438else
6439  ac_cv_host_alias=$host_alias
6440test -z "$ac_cv_host_alias" &&
6441  ac_cv_host_alias=$ac_cv_build_alias
6442ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6443  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6444echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6445   { (exit 1); exit 1; }; }
6446
6447fi
6448echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6449echo "${ECHO_T}$ac_cv_host" >&6
6450host=$ac_cv_host
6451host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6452host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6453host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6454
6455
6456echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6457echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6458if test "${lt_cv_path_SED+set}" = set; then
6459  echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461  # Loop through the user's path and test for sed and gsed.
6462# Then use that list of sed's as ones to test for truncation.
6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
6465do
6466  IFS=$as_save_IFS
6467  test -z "$as_dir" && as_dir=.
6468  for lt_ac_prog in sed gsed; do
6469    for ac_exec_ext in '' $ac_executable_extensions; do
6470      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6471        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6472      fi
6473    done
6474  done
6475done
6476lt_ac_max=0
6477lt_ac_count=0
6478# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6479# along with /bin/sed that truncates output.
6480for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6481  test ! -f $lt_ac_sed && continue
6482  cat /dev/null > conftest.in
6483  lt_ac_count=0
6484  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6485  # Check for GNU sed and select it if it is found.
6486  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6487    lt_cv_path_SED=$lt_ac_sed
6488    break
6489  fi
6490  while true; do
6491    cat conftest.in conftest.in >conftest.tmp
6492    mv conftest.tmp conftest.in
6493    cp conftest.in conftest.nl
6494    echo >>conftest.nl
6495    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6496    cmp -s conftest.out conftest.nl || break
6497    # 10000 chars as input seems more than enough
6498    test $lt_ac_count -gt 10 && break
6499    lt_ac_count=`expr $lt_ac_count + 1`
6500    if test $lt_ac_count -gt $lt_ac_max; then
6501      lt_ac_max=$lt_ac_count
6502      lt_cv_path_SED=$lt_ac_sed
6503    fi
6504  done
6505done
6506
6507fi
6508
6509SED=$lt_cv_path_SED
6510echo "$as_me:$LINENO: result: $SED" >&5
6511echo "${ECHO_T}$SED" >&6
6512
6513
6514# Check whether --with-gnu-ld or --without-gnu-ld was given.
6515if test "${with_gnu_ld+set}" = set; then
6516  withval="$with_gnu_ld"
6517  test "$withval" = no || with_gnu_ld=yes
6518else
6519  with_gnu_ld=no
6520fi;
6521ac_prog=ld
6522if test "$GCC" = yes; then
6523  # Check if gcc -print-prog-name=ld gives a path.
6524  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6525echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6526  case $host in
6527  *-*-mingw*)
6528    # gcc leaves a trailing carriage return which upsets mingw
6529    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6530  *)
6531    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6532  esac
6533  case $ac_prog in
6534    # Accept absolute paths.
6535    [\\/]* | ?:[\\/]*)
6536      re_direlt='/[^/][^/]*/\.\./'
6537      # Canonicalize the pathname of ld
6538      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6539      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6540        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6541      done
6542      test -z "$LD" && LD="$ac_prog"
6543      ;;
6544  "")
6545    # If it fails, then pretend we aren't using GCC.
6546    ac_prog=ld
6547    ;;
6548  *)
6549    # If it is relative, then search for the first ld in PATH.
6550    with_gnu_ld=unknown
6551    ;;
6552  esac
6553elif test "$with_gnu_ld" = yes; then
6554  echo "$as_me:$LINENO: checking for GNU ld" >&5
6555echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6556else
6557  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6558echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6559fi
6560if test "${lt_cv_path_LD+set}" = set; then
6561  echo $ECHO_N "(cached) $ECHO_C" >&6
6562else
6563  if test -z "$LD"; then
6564  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6565  for ac_dir in $PATH; do
6566    IFS="$lt_save_ifs"
6567    test -z "$ac_dir" && ac_dir=.
6568    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6569      lt_cv_path_LD="$ac_dir/$ac_prog"
6570      # Check to see if the program is GNU ld.  I'd rather use --version,
6571      # but apparently some variants of GNU ld only accept -v.
6572      # Break only if it was the GNU/non-GNU ld that we prefer.
6573      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6574      *GNU* | *'with BFD'*)
6575        test "$with_gnu_ld" != no && break
6576        ;;
6577      *)
6578        test "$with_gnu_ld" != yes && break
6579        ;;
6580      esac
6581    fi
6582  done
6583  IFS="$lt_save_ifs"
6584else
6585  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6586fi
6587fi
6588
6589LD="$lt_cv_path_LD"
6590if test -n "$LD"; then
6591  echo "$as_me:$LINENO: result: $LD" >&5
6592echo "${ECHO_T}$LD" >&6
6593else
6594  echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6
6596fi
6597test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6598echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6599   { (exit 1); exit 1; }; }
6600echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6601echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6602if test "${lt_cv_prog_gnu_ld+set}" = set; then
6603  echo $ECHO_N "(cached) $ECHO_C" >&6
6604else
6605  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6606case `$LD -v 2>&1 </dev/null` in
6607*GNU* | *'with BFD'*)
6608  lt_cv_prog_gnu_ld=yes
6609  ;;
6610*)
6611  lt_cv_prog_gnu_ld=no
6612  ;;
6613esac
6614fi
6615echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6616echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6617with_gnu_ld=$lt_cv_prog_gnu_ld
6618
6619
6620echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6621echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6622if test "${lt_cv_ld_reload_flag+set}" = set; then
6623  echo $ECHO_N "(cached) $ECHO_C" >&6
6624else
6625  lt_cv_ld_reload_flag='-r'
6626fi
6627echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6628echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6629reload_flag=$lt_cv_ld_reload_flag
6630case $reload_flag in
6631"" | " "*) ;;
6632*) reload_flag=" $reload_flag" ;;
6633esac
6634reload_cmds='$LD$reload_flag -o $output$reload_objs'
6635case $host_os in
6636  darwin*)
6637    if test "$GCC" = yes; then
6638      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6639    else
6640      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6641    fi
6642    ;;
6643esac
6644
6645echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6646echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6647if test "${lt_cv_path_NM+set}" = set; then
6648  echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650  if test -n "$NM"; then
6651  # Let the user override the test.
6652  lt_cv_path_NM="$NM"
6653else
6654  lt_nm_to_check="${ac_tool_prefix}nm"
6655  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6656    lt_nm_to_check="$lt_nm_to_check nm"
6657  fi
6658  for lt_tmp_nm in $lt_nm_to_check; do
6659    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6660    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6661      IFS="$lt_save_ifs"
6662      test -z "$ac_dir" && ac_dir=.
6663      tmp_nm="$ac_dir/$lt_tmp_nm"
6664      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6665        # Check to see if the nm accepts a BSD-compat flag.
6666        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6667        #   nm: unknown option "B" ignored
6668        # Tru64's nm complains that /dev/null is an invalid object file
6669        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6670        */dev/null* | *'Invalid file or object type'*)
6671          lt_cv_path_NM="$tmp_nm -B"
6672          break
6673          ;;
6674        *)
6675          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6676          */dev/null*)
6677            lt_cv_path_NM="$tmp_nm -p"
6678            break
6679            ;;
6680          *)
6681            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6682            continue # so that we can try to find one that supports BSD flags
6683            ;;
6684          esac
6685          ;;
6686        esac
6687      fi
6688    done
6689    IFS="$lt_save_ifs"
6690  done
6691  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6692fi
6693fi
6694echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6695echo "${ECHO_T}$lt_cv_path_NM" >&6
6696NM="$lt_cv_path_NM"
6697
6698echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6699echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6700if test "${lt_cv_deplibs_check_method+set}" = set; then
6701  echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703  lt_cv_file_magic_cmd='$MAGIC_CMD'
6704lt_cv_file_magic_test_file=
6705lt_cv_deplibs_check_method='unknown'
6706# Need to set the preceding variable on all platforms that support
6707# interlibrary dependencies.
6708# 'none' -- dependencies not supported.
6709# `unknown' -- same as none, but documents that we really don't know.
6710# 'pass_all' -- all dependencies passed with no checks.
6711# 'test_compile' -- check by making test program.
6712# 'file_magic [[regex]]' -- check by looking for files in library path
6713# which responds to the $file_magic_cmd with a given extended regex.
6714# If you have `file' or equivalent on your system and you're not sure
6715# whether `pass_all' will *always* work, you probably want this one.
6716
6717case $host_os in
6718aix4* | aix5*)
6719  lt_cv_deplibs_check_method=pass_all
6720  ;;
6721
6722beos*)
6723  lt_cv_deplibs_check_method=pass_all
6724  ;;
6725
6726bsdi[45]*)
6727  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6728  lt_cv_file_magic_cmd='/usr/bin/file -L'
6729  lt_cv_file_magic_test_file=/shlib/libc.so
6730  ;;
6731
6732cygwin*)
6733  # func_win32_libid is a shell function defined in ltmain.sh
6734  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6735  lt_cv_file_magic_cmd='func_win32_libid'
6736  ;;
6737
6738mingw* | pw32*)
6739  # Base MSYS/MinGW do not provide the 'file' command needed by
6740  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6741  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6742  lt_cv_file_magic_cmd='$OBJDUMP -f'
6743  ;;
6744
6745darwin* | rhapsody*)
6746  lt_cv_deplibs_check_method=pass_all
6747  ;;
6748
6749freebsd* | kfreebsd*-gnu | dragonfly*)
6750  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6751    case $host_cpu in
6752    i*86 )
6753      # Not sure whether the presence of OpenBSD here was a mistake.
6754      # Let's accept both of them until this is cleared up.
6755      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6756      lt_cv_file_magic_cmd=/usr/bin/file
6757      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6758      ;;
6759    esac
6760  else
6761    lt_cv_deplibs_check_method=pass_all
6762  fi
6763  ;;
6764
6765gnu*)
6766  lt_cv_deplibs_check_method=pass_all
6767  ;;
6768
6769hpux10.20* | hpux11*)
6770  lt_cv_file_magic_cmd=/usr/bin/file
6771  case $host_cpu in
6772  ia64*)
6773    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6774    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6775    ;;
6776  hppa*64*)
6777    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]'
6778    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6779    ;;
6780  *)
6781    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6782    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6783    ;;
6784  esac
6785  ;;
6786
6787interix3*)
6788  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6789  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6790  ;;
6791
6792irix5* | irix6* | nonstopux*)
6793  case $LD in
6794  *-32|*"-32 ") libmagic=32-bit;;
6795  *-n32|*"-n32 ") libmagic=N32;;
6796  *-64|*"-64 ") libmagic=64-bit;;
6797  *) libmagic=never-match;;
6798  esac
6799  lt_cv_deplibs_check_method=pass_all
6800  ;;
6801
6802# This must be Linux ELF.
6803linux*)
6804  lt_cv_deplibs_check_method=pass_all
6805  ;;
6806
6807netbsd*)
6808  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6809    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6810  else
6811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6812  fi
6813  ;;
6814
6815newos6*)
6816  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6817  lt_cv_file_magic_cmd=/usr/bin/file
6818  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6819  ;;
6820
6821nto-qnx*)
6822  lt_cv_deplibs_check_method=unknown
6823  ;;
6824
6825openbsd*)
6826  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6827    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6828  else
6829    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6830  fi
6831  ;;
6832
6833osf3* | osf4* | osf5*)
6834  lt_cv_deplibs_check_method=pass_all
6835  ;;
6836
6837solaris*)
6838  lt_cv_deplibs_check_method=pass_all
6839  ;;
6840
6841sysv4 | sysv4.3*)
6842  case $host_vendor in
6843  motorola)
6844    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]'
6845    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6846    ;;
6847  ncr)
6848    lt_cv_deplibs_check_method=pass_all
6849    ;;
6850  sequent)
6851    lt_cv_file_magic_cmd='/bin/file'
6852    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6853    ;;
6854  sni)
6855    lt_cv_file_magic_cmd='/bin/file'
6856    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6857    lt_cv_file_magic_test_file=/lib/libc.so
6858    ;;
6859  siemens)
6860    lt_cv_deplibs_check_method=pass_all
6861    ;;
6862  pc)
6863    lt_cv_deplibs_check_method=pass_all
6864    ;;
6865  esac
6866  ;;
6867
6868sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6869  lt_cv_deplibs_check_method=pass_all
6870  ;;
6871esac
6872
6873fi
6874echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6875echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6876file_magic_cmd=$lt_cv_file_magic_cmd
6877deplibs_check_method=$lt_cv_deplibs_check_method
6878test -z "$deplibs_check_method" && deplibs_check_method=unknown
6879
6880
6881
6882
6883# If no C compiler was specified, use CC.
6884LTCC=${LTCC-"$CC"}
6885
6886# If no C compiler flags were specified, use CFLAGS.
6887LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6888
6889# Allow CC to be a program name with arguments.
6890compiler=$CC
6891
6892# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6893if test "${enable_libtool_lock+set}" = set; then
6894  enableval="$enable_libtool_lock"
6895
6896fi;
6897test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6898
6899# Some flags need to be propagated to the compiler or linker for good
6900# libtool support.
6901case $host in
6902ia64-*-hpux*)
6903  # Find out which ABI we are using.
6904  echo 'int i;' > conftest.$ac_ext
6905  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906  (eval $ac_compile) 2>&5
6907  ac_status=$?
6908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909  (exit $ac_status); }; then
6910    case `/usr/bin/file conftest.$ac_objext` in
6911    *ELF-32*)
6912      HPUX_IA64_MODE="32"
6913      ;;
6914    *ELF-64*)
6915      HPUX_IA64_MODE="64"
6916      ;;
6917    esac
6918  fi
6919  rm -rf conftest*
6920  ;;
6921*-*-irix6*)
6922  # Find out which ABI we are using.
6923  echo '#line 6923 "configure"' > conftest.$ac_ext
6924  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925  (eval $ac_compile) 2>&5
6926  ac_status=$?
6927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928  (exit $ac_status); }; then
6929   if test "$lt_cv_prog_gnu_ld" = yes; then
6930    case `/usr/bin/file conftest.$ac_objext` in
6931    *32-bit*)
6932      LD="${LD-ld} -melf32bsmip"
6933      ;;
6934    *N32*)
6935      LD="${LD-ld} -melf32bmipn32"
6936      ;;
6937    *64-bit*)
6938      LD="${LD-ld} -melf64bmip"
6939      ;;
6940    esac
6941   else
6942    case `/usr/bin/file conftest.$ac_objext` in
6943    *32-bit*)
6944      LD="${LD-ld} -32"
6945      ;;
6946    *N32*)
6947      LD="${LD-ld} -n32"
6948      ;;
6949    *64-bit*)
6950      LD="${LD-ld} -64"
6951      ;;
6952    esac
6953   fi
6954  fi
6955  rm -rf conftest*
6956  ;;
6957
6958x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6959  # Find out which ABI we are using.
6960  echo 'int i;' > conftest.$ac_ext
6961  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962  (eval $ac_compile) 2>&5
6963  ac_status=$?
6964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965  (exit $ac_status); }; then
6966    case `/usr/bin/file conftest.o` in
6967    *32-bit*)
6968      case $host in
6969        x86_64-*linux*)
6970          LD="${LD-ld} -m elf_i386"
6971          ;;
6972        ppc64-*linux*|powerpc64-*linux*)
6973          LD="${LD-ld} -m elf32ppclinux"
6974          ;;
6975        s390x-*linux*)
6976          LD="${LD-ld} -m elf_s390"
6977          ;;
6978        sparc64-*linux*)
6979          LD="${LD-ld} -m elf32_sparc"
6980          ;;
6981      esac
6982      ;;
6983    *64-bit*)
6984      case $host in
6985        x86_64-*linux*)
6986          LD="${LD-ld} -m elf_x86_64"
6987          ;;
6988        ppc*-*linux*|powerpc*-*linux*)
6989          LD="${LD-ld} -m elf64ppc"
6990          ;;
6991        s390*-*linux*)
6992          LD="${LD-ld} -m elf64_s390"
6993          ;;
6994        sparc*-*linux*)
6995          LD="${LD-ld} -m elf64_sparc"
6996          ;;
6997      esac
6998      ;;
6999    esac
7000  fi
7001  rm -rf conftest*
7002  ;;
7003
7004*-*-sco3.2v5*)
7005  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7006  SAVE_CFLAGS="$CFLAGS"
7007  CFLAGS="$CFLAGS -belf"
7008  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7009echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7010if test "${lt_cv_cc_needs_belf+set}" = set; then
7011  echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013  ac_ext=c
7014ac_cpp='$CPP $CPPFLAGS'
7015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017ac_compiler_gnu=$ac_cv_c_compiler_gnu
7018
7019     cat >conftest.$ac_ext <<_ACEOF
7020/* confdefs.h.  */
7021_ACEOF
7022cat confdefs.h >>conftest.$ac_ext
7023cat >>conftest.$ac_ext <<_ACEOF
7024/* end confdefs.h.  */
7025
7026#ifdef F77_DUMMY_MAIN
7027
7028#  ifdef __cplusplus
7029     extern "C"
7030#  endif
7031   int F77_DUMMY_MAIN() { return 1; }
7032
7033#endif
7034int
7035main ()
7036{
7037
7038  ;
7039  return 0;
7040}
7041_ACEOF
7042rm -f conftest.$ac_objext conftest$ac_exeext
7043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7044  (eval $ac_link) 2>conftest.er1
7045  ac_status=$?
7046  grep -v '^ *+' conftest.er1 >conftest.err
7047  rm -f conftest.er1
7048  cat conftest.err >&5
7049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050  (exit $ac_status); } &&
7051         { ac_try='test -z "$ac_c_werror_flag"
7052                         || test ! -s conftest.err'
7053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054  (eval $ac_try) 2>&5
7055  ac_status=$?
7056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057  (exit $ac_status); }; } &&
7058         { ac_try='test -s conftest$ac_exeext'
7059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060  (eval $ac_try) 2>&5
7061  ac_status=$?
7062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063  (exit $ac_status); }; }; then
7064  lt_cv_cc_needs_belf=yes
7065else
7066  echo "$as_me: failed program was:" >&5
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069lt_cv_cc_needs_belf=no
7070fi
7071rm -f conftest.err conftest.$ac_objext \
7072      conftest$ac_exeext conftest.$ac_ext
7073     ac_ext=c
7074ac_cpp='$CPP $CPPFLAGS'
7075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077ac_compiler_gnu=$ac_cv_c_compiler_gnu
7078
7079fi
7080echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7081echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7082  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7083    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7084    CFLAGS="$SAVE_CFLAGS"
7085  fi
7086  ;;
7087sparc*-*solaris*)
7088  # Find out which ABI we are using.
7089  echo 'int i;' > conftest.$ac_ext
7090  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7091  (eval $ac_compile) 2>&5
7092  ac_status=$?
7093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094  (exit $ac_status); }; then
7095    case `/usr/bin/file conftest.o` in
7096    *64-bit*)
7097      case $lt_cv_prog_gnu_ld in
7098      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7099      *)    LD="${LD-ld} -64" ;;
7100      esac
7101      ;;
7102    esac
7103  fi
7104  rm -rf conftest*
7105  ;;
7106
7107
7108esac
7109
7110need_locks="$enable_libtool_lock"
7111
7112
7113ac_ext=c
7114ac_cpp='$CPP $CPPFLAGS'
7115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7117ac_compiler_gnu=$ac_cv_c_compiler_gnu
7118echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7119echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7120# On Suns, sometimes $CPP names a directory.
7121if test -n "$CPP" && test -d "$CPP"; then
7122  CPP=
7123fi
7124if test -z "$CPP"; then
7125  if test "${ac_cv_prog_CPP+set}" = set; then
7126  echo $ECHO_N "(cached) $ECHO_C" >&6
7127else
7128      # Double quotes because CPP needs to be expanded
7129    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7130    do
7131      ac_preproc_ok=false
7132for ac_c_preproc_warn_flag in '' yes
7133do
7134  # Use a header file that comes with gcc, so configuring glibc
7135  # with a fresh cross-compiler works.
7136  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7137  # <limits.h> exists even on freestanding compilers.
7138  # On the NeXT, cc -E runs the code through the compiler's parser,
7139  # not just through cpp. "Syntax error" is here to catch this case.
7140  cat >conftest.$ac_ext <<_ACEOF
7141/* confdefs.h.  */
7142_ACEOF
7143cat confdefs.h >>conftest.$ac_ext
7144cat >>conftest.$ac_ext <<_ACEOF
7145/* end confdefs.h.  */
7146#ifdef __STDC__
7147# include <limits.h>
7148#else
7149# include <assert.h>
7150#endif
7151                     Syntax error
7152_ACEOF
7153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7154  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7155  ac_status=$?
7156  grep -v '^ *+' conftest.er1 >conftest.err
7157  rm -f conftest.er1
7158  cat conftest.err >&5
7159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160  (exit $ac_status); } >/dev/null; then
7161  if test -s conftest.err; then
7162    ac_cpp_err=$ac_c_preproc_warn_flag
7163    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7164  else
7165    ac_cpp_err=
7166  fi
7167else
7168  ac_cpp_err=yes
7169fi
7170if test -z "$ac_cpp_err"; then
7171  :
7172else
7173  echo "$as_me: failed program was:" >&5
7174sed 's/^/| /' conftest.$ac_ext >&5
7175
7176  # Broken: fails on valid input.
7177continue
7178fi
7179rm -f conftest.err conftest.$ac_ext
7180
7181  # OK, works on sane cases.  Now check whether non-existent headers
7182  # can be detected and how.
7183  cat >conftest.$ac_ext <<_ACEOF
7184/* confdefs.h.  */
7185_ACEOF
7186cat confdefs.h >>conftest.$ac_ext
7187cat >>conftest.$ac_ext <<_ACEOF
7188/* end confdefs.h.  */
7189#include <ac_nonexistent.h>
7190_ACEOF
7191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7192  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7193  ac_status=$?
7194  grep -v '^ *+' conftest.er1 >conftest.err
7195  rm -f conftest.er1
7196  cat conftest.err >&5
7197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198  (exit $ac_status); } >/dev/null; then
7199  if test -s conftest.err; then
7200    ac_cpp_err=$ac_c_preproc_warn_flag
7201    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7202  else
7203    ac_cpp_err=
7204  fi
7205else
7206  ac_cpp_err=yes
7207fi
7208if test -z "$ac_cpp_err"; then
7209  # Broken: success on invalid input.
7210continue
7211else
7212  echo "$as_me: failed program was:" >&5
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7215  # Passes both tests.
7216ac_preproc_ok=:
7217break
7218fi
7219rm -f conftest.err conftest.$ac_ext
7220
7221done
7222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7223rm -f conftest.err conftest.$ac_ext
7224if $ac_preproc_ok; then
7225  break
7226fi
7227
7228    done
7229    ac_cv_prog_CPP=$CPP
7230
7231fi
7232  CPP=$ac_cv_prog_CPP
7233else
7234  ac_cv_prog_CPP=$CPP
7235fi
7236echo "$as_me:$LINENO: result: $CPP" >&5
7237echo "${ECHO_T}$CPP" >&6
7238ac_preproc_ok=false
7239for ac_c_preproc_warn_flag in '' yes
7240do
7241  # Use a header file that comes with gcc, so configuring glibc
7242  # with a fresh cross-compiler works.
7243  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7244  # <limits.h> exists even on freestanding compilers.
7245  # On the NeXT, cc -E runs the code through the compiler's parser,
7246  # not just through cpp. "Syntax error" is here to catch this case.
7247  cat >conftest.$ac_ext <<_ACEOF
7248/* confdefs.h.  */
7249_ACEOF
7250cat confdefs.h >>conftest.$ac_ext
7251cat >>conftest.$ac_ext <<_ACEOF
7252/* end confdefs.h.  */
7253#ifdef __STDC__
7254# include <limits.h>
7255#else
7256# include <assert.h>
7257#endif
7258                     Syntax error
7259_ACEOF
7260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7261  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7262  ac_status=$?
7263  grep -v '^ *+' conftest.er1 >conftest.err
7264  rm -f conftest.er1
7265  cat conftest.err >&5
7266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267  (exit $ac_status); } >/dev/null; then
7268  if test -s conftest.err; then
7269    ac_cpp_err=$ac_c_preproc_warn_flag
7270    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7271  else
7272    ac_cpp_err=
7273  fi
7274else
7275  ac_cpp_err=yes
7276fi
7277if test -z "$ac_cpp_err"; then
7278  :
7279else
7280  echo "$as_me: failed program was:" >&5
7281sed 's/^/| /' conftest.$ac_ext >&5
7282
7283  # Broken: fails on valid input.
7284continue
7285fi
7286rm -f conftest.err conftest.$ac_ext
7287
7288  # OK, works on sane cases.  Now check whether non-existent headers
7289  # can be detected and how.
7290  cat >conftest.$ac_ext <<_ACEOF
7291/* confdefs.h.  */
7292_ACEOF
7293cat confdefs.h >>conftest.$ac_ext
7294cat >>conftest.$ac_ext <<_ACEOF
7295/* end confdefs.h.  */
7296#include <ac_nonexistent.h>
7297_ACEOF
7298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7299  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7300  ac_status=$?
7301  grep -v '^ *+' conftest.er1 >conftest.err
7302  rm -f conftest.er1
7303  cat conftest.err >&5
7304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305  (exit $ac_status); } >/dev/null; then
7306  if test -s conftest.err; then
7307    ac_cpp_err=$ac_c_preproc_warn_flag
7308    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7309  else
7310    ac_cpp_err=
7311  fi
7312else
7313  ac_cpp_err=yes
7314fi
7315if test -z "$ac_cpp_err"; then
7316  # Broken: success on invalid input.
7317continue
7318else
7319  echo "$as_me: failed program was:" >&5
7320sed 's/^/| /' conftest.$ac_ext >&5
7321
7322  # Passes both tests.
7323ac_preproc_ok=:
7324break
7325fi
7326rm -f conftest.err conftest.$ac_ext
7327
7328done
7329# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7330rm -f conftest.err conftest.$ac_ext
7331if $ac_preproc_ok; then
7332  :
7333else
7334  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7335See \`config.log' for more details." >&5
7336echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7337See \`config.log' for more details." >&2;}
7338   { (exit 1); exit 1; }; }
7339fi
7340
7341ac_ext=c
7342ac_cpp='$CPP $CPPFLAGS'
7343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7345ac_compiler_gnu=$ac_cv_c_compiler_gnu
7346
7347
7348echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7349echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7350if test "${ac_cv_header_stdc+set}" = set; then
7351  echo $ECHO_N "(cached) $ECHO_C" >&6
7352else
7353  cat >conftest.$ac_ext <<_ACEOF
7354/* confdefs.h.  */
7355_ACEOF
7356cat confdefs.h >>conftest.$ac_ext
7357cat >>conftest.$ac_ext <<_ACEOF
7358/* end confdefs.h.  */
7359#include <stdlib.h>
7360#include <stdarg.h>
7361#include <string.h>
7362#include <float.h>
7363
7364#ifdef F77_DUMMY_MAIN
7365
7366#  ifdef __cplusplus
7367     extern "C"
7368#  endif
7369   int F77_DUMMY_MAIN() { return 1; }
7370
7371#endif
7372int
7373main ()
7374{
7375
7376  ;
7377  return 0;
7378}
7379_ACEOF
7380rm -f conftest.$ac_objext
7381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7382  (eval $ac_compile) 2>conftest.er1
7383  ac_status=$?
7384  grep -v '^ *+' conftest.er1 >conftest.err
7385  rm -f conftest.er1
7386  cat conftest.err >&5
7387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388  (exit $ac_status); } &&
7389         { ac_try='test -z "$ac_c_werror_flag"
7390                         || test ! -s conftest.err'
7391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392  (eval $ac_try) 2>&5
7393  ac_status=$?
7394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395  (exit $ac_status); }; } &&
7396         { ac_try='test -s conftest.$ac_objext'
7397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398  (eval $ac_try) 2>&5
7399  ac_status=$?
7400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401  (exit $ac_status); }; }; then
7402  ac_cv_header_stdc=yes
7403else
7404  echo "$as_me: failed program was:" >&5
7405sed 's/^/| /' conftest.$ac_ext >&5
7406
7407ac_cv_header_stdc=no
7408fi
7409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7410
7411if test $ac_cv_header_stdc = yes; then
7412  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7413  cat >conftest.$ac_ext <<_ACEOF
7414/* confdefs.h.  */
7415_ACEOF
7416cat confdefs.h >>conftest.$ac_ext
7417cat >>conftest.$ac_ext <<_ACEOF
7418/* end confdefs.h.  */
7419#include <string.h>
7420
7421_ACEOF
7422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423  $EGREP "memchr" >/dev/null 2>&1; then
7424  :
7425else
7426  ac_cv_header_stdc=no
7427fi
7428rm -f conftest*
7429
7430fi
7431
7432if test $ac_cv_header_stdc = yes; then
7433  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7434  cat >conftest.$ac_ext <<_ACEOF
7435/* confdefs.h.  */
7436_ACEOF
7437cat confdefs.h >>conftest.$ac_ext
7438cat >>conftest.$ac_ext <<_ACEOF
7439/* end confdefs.h.  */
7440#include <stdlib.h>
7441
7442_ACEOF
7443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7444  $EGREP "free" >/dev/null 2>&1; then
7445  :
7446else
7447  ac_cv_header_stdc=no
7448fi
7449rm -f conftest*
7450
7451fi
7452
7453if test $ac_cv_header_stdc = yes; then
7454  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7455  if test "$cross_compiling" = yes; then
7456  :
7457else
7458  cat >conftest.$ac_ext <<_ACEOF
7459/* confdefs.h.  */
7460_ACEOF
7461cat confdefs.h >>conftest.$ac_ext
7462cat >>conftest.$ac_ext <<_ACEOF
7463/* end confdefs.h.  */
7464#include <ctype.h>
7465#if ((' ' & 0x0FF) == 0x020)
7466# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7467# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7468#else
7469# define ISLOWER(c) \
7470                   (('a' <= (c) && (c) <= 'i') \
7471                     || ('j' <= (c) && (c) <= 'r') \
7472                     || ('s' <= (c) && (c) <= 'z'))
7473# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7474#endif
7475
7476#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7477int
7478main ()
7479{
7480  int i;
7481  for (i = 0; i < 256; i++)
7482    if (XOR (islower (i), ISLOWER (i))
7483        || toupper (i) != TOUPPER (i))
7484      exit(2);
7485  exit (0);
7486}
7487_ACEOF
7488rm -f conftest$ac_exeext
7489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490  (eval $ac_link) 2>&5
7491  ac_status=$?
7492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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  :
7500else
7501  echo "$as_me: program exited with status $ac_status" >&5
7502echo "$as_me: failed program was:" >&5
7503sed 's/^/| /' conftest.$ac_ext >&5
7504
7505( exit $ac_status )
7506ac_cv_header_stdc=no
7507fi
7508rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7509fi
7510fi
7511fi
7512echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7513echo "${ECHO_T}$ac_cv_header_stdc" >&6
7514if test $ac_cv_header_stdc = yes; then
7515
7516cat >>confdefs.h <<\_ACEOF
7517#define STDC_HEADERS 1
7518_ACEOF
7519
7520fi
7521
7522# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7533                  inttypes.h stdint.h unistd.h
7534do
7535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7536echo "$as_me:$LINENO: checking for $ac_header" >&5
7537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7538if eval "test \"\${$as_ac_Header+set}\" = set"; then
7539  echo $ECHO_N "(cached) $ECHO_C" >&6
7540else
7541  cat >conftest.$ac_ext <<_ACEOF
7542/* confdefs.h.  */
7543_ACEOF
7544cat confdefs.h >>conftest.$ac_ext
7545cat >>conftest.$ac_ext <<_ACEOF
7546/* end confdefs.h.  */
7547$ac_includes_default
7548
7549#include <$ac_header>
7550_ACEOF
7551rm -f conftest.$ac_objext
7552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7553  (eval $ac_compile) 2>conftest.er1
7554  ac_status=$?
7555  grep -v '^ *+' conftest.er1 >conftest.err
7556  rm -f conftest.er1
7557  cat conftest.err >&5
7558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559  (exit $ac_status); } &&
7560         { ac_try='test -z "$ac_c_werror_flag"
7561                         || test ! -s conftest.err'
7562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563  (eval $ac_try) 2>&5
7564  ac_status=$?
7565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566  (exit $ac_status); }; } &&
7567         { ac_try='test -s conftest.$ac_objext'
7568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569  (eval $ac_try) 2>&5
7570  ac_status=$?
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); }; }; then
7573  eval "$as_ac_Header=yes"
7574else
7575  echo "$as_me: failed program was:" >&5
7576sed 's/^/| /' conftest.$ac_ext >&5
7577
7578eval "$as_ac_Header=no"
7579fi
7580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7581fi
7582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7584if test `eval echo '${'$as_ac_Header'}'` = yes; then
7585  cat >>confdefs.h <<_ACEOF
7586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7587_ACEOF
7588
7589fi
7590
7591done
7592
7593
7594
7595for ac_header in dlfcn.h
7596do
7597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7598if eval "test \"\${$as_ac_Header+set}\" = set"; then
7599  echo "$as_me:$LINENO: checking for $ac_header" >&5
7600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7601if eval "test \"\${$as_ac_Header+set}\" = set"; then
7602  echo $ECHO_N "(cached) $ECHO_C" >&6
7603fi
7604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7606else
7607  # Is the header compilable?
7608echo "$as_me:$LINENO: checking $ac_header usability" >&5
7609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7610cat >conftest.$ac_ext <<_ACEOF
7611/* confdefs.h.  */
7612_ACEOF
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h.  */
7616$ac_includes_default
7617#include <$ac_header>
7618_ACEOF
7619rm -f conftest.$ac_objext
7620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7621  (eval $ac_compile) 2>conftest.er1
7622  ac_status=$?
7623  grep -v '^ *+' conftest.er1 >conftest.err
7624  rm -f conftest.er1
7625  cat conftest.err >&5
7626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627  (exit $ac_status); } &&
7628         { ac_try='test -z "$ac_c_werror_flag"
7629                         || test ! -s conftest.err'
7630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631  (eval $ac_try) 2>&5
7632  ac_status=$?
7633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634  (exit $ac_status); }; } &&
7635         { ac_try='test -s conftest.$ac_objext'
7636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637  (eval $ac_try) 2>&5
7638  ac_status=$?
7639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640  (exit $ac_status); }; }; then
7641  ac_header_compiler=yes
7642else
7643  echo "$as_me: failed program was:" >&5
7644sed 's/^/| /' conftest.$ac_ext >&5
7645
7646ac_header_compiler=no
7647fi
7648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7650echo "${ECHO_T}$ac_header_compiler" >&6
7651
7652# Is the header present?
7653echo "$as_me:$LINENO: checking $ac_header presence" >&5
7654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7655cat >conftest.$ac_ext <<_ACEOF
7656/* confdefs.h.  */
7657_ACEOF
7658cat confdefs.h >>conftest.$ac_ext
7659cat >>conftest.$ac_ext <<_ACEOF
7660/* end confdefs.h.  */
7661#include <$ac_header>
7662_ACEOF
7663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7664  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7665  ac_status=$?
7666  grep -v '^ *+' conftest.er1 >conftest.err
7667  rm -f conftest.er1
7668  cat conftest.err >&5
7669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670  (exit $ac_status); } >/dev/null; then
7671  if test -s conftest.err; then
7672    ac_cpp_err=$ac_c_preproc_warn_flag
7673    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7674  else
7675    ac_cpp_err=
7676  fi
7677else
7678  ac_cpp_err=yes
7679fi
7680if test -z "$ac_cpp_err"; then
7681  ac_header_preproc=yes
7682else
7683  echo "$as_me: failed program was:" >&5
7684sed 's/^/| /' conftest.$ac_ext >&5
7685
7686  ac_header_preproc=no
7687fi
7688rm -f conftest.err conftest.$ac_ext
7689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7690echo "${ECHO_T}$ac_header_preproc" >&6
7691
7692# So?  What about this header?
7693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7694  yes:no: )
7695    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7697    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7698echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7699    ac_header_preproc=yes
7700    ;;
7701  no:yes:* )
7702    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7703echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7704    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7705echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7706    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7707echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7708    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7709echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7710    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7712    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7713echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7714    (
7715      cat <<\_ASBOX
7716## --------------------------------------------------------------- ##
7717## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7718## --------------------------------------------------------------- ##
7719_ASBOX
7720    ) |
7721      sed "s/^/$as_me: WARNING:     /" >&2
7722    ;;
7723esac
7724echo "$as_me:$LINENO: checking for $ac_header" >&5
7725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7726if eval "test \"\${$as_ac_Header+set}\" = set"; then
7727  echo $ECHO_N "(cached) $ECHO_C" >&6
7728else
7729  eval "$as_ac_Header=\$ac_header_preproc"
7730fi
7731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7733
7734fi
7735if test `eval echo '${'$as_ac_Header'}'` = yes; then
7736  cat >>confdefs.h <<_ACEOF
7737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7738_ACEOF
7739
7740fi
7741
7742done
7743
7744ac_ext=cc
7745ac_cpp='$CXXCPP $CPPFLAGS'
7746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7749if test -n "$ac_tool_prefix"; then
7750  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7751  do
7752    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7754echo "$as_me:$LINENO: checking for $ac_word" >&5
7755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756if test "${ac_cv_prog_CXX+set}" = set; then
7757  echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759  if test -n "$CXX"; then
7760  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7761else
7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765  IFS=$as_save_IFS
7766  test -z "$as_dir" && as_dir=.
7767  for ac_exec_ext in '' $ac_executable_extensions; do
7768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771    break 2
7772  fi
7773done
7774done
7775
7776fi
7777fi
7778CXX=$ac_cv_prog_CXX
7779if test -n "$CXX"; then
7780  echo "$as_me:$LINENO: result: $CXX" >&5
7781echo "${ECHO_T}$CXX" >&6
7782else
7783  echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785fi
7786
7787    test -n "$CXX" && break
7788  done
7789fi
7790if test -z "$CXX"; then
7791  ac_ct_CXX=$CXX
7792  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7793do
7794  # Extract the first word of "$ac_prog", so it can be a program name with args.
7795set dummy $ac_prog; ac_word=$2
7796echo "$as_me:$LINENO: checking for $ac_word" >&5
7797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7799  echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801  if test -n "$ac_ct_CXX"; then
7802  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7803else
7804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807  IFS=$as_save_IFS
7808  test -z "$as_dir" && as_dir=.
7809  for ac_exec_ext in '' $ac_executable_extensions; do
7810  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811    ac_cv_prog_ac_ct_CXX="$ac_prog"
7812    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813    break 2
7814  fi
7815done
7816done
7817
7818fi
7819fi
7820ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7821if test -n "$ac_ct_CXX"; then
7822  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7823echo "${ECHO_T}$ac_ct_CXX" >&6
7824else
7825  echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827fi
7828
7829  test -n "$ac_ct_CXX" && break
7830done
7831test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7832
7833  CXX=$ac_ct_CXX
7834fi
7835
7836
7837# Provide some information about the compiler.
7838echo "$as_me:$LINENO:" \
7839     "checking for C++ compiler version" >&5
7840ac_compiler=`set X $ac_compile; echo $2`
7841{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7842  (eval $ac_compiler --version </dev/null >&5) 2>&5
7843  ac_status=$?
7844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845  (exit $ac_status); }
7846{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7847  (eval $ac_compiler -v </dev/null >&5) 2>&5
7848  ac_status=$?
7849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850  (exit $ac_status); }
7851{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7852  (eval $ac_compiler -V </dev/null >&5) 2>&5
7853  ac_status=$?
7854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855  (exit $ac_status); }
7856
7857echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7858echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7859if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7860  echo $ECHO_N "(cached) $ECHO_C" >&6
7861else
7862  cat >conftest.$ac_ext <<_ACEOF
7863/* confdefs.h.  */
7864_ACEOF
7865cat confdefs.h >>conftest.$ac_ext
7866cat >>conftest.$ac_ext <<_ACEOF
7867/* end confdefs.h.  */
7868
7869#ifdef F77_DUMMY_MAIN
7870
7871#  ifdef __cplusplus
7872     extern "C"
7873#  endif
7874   int F77_DUMMY_MAIN() { return 1; }
7875
7876#endif
7877int
7878main ()
7879{
7880#ifndef __GNUC__
7881       choke me
7882#endif
7883
7884  ;
7885  return 0;
7886}
7887_ACEOF
7888rm -f conftest.$ac_objext
7889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7890  (eval $ac_compile) 2>conftest.er1
7891  ac_status=$?
7892  grep -v '^ *+' conftest.er1 >conftest.err
7893  rm -f conftest.er1
7894  cat conftest.err >&5
7895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896  (exit $ac_status); } &&
7897         { ac_try='test -z "$ac_cxx_werror_flag"
7898                         || test ! -s conftest.err'
7899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900  (eval $ac_try) 2>&5
7901  ac_status=$?
7902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903  (exit $ac_status); }; } &&
7904         { ac_try='test -s conftest.$ac_objext'
7905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906  (eval $ac_try) 2>&5
7907  ac_status=$?
7908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909  (exit $ac_status); }; }; then
7910  ac_compiler_gnu=yes
7911else
7912  echo "$as_me: failed program was:" >&5
7913sed 's/^/| /' conftest.$ac_ext >&5
7914
7915ac_compiler_gnu=no
7916fi
7917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7918ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7919
7920fi
7921echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7922echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7923GXX=`test $ac_compiler_gnu = yes && echo yes`
7924ac_test_CXXFLAGS=${CXXFLAGS+set}
7925ac_save_CXXFLAGS=$CXXFLAGS
7926CXXFLAGS="-g"
7927echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7928echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7929if test "${ac_cv_prog_cxx_g+set}" = set; then
7930  echo $ECHO_N "(cached) $ECHO_C" >&6
7931else
7932  cat >conftest.$ac_ext <<_ACEOF
7933/* confdefs.h.  */
7934_ACEOF
7935cat confdefs.h >>conftest.$ac_ext
7936cat >>conftest.$ac_ext <<_ACEOF
7937/* end confdefs.h.  */
7938
7939#ifdef F77_DUMMY_MAIN
7940
7941#  ifdef __cplusplus
7942     extern "C"
7943#  endif
7944   int F77_DUMMY_MAIN() { return 1; }
7945
7946#endif
7947int
7948main ()
7949{
7950
7951  ;
7952  return 0;
7953}
7954_ACEOF
7955rm -f conftest.$ac_objext
7956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7957  (eval $ac_compile) 2>conftest.er1
7958  ac_status=$?
7959  grep -v '^ *+' conftest.er1 >conftest.err
7960  rm -f conftest.er1
7961  cat conftest.err >&5
7962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963  (exit $ac_status); } &&
7964         { ac_try='test -z "$ac_cxx_werror_flag"
7965                         || test ! -s conftest.err'
7966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967  (eval $ac_try) 2>&5
7968  ac_status=$?
7969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970  (exit $ac_status); }; } &&
7971         { ac_try='test -s conftest.$ac_objext'
7972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973  (eval $ac_try) 2>&5
7974  ac_status=$?
7975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976  (exit $ac_status); }; }; then
7977  ac_cv_prog_cxx_g=yes
7978else
7979  echo "$as_me: failed program was:" >&5
7980sed 's/^/| /' conftest.$ac_ext >&5
7981
7982ac_cv_prog_cxx_g=no
7983fi
7984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7985fi
7986echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7987echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7988if test "$ac_test_CXXFLAGS" = set; then
7989  CXXFLAGS=$ac_save_CXXFLAGS
7990elif test $ac_cv_prog_cxx_g = yes; then
7991  if test "$GXX" = yes; then
7992    CXXFLAGS="-g -O2"
7993  else
7994    CXXFLAGS="-g"
7995  fi
7996else
7997  if test "$GXX" = yes; then
7998    CXXFLAGS="-O2"
7999  else
8000    CXXFLAGS=
8001  fi
8002fi
8003for ac_declaration in \
8004   '' \
8005   'extern "C" void std::exit (int) throw (); using std::exit;' \
8006   'extern "C" void std::exit (int); using std::exit;' \
8007   'extern "C" void exit (int) throw ();' \
8008   'extern "C" void exit (int);' \
8009   'void exit (int);'
8010do
8011  cat >conftest.$ac_ext <<_ACEOF
8012/* confdefs.h.  */
8013_ACEOF
8014cat confdefs.h >>conftest.$ac_ext
8015cat >>conftest.$ac_ext <<_ACEOF
8016/* end confdefs.h.  */
8017$ac_declaration
8018#include <stdlib.h>
8019#ifdef F77_DUMMY_MAIN
8020
8021#  ifdef __cplusplus
8022     extern "C"
8023#  endif
8024   int F77_DUMMY_MAIN() { return 1; }
8025
8026#endif
8027int
8028main ()
8029{
8030exit (42);
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035rm -f conftest.$ac_objext
8036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8037  (eval $ac_compile) 2>conftest.er1
8038  ac_status=$?
8039  grep -v '^ *+' conftest.er1 >conftest.err
8040  rm -f conftest.er1
8041  cat conftest.err >&5
8042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043  (exit $ac_status); } &&
8044         { ac_try='test -z "$ac_cxx_werror_flag"
8045                         || test ! -s conftest.err'
8046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047  (eval $ac_try) 2>&5
8048  ac_status=$?
8049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050  (exit $ac_status); }; } &&
8051         { ac_try='test -s conftest.$ac_objext'
8052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053  (eval $ac_try) 2>&5
8054  ac_status=$?
8055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056  (exit $ac_status); }; }; then
8057  :
8058else
8059  echo "$as_me: failed program was:" >&5
8060sed 's/^/| /' conftest.$ac_ext >&5
8061
8062continue
8063fi
8064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8065  cat >conftest.$ac_ext <<_ACEOF
8066/* confdefs.h.  */
8067_ACEOF
8068cat confdefs.h >>conftest.$ac_ext
8069cat >>conftest.$ac_ext <<_ACEOF
8070/* end confdefs.h.  */
8071$ac_declaration
8072#ifdef F77_DUMMY_MAIN
8073
8074#  ifdef __cplusplus
8075     extern "C"
8076#  endif
8077   int F77_DUMMY_MAIN() { return 1; }
8078
8079#endif
8080int
8081main ()
8082{
8083exit (42);
8084  ;
8085  return 0;
8086}
8087_ACEOF
8088rm -f conftest.$ac_objext
8089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8090  (eval $ac_compile) 2>conftest.er1
8091  ac_status=$?
8092  grep -v '^ *+' conftest.er1 >conftest.err
8093  rm -f conftest.er1
8094  cat conftest.err >&5
8095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096  (exit $ac_status); } &&
8097         { ac_try='test -z "$ac_cxx_werror_flag"
8098                         || test ! -s conftest.err'
8099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100  (eval $ac_try) 2>&5
8101  ac_status=$?
8102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103  (exit $ac_status); }; } &&
8104         { ac_try='test -s conftest.$ac_objext'
8105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106  (eval $ac_try) 2>&5
8107  ac_status=$?
8108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109  (exit $ac_status); }; }; then
8110  break
8111else
8112  echo "$as_me: failed program was:" >&5
8113sed 's/^/| /' conftest.$ac_ext >&5
8114
8115fi
8116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8117done
8118rm -f conftest*
8119if test -n "$ac_declaration"; then
8120  echo '#ifdef __cplusplus' >>confdefs.h
8121  echo $ac_declaration      >>confdefs.h
8122  echo '#endif'             >>confdefs.h
8123fi
8124
8125ac_ext=cc
8126ac_cpp='$CXXCPP $CPPFLAGS'
8127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8130
8131depcc="$CXX"  am_compiler_list=
8132
8133echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8134echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8135if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8136  echo $ECHO_N "(cached) $ECHO_C" >&6
8137else
8138  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8139  # We make a subdir and do the tests there.  Otherwise we can end up
8140  # making bogus files that we don't know about and never remove.  For
8141  # instance it was reported that on HP-UX the gcc test will end up
8142  # making a dummy file named `D' -- because `-MD' means `put the output
8143  # in D'.
8144  mkdir conftest.dir
8145  # Copy depcomp to subdir because otherwise we won't find it if we're
8146  # using a relative directory.
8147  cp "$am_depcomp" conftest.dir
8148  cd conftest.dir
8149  # We will build objects and dependencies in a subdirectory because
8150  # it helps to detect inapplicable dependency modes.  For instance
8151  # both Tru64's cc and ICC support -MD to output dependencies as a
8152  # side effect of compilation, but ICC will put the dependencies in
8153  # the current directory while Tru64 will put them in the object
8154  # directory.
8155  mkdir sub
8156
8157  am_cv_CXX_dependencies_compiler_type=none
8158  if test "$am_compiler_list" = ""; then
8159     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8160  fi
8161  for depmode in $am_compiler_list; do
8162    # Setup a source with many dependencies, because some compilers
8163    # like to wrap large dependency lists on column 80 (with \), and
8164    # we should not choose a depcomp mode which is confused by this.
8165    #
8166    # We need to recreate these files for each test, as the compiler may
8167    # overwrite some of them when testing with obscure command lines.
8168    # This happens at least with the AIX C compiler.
8169    : > sub/conftest.c
8170    for i in 1 2 3 4 5 6; do
8171      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8172      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8173      # Solaris 8's {/usr,}/bin/sh.
8174      touch sub/conftst$i.h
8175    done
8176    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8177
8178    case $depmode in
8179    nosideeffect)
8180      # after this tag, mechanisms are not by side-effect, so they'll
8181      # only be used when explicitly requested
8182      if test "x$enable_dependency_tracking" = xyes; then
8183        continue
8184      else
8185        break
8186      fi
8187      ;;
8188    none) break ;;
8189    esac
8190    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8191    # mode.  It turns out that the SunPro C++ compiler does not properly
8192    # handle `-M -o', and we need to detect this.
8193    if depmode=$depmode \
8194       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8195       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8196       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8197         >/dev/null 2>conftest.err &&
8198       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8199       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8200       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8201      # icc doesn't choke on unknown options, it will just issue warnings
8202      # or remarks (even with -Werror).  So we grep stderr for any message
8203      # that says an option was ignored or not supported.
8204      # When given -MP, icc 7.0 and 7.1 complain thusly:
8205      #   icc: Command line warning: ignoring option '-M'; no argument required
8206      # The diagnosis changed in icc 8.0:
8207      #   icc: Command line remark: option '-MP' not supported
8208      if (grep 'ignoring option' conftest.err ||
8209          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8210        am_cv_CXX_dependencies_compiler_type=$depmode
8211        break
8212      fi
8213    fi
8214  done
8215
8216  cd ..
8217  rm -rf conftest.dir
8218else
8219  am_cv_CXX_dependencies_compiler_type=none
8220fi
8221
8222fi
8223echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8224echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8225CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8226
8227
8228
8229if
8230  test "x$enable_dependency_tracking" != xno \
8231  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8232  am__fastdepCXX_TRUE=
8233  am__fastdepCXX_FALSE='#'
8234else
8235  am__fastdepCXX_TRUE='#'
8236  am__fastdepCXX_FALSE=
8237fi
8238
8239
8240
8241
8242if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8243    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8244    (test "X$CXX" != "Xg++"))) ; then
8245  ac_ext=cc
8246ac_cpp='$CXXCPP $CPPFLAGS'
8247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8250echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8251echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8252if test -z "$CXXCPP"; then
8253  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8254  echo $ECHO_N "(cached) $ECHO_C" >&6
8255else
8256      # Double quotes because CXXCPP needs to be expanded
8257    for CXXCPP in "$CXX -E" "/lib/cpp"
8258    do
8259      ac_preproc_ok=false
8260for ac_cxx_preproc_warn_flag in '' yes
8261do
8262  # Use a header file that comes with gcc, so configuring glibc
8263  # with a fresh cross-compiler works.
8264  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8265  # <limits.h> exists even on freestanding compilers.
8266  # On the NeXT, cc -E runs the code through the compiler's parser,
8267  # not just through cpp. "Syntax error" is here to catch this case.
8268  cat >conftest.$ac_ext <<_ACEOF
8269/* confdefs.h.  */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
8273/* end confdefs.h.  */
8274#ifdef __STDC__
8275# include <limits.h>
8276#else
8277# include <assert.h>
8278#endif
8279                     Syntax error
8280_ACEOF
8281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8282  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8283  ac_status=$?
8284  grep -v '^ *+' conftest.er1 >conftest.err
8285  rm -f conftest.er1
8286  cat conftest.err >&5
8287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288  (exit $ac_status); } >/dev/null; then
8289  if test -s conftest.err; then
8290    ac_cpp_err=$ac_cxx_preproc_warn_flag
8291    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8292  else
8293    ac_cpp_err=
8294  fi
8295else
8296  ac_cpp_err=yes
8297fi
8298if test -z "$ac_cpp_err"; then
8299  :
8300else
8301  echo "$as_me: failed program was:" >&5
8302sed 's/^/| /' conftest.$ac_ext >&5
8303
8304  # Broken: fails on valid input.
8305continue
8306fi
8307rm -f conftest.err conftest.$ac_ext
8308
8309  # OK, works on sane cases.  Now check whether non-existent headers
8310  # can be detected and how.
8311  cat >conftest.$ac_ext <<_ACEOF
8312/* confdefs.h.  */
8313_ACEOF
8314cat confdefs.h >>conftest.$ac_ext
8315cat >>conftest.$ac_ext <<_ACEOF
8316/* end confdefs.h.  */
8317#include <ac_nonexistent.h>
8318_ACEOF
8319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8320  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8321  ac_status=$?
8322  grep -v '^ *+' conftest.er1 >conftest.err
8323  rm -f conftest.er1
8324  cat conftest.err >&5
8325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326  (exit $ac_status); } >/dev/null; then
8327  if test -s conftest.err; then
8328    ac_cpp_err=$ac_cxx_preproc_warn_flag
8329    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8330  else
8331    ac_cpp_err=
8332  fi
8333else
8334  ac_cpp_err=yes
8335fi
8336if test -z "$ac_cpp_err"; then
8337  # Broken: success on invalid input.
8338continue
8339else
8340  echo "$as_me: failed program was:" >&5
8341sed 's/^/| /' conftest.$ac_ext >&5
8342
8343  # Passes both tests.
8344ac_preproc_ok=:
8345break
8346fi
8347rm -f conftest.err conftest.$ac_ext
8348
8349done
8350# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8351rm -f conftest.err conftest.$ac_ext
8352if $ac_preproc_ok; then
8353  break
8354fi
8355
8356    done
8357    ac_cv_prog_CXXCPP=$CXXCPP
8358
8359fi
8360  CXXCPP=$ac_cv_prog_CXXCPP
8361else
8362  ac_cv_prog_CXXCPP=$CXXCPP
8363fi
8364echo "$as_me:$LINENO: result: $CXXCPP" >&5
8365echo "${ECHO_T}$CXXCPP" >&6
8366ac_preproc_ok=false
8367for ac_cxx_preproc_warn_flag in '' yes
8368do
8369  # Use a header file that comes with gcc, so configuring glibc
8370  # with a fresh cross-compiler works.
8371  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8372  # <limits.h> exists even on freestanding compilers.
8373  # On the NeXT, cc -E runs the code through the compiler's parser,
8374  # not just through cpp. "Syntax error" is here to catch this case.
8375  cat >conftest.$ac_ext <<_ACEOF
8376/* confdefs.h.  */
8377_ACEOF
8378cat confdefs.h >>conftest.$ac_ext
8379cat >>conftest.$ac_ext <<_ACEOF
8380/* end confdefs.h.  */
8381#ifdef __STDC__
8382# include <limits.h>
8383#else
8384# include <assert.h>
8385#endif
8386                     Syntax error
8387_ACEOF
8388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8389  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8390  ac_status=$?
8391  grep -v '^ *+' conftest.er1 >conftest.err
8392  rm -f conftest.er1
8393  cat conftest.err >&5
8394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395  (exit $ac_status); } >/dev/null; then
8396  if test -s conftest.err; then
8397    ac_cpp_err=$ac_cxx_preproc_warn_flag
8398    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8399  else
8400    ac_cpp_err=
8401  fi
8402else
8403  ac_cpp_err=yes
8404fi
8405if test -z "$ac_cpp_err"; then
8406  :
8407else
8408  echo "$as_me: failed program was:" >&5
8409sed 's/^/| /' conftest.$ac_ext >&5
8410
8411  # Broken: fails on valid input.
8412continue
8413fi
8414rm -f conftest.err conftest.$ac_ext
8415
8416  # OK, works on sane cases.  Now check whether non-existent headers
8417  # can be detected and how.
8418  cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h.  */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h.  */
8424#include <ac_nonexistent.h>
8425_ACEOF
8426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8427  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8428  ac_status=$?
8429  grep -v '^ *+' conftest.er1 >conftest.err
8430  rm -f conftest.er1
8431  cat conftest.err >&5
8432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433  (exit $ac_status); } >/dev/null; then
8434  if test -s conftest.err; then
8435    ac_cpp_err=$ac_cxx_preproc_warn_flag
8436    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8437  else
8438    ac_cpp_err=
8439  fi
8440else
8441  ac_cpp_err=yes
8442fi
8443if test -z "$ac_cpp_err"; then
8444  # Broken: success on invalid input.
8445continue
8446else
8447  echo "$as_me: failed program was:" >&5
8448sed 's/^/| /' conftest.$ac_ext >&5
8449
8450  # Passes both tests.
8451ac_preproc_ok=:
8452break
8453fi
8454rm -f conftest.err conftest.$ac_ext
8455
8456done
8457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8458rm -f conftest.err conftest.$ac_ext
8459if $ac_preproc_ok; then
8460  :
8461else
8462  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8463See \`config.log' for more details." >&5
8464echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8465See \`config.log' for more details." >&2;}
8466   { (exit 1); exit 1; }; }
8467fi
8468
8469ac_ext=cc
8470ac_cpp='$CXXCPP $CPPFLAGS'
8471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8474
8475fi
8476
8477
8478
8479# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8480
8481# find the maximum length of command line arguments
8482echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8483echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8484if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8485  echo $ECHO_N "(cached) $ECHO_C" >&6
8486else
8487    i=0
8488  teststring="ABCD"
8489
8490  case $build_os in
8491  msdosdjgpp*)
8492    # On DJGPP, this test can blow up pretty badly due to problems in libc
8493    # (any single argument exceeding 2000 bytes causes a buffer overrun
8494    # during glob expansion).  Even if it were fixed, the result of this
8495    # check would be larger than it should be.
8496    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8497    ;;
8498
8499  gnu*)
8500    # Under GNU Hurd, this test is not required because there is
8501    # no limit to the length of command line arguments.
8502    # Libtool will interpret -1 as no limit whatsoever
8503    lt_cv_sys_max_cmd_len=-1;
8504    ;;
8505
8506  cygwin* | mingw*)
8507    # On Win9x/ME, this test blows up -- it succeeds, but takes
8508    # about 5 minutes as the teststring grows exponentially.
8509    # Worse, since 9x/ME are not pre-emptively multitasking,
8510    # you end up with a "frozen" computer, even though with patience
8511    # the test eventually succeeds (with a max line length of 256k).
8512    # Instead, let's just punt: use the minimum linelength reported by
8513    # all of the supported platforms: 8192 (on NT/2K/XP).
8514    lt_cv_sys_max_cmd_len=8192;
8515    ;;
8516
8517  amigaos*)
8518    # On AmigaOS with pdksh, this test takes hours, literally.
8519    # So we just punt and use a minimum line length of 8192.
8520    lt_cv_sys_max_cmd_len=8192;
8521    ;;
8522
8523  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8524    # This has been around since 386BSD, at least.  Likely further.
8525    if test -x /sbin/sysctl; then
8526      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8527    elif test -x /usr/sbin/sysctl; then
8528      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8529    else
8530      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8531    fi
8532    # And add a safety zone
8533    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8534    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8535    ;;
8536
8537  interix*)
8538    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8539    lt_cv_sys_max_cmd_len=196608
8540    ;;
8541
8542  osf*)
8543    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8544    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8545    # nice to cause kernel panics so lets avoid the loop below.
8546    # First set a reasonable default.
8547    lt_cv_sys_max_cmd_len=16384
8548    #
8549    if test -x /sbin/sysconfig; then
8550      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8551        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8552      esac
8553    fi
8554    ;;
8555  sco3.2v5*)
8556    lt_cv_sys_max_cmd_len=102400
8557    ;;
8558  sysv5* | sco5v6* | sysv4.2uw2*)
8559    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8560    if test -n "$kargmax"; then
8561      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8562    else
8563      lt_cv_sys_max_cmd_len=32768
8564    fi
8565    ;;
8566  *)
8567    # If test is not a shell built-in, we'll probably end up computing a
8568    # maximum length that is only half of the actual maximum length, but
8569    # we can't tell.
8570    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8571    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8572               = "XX$teststring") >/dev/null 2>&1 &&
8573            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8574            lt_cv_sys_max_cmd_len=$new_result &&
8575            test $i != 17 # 1/2 MB should be enough
8576    do
8577      i=`expr $i + 1`
8578      teststring=$teststring$teststring
8579    done
8580    teststring=
8581    # Add a significant safety factor because C++ compilers can tack on massive
8582    # amounts of additional arguments before passing them to the linker.
8583    # It appears as though 1/2 is a usable value.
8584    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8585    ;;
8586  esac
8587
8588fi
8589
8590if test -n $lt_cv_sys_max_cmd_len ; then
8591  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8592echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8593else
8594  echo "$as_me:$LINENO: result: none" >&5
8595echo "${ECHO_T}none" >&6
8596fi
8597
8598
8599
8600
8601# Check for command to grab the raw symbol name followed by C symbol from nm.
8602echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8603echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8604if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8605  echo $ECHO_N "(cached) $ECHO_C" >&6
8606else
8607
8608# These are sane defaults that work on at least a few old systems.
8609# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8610
8611# Character class describing NM global symbol codes.
8612symcode='[BCDEGRST]'
8613
8614# Regexp to match symbols that can be accessed directly from C.
8615sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8616
8617# Transform an extracted symbol line into a proper C declaration
8618lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8619
8620# Transform an extracted symbol line into symbol name and symbol address
8621lt_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'"
8622
8623# Define system-specific variables.
8624case $host_os in
8625aix*)
8626  symcode='[BCDT]'
8627  ;;
8628cygwin* | mingw* | pw32*)
8629  symcode='[ABCDGISTW]'
8630  ;;
8631hpux*) # Its linker distinguishes data from code symbols
8632  if test "$host_cpu" = ia64; then
8633    symcode='[ABCDEGRST]'
8634  fi
8635  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8636  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'"
8637  ;;
8638linux*)
8639  if test "$host_cpu" = ia64; then
8640    symcode='[ABCDGIRSTW]'
8641    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8642    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'"
8643  fi
8644  ;;
8645irix* | nonstopux*)
8646  symcode='[BCDEGRST]'
8647  ;;
8648osf*)
8649  symcode='[BCDEGQRST]'
8650  ;;
8651solaris*)
8652  symcode='[BDRT]'
8653  ;;
8654sco3.2v5*)
8655  symcode='[DT]'
8656  ;;
8657sysv4.2uw2*)
8658  symcode='[DT]'
8659  ;;
8660sysv5* | sco5v6* | unixware* | OpenUNIX*)
8661  symcode='[ABDT]'
8662  ;;
8663sysv4)
8664  symcode='[DFNSTU]'
8665  ;;
8666esac
8667
8668# Handle CRLF in mingw tool chain
8669opt_cr=
8670case $build_os in
8671mingw*)
8672  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8673  ;;
8674esac
8675
8676# If we're using GNU nm, then use its standard symbol codes.
8677case `$NM -V 2>&1` in
8678*GNU* | *'with BFD'*)
8679  symcode='[ABCDGIRSTW]' ;;
8680esac
8681
8682# Try without a prefix undercore, then with it.
8683for ac_symprfx in "" "_"; do
8684
8685  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8686  symxfrm="\\1 $ac_symprfx\\2 \\2"
8687
8688  # Write the raw and C identifiers.
8689  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8690
8691  # Check to see that the pipe works correctly.
8692  pipe_works=no
8693
8694  rm -f conftest*
8695  cat > conftest.$ac_ext <<EOF
8696#ifdef __cplusplus
8697extern "C" {
8698#endif
8699char nm_test_var;
8700void nm_test_func(){}
8701#ifdef __cplusplus
8702}
8703#endif
8704int main(){nm_test_var='a';nm_test_func();return(0);}
8705EOF
8706
8707  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708  (eval $ac_compile) 2>&5
8709  ac_status=$?
8710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711  (exit $ac_status); }; then
8712    # Now try to grab the symbols.
8713    nlist=conftest.nm
8714    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8715  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8716  ac_status=$?
8717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718  (exit $ac_status); } && test -s "$nlist"; then
8719      # Try sorting and uniquifying the output.
8720      if sort "$nlist" | uniq > "$nlist"T; then
8721        mv -f "$nlist"T "$nlist"
8722      else
8723        rm -f "$nlist"T
8724      fi
8725
8726      # Make sure that we snagged all the symbols we need.
8727      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8728        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8729          cat <<EOF > conftest.$ac_ext
8730#ifdef __cplusplus
8731extern "C" {
8732#endif
8733
8734EOF
8735          # Now generate the symbol file.
8736          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8737
8738          cat <<EOF >> conftest.$ac_ext
8739#if defined (__STDC__) && __STDC__
8740# define lt_ptr_t void *
8741#else
8742# define lt_ptr_t char *
8743# define const
8744#endif
8745
8746/* The mapping between symbol names and symbols. */
8747const struct {
8748  const char *name;
8749  lt_ptr_t address;
8750}
8751lt_preloaded_symbols[] =
8752{
8753EOF
8754          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8755          cat <<\EOF >> conftest.$ac_ext
8756  {0, (lt_ptr_t) 0}
8757};
8758
8759#ifdef __cplusplus
8760}
8761#endif
8762EOF
8763          # Now try linking the two files.
8764          mv conftest.$ac_objext conftstm.$ac_objext
8765          lt_save_LIBS="$LIBS"
8766          lt_save_CFLAGS="$CFLAGS"
8767          LIBS="conftstm.$ac_objext"
8768          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8769          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770  (eval $ac_link) 2>&5
8771  ac_status=$?
8772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8774            pipe_works=yes
8775          fi
8776          LIBS="$lt_save_LIBS"
8777          CFLAGS="$lt_save_CFLAGS"
8778        else
8779          echo "cannot find nm_test_func in $nlist" >&5
8780        fi
8781      else
8782        echo "cannot find nm_test_var in $nlist" >&5
8783      fi
8784    else
8785      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8786    fi
8787  else
8788    echo "$progname: failed program was:" >&5
8789    cat conftest.$ac_ext >&5
8790  fi
8791  rm -f conftest* conftst*
8792
8793  # Do not use the global_symbol_pipe unless it works.
8794  if test "$pipe_works" = yes; then
8795    break
8796  else
8797    lt_cv_sys_global_symbol_pipe=
8798  fi
8799done
8800
8801fi
8802
8803if test -z "$lt_cv_sys_global_symbol_pipe"; then
8804  lt_cv_sys_global_symbol_to_cdecl=
8805fi
8806if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8807  echo "$as_me:$LINENO: result: failed" >&5
8808echo "${ECHO_T}failed" >&6
8809else
8810  echo "$as_me:$LINENO: result: ok" >&5
8811echo "${ECHO_T}ok" >&6
8812fi
8813
8814echo "$as_me:$LINENO: checking for objdir" >&5
8815echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8816if test "${lt_cv_objdir+set}" = set; then
8817  echo $ECHO_N "(cached) $ECHO_C" >&6
8818else
8819  rm -f .libs 2>/dev/null
8820mkdir .libs 2>/dev/null
8821if test -d .libs; then
8822  lt_cv_objdir=.libs
8823else
8824  # MS-DOS does not allow filenames that begin with a dot.
8825  lt_cv_objdir=_libs
8826fi
8827rmdir .libs 2>/dev/null
8828fi
8829echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8830echo "${ECHO_T}$lt_cv_objdir" >&6
8831objdir=$lt_cv_objdir
8832
8833
8834
8835
8836
8837case $host_os in
8838aix3*)
8839  # AIX sometimes has problems with the GCC collect2 program.  For some
8840  # reason, if we set the COLLECT_NAMES environment variable, the problems
8841  # vanish in a puff of smoke.
8842  if test "X${COLLECT_NAMES+set}" != Xset; then
8843    COLLECT_NAMES=
8844    export COLLECT_NAMES
8845  fi
8846  ;;
8847esac
8848
8849# Sed substitution that helps us do robust quoting.  It backslashifies
8850# metacharacters that are still active within double-quoted strings.
8851Xsed='sed -e 1s/^X//'
8852sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8853
8854# Same as above, but do not quote variable references.
8855double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8856
8857# Sed substitution to delay expansion of an escaped shell variable in a
8858# double_quote_subst'ed string.
8859delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8860
8861# Sed substitution to avoid accidental globbing in evaled expressions
8862no_glob_subst='s/\*/\\\*/g'
8863
8864# Constants:
8865rm="rm -f"
8866
8867# Global variables:
8868default_ofile=libtool
8869can_build_shared=yes
8870
8871# All known linkers require a `.a' archive for static linking (except MSVC,
8872# which needs '.lib').
8873libext=a
8874ltmain="$ac_aux_dir/ltmain.sh"
8875ofile="$default_ofile"
8876with_gnu_ld="$lt_cv_prog_gnu_ld"
8877
8878if test -n "$ac_tool_prefix"; then
8879  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8880set dummy ${ac_tool_prefix}ar; ac_word=$2
8881echo "$as_me:$LINENO: checking for $ac_word" >&5
8882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8883if test "${ac_cv_prog_AR+set}" = set; then
8884  echo $ECHO_N "(cached) $ECHO_C" >&6
8885else
8886  if test -n "$AR"; then
8887  ac_cv_prog_AR="$AR" # Let the user override the test.
8888else
8889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890for as_dir in $PATH
8891do
8892  IFS=$as_save_IFS
8893  test -z "$as_dir" && as_dir=.
8894  for ac_exec_ext in '' $ac_executable_extensions; do
8895  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896    ac_cv_prog_AR="${ac_tool_prefix}ar"
8897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8898    break 2
8899  fi
8900done
8901done
8902
8903fi
8904fi
8905AR=$ac_cv_prog_AR
8906if test -n "$AR"; then
8907  echo "$as_me:$LINENO: result: $AR" >&5
8908echo "${ECHO_T}$AR" >&6
8909else
8910  echo "$as_me:$LINENO: result: no" >&5
8911echo "${ECHO_T}no" >&6
8912fi
8913
8914fi
8915if test -z "$ac_cv_prog_AR"; then
8916  ac_ct_AR=$AR
8917  # Extract the first word of "ar", so it can be a program name with args.
8918set dummy ar; ac_word=$2
8919echo "$as_me:$LINENO: checking for $ac_word" >&5
8920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8921if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8922  echo $ECHO_N "(cached) $ECHO_C" >&6
8923else
8924  if test -n "$ac_ct_AR"; then
8925  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8926else
8927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928for as_dir in $PATH
8929do
8930  IFS=$as_save_IFS
8931  test -z "$as_dir" && as_dir=.
8932  for ac_exec_ext in '' $ac_executable_extensions; do
8933  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8934    ac_cv_prog_ac_ct_AR="ar"
8935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8936    break 2
8937  fi
8938done
8939done
8940
8941  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8942fi
8943fi
8944ac_ct_AR=$ac_cv_prog_ac_ct_AR
8945if test -n "$ac_ct_AR"; then
8946  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8947echo "${ECHO_T}$ac_ct_AR" >&6
8948else
8949  echo "$as_me:$LINENO: result: no" >&5
8950echo "${ECHO_T}no" >&6
8951fi
8952
8953  AR=$ac_ct_AR
8954else
8955  AR="$ac_cv_prog_AR"
8956fi
8957
8958if test -n "$ac_tool_prefix"; then
8959  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8960set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8961echo "$as_me:$LINENO: checking for $ac_word" >&5
8962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8963if test "${ac_cv_prog_RANLIB+set}" = set; then
8964  echo $ECHO_N "(cached) $ECHO_C" >&6
8965else
8966  if test -n "$RANLIB"; then
8967  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8968else
8969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970for as_dir in $PATH
8971do
8972  IFS=$as_save_IFS
8973  test -z "$as_dir" && as_dir=.
8974  for ac_exec_ext in '' $ac_executable_extensions; do
8975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8978    break 2
8979  fi
8980done
8981done
8982
8983fi
8984fi
8985RANLIB=$ac_cv_prog_RANLIB
8986if test -n "$RANLIB"; then
8987  echo "$as_me:$LINENO: result: $RANLIB" >&5
8988echo "${ECHO_T}$RANLIB" >&6
8989else
8990  echo "$as_me:$LINENO: result: no" >&5
8991echo "${ECHO_T}no" >&6
8992fi
8993
8994fi
8995if test -z "$ac_cv_prog_RANLIB"; then
8996  ac_ct_RANLIB=$RANLIB
8997  # Extract the first word of "ranlib", so it can be a program name with args.
8998set dummy ranlib; ac_word=$2
8999echo "$as_me:$LINENO: checking for $ac_word" >&5
9000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9002  echo $ECHO_N "(cached) $ECHO_C" >&6
9003else
9004  if test -n "$ac_ct_RANLIB"; then
9005  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9006else
9007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008for as_dir in $PATH
9009do
9010  IFS=$as_save_IFS
9011  test -z "$as_dir" && as_dir=.
9012  for ac_exec_ext in '' $ac_executable_extensions; do
9013  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014    ac_cv_prog_ac_ct_RANLIB="ranlib"
9015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016    break 2
9017  fi
9018done
9019done
9020
9021  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9022fi
9023fi
9024ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9025if test -n "$ac_ct_RANLIB"; then
9026  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9027echo "${ECHO_T}$ac_ct_RANLIB" >&6
9028else
9029  echo "$as_me:$LINENO: result: no" >&5
9030echo "${ECHO_T}no" >&6
9031fi
9032
9033  RANLIB=$ac_ct_RANLIB
9034else
9035  RANLIB="$ac_cv_prog_RANLIB"
9036fi
9037
9038if test -n "$ac_tool_prefix"; then
9039  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9040set dummy ${ac_tool_prefix}strip; ac_word=$2
9041echo "$as_me:$LINENO: checking for $ac_word" >&5
9042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9043if test "${ac_cv_prog_STRIP+set}" = set; then
9044  echo $ECHO_N "(cached) $ECHO_C" >&6
9045else
9046  if test -n "$STRIP"; then
9047  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9048else
9049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050for as_dir in $PATH
9051do
9052  IFS=$as_save_IFS
9053  test -z "$as_dir" && as_dir=.
9054  for ac_exec_ext in '' $ac_executable_extensions; do
9055  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9058    break 2
9059  fi
9060done
9061done
9062
9063fi
9064fi
9065STRIP=$ac_cv_prog_STRIP
9066if test -n "$STRIP"; then
9067  echo "$as_me:$LINENO: result: $STRIP" >&5
9068echo "${ECHO_T}$STRIP" >&6
9069else
9070  echo "$as_me:$LINENO: result: no" >&5
9071echo "${ECHO_T}no" >&6
9072fi
9073
9074fi
9075if test -z "$ac_cv_prog_STRIP"; then
9076  ac_ct_STRIP=$STRIP
9077  # Extract the first word of "strip", so it can be a program name with args.
9078set dummy strip; ac_word=$2
9079echo "$as_me:$LINENO: checking for $ac_word" >&5
9080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9081if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9082  echo $ECHO_N "(cached) $ECHO_C" >&6
9083else
9084  if test -n "$ac_ct_STRIP"; then
9085  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9086else
9087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088for as_dir in $PATH
9089do
9090  IFS=$as_save_IFS
9091  test -z "$as_dir" && as_dir=.
9092  for ac_exec_ext in '' $ac_executable_extensions; do
9093  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9094    ac_cv_prog_ac_ct_STRIP="strip"
9095    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9096    break 2
9097  fi
9098done
9099done
9100
9101  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9102fi
9103fi
9104ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9105if test -n "$ac_ct_STRIP"; then
9106  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9107echo "${ECHO_T}$ac_ct_STRIP" >&6
9108else
9109  echo "$as_me:$LINENO: result: no" >&5
9110echo "${ECHO_T}no" >&6
9111fi
9112
9113  STRIP=$ac_ct_STRIP
9114else
9115  STRIP="$ac_cv_prog_STRIP"
9116fi
9117
9118
9119old_CC="$CC"
9120old_CFLAGS="$CFLAGS"
9121
9122# Set sane defaults for various variables
9123test -z "$AR" && AR=ar
9124test -z "$AR_FLAGS" && AR_FLAGS=cru
9125test -z "$AS" && AS=as
9126test -z "$CC" && CC=cc
9127test -z "$LTCC" && LTCC=$CC
9128test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9129test -z "$DLLTOOL" && DLLTOOL=dlltool
9130test -z "$LD" && LD=ld
9131test -z "$LN_S" && LN_S="ln -s"
9132test -z "$MAGIC_CMD" && MAGIC_CMD=file
9133test -z "$NM" && NM=nm
9134test -z "$SED" && SED=sed
9135test -z "$OBJDUMP" && OBJDUMP=objdump
9136test -z "$RANLIB" && RANLIB=:
9137test -z "$STRIP" && STRIP=:
9138test -z "$ac_objext" && ac_objext=o
9139
9140# Determine commands to create old-style static archives.
9141old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9142old_postinstall_cmds='chmod 644 $oldlib'
9143old_postuninstall_cmds=
9144
9145if test -n "$RANLIB"; then
9146  case $host_os in
9147  openbsd*)
9148    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9149    ;;
9150  *)
9151    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9152    ;;
9153  esac
9154  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9155fi
9156
9157for cc_temp in $compiler""; do
9158  case $cc_temp in
9159    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9160    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9161    \-*) ;;
9162    *) break;;
9163  esac
9164done
9165cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9166
9167
9168# Only perform the check for file, if the check method requires it
9169case $deplibs_check_method in
9170file_magic*)
9171  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9172    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9173echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9174if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9175  echo $ECHO_N "(cached) $ECHO_C" >&6
9176else
9177  case $MAGIC_CMD in
9178[\\/*] |  ?:[\\/]*)
9179  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9180  ;;
9181*)
9182  lt_save_MAGIC_CMD="$MAGIC_CMD"
9183  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9184  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9185  for ac_dir in $ac_dummy; do
9186    IFS="$lt_save_ifs"
9187    test -z "$ac_dir" && ac_dir=.
9188    if test -f $ac_dir/${ac_tool_prefix}file; then
9189      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9190      if test -n "$file_magic_test_file"; then
9191        case $deplibs_check_method in
9192        "file_magic "*)
9193          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9194          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9195          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9196            $EGREP "$file_magic_regex" > /dev/null; then
9197            :
9198          else
9199            cat <<EOF 1>&2
9200
9201*** Warning: the command libtool uses to detect shared libraries,
9202*** $file_magic_cmd, produces output that libtool cannot recognize.
9203*** The result is that libtool may fail to recognize shared libraries
9204*** as such.  This will affect the creation of libtool libraries that
9205*** depend on shared libraries, but programs linked with such libtool
9206*** libraries will work regardless of this problem.  Nevertheless, you
9207*** may want to report the problem to your system manager and/or to
9208*** bug-libtool@gnu.org
9209
9210EOF
9211          fi ;;
9212        esac
9213      fi
9214      break
9215    fi
9216  done
9217  IFS="$lt_save_ifs"
9218  MAGIC_CMD="$lt_save_MAGIC_CMD"
9219  ;;
9220esac
9221fi
9222
9223MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9224if test -n "$MAGIC_CMD"; then
9225  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9226echo "${ECHO_T}$MAGIC_CMD" >&6
9227else
9228  echo "$as_me:$LINENO: result: no" >&5
9229echo "${ECHO_T}no" >&6
9230fi
9231
9232if test -z "$lt_cv_path_MAGIC_CMD"; then
9233  if test -n "$ac_tool_prefix"; then
9234    echo "$as_me:$LINENO: checking for file" >&5
9235echo $ECHO_N "checking for file... $ECHO_C" >&6
9236if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9237  echo $ECHO_N "(cached) $ECHO_C" >&6
9238else
9239  case $MAGIC_CMD in
9240[\\/*] |  ?:[\\/]*)
9241  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9242  ;;
9243*)
9244  lt_save_MAGIC_CMD="$MAGIC_CMD"
9245  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9246  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9247  for ac_dir in $ac_dummy; do
9248    IFS="$lt_save_ifs"
9249    test -z "$ac_dir" && ac_dir=.
9250    if test -f $ac_dir/file; then
9251      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9252      if test -n "$file_magic_test_file"; then
9253        case $deplibs_check_method in
9254        "file_magic "*)
9255          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9256          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9257          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9258            $EGREP "$file_magic_regex" > /dev/null; then
9259            :
9260          else
9261            cat <<EOF 1>&2
9262
9263*** Warning: the command libtool uses to detect shared libraries,
9264*** $file_magic_cmd, produces output that libtool cannot recognize.
9265*** The result is that libtool may fail to recognize shared libraries
9266*** as such.  This will affect the creation of libtool libraries that
9267*** depend on shared libraries, but programs linked with such libtool
9268*** libraries will work regardless of this problem.  Nevertheless, you
9269*** may want to report the problem to your system manager and/or to
9270*** bug-libtool@gnu.org
9271
9272EOF
9273          fi ;;
9274        esac
9275      fi
9276      break
9277    fi
9278  done
9279  IFS="$lt_save_ifs"
9280  MAGIC_CMD="$lt_save_MAGIC_CMD"
9281  ;;
9282esac
9283fi
9284
9285MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9286if test -n "$MAGIC_CMD"; then
9287  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9288echo "${ECHO_T}$MAGIC_CMD" >&6
9289else
9290  echo "$as_me:$LINENO: result: no" >&5
9291echo "${ECHO_T}no" >&6
9292fi
9293
9294  else
9295    MAGIC_CMD=:
9296  fi
9297fi
9298
9299  fi
9300  ;;
9301esac
9302
9303enable_dlopen=no
9304enable_win32_dll=no
9305
9306# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9307if test "${enable_libtool_lock+set}" = set; then
9308  enableval="$enable_libtool_lock"
9309
9310fi;
9311test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9312
9313
9314# Check whether --with-pic or --without-pic was given.
9315if test "${with_pic+set}" = set; then
9316  withval="$with_pic"
9317  pic_mode="$withval"
9318else
9319  pic_mode=default
9320fi;
9321test -z "$pic_mode" && pic_mode=default
9322
9323# Use C for the default configuration in the libtool script
9324tagname=
9325lt_save_CC="$CC"
9326ac_ext=c
9327ac_cpp='$CPP $CPPFLAGS'
9328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9330ac_compiler_gnu=$ac_cv_c_compiler_gnu
9331
9332
9333# Source file extension for C test sources.
9334ac_ext=c
9335
9336# Object file extension for compiled C test sources.
9337objext=o
9338objext=$objext
9339
9340# Code to be used in simple compile tests
9341lt_simple_compile_test_code="int some_variable = 0;\n"
9342
9343# Code to be used in simple link tests
9344lt_simple_link_test_code='int main(){return(0);}\n'
9345
9346
9347# If no C compiler was specified, use CC.
9348LTCC=${LTCC-"$CC"}
9349
9350# If no C compiler flags were specified, use CFLAGS.
9351LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9352
9353# Allow CC to be a program name with arguments.
9354compiler=$CC
9355
9356
9357# save warnings/boilerplate of simple test code
9358ac_outfile=conftest.$ac_objext
9359printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9360eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9361_lt_compiler_boilerplate=`cat conftest.err`
9362$rm conftest*
9363
9364ac_outfile=conftest.$ac_objext
9365printf "$lt_simple_link_test_code" >conftest.$ac_ext
9366eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9367_lt_linker_boilerplate=`cat conftest.err`
9368$rm conftest*
9369
9370
9371## CAVEAT EMPTOR:
9372## There is no encapsulation within the following macros, do not change
9373## the running order or otherwise move them around unless you know exactly
9374## what you are doing...
9375
9376lt_prog_compiler_no_builtin_flag=
9377
9378if test "$GCC" = yes; then
9379  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9380
9381
9382echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9383echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9384if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9385  echo $ECHO_N "(cached) $ECHO_C" >&6
9386else
9387  lt_cv_prog_compiler_rtti_exceptions=no
9388  ac_outfile=conftest.$ac_objext
9389   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9390   lt_compiler_flag="-fno-rtti -fno-exceptions"
9391   # Insert the option either (1) after the last *FLAGS variable, or
9392   # (2) before a word containing "conftest.", or (3) at the end.
9393   # Note that $ac_compile itself does not contain backslashes and begins
9394   # with a dollar sign (not a hyphen), so the echo should work correctly.
9395   # The option is referenced via a variable to avoid confusing sed.
9396   lt_compile=`echo "$ac_compile" | $SED \
9397   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9398   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9399   -e 's:$: $lt_compiler_flag:'`
9400   (eval echo "\"\$as_me:9400: $lt_compile\"" >&5)
9401   (eval "$lt_compile" 2>conftest.err)
9402   ac_status=$?
9403   cat conftest.err >&5
9404   echo "$as_me:9404: \$? = $ac_status" >&5
9405   if (exit $ac_status) && test -s "$ac_outfile"; then
9406     # The compiler can only warn and ignore the option if not recognized
9407     # So say no if there are warnings other than the usual output.
9408     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9409     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9410     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9411       lt_cv_prog_compiler_rtti_exceptions=yes
9412     fi
9413   fi
9414   $rm conftest*
9415
9416fi
9417echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9418echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9419
9420if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9421    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9422else
9423    :
9424fi
9425
9426fi
9427
9428lt_prog_compiler_wl=
9429lt_prog_compiler_pic=
9430lt_prog_compiler_static=
9431
9432echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9433echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9434
9435  if test "$GCC" = yes; then
9436    lt_prog_compiler_wl='-Wl,'
9437    lt_prog_compiler_static='-static'
9438
9439    case $host_os in
9440      aix*)
9441      # All AIX code is PIC.
9442      if test "$host_cpu" = ia64; then
9443        # AIX 5 now supports IA64 processor
9444        lt_prog_compiler_static='-Bstatic'
9445      fi
9446      ;;
9447
9448    amigaos*)
9449      # FIXME: we need at least 68020 code to build shared libraries, but
9450      # adding the `-m68020' flag to GCC prevents building anything better,
9451      # like `-m68040'.
9452      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9453      ;;
9454
9455    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9456      # PIC is the default for these OSes.
9457      ;;
9458
9459    mingw* | pw32* | os2*)
9460      # This hack is so that the source file can tell whether it is being
9461      # built for inclusion in a dll (and should export symbols for example).
9462      lt_prog_compiler_pic='-DDLL_EXPORT'
9463      ;;
9464
9465    darwin* | rhapsody*)
9466      # PIC is the default on this platform
9467      # Common symbols not allowed in MH_DYLIB files
9468      lt_prog_compiler_pic='-fno-common'
9469      ;;
9470
9471    interix3*)
9472      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9473      # Instead, we relocate shared libraries at runtime.
9474      ;;
9475
9476    msdosdjgpp*)
9477      # Just because we use GCC doesn't mean we suddenly get shared libraries
9478      # on systems that don't support them.
9479      lt_prog_compiler_can_build_shared=no
9480      enable_shared=no
9481      ;;
9482
9483    sysv4*MP*)
9484      if test -d /usr/nec; then
9485        lt_prog_compiler_pic=-Kconform_pic
9486      fi
9487      ;;
9488
9489    hpux*)
9490      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9491      # not for PA HP-UX.
9492      case $host_cpu in
9493      hppa*64*|ia64*)
9494        # +Z the default
9495        ;;
9496      *)
9497        lt_prog_compiler_pic='-fPIC'
9498        ;;
9499      esac
9500      ;;
9501
9502    *)
9503      lt_prog_compiler_pic='-fPIC'
9504      ;;
9505    esac
9506  else
9507    # PORTME Check for flag to pass linker flags through the system compiler.
9508    case $host_os in
9509    aix*)
9510      lt_prog_compiler_wl='-Wl,'
9511      if test "$host_cpu" = ia64; then
9512        # AIX 5 now supports IA64 processor
9513        lt_prog_compiler_static='-Bstatic'
9514      else
9515        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9516      fi
9517      ;;
9518      darwin*)
9519        # PIC is the default on this platform
9520        # Common symbols not allowed in MH_DYLIB files
9521       case $cc_basename in
9522         xlc*)
9523         lt_prog_compiler_pic='-qnocommon'
9524         lt_prog_compiler_wl='-Wl,'
9525         ;;
9526       esac
9527       ;;
9528
9529    mingw* | pw32* | os2*)
9530      # This hack is so that the source file can tell whether it is being
9531      # built for inclusion in a dll (and should export symbols for example).
9532      lt_prog_compiler_pic='-DDLL_EXPORT'
9533      ;;
9534
9535    hpux9* | hpux10* | hpux11*)
9536      lt_prog_compiler_wl='-Wl,'
9537      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9538      # not for PA HP-UX.
9539      case $host_cpu in
9540      hppa*64*|ia64*)
9541        # +Z the default
9542        ;;
9543      *)
9544        lt_prog_compiler_pic='+Z'
9545        ;;
9546      esac
9547      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9548      lt_prog_compiler_static='${wl}-a ${wl}archive'
9549      ;;
9550
9551    irix5* | irix6* | nonstopux*)
9552      lt_prog_compiler_wl='-Wl,'
9553      # PIC (with -KPIC) is the default.
9554      lt_prog_compiler_static='-non_shared'
9555      ;;
9556
9557    newsos6)
9558      lt_prog_compiler_pic='-KPIC'
9559      lt_prog_compiler_static='-Bstatic'
9560      ;;
9561
9562    linux*)
9563      case $cc_basename in
9564      icc* | ecc*)
9565        lt_prog_compiler_wl='-Wl,'
9566        lt_prog_compiler_pic='-KPIC'
9567        lt_prog_compiler_static='-static'
9568        ;;
9569      pgcc* | pgf77* | pgf90* | pgf95*)
9570        # Portland Group compilers (*not* the Pentium gcc compiler,
9571        # which looks to be a dead project)
9572        lt_prog_compiler_wl='-Wl,'
9573        lt_prog_compiler_pic='-fpic'
9574        lt_prog_compiler_static='-Bstatic'
9575        ;;
9576      ccc*)
9577        lt_prog_compiler_wl='-Wl,'
9578        # All Alpha code is PIC.
9579        lt_prog_compiler_static='-non_shared'
9580        ;;
9581      esac
9582      ;;
9583
9584    osf3* | osf4* | osf5*)
9585      lt_prog_compiler_wl='-Wl,'
9586      # All OSF/1 code is PIC.
9587      lt_prog_compiler_static='-non_shared'
9588      ;;
9589
9590    solaris*)
9591      lt_prog_compiler_pic='-KPIC'
9592      lt_prog_compiler_static='-Bstatic'
9593      case $cc_basename in
9594      f77* | f90* | f95*)
9595        lt_prog_compiler_wl='-Qoption ld ';;
9596      *)
9597        lt_prog_compiler_wl='-Wl,';;
9598      esac
9599      ;;
9600
9601    sunos4*)
9602      lt_prog_compiler_wl='-Qoption ld '
9603      lt_prog_compiler_pic='-PIC'
9604      lt_prog_compiler_static='-Bstatic'
9605      ;;
9606
9607    sysv4 | sysv4.2uw2* | sysv4.3*)
9608      lt_prog_compiler_wl='-Wl,'
9609      lt_prog_compiler_pic='-KPIC'
9610      lt_prog_compiler_static='-Bstatic'
9611      ;;
9612
9613    sysv4*MP*)
9614      if test -d /usr/nec ;then
9615        lt_prog_compiler_pic='-Kconform_pic'
9616        lt_prog_compiler_static='-Bstatic'
9617      fi
9618      ;;
9619
9620    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9621      lt_prog_compiler_wl='-Wl,'
9622      lt_prog_compiler_pic='-KPIC'
9623      lt_prog_compiler_static='-Bstatic'
9624      ;;
9625
9626    unicos*)
9627      lt_prog_compiler_wl='-Wl,'
9628      lt_prog_compiler_can_build_shared=no
9629      ;;
9630
9631    uts4*)
9632      lt_prog_compiler_pic='-pic'
9633      lt_prog_compiler_static='-Bstatic'
9634      ;;
9635
9636    *)
9637      lt_prog_compiler_can_build_shared=no
9638      ;;
9639    esac
9640  fi
9641
9642echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9643echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9644
9645#
9646# Check to make sure the PIC flag actually works.
9647#
9648if test -n "$lt_prog_compiler_pic"; then
9649
9650echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9651echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9652if test "${lt_prog_compiler_pic_works+set}" = set; then
9653  echo $ECHO_N "(cached) $ECHO_C" >&6
9654else
9655  lt_prog_compiler_pic_works=no
9656  ac_outfile=conftest.$ac_objext
9657   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9658   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9659   # Insert the option either (1) after the last *FLAGS variable, or
9660   # (2) before a word containing "conftest.", or (3) at the end.
9661   # Note that $ac_compile itself does not contain backslashes and begins
9662   # with a dollar sign (not a hyphen), so the echo should work correctly.
9663   # The option is referenced via a variable to avoid confusing sed.
9664   lt_compile=`echo "$ac_compile" | $SED \
9665   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9666   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9667   -e 's:$: $lt_compiler_flag:'`
9668   (eval echo "\"\$as_me:9668: $lt_compile\"" >&5)
9669   (eval "$lt_compile" 2>conftest.err)
9670   ac_status=$?
9671   cat conftest.err >&5
9672   echo "$as_me:9672: \$? = $ac_status" >&5
9673   if (exit $ac_status) && test -s "$ac_outfile"; then
9674     # The compiler can only warn and ignore the option if not recognized
9675     # So say no if there are warnings other than the usual output.
9676     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9677     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9678     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9679       lt_prog_compiler_pic_works=yes
9680     fi
9681   fi
9682   $rm conftest*
9683
9684fi
9685echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9686echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9687
9688if test x"$lt_prog_compiler_pic_works" = xyes; then
9689    case $lt_prog_compiler_pic in
9690     "" | " "*) ;;
9691     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9692     esac
9693else
9694    lt_prog_compiler_pic=
9695     lt_prog_compiler_can_build_shared=no
9696fi
9697
9698fi
9699case $host_os in
9700  # For platforms which do not support PIC, -DPIC is meaningless:
9701  *djgpp*)
9702    lt_prog_compiler_pic=
9703    ;;
9704  *)
9705    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9706    ;;
9707esac
9708
9709#
9710# Check to make sure the static flag actually works.
9711#
9712wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9713echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9714echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9715if test "${lt_prog_compiler_static_works+set}" = set; then
9716  echo $ECHO_N "(cached) $ECHO_C" >&6
9717else
9718  lt_prog_compiler_static_works=no
9719   save_LDFLAGS="$LDFLAGS"
9720   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9721   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9722   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9723     # The linker can only warn and ignore the option if not recognized
9724     # So say no if there are warnings
9725     if test -s conftest.err; then
9726       # Append any errors to the config.log.
9727       cat conftest.err 1>&5
9728       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9729       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9730       if diff conftest.exp conftest.er2 >/dev/null; then
9731         lt_prog_compiler_static_works=yes
9732       fi
9733     else
9734       lt_prog_compiler_static_works=yes
9735     fi
9736   fi
9737   $rm conftest*
9738   LDFLAGS="$save_LDFLAGS"
9739
9740fi
9741echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9742echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9743
9744if test x"$lt_prog_compiler_static_works" = xyes; then
9745    :
9746else
9747    lt_prog_compiler_static=
9748fi
9749
9750
9751echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9752echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9753if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9754  echo $ECHO_N "(cached) $ECHO_C" >&6
9755else
9756  lt_cv_prog_compiler_c_o=no
9757   $rm -r conftest 2>/dev/null
9758   mkdir conftest
9759   cd conftest
9760   mkdir out
9761   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9762
9763   lt_compiler_flag="-o out/conftest2.$ac_objext"
9764   # Insert the option either (1) after the last *FLAGS variable, or
9765   # (2) before a word containing "conftest.", or (3) at the end.
9766   # Note that $ac_compile itself does not contain backslashes and begins
9767   # with a dollar sign (not a hyphen), so the echo should work correctly.
9768   lt_compile=`echo "$ac_compile" | $SED \
9769   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9770   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9771   -e 's:$: $lt_compiler_flag:'`
9772   (eval echo "\"\$as_me:9772: $lt_compile\"" >&5)
9773   (eval "$lt_compile" 2>out/conftest.err)
9774   ac_status=$?
9775   cat out/conftest.err >&5
9776   echo "$as_me:9776: \$? = $ac_status" >&5
9777   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9778   then
9779     # The compiler can only warn and ignore the option if not recognized
9780     # So say no if there are warnings
9781     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9782     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9783     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9784       lt_cv_prog_compiler_c_o=yes
9785     fi
9786   fi
9787   chmod u+w . 2>&5
9788   $rm conftest*
9789   # SGI C++ compiler will create directory out/ii_files/ for
9790   # template instantiation
9791   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9792   $rm out/* && rmdir out
9793   cd ..
9794   rmdir conftest
9795   $rm conftest*
9796
9797fi
9798echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9799echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9800
9801
9802hard_links="nottested"
9803if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9804  # do not overwrite the value of need_locks provided by the user
9805  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9806echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9807  hard_links=yes
9808  $rm conftest*
9809  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9810  touch conftest.a
9811  ln conftest.a conftest.b 2>&5 || hard_links=no
9812  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9813  echo "$as_me:$LINENO: result: $hard_links" >&5
9814echo "${ECHO_T}$hard_links" >&6
9815  if test "$hard_links" = no; then
9816    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9817echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9818    need_locks=warn
9819  fi
9820else
9821  need_locks=no
9822fi
9823
9824echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9825echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9826
9827  runpath_var=
9828  allow_undefined_flag=
9829  enable_shared_with_static_runtimes=no
9830  archive_cmds=
9831  archive_expsym_cmds=
9832  old_archive_From_new_cmds=
9833  old_archive_from_expsyms_cmds=
9834  export_dynamic_flag_spec=
9835  whole_archive_flag_spec=
9836  thread_safe_flag_spec=
9837  hardcode_libdir_flag_spec=
9838  hardcode_libdir_flag_spec_ld=
9839  hardcode_libdir_separator=
9840  hardcode_direct=no
9841  hardcode_minus_L=no
9842  hardcode_shlibpath_var=unsupported
9843  link_all_deplibs=unknown
9844  hardcode_automatic=no
9845  module_cmds=
9846  module_expsym_cmds=
9847  always_export_symbols=no
9848  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9849  # include_expsyms should be a list of space-separated symbols to be *always*
9850  # included in the symbol list
9851  include_expsyms=
9852  # exclude_expsyms can be an extended regexp of symbols to exclude
9853  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9854  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9855  # as well as any symbol that contains `d'.
9856  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9857  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9858  # platforms (ab)use it in PIC code, but their linkers get confused if
9859  # the symbol is explicitly referenced.  Since portable code cannot
9860  # rely on this symbol name, it's probably fine to never include it in
9861  # preloaded symbol tables.
9862  extract_expsyms_cmds=
9863  # Just being paranoid about ensuring that cc_basename is set.
9864  for cc_temp in $compiler""; do
9865  case $cc_temp in
9866    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9867    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9868    \-*) ;;
9869    *) break;;
9870  esac
9871done
9872cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9873
9874  case $host_os in
9875  cygwin* | mingw* | pw32*)
9876    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9877    # When not using gcc, we currently assume that we are using
9878    # Microsoft Visual C++.
9879    if test "$GCC" != yes; then
9880      with_gnu_ld=no
9881    fi
9882    ;;
9883  interix*)
9884    # we just hope/assume this is gcc and not c89 (= MSVC++)
9885    with_gnu_ld=yes
9886    ;;
9887  openbsd*)
9888    with_gnu_ld=no
9889    ;;
9890  esac
9891
9892  ld_shlibs=yes
9893  if test "$with_gnu_ld" = yes; then
9894    # If archive_cmds runs LD, not CC, wlarc should be empty
9895    wlarc='${wl}'
9896
9897    # Set some defaults for GNU ld with shared library support. These
9898    # are reset later if shared libraries are not supported. Putting them
9899    # here allows them to be overridden if necessary.
9900    runpath_var=LD_RUN_PATH
9901    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9902    export_dynamic_flag_spec='${wl}--export-dynamic'
9903    # ancient GNU ld didn't support --whole-archive et. al.
9904    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9905        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9906      else
9907        whole_archive_flag_spec=
9908    fi
9909    supports_anon_versioning=no
9910    case `$LD -v 2>/dev/null` in
9911      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9912      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9913      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9914      *\ 2.11.*) ;; # other 2.11 versions
9915      *) supports_anon_versioning=yes ;;
9916    esac
9917
9918    # See if GNU ld supports shared libraries.
9919    case $host_os in
9920    aix3* | aix4* | aix5*)
9921      # On AIX/PPC, the GNU linker is very broken
9922      if test "$host_cpu" != ia64; then
9923        ld_shlibs=no
9924        cat <<EOF 1>&2
9925
9926*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9927*** to be unable to reliably create shared libraries on AIX.
9928*** Therefore, libtool is disabling shared libraries support.  If you
9929*** really care for shared libraries, you may want to modify your PATH
9930*** so that a non-GNU linker is found, and then restart.
9931
9932EOF
9933      fi
9934      ;;
9935
9936    amigaos*)
9937      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)'
9938      hardcode_libdir_flag_spec='-L$libdir'
9939      hardcode_minus_L=yes
9940
9941      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9942      # that the semantics of dynamic libraries on AmigaOS, at least up
9943      # to version 4, is to share data among multiple programs linked
9944      # with the same dynamic library.  Since this doesn't match the
9945      # behavior of shared libraries on other platforms, we can't use
9946      # them.
9947      ld_shlibs=no
9948      ;;
9949
9950    beos*)
9951      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9952        allow_undefined_flag=unsupported
9953        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9954        # support --undefined.  This deserves some investigation.  FIXME
9955        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956      else
9957        ld_shlibs=no
9958      fi
9959      ;;
9960
9961    cygwin* | mingw* | pw32*)
9962      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9963      # as there is no search path for DLLs.
9964      hardcode_libdir_flag_spec='-L$libdir'
9965      allow_undefined_flag=unsupported
9966      always_export_symbols=no
9967      enable_shared_with_static_runtimes=yes
9968      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9969
9970      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9971        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9972        # If the export-symbols file already is a .def file (1st line
9973        # is EXPORTS), use it as is; otherwise, prepend...
9974        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9975          cp $export_symbols $output_objdir/$soname.def;
9976        else
9977          echo EXPORTS > $output_objdir/$soname.def;
9978          cat $export_symbols >> $output_objdir/$soname.def;
9979        fi~
9980        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9981      else
9982        ld_shlibs=no
9983      fi
9984      ;;
9985
9986    interix3*)
9987      hardcode_direct=no
9988      hardcode_shlibpath_var=no
9989      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9990      export_dynamic_flag_spec='${wl}-E'
9991      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9992      # Instead, shared libraries are loaded at an image base (0x10000000 by
9993      # default) and relocated if they conflict, which is a slow very memory
9994      # consuming and fragmenting process.  To avoid this, we pick a random,
9995      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9996      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9997      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9998      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'
9999      ;;
10000
10001    linux*)
10002      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10003        tmp_addflag=
10004        case $cc_basename,$host_cpu in
10005        pgcc*)                          # Portland Group C compiler
10006          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'
10007          tmp_addflag=' $pic_flag'
10008          ;;
10009        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10010          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'
10011          tmp_addflag=' $pic_flag -Mnomain' ;;
10012        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10013          tmp_addflag=' -i_dynamic' ;;
10014        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10015          tmp_addflag=' -i_dynamic -nofor_main' ;;
10016        ifc* | ifort*)                  # Intel Fortran compiler
10017          tmp_addflag=' -nofor_main' ;;
10018        esac
10019        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020
10021        if test $supports_anon_versioning = yes; then
10022          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10023  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10024  $echo "local: *; };" >> $output_objdir/$libname.ver~
10025          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10026        fi
10027      else
10028        ld_shlibs=no
10029      fi
10030      ;;
10031
10032    netbsd*)
10033      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10034        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10035        wlarc=
10036      else
10037        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10038        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10039      fi
10040      ;;
10041
10042    solaris*)
10043      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10044        ld_shlibs=no
10045        cat <<EOF 1>&2
10046
10047*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10048*** create shared libraries on Solaris systems.  Therefore, libtool
10049*** is disabling shared libraries support.  We urge you to upgrade GNU
10050*** binutils to release 2.9.1 or newer.  Another option is to modify
10051*** your PATH or compiler configuration so that the native linker is
10052*** used, and then restart.
10053
10054EOF
10055      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10056        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10058      else
10059        ld_shlibs=no
10060      fi
10061      ;;
10062
10063    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10064      case `$LD -v 2>&1` in
10065        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10066        ld_shlibs=no
10067        cat <<_LT_EOF 1>&2
10068
10069*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10070*** reliably create shared libraries on SCO systems.  Therefore, libtool
10071*** is disabling shared libraries support.  We urge you to upgrade GNU
10072*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10073*** your PATH or compiler configuration so that the native linker is
10074*** used, and then restart.
10075
10076_LT_EOF
10077        ;;
10078        *)
10079          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10080            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10081            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10082            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10083          else
10084            ld_shlibs=no
10085          fi
10086        ;;
10087      esac
10088      ;;
10089
10090    sunos4*)
10091      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10092      wlarc=
10093      hardcode_direct=yes
10094      hardcode_shlibpath_var=no
10095      ;;
10096
10097    *)
10098      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10099        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10100        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10101      else
10102        ld_shlibs=no
10103      fi
10104      ;;
10105    esac
10106
10107    if test "$ld_shlibs" = no; then
10108      runpath_var=
10109      hardcode_libdir_flag_spec=
10110      export_dynamic_flag_spec=
10111      whole_archive_flag_spec=
10112    fi
10113  else
10114    # PORTME fill in a description of your system's linker (not GNU ld)
10115    case $host_os in
10116    aix3*)
10117      allow_undefined_flag=unsupported
10118      always_export_symbols=yes
10119      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'
10120      # Note: this linker hardcodes the directories in LIBPATH if there
10121      # are no directories specified by -L.
10122      hardcode_minus_L=yes
10123      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10124        # Neither direct hardcoding nor static linking is supported with a
10125        # broken collect2.
10126        hardcode_direct=unsupported
10127      fi
10128      ;;
10129
10130    aix4* | aix5*)
10131      if test "$host_cpu" = ia64; then
10132        # On IA64, the linker does run time linking by default, so we don't
10133        # have to do anything special.
10134        aix_use_runtimelinking=no
10135        exp_sym_flag='-Bexport'
10136        no_entry_flag=""
10137      else
10138        # If we're using GNU nm, then we don't want the "-C" option.
10139        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10140        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10141          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'
10142        else
10143          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'
10144        fi
10145        aix_use_runtimelinking=no
10146
10147        # Test if we are trying to use run time linking or normal
10148        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10149        # need to do runtime linking.
10150        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10151          for ld_flag in $LDFLAGS; do
10152          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10153            aix_use_runtimelinking=yes
10154            break
10155          fi
10156          done
10157          ;;
10158        esac
10159
10160        exp_sym_flag='-bexport'
10161        no_entry_flag='-bnoentry'
10162      fi
10163
10164      # When large executables or shared objects are built, AIX ld can
10165      # have problems creating the table of contents.  If linking a library
10166      # or program results in "error TOC overflow" add -mminimal-toc to
10167      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10168      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10169
10170      archive_cmds=''
10171      hardcode_direct=yes
10172      hardcode_libdir_separator=':'
10173      link_all_deplibs=yes
10174
10175      if test "$GCC" = yes; then
10176        case $host_os in aix4.[012]|aix4.[012].*)
10177        # We only want to do this on AIX 4.2 and lower, the check
10178        # below for broken collect2 doesn't work under 4.3+
10179          collect2name=`${CC} -print-prog-name=collect2`
10180          if test -f "$collect2name" && \
10181           strings "$collect2name" | grep resolve_lib_name >/dev/null
10182          then
10183          # We have reworked collect2
10184          hardcode_direct=yes
10185          else
10186          # We have old collect2
10187          hardcode_direct=unsupported
10188          # It fails to find uninstalled libraries when the uninstalled
10189          # path is not listed in the libpath.  Setting hardcode_minus_L
10190          # to unsupported forces relinking
10191          hardcode_minus_L=yes
10192          hardcode_libdir_flag_spec='-L$libdir'
10193          hardcode_libdir_separator=
10194          fi
10195          ;;
10196        esac
10197        shared_flag='-shared'
10198        if test "$aix_use_runtimelinking" = yes; then
10199          shared_flag="$shared_flag "'${wl}-G'
10200        fi
10201      else
10202        # not using gcc
10203        if test "$host_cpu" = ia64; then
10204        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10205        # chokes on -Wl,-G. The following line is correct:
10206          shared_flag='-G'
10207        else
10208          if test "$aix_use_runtimelinking" = yes; then
10209            shared_flag='${wl}-G'
10210          else
10211            shared_flag='${wl}-bM:SRE'
10212          fi
10213        fi
10214      fi
10215
10216      # It seems that -bexpall does not export symbols beginning with
10217      # underscore (_), so it is better to generate a list of symbols to export.
10218      always_export_symbols=yes
10219      if test "$aix_use_runtimelinking" = yes; then
10220        # Warning - without using the other runtime loading flags (-brtl),
10221        # -berok will link without error, but may produce a broken library.
10222        allow_undefined_flag='-berok'
10223       # Determine the default libpath from the value encoded in an empty executable.
10224       cat >conftest.$ac_ext <<_ACEOF
10225/* confdefs.h.  */
10226_ACEOF
10227cat confdefs.h >>conftest.$ac_ext
10228cat >>conftest.$ac_ext <<_ACEOF
10229/* end confdefs.h.  */
10230
10231#ifdef F77_DUMMY_MAIN
10232
10233#  ifdef __cplusplus
10234     extern "C"
10235#  endif
10236   int F77_DUMMY_MAIN() { return 1; }
10237
10238#endif
10239int
10240main ()
10241{
10242
10243  ;
10244  return 0;
10245}
10246_ACEOF
10247rm -f conftest.$ac_objext conftest$ac_exeext
10248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249  (eval $ac_link) 2>conftest.er1
10250  ac_status=$?
10251  grep -v '^ *+' conftest.er1 >conftest.err
10252  rm -f conftest.er1
10253  cat conftest.err >&5
10254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255  (exit $ac_status); } &&
10256         { ac_try='test -z "$ac_c_werror_flag"
10257                         || test ! -s conftest.err'
10258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259  (eval $ac_try) 2>&5
10260  ac_status=$?
10261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); }; } &&
10263         { ac_try='test -s conftest$ac_exeext'
10264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265  (eval $ac_try) 2>&5
10266  ac_status=$?
10267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268  (exit $ac_status); }; }; then
10269
10270aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10271}'`
10272# Check for a 64-bit object if we didn't find anything.
10273if 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; }
10274}'`; fi
10275else
10276  echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
10279fi
10280rm -f conftest.err conftest.$ac_objext \
10281      conftest$ac_exeext conftest.$ac_ext
10282if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10283
10284       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10285        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"
10286       else
10287        if test "$host_cpu" = ia64; then
10288          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10289          allow_undefined_flag="-z nodefs"
10290          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"
10291        else
10292         # Determine the default libpath from the value encoded in an empty executable.
10293         cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h.  */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h.  */
10299
10300#ifdef F77_DUMMY_MAIN
10301
10302#  ifdef __cplusplus
10303     extern "C"
10304#  endif
10305   int F77_DUMMY_MAIN() { return 1; }
10306
10307#endif
10308int
10309main ()
10310{
10311
10312  ;
10313  return 0;
10314}
10315_ACEOF
10316rm -f conftest.$ac_objext conftest$ac_exeext
10317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318  (eval $ac_link) 2>conftest.er1
10319  ac_status=$?
10320  grep -v '^ *+' conftest.er1 >conftest.err
10321  rm -f conftest.er1
10322  cat conftest.err >&5
10323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324  (exit $ac_status); } &&
10325         { ac_try='test -z "$ac_c_werror_flag"
10326                         || test ! -s conftest.err'
10327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328  (eval $ac_try) 2>&5
10329  ac_status=$?
10330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331  (exit $ac_status); }; } &&
10332         { ac_try='test -s conftest$ac_exeext'
10333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334  (eval $ac_try) 2>&5
10335  ac_status=$?
10336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337  (exit $ac_status); }; }; then
10338
10339aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10340}'`
10341# Check for a 64-bit object if we didn't find anything.
10342if 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; }
10343}'`; fi
10344else
10345  echo "$as_me: failed program was:" >&5
10346sed 's/^/| /' conftest.$ac_ext >&5
10347
10348fi
10349rm -f conftest.err conftest.$ac_objext \
10350      conftest$ac_exeext conftest.$ac_ext
10351if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10352
10353         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10354          # Warning - without using the other run time loading flags,
10355          # -berok will link without error, but may produce a broken library.
10356          no_undefined_flag=' ${wl}-bernotok'
10357          allow_undefined_flag=' ${wl}-berok'
10358          # Exported symbols can be pulled into shared objects from archives
10359          whole_archive_flag_spec='$convenience'
10360          archive_cmds_need_lc=yes
10361          # This is similar to how AIX traditionally builds its shared libraries.
10362          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'
10363        fi
10364      fi
10365      ;;
10366
10367    amigaos*)
10368      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)'
10369      hardcode_libdir_flag_spec='-L$libdir'
10370      hardcode_minus_L=yes
10371      # see comment about different semantics on the GNU ld section
10372      ld_shlibs=no
10373      ;;
10374
10375    bsdi[45]*)
10376      export_dynamic_flag_spec=-rdynamic
10377      ;;
10378
10379    cygwin* | mingw* | pw32*)
10380      # When not using gcc, we currently assume that we are using
10381      # Microsoft Visual C++.
10382      # hardcode_libdir_flag_spec is actually meaningless, as there is
10383      # no search path for DLLs.
10384      hardcode_libdir_flag_spec=' '
10385      allow_undefined_flag=unsupported
10386      # Tell ltmain to make .lib files, not .a files.
10387      libext=lib
10388      # Tell ltmain to make .dll files, not .so files.
10389      shrext_cmds=".dll"
10390      # FIXME: Setting linknames here is a bad hack.
10391      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10392      # The linker will automatically build a .lib file if we build a DLL.
10393      old_archive_From_new_cmds='true'
10394      # FIXME: Should let the user specify the lib program.
10395      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10396      fix_srcfile_path='`cygpath -w "$srcfile"`'
10397      enable_shared_with_static_runtimes=yes
10398      ;;
10399
10400    darwin* | rhapsody*)
10401      case $host_os in
10402        rhapsody* | darwin1.[012])
10403         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10404         ;;
10405       *) # Darwin 1.3 on
10406         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10407           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10408         else
10409           case ${MACOSX_DEPLOYMENT_TARGET} in
10410             10.[012])
10411               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10412               ;;
10413             10.*)
10414               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10415               ;;
10416           esac
10417         fi
10418         ;;
10419      esac
10420      archive_cmds_need_lc=no
10421      hardcode_direct=no
10422      hardcode_automatic=yes
10423      hardcode_shlibpath_var=unsupported
10424      whole_archive_flag_spec=''
10425      link_all_deplibs=yes
10426    if test "$GCC" = yes ; then
10427        output_verbose_link_cmd='echo'
10428        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10429      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10430      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10431      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}'
10432      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}'
10433    else
10434      case $cc_basename in
10435        xlc*)
10436         output_verbose_link_cmd='echo'
10437         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10438         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10439          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10440         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}'
10441          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}'
10442          ;;
10443       *)
10444         ld_shlibs=no
10445          ;;
10446      esac
10447    fi
10448      ;;
10449
10450    dgux*)
10451      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452      hardcode_libdir_flag_spec='-L$libdir'
10453      hardcode_shlibpath_var=no
10454      ;;
10455
10456    freebsd1*)
10457      ld_shlibs=no
10458      ;;
10459
10460    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10461    # support.  Future versions do this automatically, but an explicit c++rt0.o
10462    # does not break anything, and helps significantly (at the cost of a little
10463    # extra space).
10464    freebsd2.2*)
10465      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10466      hardcode_libdir_flag_spec='-R$libdir'
10467      hardcode_direct=yes
10468      hardcode_shlibpath_var=no
10469      ;;
10470
10471    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10472    freebsd2*)
10473      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10474      hardcode_direct=yes
10475      hardcode_minus_L=yes
10476      hardcode_shlibpath_var=no
10477      ;;
10478
10479    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10480    freebsd* | kfreebsd*-gnu | dragonfly*)
10481      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10482      hardcode_libdir_flag_spec='-R$libdir'
10483      hardcode_direct=yes
10484      hardcode_shlibpath_var=no
10485      ;;
10486
10487    hpux9*)
10488      if test "$GCC" = yes; then
10489        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'
10490      else
10491        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'
10492      fi
10493      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10494      hardcode_libdir_separator=:
10495      hardcode_direct=yes
10496
10497      # hardcode_minus_L: Not really in the search PATH,
10498      # but as the default location of the library.
10499      hardcode_minus_L=yes
10500      export_dynamic_flag_spec='${wl}-E'
10501      ;;
10502
10503    hpux10*)
10504      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10505        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10506      else
10507        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10508      fi
10509      if test "$with_gnu_ld" = no; then
10510        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10511        hardcode_libdir_separator=:
10512
10513        hardcode_direct=yes
10514        export_dynamic_flag_spec='${wl}-E'
10515
10516        # hardcode_minus_L: Not really in the search PATH,
10517        # but as the default location of the library.
10518        hardcode_minus_L=yes
10519      fi
10520      ;;
10521
10522    hpux11*)
10523      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10524        case $host_cpu in
10525        hppa*64*)
10526          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10527          ;;
10528        ia64*)
10529          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10530          ;;
10531        *)
10532          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10533          ;;
10534        esac
10535      else
10536        case $host_cpu in
10537        hppa*64*)
10538          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10539          ;;
10540        ia64*)
10541          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10542          ;;
10543        *)
10544          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10545          ;;
10546        esac
10547      fi
10548      if test "$with_gnu_ld" = no; then
10549        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10550        hardcode_libdir_separator=:
10551
10552        case $host_cpu in
10553        hppa*64*|ia64*)
10554          hardcode_libdir_flag_spec_ld='+b $libdir'
10555          hardcode_direct=no
10556          hardcode_shlibpath_var=no
10557          ;;
10558        *)
10559          hardcode_direct=yes
10560          export_dynamic_flag_spec='${wl}-E'
10561
10562          # hardcode_minus_L: Not really in the search PATH,
10563          # but as the default location of the library.
10564          hardcode_minus_L=yes
10565          ;;
10566        esac
10567      fi
10568      ;;
10569
10570    irix5* | irix6* | nonstopux*)
10571      if test "$GCC" = yes; then
10572        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'
10573      else
10574        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'
10575        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10576      fi
10577      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10578      hardcode_libdir_separator=:
10579      link_all_deplibs=yes
10580      ;;
10581
10582    netbsd*)
10583      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10584        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10585      else
10586        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10587      fi
10588      hardcode_libdir_flag_spec='-R$libdir'
10589      hardcode_direct=yes
10590      hardcode_shlibpath_var=no
10591      ;;
10592
10593    newsos6)
10594      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10595      hardcode_direct=yes
10596      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10597      hardcode_libdir_separator=:
10598      hardcode_shlibpath_var=no
10599      ;;
10600
10601    openbsd*)
10602      hardcode_direct=yes
10603      hardcode_shlibpath_var=no
10604      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10605        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10606        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10607        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10608        export_dynamic_flag_spec='${wl}-E'
10609      else
10610       case $host_os in
10611         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10612           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10613           hardcode_libdir_flag_spec='-R$libdir'
10614           ;;
10615         *)
10616           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10617           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10618           ;;
10619       esac
10620      fi
10621      ;;
10622
10623    os2*)
10624      hardcode_libdir_flag_spec='-L$libdir'
10625      hardcode_minus_L=yes
10626      allow_undefined_flag=unsupported
10627      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'
10628      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10629      ;;
10630
10631    osf3*)
10632      if test "$GCC" = yes; then
10633        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10634        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'
10635      else
10636        allow_undefined_flag=' -expect_unresolved \*'
10637        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'
10638      fi
10639      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10640      hardcode_libdir_separator=:
10641      ;;
10642
10643    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10644      if test "$GCC" = yes; then
10645        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10646        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'
10647        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10648      else
10649        allow_undefined_flag=' -expect_unresolved \*'
10650        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'
10651        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10652        $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'
10653
10654        # Both c and cxx compiler support -rpath directly
10655        hardcode_libdir_flag_spec='-rpath $libdir'
10656      fi
10657      hardcode_libdir_separator=:
10658      ;;
10659
10660    solaris*)
10661      no_undefined_flag=' -z text'
10662      if test "$GCC" = yes; then
10663        wlarc='${wl}'
10664        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10665        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10666          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10667      else
10668        wlarc=''
10669        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10670        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10671        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10672      fi
10673      hardcode_libdir_flag_spec='-R$libdir'
10674      hardcode_shlibpath_var=no
10675      case $host_os in
10676      solaris2.[0-5] | solaris2.[0-5].*) ;;
10677      *)
10678        # The compiler driver will combine linker options so we
10679        # cannot just pass the convience library names through
10680        # without $wl, iff we do not link with $LD.
10681        # Luckily, gcc supports the same syntax we need for Sun Studio.
10682        # Supported since Solaris 2.6 (maybe 2.5.1?)
10683        case $wlarc in
10684        '')
10685          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10686        *)
10687          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' ;;
10688        esac ;;
10689      esac
10690      link_all_deplibs=yes
10691      ;;
10692
10693    sunos4*)
10694      if test "x$host_vendor" = xsequent; then
10695        # Use $CC to link under sequent, because it throws in some extra .o
10696        # files that make .init and .fini sections work.
10697        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10698      else
10699        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10700      fi
10701      hardcode_libdir_flag_spec='-L$libdir'
10702      hardcode_direct=yes
10703      hardcode_minus_L=yes
10704      hardcode_shlibpath_var=no
10705      ;;
10706
10707    sysv4)
10708      case $host_vendor in
10709        sni)
10710          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711          hardcode_direct=yes # is this really true???
10712        ;;
10713        siemens)
10714          ## LD is ld it makes a PLAMLIB
10715          ## CC just makes a GrossModule.
10716          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10717          reload_cmds='$CC -r -o $output$reload_objs'
10718          hardcode_direct=no
10719        ;;
10720        motorola)
10721          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10722          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10723        ;;
10724      esac
10725      runpath_var='LD_RUN_PATH'
10726      hardcode_shlibpath_var=no
10727      ;;
10728
10729    sysv4.3*)
10730      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10731      hardcode_shlibpath_var=no
10732      export_dynamic_flag_spec='-Bexport'
10733      ;;
10734
10735    sysv4*MP*)
10736      if test -d /usr/nec; then
10737        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738        hardcode_shlibpath_var=no
10739        runpath_var=LD_RUN_PATH
10740        hardcode_runpath_var=yes
10741        ld_shlibs=yes
10742      fi
10743      ;;
10744
10745    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10746      no_undefined_flag='${wl}-z,text'
10747      archive_cmds_need_lc=no
10748      hardcode_shlibpath_var=no
10749      runpath_var='LD_RUN_PATH'
10750
10751      if test "$GCC" = yes; then
10752        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10753        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754      else
10755        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10756        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10757      fi
10758      ;;
10759
10760    sysv5* | sco3.2v5* | sco5v6*)
10761      # Note: We can NOT use -z defs as we might desire, because we do not
10762      # link with -lc, and that would cause any symbols used from libc to
10763      # always be unresolved, which means just about no library would
10764      # ever link correctly.  If we're not using GNU ld we use -z text
10765      # though, which does catch some bad symbols but isn't as heavy-handed
10766      # as -z defs.
10767      no_undefined_flag='${wl}-z,text'
10768      allow_undefined_flag='${wl}-z,nodefs'
10769      archive_cmds_need_lc=no
10770      hardcode_shlibpath_var=no
10771      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10772      hardcode_libdir_separator=':'
10773      link_all_deplibs=yes
10774      export_dynamic_flag_spec='${wl}-Bexport'
10775      runpath_var='LD_RUN_PATH'
10776
10777      if test "$GCC" = yes; then
10778        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10779        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10780      else
10781        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10782        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10783      fi
10784      ;;
10785
10786    uts4*)
10787      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10788      hardcode_libdir_flag_spec='-L$libdir'
10789      hardcode_shlibpath_var=no
10790      ;;
10791
10792    *)
10793      ld_shlibs=no
10794      ;;
10795    esac
10796  fi
10797