source: ThirdParty/HSL/stable/1.5/configure @ 3373

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

restoring BuildTools/ThirdParty?/HSL/stable/1.5

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