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

Last change on this file since 3602 was 3602, checked in by stefan, 3 years ago

restoring BuildTools/ThirdParty?/HSL/stable/1.5

  • Property svn:executable set to *
File size: 985.3 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"
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 $build in
3854  *-cygwin* | *-mingw*)
3855    case "$F77" in
3856      ifort* | */ifort* | IFORT* | */IFORT*)
3857        LD=link
3858      ;;
3859    esac
3860  ;;
3861esac
3862
3863ac_ext=c
3864ac_cpp='$CPP $CPPFLAGS'
3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868
3869
3870
3871# Check if pkg-config is available (to setup addlibs file)
3872
3873
3874# Check whether --enable-pkg-config or --disable-pkg-config was given.
3875if test "${enable_pkg_config+set}" = set; then
3876  enableval="$enable_pkg_config"
3877  use_pkgconfig="$enableval"
3878else
3879  if test x$coin_cc_is_cl = xtrue; then
3880     use_pkgconfig=no
3881   else
3882     use_pkgconfig=yes
3883   fi
3884fi;
3885
3886if test $use_pkgconfig = yes ; then
3887  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3888    if test -n "$ac_tool_prefix"; then
3889  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3890set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3891echo "$as_me:$LINENO: checking for $ac_word" >&5
3892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3894  echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896  if test -n "$PKG_CONFIG"; then
3897  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3898else
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902  IFS=$as_save_IFS
3903  test -z "$as_dir" && as_dir=.
3904  for ac_exec_ext in '' $ac_executable_extensions; do
3905  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3907    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908    break 2
3909  fi
3910done
3911done
3912
3913fi
3914fi
3915PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3916if test -n "$PKG_CONFIG"; then
3917  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3918echo "${ECHO_T}$PKG_CONFIG" >&6
3919else
3920  echo "$as_me:$LINENO: result: no" >&5
3921echo "${ECHO_T}no" >&6
3922fi
3923
3924fi
3925if test -z "$ac_cv_prog_PKG_CONFIG"; then
3926  ac_ct_PKG_CONFIG=$PKG_CONFIG
3927  # Extract the first word of "pkg-config", so it can be a program name with args.
3928set dummy pkg-config; ac_word=$2
3929echo "$as_me:$LINENO: checking for $ac_word" >&5
3930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3931if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3932  echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934  if test -n "$ac_ct_PKG_CONFIG"; then
3935  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940  IFS=$as_save_IFS
3941  test -z "$as_dir" && as_dir=.
3942  for ac_exec_ext in '' $ac_executable_extensions; do
3943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946    break 2
3947  fi
3948done
3949done
3950
3951fi
3952fi
3953ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3954if test -n "$ac_ct_PKG_CONFIG"; then
3955  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3956echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3957else
3958  echo "$as_me:$LINENO: result: no" >&5
3959echo "${ECHO_T}no" >&6
3960fi
3961
3962  PKG_CONFIG=$ac_ct_PKG_CONFIG
3963else
3964  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3965fi
3966
3967  fi
3968  if test -n "$PKG_CONFIG"; then
3969    _pkg_min_version=0.16.0
3970    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3971echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3972    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3973      echo "$as_me:$LINENO: result: yes" >&5
3974echo "${ECHO_T}yes" >&6
3975    else
3976      echo "$as_me:$LINENO: result: no" >&5
3977echo "${ECHO_T}no" >&6
3978      PKG_CONFIG=""
3979    fi
3980  fi
3981
3982  # check if pkg-config supports the short-errors flag
3983  if test -n "$PKG_CONFIG" && \
3984    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3985    pkg_short_errors=" --short-errors "
3986  else
3987    pkg_short_errors=""
3988  fi
3989fi
3990
3991
3992
3993if test -n "$PKG_CONFIG"; then
3994  COIN_HAS_PKGCONFIG_TRUE=
3995  COIN_HAS_PKGCONFIG_FALSE='#'
3996else
3997  COIN_HAS_PKGCONFIG_TRUE='#'
3998  COIN_HAS_PKGCONFIG_FALSE=
3999fi
4000
4001
4002
4003# assemble pkg-config search path for installed projects
4004COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4005
4006# 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
4007# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4008# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4009if test "x${prefix}" = xNONE ; then
4010  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4011else
4012  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4013fi
4014
4015
4016# Check whether --with-coin-instdir or --without-coin-instdir was given.
4017if test "${with_coin_instdir+set}" = set; then
4018  withval="$with_coin_instdir"
4019  if test -d "$withval"; then : ; else
4020     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4021echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4022   { (exit 1); exit 1; }; }
4023   fi
4024   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4025
4026fi;
4027
4028
4029
4030# assemble additional pkg-config search paths for uninstalled projects
4031if test x$coin_projectdir = xyes ; then
4032  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4033  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4034  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4035  # 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)
4036  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4037  if test -f ../coin_subdirs.txt ; then
4038    for i in `cat ../coin_subdirs.txt` ; do
4039      if test -d ../$i ; then
4040        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4041      fi
4042      if test -d ../$i/pkgconfig ; then
4043        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4044      fi
4045    done
4046  fi
4047
4048  if test -f ../../coin_subdirs.txt ; then
4049    for i in `cat ../../coin_subdirs.txt` ; do
4050      if test -d ../../$i ; then
4051        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4052      fi
4053      if test -d ../../$i/pkgconfig ; then
4054        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4055      fi
4056    done
4057  fi
4058
4059
4060fi
4061
4062if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4063  { 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
4064echo "$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;}
4065fi
4066
4067
4068
4069# Get the linker flags (FLIBS) that are required for linking against this blas library
4070
4071# get FLIBS
4072ac_ext=f
4073ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4074ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4076echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4077echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4078if test "${ac_cv_prog_f77_v+set}" = set; then
4079  echo $ECHO_N "(cached) $ECHO_C" >&6
4080else
4081  cat >conftest.$ac_ext <<_ACEOF
4082      program main
4083
4084      end
4085_ACEOF
4086rm -f conftest.$ac_objext
4087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088  (eval $ac_compile) 2>conftest.er1
4089  ac_status=$?
4090  grep -v '^ *+' conftest.er1 >conftest.err
4091  rm -f conftest.er1
4092  cat conftest.err >&5
4093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094  (exit $ac_status); } &&
4095         { ac_try='test -z "$ac_f77_werror_flag"
4096                         || test ! -s conftest.err'
4097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098  (eval $ac_try) 2>&5
4099  ac_status=$?
4100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101  (exit $ac_status); }; } &&
4102         { ac_try='test -s conftest.$ac_objext'
4103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104  (eval $ac_try) 2>&5
4105  ac_status=$?
4106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107  (exit $ac_status); }; }; then
4108  ac_cv_prog_f77_v=
4109# Try some options frequently used verbose output
4110for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4111  cat >conftest.$ac_ext <<_ACEOF
4112      program main
4113
4114      end
4115_ACEOF
4116
4117# Compile and link our simple test program by passing a flag (argument
4118# 1 to this macro) to the Fortran compiler in order to get
4119# "verbose" output that we can then parse for the Fortran linker
4120# flags.
4121ac_save_FFLAGS=$FFLAGS
4122FFLAGS="$FFLAGS $ac_verb"
4123(eval echo $as_me:4123: \"$ac_link\") >&5
4124ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4125echo "$ac_f77_v_output" >&5
4126FFLAGS=$ac_save_FFLAGS
4127
4128rm -f conftest*
4129
4130# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4131# /foo, /bar, and /baz are search directories for the Fortran linker.
4132# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4133ac_f77_v_output="`echo $ac_f77_v_output |
4134        grep 'LPATH is:' |
4135        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4136
4137case $ac_f77_v_output in
4138  # If we are using xlf then replace all the commas with spaces.
4139  *xlfentry*)
4140    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4141
4142  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4143  # $LIBS confuse us, and the libraries appear later in the output anyway).
4144  *mGLOB_options_string*)
4145    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4146
4147  # If we are using Cray Fortran then delete quotes.
4148  # Use "\"" instead of '"' for font-lock-mode.
4149  # FIXME: a more general fix for quoted arguments with spaces?
4150  *cft90*)
4151    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4152esac
4153
4154
4155  # look for -l* and *.a constructs in the output
4156  for ac_arg in $ac_f77_v_output; do
4157     case $ac_arg in
4158        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4159          ac_cv_prog_f77_v=$ac_verb
4160          break 2 ;;
4161     esac
4162  done
4163done
4164if test -z "$ac_cv_prog_f77_v"; then
4165   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4166echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4167fi
4168else
4169  echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
4172{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4173echo "$as_me: WARNING: compilation failed" >&2;}
4174fi
4175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176
4177fi
4178echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4179echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4180echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4181echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4182if test "${ac_cv_f77_libs+set}" = set; then
4183  echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185  if test "x$FLIBS" != "x"; then
4186  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4187else
4188
4189cat >conftest.$ac_ext <<_ACEOF
4190      program main
4191
4192      end
4193_ACEOF
4194
4195# Compile and link our simple test program by passing a flag (argument
4196# 1 to this macro) to the Fortran compiler in order to get
4197# "verbose" output that we can then parse for the Fortran linker
4198# flags.
4199ac_save_FFLAGS=$FFLAGS
4200FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4201(eval echo $as_me:4201: \"$ac_link\") >&5
4202ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4203echo "$ac_f77_v_output" >&5
4204FFLAGS=$ac_save_FFLAGS
4205
4206rm -f conftest*
4207
4208# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4209# /foo, /bar, and /baz are search directories for the Fortran linker.
4210# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4211ac_f77_v_output="`echo $ac_f77_v_output |
4212        grep 'LPATH is:' |
4213        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4214
4215case $ac_f77_v_output in
4216  # If we are using xlf then replace all the commas with spaces.
4217  *xlfentry*)
4218    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4219
4220  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4221  # $LIBS confuse us, and the libraries appear later in the output anyway).
4222  *mGLOB_options_string*)
4223    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4224
4225  # If we are using Cray Fortran then delete quotes.
4226  # Use "\"" instead of '"' for font-lock-mode.
4227  # FIXME: a more general fix for quoted arguments with spaces?
4228  *cft90*)
4229    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4230esac
4231
4232
4233
4234ac_cv_f77_libs=
4235
4236# Save positional arguments (if any)
4237ac_save_positional="$@"
4238
4239set X $ac_f77_v_output
4240while test $# != 1; do
4241  shift
4242  ac_arg=$1
4243  case $ac_arg in
4244        [\\/]*.a | ?:[\\/]*.a)
4245            ac_exists=false
4246  for ac_i in $ac_cv_f77_libs; do
4247    if test x"$ac_arg" = x"$ac_i"; then
4248      ac_exists=true
4249      break
4250    fi
4251  done
4252
4253  if test x"$ac_exists" = xtrue; then
4254  :
4255else
4256  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4257fi
4258
4259          ;;
4260        -bI:*)
4261            ac_exists=false
4262  for ac_i in $ac_cv_f77_libs; do
4263    if test x"$ac_arg" = x"$ac_i"; then
4264      ac_exists=true
4265      break
4266    fi
4267  done
4268
4269  if test x"$ac_exists" = xtrue; then
4270  :
4271else
4272  if test "$ac_compiler_gnu" = yes; then
4273  for ac_link_opt in $ac_arg; do
4274    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4275  done
4276else
4277  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4278fi
4279fi
4280
4281          ;;
4282          # Ignore these flags.
4283        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4284          ;;
4285        -lkernel32)
4286          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4287          ;;
4288        -[LRuY])
4289          # These flags, when seen by themselves, take an argument.
4290          # We remove the space between option and argument and re-iterate
4291          # unless we find an empty arg or a new option (starting with -)
4292          case $2 in
4293             "" | -*);;
4294             *)
4295                ac_arg="$ac_arg$2"
4296                shift; shift
4297                set X $ac_arg "$@"
4298                ;;
4299          esac
4300          ;;
4301        -YP,*)
4302          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4303              ac_exists=false
4304  for ac_i in $ac_cv_f77_libs; do
4305    if test x"$ac_j" = x"$ac_i"; then
4306      ac_exists=true
4307      break
4308    fi
4309  done
4310
4311  if test x"$ac_exists" = xtrue; then
4312  :
4313else
4314  ac_arg="$ac_arg $ac_j"
4315                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4316fi
4317
4318          done
4319          ;;
4320        -[lLR]*)
4321            ac_exists=false
4322  for ac_i in $ac_cv_f77_libs; do
4323    if test x"$ac_arg" = x"$ac_i"; then
4324      ac_exists=true
4325      break
4326    fi
4327  done
4328
4329  if test x"$ac_exists" = xtrue; then
4330  :
4331else
4332  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4333fi
4334
4335          ;;
4336          # Ignore everything else.
4337  esac
4338done
4339# restore positional arguments
4340set X $ac_save_positional; shift
4341
4342# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4343# then we insist that the "run path" must be an absolute path (i.e. it
4344# must begin with a "/").
4345case `(uname -sr) 2>/dev/null` in
4346   "SunOS 5"*)
4347      ac_ld_run_path=`echo $ac_f77_v_output |
4348                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4349      test "x$ac_ld_run_path" != x &&
4350        if test "$ac_compiler_gnu" = yes; then
4351  for ac_link_opt in $ac_ld_run_path; do
4352    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4353  done
4354else
4355  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4356fi
4357      ;;
4358esac
4359fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4360
4361fi
4362echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4363echo "${ECHO_T}$ac_cv_f77_libs" >&6
4364FLIBS="$ac_cv_f77_libs"
4365
4366
4367ac_ext=c
4368ac_cpp='$CPP $CPPFLAGS'
4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372
4373orig_FLIBS="$FLIBS"
4374
4375# If FLIBS has been set by the user, we just restore its value here
4376if test x"$save_FLIBS" != x; then
4377  FLIBS="$save_FLIBS"
4378else
4379  # This is to correct a missing exclusion in autoconf 2.59
4380  if test x"$FLIBS" != x; then
4381    my_flibs=
4382    for flag in $FLIBS; do
4383      case $flag in
4384        -lcrt*.o) ;;
4385        -lcygwin) ;;
4386        -lgcc*)   ;;
4387               *) my_flibs="$my_flibs $flag" ;;
4388      esac
4389    done
4390    FLIBS="$my_flibs"
4391  fi
4392
4393  case $build in
4394  # The following is a fix to define FLIBS for ifort on Windows
4395  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4396  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4397  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4398  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4399  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4400     *-cygwin* | *-mingw*)
4401       case "$F77" in
4402#         ifort* | */ifort* | IFORT* | */IFORT*)
4403#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4404#           if "$coin_debug_compile" = true ; then
4405#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4406#           else
4407#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4408#           fi
4409#           ;;
4410         compile_f2c*)
4411           FLIBS=`$F77 -FLIBS` ;;
4412       esac;;
4413     *-hp-*)
4414         FLIBS="$FLIBS -lm";;
4415     *-ibm-*)
4416         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4417     *-linux-*)
4418       case "$F77" in
4419         pgf77* | */pgf77* | pgf90* | */pgf90*)
4420# ask linker to go through the archives multiple times
4421# (the Fortran compiler seems to do that automatically...)
4422           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4423       esac
4424  esac
4425  ac_cv_f77_libs="$FLIBS"
4426fi
4427
4428if test "x$orig_FLIBS" != "x$FLIBS" ; then
4429  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4430echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4431fi
4432
4433ac_ext=f
4434ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4435ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4437
4438echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4439echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4440if test "${ac_cv_f77_dummy_main+set}" = set; then
4441  echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443  ac_f77_dm_save_LIBS=$LIBS
4444 LIBS="$LIBS $FLIBS"
4445 ac_fortran_dm_var=F77_DUMMY_MAIN
4446 ac_ext=c
4447ac_cpp='$CPP $CPPFLAGS'
4448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4450ac_compiler_gnu=$ac_cv_c_compiler_gnu
4451
4452 # First, try linking without a dummy main:
4453 cat >conftest.$ac_ext <<_ACEOF
4454/* confdefs.h.  */
4455_ACEOF
4456cat confdefs.h >>conftest.$ac_ext
4457cat >>conftest.$ac_ext <<_ACEOF
4458/* end confdefs.h.  */
4459
4460#ifdef F77_DUMMY_MAIN
4461
4462#  ifdef __cplusplus
4463     extern "C"
4464#  endif
4465   int F77_DUMMY_MAIN() { return 1; }
4466
4467#endif
4468int
4469main ()
4470{
4471
4472  ;
4473  return 0;
4474}
4475_ACEOF
4476rm -f conftest.$ac_objext conftest$ac_exeext
4477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4478  (eval $ac_link) 2>conftest.er1
4479  ac_status=$?
4480  grep -v '^ *+' conftest.er1 >conftest.err
4481  rm -f conftest.er1
4482  cat conftest.err >&5
4483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484  (exit $ac_status); } &&
4485         { ac_try='test -z "$ac_c_werror_flag"
4486                         || test ! -s conftest.err'
4487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488  (eval $ac_try) 2>&5
4489  ac_status=$?
4490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491  (exit $ac_status); }; } &&
4492         { ac_try='test -s conftest$ac_exeext'
4493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494  (eval $ac_try) 2>&5
4495  ac_status=$?
4496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497  (exit $ac_status); }; }; then
4498  ac_cv_fortran_dummy_main=none
4499else
4500  echo "$as_me: failed program was:" >&5
4501sed 's/^/| /' conftest.$ac_ext >&5
4502
4503ac_cv_fortran_dummy_main=unknown
4504fi
4505rm -f conftest.err conftest.$ac_objext \
4506      conftest$ac_exeext conftest.$ac_ext
4507
4508 if test $ac_cv_fortran_dummy_main = unknown; then
4509   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4510     cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h.  */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h.  */
4516#define $ac_fortran_dm_var $ac_func
4517#ifdef F77_DUMMY_MAIN
4518
4519#  ifdef __cplusplus
4520     extern "C"
4521#  endif
4522   int F77_DUMMY_MAIN() { return 1; }
4523
4524#endif
4525int
4526main ()
4527{
4528
4529  ;
4530  return 0;
4531}
4532_ACEOF
4533rm -f conftest.$ac_objext conftest$ac_exeext
4534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4535  (eval $ac_link) 2>conftest.er1
4536  ac_status=$?
4537  grep -v '^ *+' conftest.er1 >conftest.err
4538  rm -f conftest.er1
4539  cat conftest.err >&5
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); } &&
4542         { ac_try='test -z "$ac_c_werror_flag"
4543                         || test ! -s conftest.err'
4544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545  (eval $ac_try) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; } &&
4549         { ac_try='test -s conftest$ac_exeext'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; }; then
4555  ac_cv_fortran_dummy_main=$ac_func; break
4556else
4557  echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560fi
4561rm -f conftest.err conftest.$ac_objext \
4562      conftest$ac_exeext conftest.$ac_ext
4563   done
4564 fi
4565 ac_ext=f
4566ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4567ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4569 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4570 rm -f conftest*
4571 LIBS=$ac_f77_dm_save_LIBS
4572
4573fi
4574echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4575echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4576F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4577if test "$F77_DUMMY_MAIN" != unknown; then
4578  if test $F77_DUMMY_MAIN != none; then
4579
4580cat >>confdefs.h <<_ACEOF
4581#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4582_ACEOF
4583
4584  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4585
4586cat >>confdefs.h <<\_ACEOF
4587#define FC_DUMMY_MAIN_EQ_F77 1
4588_ACEOF
4589
4590  fi
4591fi
4592else
4593  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4594See \`config.log' for more details." >&5
4595echo "$as_me: error: linking to Fortran libraries from C fails
4596See \`config.log' for more details." >&2;}
4597   { (exit 1); exit 1; }; }
4598fi
4599
4600
4601ac_ext=f
4602ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4603ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4605
4606ac_ext=f
4607ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4608ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4610echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4611echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4612if test "${ac_cv_f77_mangling+set}" = set; then
4613  echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615  cat >conftest.$ac_ext <<_ACEOF
4616      subroutine foobar()
4617      return
4618      end
4619      subroutine foo_bar()
4620      return
4621      end
4622_ACEOF
4623rm -f conftest.$ac_objext
4624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4625  (eval $ac_compile) 2>conftest.er1
4626  ac_status=$?
4627  grep -v '^ *+' conftest.er1 >conftest.err
4628  rm -f conftest.er1
4629  cat conftest.err >&5
4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); } &&
4632         { ac_try='test -z "$ac_f77_werror_flag"
4633                         || test ! -s conftest.err'
4634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635  (eval $ac_try) 2>&5
4636  ac_status=$?
4637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638  (exit $ac_status); }; } &&
4639         { ac_try='test -s conftest.$ac_objext'
4640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641  (eval $ac_try) 2>&5
4642  ac_status=$?
4643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644  (exit $ac_status); }; }; then
4645  mv conftest.$ac_objext cfortran_test.$ac_objext
4646
4647  ac_save_LIBS=$LIBS
4648  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4649
4650  ac_ext=c
4651ac_cpp='$CPP $CPPFLAGS'
4652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655  ac_success=no
4656  for ac_foobar in foobar FOOBAR; do
4657    for ac_underscore in "" "_"; do
4658      ac_func="$ac_foobar$ac_underscore"
4659      cat >conftest.$ac_ext <<_ACEOF
4660/* confdefs.h.  */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h.  */
4665
4666/* Override any gcc2 internal prototype to avoid an error.  */
4667#ifdef __cplusplus
4668extern "C"
4669#endif
4670/* We use char because int might match the return type of a gcc2
4671   builtin and then its argument prototype would still apply.  */
4672char $ac_func ();
4673#ifdef F77_DUMMY_MAIN
4674
4675#  ifdef __cplusplus
4676     extern "C"
4677#  endif
4678   int F77_DUMMY_MAIN() { return 1; }
4679
4680#endif
4681int
4682main ()
4683{
4684$ac_func ();
4685  ;
4686  return 0;
4687}
4688_ACEOF
4689rm -f conftest.$ac_objext conftest$ac_exeext
4690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691  (eval $ac_link) 2>conftest.er1
4692  ac_status=$?
4693  grep -v '^ *+' conftest.er1 >conftest.err
4694  rm -f conftest.er1
4695  cat conftest.err >&5
4696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697  (exit $ac_status); } &&
4698         { ac_try='test -z "$ac_c_werror_flag"
4699                         || test ! -s conftest.err'
4700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701  (eval $ac_try) 2>&5
4702  ac_status=$?
4703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704  (exit $ac_status); }; } &&
4705         { ac_try='test -s conftest$ac_exeext'
4706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707  (eval $ac_try) 2>&5
4708  ac_status=$?
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); }; }; then
4711  ac_success=yes; break 2
4712else
4713  echo "$as_me: failed program was:" >&5
4714sed 's/^/| /' conftest.$ac_ext >&5
4715
4716fi
4717rm -f conftest.err conftest.$ac_objext \
4718      conftest$ac_exeext conftest.$ac_ext
4719    done
4720  done
4721  ac_ext=f
4722ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4723ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4725
4726  if test "$ac_success" = "yes"; then
4727     case $ac_foobar in
4728        foobar)
4729           ac_case=lower
4730           ac_foo_bar=foo_bar
4731           ;;
4732        FOOBAR)
4733           ac_case=upper
4734           ac_foo_bar=FOO_BAR
4735           ;;
4736     esac
4737
4738     ac_ext=c
4739ac_cpp='$CPP $CPPFLAGS'
4740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4742ac_compiler_gnu=$ac_cv_c_compiler_gnu
4743     ac_success_extra=no
4744     for ac_extra in "" "_"; do
4745        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4746        cat >conftest.$ac_ext <<_ACEOF
4747/* confdefs.h.  */
4748_ACEOF
4749cat confdefs.h >>conftest.$ac_ext
4750cat >>conftest.$ac_ext <<_ACEOF
4751/* end confdefs.h.  */
4752
4753/* Override any gcc2 internal prototype to avoid an error.  */
4754#ifdef __cplusplus
4755extern "C"
4756#endif
4757/* We use char because int might match the return type of a gcc2
4758   builtin and then its argument prototype would still apply.  */
4759char $ac_func ();
4760#ifdef F77_DUMMY_MAIN
4761
4762#  ifdef __cplusplus
4763     extern "C"
4764#  endif
4765   int F77_DUMMY_MAIN() { return 1; }
4766
4767#endif
4768int
4769main ()
4770{
4771$ac_func ();
4772  ;
4773  return 0;
4774}
4775_ACEOF
4776rm -f conftest.$ac_objext conftest$ac_exeext
4777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4778  (eval $ac_link) 2>conftest.er1
4779  ac_status=$?
4780  grep -v '^ *+' conftest.er1 >conftest.err
4781  rm -f conftest.er1
4782  cat conftest.err >&5
4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784  (exit $ac_status); } &&
4785         { ac_try='test -z "$ac_c_werror_flag"
4786                         || test ! -s conftest.err'
4787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788  (eval $ac_try) 2>&5
4789  ac_status=$?
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); }; } &&
4792         { ac_try='test -s conftest$ac_exeext'
4793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794  (eval $ac_try) 2>&5
4795  ac_status=$?
4796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797  (exit $ac_status); }; }; then
4798  ac_success_extra=yes; break
4799else
4800  echo "$as_me: failed program was:" >&5
4801sed 's/^/| /' conftest.$ac_ext >&5
4802
4803fi
4804rm -f conftest.err conftest.$ac_objext \
4805      conftest$ac_exeext conftest.$ac_ext
4806     done
4807     ac_ext=f
4808ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4809ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4811
4812     if test "$ac_success_extra" = "yes"; then
4813        ac_cv_f77_mangling="$ac_case case"
4814        if test -z "$ac_underscore"; then
4815           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4816        else
4817           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4818        fi
4819        if test -z "$ac_extra"; then
4820           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4821        else
4822           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4823        fi
4824      else
4825        ac_cv_f77_mangling="unknown"
4826      fi
4827  else
4828     ac_cv_f77_mangling="unknown"
4829  fi
4830
4831  LIBS=$ac_save_LIBS
4832  rm -f cfortran_test* conftest*
4833else
4834  echo "$as_me: failed program was:" >&5
4835sed 's/^/| /' conftest.$ac_ext >&5
4836
4837{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4838See \`config.log' for more details." >&5
4839echo "$as_me: error: cannot compile a simple Fortran program
4840See \`config.log' for more details." >&2;}
4841   { (exit 1); exit 1; }; }
4842fi
4843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844
4845fi
4846echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4847echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4848
4849ac_ext=f
4850ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4851ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4853
4854
4855ac_ext=f
4856ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4857ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4859
4860ac_ext=f
4861ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4862ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4864
4865
4866case $ac_cv_f77_mangling in
4867  "lower case, no underscore, no extra underscore")
4868          cat >>confdefs.h <<\_ACEOF
4869#define F77_FUNC(name,NAME) name
4870_ACEOF
4871
4872          cat >>confdefs.h <<\_ACEOF
4873#define F77_FUNC_(name,NAME) name
4874_ACEOF
4875 ;;
4876  "lower case, no underscore, extra underscore")
4877          cat >>confdefs.h <<\_ACEOF
4878#define F77_FUNC(name,NAME) name
4879_ACEOF
4880
4881          cat >>confdefs.h <<\_ACEOF
4882#define F77_FUNC_(name,NAME) name ## _
4883_ACEOF
4884 ;;
4885  "lower case, underscore, no extra underscore")
4886          cat >>confdefs.h <<\_ACEOF
4887#define F77_FUNC(name,NAME) name ## _
4888_ACEOF
4889
4890          cat >>confdefs.h <<\_ACEOF
4891#define F77_FUNC_(name,NAME) name ## _
4892_ACEOF
4893 ;;
4894  "lower case, underscore, extra underscore")
4895          cat >>confdefs.h <<\_ACEOF
4896#define F77_FUNC(name,NAME) name ## _
4897_ACEOF
4898
4899          cat >>confdefs.h <<\_ACEOF
4900#define F77_FUNC_(name,NAME) name ## __
4901_ACEOF
4902 ;;
4903  "upper case, no underscore, no extra underscore")
4904          cat >>confdefs.h <<\_ACEOF
4905#define F77_FUNC(name,NAME) NAME
4906_ACEOF
4907
4908          cat >>confdefs.h <<\_ACEOF
4909#define F77_FUNC_(name,NAME) NAME
4910_ACEOF
4911 ;;
4912  "upper case, no underscore, extra underscore")
4913          cat >>confdefs.h <<\_ACEOF
4914#define F77_FUNC(name,NAME) NAME
4915_ACEOF
4916
4917          cat >>confdefs.h <<\_ACEOF
4918#define F77_FUNC_(name,NAME) NAME ## _
4919_ACEOF
4920 ;;
4921  "upper case, underscore, no extra underscore")
4922          cat >>confdefs.h <<\_ACEOF
4923#define F77_FUNC(name,NAME) NAME ## _
4924_ACEOF
4925
4926          cat >>confdefs.h <<\_ACEOF
4927#define F77_FUNC_(name,NAME) NAME ## _
4928_ACEOF
4929 ;;
4930  "upper case, underscore, extra underscore")
4931          cat >>confdefs.h <<\_ACEOF
4932#define F77_FUNC(name,NAME) NAME ## _
4933_ACEOF
4934
4935          cat >>confdefs.h <<\_ACEOF
4936#define F77_FUNC_(name,NAME) NAME ## __
4937_ACEOF
4938 ;;
4939  *)
4940          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4941echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4942          ;;
4943esac
4944
4945ac_ext=f
4946ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4947ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4949
4950ac_ext=c
4951ac_cpp='$CPP $CPPFLAGS'
4952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954ac_compiler_gnu=$ac_cv_c_compiler_gnu
4955
4956
4957
4958
4959# Add FLIBS to HSL_PCLIBS, so that they get into the .pc files
4960HSL_PCLIBS="$HSL_PCLIBS $FLIBS"
4961
4962# Need egrep later on
4963echo "$as_me:$LINENO: checking for egrep" >&5
4964echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4965if test "${ac_cv_prog_egrep+set}" = set; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4969    then ac_cv_prog_egrep='grep -E'
4970    else ac_cv_prog_egrep='egrep'
4971    fi
4972fi
4973echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4974echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4975 EGREP=$ac_cv_prog_egrep
4976
4977
4978
4979# Also set up the FC compiler variable, required to compile .f90
4980# files.  We use the same compile and flags as F77 and FFLAGS, unless
4981# the user has set FC and FCFLAGS explicitly.
4982if test "$FC" = ""; then
4983  FC="$F77"
4984fi
4985if test "$FCFLAGS" = ""; then
4986  FCFLAGS="$FFLAGS"
4987fi
4988ac_ext=${FC_SRCEXT-f}
4989ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4990ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4991ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4992if test -n "$ac_tool_prefix"; then
4993  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
4994  do
4995    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4996set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4997echo "$as_me:$LINENO: checking for $ac_word" >&5
4998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4999if test "${ac_cv_prog_FC+set}" = set; then
5000  echo $ECHO_N "(cached) $ECHO_C" >&6
5001else
5002  if test -n "$FC"; then
5003  ac_cv_prog_FC="$FC" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008  IFS=$as_save_IFS
5009  test -z "$as_dir" && as_dir=.
5010  for ac_exec_ext in '' $ac_executable_extensions; do
5011  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014    break 2
5015  fi
5016done
5017done
5018
5019fi
5020fi
5021FC=$ac_cv_prog_FC
5022if test -n "$FC"; then
5023  echo "$as_me:$LINENO: result: $FC" >&5
5024echo "${ECHO_T}$FC" >&6
5025else
5026  echo "$as_me:$LINENO: result: no" >&5
5027echo "${ECHO_T}no" >&6
5028fi
5029
5030    test -n "$FC" && break
5031  done
5032fi
5033if test -z "$FC"; then
5034  ac_ct_FC=$FC
5035  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5036do
5037  # Extract the first word of "$ac_prog", so it can be a program name with args.
5038set dummy $ac_prog; ac_word=$2
5039echo "$as_me:$LINENO: checking for $ac_word" >&5
5040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
5042  echo $ECHO_N "(cached) $ECHO_C" >&6
5043else
5044  if test -n "$ac_ct_FC"; then
5045  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5046else
5047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048for as_dir in $PATH
5049do
5050  IFS=$as_save_IFS
5051  test -z "$as_dir" && as_dir=.
5052  for ac_exec_ext in '' $ac_executable_extensions; do
5053  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054    ac_cv_prog_ac_ct_FC="$ac_prog"
5055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056    break 2
5057  fi
5058done
5059done
5060
5061fi
5062fi
5063ac_ct_FC=$ac_cv_prog_ac_ct_FC
5064if test -n "$ac_ct_FC"; then
5065  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
5066echo "${ECHO_T}$ac_ct_FC" >&6
5067else
5068  echo "$as_me:$LINENO: result: no" >&5
5069echo "${ECHO_T}no" >&6
5070fi
5071
5072  test -n "$ac_ct_FC" && break
5073done
5074
5075  FC=$ac_ct_FC
5076fi
5077
5078
5079# Provide some information about the compiler.
5080echo "$as_me:5080:" \
5081     "checking for Fortran compiler version" >&5
5082ac_compiler=`set X $ac_compile; echo $2`
5083{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5084  (eval $ac_compiler --version </dev/null >&5) 2>&5
5085  ac_status=$?
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); }
5088{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5089  (eval $ac_compiler -v </dev/null >&5) 2>&5
5090  ac_status=$?
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); }
5093{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5094  (eval $ac_compiler -V </dev/null >&5) 2>&5
5095  ac_status=$?
5096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097  (exit $ac_status); }
5098rm -f a.out
5099
5100# If we don't use `.F' as extension, the preprocessor is not run on the
5101# input file.  (Note that this only needs to work for GNU compilers.)
5102ac_save_ext=$ac_ext
5103ac_ext=F
5104echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
5105echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
5106if test "${ac_cv_fc_compiler_gnu+set}" = set; then
5107  echo $ECHO_N "(cached) $ECHO_C" >&6
5108else
5109  cat >conftest.$ac_ext <<_ACEOF
5110      program main
5111#ifndef __GNUC__
5112       choke me
5113#endif
5114
5115      end
5116_ACEOF
5117rm -f conftest.$ac_objext
5118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5119  (eval $ac_compile) 2>conftest.er1
5120  ac_status=$?
5121  grep -v '^ *+' conftest.er1 >conftest.err
5122  rm -f conftest.er1
5123  cat conftest.err >&5
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); } &&
5126         { ac_try='test -z "$ac_fc_werror_flag"
5127                         || test ! -s conftest.err'
5128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129  (eval $ac_try) 2>&5
5130  ac_status=$?
5131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132  (exit $ac_status); }; } &&
5133         { ac_try='test -s conftest.$ac_objext'
5134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135  (eval $ac_try) 2>&5
5136  ac_status=$?
5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138  (exit $ac_status); }; }; then
5139  ac_compiler_gnu=yes
5140else
5141  echo "$as_me: failed program was:" >&5
5142sed 's/^/| /' conftest.$ac_ext >&5
5143
5144ac_compiler_gnu=no
5145fi
5146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5147ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5148
5149fi
5150echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
5151echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
5152ac_ext=$ac_save_ext
5153ac_test_FFLAGS=${FCFLAGS+set}
5154ac_save_FFLAGS=$FCFLAGS
5155FCFLAGS=
5156echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
5157echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
5158if test "${ac_cv_prog_fc_g+set}" = set; then
5159  echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161  FCFLAGS=-g
5162cat >conftest.$ac_ext <<_ACEOF
5163      program main
5164
5165      end
5166_ACEOF
5167rm -f conftest.$ac_objext
5168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5169  (eval $ac_compile) 2>conftest.er1
5170  ac_status=$?
5171  grep -v '^ *+' conftest.er1 >conftest.err
5172  rm -f conftest.er1
5173  cat conftest.err >&5
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); } &&
5176         { ac_try='test -z "$ac_fc_werror_flag"
5177                         || test ! -s conftest.err'
5178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179  (eval $ac_try) 2>&5
5180  ac_status=$?
5181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182  (exit $ac_status); }; } &&
5183         { ac_try='test -s conftest.$ac_objext'
5184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185  (eval $ac_try) 2>&5
5186  ac_status=$?
5187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188  (exit $ac_status); }; }; then
5189  ac_cv_prog_fc_g=yes
5190else
5191  echo "$as_me: failed program was:" >&5
5192sed 's/^/| /' conftest.$ac_ext >&5
5193
5194ac_cv_prog_fc_g=no
5195fi
5196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5197
5198fi
5199echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
5200echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
5201if test "$ac_test_FFLAGS" = set; then
5202  FCFLAGS=$ac_save_FFLAGS
5203elif test $ac_cv_prog_fc_g = yes; then
5204  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5205    FCFLAGS="-g -O2"
5206  else
5207    FCFLAGS="-g"
5208  fi
5209else
5210  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5211    FCFLAGS="-O2"
5212  else
5213    FCFLAGS=
5214  fi
5215fi
5216
5217ac_ext=c
5218ac_cpp='$CPP $CPPFLAGS'
5219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222
5223
5224# recent autotools versions can recognize OpenMP with the following macro
5225# this would be useful when using MA86 and MA97
5226# AC_OPENMP
5227
5228# Initialize autotools
5229
5230if test x$enable_loadable_library = xyes; then
5231  flag=force_shared
5232fi
5233{
5234
5235
5236
5237# START
5238
5239coin_disable_shared=no
5240# Test if force_shared has been set
5241if test "x$flag" = xforce_shared; then
5242  if test x$enable_shared = xno; then
5243    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5244echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5245   { (exit 1); exit 1; }; }
5246  fi
5247  enable_shared=yes;
5248else
5249  case $build in
5250    *-cygwin* | *-mingw*)
5251      coin_disable_shared=yes
5252      if test x"$enable_shared" = xyes; then
5253        case "$CC" in
5254          clang* )
5255            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5256echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5257            ;;
5258          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5259            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
5260echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
5261            ;;
5262          *gcc*)
5263            if test x"$enable_dependency_linking" = xyes; then
5264              coin_disable_shared=no
5265            else
5266              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
5267echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
5268            fi
5269            ;;
5270          *)
5271            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5272echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5273            ;;
5274        esac
5275      fi
5276    ;;
5277    *-aix*)
5278      coin_disable_shared=yes
5279      platform=AIX
5280      if test x"$enable_shared" = xyes; then
5281        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
5282echo "$as_me: WARNING: Shared objects are not supported." >&2;}
5283      fi
5284    ;;
5285  esac
5286fi
5287if test x"$coin_disable_shared" = xyes; then
5288  if test x"$enable_shared" = xyes; then
5289    :
5290  else
5291    # we don't disable shared, because it was not selected anyway
5292    coin_disable_shared=no
5293  fi
5294  enable_shared=no
5295fi
5296# By default, we only want the shared objects to be compiled
5297# Check whether --enable-static or --disable-static was given.
5298if test "${enable_static+set}" = set; then
5299  enableval="$enable_static"
5300  p=${PACKAGE-default}
5301    case $enableval in
5302    yes) enable_static=yes ;;
5303    no) enable_static=no ;;
5304    *)
5305     enable_static=no
5306      # Look at the argument we got.  We use all the common list separators.
5307      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5308      for pkg in $enableval; do
5309        IFS="$lt_save_ifs"
5310        if test "X$pkg" = "X$p"; then
5311          enable_static=yes
5312        fi
5313      done
5314      IFS="$lt_save_ifs"
5315      ;;
5316    esac
5317else
5318  enable_static=no
5319fi;
5320
5321
5322
5323
5324# Initialize automake
5325echo "$as_me:$LINENO: checking whether ln -s works" >&5
5326echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5327LN_S=$as_ln_s
5328if test "$LN_S" = "ln -s"; then
5329  echo "$as_me:$LINENO: result: yes" >&5
5330echo "${ECHO_T}yes" >&6
5331else
5332  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5333echo "${ECHO_T}no, using $LN_S" >&6
5334fi
5335
5336am__api_version="1.9"
5337# Find a good install program.  We prefer a C program (faster),
5338# so one script is as good as another.  But avoid the broken or
5339# incompatible versions:
5340# SysV /etc/install, /usr/sbin/install
5341# SunOS /usr/etc/install
5342# IRIX /sbin/install
5343# AIX /bin/install
5344# AmigaOS /C/install, which installs bootblocks on floppy discs
5345# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5346# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5347# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5348# OS/2's system install, which has a completely different semantic
5349# ./install, which can be erroneously created by make from ./install.sh.
5350echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5351echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5352if test -z "$INSTALL"; then
5353if test "${ac_cv_path_install+set}" = set; then
5354  echo $ECHO_N "(cached) $ECHO_C" >&6
5355else
5356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359  IFS=$as_save_IFS
5360  test -z "$as_dir" && as_dir=.
5361  # Account for people who put trailing slashes in PATH elements.
5362case $as_dir/ in
5363  ./ | .// | /cC/* | \
5364  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5365  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5366  /usr/ucb/* ) ;;
5367  *)
5368    # OSF1 and SCO ODT 3.0 have their own names for install.
5369    # Don't use installbsd from OSF since it installs stuff as root
5370    # by default.
5371    for ac_prog in ginstall scoinst install; do
5372      for ac_exec_ext in '' $ac_executable_extensions; do
5373        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5374          if test $ac_prog = install &&
5375            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5376            # AIX install.  It has an incompatible calling convention.
5377            :
5378          elif test $ac_prog = install &&
5379            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5380            # program-specific install script used by HP pwplus--don't use.
5381            :
5382          else
5383            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5384            break 3
5385          fi
5386        fi
5387      done
5388    done
5389    ;;
5390esac
5391done
5392
5393
5394fi
5395  if test "${ac_cv_path_install+set}" = set; then
5396    INSTALL=$ac_cv_path_install
5397  else
5398    # As a last resort, use the slow shell script.  We don't cache a
5399    # path for INSTALL within a source directory, because that will
5400    # break other packages using the cache if that directory is
5401    # removed, or if the path is relative.
5402    INSTALL=$ac_install_sh
5403  fi
5404fi
5405echo "$as_me:$LINENO: result: $INSTALL" >&5
5406echo "${ECHO_T}$INSTALL" >&6
5407
5408# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5409# It thinks the first close brace ends the variable substitution.
5410test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5411
5412test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5413
5414test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5415
5416echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5417echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5418# Just in case
5419sleep 1
5420echo timestamp > conftest.file
5421# Do `set' in a subshell so we don't clobber the current shell's
5422# arguments.  Must try -L first in case configure is actually a
5423# symlink; some systems play weird games with the mod time of symlinks
5424# (eg FreeBSD returns the mod time of the symlink's containing
5425# directory).
5426if (
5427   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5428   if test "$*" = "X"; then
5429      # -L didn't work.
5430      set X `ls -t $srcdir/configure conftest.file`
5431   fi
5432   rm -f conftest.file
5433   if test "$*" != "X $srcdir/configure conftest.file" \
5434      && test "$*" != "X conftest.file $srcdir/configure"; then
5435
5436      # If neither matched, then we have a broken ls.  This can happen
5437      # if, for instance, CONFIG_SHELL is bash and it inherits a
5438      # broken ls alias from the environment.  This has actually
5439      # happened.  Such a system could not be considered "sane".
5440      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5441alias in your environment" >&5
5442echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5443alias in your environment" >&2;}
5444   { (exit 1); exit 1; }; }
5445   fi
5446
5447   test "$2" = conftest.file
5448   )
5449then
5450   # Ok.
5451   :
5452else
5453   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5454Check your system clock" >&5
5455echo "$as_me: error: newly created file is older than distributed files!
5456Check your system clock" >&2;}
5457   { (exit 1); exit 1; }; }
5458fi
5459echo "$as_me:$LINENO: result: yes" >&5
5460echo "${ECHO_T}yes" >&6
5461test "$program_prefix" != NONE &&
5462  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5463# Use a double $ so make ignores it.
5464test "$program_suffix" != NONE &&
5465  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5466# Double any \ or $.  echo might interpret backslashes.
5467# By default was `s,x,x', remove it if useless.
5468cat <<\_ACEOF >conftest.sed
5469s/[\\$]/&&/g;s/;s,x,x,$//
5470_ACEOF
5471program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5472rm conftest.sed
5473
5474# expand $ac_aux_dir to an absolute path
5475am_aux_dir=`cd $ac_aux_dir && pwd`
5476
5477test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5478# Use eval to expand $SHELL
5479if eval "$MISSING --run true"; then
5480  am_missing_run="$MISSING --run "
5481else
5482  am_missing_run=
5483  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5484echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5485fi
5486
5487if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5488  # We used to keeping the `.' as first argument, in order to
5489  # allow $(mkdir_p) to be used without argument.  As in
5490  #   $(mkdir_p) $(somedir)
5491  # where $(somedir) is conditionally defined.  However this is wrong
5492  # for two reasons:
5493  #  1. if the package is installed by a user who cannot write `.'
5494  #     make install will fail,
5495  #  2. the above comment should most certainly read
5496  #     $(mkdir_p) $(DESTDIR)$(somedir)
5497  #     so it does not work when $(somedir) is undefined and
5498  #     $(DESTDIR) is not.
5499  #  To support the latter case, we have to write
5500  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5501  #  so the `.' trick is pointless.
5502  mkdir_p='mkdir -p --'
5503else
5504  # On NextStep and OpenStep, the `mkdir' command does not
5505  # recognize any option.  It will interpret all options as
5506  # directories to create, and then abort because `.' already
5507  # exists.
5508  for d in ./-p ./--version;
5509  do
5510    test -d $d && rmdir $d
5511  done
5512  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5513  if test -f "$ac_aux_dir/mkinstalldirs"; then
5514    mkdir_p='$(mkinstalldirs)'
5515  else
5516    mkdir_p='$(install_sh) -d'
5517  fi
5518fi
5519
5520for ac_prog in gawk mawk nawk awk
5521do
5522  # Extract the first word of "$ac_prog", so it can be a program name with args.
5523set dummy $ac_prog; ac_word=$2
5524echo "$as_me:$LINENO: checking for $ac_word" >&5
5525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5526if test "${ac_cv_prog_AWK+set}" = set; then
5527  echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
5529  if test -n "$AWK"; then
5530  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5531else
5532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533for as_dir in $PATH
5534do
5535  IFS=$as_save_IFS
5536  test -z "$as_dir" && as_dir=.
5537  for ac_exec_ext in '' $ac_executable_extensions; do
5538  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539    ac_cv_prog_AWK="$ac_prog"
5540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541    break 2
5542  fi
5543done
5544done
5545
5546fi
5547fi
5548AWK=$ac_cv_prog_AWK
5549if test -n "$AWK"; then
5550  echo "$as_me:$LINENO: result: $AWK" >&5
5551echo "${ECHO_T}$AWK" >&6
5552else
5553  echo "$as_me:$LINENO: result: no" >&5
5554echo "${ECHO_T}no" >&6
5555fi
5556
5557  test -n "$AWK" && break
5558done
5559
5560echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5561echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5562set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5563if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5564  echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566  cat >conftest.make <<\_ACEOF
5567all:
5568        @echo 'ac_maketemp="$(MAKE)"'
5569_ACEOF
5570# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5571eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5572if test -n "$ac_maketemp"; then
5573  eval ac_cv_prog_make_${ac_make}_set=yes
5574else
5575  eval ac_cv_prog_make_${ac_make}_set=no
5576fi
5577rm -f conftest.make
5578fi
5579if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5580  echo "$as_me:$LINENO: result: yes" >&5
5581echo "${ECHO_T}yes" >&6
5582  SET_MAKE=
5583else
5584  echo "$as_me:$LINENO: result: no" >&5
5585echo "${ECHO_T}no" >&6
5586  SET_MAKE="MAKE=${MAKE-make}"
5587fi
5588
5589rm -rf .tst 2>/dev/null
5590mkdir .tst 2>/dev/null
5591if test -d .tst; then
5592  am__leading_dot=.
5593else
5594  am__leading_dot=_
5595fi
5596rmdir .tst 2>/dev/null
5597
5598DEPDIR="${am__leading_dot}deps"
5599
5600          ac_config_commands="$ac_config_commands depfiles"
5601
5602
5603am_make=${MAKE-make}
5604cat > confinc << 'END'
5605am__doit:
5606        @echo done
5607.PHONY: am__doit
5608END
5609# If we don't find an include directive, just comment out the code.
5610echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5611echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5612am__include="#"
5613am__quote=
5614_am_result=none
5615# First try GNU make style include.
5616echo "include confinc" > confmf
5617# We grep out `Entering directory' and `Leaving directory'
5618# messages which can occur if `w' ends up in MAKEFLAGS.
5619# In particular we don't look at `^make:' because GNU make might
5620# be invoked under some other name (usually "gmake"), in which
5621# case it prints its new name instead of `make'.
5622if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5623   am__include=include
5624   am__quote=
5625   _am_result=GNU
5626fi
5627# Now try BSD make style include.
5628if test "$am__include" = "#"; then
5629   echo '.include "confinc"' > confmf
5630   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5631      am__include=.include
5632      am__quote="\""
5633      _am_result=BSD
5634   fi
5635fi
5636
5637
5638echo "$as_me:$LINENO: result: $_am_result" >&5
5639echo "${ECHO_T}$_am_result" >&6
5640rm -f confinc confmf
5641
5642# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5643if test "${enable_dependency_tracking+set}" = set; then
5644  enableval="$enable_dependency_tracking"
5645
5646fi;
5647if test "x$enable_dependency_tracking" != xno; then
5648  am_depcomp="$ac_aux_dir/depcomp"
5649  AMDEPBACKSLASH='\'
5650fi
5651
5652
5653if test "x$enable_dependency_tracking" != xno; then
5654  AMDEP_TRUE=
5655  AMDEP_FALSE='#'
5656else
5657  AMDEP_TRUE='#'
5658  AMDEP_FALSE=
5659fi
5660
5661
5662
5663
5664
5665
5666# AC_MSG_NOTICE([Beginning automake initialisation.])
5667# Stuff for automake
5668# test to see if srcdir already configured
5669if test "`cd $srcdir && pwd`" != "`pwd`" &&
5670   test -f $srcdir/config.status; then
5671  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5672echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5673   { (exit 1); exit 1; }; }
5674fi
5675
5676# test whether we have cygpath
5677if test -z "$CYGPATH_W"; then
5678  if (cygpath --version) >/dev/null 2>/dev/null; then
5679    CYGPATH_W='cygpath -w'
5680  else
5681    CYGPATH_W=echo
5682  fi
5683fi
5684
5685
5686# Define the identity of the package.
5687 PACKAGE='thirdpartyhsl'
5688 VERSION='1.5'
5689
5690
5691cat >>confdefs.h <<_ACEOF
5692#define PACKAGE "$PACKAGE"
5693_ACEOF
5694
5695
5696cat >>confdefs.h <<_ACEOF
5697#define VERSION "$VERSION"
5698_ACEOF
5699
5700# Some tools Automake needs.
5701
5702ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5703
5704
5705AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5706
5707
5708AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5709
5710
5711AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5712
5713
5714MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5715
5716install_sh=${install_sh-"$am_aux_dir/install-sh"}
5717
5718# Installed binaries are usually stripped using `strip' when the user
5719# run `make install-strip'.  However `strip' might not be the right
5720# tool to use in cross-compilation environments, therefore Automake
5721# will honor the `STRIP' environment variable to overrule this program.
5722if test "$cross_compiling" != no; then
5723  if test -n "$ac_tool_prefix"; then
5724  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5725set dummy ${ac_tool_prefix}strip; ac_word=$2
5726echo "$as_me:$LINENO: checking for $ac_word" >&5
5727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728if test "${ac_cv_prog_STRIP+set}" = set; then
5729  echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731  if test -n "$STRIP"; then
5732  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737  IFS=$as_save_IFS
5738  test -z "$as_dir" && as_dir=.
5739  for ac_exec_ext in '' $ac_executable_extensions; do
5740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743    break 2
5744  fi
5745done
5746done
5747
5748fi
5749fi
5750STRIP=$ac_cv_prog_STRIP
5751if test -n "$STRIP"; then
5752  echo "$as_me:$LINENO: result: $STRIP" >&5
5753echo "${ECHO_T}$STRIP" >&6
5754else
5755  echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
5757fi
5758
5759fi
5760if test -z "$ac_cv_prog_STRIP"; then
5761  ac_ct_STRIP=$STRIP
5762  # Extract the first word of "strip", so it can be a program name with args.
5763set dummy strip; ac_word=$2
5764echo "$as_me:$LINENO: checking for $ac_word" >&5
5765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5766if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5767  echo $ECHO_N "(cached) $ECHO_C" >&6
5768else
5769  if test -n "$ac_ct_STRIP"; then
5770  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5771else
5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773for as_dir in $PATH
5774do
5775  IFS=$as_save_IFS
5776  test -z "$as_dir" && as_dir=.
5777  for ac_exec_ext in '' $ac_executable_extensions; do
5778  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779    ac_cv_prog_ac_ct_STRIP="strip"
5780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781    break 2
5782  fi
5783done
5784done
5785
5786  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5787fi
5788fi
5789ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5790if test -n "$ac_ct_STRIP"; then
5791  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5792echo "${ECHO_T}$ac_ct_STRIP" >&6
5793else
5794  echo "$as_me:$LINENO: result: no" >&5
5795echo "${ECHO_T}no" >&6
5796fi
5797
5798  STRIP=$ac_ct_STRIP
5799else
5800  STRIP="$ac_cv_prog_STRIP"
5801fi
5802
5803fi
5804INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5805
5806# We need awk for the "check" target.  The system "awk" is bad on
5807# some platforms.
5808# Always define AMTAR for backward compatibility.
5809
5810AMTAR=${AMTAR-"${am_missing_run}tar"}
5811
5812am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5813
5814
5815
5816
5817depcc="$CC"   am_compiler_list=
5818
5819echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5820echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5821if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5822  echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5825  # We make a subdir and do the tests there.  Otherwise we can end up
5826  # making bogus files that we don't know about and never remove.  For
5827  # instance it was reported that on HP-UX the gcc test will end up
5828  # making a dummy file named `D' -- because `-MD' means `put the output
5829  # in D'.
5830  mkdir conftest.dir
5831  # Copy depcomp to subdir because otherwise we won't find it if we're
5832  # using a relative directory.
5833  cp "$am_depcomp" conftest.dir
5834  cd conftest.dir
5835  # We will build objects and dependencies in a subdirectory because
5836  # it helps to detect inapplicable dependency modes.  For instance
5837  # both Tru64's cc and ICC support -MD to output dependencies as a
5838  # side effect of compilation, but ICC will put the dependencies in
5839  # the current directory while Tru64 will put them in the object
5840  # directory.
5841  mkdir sub
5842
5843  am_cv_CC_dependencies_compiler_type=none
5844  if test "$am_compiler_list" = ""; then
5845     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5846  fi
5847  for depmode in $am_compiler_list; do
5848    # Setup a source with many dependencies, because some compilers
5849    # like to wrap large dependency lists on column 80 (with \), and
5850    # we should not choose a depcomp mode which is confused by this.
5851    #
5852    # We need to recreate these files for each test, as the compiler may
5853    # overwrite some of them when testing with obscure command lines.
5854    # This happens at least with the AIX C compiler.
5855    : > sub/conftest.c
5856    for i in 1 2 3 4 5 6; do
5857      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5858      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5859      # Solaris 8's {/usr,}/bin/sh.
5860      touch sub/conftst$i.h
5861    done
5862    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5863
5864    case $depmode in
5865    nosideeffect)
5866      # after this tag, mechanisms are not by side-effect, so they'll
5867      # only be used when explicitly requested
5868      if test "x$enable_dependency_tracking" = xyes; then
5869        continue
5870      else
5871        break
5872      fi
5873      ;;
5874    none) break ;;
5875    esac
5876    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5877    # mode.  It turns out that the SunPro C++ compiler does not properly
5878    # handle `-M -o', and we need to detect this.
5879    if depmode=$depmode \
5880       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5881       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5882       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5883         >/dev/null 2>conftest.err &&
5884       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5885       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5886       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5887      # icc doesn't choke on unknown options, it will just issue warnings
5888      # or remarks (even with -Werror).  So we grep stderr for any message
5889      # that says an option was ignored or not supported.
5890      # When given -MP, icc 7.0 and 7.1 complain thusly:
5891      #   icc: Command line warning: ignoring option '-M'; no argument required
5892      # The diagnosis changed in icc 8.0:
5893      #   icc: Command line remark: option '-MP' not supported
5894      if (grep 'ignoring option' conftest.err ||
5895          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5896        am_cv_CC_dependencies_compiler_type=$depmode
5897        break
5898      fi
5899    fi
5900  done
5901
5902  cd ..
5903  rm -rf conftest.dir
5904else
5905  am_cv_CC_dependencies_compiler_type=none
5906fi
5907
5908fi
5909echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5910echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5911CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5912
5913
5914
5915if
5916  test "x$enable_dependency_tracking" != xno \
5917  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5918  am__fastdepCC_TRUE=
5919  am__fastdepCC_FALSE='#'
5920else
5921  am__fastdepCC_TRUE='#'
5922  am__fastdepCC_FALSE=
5923fi
5924
5925
5926
5927echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5928echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5929    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5930if test "${enable_maintainer_mode+set}" = set; then
5931  enableval="$enable_maintainer_mode"
5932  USE_MAINTAINER_MODE=$enableval
5933else
5934  USE_MAINTAINER_MODE=no
5935fi;
5936  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5937echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5938
5939
5940if test $USE_MAINTAINER_MODE = yes; then
5941  MAINTAINER_MODE_TRUE=
5942  MAINTAINER_MODE_FALSE='#'
5943else
5944  MAINTAINER_MODE_TRUE='#'
5945  MAINTAINER_MODE_FALSE=
5946fi
5947
5948  MAINT=$MAINTAINER_MODE_TRUE
5949
5950
5951
5952coin_have_externals=no
5953if test "$enable_maintainer_mode" = yes; then
5954
5955  # If maintainer mode is chosen, we make sure that the correct versions
5956  # of the tools are used, and that we know where libtool.m4 is (to
5957  # recreate acinclude.m4)
5958
5959
5960  LIBTOOLM4=
5961  # Normally, $HOME
5962  AUTOTOOLS_DFLT=$HOME
5963
5964  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5965echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5966if test "${ac_cv_use_correct_autotools+set}" = set; then
5967  echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969  ac_cv_use_correct_autotools=check
5970fi
5971echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5972echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5973
5974  if test $ac_cv_use_correct_autotools = check; then
5975    ac_cv_use_correct_autotools=yes
5976    # Check if we have autoconf
5977    # Extract the first word of "autoconf", so it can be a program name with args.
5978set dummy autoconf; ac_word=$2
5979echo "$as_me:$LINENO: checking for $ac_word" >&5
5980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981if test "${ac_cv_prog_have_autoconf+set}" = set; then
5982  echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984  if test -n "$have_autoconf"; then
5985  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5986else
5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988for as_dir in $PATH
5989do
5990  IFS=$as_save_IFS
5991  test -z "$as_dir" && as_dir=.
5992  for ac_exec_ext in '' $ac_executable_extensions; do
5993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994    ac_cv_prog_have_autoconf="yes"
5995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996    break 2
5997  fi
5998done
5999done
6000
6001  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6002fi
6003fi
6004have_autoconf=$ac_cv_prog_have_autoconf
6005if test -n "$have_autoconf"; then
6006  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6007echo "${ECHO_T}$have_autoconf" >&6
6008else
6009  echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6
6011fi
6012
6013    if test $have_autoconf = no; then
6014      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6015echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6016   { (exit 1); exit 1; }; }
6017    fi
6018
6019    # Check whether autoconf is the correct version
6020    correct_version='2.59'
6021    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6022    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6023echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6024    autoconf --version > confauto.out 2>&1
6025    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6026      echo "$as_me:$LINENO: result: yes" >&5
6027echo "${ECHO_T}yes" >&6
6028    else
6029      rm -f confauto.out
6030      echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6
6032      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6033echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6034   { (exit 1); exit 1; }; }
6035    fi
6036    rm -f confauto.out
6037
6038    # Check if the executable autoconf is picked up from the correct location
6039    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6040echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6041    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6042    autoconf_dir=`cd $autoconf_dir; pwd`
6043    if test x$AUTOTOOLS_DIR = x; then
6044      want_dir=$AUTOTOOLS_DFLT/bin
6045    else
6046      want_dir=$AUTOTOOLS_DIR/bin
6047    fi
6048    if test $autoconf_dir = `cd $want_dir; pwd`; then
6049      echo "$as_me:$LINENO: result: yes" >&5
6050echo "${ECHO_T}yes" >&6
6051    else
6052      rm -f confauto.out
6053      echo "$as_me:$LINENO: result: no" >&5
6054echo "${ECHO_T}no" >&6
6055      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6056echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6057   { (exit 1); exit 1; }; }
6058    fi
6059
6060    # Check if we have automake
6061    # Extract the first word of "automake", so it can be a program name with args.
6062set dummy automake; ac_word=$2
6063echo "$as_me:$LINENO: checking for $ac_word" >&5
6064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6065if test "${ac_cv_prog_have_automake+set}" = set; then
6066  echo $ECHO_N "(cached) $ECHO_C" >&6
6067else
6068  if test -n "$have_automake"; then
6069  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6070else
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074  IFS=$as_save_IFS
6075  test -z "$as_dir" && as_dir=.
6076  for ac_exec_ext in '' $ac_executable_extensions; do
6077  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078    ac_cv_prog_have_automake="yes"
6079    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080    break 2
6081  fi
6082done
6083done
6084
6085  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6086fi
6087fi
6088have_automake=$ac_cv_prog_have_automake
6089if test -n "$have_automake"; then
6090  echo "$as_me:$LINENO: result: $have_automake" >&5
6091echo "${ECHO_T}$have_automake" >&6
6092else
6093  echo "$as_me:$LINENO: result: no" >&5
6094echo "${ECHO_T}no" >&6
6095fi
6096
6097    if test $have_automake = no; then
6098      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6099echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6100   { (exit 1); exit 1; }; }
6101    fi
6102
6103    # Check whether automake is the correct version
6104    correct_version='1.9.6'
6105    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6106    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6107echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6108    automake --version > confauto.out 2>&1
6109    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6110      echo "$as_me:$LINENO: result: yes" >&5
6111echo "${ECHO_T}yes" >&6
6112    else
6113      rm -f confauto.out
6114      echo "$as_me:$LINENO: result: no" >&5
6115echo "${ECHO_T}no" >&6
6116      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6117echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6118   { (exit 1); exit 1; }; }
6119    fi
6120    rm -f confauto.out
6121
6122    # Check if the executable automake is picked up from the correct location
6123    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6124echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6125    automake_dir=`which automake | sed -e 's=/automake=='`
6126    automake_dir=`cd $automake_dir; pwd`
6127    if test x$AUTOTOOLS_DIR = x; then
6128      want_dir=$AUTOTOOLS_DFLT/bin
6129    else
6130      want_dir=$AUTOTOOLS_DIR/bin
6131    fi
6132    if test $automake_dir = `cd $want_dir; pwd`; then
6133      echo "$as_me:$LINENO: result: yes" >&5
6134echo "${ECHO_T}yes" >&6
6135    else
6136      rm -f confauto.out
6137      echo "$as_me:$LINENO: result: no" >&5
6138echo "${ECHO_T}no" >&6
6139      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6140echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6141   { (exit 1); exit 1; }; }
6142    fi
6143
6144    # Check if this is the correct version of libtool (with escaped dots)
6145    if test x$AUTOTOOLS_DIR = x; then
6146      want_dir=$AUTOTOOLS_DFLT/share
6147    else
6148      want_dir=$AUTOTOOLS_DIR/share
6149    fi
6150    correct_version='1.5.22'
6151    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6152    if test -r $want_dir/libtool/ltmain.sh; then
6153  have_ltmain=yes
6154  :
6155else
6156  have_ltmain=no
6157  :
6158fi
6159
6160    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6161echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6162    if test $have_ltmain = yes; then
6163    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6164        echo "$as_me:$LINENO: result: yes" >&5
6165echo "${ECHO_T}yes" >&6
6166      else
6167        echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6170echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6171   { (exit 1); exit 1; }; }
6172      fi
6173    else
6174      echo "$as_me:$LINENO: result: no" >&5
6175echo "${ECHO_T}no" >&6
6176      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6177echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6178   { (exit 1); exit 1; }; }
6179    fi
6180  fi
6181
6182  # Check if we can find the libtool file
6183  if test x$AUTOTOOLS_DIR = x; then
6184    want_dir=$AUTOTOOLS_DFLT/share
6185  else
6186    want_dir=$AUTOTOOLS_DIR/share
6187  fi
6188  if test -r $want_dir/aclocal/libtool.m4; then
6189  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6190  :
6191else
6192  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6193echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6194   { (exit 1); exit 1; }; }
6195  :
6196fi
6197
6198
6199  # Check if we have an Dependencies file
6200  if test -r $srcdir/Dependencies; then
6201    coin_have_externals=yes
6202  fi
6203  # Check if subversion is installed and understands https
6204  # Extract the first word of "svn", so it can be a program name with args.
6205set dummy svn; ac_word=$2
6206echo "$as_me:$LINENO: checking for $ac_word" >&5
6207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6208if test "${ac_cv_prog_have_svn+set}" = set; then
6209  echo $ECHO_N "(cached) $ECHO_C" >&6
6210else
6211  if test -n "$have_svn"; then
6212  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6213else
6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217  IFS=$as_save_IFS
6218  test -z "$as_dir" && as_dir=.
6219  for ac_exec_ext in '' $ac_executable_extensions; do
6220  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6221    ac_cv_prog_have_svn="yes"
6222    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223    break 2
6224  fi
6225done
6226done
6227
6228  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6229fi
6230fi
6231have_svn=$ac_cv_prog_have_svn
6232if test -n "$have_svn"; then
6233  echo "$as_me:$LINENO: result: $have_svn" >&5
6234echo "${ECHO_T}$have_svn" >&6
6235else
6236  echo "$as_me:$LINENO: result: no" >&5
6237echo "${ECHO_T}no" >&6
6238fi
6239
6240  if test x$have_svn = xyes; then
6241    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6242echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6243if test "${ac_cv_svn_understands_https+set}" = set; then
6244  echo $ECHO_N "(cached) $ECHO_C" >&6
6245else
6246  svn --version > confauto.out 2>&1
6247                    if $EGREP https confauto.out >/dev/null 2>&1; then
6248                      ac_cv_svn_understands_https=yes
6249                    else
6250                      ac_cv_svn_understands_https=no
6251                      have_svn=no
6252                      ac_cv_prog_have_svn=no
6253                    fi
6254                    rm -f confauto.out
6255fi
6256echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6257echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6258  fi
6259
6260  # Find the location of the BuildTools directory
6261  BUILDTOOLSDIR=
6262  if test -r $srcdir/BuildTools/coin.m4; then
6263    BUILDTOOLSDIR=$srcdir/BuildTools
6264  else
6265    if test -r $srcdir/../BuildTools/coin.m4; then
6266      BUILDTOOLSDIR=$srcdir/../BuildTools
6267    else
6268      if test -r $srcdir/../../BuildTools/coin.m4; then
6269        BUILDTOOLSDIR=$srcdir/../../BuildTools
6270      else
6271        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6272echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6273   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6274      fi
6275    fi
6276  fi
6277
6278
6279  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6280  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6281    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6282  fi
6283
6284  # The following variable is set to the name of the directory where
6285  # the autotool scripts are located
6286
6287  AUX_DIR=$ac_aux_dir
6288fi
6289
6290# helpful variable for the base directory of this package
6291abs_source_dir=`cd $srcdir; pwd`
6292
6293
6294# Stuff for example Makefiles
6295if test x$prefix = xNONE; then
6296  full_prefix=$ac_default_prefix
6297else
6298  full_prefix=$prefix
6299fi
6300full_prefix=`cd $full_prefix ; pwd`
6301
6302abs_lib_dir=$full_prefix/lib
6303
6304abs_include_dir=$full_prefix/include
6305
6306abs_bin_dir=$full_prefix/bin
6307
6308
6309
6310if test $coin_have_externals = yes && test x$have_svn = xyes; then
6311  HAVE_EXTERNALS_TRUE=
6312  HAVE_EXTERNALS_FALSE='#'
6313else
6314  HAVE_EXTERNALS_TRUE='#'
6315  HAVE_EXTERNALS_FALSE=
6316fi
6317
6318
6319# AC_MSG_NOTICE([End automake initialisation.])
6320
6321
6322
6323LIBTOOL=
6324if test -f ../libtool; then
6325  coin_config_dir=..
6326  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6327fi
6328if test "x$LIBTOOL" = x; then
6329  if test -f ../../libtool; then
6330    coin_config_dir=../..
6331    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6332  fi
6333fi
6334
6335if test "x$LIBTOOL" = x; then
6336# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6337  # Stuff for libtool
6338  # Check whether --enable-shared or --disable-shared was given.
6339if test "${enable_shared+set}" = set; then
6340  enableval="$enable_shared"
6341  p=${PACKAGE-default}
6342    case $enableval in
6343    yes) enable_shared=yes ;;
6344    no) enable_shared=no ;;
6345    *)
6346      enable_shared=no
6347      # Look at the argument we got.  We use all the common list separators.
6348      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6349      for pkg in $enableval; do
6350        IFS="$lt_save_ifs"
6351        if test "X$pkg" = "X$p"; then
6352          enable_shared=yes
6353        fi
6354      done
6355      IFS="$lt_save_ifs"
6356      ;;
6357    esac
6358else
6359  enable_shared=yes
6360fi;
6361
6362# Check whether --enable-fast-install or --disable-fast-install was given.
6363if test "${enable_fast_install+set}" = set; then
6364  enableval="$enable_fast_install"
6365  p=${PACKAGE-default}
6366    case $enableval in
6367    yes) enable_fast_install=yes ;;
6368    no) enable_fast_install=no ;;
6369    *)
6370      enable_fast_install=no
6371      # Look at the argument we got.  We use all the common list separators.
6372      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6373      for pkg in $enableval; do
6374        IFS="$lt_save_ifs"
6375        if test "X$pkg" = "X$p"; then
6376          enable_fast_install=yes
6377        fi
6378      done
6379      IFS="$lt_save_ifs"
6380      ;;
6381    esac
6382else
6383  enable_fast_install=yes
6384fi;
6385
6386echo "$as_me:$LINENO: checking host system type" >&5
6387echo $ECHO_N "checking host system type... $ECHO_C" >&6
6388if test "${ac_cv_host+set}" = set; then
6389  echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391  ac_cv_host_alias=$host_alias
6392test -z "$ac_cv_host_alias" &&
6393  ac_cv_host_alias=$ac_cv_build_alias
6394ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6395  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6396echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6397   { (exit 1); exit 1; }; }
6398
6399fi
6400echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6401echo "${ECHO_T}$ac_cv_host" >&6
6402host=$ac_cv_host
6403host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6404host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6405host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6406
6407
6408echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6409echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6410if test "${lt_cv_path_SED+set}" = set; then
6411  echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413  # Loop through the user's path and test for sed and gsed.
6414# Then use that list of sed's as ones to test for truncation.
6415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418  IFS=$as_save_IFS
6419  test -z "$as_dir" && as_dir=.
6420  for lt_ac_prog in sed gsed; do
6421    for ac_exec_ext in '' $ac_executable_extensions; do
6422      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6423        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6424      fi
6425    done
6426  done
6427done
6428lt_ac_max=0
6429lt_ac_count=0
6430# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6431# along with /bin/sed that truncates output.
6432for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6433  test ! -f $lt_ac_sed && continue
6434  cat /dev/null > conftest.in
6435  lt_ac_count=0
6436  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6437  # Check for GNU sed and select it if it is found.
6438  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6439    lt_cv_path_SED=$lt_ac_sed
6440    break
6441  fi
6442  while true; do
6443    cat conftest.in conftest.in >conftest.tmp
6444    mv conftest.tmp conftest.in
6445    cp conftest.in conftest.nl
6446    echo >>conftest.nl
6447    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6448    cmp -s conftest.out conftest.nl || break
6449    # 10000 chars as input seems more than enough
6450    test $lt_ac_count -gt 10 && break
6451    lt_ac_count=`expr $lt_ac_count + 1`
6452    if test $lt_ac_count -gt $lt_ac_max; then
6453      lt_ac_max=$lt_ac_count
6454      lt_cv_path_SED=$lt_ac_sed
6455    fi
6456  done
6457done
6458
6459fi
6460
6461SED=$lt_cv_path_SED
6462echo "$as_me:$LINENO: result: $SED" >&5
6463echo "${ECHO_T}$SED" >&6
6464
6465
6466# Check whether --with-gnu-ld or --without-gnu-ld was given.
6467if test "${with_gnu_ld+set}" = set; then
6468  withval="$with_gnu_ld"
6469  test "$withval" = no || with_gnu_ld=yes
6470else
6471  with_gnu_ld=no
6472fi;
6473ac_prog=ld
6474if test "$GCC" = yes; then
6475  # Check if gcc -print-prog-name=ld gives a path.
6476  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6477echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6478  case $host in
6479  *-*-mingw*)
6480    # gcc leaves a trailing carriage return which upsets mingw
6481    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6482  *)
6483    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6484  esac
6485  case $ac_prog in
6486    # Accept absolute paths.
6487    [\\/]* | ?:[\\/]*)
6488      re_direlt='/[^/][^/]*/\.\./'
6489      # Canonicalize the pathname of ld
6490      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6491      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6492        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6493      done
6494      test -z "$LD" && LD="$ac_prog"
6495      ;;
6496  "")
6497    # If it fails, then pretend we aren't using GCC.
6498    ac_prog=ld
6499    ;;
6500  *)
6501    # If it is relative, then search for the first ld in PATH.
6502    with_gnu_ld=unknown
6503    ;;
6504  esac
6505elif test "$with_gnu_ld" = yes; then
6506  echo "$as_me:$LINENO: checking for GNU ld" >&5
6507echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6508else
6509  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6510echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6511fi
6512if test "${lt_cv_path_LD+set}" = set; then
6513  echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
6515  if test -z "$LD"; then
6516  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6517  for ac_dir in $PATH; do
6518    IFS="$lt_save_ifs"
6519    test -z "$ac_dir" && ac_dir=.
6520    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6521      lt_cv_path_LD="$ac_dir/$ac_prog"
6522      # Check to see if the program is GNU ld.  I'd rather use --version,
6523      # but apparently some variants of GNU ld only accept -v.
6524      # Break only if it was the GNU/non-GNU ld that we prefer.
6525      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6526      *GNU* | *'with BFD'*)
6527        test "$with_gnu_ld" != no && break
6528        ;;
6529      *)
6530        test "$with_gnu_ld" != yes && break
6531        ;;
6532      esac
6533    fi
6534  done
6535  IFS="$lt_save_ifs"
6536else
6537  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6538fi
6539fi
6540
6541LD="$lt_cv_path_LD"
6542if test -n "$LD"; then
6543  echo "$as_me:$LINENO: result: $LD" >&5
6544echo "${ECHO_T}$LD" >&6
6545else
6546  echo "$as_me:$LINENO: result: no" >&5
6547echo "${ECHO_T}no" >&6
6548fi
6549test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6550echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6551   { (exit 1); exit 1; }; }
6552echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6553echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6554if test "${lt_cv_prog_gnu_ld+set}" = set; then
6555  echo $ECHO_N "(cached) $ECHO_C" >&6
6556else
6557  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6558case `$LD -v 2>&1 </dev/null` in
6559*GNU* | *'with BFD'*)
6560  lt_cv_prog_gnu_ld=yes
6561  ;;
6562*)
6563  lt_cv_prog_gnu_ld=no
6564  ;;
6565esac
6566fi
6567echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6568echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6569with_gnu_ld=$lt_cv_prog_gnu_ld
6570
6571
6572echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6573echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6574if test "${lt_cv_ld_reload_flag+set}" = set; then
6575  echo $ECHO_N "(cached) $ECHO_C" >&6
6576else
6577  lt_cv_ld_reload_flag='-r'
6578fi
6579echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6580echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6581reload_flag=$lt_cv_ld_reload_flag
6582case $reload_flag in
6583"" | " "*) ;;
6584*) reload_flag=" $reload_flag" ;;
6585esac
6586reload_cmds='$LD$reload_flag -o $output$reload_objs'
6587case $host_os in
6588  darwin*)
6589    if test "$GCC" = yes; then
6590      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6591    else
6592      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6593    fi
6594    ;;
6595esac
6596
6597echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6598echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6599if test "${lt_cv_path_NM+set}" = set; then
6600  echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602  if test -n "$NM"; then
6603  # Let the user override the test.
6604  lt_cv_path_NM="$NM"
6605else
6606  lt_nm_to_check="${ac_tool_prefix}nm"
6607  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6608    lt_nm_to_check="$lt_nm_to_check nm"
6609  fi
6610  for lt_tmp_nm in $lt_nm_to_check; do
6611    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6612    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6613      IFS="$lt_save_ifs"
6614      test -z "$ac_dir" && ac_dir=.
6615      tmp_nm="$ac_dir/$lt_tmp_nm"
6616      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6617        # Check to see if the nm accepts a BSD-compat flag.
6618        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6619        #   nm: unknown option "B" ignored
6620        # Tru64's nm complains that /dev/null is an invalid object file
6621        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6622        */dev/null* | *'Invalid file or object type'*)
6623          lt_cv_path_NM="$tmp_nm -B"
6624          break
6625          ;;
6626        *)
6627          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6628          */dev/null*)
6629            lt_cv_path_NM="$tmp_nm -p"
6630            break
6631            ;;
6632          *)
6633            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6634            continue # so that we can try to find one that supports BSD flags
6635            ;;
6636          esac
6637          ;;
6638        esac
6639      fi
6640    done
6641    IFS="$lt_save_ifs"
6642  done
6643  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6644fi
6645fi
6646echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6647echo "${ECHO_T}$lt_cv_path_NM" >&6
6648NM="$lt_cv_path_NM"
6649
6650echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6651echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6652if test "${lt_cv_deplibs_check_method+set}" = set; then
6653  echo $ECHO_N "(cached) $ECHO_C" >&6
6654else
6655  lt_cv_file_magic_cmd='$MAGIC_CMD'
6656lt_cv_file_magic_test_file=
6657lt_cv_deplibs_check_method='unknown'
6658# Need to set the preceding variable on all platforms that support
6659# interlibrary dependencies.
6660# 'none' -- dependencies not supported.
6661# `unknown' -- same as none, but documents that we really don't know.
6662# 'pass_all' -- all dependencies passed with no checks.
6663# 'test_compile' -- check by making test program.
6664# 'file_magic [[regex]]' -- check by looking for files in library path
6665# which responds to the $file_magic_cmd with a given extended regex.
6666# If you have `file' or equivalent on your system and you're not sure
6667# whether `pass_all' will *always* work, you probably want this one.
6668
6669case $host_os in
6670aix4* | aix5*)
6671  lt_cv_deplibs_check_method=pass_all
6672  ;;
6673
6674beos*)
6675  lt_cv_deplibs_check_method=pass_all
6676  ;;
6677
6678bsdi[45]*)
6679  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6680  lt_cv_file_magic_cmd='/usr/bin/file -L'
6681  lt_cv_file_magic_test_file=/shlib/libc.so
6682  ;;
6683
6684cygwin*)
6685  # func_win32_libid is a shell function defined in ltmain.sh
6686  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6687  lt_cv_file_magic_cmd='func_win32_libid'
6688  ;;
6689
6690mingw* | pw32*)
6691  # Base MSYS/MinGW do not provide the 'file' command needed by
6692  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6693  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6694  lt_cv_file_magic_cmd='$OBJDUMP -f'
6695  ;;
6696
6697darwin* | rhapsody*)
6698  lt_cv_deplibs_check_method=pass_all
6699  ;;
6700
6701freebsd* | kfreebsd*-gnu | dragonfly*)
6702  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6703    case $host_cpu in
6704    i*86 )
6705      # Not sure whether the presence of OpenBSD here was a mistake.
6706      # Let's accept both of them until this is cleared up.
6707      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6708      lt_cv_file_magic_cmd=/usr/bin/file
6709      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6710      ;;
6711    esac
6712  else
6713    lt_cv_deplibs_check_method=pass_all
6714  fi
6715  ;;
6716
6717gnu*)
6718  lt_cv_deplibs_check_method=pass_all
6719  ;;
6720
6721hpux10.20* | hpux11*)
6722  lt_cv_file_magic_cmd=/usr/bin/file
6723  case $host_cpu in
6724  ia64*)
6725    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6726    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6727    ;;
6728  hppa*64*)
6729    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]'
6730    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6731    ;;
6732  *)
6733    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6734    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6735    ;;
6736  esac
6737  ;;
6738
6739interix3*)
6740  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6741  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6742  ;;
6743
6744irix5* | irix6* | nonstopux*)
6745  case $LD in
6746  *-32|*"-32 ") libmagic=32-bit;;
6747  *-n32|*"-n32 ") libmagic=N32;;
6748  *-64|*"-64 ") libmagic=64-bit;;
6749  *) libmagic=never-match;;
6750  esac
6751  lt_cv_deplibs_check_method=pass_all
6752  ;;
6753
6754# This must be Linux ELF.
6755linux*)
6756  lt_cv_deplibs_check_method=pass_all
6757  ;;
6758
6759netbsd*)
6760  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6761    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6762  else
6763    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6764  fi
6765  ;;
6766
6767newos6*)
6768  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6769  lt_cv_file_magic_cmd=/usr/bin/file
6770  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6771  ;;
6772
6773nto-qnx*)
6774  lt_cv_deplibs_check_method=unknown
6775  ;;
6776
6777openbsd*)
6778  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6779    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6780  else
6781    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6782  fi
6783  ;;
6784
6785osf3* | osf4* | osf5*)
6786  lt_cv_deplibs_check_method=pass_all
6787  ;;
6788
6789solaris*)
6790  lt_cv_deplibs_check_method=pass_all
6791  ;;
6792
6793sysv4 | sysv4.3*)
6794  case $host_vendor in
6795  motorola)
6796    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]'
6797    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6798    ;;
6799  ncr)
6800    lt_cv_deplibs_check_method=pass_all
6801    ;;
6802  sequent)
6803    lt_cv_file_magic_cmd='/bin/file'
6804    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6805    ;;
6806  sni)
6807    lt_cv_file_magic_cmd='/bin/file'
6808    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6809    lt_cv_file_magic_test_file=/lib/libc.so
6810    ;;
6811  siemens)
6812    lt_cv_deplibs_check_method=pass_all
6813    ;;
6814  pc)
6815    lt_cv_deplibs_check_method=pass_all
6816    ;;
6817  esac
6818  ;;
6819
6820sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6821  lt_cv_deplibs_check_method=pass_all
6822  ;;
6823esac
6824
6825fi
6826echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6827echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6828file_magic_cmd=$lt_cv_file_magic_cmd
6829deplibs_check_method=$lt_cv_deplibs_check_method
6830test -z "$deplibs_check_method" && deplibs_check_method=unknown
6831
6832
6833
6834
6835# If no C compiler was specified, use CC.
6836LTCC=${LTCC-"$CC"}
6837
6838# If no C compiler flags were specified, use CFLAGS.
6839LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6840
6841# Allow CC to be a program name with arguments.
6842compiler=$CC
6843
6844# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6845if test "${enable_libtool_lock+set}" = set; then
6846  enableval="$enable_libtool_lock"
6847
6848fi;
6849test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6850
6851# Some flags need to be propagated to the compiler or linker for good
6852# libtool support.
6853case $host in
6854ia64-*-hpux*)
6855  # Find out which ABI we are using.
6856  echo 'int i;' > conftest.$ac_ext
6857  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6858  (eval $ac_compile) 2>&5
6859  ac_status=$?
6860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861  (exit $ac_status); }; then
6862    case `/usr/bin/file conftest.$ac_objext` in
6863    *ELF-32*)
6864      HPUX_IA64_MODE="32"
6865      ;;
6866    *ELF-64*)
6867      HPUX_IA64_MODE="64"
6868      ;;
6869    esac
6870  fi
6871  rm -rf conftest*
6872  ;;
6873*-*-irix6*)
6874  # Find out which ABI we are using.
6875  echo '#line 6875 "configure"' > conftest.$ac_ext
6876  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6877  (eval $ac_compile) 2>&5
6878  ac_status=$?
6879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880  (exit $ac_status); }; then
6881   if test "$lt_cv_prog_gnu_ld" = yes; then
6882    case `/usr/bin/file conftest.$ac_objext` in
6883    *32-bit*)
6884      LD="${LD-ld} -melf32bsmip"
6885      ;;
6886    *N32*)
6887      LD="${LD-ld} -melf32bmipn32"
6888      ;;
6889    *64-bit*)
6890      LD="${LD-ld} -melf64bmip"
6891      ;;
6892    esac
6893   else
6894    case `/usr/bin/file conftest.$ac_objext` in
6895    *32-bit*)
6896      LD="${LD-ld} -32"
6897      ;;
6898    *N32*)
6899      LD="${LD-ld} -n32"
6900      ;;
6901    *64-bit*)
6902      LD="${LD-ld} -64"
6903      ;;
6904    esac
6905   fi
6906  fi
6907  rm -rf conftest*
6908  ;;
6909
6910x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6911  # Find out which ABI we are using.
6912  echo 'int i;' > conftest.$ac_ext
6913  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914  (eval $ac_compile) 2>&5
6915  ac_status=$?
6916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917  (exit $ac_status); }; then
6918    case `/usr/bin/file conftest.o` in
6919    *32-bit*)
6920      case $host in
6921        x86_64-*linux*)
6922          LD="${LD-ld} -m elf_i386"
6923          ;;
6924        ppc64-*linux*|powerpc64-*linux*)
6925          LD="${LD-ld} -m elf32ppclinux"
6926          ;;
6927        s390x-*linux*)
6928          LD="${LD-ld} -m elf_s390"
6929          ;;
6930        sparc64-*linux*)
6931          LD="${LD-ld} -m elf32_sparc"
6932          ;;
6933      esac
6934      ;;
6935    *64-bit*)
6936      case $host in
6937        x86_64-*linux*)
6938          LD="${LD-ld} -m elf_x86_64"
6939          ;;
6940        ppc*-*linux*|powerpc*-*linux*)
6941          LD="${LD-ld} -m elf64ppc"
6942          ;;
6943        s390*-*linux*)
6944          LD="${LD-ld} -m elf64_s390"
6945          ;;
6946        sparc*-*linux*)
6947          LD="${LD-ld} -m elf64_sparc"
6948          ;;
6949      esac
6950      ;;
6951    esac
6952  fi
6953  rm -rf conftest*
6954  ;;
6955
6956*-*-sco3.2v5*)
6957  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6958  SAVE_CFLAGS="$CFLAGS"
6959  CFLAGS="$CFLAGS -belf"
6960  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6961echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6962if test "${lt_cv_cc_needs_belf+set}" = set; then
6963  echo $ECHO_N "(cached) $ECHO_C" >&6
6964else
6965  ac_ext=c
6966ac_cpp='$CPP $CPPFLAGS'
6967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969ac_compiler_gnu=$ac_cv_c_compiler_gnu
6970
6971     cat >conftest.$ac_ext <<_ACEOF
6972/* confdefs.h.  */
6973_ACEOF
6974cat confdefs.h >>conftest.$ac_ext
6975cat >>conftest.$ac_ext <<_ACEOF
6976/* end confdefs.h.  */
6977
6978#ifdef F77_DUMMY_MAIN
6979
6980#  ifdef __cplusplus
6981     extern "C"
6982#  endif
6983   int F77_DUMMY_MAIN() { return 1; }
6984
6985#endif
6986int
6987main ()
6988{
6989
6990  ;
6991  return 0;
6992}
6993_ACEOF
6994rm -f conftest.$ac_objext conftest$ac_exeext
6995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996  (eval $ac_link) 2>conftest.er1
6997  ac_status=$?
6998  grep -v '^ *+' conftest.er1 >conftest.err
6999  rm -f conftest.er1
7000  cat conftest.err >&5
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); } &&
7003         { ac_try='test -z "$ac_c_werror_flag"
7004                         || test ! -s conftest.err'
7005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006  (eval $ac_try) 2>&5
7007  ac_status=$?
7008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009  (exit $ac_status); }; } &&
7010         { ac_try='test -s conftest$ac_exeext'
7011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012  (eval $ac_try) 2>&5
7013  ac_status=$?
7014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015  (exit $ac_status); }; }; then
7016  lt_cv_cc_needs_belf=yes
7017else
7018  echo "$as_me: failed program was:" >&5
7019sed 's/^/| /' conftest.$ac_ext >&5
7020
7021lt_cv_cc_needs_belf=no
7022fi
7023rm -f conftest.err conftest.$ac_objext \
7024      conftest$ac_exeext conftest.$ac_ext
7025     ac_ext=c
7026ac_cpp='$CPP $CPPFLAGS'
7027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7029ac_compiler_gnu=$ac_cv_c_compiler_gnu
7030
7031fi
7032echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7033echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7034  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7035    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7036    CFLAGS="$SAVE_CFLAGS"
7037  fi
7038  ;;
7039sparc*-*solaris*)
7040  # Find out which ABI we are using.
7041  echo 'int i;' > conftest.$ac_ext
7042  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043  (eval $ac_compile) 2>&5
7044  ac_status=$?
7045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046  (exit $ac_status); }; then
7047    case `/usr/bin/file conftest.o` in
7048    *64-bit*)
7049      case $lt_cv_prog_gnu_ld in
7050      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7051      *)    LD="${LD-ld} -64" ;;
7052      esac
7053      ;;
7054    esac
7055  fi
7056  rm -rf conftest*
7057  ;;
7058
7059
7060esac
7061
7062need_locks="$enable_libtool_lock"
7063
7064
7065ac_ext=c
7066ac_cpp='$CPP $CPPFLAGS'
7067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7069ac_compiler_gnu=$ac_cv_c_compiler_gnu
7070echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7071echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7072# On Suns, sometimes $CPP names a directory.
7073if test -n "$CPP" && test -d "$CPP"; then
7074  CPP=
7075fi
7076if test -z "$CPP"; then
7077  if test "${ac_cv_prog_CPP+set}" = set; then
7078  echo $ECHO_N "(cached) $ECHO_C" >&6
7079else
7080      # Double quotes because CPP needs to be expanded
7081    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7082    do
7083      ac_preproc_ok=false
7084for ac_c_preproc_warn_flag in '' yes
7085do
7086  # Use a header file that comes with gcc, so configuring glibc
7087  # with a fresh cross-compiler works.
7088  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7089  # <limits.h> exists even on freestanding compilers.
7090  # On the NeXT, cc -E runs the code through the compiler's parser,
7091  # not just through cpp. "Syntax error" is here to catch this case.
7092  cat >conftest.$ac_ext <<_ACEOF
7093/* confdefs.h.  */
7094_ACEOF
7095cat confdefs.h >>conftest.$ac_ext
7096cat >>conftest.$ac_ext <<_ACEOF
7097/* end confdefs.h.  */
7098#ifdef __STDC__
7099# include <limits.h>
7100#else
7101# include <assert.h>
7102#endif
7103                     Syntax error
7104_ACEOF
7105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7106  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7107  ac_status=$?
7108  grep -v '^ *+' conftest.er1 >conftest.err
7109  rm -f conftest.er1
7110  cat conftest.err >&5
7111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112  (exit $ac_status); } >/dev/null; then
7113  if test -s conftest.err; then
7114    ac_cpp_err=$ac_c_preproc_warn_flag
7115    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7116  else
7117    ac_cpp_err=
7118  fi
7119else
7120  ac_cpp_err=yes
7121fi
7122if test -z "$ac_cpp_err"; then
7123  :
7124else
7125  echo "$as_me: failed program was:" >&5
7126sed 's/^/| /' conftest.$ac_ext >&5
7127
7128  # Broken: fails on valid input.
7129continue
7130fi
7131rm -f conftest.err conftest.$ac_ext
7132
7133  # OK, works on sane cases.  Now check whether non-existent headers
7134  # can be detected and how.
7135  cat >conftest.$ac_ext <<_ACEOF
7136/* confdefs.h.  */
7137_ACEOF
7138cat confdefs.h >>conftest.$ac_ext
7139cat >>conftest.$ac_ext <<_ACEOF
7140/* end confdefs.h.  */
7141#include <ac_nonexistent.h>
7142_ACEOF
7143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7144  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7145  ac_status=$?
7146  grep -v '^ *+' conftest.er1 >conftest.err
7147  rm -f conftest.er1
7148  cat conftest.err >&5
7149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150  (exit $ac_status); } >/dev/null; then
7151  if test -s conftest.err; then
7152    ac_cpp_err=$ac_c_preproc_warn_flag
7153    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7154  else
7155    ac_cpp_err=
7156  fi
7157else
7158  ac_cpp_err=yes
7159fi
7160if test -z "$ac_cpp_err"; then
7161  # Broken: success on invalid input.
7162continue
7163else
7164  echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
7167  # Passes both tests.
7168ac_preproc_ok=:
7169break
7170fi
7171rm -f conftest.err conftest.$ac_ext
7172
7173done
7174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7175rm -f conftest.err conftest.$ac_ext
7176if $ac_preproc_ok; then
7177  break
7178fi
7179
7180    done
7181    ac_cv_prog_CPP=$CPP
7182
7183fi
7184  CPP=$ac_cv_prog_CPP
7185else
7186  ac_cv_prog_CPP=$CPP
7187fi
7188echo "$as_me:$LINENO: result: $CPP" >&5
7189echo "${ECHO_T}$CPP" >&6
7190ac_preproc_ok=false
7191for ac_c_preproc_warn_flag in '' yes
7192do
7193  # Use a header file that comes with gcc, so configuring glibc
7194  # with a fresh cross-compiler works.
7195  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7196  # <limits.h> exists even on freestanding compilers.
7197  # On the NeXT, cc -E runs the code through the compiler's parser,
7198  # not just through cpp. "Syntax error" is here to catch this case.
7199  cat >conftest.$ac_ext <<_ACEOF
7200/* confdefs.h.  */
7201_ACEOF
7202cat confdefs.h >>conftest.$ac_ext
7203cat >>conftest.$ac_ext <<_ACEOF
7204/* end confdefs.h.  */
7205#ifdef __STDC__
7206# include <limits.h>
7207#else
7208# include <assert.h>
7209#endif
7210                     Syntax error
7211_ACEOF
7212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7213  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7214  ac_status=$?
7215  grep -v '^ *+' conftest.er1 >conftest.err
7216  rm -f conftest.er1
7217  cat conftest.err >&5
7218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219  (exit $ac_status); } >/dev/null; then
7220  if test -s conftest.err; then
7221    ac_cpp_err=$ac_c_preproc_warn_flag
7222    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7223  else
7224    ac_cpp_err=
7225  fi
7226else
7227  ac_cpp_err=yes
7228fi
7229if test -z "$ac_cpp_err"; then
7230  :
7231else
7232  echo "$as_me: failed program was:" >&5
7233sed 's/^/| /' conftest.$ac_ext >&5
7234
7235  # Broken: fails on valid input.
7236continue
7237fi
7238rm -f conftest.err conftest.$ac_ext
7239
7240  # OK, works on sane cases.  Now check whether non-existent headers
7241  # can be detected and how.
7242  cat >conftest.$ac_ext <<_ACEOF
7243/* confdefs.h.  */
7244_ACEOF
7245cat confdefs.h >>conftest.$ac_ext
7246cat >>conftest.$ac_ext <<_ACEOF
7247/* end confdefs.h.  */
7248#include <ac_nonexistent.h>
7249_ACEOF
7250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7251  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7252  ac_status=$?
7253  grep -v '^ *+' conftest.er1 >conftest.err
7254  rm -f conftest.er1
7255  cat conftest.err >&5
7256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257  (exit $ac_status); } >/dev/null; then
7258  if test -s conftest.err; then
7259    ac_cpp_err=$ac_c_preproc_warn_flag
7260    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7261  else
7262    ac_cpp_err=
7263  fi
7264else
7265  ac_cpp_err=yes
7266fi
7267if test -z "$ac_cpp_err"; then
7268  # Broken: success on invalid input.
7269continue
7270else
7271  echo "$as_me: failed program was:" >&5
7272sed 's/^/| /' conftest.$ac_ext >&5
7273
7274  # Passes both tests.
7275ac_preproc_ok=:
7276break
7277fi
7278rm -f conftest.err conftest.$ac_ext
7279
7280done
7281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7282rm -f conftest.err conftest.$ac_ext
7283if $ac_preproc_ok; then
7284  :
7285else
7286  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7287See \`config.log' for more details." >&5
7288echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7289See \`config.log' for more details." >&2;}
7290   { (exit 1); exit 1; }; }
7291fi
7292
7293ac_ext=c
7294ac_cpp='$CPP $CPPFLAGS'
7295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7297ac_compiler_gnu=$ac_cv_c_compiler_gnu
7298
7299
7300echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7301echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7302if test "${ac_cv_header_stdc+set}" = set; then
7303  echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305  cat >conftest.$ac_ext <<_ACEOF
7306/* confdefs.h.  */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h.  */
7311#include <stdlib.h>
7312#include <stdarg.h>
7313#include <string.h>
7314#include <float.h>
7315
7316#ifdef F77_DUMMY_MAIN
7317
7318#  ifdef __cplusplus
7319     extern "C"
7320#  endif
7321   int F77_DUMMY_MAIN() { return 1; }
7322
7323#endif
7324int
7325main ()
7326{
7327
7328  ;
7329  return 0;
7330}
7331_ACEOF
7332rm -f conftest.$ac_objext
7333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334  (eval $ac_compile) 2>conftest.er1
7335  ac_status=$?
7336  grep -v '^ *+' conftest.er1 >conftest.err
7337  rm -f conftest.er1
7338  cat conftest.err >&5
7339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340  (exit $ac_status); } &&
7341         { ac_try='test -z "$ac_c_werror_flag"
7342                         || test ! -s conftest.err'
7343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344  (eval $ac_try) 2>&5
7345  ac_status=$?
7346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347  (exit $ac_status); }; } &&
7348         { ac_try='test -s conftest.$ac_objext'
7349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350  (eval $ac_try) 2>&5
7351  ac_status=$?
7352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353  (exit $ac_status); }; }; then
7354  ac_cv_header_stdc=yes
7355else
7356  echo "$as_me: failed program was:" >&5
7357sed 's/^/| /' conftest.$ac_ext >&5
7358
7359ac_cv_header_stdc=no
7360fi
7361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7362
7363if test $ac_cv_header_stdc = yes; then
7364  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7365  cat >conftest.$ac_ext <<_ACEOF
7366/* confdefs.h.  */
7367_ACEOF
7368cat confdefs.h >>conftest.$ac_ext
7369cat >>conftest.$ac_ext <<_ACEOF
7370/* end confdefs.h.  */
7371#include <string.h>
7372
7373_ACEOF
7374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7375  $EGREP "memchr" >/dev/null 2>&1; then
7376  :
7377else
7378  ac_cv_header_stdc=no
7379fi
7380rm -f conftest*
7381
7382fi
7383
7384if test $ac_cv_header_stdc = yes; then
7385  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7386  cat >conftest.$ac_ext <<_ACEOF
7387/* confdefs.h.  */
7388_ACEOF
7389cat confdefs.h >>conftest.$ac_ext
7390cat >>conftest.$ac_ext <<_ACEOF
7391/* end confdefs.h.  */
7392#include <stdlib.h>
7393
7394_ACEOF
7395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7396  $EGREP "free" >/dev/null 2>&1; then
7397  :
7398else
7399  ac_cv_header_stdc=no
7400fi
7401rm -f conftest*
7402
7403fi
7404
7405if test $ac_cv_header_stdc = yes; then
7406  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7407  if test "$cross_compiling" = yes; then
7408  :
7409else
7410  cat >conftest.$ac_ext <<_ACEOF
7411/* confdefs.h.  */
7412_ACEOF
7413cat confdefs.h >>conftest.$ac_ext
7414cat >>conftest.$ac_ext <<_ACEOF
7415/* end confdefs.h.  */
7416#include <ctype.h>
7417#if ((' ' & 0x0FF) == 0x020)
7418# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7419# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7420#else
7421# define ISLOWER(c) \
7422                   (('a' <= (c) && (c) <= 'i') \
7423                     || ('j' <= (c) && (c) <= 'r') \
7424                     || ('s' <= (c) && (c) <= 'z'))
7425# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7426#endif
7427
7428#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7429int
7430main ()
7431{
7432  int i;
7433  for (i = 0; i < 256; i++)
7434    if (XOR (islower (i), ISLOWER (i))
7435        || toupper (i) != TOUPPER (i))
7436      exit(2);
7437  exit (0);
7438}
7439_ACEOF
7440rm -f conftest$ac_exeext
7441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7442  (eval $ac_link) 2>&5
7443  ac_status=$?
7444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447  (eval $ac_try) 2>&5
7448  ac_status=$?
7449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450  (exit $ac_status); }; }; then
7451  :
7452else
7453  echo "$as_me: program exited with status $ac_status" >&5
7454echo "$as_me: failed program was:" >&5
7455sed 's/^/| /' conftest.$ac_ext >&5
7456
7457( exit $ac_status )
7458ac_cv_header_stdc=no
7459fi
7460rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7461fi
7462fi
7463fi
7464echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7465echo "${ECHO_T}$ac_cv_header_stdc" >&6
7466if test $ac_cv_header_stdc = yes; then
7467
7468cat >>confdefs.h <<\_ACEOF
7469#define STDC_HEADERS 1
7470_ACEOF
7471
7472fi
7473
7474# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7485                  inttypes.h stdint.h unistd.h
7486do
7487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7488echo "$as_me:$LINENO: checking for $ac_header" >&5
7489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7490if eval "test \"\${$as_ac_Header+set}\" = set"; then
7491  echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493  cat >conftest.$ac_ext <<_ACEOF
7494/* confdefs.h.  */
7495_ACEOF
7496cat confdefs.h >>conftest.$ac_ext
7497cat >>conftest.$ac_ext <<_ACEOF
7498/* end confdefs.h.  */
7499$ac_includes_default
7500
7501#include <$ac_header>
7502_ACEOF
7503rm -f conftest.$ac_objext
7504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505  (eval $ac_compile) 2>conftest.er1
7506  ac_status=$?
7507  grep -v '^ *+' conftest.er1 >conftest.err
7508  rm -f conftest.er1
7509  cat conftest.err >&5
7510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511  (exit $ac_status); } &&
7512         { ac_try='test -z "$ac_c_werror_flag"
7513                         || test ! -s conftest.err'
7514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515  (eval $ac_try) 2>&5
7516  ac_status=$?
7517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518  (exit $ac_status); }; } &&
7519         { ac_try='test -s conftest.$ac_objext'
7520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521  (eval $ac_try) 2>&5
7522  ac_status=$?
7523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524  (exit $ac_status); }; }; then
7525  eval "$as_ac_Header=yes"
7526else
7527  echo "$as_me: failed program was:" >&5
7528sed 's/^/| /' conftest.$ac_ext >&5
7529
7530eval "$as_ac_Header=no"
7531fi
7532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7533fi
7534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7536if test `eval echo '${'$as_ac_Header'}'` = yes; then
7537  cat >>confdefs.h <<_ACEOF
7538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7539_ACEOF
7540
7541fi
7542
7543done
7544
7545
7546
7547for ac_header in dlfcn.h
7548do
7549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7550if eval "test \"\${$as_ac_Header+set}\" = set"; then
7551  echo "$as_me:$LINENO: checking for $ac_header" >&5
7552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7553if eval "test \"\${$as_ac_Header+set}\" = set"; then
7554  echo $ECHO_N "(cached) $ECHO_C" >&6
7555fi
7556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7558else
7559  # Is the header compilable?
7560echo "$as_me:$LINENO: checking $ac_header usability" >&5
7561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7562cat >conftest.$ac_ext <<_ACEOF
7563/* confdefs.h.  */
7564_ACEOF
7565cat confdefs.h >>conftest.$ac_ext
7566cat >>conftest.$ac_ext <<_ACEOF
7567/* end confdefs.h.  */
7568$ac_includes_default
7569#include <$ac_header>
7570_ACEOF
7571rm -f conftest.$ac_objext
7572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573  (eval $ac_compile) 2>conftest.er1
7574  ac_status=$?
7575  grep -v '^ *+' conftest.er1 >conftest.err
7576  rm -f conftest.er1
7577  cat conftest.err >&5
7578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579  (exit $ac_status); } &&
7580         { ac_try='test -z "$ac_c_werror_flag"
7581                         || test ! -s conftest.err'
7582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583  (eval $ac_try) 2>&5
7584  ac_status=$?
7585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586  (exit $ac_status); }; } &&
7587         { ac_try='test -s conftest.$ac_objext'
7588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589  (eval $ac_try) 2>&5
7590  ac_status=$?
7591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592  (exit $ac_status); }; }; then
7593  ac_header_compiler=yes
7594else
7595  echo "$as_me: failed program was:" >&5
7596sed 's/^/| /' conftest.$ac_ext >&5
7597
7598ac_header_compiler=no
7599fi
7600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7601echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7602echo "${ECHO_T}$ac_header_compiler" >&6
7603
7604# Is the header present?
7605echo "$as_me:$LINENO: checking $ac_header presence" >&5
7606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7607cat >conftest.$ac_ext <<_ACEOF
7608/* confdefs.h.  */
7609_ACEOF
7610cat confdefs.h >>conftest.$ac_ext
7611cat >>conftest.$ac_ext <<_ACEOF
7612/* end confdefs.h.  */
7613#include <$ac_header>
7614_ACEOF
7615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7616  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7617  ac_status=$?
7618  grep -v '^ *+' conftest.er1 >conftest.err
7619  rm -f conftest.er1
7620  cat conftest.err >&5
7621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622  (exit $ac_status); } >/dev/null; then
7623  if test -s conftest.err; then
7624    ac_cpp_err=$ac_c_preproc_warn_flag
7625    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7626  else
7627    ac_cpp_err=
7628  fi
7629else
7630  ac_cpp_err=yes
7631fi
7632if test -z "$ac_cpp_err"; then
7633  ac_header_preproc=yes
7634else
7635  echo "$as_me: failed program was:" >&5
7636sed 's/^/| /' conftest.$ac_ext >&5
7637
7638  ac_header_preproc=no
7639fi
7640rm -f conftest.err conftest.$ac_ext
7641echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7642echo "${ECHO_T}$ac_header_preproc" >&6
7643
7644# So?  What about this header?
7645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7646  yes:no: )
7647    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7648echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7649    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7650echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7651    ac_header_preproc=yes
7652    ;;
7653  no:yes:* )
7654    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7655echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7656    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7657echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7658    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7659echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7660    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7661echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7662    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7664    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7665echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7666    (
7667      cat <<\_ASBOX
7668## --------------------------------------------------------------- ##
7669## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7670## --------------------------------------------------------------- ##
7671_ASBOX
7672    ) |
7673      sed "s/^/$as_me: WARNING:     /" >&2
7674    ;;
7675esac
7676echo "$as_me:$LINENO: checking for $ac_header" >&5
7677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7678if eval "test \"\${$as_ac_Header+set}\" = set"; then
7679  echo $ECHO_N "(cached) $ECHO_C" >&6
7680else
7681  eval "$as_ac_Header=\$ac_header_preproc"
7682fi
7683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7685
7686fi
7687if test `eval echo '${'$as_ac_Header'}'` = yes; then
7688  cat >>confdefs.h <<_ACEOF
7689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7690_ACEOF
7691
7692fi
7693
7694done
7695
7696ac_ext=cc
7697ac_cpp='$CXXCPP $CPPFLAGS'
7698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7701if test -n "$ac_tool_prefix"; then
7702  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7703  do
7704    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7705set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7706echo "$as_me:$LINENO: checking for $ac_word" >&5
7707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7708if test "${ac_cv_prog_CXX+set}" = set; then
7709  echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711  if test -n "$CXX"; then
7712  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7713else
7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717  IFS=$as_save_IFS
7718  test -z "$as_dir" && as_dir=.
7719  for ac_exec_ext in '' $ac_executable_extensions; do
7720  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7722    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723    break 2
7724  fi
7725done
7726done
7727
7728fi
7729fi
7730CXX=$ac_cv_prog_CXX
7731if test -n "$CXX"; then
7732  echo "$as_me:$LINENO: result: $CXX" >&5
7733echo "${ECHO_T}$CXX" >&6
7734else
7735  echo "$as_me:$LINENO: result: no" >&5
7736echo "${ECHO_T}no" >&6
7737fi
7738
7739    test -n "$CXX" && break
7740  done
7741fi
7742if test -z "$CXX"; then
7743  ac_ct_CXX=$CXX
7744  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7745do
7746  # Extract the first word of "$ac_prog", so it can be a program name with args.
7747set dummy $ac_prog; ac_word=$2
7748echo "$as_me:$LINENO: checking for $ac_word" >&5
7749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7750if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7751  echo $ECHO_N "(cached) $ECHO_C" >&6
7752else
7753  if test -n "$ac_ct_CXX"; then
7754  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7755else
7756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757for as_dir in $PATH
7758do
7759  IFS=$as_save_IFS
7760  test -z "$as_dir" && as_dir=.
7761  for ac_exec_ext in '' $ac_executable_extensions; do
7762  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763    ac_cv_prog_ac_ct_CXX="$ac_prog"
7764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765    break 2
7766  fi
7767done
7768done
7769
7770fi
7771fi
7772ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7773if test -n "$ac_ct_CXX"; then
7774  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7775echo "${ECHO_T}$ac_ct_CXX" >&6
7776else
7777  echo "$as_me:$LINENO: result: no" >&5
7778echo "${ECHO_T}no" >&6
7779fi
7780
7781  test -n "$ac_ct_CXX" && break
7782done
7783test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7784
7785  CXX=$ac_ct_CXX
7786fi
7787
7788
7789# Provide some information about the compiler.
7790echo "$as_me:$LINENO:" \
7791     "checking for C++ compiler version" >&5
7792ac_compiler=`set X $ac_compile; echo $2`
7793{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7794  (eval $ac_compiler --version </dev/null >&5) 2>&5
7795  ac_status=$?
7796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797  (exit $ac_status); }
7798{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7799  (eval $ac_compiler -v </dev/null >&5) 2>&5
7800  ac_status=$?
7801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802  (exit $ac_status); }
7803{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7804  (eval $ac_compiler -V </dev/null >&5) 2>&5
7805  ac_status=$?
7806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807  (exit $ac_status); }
7808
7809echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7810echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7811if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7812  echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814  cat >conftest.$ac_ext <<_ACEOF
7815/* confdefs.h.  */
7816_ACEOF
7817cat confdefs.h >>conftest.$ac_ext
7818cat >>conftest.$ac_ext <<_ACEOF
7819/* end confdefs.h.  */
7820
7821#ifdef F77_DUMMY_MAIN
7822
7823#  ifdef __cplusplus
7824     extern "C"
7825#  endif
7826   int F77_DUMMY_MAIN() { return 1; }
7827
7828#endif
7829int
7830main ()
7831{
7832#ifndef __GNUC__
7833       choke me
7834#endif
7835
7836  ;
7837  return 0;
7838}
7839_ACEOF
7840rm -f conftest.$ac_objext
7841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7842  (eval $ac_compile) 2>conftest.er1
7843  ac_status=$?
7844  grep -v '^ *+' conftest.er1 >conftest.err
7845  rm -f conftest.er1
7846  cat conftest.err >&5
7847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848  (exit $ac_status); } &&
7849         { ac_try='test -z "$ac_cxx_werror_flag"
7850                         || test ! -s conftest.err'
7851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852  (eval $ac_try) 2>&5
7853  ac_status=$?
7854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855  (exit $ac_status); }; } &&
7856         { ac_try='test -s conftest.$ac_objext'
7857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858  (eval $ac_try) 2>&5
7859  ac_status=$?
7860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861  (exit $ac_status); }; }; then
7862  ac_compiler_gnu=yes
7863else
7864  echo "$as_me: failed program was:" >&5
7865sed 's/^/| /' conftest.$ac_ext >&5
7866
7867ac_compiler_gnu=no
7868fi
7869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7870ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7871
7872fi
7873echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7874echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7875GXX=`test $ac_compiler_gnu = yes && echo yes`
7876ac_test_CXXFLAGS=${CXXFLAGS+set}
7877ac_save_CXXFLAGS=$CXXFLAGS
7878CXXFLAGS="-g"
7879echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7880echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7881if test "${ac_cv_prog_cxx_g+set}" = set; then
7882  echo $ECHO_N "(cached) $ECHO_C" >&6
7883else
7884  cat >conftest.$ac_ext <<_ACEOF
7885/* confdefs.h.  */
7886_ACEOF
7887cat confdefs.h >>conftest.$ac_ext
7888cat >>conftest.$ac_ext <<_ACEOF
7889/* end confdefs.h.  */
7890
7891#ifdef F77_DUMMY_MAIN
7892
7893#  ifdef __cplusplus
7894     extern "C"
7895#  endif
7896   int F77_DUMMY_MAIN() { return 1; }
7897
7898#endif
7899int
7900main ()
7901{
7902
7903  ;
7904  return 0;
7905}
7906_ACEOF
7907rm -f conftest.$ac_objext
7908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7909  (eval $ac_compile) 2>conftest.er1
7910  ac_status=$?
7911  grep -v '^ *+' conftest.er1 >conftest.err
7912  rm -f conftest.er1
7913  cat conftest.err >&5
7914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915  (exit $ac_status); } &&
7916         { ac_try='test -z "$ac_cxx_werror_flag"
7917                         || test ! -s conftest.err'
7918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919  (eval $ac_try) 2>&5
7920  ac_status=$?
7921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922  (exit $ac_status); }; } &&
7923         { ac_try='test -s conftest.$ac_objext'
7924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925  (eval $ac_try) 2>&5
7926  ac_status=$?
7927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928  (exit $ac_status); }; }; then
7929  ac_cv_prog_cxx_g=yes
7930else
7931  echo "$as_me: failed program was:" >&5
7932sed 's/^/| /' conftest.$ac_ext >&5
7933
7934ac_cv_prog_cxx_g=no
7935fi
7936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7937fi
7938echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7939echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7940if test "$ac_test_CXXFLAGS" = set; then
7941  CXXFLAGS=$ac_save_CXXFLAGS
7942elif test $ac_cv_prog_cxx_g = yes; then
7943  if test "$GXX" = yes; then
7944    CXXFLAGS="-g -O2"
7945  else
7946    CXXFLAGS="-g"
7947  fi
7948else
7949  if test "$GXX" = yes; then
7950    CXXFLAGS="-O2"
7951  else
7952    CXXFLAGS=
7953  fi
7954fi
7955for ac_declaration in \
7956   '' \
7957   'extern "C" void std::exit (int) throw (); using std::exit;' \
7958   'extern "C" void std::exit (int); using std::exit;' \
7959   'extern "C" void exit (int) throw ();' \
7960   'extern "C" void exit (int);' \
7961   'void exit (int);'
7962do
7963  cat >conftest.$ac_ext <<_ACEOF
7964/* confdefs.h.  */
7965_ACEOF
7966cat confdefs.h >>conftest.$ac_ext
7967cat >>conftest.$ac_ext <<_ACEOF
7968/* end confdefs.h.  */
7969$ac_declaration
7970#include <stdlib.h>
7971#ifdef F77_DUMMY_MAIN
7972
7973#  ifdef __cplusplus
7974     extern "C"
7975#  endif
7976   int F77_DUMMY_MAIN() { return 1; }
7977
7978#endif
7979int
7980main ()
7981{
7982exit (42);
7983  ;
7984  return 0;
7985}
7986_ACEOF
7987rm -f conftest.$ac_objext
7988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7989  (eval $ac_compile) 2>conftest.er1
7990  ac_status=$?
7991  grep -v '^ *+' conftest.er1 >conftest.err
7992  rm -f conftest.er1
7993  cat conftest.err >&5
7994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995  (exit $ac_status); } &&
7996         { ac_try='test -z "$ac_cxx_werror_flag"
7997                         || test ! -s conftest.err'
7998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999  (eval $ac_try) 2>&5
8000  ac_status=$?
8001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002  (exit $ac_status); }; } &&
8003         { ac_try='test -s conftest.$ac_objext'
8004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005  (eval $ac_try) 2>&5
8006  ac_status=$?
8007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008  (exit $ac_status); }; }; then
8009  :
8010else
8011  echo "$as_me: failed program was:" >&5
8012sed 's/^/| /' conftest.$ac_ext >&5
8013
8014continue
8015fi
8016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8017  cat >conftest.$ac_ext <<_ACEOF
8018/* confdefs.h.  */
8019_ACEOF
8020cat confdefs.h >>conftest.$ac_ext
8021cat >>conftest.$ac_ext <<_ACEOF
8022/* end confdefs.h.  */
8023$ac_declaration
8024#ifdef F77_DUMMY_MAIN
8025
8026#  ifdef __cplusplus
8027     extern "C"
8028#  endif
8029   int F77_DUMMY_MAIN() { return 1; }
8030
8031#endif
8032int
8033main ()
8034{
8035exit (42);
8036  ;
8037  return 0;
8038}
8039_ACEOF
8040rm -f conftest.$ac_objext
8041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042  (eval $ac_compile) 2>conftest.er1
8043  ac_status=$?
8044  grep -v '^ *+' conftest.er1 >conftest.err
8045  rm -f conftest.er1
8046  cat conftest.err >&5
8047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048  (exit $ac_status); } &&
8049         { ac_try='test -z "$ac_cxx_werror_flag"
8050                         || test ! -s conftest.err'
8051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052  (eval $ac_try) 2>&5
8053  ac_status=$?
8054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055  (exit $ac_status); }; } &&
8056         { ac_try='test -s conftest.$ac_objext'
8057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058  (eval $ac_try) 2>&5
8059  ac_status=$?
8060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061  (exit $ac_status); }; }; then
8062  break
8063else
8064  echo "$as_me: failed program was:" >&5
8065sed 's/^/| /' conftest.$ac_ext >&5
8066
8067fi
8068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8069done
8070rm -f conftest*
8071if test -n "$ac_declaration"; then
8072  echo '#ifdef __cplusplus' >>confdefs.h
8073  echo $ac_declaration      >>confdefs.h
8074  echo '#endif'             >>confdefs.h
8075fi
8076
8077ac_ext=cc
8078ac_cpp='$CXXCPP $CPPFLAGS'
8079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8082
8083depcc="$CXX"  am_compiler_list=
8084
8085echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8086echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8087if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8088  echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8091  # We make a subdir and do the tests there.  Otherwise we can end up
8092  # making bogus files that we don't know about and never remove.  For
8093  # instance it was reported that on HP-UX the gcc test will end up
8094  # making a dummy file named `D' -- because `-MD' means `put the output
8095  # in D'.
8096  mkdir conftest.dir
8097  # Copy depcomp to subdir because otherwise we won't find it if we're
8098  # using a relative directory.
8099  cp "$am_depcomp" conftest.dir
8100  cd conftest.dir
8101  # We will build objects and dependencies in a subdirectory because
8102  # it helps to detect inapplicable dependency modes.  For instance
8103  # both Tru64's cc and ICC support -MD to output dependencies as a
8104  # side effect of compilation, but ICC will put the dependencies in
8105  # the current directory while Tru64 will put them in the object
8106  # directory.
8107  mkdir sub
8108
8109  am_cv_CXX_dependencies_compiler_type=none
8110  if test "$am_compiler_list" = ""; then
8111     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8112  fi
8113  for depmode in $am_compiler_list; do
8114    # Setup a source with many dependencies, because some compilers
8115    # like to wrap large dependency lists on column 80 (with \), and
8116    # we should not choose a depcomp mode which is confused by this.
8117    #
8118    # We need to recreate these files for each test, as the compiler may
8119    # overwrite some of them when testing with obscure command lines.
8120    # This happens at least with the AIX C compiler.
8121    : > sub/conftest.c
8122    for i in 1 2 3 4 5 6; do
8123      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8124      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8125      # Solaris 8's {/usr,}/bin/sh.
8126      touch sub/conftst$i.h
8127    done
8128    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8129
8130    case $depmode in
8131    nosideeffect)
8132      # after this tag, mechanisms are not by side-effect, so they'll
8133      # only be used when explicitly requested
8134      if test "x$enable_dependency_tracking" = xyes; then
8135        continue
8136      else
8137        break
8138      fi
8139      ;;
8140    none) break ;;
8141    esac
8142    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8143    # mode.  It turns out that the SunPro C++ compiler does not properly
8144    # handle `-M -o', and we need to detect this.
8145    if depmode=$depmode \
8146       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8147       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8148       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8149         >/dev/null 2>conftest.err &&
8150       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8151       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8152       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8153      # icc doesn't choke on unknown options, it will just issue warnings
8154      # or remarks (even with -Werror).  So we grep stderr for any message
8155      # that says an option was ignored or not supported.
8156      # When given -MP, icc 7.0 and 7.1 complain thusly:
8157      #   icc: Command line warning: ignoring option '-M'; no argument required
8158      # The diagnosis changed in icc 8.0:
8159      #   icc: Command line remark: option '-MP' not supported
8160      if (grep 'ignoring option' conftest.err ||
8161          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8162        am_cv_CXX_dependencies_compiler_type=$depmode
8163        break
8164      fi
8165    fi
8166  done
8167
8168  cd ..
8169  rm -rf conftest.dir
8170else
8171  am_cv_CXX_dependencies_compiler_type=none
8172fi
8173
8174fi
8175echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8176echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8177CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8178
8179
8180
8181if
8182  test "x$enable_dependency_tracking" != xno \
8183  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8184  am__fastdepCXX_TRUE=
8185  am__fastdepCXX_FALSE='#'
8186else
8187  am__fastdepCXX_TRUE='#'
8188  am__fastdepCXX_FALSE=
8189fi
8190
8191
8192
8193
8194if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8195    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8196    (test "X$CXX" != "Xg++"))) ; then
8197  ac_ext=cc
8198ac_cpp='$CXXCPP $CPPFLAGS'
8199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8202echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8203echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8204if test -z "$CXXCPP"; then
8205  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8206  echo $ECHO_N "(cached) $ECHO_C" >&6
8207else
8208      # Double quotes because CXXCPP needs to be expanded
8209    for CXXCPP in "$CXX -E" "/lib/cpp"
8210    do
8211      ac_preproc_ok=false
8212for ac_cxx_preproc_warn_flag in '' yes
8213do
8214  # Use a header file that comes with gcc, so configuring glibc
8215  # with a fresh cross-compiler works.
8216  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8217  # <limits.h> exists even on freestanding compilers.
8218  # On the NeXT, cc -E runs the code through the compiler's parser,
8219  # not just through cpp. "Syntax error" is here to catch this case.
8220  cat >conftest.$ac_ext <<_ACEOF
8221/* confdefs.h.  */
8222_ACEOF
8223cat confdefs.h >>conftest.$ac_ext
8224cat >>conftest.$ac_ext <<_ACEOF
8225/* end confdefs.h.  */
8226#ifdef __STDC__
8227# include <limits.h>
8228#else
8229# include <assert.h>
8230#endif
8231                     Syntax error
8232_ACEOF
8233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8234  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8235  ac_status=$?
8236  grep -v '^ *+' conftest.er1 >conftest.err
8237  rm -f conftest.er1
8238  cat conftest.err >&5
8239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240  (exit $ac_status); } >/dev/null; then
8241  if test -s conftest.err; then
8242    ac_cpp_err=$ac_cxx_preproc_warn_flag
8243    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8244  else
8245    ac_cpp_err=
8246  fi
8247else
8248  ac_cpp_err=yes
8249fi
8250if test -z "$ac_cpp_err"; then
8251  :
8252else
8253  echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
8256  # Broken: fails on valid input.
8257continue
8258fi
8259rm -f conftest.err conftest.$ac_ext
8260
8261  # OK, works on sane cases.  Now check whether non-existent headers
8262  # can be detected and how.
8263  cat >conftest.$ac_ext <<_ACEOF
8264/* confdefs.h.  */
8265_ACEOF
8266cat confdefs.h >>conftest.$ac_ext
8267cat >>conftest.$ac_ext <<_ACEOF
8268/* end confdefs.h.  */
8269#include <ac_nonexistent.h>
8270_ACEOF
8271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8272  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8273  ac_status=$?
8274  grep -v '^ *+' conftest.er1 >conftest.err
8275  rm -f conftest.er1
8276  cat conftest.err >&5
8277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278  (exit $ac_status); } >/dev/null; then
8279  if test -s conftest.err; then
8280    ac_cpp_err=$ac_cxx_preproc_warn_flag
8281    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8282  else
8283    ac_cpp_err=
8284  fi
8285else
8286  ac_cpp_err=yes
8287fi
8288if test -z "$ac_cpp_err"; then
8289  # Broken: success on invalid input.
8290continue
8291else
8292  echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
8295  # Passes both tests.
8296ac_preproc_ok=:
8297break
8298fi
8299rm -f conftest.err conftest.$ac_ext
8300
8301done
8302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8303rm -f conftest.err conftest.$ac_ext
8304if $ac_preproc_ok; then
8305  break
8306fi
8307
8308    done
8309    ac_cv_prog_CXXCPP=$CXXCPP
8310
8311fi
8312  CXXCPP=$ac_cv_prog_CXXCPP
8313else
8314  ac_cv_prog_CXXCPP=$CXXCPP
8315fi
8316echo "$as_me:$LINENO: result: $CXXCPP" >&5
8317echo "${ECHO_T}$CXXCPP" >&6
8318ac_preproc_ok=false
8319for ac_cxx_preproc_warn_flag in '' yes
8320do
8321  # Use a header file that comes with gcc, so configuring glibc
8322  # with a fresh cross-compiler works.
8323  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8324  # <limits.h> exists even on freestanding compilers.
8325  # On the NeXT, cc -E runs the code through the compiler's parser,
8326  # not just through cpp. "Syntax error" is here to catch this case.
8327  cat >conftest.$ac_ext <<_ACEOF
8328/* confdefs.h.  */
8329_ACEOF
8330cat confdefs.h >>conftest.$ac_ext
8331cat >>conftest.$ac_ext <<_ACEOF
8332/* end confdefs.h.  */
8333#ifdef __STDC__
8334# include <limits.h>
8335#else
8336# include <assert.h>
8337#endif
8338                     Syntax error
8339_ACEOF
8340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8341  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8342  ac_status=$?
8343  grep -v '^ *+' conftest.er1 >conftest.err
8344  rm -f conftest.er1
8345  cat conftest.err >&5
8346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347  (exit $ac_status); } >/dev/null; then
8348  if test -s conftest.err; then
8349    ac_cpp_err=$ac_cxx_preproc_warn_flag
8350    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8351  else
8352    ac_cpp_err=
8353  fi
8354else
8355  ac_cpp_err=yes
8356fi
8357if test -z "$ac_cpp_err"; then
8358  :
8359else
8360  echo "$as_me: failed program was:" >&5
8361sed 's/^/| /' conftest.$ac_ext >&5
8362
8363  # Broken: fails on valid input.
8364continue
8365fi
8366rm -f conftest.err conftest.$ac_ext
8367
8368  # OK, works on sane cases.  Now check whether non-existent headers
8369  # can be detected and how.
8370  cat >conftest.$ac_ext <<_ACEOF
8371/* confdefs.h.  */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h.  */
8376#include <ac_nonexistent.h>
8377_ACEOF
8378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8379  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8380  ac_status=$?
8381  grep -v '^ *+' conftest.er1 >conftest.err
8382  rm -f conftest.er1
8383  cat conftest.err >&5
8384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385  (exit $ac_status); } >/dev/null; then
8386  if test -s conftest.err; then
8387    ac_cpp_err=$ac_cxx_preproc_warn_flag
8388    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8389  else
8390    ac_cpp_err=
8391  fi
8392else
8393  ac_cpp_err=yes
8394fi
8395if test -z "$ac_cpp_err"; then
8396  # Broken: success on invalid input.
8397continue
8398else
8399  echo "$as_me: failed program was:" >&5
8400sed 's/^/| /' conftest.$ac_ext >&5
8401
8402  # Passes both tests.
8403ac_preproc_ok=:
8404break
8405fi
8406rm -f conftest.err conftest.$ac_ext
8407
8408done
8409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8410rm -f conftest.err conftest.$ac_ext
8411if $ac_preproc_ok; then
8412  :
8413else
8414  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8415See \`config.log' for more details." >&5
8416echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8417See \`config.log' for more details." >&2;}
8418   { (exit 1); exit 1; }; }
8419fi
8420
8421ac_ext=cc
8422ac_cpp='$CXXCPP $CPPFLAGS'
8423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8426
8427fi
8428
8429
8430
8431# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8432
8433# find the maximum length of command line arguments
8434echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8435echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8436if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8437  echo $ECHO_N "(cached) $ECHO_C" >&6
8438else
8439    i=0
8440  teststring="ABCD"
8441
8442  case $build_os in
8443  msdosdjgpp*)
8444    # On DJGPP, this test can blow up pretty badly due to problems in libc
8445    # (any single argument exceeding 2000 bytes causes a buffer overrun
8446    # during glob expansion).  Even if it were fixed, the result of this
8447    # check would be larger than it should be.
8448    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8449    ;;
8450
8451  gnu*)
8452    # Under GNU Hurd, this test is not required because there is
8453    # no limit to the length of command line arguments.
8454    # Libtool will interpret -1 as no limit whatsoever
8455    lt_cv_sys_max_cmd_len=-1;
8456    ;;
8457
8458  cygwin* | mingw*)
8459    # On Win9x/ME, this test blows up -- it succeeds, but takes
8460    # about 5 minutes as the teststring grows exponentially.
8461    # Worse, since 9x/ME are not pre-emptively multitasking,
8462    # you end up with a "frozen" computer, even though with patience
8463    # the test eventually succeeds (with a max line length of 256k).
8464    # Instead, let's just punt: use the minimum linelength reported by
8465    # all of the supported platforms: 8192 (on NT/2K/XP).
8466    lt_cv_sys_max_cmd_len=8192;
8467    ;;
8468
8469  amigaos*)
8470    # On AmigaOS with pdksh, this test takes hours, literally.
8471    # So we just punt and use a minimum line length of 8192.
8472    lt_cv_sys_max_cmd_len=8192;
8473    ;;
8474
8475  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8476    # This has been around since 386BSD, at least.  Likely further.
8477    if test -x /sbin/sysctl; then
8478      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8479    elif test -x /usr/sbin/sysctl; then
8480      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8481    else
8482      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8483    fi
8484    # And add a safety zone
8485    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8486    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8487    ;;
8488
8489  interix*)
8490    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8491    lt_cv_sys_max_cmd_len=196608
8492    ;;
8493
8494  osf*)
8495    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8496    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8497    # nice to cause kernel panics so lets avoid the loop below.
8498    # First set a reasonable default.
8499    lt_cv_sys_max_cmd_len=16384
8500    #
8501    if test -x /sbin/sysconfig; then
8502      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8503        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8504      esac
8505    fi
8506    ;;
8507  sco3.2v5*)
8508    lt_cv_sys_max_cmd_len=102400
8509    ;;
8510  sysv5* | sco5v6* | sysv4.2uw2*)
8511    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8512    if test -n "$kargmax"; then
8513      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8514    else
8515      lt_cv_sys_max_cmd_len=32768
8516    fi
8517    ;;
8518  *)
8519    # If test is not a shell built-in, we'll probably end up computing a
8520    # maximum length that is only half of the actual maximum length, but
8521    # we can't tell.
8522    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8523    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8524               = "XX$teststring") >/dev/null 2>&1 &&
8525            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8526            lt_cv_sys_max_cmd_len=$new_result &&
8527            test $i != 17 # 1/2 MB should be enough
8528    do
8529      i=`expr $i + 1`
8530      teststring=$teststring$teststring
8531    done
8532    teststring=
8533    # Add a significant safety factor because C++ compilers can tack on massive
8534    # amounts of additional arguments before passing them to the linker.
8535    # It appears as though 1/2 is a usable value.
8536    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8537    ;;
8538  esac
8539
8540fi
8541
8542if test -n $lt_cv_sys_max_cmd_len ; then
8543  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8544echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8545else
8546  echo "$as_me:$LINENO: result: none" >&5
8547echo "${ECHO_T}none" >&6
8548fi
8549
8550
8551
8552
8553# Check for command to grab the raw symbol name followed by C symbol from nm.
8554echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8555echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8556if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8557  echo $ECHO_N "(cached) $ECHO_C" >&6
8558else
8559
8560# These are sane defaults that work on at least a few old systems.
8561# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8562
8563# Character class describing NM global symbol codes.
8564symcode='[BCDEGRST]'
8565
8566# Regexp to match symbols that can be accessed directly from C.
8567sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8568
8569# Transform an extracted symbol line into a proper C declaration
8570lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8571
8572# Transform an extracted symbol line into symbol name and symbol address
8573lt_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'"
8574
8575# Define system-specific variables.
8576case $host_os in
8577aix*)
8578  symcode='[BCDT]'
8579  ;;
8580cygwin* | mingw* | pw32*)
8581  symcode='[ABCDGISTW]'
8582  ;;
8583hpux*) # Its linker distinguishes data from code symbols
8584  if test "$host_cpu" = ia64; then
8585    symcode='[ABCDEGRST]'
8586  fi
8587  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8588  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'"
8589  ;;
8590linux*)
8591  if test "$host_cpu" = ia64; then
8592    symcode='[ABCDGIRSTW]'
8593    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8594    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'"
8595  fi
8596  ;;
8597irix* | nonstopux*)
8598  symcode='[BCDEGRST]'
8599  ;;
8600osf*)
8601  symcode='[BCDEGQRST]'
8602  ;;
8603solaris*)
8604  symcode='[BDRT]'
8605  ;;
8606sco3.2v5*)
8607  symcode='[DT]'
8608  ;;
8609sysv4.2uw2*)
8610  symcode='[DT]'
8611  ;;
8612sysv5* | sco5v6* | unixware* | OpenUNIX*)
8613  symcode='[ABDT]'
8614  ;;
8615sysv4)
8616  symcode='[DFNSTU]'
8617  ;;
8618esac
8619
8620# Handle CRLF in mingw tool chain
8621opt_cr=
8622case $build_os in
8623mingw*)
8624  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8625  ;;
8626esac
8627
8628# If we're using GNU nm, then use its standard symbol codes.
8629case `$NM -V 2>&1` in
8630*GNU* | *'with BFD'*)
8631  symcode='[ABCDGIRSTW]' ;;
8632esac
8633
8634# Try without a prefix undercore, then with it.
8635for ac_symprfx in "" "_"; do
8636
8637  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8638  symxfrm="\\1 $ac_symprfx\\2 \\2"
8639
8640  # Write the raw and C identifiers.
8641  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8642
8643  # Check to see that the pipe works correctly.
8644  pipe_works=no
8645
8646  rm -f conftest*
8647  cat > conftest.$ac_ext <<EOF
8648#ifdef __cplusplus
8649extern "C" {
8650#endif
8651char nm_test_var;
8652void nm_test_func(){}
8653#ifdef __cplusplus
8654}
8655#endif
8656int main(){nm_test_var='a';nm_test_func();return(0);}
8657EOF
8658
8659  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8660  (eval $ac_compile) 2>&5
8661  ac_status=$?
8662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663  (exit $ac_status); }; then
8664    # Now try to grab the symbols.
8665    nlist=conftest.nm
8666    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8667  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8668  ac_status=$?
8669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670  (exit $ac_status); } && test -s "$nlist"; then
8671      # Try sorting and uniquifying the output.
8672      if sort "$nlist" | uniq > "$nlist"T; then
8673        mv -f "$nlist"T "$nlist"
8674      else
8675        rm -f "$nlist"T
8676      fi
8677
8678      # Make sure that we snagged all the symbols we need.
8679      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8680        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8681          cat <<EOF > conftest.$ac_ext
8682#ifdef __cplusplus
8683extern "C" {
8684#endif
8685
8686EOF
8687          # Now generate the symbol file.
8688          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8689
8690          cat <<EOF >> conftest.$ac_ext
8691#if defined (__STDC__) && __STDC__
8692# define lt_ptr_t void *
8693#else
8694# define lt_ptr_t char *
8695# define const
8696#endif
8697
8698/* The mapping between symbol names and symbols. */
8699const struct {
8700  const char *name;
8701  lt_ptr_t address;
8702}
8703lt_preloaded_symbols[] =
8704{
8705EOF
8706          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8707          cat <<\EOF >> conftest.$ac_ext
8708  {0, (lt_ptr_t) 0}
8709};
8710
8711#ifdef __cplusplus
8712}
8713#endif
8714EOF
8715          # Now try linking the two files.
8716          mv conftest.$ac_objext conftstm.$ac_objext
8717          lt_save_LIBS="$LIBS"
8718          lt_save_CFLAGS="$CFLAGS"
8719          LIBS="conftstm.$ac_objext"
8720          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8721          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722  (eval $ac_link) 2>&5
8723  ac_status=$?
8724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8726            pipe_works=yes
8727          fi
8728          LIBS="$lt_save_LIBS"
8729          CFLAGS="$lt_save_CFLAGS"
8730        else
8731          echo "cannot find nm_test_func in $nlist" >&5
8732        fi
8733      else
8734        echo "cannot find nm_test_var in $nlist" >&5
8735      fi
8736    else
8737      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8738    fi
8739  else
8740    echo "$progname: failed program was:" >&5
8741    cat conftest.$ac_ext >&5
8742  fi
8743  rm -f conftest* conftst*
8744
8745  # Do not use the global_symbol_pipe unless it works.
8746  if test "$pipe_works" = yes; then
8747    break
8748  else
8749    lt_cv_sys_global_symbol_pipe=
8750  fi
8751done
8752
8753fi
8754
8755if test -z "$lt_cv_sys_global_symbol_pipe"; then
8756  lt_cv_sys_global_symbol_to_cdecl=
8757fi
8758if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8759  echo "$as_me:$LINENO: result: failed" >&5
8760echo "${ECHO_T}failed" >&6
8761else
8762  echo "$as_me:$LINENO: result: ok" >&5
8763echo "${ECHO_T}ok" >&6
8764fi
8765
8766echo "$as_me:$LINENO: checking for objdir" >&5
8767echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8768if test "${lt_cv_objdir+set}" = set; then
8769  echo $ECHO_N "(cached) $ECHO_C" >&6
8770else
8771  rm -f .libs 2>/dev/null
8772mkdir .libs 2>/dev/null
8773if test -d .libs; then
8774  lt_cv_objdir=.libs
8775else
8776  # MS-DOS does not allow filenames that begin with a dot.
8777  lt_cv_objdir=_libs
8778fi
8779rmdir .libs 2>/dev/null
8780fi
8781echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8782echo "${ECHO_T}$lt_cv_objdir" >&6
8783objdir=$lt_cv_objdir
8784
8785
8786
8787
8788
8789case $host_os in
8790aix3*)
8791  # AIX sometimes has problems with the GCC collect2 program.  For some
8792  # reason, if we set the COLLECT_NAMES environment variable, the problems
8793  # vanish in a puff of smoke.
8794  if test "X${COLLECT_NAMES+set}" != Xset; then
8795    COLLECT_NAMES=
8796    export COLLECT_NAMES
8797  fi
8798  ;;
8799esac
8800
8801# Sed substitution that helps us do robust quoting.  It backslashifies
8802# metacharacters that are still active within double-quoted strings.
8803Xsed='sed -e 1s/^X//'
8804sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8805
8806# Same as above, but do not quote variable references.
8807double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8808
8809# Sed substitution to delay expansion of an escaped shell variable in a
8810# double_quote_subst'ed string.
8811delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8812
8813# Sed substitution to avoid accidental globbing in evaled expressions
8814no_glob_subst='s/\*/\\\*/g'
8815
8816# Constants:
8817rm="rm -f"
8818
8819# Global variables:
8820default_ofile=libtool
8821can_build_shared=yes
8822
8823# All known linkers require a `.a' archive for static linking (except MSVC,
8824# which needs '.lib').
8825libext=a
8826ltmain="$ac_aux_dir/ltmain.sh"
8827ofile="$default_ofile"
8828with_gnu_ld="$lt_cv_prog_gnu_ld"
8829
8830if test -n "$ac_tool_prefix"; then
8831  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8832set dummy ${ac_tool_prefix}ar; ac_word=$2
8833echo "$as_me:$LINENO: checking for $ac_word" >&5
8834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8835if test "${ac_cv_prog_AR+set}" = set; then
8836  echo $ECHO_N "(cached) $ECHO_C" >&6
8837else
8838  if test -n "$AR"; then
8839  ac_cv_prog_AR="$AR" # Let the user override the test.
8840else
8841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842for as_dir in $PATH
8843do
8844  IFS=$as_save_IFS
8845  test -z "$as_dir" && as_dir=.
8846  for ac_exec_ext in '' $ac_executable_extensions; do
8847  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8848    ac_cv_prog_AR="${ac_tool_prefix}ar"
8849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8850    break 2
8851  fi
8852done
8853done
8854
8855fi
8856fi
8857AR=$ac_cv_prog_AR
8858if test -n "$AR"; then
8859  echo "$as_me:$LINENO: result: $AR" >&5
8860echo "${ECHO_T}$AR" >&6
8861else
8862  echo "$as_me:$LINENO: result: no" >&5
8863echo "${ECHO_T}no" >&6
8864fi
8865
8866fi
8867if test -z "$ac_cv_prog_AR"; then
8868  ac_ct_AR=$AR
8869  # Extract the first word of "ar", so it can be a program name with args.
8870set dummy ar; ac_word=$2
8871echo "$as_me:$LINENO: checking for $ac_word" >&5
8872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8873if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8874  echo $ECHO_N "(cached) $ECHO_C" >&6
8875else
8876  if test -n "$ac_ct_AR"; then
8877  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8878else
8879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880for as_dir in $PATH
8881do
8882  IFS=$as_save_IFS
8883  test -z "$as_dir" && as_dir=.
8884  for ac_exec_ext in '' $ac_executable_extensions; do
8885  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8886    ac_cv_prog_ac_ct_AR="ar"
8887    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8888    break 2
8889  fi
8890done
8891done
8892
8893  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8894fi
8895fi
8896ac_ct_AR=$ac_cv_prog_ac_ct_AR
8897if test -n "$ac_ct_AR"; then
8898  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8899echo "${ECHO_T}$ac_ct_AR" >&6
8900else
8901  echo "$as_me:$LINENO: result: no" >&5
8902echo "${ECHO_T}no" >&6
8903fi
8904
8905  AR=$ac_ct_AR
8906else
8907  AR="$ac_cv_prog_AR"
8908fi
8909
8910if test -n "$ac_tool_prefix"; then
8911  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8912set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8913echo "$as_me:$LINENO: checking for $ac_word" >&5
8914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8915if test "${ac_cv_prog_RANLIB+set}" = set; then
8916  echo $ECHO_N "(cached) $ECHO_C" >&6
8917else
8918  if test -n "$RANLIB"; then
8919  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8920else
8921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922for as_dir in $PATH
8923do
8924  IFS=$as_save_IFS
8925  test -z "$as_dir" && as_dir=.
8926  for ac_exec_ext in '' $ac_executable_extensions; do
8927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8928    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8930    break 2
8931  fi
8932done
8933done
8934
8935fi
8936fi
8937RANLIB=$ac_cv_prog_RANLIB
8938if test -n "$RANLIB"; then
8939  echo "$as_me:$LINENO: result: $RANLIB" >&5
8940echo "${ECHO_T}$RANLIB" >&6
8941else
8942  echo "$as_me:$LINENO: result: no" >&5
8943echo "${ECHO_T}no" >&6
8944fi
8945
8946fi
8947if test -z "$ac_cv_prog_RANLIB"; then
8948  ac_ct_RANLIB=$RANLIB
8949  # Extract the first word of "ranlib", so it can be a program name with args.
8950set dummy ranlib; ac_word=$2
8951echo "$as_me:$LINENO: checking for $ac_word" >&5
8952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8953if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8954  echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956  if test -n "$ac_ct_RANLIB"; then
8957  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8958else
8959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960for as_dir in $PATH
8961do
8962  IFS=$as_save_IFS
8963  test -z "$as_dir" && as_dir=.
8964  for ac_exec_ext in '' $ac_executable_extensions; do
8965  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8966    ac_cv_prog_ac_ct_RANLIB="ranlib"
8967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8968    break 2
8969  fi
8970done
8971done
8972
8973  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8974fi
8975fi
8976ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8977if test -n "$ac_ct_RANLIB"; then
8978  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8979echo "${ECHO_T}$ac_ct_RANLIB" >&6
8980else
8981  echo "$as_me:$LINENO: result: no" >&5
8982echo "${ECHO_T}no" >&6
8983fi
8984
8985  RANLIB=$ac_ct_RANLIB
8986else
8987  RANLIB="$ac_cv_prog_RANLIB"
8988fi
8989
8990if test -n "$ac_tool_prefix"; then
8991  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8992set dummy ${ac_tool_prefix}strip; ac_word=$2
8993echo "$as_me:$LINENO: checking for $ac_word" >&5
8994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8995if test "${ac_cv_prog_STRIP+set}" = set; then
8996  echo $ECHO_N "(cached) $ECHO_C" >&6
8997else
8998  if test -n "$STRIP"; then
8999  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9000else
9001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002for as_dir in $PATH
9003do
9004  IFS=$as_save_IFS
9005  test -z "$as_dir" && as_dir=.
9006  for ac_exec_ext in '' $ac_executable_extensions; do
9007  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9008    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9009    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9010    break 2
9011  fi
9012done
9013done
9014
9015fi
9016fi
9017STRIP=$ac_cv_prog_STRIP
9018if test -n "$STRIP"; then
9019  echo "$as_me:$LINENO: result: $STRIP" >&5
9020echo "${ECHO_T}$STRIP" >&6
9021else
9022  echo "$as_me:$LINENO: result: no" >&5
9023echo "${ECHO_T}no" >&6
9024fi
9025
9026fi
9027if test -z "$ac_cv_prog_STRIP"; then
9028  ac_ct_STRIP=$STRIP
9029  # Extract the first word of "strip", so it can be a program name with args.
9030set dummy strip; ac_word=$2
9031echo "$as_me:$LINENO: checking for $ac_word" >&5
9032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9033if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9034  echo $ECHO_N "(cached) $ECHO_C" >&6
9035else
9036  if test -n "$ac_ct_STRIP"; then
9037  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9038else
9039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040for as_dir in $PATH
9041do
9042  IFS=$as_save_IFS
9043  test -z "$as_dir" && as_dir=.
9044  for ac_exec_ext in '' $ac_executable_extensions; do
9045  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9046    ac_cv_prog_ac_ct_STRIP="strip"
9047    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9048    break 2
9049  fi
9050done
9051done
9052
9053  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9054fi
9055fi
9056ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9057if test -n "$ac_ct_STRIP"; then
9058  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9059echo "${ECHO_T}$ac_ct_STRIP" >&6
9060else
9061  echo "$as_me:$LINENO: result: no" >&5
9062echo "${ECHO_T}no" >&6
9063fi
9064
9065  STRIP=$ac_ct_STRIP
9066else
9067  STRIP="$ac_cv_prog_STRIP"
9068fi
9069
9070
9071old_CC="$CC"
9072old_CFLAGS="$CFLAGS"
9073
9074# Set sane defaults for various variables
9075test -z "$AR" && AR=ar
9076test -z "$AR_FLAGS" && AR_FLAGS=cru
9077test -z "$AS" && AS=as
9078test -z "$CC" && CC=cc
9079test -z "$LTCC" && LTCC=$CC
9080test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9081test -z "$DLLTOOL" && DLLTOOL=dlltool
9082test -z "$LD" && LD=ld
9083test -z "$LN_S" && LN_S="ln -s"
9084test -z "$MAGIC_CMD" && MAGIC_CMD=file
9085test -z "$NM" && NM=nm
9086test -z "$SED" && SED=sed
9087test -z "$OBJDUMP" && OBJDUMP=objdump
9088test -z "$RANLIB" && RANLIB=:
9089test -z "$STRIP" && STRIP=:
9090test -z "$ac_objext" && ac_objext=o
9091
9092# Determine commands to create old-style static archives.
9093old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9094old_postinstall_cmds='chmod 644 $oldlib'
9095old_postuninstall_cmds=
9096
9097if test -n "$RANLIB"; then
9098  case $host_os in
9099  openbsd*)
9100    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9101    ;;
9102  *)
9103    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9104    ;;
9105  esac
9106  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9107fi
9108
9109for cc_temp in $compiler""; do
9110  case $cc_temp in
9111    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9112    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9113    \-*) ;;
9114    *) break;;
9115  esac
9116done
9117cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9118
9119
9120# Only perform the check for file, if the check method requires it
9121case $deplibs_check_method in
9122file_magic*)
9123  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9124    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9125echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9126if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9127  echo $ECHO_N "(cached) $ECHO_C" >&6
9128else
9129  case $MAGIC_CMD in
9130[\\/*] |  ?:[\\/]*)
9131  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9132  ;;
9133*)
9134  lt_save_MAGIC_CMD="$MAGIC_CMD"
9135  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9136  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9137  for ac_dir in $ac_dummy; do
9138    IFS="$lt_save_ifs"
9139    test -z "$ac_dir" && ac_dir=.
9140    if test -f $ac_dir/${ac_tool_prefix}file; then
9141      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9142      if test -n "$file_magic_test_file"; then
9143        case $deplibs_check_method in
9144        "file_magic "*)
9145          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9146          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9147          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9148            $EGREP "$file_magic_regex" > /dev/null; then
9149            :
9150          else
9151            cat <<EOF 1>&2
9152
9153*** Warning: the command libtool uses to detect shared libraries,
9154*** $file_magic_cmd, produces output that libtool cannot recognize.
9155*** The result is that libtool may fail to recognize shared libraries
9156*** as such.  This will affect the creation of libtool libraries that
9157*** depend on shared libraries, but programs linked with such libtool
9158*** libraries will work regardless of this problem.  Nevertheless, you
9159*** may want to report the problem to your system manager and/or to
9160*** bug-libtool@gnu.org
9161
9162EOF
9163          fi ;;
9164        esac
9165      fi
9166      break
9167    fi
9168  done
9169  IFS="$lt_save_ifs"
9170  MAGIC_CMD="$lt_save_MAGIC_CMD"
9171  ;;
9172esac
9173fi
9174
9175MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9176if test -n "$MAGIC_CMD"; then
9177  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9178echo "${ECHO_T}$MAGIC_CMD" >&6
9179else
9180  echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
9182fi
9183
9184if test -z "$lt_cv_path_MAGIC_CMD"; then
9185  if test -n "$ac_tool_prefix"; then
9186    echo "$as_me:$LINENO: checking for file" >&5
9187echo $ECHO_N "checking for file... $ECHO_C" >&6
9188if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9189  echo $ECHO_N "(cached) $ECHO_C" >&6
9190else
9191  case $MAGIC_CMD in
9192[\\/*] |  ?:[\\/]*)
9193  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9194  ;;
9195*)
9196  lt_save_MAGIC_CMD="$MAGIC_CMD"
9197  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9198  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9199  for ac_dir in $ac_dummy; do
9200    IFS="$lt_save_ifs"
9201    test -z "$ac_dir" && ac_dir=.
9202    if test -f $ac_dir/file; then
9203      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9204      if test -n "$file_magic_test_file"; then
9205        case $deplibs_check_method in
9206        "file_magic "*)
9207          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9208          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9209          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9210            $EGREP "$file_magic_regex" > /dev/null; then
9211            :
9212          else
9213            cat <<EOF 1>&2
9214
9215*** Warning: the command libtool uses to detect shared libraries,
9216*** $file_magic_cmd, produces output that libtool cannot recognize.
9217*** The result is that libtool may fail to recognize shared libraries
9218*** as such.  This will affect the creation of libtool libraries that
9219*** depend on shared libraries, but programs linked with such libtool
9220*** libraries will work regardless of this problem.  Nevertheless, you
9221*** may want to report the problem to your system manager and/or to
9222*** bug-libtool@gnu.org
9223
9224EOF
9225          fi ;;
9226        esac
9227      fi
9228      break
9229    fi
9230  done
9231  IFS="$lt_save_ifs"
9232  MAGIC_CMD="$lt_save_MAGIC_CMD"
9233  ;;
9234esac
9235fi
9236
9237MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9238if test -n "$MAGIC_CMD"; then
9239  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9240echo "${ECHO_T}$MAGIC_CMD" >&6
9241else
9242  echo "$as_me:$LINENO: result: no" >&5
9243echo "${ECHO_T}no" >&6
9244fi
9245
9246  else
9247    MAGIC_CMD=:
9248  fi
9249fi
9250
9251  fi
9252  ;;
9253esac
9254
9255enable_dlopen=no
9256enable_win32_dll=no
9257
9258# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9259if test "${enable_libtool_lock+set}" = set; then
9260  enableval="$enable_libtool_lock"
9261
9262fi;
9263test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9264
9265
9266# Check whether --with-pic or --without-pic was given.
9267if test "${with_pic+set}" = set; then
9268  withval="$with_pic"
9269  pic_mode="$withval"
9270else
9271  pic_mode=default
9272fi;
9273test -z "$pic_mode" && pic_mode=default
9274
9275# Use C for the default configuration in the libtool script
9276tagname=
9277lt_save_CC="$CC"
9278ac_ext=c
9279ac_cpp='$CPP $CPPFLAGS'
9280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9282ac_compiler_gnu=$ac_cv_c_compiler_gnu
9283
9284
9285# Source file extension for C test sources.
9286ac_ext=c
9287
9288# Object file extension for compiled C test sources.
9289objext=o
9290objext=$objext
9291
9292# Code to be used in simple compile tests
9293lt_simple_compile_test_code="int some_variable = 0;\n"
9294
9295# Code to be used in simple link tests
9296lt_simple_link_test_code='int main(){return(0);}\n'
9297
9298
9299# If no C compiler was specified, use CC.
9300LTCC=${LTCC-"$CC"}
9301
9302# If no C compiler flags were specified, use CFLAGS.
9303LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9304
9305# Allow CC to be a program name with arguments.
9306compiler=$CC
9307
9308
9309# save warnings/boilerplate of simple test code
9310ac_outfile=conftest.$ac_objext
9311printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9312eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9313_lt_compiler_boilerplate=`cat conftest.err`
9314$rm conftest*
9315
9316ac_outfile=conftest.$ac_objext
9317printf "$lt_simple_link_test_code" >conftest.$ac_ext
9318eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9319_lt_linker_boilerplate=`cat conftest.err`
9320$rm conftest*
9321
9322
9323## CAVEAT EMPTOR:
9324## There is no encapsulation within the following macros, do not change
9325## the running order or otherwise move them around unless you know exactly
9326## what you are doing...
9327
9328lt_prog_compiler_no_builtin_flag=
9329
9330if test "$GCC" = yes; then
9331  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9332
9333
9334echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9335echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9336if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9337  echo $ECHO_N "(cached) $ECHO_C" >&6
9338else
9339  lt_cv_prog_compiler_rtti_exceptions=no
9340  ac_outfile=conftest.$ac_objext
9341   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9342   lt_compiler_flag="-fno-rtti -fno-exceptions"
9343   # Insert the option either (1) after the last *FLAGS variable, or
9344   # (2) before a word containing "conftest.", or (3) at the end.
9345   # Note that $ac_compile itself does not contain backslashes and begins
9346   # with a dollar sign (not a hyphen), so the echo should work correctly.
9347   # The option is referenced via a variable to avoid confusing sed.
9348   lt_compile=`echo "$ac_compile" | $SED \
9349   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9350   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9351   -e 's:$: $lt_compiler_flag:'`
9352   (eval echo "\"\$as_me:9352: $lt_compile\"" >&5)
9353   (eval "$lt_compile" 2>conftest.err)
9354   ac_status=$?
9355   cat conftest.err >&5
9356   echo "$as_me:9356: \$? = $ac_status" >&5
9357   if (exit $ac_status) && test -s "$ac_outfile"; then
9358     # The compiler can only warn and ignore the option if not recognized
9359     # So say no if there are warnings other than the usual output.
9360     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9361     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9362     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9363       lt_cv_prog_compiler_rtti_exceptions=yes
9364     fi
9365   fi
9366   $rm conftest*
9367
9368fi
9369echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9370echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9371
9372if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9373    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9374else
9375    :
9376fi
9377
9378fi
9379
9380lt_prog_compiler_wl=
9381lt_prog_compiler_pic=
9382lt_prog_compiler_static=
9383
9384echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9385echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9386
9387  if test "$GCC" = yes; then
9388    lt_prog_compiler_wl='-Wl,'
9389    lt_prog_compiler_static='-static'
9390
9391    case $host_os in
9392      aix*)
9393      # All AIX code is PIC.
9394      if test "$host_cpu" = ia64; then
9395        # AIX 5 now supports IA64 processor
9396        lt_prog_compiler_static='-Bstatic'
9397      fi
9398      ;;
9399
9400    amigaos*)
9401      # FIXME: we need at least 68020 code to build shared libraries, but
9402      # adding the `-m68020' flag to GCC prevents building anything better,
9403      # like `-m68040'.
9404      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9405      ;;
9406
9407    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9408      # PIC is the default for these OSes.
9409      ;;
9410
9411    mingw* | pw32* | os2*)
9412      # This hack is so that the source file can tell whether it is being
9413      # built for inclusion in a dll (and should export symbols for example).
9414      lt_prog_compiler_pic='-DDLL_EXPORT'
9415      ;;
9416
9417    darwin* | rhapsody*)
9418      # PIC is the default on this platform
9419      # Common symbols not allowed in MH_DYLIB files
9420      lt_prog_compiler_pic='-fno-common'
9421      ;;
9422
9423    interix3*)
9424      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9425      # Instead, we relocate shared libraries at runtime.
9426      ;;
9427
9428    msdosdjgpp*)
9429      # Just because we use GCC doesn't mean we suddenly get shared libraries
9430      # on systems that don't support them.
9431      lt_prog_compiler_can_build_shared=no
9432      enable_shared=no
9433      ;;
9434
9435    sysv4*MP*)
9436      if test -d /usr/nec; then
9437        lt_prog_compiler_pic=-Kconform_pic
9438      fi
9439      ;;
9440
9441    hpux*)
9442      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9443      # not for PA HP-UX.
9444      case $host_cpu in
9445      hppa*64*|ia64*)
9446        # +Z the default
9447        ;;
9448      *)
9449        lt_prog_compiler_pic='-fPIC'
9450        ;;
9451      esac
9452      ;;
9453
9454    *)
9455      lt_prog_compiler_pic='-fPIC'
9456      ;;
9457    esac
9458  else
9459    # PORTME Check for flag to pass linker flags through the system compiler.
9460    case $host_os in
9461    aix*)
9462      lt_prog_compiler_wl='-Wl,'
9463      if test "$host_cpu" = ia64; then
9464        # AIX 5 now supports IA64 processor
9465        lt_prog_compiler_static='-Bstatic'
9466      else
9467        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9468      fi
9469      ;;
9470      darwin*)
9471        # PIC is the default on this platform
9472        # Common symbols not allowed in MH_DYLIB files
9473       case $cc_basename in
9474         xlc*)
9475         lt_prog_compiler_pic='-qnocommon'
9476         lt_prog_compiler_wl='-Wl,'
9477         ;;
9478       esac
9479       ;;
9480
9481    mingw* | pw32* | os2*)
9482      # This hack is so that the source file can tell whether it is being
9483      # built for inclusion in a dll (and should export symbols for example).
9484      lt_prog_compiler_pic='-DDLL_EXPORT'
9485      ;;
9486
9487    hpux9* | hpux10* | hpux11*)
9488      lt_prog_compiler_wl='-Wl,'
9489      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9490      # not for PA HP-UX.
9491      case $host_cpu in
9492      hppa*64*|ia64*)
9493        # +Z the default
9494        ;;
9495      *)
9496        lt_prog_compiler_pic='+Z'
9497        ;;
9498      esac
9499      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9500      lt_prog_compiler_static='${wl}-a ${wl}archive'
9501      ;;
9502
9503    irix5* | irix6* | nonstopux*)
9504      lt_prog_compiler_wl='-Wl,'
9505      # PIC (with -KPIC) is the default.
9506      lt_prog_compiler_static='-non_shared'
9507      ;;
9508
9509    newsos6)
9510      lt_prog_compiler_pic='-KPIC'
9511      lt_prog_compiler_static='-Bstatic'
9512      ;;
9513
9514    linux*)
9515      case $cc_basename in
9516      icc* | ecc*)
9517        lt_prog_compiler_wl='-Wl,'
9518        lt_prog_compiler_pic='-KPIC'
9519        lt_prog_compiler_static='-static'
9520        ;;
9521      pgcc* | pgf77* | pgf90* | pgf95*)
9522        # Portland Group compilers (*not* the Pentium gcc compiler,
9523        # which looks to be a dead project)
9524        lt_prog_compiler_wl='-Wl,'
9525        lt_prog_compiler_pic='-fpic'
9526        lt_prog_compiler_static='-Bstatic'
9527        ;;
9528      ccc*)
9529        lt_prog_compiler_wl='-Wl,'
9530        # All Alpha code is PIC.
9531        lt_prog_compiler_static='-non_shared'
9532        ;;
9533      esac
9534      ;;
9535
9536    osf3* | osf4* | osf5*)
9537      lt_prog_compiler_wl='-Wl,'
9538      # All OSF/1 code is PIC.
9539      lt_prog_compiler_static='-non_shared'
9540      ;;
9541
9542    solaris*)
9543      lt_prog_compiler_pic='-KPIC'
9544      lt_prog_compiler_static='-Bstatic'
9545      case $cc_basename in
9546      f77* | f90* | f95*)
9547        lt_prog_compiler_wl='-Qoption ld ';;
9548      *)
9549        lt_prog_compiler_wl='-Wl,';;
9550      esac
9551      ;;
9552
9553    sunos4*)
9554      lt_prog_compiler_wl='-Qoption ld '
9555      lt_prog_compiler_pic='-PIC'
9556      lt_prog_compiler_static='-Bstatic'
9557      ;;
9558
9559    sysv4 | sysv4.2uw2* | sysv4.3*)
9560      lt_prog_compiler_wl='-Wl,'
9561      lt_prog_compiler_pic='-KPIC'
9562      lt_prog_compiler_static='-Bstatic'
9563      ;;
9564
9565    sysv4*MP*)
9566      if test -d /usr/nec ;then
9567        lt_prog_compiler_pic='-Kconform_pic'
9568        lt_prog_compiler_static='-Bstatic'
9569      fi
9570      ;;
9571
9572    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9573      lt_prog_compiler_wl='-Wl,'
9574      lt_prog_compiler_pic='-KPIC'
9575      lt_prog_compiler_static='-Bstatic'
9576      ;;
9577
9578    unicos*)
9579      lt_prog_compiler_wl='-Wl,'
9580      lt_prog_compiler_can_build_shared=no
9581      ;;
9582
9583    uts4*)
9584      lt_prog_compiler_pic='-pic'
9585      lt_prog_compiler_static='-Bstatic'
9586      ;;
9587
9588    *)
9589      lt_prog_compiler_can_build_shared=no
9590      ;;
9591    esac
9592  fi
9593
9594echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9595echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9596
9597#
9598# Check to make sure the PIC flag actually works.
9599#
9600if test -n "$lt_prog_compiler_pic"; then
9601
9602echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9603echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9604if test "${lt_prog_compiler_pic_works+set}" = set; then
9605  echo $ECHO_N "(cached) $ECHO_C" >&6
9606else
9607  lt_prog_compiler_pic_works=no
9608  ac_outfile=conftest.$ac_objext
9609   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9610   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9611   # Insert the option either (1) after the last *FLAGS variable, or
9612   # (2) before a word containing "conftest.", or (3) at the end.
9613   # Note that $ac_compile itself does not contain backslashes and begins
9614   # with a dollar sign (not a hyphen), so the echo should work correctly.
9615   # The option is referenced via a variable to avoid confusing sed.
9616   lt_compile=`echo "$ac_compile" | $SED \
9617   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9618   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9619   -e 's:$: $lt_compiler_flag:'`
9620   (eval echo "\"\$as_me:9620: $lt_compile\"" >&5)
9621   (eval "$lt_compile" 2>conftest.err)
9622   ac_status=$?
9623   cat conftest.err >&5
9624   echo "$as_me:9624: \$? = $ac_status" >&5
9625   if (exit $ac_status) && test -s "$ac_outfile"; then
9626     # The compiler can only warn and ignore the option if not recognized
9627     # So say no if there are warnings other than the usual output.
9628     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9629     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9630     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9631       lt_prog_compiler_pic_works=yes
9632     fi
9633   fi
9634   $rm conftest*
9635
9636fi
9637echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9638echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9639
9640if test x"$lt_prog_compiler_pic_works" = xyes; then
9641    case $lt_prog_compiler_pic in
9642     "" | " "*) ;;
9643     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9644     esac
9645else
9646    lt_prog_compiler_pic=
9647     lt_prog_compiler_can_build_shared=no
9648fi
9649
9650fi
9651case $host_os in
9652  # For platforms which do not support PIC, -DPIC is meaningless:
9653  *djgpp*)
9654    lt_prog_compiler_pic=
9655    ;;
9656  *)
9657    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9658    ;;
9659esac
9660
9661#
9662# Check to make sure the static flag actually works.
9663#
9664wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9665echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9666echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9667if test "${lt_prog_compiler_static_works+set}" = set; then
9668  echo $ECHO_N "(cached) $ECHO_C" >&6
9669else
9670  lt_prog_compiler_static_works=no
9671   save_LDFLAGS="$LDFLAGS"
9672   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9673   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9674   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9675     # The linker can only warn and ignore the option if not recognized
9676     # So say no if there are warnings
9677     if test -s conftest.err; then
9678       # Append any errors to the config.log.
9679       cat conftest.err 1>&5
9680       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9681       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9682       if diff conftest.exp conftest.er2 >/dev/null; then
9683         lt_prog_compiler_static_works=yes
9684       fi
9685     else
9686       lt_prog_compiler_static_works=yes
9687     fi
9688   fi
9689   $rm conftest*
9690   LDFLAGS="$save_LDFLAGS"
9691
9692fi
9693echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9694echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9695
9696if test x"$lt_prog_compiler_static_works" = xyes; then
9697    :
9698else
9699    lt_prog_compiler_static=
9700fi
9701
9702
9703echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9704echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9705if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9706  echo $ECHO_N "(cached) $ECHO_C" >&6
9707else
9708  lt_cv_prog_compiler_c_o=no
9709   $rm -r conftest 2>/dev/null
9710   mkdir conftest
9711   cd conftest
9712   mkdir out
9713   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9714
9715   lt_compiler_flag="-o out/conftest2.$ac_objext"
9716   # Insert the option either (1) after the last *FLAGS variable, or
9717   # (2) before a word containing "conftest.", or (3) at the end.
9718   # Note that $ac_compile itself does not contain backslashes and begins
9719   # with a dollar sign (not a hyphen), so the echo should work correctly.
9720   lt_compile=`echo "$ac_compile" | $SED \
9721   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9722   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9723   -e 's:$: $lt_compiler_flag:'`
9724   (eval echo "\"\$as_me:9724: $lt_compile\"" >&5)
9725   (eval "$lt_compile" 2>out/conftest.err)
9726   ac_status=$?
9727   cat out/conftest.err >&5
9728   echo "$as_me:9728: \$? = $ac_status" >&5
9729   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9730   then
9731     # The compiler can only warn and ignore the option if not recognized
9732     # So say no if there are warnings
9733     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9734     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9735     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9736       lt_cv_prog_compiler_c_o=yes
9737     fi
9738   fi
9739   chmod u+w . 2>&5
9740   $rm conftest*
9741   # SGI C++ compiler will create directory out/ii_files/ for
9742   # template instantiation
9743   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9744   $rm out/* && rmdir out
9745   cd ..
9746   rmdir conftest
9747   $rm conftest*
9748
9749fi
9750echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9751echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9752
9753
9754hard_links="nottested"
9755if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9756  # do not overwrite the value of need_locks provided by the user
9757  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9758echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9759  hard_links=yes
9760  $rm conftest*
9761  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9762  touch conftest.a
9763  ln conftest.a conftest.b 2>&5 || hard_links=no
9764  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9765  echo "$as_me:$LINENO: result: $hard_links" >&5
9766echo "${ECHO_T}$hard_links" >&6
9767  if test "$hard_links" = no; then
9768    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9769echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9770    need_locks=warn
9771  fi
9772else
9773  need_locks=no
9774fi
9775
9776echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9777echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9778
9779  runpath_var=
9780  allow_undefined_flag=
9781  enable_shared_with_static_runtimes=no
9782  archive_cmds=
9783  archive_expsym_cmds=
9784  old_archive_From_new_cmds=
9785  old_archive_from_expsyms_cmds=
9786  export_dynamic_flag_spec=
9787  whole_archive_flag_spec=
9788  thread_safe_flag_spec=
9789  hardcode_libdir_flag_spec=
9790  hardcode_libdir_flag_spec_ld=
9791  hardcode_libdir_separator=
9792  hardcode_direct=no
9793  hardcode_minus_L=no
9794  hardcode_shlibpath_var=unsupported
9795  link_all_deplibs=unknown
9796  hardcode_automatic=no
9797  module_cmds=
9798  module_expsym_cmds=
9799  always_export_symbols=no
9800  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9801  # include_expsyms should be a list of space-separated symbols to be *always*
9802  # included in the symbol list
9803  include_expsyms=
9804  # exclude_expsyms can be an extended regexp of symbols to exclude
9805  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9806  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9807  # as well as any symbol that contains `d'.
9808  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9809  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9810  # platforms (ab)use it in PIC code, but their linkers get confused if
9811  # the symbol is explicitly referenced.  Since portable code cannot
9812  # rely on this symbol name, it's probably fine to never include it in
9813  # preloaded symbol tables.
9814  extract_expsyms_cmds=
9815  # Just being paranoid about ensuring that cc_basename is set.
9816  for cc_temp in $compiler""; do
9817  case $cc_temp in
9818    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9819    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9820    \-*) ;;
9821    *) break;;
9822  esac
9823done
9824cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9825
9826  case $host_os in
9827  cygwin* | mingw* | pw32*)
9828    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9829    # When not using gcc, we currently assume that we are using
9830    # Microsoft Visual C++.
9831    if test "$GCC" != yes; then
9832      with_gnu_ld=no
9833    fi
9834    ;;
9835  interix*)
9836    # we just hope/assume this is gcc and not c89 (= MSVC++)
9837    with_gnu_ld=yes
9838    ;;
9839  openbsd*)
9840    with_gnu_ld=no
9841    ;;
9842  esac
9843
9844  ld_shlibs=yes
9845  if test "$with_gnu_ld" = yes; then
9846    # If archive_cmds runs LD, not CC, wlarc should be empty
9847    wlarc='${wl}'
9848
9849    # Set some defaults for GNU ld with shared library support. These
9850    # are reset later if shared libraries are not supported. Putting them
9851    # here allows them to be overridden if necessary.
9852    runpath_var=LD_RUN_PATH
9853    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9854    export_dynamic_flag_spec='${wl}--export-dynamic'
9855    # ancient GNU ld didn't support --whole-archive et. al.
9856    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9857        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9858      else
9859        whole_archive_flag_spec=
9860    fi
9861    supports_anon_versioning=no
9862    case `$LD -v 2>/dev/null` in
9863      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9864      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9865      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9866      *\ 2.11.*) ;; # other 2.11 versions
9867      *) supports_anon_versioning=yes ;;
9868    esac
9869
9870    # See if GNU ld supports shared libraries.
9871    case $host_os in
9872    aix3* | aix4* | aix5*)
9873      # On AIX/PPC, the GNU linker is very broken
9874      if test "$host_cpu" != ia64; then
9875        ld_shlibs=no
9876        cat <<EOF 1>&2
9877
9878*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9879*** to be unable to reliably create shared libraries on AIX.
9880*** Therefore, libtool is disabling shared libraries support.  If you
9881*** really care for shared libraries, you may want to modify your PATH
9882*** so that a non-GNU linker is found, and then restart.
9883
9884EOF
9885      fi
9886      ;;
9887
9888    amigaos*)
9889      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)'
9890      hardcode_libdir_flag_spec='-L$libdir'
9891      hardcode_minus_L=yes
9892
9893      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9894      # that the semantics of dynamic libraries on AmigaOS, at least up
9895      # to version 4, is to share data among multiple programs linked
9896      # with the same dynamic library.  Since this doesn't match the
9897      # behavior of shared libraries on other platforms, we can't use
9898      # them.
9899      ld_shlibs=no
9900      ;;
9901
9902    beos*)
9903      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9904        allow_undefined_flag=unsupported
9905        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9906        # support --undefined.  This deserves some investigation.  FIXME
9907        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9908      else
9909        ld_shlibs=no
9910      fi
9911      ;;
9912
9913    cygwin* | mingw* | pw32*)
9914      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9915      # as there is no search path for DLLs.
9916      hardcode_libdir_flag_spec='-L$libdir'
9917      allow_undefined_flag=unsupported
9918      always_export_symbols=no
9919      enable_shared_with_static_runtimes=yes
9920      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9921
9922      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9923        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9924        # If the export-symbols file already is a .def file (1st line
9925        # is EXPORTS), use it as is; otherwise, prepend...
9926        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9927          cp $export_symbols $output_objdir/$soname.def;
9928        else
9929          echo EXPORTS > $output_objdir/$soname.def;
9930          cat $export_symbols >> $output_objdir/$soname.def;
9931        fi~
9932        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9933      else
9934        ld_shlibs=no
9935      fi
9936      ;;
9937
9938    interix3*)
9939      hardcode_direct=no
9940      hardcode_shlibpath_var=no
9941      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9942      export_dynamic_flag_spec='${wl}-E'
9943      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9944      # Instead, shared libraries are loaded at an image base (0x10000000 by
9945      # default) and relocated if they conflict, which is a slow very memory
9946      # consuming and fragmenting process.  To avoid this, we pick a random,
9947      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9948      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9949      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9950      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'
9951      ;;
9952
9953    linux*)
9954      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9955        tmp_addflag=
9956        case $cc_basename,$host_cpu in
9957        pgcc*)                          # Portland Group C compiler
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'
9960          ;;
9961        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9962          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'
9963          tmp_addflag=' $pic_flag -Mnomain' ;;
9964        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9965          tmp_addflag=' -i_dynamic' ;;
9966        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9967          tmp_addflag=' -i_dynamic -nofor_main' ;;
9968        ifc* | ifort*)                  # Intel Fortran compiler
9969          tmp_addflag=' -nofor_main' ;;
9970        esac
9971        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972
9973        if test $supports_anon_versioning = yes; then
9974          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9975  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9976  $echo "local: *; };" >> $output_objdir/$libname.ver~
9977          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9978        fi
9979      else
9980        ld_shlibs=no
9981      fi
9982      ;;
9983
9984    netbsd*)
9985      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9986        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9987        wlarc=
9988      else
9989        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9990        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9991      fi
9992      ;;
9993
9994    solaris*)
9995      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9996        ld_shlibs=no
9997        cat <<EOF 1>&2
9998
9999*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10000*** create shared libraries on Solaris systems.  Therefore, libtool
10001*** is disabling shared libraries support.  We urge you to upgrade GNU
10002*** binutils to release 2.9.1 or newer.  Another option is to modify
10003*** your PATH or compiler configuration so that the native linker is
10004*** used, and then restart.
10005
10006EOF
10007      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10008        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10009        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10010      else
10011        ld_shlibs=no
10012      fi
10013      ;;
10014
10015    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10016      case `$LD -v 2>&1` in
10017        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10018        ld_shlibs=no
10019        cat <<_LT_EOF 1>&2
10020
10021*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10022*** reliably create shared libraries on SCO systems.  Therefore, libtool
10023*** is disabling shared libraries support.  We urge you to upgrade GNU
10024*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10025*** your PATH or compiler configuration so that the native linker is
10026*** used, and then restart.
10027
10028_LT_EOF
10029        ;;
10030        *)
10031          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10032            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10033            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10034            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10035          else
10036            ld_shlibs=no
10037          fi
10038        ;;
10039      esac
10040      ;;
10041
10042    sunos4*)
10043      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10044      wlarc=
10045      hardcode_direct=yes
10046      hardcode_shlibpath_var=no
10047      ;;
10048
10049    *)
10050      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10051        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10053      else
10054        ld_shlibs=no
10055      fi
10056      ;;
10057    esac
10058
10059    if test "$ld_shlibs" = no; then
10060      runpath_var=
10061      hardcode_libdir_flag_spec=
10062      export_dynamic_flag_spec=
10063      whole_archive_flag_spec=
10064    fi
10065  else
10066    # PORTME fill in a description of your system's linker (not GNU ld)
10067    case $host_os in
10068    aix3*)
10069      allow_undefined_flag=unsupported
10070      always_export_symbols=yes
10071      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'
10072      # Note: this linker hardcodes the directories in LIBPATH if there
10073      # are no directories specified by -L.
10074      hardcode_minus_L=yes
10075      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10076        # Neither direct hardcoding nor static linking is supported with a
10077        # broken collect2.
10078        hardcode_direct=unsupported
10079      fi
10080      ;;
10081
10082    aix4* | aix5*)
10083      if test "$host_cpu" = ia64; then
10084        # On IA64, the linker does run time linking by default, so we don't
10085        # have to do anything special.
10086        aix_use_runtimelinking=no
10087        exp_sym_flag='-Bexport'
10088        no_entry_flag=""
10089      else
10090        # If we're using GNU nm, then we don't want the "-C" option.
10091        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10092        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10093          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'
10094        else
10095          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'
10096        fi
10097        aix_use_runtimelinking=no
10098
10099        # Test if we are trying to use run time linking or normal
10100        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10101        # need to do runtime linking.
10102        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10103          for ld_flag in $LDFLAGS; do
10104          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10105            aix_use_runtimelinking=yes
10106            break
10107          fi
10108          done
10109          ;;
10110        esac
10111
10112        exp_sym_flag='-bexport'
10113        no_entry_flag='-bnoentry'
10114      fi
10115
10116      # When large executables or shared objects are built, AIX ld can
10117      # have problems creating the table of contents.  If linking a library
10118      # or program results in "error TOC overflow" add -mminimal-toc to
10119      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10120      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10121
10122      archive_cmds=''
10123      hardcode_direct=yes
10124      hardcode_libdir_separator=':'
10125      link_all_deplibs=yes
10126
10127      if test "$GCC" = yes; then
10128        case $host_os in aix4.[012]|aix4.[012].*)
10129        # We only want to do this on AIX 4.2 and lower, the check
10130        # below for broken collect2 doesn't work under 4.3+
10131          collect2name=`${CC} -print-prog-name=collect2`
10132          if test -f "$collect2name" && \
10133           strings "$collect2name" | grep resolve_lib_name >/dev/null
10134          then
10135          # We have reworked collect2
10136          hardcode_direct=yes
10137          else
10138          # We have old collect2
10139          hardcode_direct=unsupported
10140          # It fails to find uninstalled libraries when the uninstalled
10141          # path is not listed in the libpath.  Setting hardcode_minus_L
10142          # to unsupported forces relinking
10143          hardcode_minus_L=yes
10144          hardcode_libdir_flag_spec='-L$libdir'
10145          hardcode_libdir_separator=
10146          fi
10147          ;;
10148        esac
10149        shared_flag='-shared'
10150        if test "$aix_use_runtimelinking" = yes; then
10151          shared_flag="$shared_flag "'${wl}-G'
10152        fi
10153      else
10154        # not using gcc
10155        if test "$host_cpu" = ia64; then
10156        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10157        # chokes on -Wl,-G. The following line is correct:
10158          shared_flag='-G'
10159        else
10160          if test "$aix_use_runtimelinking" = yes; then
10161            shared_flag='${wl}-G'
10162          else
10163            shared_flag='${wl}-bM:SRE'
10164          fi
10165        fi
10166      fi
10167
10168      # It seems that -bexpall does not export symbols beginning with
10169      # underscore (_), so it is better to generate a list of symbols to export.
10170      always_export_symbols=yes
10171      if test "$aix_use_runtimelinking" = yes; then
10172        # Warning - without using the other runtime loading flags (-brtl),
10173        # -berok will link without error, but may produce a broken library.
10174        allow_undefined_flag='-berok'
10175       # Determine the default libpath from the value encoded in an empty executable.
10176       cat >conftest.$ac_ext <<_ACEOF
10177/* confdefs.h.  */
10178_ACEOF
10179cat confdefs.h >>conftest.$ac_ext
10180cat >>conftest.$ac_ext <<_ACEOF
10181/* end confdefs.h.  */
10182
10183#ifdef F77_DUMMY_MAIN
10184
10185#  ifdef __cplusplus
10186     extern "C"
10187#  endif
10188   int F77_DUMMY_MAIN() { return 1; }
10189
10190#endif
10191int
10192main ()
10193{
10194
10195  ;
10196  return 0;
10197}
10198_ACEOF
10199rm -f conftest.$ac_objext conftest$ac_exeext
10200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201  (eval $ac_link) 2>conftest.er1
10202  ac_status=$?
10203  grep -v '^ *+' conftest.er1 >conftest.err
10204  rm -f conftest.er1
10205  cat conftest.err >&5
10206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207  (exit $ac_status); } &&
10208         { ac_try='test -z "$ac_c_werror_flag"
10209                         || test ! -s conftest.err'
10210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211  (eval $ac_try) 2>&5
10212  ac_status=$?
10213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214  (exit $ac_status); }; } &&
10215         { ac_try='test -s conftest$ac_exeext'
10216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217  (eval $ac_try) 2>&5
10218  ac_status=$?
10219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220  (exit $ac_status); }; }; then
10221
10222aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10223}'`
10224# Check for a 64-bit object if we didn't find anything.
10225if 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; }
10226}'`; fi
10227else
10228  echo "$as_me: failed program was:" >&5
10229sed 's/^/| /' conftest.$ac_ext >&5
10230
10231fi
10232rm -f conftest.err conftest.$ac_objext \
10233      conftest$ac_exeext conftest.$ac_ext
10234if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10235
10236       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10237        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"
10238       else
10239        if test "$host_cpu" = ia64; then
10240          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10241          allow_undefined_flag="-z nodefs"
10242          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"
10243        else
10244         # Determine the default libpath from the value encoded in an empty executable.
10245         cat >conftest.$ac_ext <<_ACEOF
10246/* confdefs.h.  */
10247_ACEOF
10248cat confdefs.h >>conftest.$ac_ext
10249cat >>conftest.$ac_ext <<_ACEOF
10250/* end confdefs.h.  */
10251
10252#ifdef F77_DUMMY_MAIN
10253
10254#  ifdef __cplusplus
10255     extern "C"
10256#  endif
10257   int F77_DUMMY_MAIN() { return 1; }
10258
10259#endif
10260int
10261main ()
10262{
10263
10264  ;
10265  return 0;
10266}
10267_ACEOF
10268rm -f conftest.$ac_objext conftest$ac_exeext
10269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10270  (eval $ac_link) 2>conftest.er1
10271  ac_status=$?
10272  grep -v '^ *+' conftest.er1 >conftest.err
10273  rm -f conftest.er1
10274  cat conftest.err >&5
10275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276  (exit $ac_status); } &&
10277         { ac_try='test -z "$ac_c_werror_flag"
10278                         || test ! -s conftest.err'
10279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280  (eval $ac_try) 2>&5
10281  ac_status=$?
10282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283  (exit $ac_status); }; } &&
10284         { ac_try='test -s conftest$ac_exeext'
10285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286  (eval $ac_try) 2>&5
10287  ac_status=$?
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); }; }; then
10290
10291aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10292}'`
10293# Check for a 64-bit object if we didn't find anything.
10294if 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; }
10295}'`; fi
10296else
10297  echo "$as_me: failed program was:" >&5
10298sed 's/^/| /' conftest.$ac_ext >&5
10299
10300fi
10301rm -f conftest.err conftest.$ac_objext \
10302      conftest$ac_exeext conftest.$ac_ext
10303if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10304
10305         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10306          # Warning - without using the other run time loading flags,
10307          # -berok will link without error, but may produce a broken library.
10308          no_undefined_flag=' ${wl}-bernotok'
10309          allow_undefined_flag=' ${wl}-berok'
10310          # Exported symbols can be pulled into shared objects from archives
10311          whole_archive_flag_spec='$convenience'
10312          archive_cmds_need_lc=yes
10313          # This is similar to how AIX traditionally builds its shared libraries.
10314          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'
10315        fi
10316      fi
10317      ;;
10318
10319    amigaos*)
10320      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)'
10321      hardcode_libdir_flag_spec='-L$libdir'
10322      hardcode_minus_L=yes
10323      # see comment about different semantics on the GNU ld section
10324      ld_shlibs=no
10325      ;;
10326
10327    bsdi[45]*)
10328      export_dynamic_flag_spec=-rdynamic
10329      ;;
10330
10331    cygwin* | mingw* | pw32*)
10332      # When not using gcc, we currently assume that we are using
10333      # Microsoft Visual C++.
10334      # hardcode_libdir_flag_spec is actually meaningless, as there is
10335      # no search path for DLLs.
10336      hardcode_libdir_flag_spec=' '
10337      allow_undefined_flag=unsupported
10338      # Tell ltmain to make .lib files, not .a files.
10339      libext=lib
10340      # Tell ltmain to make .dll files, not .so files.
10341      shrext_cmds=".dll"
10342      # FIXME: Setting linknames here is a bad hack.
10343      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10344      # The linker will automatically build a .lib file if we build a DLL.
10345      old_archive_From_new_cmds='true'
10346      # FIXME: Should let the user specify the lib program.
10347      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10348      fix_srcfile_path='`cygpath -w "$srcfile"`'
10349      enable_shared_with_static_runtimes=yes
10350      ;;
10351
10352    darwin* | rhapsody*)
10353      case $host_os in
10354        rhapsody* | darwin1.[012])
10355         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10356         ;;
10357       *) # Darwin 1.3 on
10358         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10359           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10360         else
10361           case ${MACOSX_DEPLOYMENT_TARGET} in
10362             10.[012])
10363               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10364               ;;
10365             10.*)
10366               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10367               ;;
10368           esac
10369         fi
10370         ;;
10371      esac
10372      archive_cmds_need_lc=no
10373      hardcode_direct=no
10374      hardcode_automatic=yes
10375      hardcode_shlibpath_var=unsupported
10376      whole_archive_flag_spec=''
10377      link_all_deplibs=yes
10378    if test "$GCC" = yes ; then
10379        output_verbose_link_cmd='echo'
10380        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10381      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10382      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10383      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}'
10384      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}'
10385    else
10386      case $cc_basename in
10387        xlc*)
10388         output_verbose_link_cmd='echo'
10389         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10390         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10391          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10392         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}'
10393          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}'
10394          ;;
10395       *)
10396         ld_shlibs=no
10397          ;;
10398      esac
10399    fi
10400      ;;
10401
10402    dgux*)
10403      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10404      hardcode_libdir_flag_spec='-L$libdir'
10405      hardcode_shlibpath_var=no
10406      ;;
10407
10408    freebsd1*)
10409      ld_shlibs=no
10410      ;;
10411
10412    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10413    # support.  Future versions do this automatically, but an explicit c++rt0.o
10414    # does not break anything, and helps significantly (at the cost of a little
10415    # extra space).
10416    freebsd2.2*)
10417      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10418      hardcode_libdir_flag_spec='-R$libdir'
10419      hardcode_direct=yes
10420      hardcode_shlibpath_var=no
10421      ;;
10422
10423    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10424    freebsd2*)
10425      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10426      hardcode_direct=yes
10427      hardcode_minus_L=yes
10428      hardcode_shlibpath_var=no
10429      ;;
10430
10431    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10432    freebsd* | kfreebsd*-gnu | dragonfly*)
10433      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10434      hardcode_libdir_flag_spec='-R$libdir'
10435      hardcode_direct=yes
10436      hardcode_shlibpath_var=no
10437      ;;
10438
10439    hpux9*)
10440      if test "$GCC" = yes; then
10441        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'
10442      else
10443        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'
10444      fi
10445      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10446      hardcode_libdir_separator=:
10447      hardcode_direct=yes
10448
10449      # hardcode_minus_L: Not really in the search PATH,
10450      # but as the default location of the library.
10451      hardcode_minus_L=yes
10452      export_dynamic_flag_spec='${wl}-E'
10453      ;;
10454
10455    hpux10*)
10456      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10457        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10458      else
10459        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10460      fi
10461      if test "$with_gnu_ld" = no; then
10462        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10463        hardcode_libdir_separator=:
10464
10465        hardcode_direct=yes
10466        export_dynamic_flag_spec='${wl}-E'
10467
10468        # hardcode_minus_L: Not really in the search PATH,
10469        # but as the default location of the library.
10470        hardcode_minus_L=yes
10471      fi
10472      ;;
10473
10474    hpux11*)
10475      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10476        case $host_cpu in
10477        hppa*64*)
10478          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10479          ;;
10480        ia64*)
10481          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10482          ;;
10483        *)
10484          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10485          ;;
10486        esac
10487      else
10488        case $host_cpu in
10489        hppa*64*)
10490          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10491          ;;
10492        ia64*)
10493          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10494          ;;
10495        *)
10496          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10497          ;;
10498        esac
10499      fi
10500      if test "$with_gnu_ld" = no; then
10501        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10502        hardcode_libdir_separator=:
10503
10504        case $host_cpu in
10505        hppa*64*|ia64*)
10506          hardcode_libdir_flag_spec_ld='+b $libdir'
10507          hardcode_direct=no
10508          hardcode_shlibpath_var=no
10509          ;;
10510        *)
10511          hardcode_direct=yes
10512          export_dynamic_flag_spec='${wl}-E'
10513
10514          # hardcode_minus_L: Not really in the search PATH,
10515          # but as the default location of the library.
10516          hardcode_minus_L=yes
10517          ;;
10518        esac
10519      fi
10520      ;;
10521
10522    irix5* | irix6* | nonstopux*)
10523      if test "$GCC" = yes; then
10524        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'
10525      else
10526        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'
10527        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10528      fi
10529      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10530      hardcode_libdir_separator=:
10531      link_all_deplibs=yes
10532      ;;
10533
10534    netbsd*)
10535      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10536        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10537      else
10538        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10539      fi
10540      hardcode_libdir_flag_spec='-R$libdir'
10541      hardcode_direct=yes
10542      hardcode_shlibpath_var=no
10543      ;;
10544
10545    newsos6)
10546      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10547      hardcode_direct=yes
10548      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10549      hardcode_libdir_separator=:
10550      hardcode_shlibpath_var=no
10551      ;;
10552
10553    openbsd*)
10554      hardcode_direct=yes
10555      hardcode_shlibpath_var=no
10556      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10557        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10558        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10559        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10560        export_dynamic_flag_spec='${wl}-E'
10561      else
10562       case $host_os in
10563         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10564           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10565           hardcode_libdir_flag_spec='-R$libdir'
10566           ;;
10567         *)
10568           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10569           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10570           ;;
10571       esac
10572      fi
10573      ;;
10574
10575    os2*)
10576      hardcode_libdir_flag_spec='-L$libdir'
10577      hardcode_minus_L=yes
10578      allow_undefined_flag=unsupported
10579      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'
10580      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10581      ;;
10582
10583    osf3*)
10584      if test "$GCC" = yes; then
10585        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10586        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'
10587      else
10588        allow_undefined_flag=' -expect_unresolved \*'
10589        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'
10590      fi
10591      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10592      hardcode_libdir_separator=:
10593      ;;
10594
10595    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10596      if test "$GCC" = yes; then
10597        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10598        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'
10599        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10600      else
10601        allow_undefined_flag=' -expect_unresolved \*'
10602        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'
10603        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10604        $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'
10605
10606        # Both c and cxx compiler support -rpath directly
10607        hardcode_libdir_flag_spec='-rpath $libdir'
10608      fi
10609      hardcode_libdir_separator=:
10610      ;;
10611
10612    solaris*)
10613      no_undefined_flag=' -z text'
10614      if test "$GCC" = yes; then
10615        wlarc='${wl}'
10616        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10617        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10618          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10619      else
10620        wlarc=''
10621        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10623        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10624      fi
10625      hardcode_libdir_flag_spec='-R$libdir'
10626      hardcode_shlibpath_var=no
10627      case $host_os in
10628      solaris2.[0-5] | solaris2.[0-5].*) ;;
10629      *)
10630        # The compiler driver will combine linker options so we
10631        # cannot just pass the convience library names through
10632        # without $wl, iff we do not link with $LD.
10633        # Luckily, gcc supports the same syntax we need for Sun Studio.
10634        # Supported since Solaris 2.6 (maybe 2.5.1?)
10635        case $wlarc in
10636        '')
10637          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10638        *)
10639          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' ;;
10640        esac ;;
10641      esac
10642      link_all_deplibs=yes
10643      ;;
10644
10645    sunos4*)
10646      if test "x$host_vendor" = xsequent; then
10647        # Use $CC to link under sequent, because it throws in some extra .o
10648        # files that make .init and .fini sections work.
10649        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10650      else
10651        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10652      fi
10653      hardcode_libdir_flag_spec='-L$libdir'
10654      hardcode_direct=yes
10655      hardcode_minus_L=yes
10656      hardcode_shlibpath_var=no
10657      ;;
10658
10659    sysv4)
10660      case $host_vendor in
10661        sni)
10662          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10663          hardcode_direct=yes # is this really true???
10664        ;;
10665        siemens)
10666          ## LD is ld it makes a PLAMLIB
10667          ## CC just makes a GrossModule.
10668          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10669          reload_cmds='$CC -r -o $output$reload_objs'
10670          hardcode_direct=no
10671        ;;
10672        motorola)
10673          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10674          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10675        ;;
10676      esac
10677      runpath_var='LD_RUN_PATH'
10678      hardcode_shlibpath_var=no
10679      ;;
10680
10681    sysv4.3*)
10682      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10683      hardcode_shlibpath_var=no
10684      export_dynamic_flag_spec='-Bexport'
10685      ;;
10686
10687    sysv4*MP*)
10688      if test -d /usr/nec; then
10689        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10690        hardcode_shlibpath_var=no
10691        runpath_var=LD_RUN_PATH
10692        hardcode_runpath_var=yes
10693        ld_shlibs=yes
10694      fi
10695      ;;
10696
10697    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10698      no_undefined_flag='${wl}-z,text'
10699      archive_cmds_need_lc=no
10700      hardcode_shlibpath_var=no
10701      runpath_var='LD_RUN_PATH'
10702
10703      if test "$GCC" = yes; then
10704        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10705        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10706      else
10707        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10709      fi
10710      ;;
10711
10712    sysv5* | sco3.2v5* | sco5v6*)
10713      # Note: We can NOT use -z defs as we might desire, because we do not
10714      # link with -lc, and that would cause any symbols used from libc to
10715      # always be unresolved, which means just about no library would
10716      # ever link correctly.  If we're not using GNU ld we use -z text
10717      # though, which does catch some bad symbols but isn't as heavy-handed
10718      # as -z defs.
10719      no_undefined_flag='${wl}-z,text'
10720      allow_undefined_flag='${wl}-z,nodefs'
10721      archive_cmds_need_lc=no
10722      hardcode_shlibpath_var=no
10723      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10724      hardcode_libdir_separator=':'
10725      link_all_deplibs=yes
10726      export_dynamic_flag_spec='${wl}-Bexport'
10727      runpath_var='LD_RUN_PATH'
10728
10729      if test "$GCC" = yes; then
10730        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10731        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10732      else
10733        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10734        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10735      fi
10736      ;;
10737
10738    uts4*)
10739      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10740      hardcode_libdir_flag_spec='-L$libdir'
10741      hardcode_shlibpath_var=no
10742      ;;
10743
10744    *)
10745      ld_shlibs=no
10746      ;;
10747    esac
10748  fi
10749
10750echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10751echo "${ECHO_T}$ld_shlibs" >&6
10752test "$ld_shlibs" = no && can_build_shared=no
10753
10754#
10755# Do we need to explicitly link libc?
10756#
10757case "x$archive_cmds_need_lc" in
10758x|xyes)
10759  # Assume -lc should be added
10760  archive_cmds_need_lc=yes
10761
10762  if test "$enable_shared" = yes && test "$GCC" = yes; then
10763    case $archive_cmds in
10764    *'~'*)
10765      # FIXME: we may have to deal with multi-command sequences.
10766      ;;
10767    '$CC '*)
10768      # Test whether the compiler implicitly links with -lc since on some
10769      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10770      # to ld, don't add -lc before -lgcc.
10771      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10772echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10773      $rm conftest*
10774      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10775
10776      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777  (eval $ac_compile) 2>&5
10778  ac_status=$?
10779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780  (exit $ac_status); } 2>conftest.err; then
10781