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

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

temporarily committing release candidate

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