source: ThirdParty/HSL/trunk/configure @ 3101

Last change on this file since 3101 was 3101, checked in by stefan, 8 years ago

conditional addition of dependent libraries into project libs via LIBADD

  • Property svn:executable set to *
File size: 892.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 1.4.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package BuildTools which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='1.4'
433PACKAGE_STRING='ThirdPartyHSL 1.4'
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 METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE BUILD_COINHSL_TRUE BUILD_COINHSL_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_FC_set=${FC+set}
981ac_env_FC_value=$FC
982ac_cv_env_FC_set=${FC+set}
983ac_cv_env_FC_value=$FC
984ac_env_FCFLAGS_set=${FCFLAGS+set}
985ac_env_FCFLAGS_value=$FCFLAGS
986ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
987ac_cv_env_FCFLAGS_value=$FCFLAGS
988ac_env_CPP_set=${CPP+set}
989ac_env_CPP_value=$CPP
990ac_cv_env_CPP_set=${CPP+set}
991ac_cv_env_CPP_value=$CPP
992ac_env_CXX_set=${CXX+set}
993ac_env_CXX_value=$CXX
994ac_cv_env_CXX_set=${CXX+set}
995ac_cv_env_CXX_value=$CXX
996ac_env_CXXFLAGS_set=${CXXFLAGS+set}
997ac_env_CXXFLAGS_value=$CXXFLAGS
998ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
999ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1000ac_env_CXXCPP_set=${CXXCPP+set}
1001ac_env_CXXCPP_value=$CXXCPP
1002ac_cv_env_CXXCPP_set=${CXXCPP+set}
1003ac_cv_env_CXXCPP_value=$CXXCPP
1004
1005#
1006# Report the --help message.
1007#
1008if test "$ac_init_help" = "long"; then
1009  # Omit some internal or obsolete options to make the list less imposing.
1010  # This message is too long to be a string in the A/UX 3.1 sh.
1011  cat <<_ACEOF
1012\`configure' configures ThirdPartyHSL 1.4 to adapt to many kinds of systems.
1013
1014Usage: $0 [OPTION]... [VAR=VALUE]...
1015
1016To assign environment variables (e.g., CC, CFLAGS...), specify them as
1017VAR=VALUE.  See below for descriptions of some of the useful variables.
1018
1019Defaults for the options are specified in brackets.
1020
1021Configuration:
1022  -h, --help              display this help and exit
1023      --help=short        display options specific to this package
1024      --help=recursive    display the short help of all the included packages
1025  -V, --version           display version information and exit
1026  -q, --quiet, --silent   do not print \`checking...' messages
1027      --cache-file=FILE   cache test results in FILE [disabled]
1028  -C, --config-cache      alias for \`--cache-file=config.cache'
1029  -n, --no-create         do not create output files
1030      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1031
1032_ACEOF
1033
1034  cat <<_ACEOF
1035Installation directories:
1036  --prefix=PREFIX         install architecture-independent files in PREFIX
1037                          [$ac_default_prefix]
1038  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1039                          [PREFIX]
1040
1041By default, \`make install' will install all the files in
1042\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1043an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1044for instance \`--prefix=\$HOME'.
1045
1046For better control, use the options below.
1047
1048Fine tuning of the installation directories:
1049  --bindir=DIR           user executables [EPREFIX/bin]
1050  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1051  --libexecdir=DIR       program executables [EPREFIX/libexec]
1052  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1053  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1054  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1055  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1056  --libdir=DIR           object code libraries [EPREFIX/lib]
1057  --includedir=DIR       C header files [PREFIX/include]
1058  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1059  --infodir=DIR          info documentation [PREFIX/info]
1060  --mandir=DIR           man documentation [PREFIX/man]
1061_ACEOF
1062
1063  cat <<\_ACEOF
1064
1065Program names:
1066  --program-prefix=PREFIX            prepend PREFIX to installed program names
1067  --program-suffix=SUFFIX            append SUFFIX to installed program names
1068  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1069
1070System types:
1071  --build=BUILD     configure for building on BUILD [guessed]
1072  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1073_ACEOF
1074fi
1075
1076if test -n "$ac_init_help"; then
1077  case $ac_init_help in
1078     short | recursive ) echo "Configuration of ThirdPartyHSL 1.4:";;
1079   esac
1080  cat <<\_ACEOF
1081
1082Optional Features:
1083  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1084  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1085  --enable-loadable-library
1086                          compile stand-alone shared library for delayed
1087                          loading
1088  --enable-debug          compile all projects with debug options tests
1089                          (implies --disable-shared)
1090  --enable-debug-hsl compile project HSL with debug compiler flags
1091
1092  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1093  --disable-pkg-config    disable use of pkg-config (if available)
1094  --enable-static[=PKGS]
1095                          build static libraries [default=no]
1096  --disable-dependency-tracking  speeds up one-time build
1097  --enable-dependency-tracking   do not reject slow dependency extractors
1098  --enable-maintainer-mode  enable make rules and dependencies not useful
1099                          (and sometimes confusing) to the casual installer
1100  --enable-shared[=PKGS]
1101                          build shared libraries [default=yes]
1102  --enable-fast-install[=PKGS]
1103                          optimize for fast installation [default=yes]
1104  --disable-libtool-lock  avoid locking (might break parallel builds)
1105  --disable-interpackage-dependencies
1106                          disables deduction of Makefile dependencies from
1107                          package linker flags
1108
1109Optional Packages:
1110  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1111  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1112  --with-hsl-verbosity specify the debug verbosity level for project HSL
1113  --with-hsl-checklevel specify the sanity check level for project HSL
1114  --with-coin-instdir     prefix of installation directory for precompiled
1115                          COIN packages
1116  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1117  --with-pic              try to use only PIC/non-PIC objects [default=use
1118                          both]
1119  --with-tags[=TAGS]
1120                          include additional configurations [automatic]
1121  --with-blas             specify BLAS library (or BUILD to enforce use of
1122                          ThirdParty/Blas)
1123
1124  --with-blas-lib linker flags for using package Blas
1125  --with-blas-incdir directory with header files for using package Blas
1126  --with-blas-datadir directory with data files for using package Blas
1127  --with-metis-lib linker flags for using package Metis
1128  --with-metis-incdir directory with header files for using package Metis
1129  --with-metis-datadir directory with data files for using package Metis
1130
1131Some influential environment variables:
1132  CDEFS       Additional -D flags to be used when compiling C code.
1133  ADD_CFLAGS  Additional C compiler options
1134  DBG_CFLAGS  Debug C compiler options
1135  OPT_CFLAGS  Optimize C compiler options
1136  CC          C compiler command
1137  CFLAGS      C compiler flags
1138  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1139              nonstandard directory <lib dir>
1140  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1141              headers in a nonstandard directory <include dir>
1142  MPICC       C MPI Compiler
1143  ADD_FFLAGS  Additional Fortran compiler options
1144  DBG_FFLAGS  Debug Fortran compiler options
1145  OPT_FFLAGS  Optimize Fortran compiler options
1146  F77         Fortran 77 compiler command
1147  FFLAGS      Fortran 77 compiler flags
1148  MPIF77      Fortran MPI Compiler
1149  PKG_CONFIG  path to pkg-config utility
1150  FC          Fortran compiler command
1151  FCFLAGS     Fortran compiler flags
1152  CPP         C preprocessor
1153  CXX         C++ compiler command
1154  CXXFLAGS    C++ compiler flags
1155  CXXCPP      C++ preprocessor
1156
1157Use these variables to override the choices made by `configure' or to help
1158it to find libraries and programs with nonstandard names/locations.
1159
1160Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1161_ACEOF
1162fi
1163
1164if test "$ac_init_help" = "recursive"; then
1165  # If there are subdirs, report their specific --help.
1166  ac_popdir=`pwd`
1167  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1168    test -d $ac_dir || continue
1169    ac_builddir=.
1170
1171if test "$ac_dir" != .; then
1172  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1173  # A "../" for each directory in $ac_dir_suffix.
1174  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1175else
1176  ac_dir_suffix= ac_top_builddir=
1177fi
1178
1179case $srcdir in
1180  .)  # No --srcdir option.  We are building in place.
1181    ac_srcdir=.
1182    if test -z "$ac_top_builddir"; then
1183       ac_top_srcdir=.
1184    else
1185       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1186    fi ;;
1187  [\\/]* | ?:[\\/]* )  # Absolute path.
1188    ac_srcdir=$srcdir$ac_dir_suffix;
1189    ac_top_srcdir=$srcdir ;;
1190  *) # Relative path.
1191    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1192    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1193esac
1194
1195# Do not use `cd foo && pwd` to compute absolute paths, because
1196# the directories may not exist.
1197case `pwd` in
1198.) ac_abs_builddir="$ac_dir";;
1199*)
1200  case "$ac_dir" in
1201  .) ac_abs_builddir=`pwd`;;
1202  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1203  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1204  esac;;
1205esac
1206case $ac_abs_builddir in
1207.) ac_abs_top_builddir=${ac_top_builddir}.;;
1208*)
1209  case ${ac_top_builddir}. in
1210  .) ac_abs_top_builddir=$ac_abs_builddir;;
1211  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1212  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1213  esac;;
1214esac
1215case $ac_abs_builddir in
1216.) ac_abs_srcdir=$ac_srcdir;;
1217*)
1218  case $ac_srcdir in
1219  .) ac_abs_srcdir=$ac_abs_builddir;;
1220  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1221  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1222  esac;;
1223esac
1224case $ac_abs_builddir in
1225.) ac_abs_top_srcdir=$ac_top_srcdir;;
1226*)
1227  case $ac_top_srcdir in
1228  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1229  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1230  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1231  esac;;
1232esac
1233
1234    cd $ac_dir
1235    # Check for guested configure; otherwise get Cygnus style configure.
1236    if test -f $ac_srcdir/configure.gnu; then
1237      echo
1238      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1239    elif test -f $ac_srcdir/configure; then
1240      echo
1241      $SHELL $ac_srcdir/configure  --help=recursive
1242    elif test -f $ac_srcdir/configure.ac ||
1243           test -f $ac_srcdir/configure.in; then
1244      echo
1245      $ac_configure --help
1246    else
1247      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1248    fi
1249    cd $ac_popdir
1250  done
1251fi
1252
1253test -n "$ac_init_help" && exit 0
1254if $ac_init_version; then
1255  cat <<\_ACEOF
1256ThirdPartyHSL configure 1.4
1257generated by GNU Autoconf 2.59
1258
1259Copyright (C) 2003 Free Software Foundation, Inc.
1260This configure script is free software; the Free Software Foundation
1261gives unlimited permission to copy, distribute and modify it.
1262
1263
1264Copyright 2006, 2009 International Business Machines and others.
1265All Rights Reserved.
1266This file is part of the open source package BuildTools which is distributed
1267under the Eclipse Public License.
1268_ACEOF
1269  exit 0
1270fi
1271exec 5>config.log
1272cat >&5 <<_ACEOF
1273This file contains any messages produced by compilers while
1274running configure, to aid debugging if configure makes a mistake.
1275
1276It was created by ThirdPartyHSL $as_me 1.4, which was
1277generated by GNU Autoconf 2.59.  Invocation command line was
1278
1279  $ $0 $@
1280
1281_ACEOF
1282{
1283cat <<_ASUNAME
1284## --------- ##
1285## Platform. ##
1286## --------- ##
1287
1288hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1289uname -m = `(uname -m) 2>/dev/null || echo unknown`
1290uname -r = `(uname -r) 2>/dev/null || echo unknown`
1291uname -s = `(uname -s) 2>/dev/null || echo unknown`
1292uname -v = `(uname -v) 2>/dev/null || echo unknown`
1293
1294/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1295/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1296
1297/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1298/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1299/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1300hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1301/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1302/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1303/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1304
1305_ASUNAME
1306
1307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1308for as_dir in $PATH
1309do
1310  IFS=$as_save_IFS
1311  test -z "$as_dir" && as_dir=.
1312  echo "PATH: $as_dir"
1313done
1314
1315} >&5
1316
1317cat >&5 <<_ACEOF
1318
1319
1320## ----------- ##
1321## Core tests. ##
1322## ----------- ##
1323
1324_ACEOF
1325
1326
1327# Keep a trace of the command line.
1328# Strip out --no-create and --no-recursion so they do not pile up.
1329# Strip out --silent because we don't want to record it for future runs.
1330# Also quote any args containing shell meta-characters.
1331# Make two passes to allow for proper duplicate-argument suppression.
1332ac_configure_args=
1333ac_configure_args0=
1334ac_configure_args1=
1335ac_sep=
1336ac_must_keep_next=false
1337for ac_pass in 1 2
1338do
1339  for ac_arg
1340  do
1341    case $ac_arg in
1342    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1343    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1344    | -silent | --silent | --silen | --sile | --sil)
1345      continue ;;
1346    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1347      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1348    esac
1349    case $ac_pass in
1350    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1351    2)
1352      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1353      if test $ac_must_keep_next = true; then
1354        ac_must_keep_next=false # Got value, back to normal.
1355      else
1356        case $ac_arg in
1357          *=* | --config-cache | -C | -disable-* | --disable-* \
1358          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1359          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1360          | -with-* | --with-* | -without-* | --without-* | --x)
1361            case "$ac_configure_args0 " in
1362              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1363            esac
1364            ;;
1365          -* ) ac_must_keep_next=true ;;
1366        esac
1367      fi
1368      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1369      # Get rid of the leading space.
1370      ac_sep=" "
1371      ;;
1372    esac
1373  done
1374done
1375$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1376$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1377
1378# When interrupted or exit'd, cleanup temporary files, and complete
1379# config.log.  We remove comments because anyway the quotes in there
1380# would cause problems or look ugly.
1381# WARNING: Be sure not to use single quotes in there, as some shells,
1382# such as our DU 5.0 friend, will then `close' the trap.
1383trap 'exit_status=$?
1384  # Save into config.log some information that might help in debugging.
1385  {
1386    echo
1387
1388    cat <<\_ASBOX
1389## ---------------- ##
1390## Cache variables. ##
1391## ---------------- ##
1392_ASBOX
1393    echo
1394    # The following way of writing the cache mishandles newlines in values,
1395{
1396  (set) 2>&1 |
1397    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1398    *ac_space=\ *)
1399      sed -n \
1400        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1401          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1402      ;;
1403    *)
1404      sed -n \
1405        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1406      ;;
1407    esac;
1408}
1409    echo
1410
1411    cat <<\_ASBOX
1412## ----------------- ##
1413## Output variables. ##
1414## ----------------- ##
1415_ASBOX
1416    echo
1417    for ac_var in $ac_subst_vars
1418    do
1419      eval ac_val=$`echo $ac_var`
1420      echo "$ac_var='"'"'$ac_val'"'"'"
1421    done | sort
1422    echo
1423
1424    if test -n "$ac_subst_files"; then
1425      cat <<\_ASBOX
1426## ------------- ##
1427## Output files. ##
1428## ------------- ##
1429_ASBOX
1430      echo
1431      for ac_var in $ac_subst_files
1432      do
1433        eval ac_val=$`echo $ac_var`
1434        echo "$ac_var='"'"'$ac_val'"'"'"
1435      done | sort
1436      echo
1437    fi
1438
1439    if test -s confdefs.h; then
1440      cat <<\_ASBOX
1441## ----------- ##
1442## confdefs.h. ##
1443## ----------- ##
1444_ASBOX
1445      echo
1446      sed "/^$/d" confdefs.h | sort
1447      echo
1448    fi
1449    test "$ac_signal" != 0 &&
1450      echo "$as_me: caught signal $ac_signal"
1451    echo "$as_me: exit $exit_status"
1452  } >&5
1453  rm -f core *.core &&
1454  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1455    exit $exit_status
1456     ' 0
1457for ac_signal in 1 2 13 15; do
1458  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1459done
1460ac_signal=0
1461
1462# confdefs.h avoids OS command line length limits that DEFS can exceed.
1463rm -rf conftest* confdefs.h
1464# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1465echo >confdefs.h
1466
1467# Predefined preprocessor variables.
1468
1469cat >>confdefs.h <<_ACEOF
1470#define PACKAGE_NAME "$PACKAGE_NAME"
1471_ACEOF
1472
1473
1474cat >>confdefs.h <<_ACEOF
1475#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1476_ACEOF
1477
1478
1479cat >>confdefs.h <<_ACEOF
1480#define PACKAGE_VERSION "$PACKAGE_VERSION"
1481_ACEOF
1482
1483
1484cat >>confdefs.h <<_ACEOF
1485#define PACKAGE_STRING "$PACKAGE_STRING"
1486_ACEOF
1487
1488
1489cat >>confdefs.h <<_ACEOF
1490#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1491_ACEOF
1492
1493
1494# Let the site file select an alternate cache file if it wants to.
1495# Prefer explicitly selected file to automatically selected ones.
1496if test -z "$CONFIG_SITE"; then
1497  if test "x$prefix" != xNONE; then
1498    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1499  else
1500    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1501  fi
1502fi
1503for ac_site_file in $CONFIG_SITE; do
1504  if test -r "$ac_site_file"; then
1505    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1506echo "$as_me: loading site script $ac_site_file" >&6;}
1507    sed 's/^/| /' "$ac_site_file" >&5
1508    . "$ac_site_file"
1509  fi
1510done
1511
1512if test -r "$cache_file"; then
1513  # Some versions of bash will fail to source /dev/null (special
1514  # files actually), so we avoid doing that.
1515  if test -f "$cache_file"; then
1516    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1517echo "$as_me: loading cache $cache_file" >&6;}
1518    case $cache_file in
1519      [\\/]* | ?:[\\/]* ) . $cache_file;;
1520      *)                      . ./$cache_file;;
1521    esac
1522  fi
1523else
1524  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1525echo "$as_me: creating cache $cache_file" >&6;}
1526  >$cache_file
1527fi
1528
1529# Check that the precious variables saved in the cache have kept the same
1530# value.
1531ac_cache_corrupted=false
1532for ac_var in `(set) 2>&1 |
1533               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1534  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1535  eval ac_new_set=\$ac_env_${ac_var}_set
1536  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1537  eval ac_new_val="\$ac_env_${ac_var}_value"
1538  case $ac_old_set,$ac_new_set in
1539    set,)
1540      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1541echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1542      ac_cache_corrupted=: ;;
1543    ,set)
1544      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1545echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1546      ac_cache_corrupted=: ;;
1547    ,);;
1548    *)
1549      if test "x$ac_old_val" != "x$ac_new_val"; then
1550        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1551echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1552        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1553echo "$as_me:   former value:  $ac_old_val" >&2;}
1554        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1555echo "$as_me:   current value: $ac_new_val" >&2;}
1556        ac_cache_corrupted=:
1557      fi;;
1558  esac
1559  # Pass precious variables to config.status.
1560  if test "$ac_new_set" = set; then
1561    case $ac_new_val in
1562    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1563      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1564    *) ac_arg=$ac_var=$ac_new_val ;;
1565    esac
1566    case " $ac_configure_args " in
1567      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1568      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1569    esac
1570  fi
1571done
1572if $ac_cache_corrupted; then
1573  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1574echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1575  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1576echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1577   { (exit 1); exit 1; }; }
1578fi
1579
1580ac_ext=c
1581ac_cpp='$CPP $CPPFLAGS'
1582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1584ac_compiler_gnu=$ac_cv_c_compiler_gnu
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615# List one file in the package so that the configure script can test
1616# whether the package is actually there
1617
1618
1619# Where should everything be installed by default?  Here, we want it
1620# to be installed directly in 'bin', 'lib', 'include' subdirectories
1621# of the directory where configure is run.  The default would be
1622# /usr/local.
1623
1624
1625
1626# As backup, we make sure we don't loose an FLIBS if it has been set
1627# by the user
1628save_FLIBS="$FLIBS"
1629
1630# A useful makefile conditional that is always false
1631
1632
1633if false; then
1634  ALWAYS_FALSE_TRUE=
1635  ALWAYS_FALSE_FALSE='#'
1636else
1637  ALWAYS_FALSE_TRUE='#'
1638  ALWAYS_FALSE_FALSE=
1639fi
1640
1641
1642# We set the following variable so that we know later in AC_COIN_FINALIZE
1643# that we are in a project main directory
1644coin_projectdir=yes
1645
1646# Set the project's version numbers
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define COINHSL_VERSION "$PACKAGE_VERSION"
1651_ACEOF
1652
1653
1654  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1655  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1656  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1657  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1658  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1659  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1660
1661cat >>confdefs.h <<_ACEOF
1662#define COINHSL_VERSION_MAJOR $coin_majorver
1663_ACEOF
1664
1665
1666cat >>confdefs.h <<_ACEOF
1667#define COINHSL_VERSION_MINOR $coin_minorver
1668_ACEOF
1669
1670
1671cat >>confdefs.h <<_ACEOF
1672#define COINHSL_VERSION_RELEASE $coin_releasever
1673_ACEOF
1674
1675
1676  # We use the following variable to have a string with the upper case
1677  # version of the project name
1678  COIN_PRJCT=COINHSL
1679
1680  # Set the project's SVN revision number. The complicated sed expression
1681  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1682  # as a single number.
1683  # Extract the first word of "svnversion", so it can be a program name with args.
1684set dummy svnversion; ac_word=$2
1685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_have_svnversion+set}" = set; then
1688  echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690  if test -n "$have_svnversion"; then
1691  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1692else
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696  IFS=$as_save_IFS
1697  test -z "$as_dir" && as_dir=.
1698  for ac_exec_ext in '' $ac_executable_extensions; do
1699  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700    ac_cv_prog_have_svnversion="yes"
1701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702    break 2
1703  fi
1704done
1705done
1706
1707  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1708fi
1709fi
1710have_svnversion=$ac_cv_prog_have_svnversion
1711if test -n "$have_svnversion"; then
1712  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1713echo "${ECHO_T}$have_svnversion" >&6
1714else
1715  echo "$as_me:$LINENO: result: no" >&5
1716echo "${ECHO_T}no" >&6
1717fi
1718
1719  if test "x$have_svnversion" = xyes; then
1720
1721    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1722    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1723      COINHSL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1724
1725cat >>confdefs.h <<_ACEOF
1726#define COINHSL_SVN_REV $COINHSL_SVN_REV
1727_ACEOF
1728
1729    fi
1730  fi
1731
1732
1733
1734# Capture libtool library version, if given.
1735
1736
1737
1738
1739#############################################################################
1740#                         Standard build tool stuff                         #
1741#############################################################################
1742
1743# Get the system type
1744ac_aux_dir=
1745for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1746  if test -f $ac_dir/install-sh; then
1747    ac_aux_dir=$ac_dir
1748    ac_install_sh="$ac_aux_dir/install-sh -c"
1749    break
1750  elif test -f $ac_dir/install.sh; then
1751    ac_aux_dir=$ac_dir
1752    ac_install_sh="$ac_aux_dir/install.sh -c"
1753    break
1754  elif test -f $ac_dir/shtool; then
1755    ac_aux_dir=$ac_dir
1756    ac_install_sh="$ac_aux_dir/shtool install -c"
1757    break
1758  fi
1759done
1760if test -z "$ac_aux_dir"; then
1761  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1762echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1763   { (exit 1); exit 1; }; }
1764fi
1765ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1766ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1767ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1768
1769# Make sure we can run config.sub.
1770$ac_config_sub sun4 >/dev/null 2>&1 ||
1771  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1772echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1773   { (exit 1); exit 1; }; }
1774
1775echo "$as_me:$LINENO: checking build system type" >&5
1776echo $ECHO_N "checking build system type... $ECHO_C" >&6
1777if test "${ac_cv_build+set}" = set; then
1778  echo $ECHO_N "(cached) $ECHO_C" >&6
1779else
1780  ac_cv_build_alias=$build_alias
1781test -z "$ac_cv_build_alias" &&
1782  ac_cv_build_alias=`$ac_config_guess`
1783test -z "$ac_cv_build_alias" &&
1784  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1785echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1786   { (exit 1); exit 1; }; }
1787ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1788  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1789echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1790   { (exit 1); exit 1; }; }
1791
1792fi
1793echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1794echo "${ECHO_T}$ac_cv_build" >&6
1795build=$ac_cv_build
1796build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1797build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1798build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1799
1800
1801
1802# provide flag to allow compilation of a stand-alone shared library
1803# Check whether --enable-loadable-library or --disable-loadable-library was given.
1804if test "${enable_loadable_library+set}" = set; then
1805  enableval="$enable_loadable_library"
1806
1807fi;
1808
1809# Check if user wants to produce debugging code
1810
1811echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1812echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1813
1814# Check whether --enable-debug or --disable-debug was given.
1815if test "${enable_debug+set}" = set; then
1816  enableval="$enable_debug"
1817  case "${enableval}" in
1818   yes) coin_debug_compile=true
1819        if test "${enable_shared+set}" = set; then :; else
1820          enable_shared=no
1821        fi
1822        ;;
1823   no)  coin_debug_compile=false
1824        ;;
1825   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1826echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1827   { (exit 1); exit 1; }; }
1828        ;;
1829esac
1830else
1831  coin_debug_compile=false
1832fi;
1833
1834# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1835if test "${enable_debug_hsl+set}" = set; then
1836  enableval="$enable_debug_hsl"
1837  case "${enableval}" in
1838    yes) coin_debug_compile=true
1839         ;;
1840    no)  coin_debug_compile=false
1841         ;;
1842    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1843echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1844   { (exit 1); exit 1; }; }
1845         ;;
1846 esac
1847else
1848  :
1849fi;
1850
1851 # m4_ifvaln([HSL],
1852
1853if test $coin_debug_compile = true; then
1854  echo "$as_me:$LINENO: result: yes" >&5
1855echo "${ECHO_T}yes" >&6
1856else
1857  echo "$as_me:$LINENO: result: no" >&5
1858echo "${ECHO_T}no" >&6
1859fi
1860
1861
1862# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1863if test "${with_hsl_verbosity+set}" = set; then
1864  withval="$with_hsl_verbosity"
1865  if test "$withval" = yes; then
1866                withval=1
1867              fi
1868              coin_hsl_verbosity=$withval
1869else
1870  coin_hsl_verbosity=0
1871fi;
1872
1873cat >>confdefs.h <<_ACEOF
1874#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1875_ACEOF
1876
1877
1878
1879# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1880if test "${with_hsl_checklevel+set}" = set; then
1881  withval="$with_hsl_checklevel"
1882  if test "$withval" = yes; then
1883                withval=1
1884              fi
1885              coin_hsl_checklevel=$withval
1886else
1887  coin_hsl_checklevel=0
1888fi;
1889
1890cat >>confdefs.h <<_ACEOF
1891#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1892_ACEOF
1893
1894
1895 # m4_ifvaln([HSL],
1896
1897
1898
1899# Get the name of the C compiler (for a dummy program)
1900
1901
1902  # for backward compatibility
1903  # Check whether --enable-doscompile or --disable-doscompile was given.
1904if test "${enable_doscompile+set}" = set; then
1905  enableval="$enable_doscompile"
1906  enable_doscompile=$enableval
1907else
1908  enable_doscompile=no
1909fi;
1910
1911  # Check whether --enable-msvc or --disable-msvc was given.
1912if test "${enable_msvc+set}" = set; then
1913  enableval="$enable_msvc"
1914  enable_msvc=$enableval
1915else
1916  enable_msvc=no
1917     if test "$enable_doscompile" = msvc ; then
1918       enable_msvc=yes
1919     elif test "$enable_doscompile" != no ; then
1920       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1921echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1922   { (exit 1); exit 1; }; }
1923     fi
1924
1925fi;
1926
1927  if test "$enable_msvc" = MD; then
1928    enable_shared=yes
1929    enable_msvc=yes
1930  fi
1931
1932  if test "$enable_msvc" = yes; then
1933    case $build in
1934      *-cygwin* | *-mingw*) ;;
1935      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1936echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1937   { (exit 1); exit 1; }; } ;;
1938    esac
1939  fi
1940
1941
1942 case $build in
1943  *-mingw*)
1944    if test "${LD+set}" = set; then :; else
1945      LD=link
1946    fi
1947    ;;
1948 esac
1949 if test $enable_msvc = yes ; then
1950   if test "x${LD+set}" = xset; then :; else
1951     LD=link
1952   fi
1953 fi
1954
1955
1956
1957
1958ac_ext=c
1959ac_cpp='$CPP $CPPFLAGS'
1960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963
1964
1965# For consistency, we set the C compiler to the same value of the C++
1966# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1967if test x"$CXX" != x; then
1968  case "$CXX" in
1969    clang* ) ;;
1970    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1971      if test x"$CC" = x; then
1972        CC="$CXX"
1973        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1974echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1975      fi
1976      ;;
1977  esac
1978fi
1979
1980
1981
1982
1983
1984
1985coin_has_cc=yes
1986
1987save_cflags="$CFLAGS"
1988
1989# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1990# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1991# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1992# compiler. In this case, put cc after gcc.
1993
1994case $build in
1995  *-cygwin* | *-mingw*)
1996             if test "$enable_msvc" = yes ; then
1997               comps="icl cl gcc"
1998             else
1999               comps="gcc icl cl"
2000             fi ;;
2001  *-*-solaris*)
2002             # Extract the first word of "cc", so it can be a program name with args.
2003set dummy cc; ac_word=$2
2004echo "$as_me:$LINENO: checking for $ac_word" >&5
2005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2007  echo $ECHO_N "(cached) $ECHO_C" >&6
2008else
2009  if test -n "$sol_cc_compiler"; then
2010  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2011else
2012  ac_prog_rejected=no
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016  IFS=$as_save_IFS
2017  test -z "$as_dir" && as_dir=.
2018  for ac_exec_ext in '' $ac_executable_extensions; do
2019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2021       ac_prog_rejected=yes
2022       continue
2023     fi
2024    ac_cv_prog_sol_cc_compiler="cc"
2025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026    break 2
2027  fi
2028done
2029done
2030
2031if test $ac_prog_rejected = yes; then
2032  # We found a bogon in the path, so make sure we never use it.
2033  set dummy $ac_cv_prog_sol_cc_compiler
2034  shift
2035  if test $# != 0; then
2036    # We chose a different compiler from the bogus one.
2037    # However, it has the same basename, so the bogon will be chosen
2038    # first if we set sol_cc_compiler to just the basename; use the full file name.
2039    shift
2040    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2041  fi
2042fi
2043fi
2044fi
2045sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2046if test -n "$sol_cc_compiler"; then
2047  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2048echo "${ECHO_T}$sol_cc_compiler" >&6
2049else
2050  echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6
2052fi
2053
2054             if test "$sol_cc_compiler" = "cc" ; then
2055               comps="cc xlc gcc pgcc icc"
2056             else
2057               comps="xlc gcc pgcc icc cc"
2058             fi
2059             ;;
2060  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2061  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2062  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2063esac
2064
2065# We delete the cached value, since the test might not have been
2066# performed with our choice of compilers earlier
2067$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2068# AC_MSG_NOTICE([C compiler candidates: $comps])
2069ac_ext=c
2070ac_cpp='$CPP $CPPFLAGS'
2071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074if test -n "$ac_tool_prefix"; then
2075  for ac_prog in $comps
2076  do
2077    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2078set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2079echo "$as_me:$LINENO: checking for $ac_word" >&5
2080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081if test "${ac_cv_prog_CC+set}" = set; then
2082  echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084  if test -n "$CC"; then
2085  ac_cv_prog_CC="$CC" # Let the user override the test.
2086else
2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088for as_dir in $PATH
2089do
2090  IFS=$as_save_IFS
2091  test -z "$as_dir" && as_dir=.
2092  for ac_exec_ext in '' $ac_executable_extensions; do
2093  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2095    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096    break 2
2097  fi
2098done
2099done
2100
2101fi
2102fi
2103CC=$ac_cv_prog_CC
2104if test -n "$CC"; then
2105  echo "$as_me:$LINENO: result: $CC" >&5
2106echo "${ECHO_T}$CC" >&6
2107else
2108  echo "$as_me:$LINENO: result: no" >&5
2109echo "${ECHO_T}no" >&6
2110fi
2111
2112    test -n "$CC" && break
2113  done
2114fi
2115if test -z "$CC"; then
2116  ac_ct_CC=$CC
2117  for ac_prog in $comps
2118do
2119  # Extract the first word of "$ac_prog", so it can be a program name with args.
2120set dummy $ac_prog; ac_word=$2
2121echo "$as_me:$LINENO: checking for $ac_word" >&5
2122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2124  echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126  if test -n "$ac_ct_CC"; then
2127  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2128else
2129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH
2131do
2132  IFS=$as_save_IFS
2133  test -z "$as_dir" && as_dir=.
2134  for ac_exec_ext in '' $ac_executable_extensions; do
2135  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136    ac_cv_prog_ac_ct_CC="$ac_prog"
2137    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138    break 2
2139  fi
2140done
2141done
2142
2143fi
2144fi
2145ac_ct_CC=$ac_cv_prog_ac_ct_CC
2146if test -n "$ac_ct_CC"; then
2147  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2148echo "${ECHO_T}$ac_ct_CC" >&6
2149else
2150  echo "$as_me:$LINENO: result: no" >&5
2151echo "${ECHO_T}no" >&6
2152fi
2153
2154  test -n "$ac_ct_CC" && break
2155done
2156
2157  CC=$ac_ct_CC
2158fi
2159
2160
2161test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2162See \`config.log' for more details." >&5
2163echo "$as_me: error: no acceptable C compiler found in \$PATH
2164See \`config.log' for more details." >&2;}
2165   { (exit 1); exit 1; }; }
2166
2167# Provide some information about the compiler.
2168echo "$as_me:$LINENO:" \
2169     "checking for C compiler version" >&5
2170ac_compiler=`set X $ac_compile; echo $2`
2171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2172  (eval $ac_compiler --version </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{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2182  (eval $ac_compiler -V </dev/null >&5) 2>&5
2183  ac_status=$?
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); }
2186
2187cat >conftest.$ac_ext <<_ACEOF
2188/* confdefs.h.  */
2189_ACEOF
2190cat confdefs.h >>conftest.$ac_ext
2191cat >>conftest.$ac_ext <<_ACEOF
2192/* end confdefs.h.  */
2193
2194int
2195main ()
2196{
2197
2198  ;
2199  return 0;
2200}
2201_ACEOF
2202ac_clean_files_save=$ac_clean_files
2203ac_clean_files="$ac_clean_files a.out a.exe b.out"
2204# Try to create an executable without -o first, disregard a.out.
2205# It will help us diagnose broken compilers, and finding out an intuition
2206# of exeext.
2207echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2208echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2209ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2210if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2211  (eval $ac_link_default) 2>&5
2212  ac_status=$?
2213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214  (exit $ac_status); }; then
2215  # Find the output, starting from the most likely.  This scheme is
2216# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2217# resort.
2218
2219# Be careful to initialize this variable, since it used to be cached.
2220# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2221ac_cv_exeext=
2222# b.out is created by i960 compilers.
2223for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2224do
2225  test -f "$ac_file" || continue
2226  case $ac_file in
2227    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2228        ;;
2229    conftest.$ac_ext )
2230        # This is the source file.
2231        ;;
2232    [ab].out )
2233        # We found the default executable, but exeext='' is most
2234        # certainly right.
2235        break;;
2236    *.* )
2237        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2238        # FIXME: I believe we export ac_cv_exeext for Libtool,
2239        # but it would be cool to find out if it's true.  Does anybody
2240        # maintain Libtool? --akim.
2241        export ac_cv_exeext
2242        break;;
2243    * )
2244        break;;
2245  esac
2246done
2247else
2248  echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2252See \`config.log' for more details." >&5
2253echo "$as_me: error: C compiler cannot create executables
2254See \`config.log' for more details." >&2;}
2255   { (exit 77); exit 77; }; }
2256fi
2257
2258ac_exeext=$ac_cv_exeext
2259echo "$as_me:$LINENO: result: $ac_file" >&5
2260echo "${ECHO_T}$ac_file" >&6
2261
2262# Check the compiler produces executables we can run.  If not, either
2263# the compiler is broken, or we cross compile.
2264echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2265echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2266# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2267# If not cross compiling, check that we can run a simple program.
2268if test "$cross_compiling" != yes; then
2269  if { ac_try='./$ac_file'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; }; then
2275    cross_compiling=no
2276  else
2277    if test "$cross_compiling" = maybe; then
2278        cross_compiling=yes
2279    else
2280        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2281If you meant to cross compile, use \`--host'.
2282See \`config.log' for more details." >&5
2283echo "$as_me: error: cannot run C compiled programs.
2284If you meant to cross compile, use \`--host'.
2285See \`config.log' for more details." >&2;}
2286   { (exit 1); exit 1; }; }
2287    fi
2288  fi
2289fi
2290echo "$as_me:$LINENO: result: yes" >&5
2291echo "${ECHO_T}yes" >&6
2292
2293rm -f a.out a.exe conftest$ac_cv_exeext b.out
2294ac_clean_files=$ac_clean_files_save
2295# Check the compiler produces executables we can run.  If not, either
2296# the compiler is broken, or we cross compile.
2297echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2298echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2299echo "$as_me:$LINENO: result: $cross_compiling" >&5
2300echo "${ECHO_T}$cross_compiling" >&6
2301
2302echo "$as_me:$LINENO: checking for suffix of executables" >&5
2303echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2305  (eval $ac_link) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; then
2309  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2310# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2311# work properly (i.e., refer to `conftest.exe'), while it won't with
2312# `rm'.
2313for ac_file in conftest.exe conftest conftest.*; do
2314  test -f "$ac_file" || continue
2315  case $ac_file in
2316    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2317    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2318          export ac_cv_exeext
2319          break;;
2320    * ) break;;
2321  esac
2322done
2323else
2324  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325See \`config.log' for more details." >&5
2326echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327See \`config.log' for more details." >&2;}
2328   { (exit 1); exit 1; }; }
2329fi
2330
2331rm -f conftest$ac_cv_exeext
2332echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333echo "${ECHO_T}$ac_cv_exeext" >&6
2334
2335rm -f conftest.$ac_ext
2336EXEEXT=$ac_cv_exeext
2337ac_exeext=$EXEEXT
2338echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2340if test "${ac_cv_objext+set}" = set; then
2341  echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343  cat >conftest.$ac_ext <<_ACEOF
2344/* confdefs.h.  */
2345_ACEOF
2346cat confdefs.h >>conftest.$ac_ext
2347cat >>conftest.$ac_ext <<_ACEOF
2348/* end confdefs.h.  */
2349
2350int
2351main ()
2352{
2353
2354  ;
2355  return 0;
2356}
2357_ACEOF
2358rm -f conftest.o conftest.obj
2359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360  (eval $ac_compile) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; then
2364  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2365  case $ac_file in
2366    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2367    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2368       break;;
2369  esac
2370done
2371else
2372  echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2376See \`config.log' for more details." >&5
2377echo "$as_me: error: cannot compute suffix of object files: cannot compile
2378See \`config.log' for more details." >&2;}
2379   { (exit 1); exit 1; }; }
2380fi
2381
2382rm -f conftest.$ac_cv_objext conftest.$ac_ext
2383fi
2384echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2385echo "${ECHO_T}$ac_cv_objext" >&6
2386OBJEXT=$ac_cv_objext
2387ac_objext=$OBJEXT
2388echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2389echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2390if test "${ac_cv_c_compiler_gnu+set}" = set; then
2391  echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393  cat >conftest.$ac_ext <<_ACEOF
2394/* confdefs.h.  */
2395_ACEOF
2396cat confdefs.h >>conftest.$ac_ext
2397cat >>conftest.$ac_ext <<_ACEOF
2398/* end confdefs.h.  */
2399
2400int
2401main ()
2402{
2403#ifndef __GNUC__
2404       choke me
2405#endif
2406
2407  ;
2408  return 0;
2409}
2410_ACEOF
2411rm -f conftest.$ac_objext
2412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413  (eval $ac_compile) 2>conftest.er1
2414  ac_status=$?
2415  grep -v '^ *+' conftest.er1 >conftest.err
2416  rm -f conftest.er1
2417  cat conftest.err >&5
2418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419  (exit $ac_status); } &&
2420         { ac_try='test -z "$ac_c_werror_flag"
2421                         || test ! -s conftest.err'
2422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423  (eval $ac_try) 2>&5
2424  ac_status=$?
2425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426  (exit $ac_status); }; } &&
2427         { ac_try='test -s conftest.$ac_objext'
2428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429  (eval $ac_try) 2>&5
2430  ac_status=$?
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); }; }; then
2433  ac_compiler_gnu=yes
2434else
2435  echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438ac_compiler_gnu=no
2439fi
2440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441ac_cv_c_compiler_gnu=$ac_compiler_gnu
2442
2443fi
2444echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2445echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2446GCC=`test $ac_compiler_gnu = yes && echo yes`
2447ac_test_CFLAGS=${CFLAGS+set}
2448ac_save_CFLAGS=$CFLAGS
2449CFLAGS="-g"
2450echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2451echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2452if test "${ac_cv_prog_cc_g+set}" = set; then
2453  echo $ECHO_N "(cached) $ECHO_C" >&6
2454else
2455  cat >conftest.$ac_ext <<_ACEOF
2456/* confdefs.h.  */
2457_ACEOF
2458cat confdefs.h >>conftest.$ac_ext
2459cat >>conftest.$ac_ext <<_ACEOF
2460/* end confdefs.h.  */
2461
2462int
2463main ()
2464{
2465
2466  ;
2467  return 0;
2468}
2469_ACEOF
2470rm -f conftest.$ac_objext
2471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472  (eval $ac_compile) 2>conftest.er1
2473  ac_status=$?
2474  grep -v '^ *+' conftest.er1 >conftest.err
2475  rm -f conftest.er1
2476  cat conftest.err >&5
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); } &&
2479         { ac_try='test -z "$ac_c_werror_flag"
2480                         || test ! -s conftest.err'
2481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482  (eval $ac_try) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }; } &&
2486         { ac_try='test -s conftest.$ac_objext'
2487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); }; }; then
2492  ac_cv_prog_cc_g=yes
2493else
2494  echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497ac_cv_prog_cc_g=no
2498fi
2499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500fi
2501echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2502echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2503if test "$ac_test_CFLAGS" = set; then
2504  CFLAGS=$ac_save_CFLAGS
2505elif test $ac_cv_prog_cc_g = yes; then
2506  if test "$GCC" = yes; then
2507    CFLAGS="-g -O2"
2508  else
2509    CFLAGS="-g"
2510  fi
2511else
2512  if test "$GCC" = yes; then
2513    CFLAGS="-O2"
2514  else
2515    CFLAGS=
2516  fi
2517fi
2518echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2519echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2520if test "${ac_cv_prog_cc_stdc+set}" = set; then
2521  echo $ECHO_N "(cached) $ECHO_C" >&6
2522else
2523  ac_cv_prog_cc_stdc=no
2524ac_save_CC=$CC
2525cat >conftest.$ac_ext <<_ACEOF
2526/* confdefs.h.  */
2527_ACEOF
2528cat confdefs.h >>conftest.$ac_ext
2529cat >>conftest.$ac_ext <<_ACEOF
2530/* end confdefs.h.  */
2531#include <stdarg.h>
2532#include <stdio.h>
2533#include <sys/types.h>
2534#include <sys/stat.h>
2535/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2536struct buf { int x; };
2537FILE * (*rcsopen) (struct buf *, struct stat *, int);
2538static char *e (p, i)
2539     char **p;
2540     int i;
2541{
2542  return p[i];
2543}
2544static char *f (char * (*g) (char **, int), char **p, ...)
2545{
2546  char *s;
2547  va_list v;
2548  va_start (v,p);
2549  s = g (p, va_arg (v,int));
2550  va_end (v);
2551  return s;
2552}
2553
2554/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2555   function prototypes and stuff, but not '\xHH' hex character constants.
2556   These don't provoke an error unfortunately, instead are silently treated
2557   as 'x'.  The following induces an error, until -std1 is added to get
2558   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2559   array size at least.  It's necessary to write '\x00'==0 to get something
2560   that's true only with -std1.  */
2561int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2562
2563int test (int i, double x);
2564struct s1 {int (*f) (int a);};
2565struct s2 {int (*f) (double a);};
2566int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2567int argc;
2568char **argv;
2569int
2570main ()
2571{
2572return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2573  ;
2574  return 0;
2575}
2576_ACEOF
2577# Don't try gcc -ansi; that turns off useful extensions and
2578# breaks some systems' header files.
2579# AIX                   -qlanglvl=ansi
2580# Ultrix and OSF/1      -std1
2581# HP-UX 10.20 and later -Ae
2582# HP-UX older versions  -Aa -D_HPUX_SOURCE
2583# SVR4                  -Xc -D__EXTENSIONS__
2584for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2585do
2586  CC="$ac_save_CC $ac_arg"
2587  rm -f conftest.$ac_objext
2588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589  (eval $ac_compile) 2>conftest.er1
2590  ac_status=$?
2591  grep -v '^ *+' conftest.er1 >conftest.err
2592  rm -f conftest.er1
2593  cat conftest.err >&5
2594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595  (exit $ac_status); } &&
2596         { ac_try='test -z "$ac_c_werror_flag"
2597                         || test ! -s conftest.err'
2598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599  (eval $ac_try) 2>&5
2600  ac_status=$?
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); }; } &&
2603         { ac_try='test -s conftest.$ac_objext'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; }; then
2609  ac_cv_prog_cc_stdc=$ac_arg
2610break
2611else
2612  echo "$as_me: failed program was:" >&5
2613sed 's/^/| /' conftest.$ac_ext >&5
2614
2615fi
2616rm -f conftest.err conftest.$ac_objext
2617done
2618rm -f conftest.$ac_ext conftest.$ac_objext
2619CC=$ac_save_CC
2620
2621fi
2622
2623case "x$ac_cv_prog_cc_stdc" in
2624  x|xno)
2625    echo "$as_me:$LINENO: result: none needed" >&5
2626echo "${ECHO_T}none needed" >&6 ;;
2627  *)
2628    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2629echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2630    CC="$CC $ac_cv_prog_cc_stdc" ;;
2631esac
2632
2633# Some people use a C++ compiler to compile C.  Since we use `exit',
2634# in C++ we need to declare it.  In case someone uses the same compiler
2635# for both compiling C and C++ we need to have the C++ compiler decide
2636# the declaration of exit, since it's the most demanding environment.
2637cat >conftest.$ac_ext <<_ACEOF
2638#ifndef __cplusplus
2639  choke me
2640#endif
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644  (eval $ac_compile) 2>conftest.er1
2645  ac_status=$?
2646  grep -v '^ *+' conftest.er1 >conftest.err
2647  rm -f conftest.er1
2648  cat conftest.err >&5
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); } &&
2651         { ac_try='test -z "$ac_c_werror_flag"
2652                         || test ! -s conftest.err'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; } &&
2658         { ac_try='test -s conftest.$ac_objext'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664  for ac_declaration in \
2665   '' \
2666   'extern "C" void std::exit (int) throw (); using std::exit;' \
2667   'extern "C" void std::exit (int); using std::exit;' \
2668   'extern "C" void exit (int) throw ();' \
2669   'extern "C" void exit (int);' \
2670   'void exit (int);'
2671do
2672  cat >conftest.$ac_ext <<_ACEOF
2673/* confdefs.h.  */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h.  */
2678$ac_declaration
2679#include <stdlib.h>
2680int
2681main ()
2682{
2683exit (42);
2684  ;
2685  return 0;
2686}
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690  (eval $ac_compile) 2>conftest.er1
2691  ac_status=$?
2692  grep -v '^ *+' conftest.er1 >conftest.err
2693  rm -f conftest.er1
2694  cat conftest.err >&5
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); } &&
2697         { ac_try='test -z "$ac_c_werror_flag"
2698                         || test ! -s conftest.err'
2699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700  (eval $ac_try) 2>&5
2701  ac_status=$?
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); }; } &&
2704         { ac_try='test -s conftest.$ac_objext'
2705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706  (eval $ac_try) 2>&5
2707  ac_status=$?
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); }; }; then
2710  :
2711else
2712  echo "$as_me: failed program was:" >&5
2713sed 's/^/| /' conftest.$ac_ext >&5
2714
2715continue
2716fi
2717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718  cat >conftest.$ac_ext <<_ACEOF
2719/* confdefs.h.  */
2720_ACEOF
2721cat confdefs.h >>conftest.$ac_ext
2722cat >>conftest.$ac_ext <<_ACEOF
2723/* end confdefs.h.  */
2724$ac_declaration
2725int
2726main ()
2727{
2728exit (42);
2729  ;
2730  return 0;
2731}
2732_ACEOF
2733rm -f conftest.$ac_objext
2734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735  (eval $ac_compile) 2>conftest.er1
2736  ac_status=$?
2737  grep -v '^ *+' conftest.er1 >conftest.err
2738  rm -f conftest.er1
2739  cat conftest.err >&5
2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741  (exit $ac_status); } &&
2742         { ac_try='test -z "$ac_c_werror_flag"
2743                         || test ! -s conftest.err'
2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745  (eval $ac_try) 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; } &&
2749         { ac_try='test -s conftest.$ac_objext'
2750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751  (eval $ac_try) 2>&5
2752  ac_status=$?
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); }; }; then
2755  break
2756else
2757  echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760fi
2761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762done
2763rm -f conftest*
2764if test -n "$ac_declaration"; then
2765  echo '#ifdef __cplusplus' >>confdefs.h
2766  echo $ac_declaration      >>confdefs.h
2767  echo '#endif'             >>confdefs.h
2768fi
2769
2770else
2771  echo "$as_me: failed program was:" >&5
2772sed 's/^/| /' conftest.$ac_ext >&5
2773
2774fi
2775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2776ac_ext=c
2777ac_cpp='$CPP $CPPFLAGS'
2778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781
2782if test -z "$CC" ; then
2783  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2784echo "$as_me: error: Failed to find a C compiler!" >&2;}
2785   { (exit 1); exit 1; }; }
2786fi
2787# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2788case "$CC" in
2789  clang* ) ;;
2790  cl* | */cl* | CL* | */CL* )
2791    if test "$ac_cv_prog_cc_g" = yes ; then
2792      ac_cv_prog_cc_g=no
2793      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2794echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2795    fi ;;
2796  * )
2797    if test x"$CYGPATH_W" = x ; then
2798      CYGPATH_W=echo
2799    fi
2800    ;;
2801esac
2802CFLAGS="$save_cflags"
2803
2804# add automake conditional so we can recognize cl compiler in makefile
2805coin_cc_is_cl=false
2806case "$CC" in
2807  clang* ) ;;
2808  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2809    coin_cc_is_cl=true
2810    ;;
2811esac
2812
2813
2814if test $coin_cc_is_cl = true; then
2815  COIN_CC_IS_CL_TRUE=
2816  COIN_CC_IS_CL_FALSE='#'
2817else
2818  COIN_CC_IS_CL_TRUE='#'
2819  COIN_CC_IS_CL_FALSE=
2820fi
2821
2822
2823# Check if a project specific CFLAGS variable has been set
2824if test x$COIN_PRJCT != x; then
2825  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2826  if test x$coin_tmp = xset; then
2827    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2828  fi
2829fi
2830
2831if test x"$CFLAGS" = x; then
2832
2833  coin_add_cflags=
2834  coin_opt_cflags=
2835  coin_dbg_cflags=
2836  coin_warn_cflags=
2837
2838  if test "$GCC" = "yes"; then
2839    case "$CC" in
2840      icc* | */icc*)
2841        ;;
2842      *)
2843        coin_opt_cflags="-O3"
2844        coin_add_cflags="-pipe"
2845        coin_dbg_cflags="-g -O0"
2846        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2847        case $build in
2848          *-darwin*)
2849            ;;
2850          *)
2851            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2852            ;;
2853        esac
2854    esac
2855  fi
2856  if test -z "$coin_opt_cflags"; then
2857    case $build in
2858      *-cygwin* | *-mingw*)
2859        case "$CC" in
2860          clang* ) ;;
2861          cl* | */cl* | CL* | */CL*)
2862            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2863              coin_opt_cflags='-MD -O2'
2864              coin_dbg_cflags='-MDd'
2865            else
2866              coin_opt_cflags='-MT -O2'
2867              coin_dbg_cflags='-MTd'
2868            fi
2869            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2870            ;;
2871          icl* | */icl* | ICL* | */ICL*)
2872            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2873              coin_opt_cflags='-MD -Ox'
2874              coin_dbg_cflags='-MDd -debug'
2875            else
2876              coin_opt_cflags='-MT -Ox'
2877              coin_dbg_cflags='-MTd -debug'
2878            fi
2879            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2880            ;;
2881        esac
2882        ;;
2883      *-linux-*)
2884        case "$CC" in
2885          icc* | */icc*)
2886            coin_opt_cflags="-O3 -ip -mp1"
2887            coin_add_cflags=""
2888            coin_dbg_cflags="-g"
2889            # Check if -i_dynamic is necessary (for new glibc library)
2890            CFLAGS=
2891            cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h.  */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h.  */
2897
2898int
2899main ()
2900{
2901int i=0; i++;
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext conftest$ac_exeext
2907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908  (eval $ac_link) 2>conftest.er1
2909  ac_status=$?
2910  grep -v '^ *+' conftest.er1 >conftest.err
2911  rm -f conftest.er1
2912  cat conftest.err >&5
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); } &&
2915         { ac_try='test -z "$ac_c_werror_flag"
2916                         || test ! -s conftest.err'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; } &&
2922         { ac_try='test -s conftest$ac_exeext'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; }; then
2928  :
2929else
2930  echo "$as_me: failed program was:" >&5
2931sed 's/^/| /' conftest.$ac_ext >&5
2932
2933coin_add_cflags="-i_dynamic $coin_add_cflags"
2934fi
2935rm -f conftest.err conftest.$ac_objext \
2936      conftest$ac_exeext conftest.$ac_ext
2937            ;;
2938          pgcc* | */pgcc*)
2939            coin_opt_cflags="-fast"
2940            coin_add_cflags="-Kieee -pc 64"
2941            coin_dbg_cflags="-g"
2942            ;;
2943        esac
2944        ;;
2945      *-ibm-*)
2946        case "$CC" in
2947          xlc* | */xlc* | mpxlc* | */mpxlc*)
2948            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2949            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2950            coin_dbg_cflags="-g"
2951          ;;
2952        esac
2953        ;;
2954      *-hp-*)
2955        coin_opt_cflags="-O"
2956        coin_add_cflags="-Ae"
2957        coin_dbg_cflags="-g"
2958        ;;
2959      *-*-solaris*)
2960        coin_opt_cflags="-xO4"
2961        coin_dbg_cflags="-g"
2962        ;;
2963      *-sgi-*)
2964        coin_opt_cflags="-O -OPT:Olimit=0"
2965        coin_dbg_cflags="-g"
2966        ;;
2967    esac
2968  fi
2969
2970  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2971    coin_dbg_cflags="-g"
2972  fi
2973
2974  if test -z "$coin_opt_cflags"; then
2975    # Try if -O option works if nothing else is set
2976    CFLAGS="-O"
2977    cat >conftest.$ac_ext <<_ACEOF
2978/* confdefs.h.  */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
2982/* end confdefs.h.  */
2983
2984int
2985main ()
2986{
2987int i=0; i++;
2988  ;
2989  return 0;
2990}
2991_ACEOF
2992rm -f conftest.$ac_objext conftest$ac_exeext
2993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2994  (eval $ac_link) 2>conftest.er1
2995  ac_status=$?
2996  grep -v '^ *+' conftest.er1 >conftest.err
2997  rm -f conftest.er1
2998  cat conftest.err >&5
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); } &&
3001         { ac_try='test -z "$ac_c_werror_flag"
3002                         || test ! -s conftest.err'
3003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004  (eval $ac_try) 2>&5
3005  ac_status=$?
3006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007  (exit $ac_status); }; } &&
3008         { ac_try='test -s conftest$ac_exeext'
3009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010  (eval $ac_try) 2>&5
3011  ac_status=$?
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); }; }; then
3014  coin_opt_cflags="-O"
3015else
3016  echo "$as_me: failed program was:" >&5
3017sed 's/^/| /' conftest.$ac_ext >&5
3018
3019fi
3020rm -f conftest.err conftest.$ac_objext \
3021      conftest$ac_exeext conftest.$ac_ext
3022  fi
3023
3024  # if PM doesn't want the warning messages, take them out
3025  if test x"$coin_skip_warn_cflags" = xyes; then
3026    coin_warn_cflags=
3027  fi
3028
3029  if test x${DBG_CFLAGS+set} != xset; then
3030    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3031  fi
3032  if test x${OPT_CFLAGS+set} != xset; then
3033    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3034  fi
3035
3036  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3037  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3038
3039  if test "$coin_debug_compile" = "true"; then
3040    CFLAGS="$DBG_CFLAGS"
3041  else
3042    CFLAGS="$OPT_CFLAGS"
3043  fi
3044else
3045  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3046  if test x${DBG_CFLAGS+set} != xset; then
3047    DBG_CFLAGS="$CFLAGS"
3048  fi
3049  if test x${OPT_CFLAGS+set} != xset; then
3050    OPT_CFLAGS="$CFLAGS"
3051  fi
3052fi
3053
3054# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3055if test x$COIN_PRJCT != x; then
3056  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3057fi
3058
3059# Try if CFLAGS works
3060save_CFLAGS="$CFLAGS"
3061cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h.  */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h.  */
3067
3068int
3069main ()
3070{
3071int i=0; i++;
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext conftest$ac_exeext
3077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078  (eval $ac_link) 2>conftest.er1
3079  ac_status=$?
3080  grep -v '^ *+' conftest.er1 >conftest.err
3081  rm -f conftest.er1
3082  cat conftest.err >&5
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); } &&
3085         { ac_try='test -z "$ac_c_werror_flag"
3086                         || test ! -s conftest.err'
3087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088  (eval $ac_try) 2>&5
3089  ac_status=$?
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); }; } &&
3092         { ac_try='test -s conftest$ac_exeext'
3093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094  (eval $ac_try) 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }; }; then
3098  :
3099else
3100  echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103CFLAGS=
3104fi
3105rm -f conftest.err conftest.$ac_objext \
3106      conftest$ac_exeext conftest.$ac_ext
3107if test -z "$CFLAGS"; then
3108  { 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
3109echo "$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;}
3110  CFLAGS='-O'
3111  cat >conftest.$ac_ext <<_ACEOF
3112/* confdefs.h.  */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h.  */
3117
3118int
3119main ()
3120{
3121int i=0; i++;
3122  ;
3123  return 0;
3124}
3125_ACEOF
3126rm -f conftest.$ac_objext conftest$ac_exeext
3127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3128  (eval $ac_link) 2>conftest.er1
3129  ac_status=$?
3130  grep -v '^ *+' conftest.er1 >conftest.err
3131  rm -f conftest.er1
3132  cat conftest.err >&5
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); } &&
3135         { ac_try='test -z "$ac_c_werror_flag"
3136                         || test ! -s conftest.err'
3137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138  (eval $ac_try) 2>&5
3139  ac_status=$?
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); }; } &&
3142         { ac_try='test -s conftest$ac_exeext'
3143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144  (eval $ac_try) 2>&5
3145  ac_status=$?
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); }; }; then
3148  :
3149else
3150  echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
3153CFLAGS=
3154fi
3155rm -f conftest.err conftest.$ac_objext \
3156      conftest$ac_exeext conftest.$ac_ext
3157  if test -z "$CFLAGS"; then
3158    { 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
3159echo "$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;}
3160  fi
3161fi
3162
3163{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3164echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3165
3166
3167if test x"$MPICC" = x; then :; else
3168  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3169echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3170  CC="$MPICC"
3171fi
3172
3173# Correct the LD variable if we are using the MS or Intel-windows compiler
3174case "$CC" in
3175  clang* ) ;;
3176  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3177
3178 case $build in
3179  *-mingw*)
3180    if test "${LD+set}" = set; then :; else
3181      LD=link
3182    fi
3183    ;;
3184 esac
3185 if test $enable_msvc = yes ; then
3186   if test "x${LD+set}" = xset; then :; else
3187     LD=link
3188   fi
3189 fi
3190
3191    ;;
3192esac
3193
3194ac_ext=c
3195ac_cpp='$CPP $CPPFLAGS'
3196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199
3200
3201
3202# Get the name of the Fortran compiler and appropriate compiler options
3203case $build in
3204  *-cygwin* | *-mingw*)
3205     if test "$enable_msvc" = yes ; then
3206       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3207     else
3208       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3209     fi ;;
3210  *-*-solaris*)
3211     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3212  *-linux-gnu*)
3213     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3214  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3215 esac
3216
3217
3218
3219
3220
3221
3222ac_ext=f
3223ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3224ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3226
3227
3228
3229
3230
3231
3232coin_has_f77=yes
3233
3234save_fflags="$FFLAGS"
3235
3236# We delete the cached value, since the test might not have been
3237# performed with our choice of compilers earlier
3238$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3239
3240# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3241# coin_f77_comps to see if there's a program that matches one of the names.
3242# If there's no such program, F77 = unavailable. If we match the name,
3243# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3244# compiler.
3245# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3246
3247
3248{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3249echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3250if test -n "$ac_tool_prefix"; then
3251  for ac_prog in $coin_f77_comps
3252  do
3253    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3255echo "$as_me:$LINENO: checking for $ac_word" >&5
3256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3257if test "${ac_cv_prog_F77+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  if test -n "$F77"; then
3261  ac_cv_prog_F77="$F77" # Let the user override the test.
3262else
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  test -z "$as_dir" && as_dir=.
3268  for ac_exec_ext in '' $ac_executable_extensions; do
3269  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272    break 2
3273  fi
3274done
3275done
3276
3277fi
3278fi
3279F77=$ac_cv_prog_F77
3280if test -n "$F77"; then
3281  echo "$as_me:$LINENO: result: $F77" >&5
3282echo "${ECHO_T}$F77" >&6
3283else
3284  echo "$as_me:$LINENO: result: no" >&5
3285echo "${ECHO_T}no" >&6
3286fi
3287
3288    test -n "$F77" && break
3289  done
3290fi
3291if test -z "$F77"; then
3292  ac_ct_F77=$F77
3293  for ac_prog in $coin_f77_comps
3294do
3295  # Extract the first word of "$ac_prog", so it can be a program name with args.
3296set dummy $ac_prog; ac_word=$2
3297echo "$as_me:$LINENO: checking for $ac_word" >&5
3298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3300  echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302  if test -n "$ac_ct_F77"; then
3303  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3304else
3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306for as_dir in $PATH
3307do
3308  IFS=$as_save_IFS
3309  test -z "$as_dir" && as_dir=.
3310  for ac_exec_ext in '' $ac_executable_extensions; do
3311  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312    ac_cv_prog_ac_ct_F77="$ac_prog"
3313    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314    break 2
3315  fi
3316done
3317done
3318
3319fi
3320fi
3321ac_ct_F77=$ac_cv_prog_ac_ct_F77
3322if test -n "$ac_ct_F77"; then
3323  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3324echo "${ECHO_T}$ac_ct_F77" >&6
3325else
3326  echo "$as_me:$LINENO: result: no" >&5
3327echo "${ECHO_T}no" >&6
3328fi
3329
3330  test -n "$ac_ct_F77" && break
3331done
3332test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3333
3334  F77=$ac_ct_F77
3335fi
3336
3337
3338if test "$F77" != "unavailable" ; then
3339  ac_ext=f
3340ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3341ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3343if test -n "$ac_tool_prefix"; then
3344  for ac_prog in $coin_f77_comps
3345  do
3346    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3348echo "$as_me:$LINENO: checking for $ac_word" >&5
3349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350if test "${ac_cv_prog_F77+set}" = set; then
3351  echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353  if test -n "$F77"; then
3354  ac_cv_prog_F77="$F77" # Let the user override the test.
3355else
3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359  IFS=$as_save_IFS
3360  test -z "$as_dir" && as_dir=.
3361  for ac_exec_ext in '' $ac_executable_extensions; do
3362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365    break 2
3366  fi
3367done
3368done
3369
3370fi
3371fi
3372F77=$ac_cv_prog_F77
3373if test -n "$F77"; then
3374  echo "$as_me:$LINENO: result: $F77" >&5
3375echo "${ECHO_T}$F77" >&6
3376else
3377  echo "$as_me:$LINENO: result: no" >&5
3378echo "${ECHO_T}no" >&6
3379fi
3380
3381    test -n "$F77" && break
3382  done
3383fi
3384if test -z "$F77"; then
3385  ac_ct_F77=$F77
3386  for ac_prog in $coin_f77_comps
3387do
3388  # Extract the first word of "$ac_prog", so it can be a program name with args.
3389set dummy $ac_prog; ac_word=$2
3390echo "$as_me:$LINENO: checking for $ac_word" >&5
3391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3393  echo $ECHO_N "(cached) $ECHO_C" >&6
3394else
3395  if test -n "$ac_ct_F77"; then
3396  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3397else
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401  IFS=$as_save_IFS
3402  test -z "$as_dir" && as_dir=.
3403  for ac_exec_ext in '' $ac_executable_extensions; do
3404  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405    ac_cv_prog_ac_ct_F77="$ac_prog"
3406    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407    break 2
3408  fi
3409done
3410done
3411
3412fi
3413fi
3414ac_ct_F77=$ac_cv_prog_ac_ct_F77
3415if test -n "$ac_ct_F77"; then
3416  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3417echo "${ECHO_T}$ac_ct_F77" >&6
3418else
3419  echo "$as_me:$LINENO: result: no" >&5
3420echo "${ECHO_T}no" >&6
3421fi
3422
3423  test -n "$ac_ct_F77" && break
3424done
3425
3426  F77=$ac_ct_F77
3427fi
3428
3429
3430# Provide some information about the compiler.
3431echo "$as_me:3431:" \
3432     "checking for Fortran 77 compiler version" >&5
3433ac_compiler=`set X $ac_compile; echo $2`
3434{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3435  (eval $ac_compiler --version </dev/null >&5) 2>&5
3436  ac_status=$?
3437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438  (exit $ac_status); }
3439{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3440  (eval $ac_compiler -v </dev/null >&5) 2>&5
3441  ac_status=$?
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); }
3444{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3445  (eval $ac_compiler -V </dev/null >&5) 2>&5
3446  ac_status=$?
3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448  (exit $ac_status); }
3449rm -f a.out
3450
3451# If we don't use `.F' as extension, the preprocessor is not run on the
3452# input file.  (Note that this only needs to work for GNU compilers.)
3453ac_save_ext=$ac_ext
3454ac_ext=F
3455echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3456echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3457if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3458  echo $ECHO_N "(cached) $ECHO_C" >&6
3459else
3460  cat >conftest.$ac_ext <<_ACEOF
3461      program main
3462#ifndef __GNUC__
3463       choke me
3464#endif
3465
3466      end
3467_ACEOF
3468rm -f conftest.$ac_objext
3469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470  (eval $ac_compile) 2>conftest.er1
3471  ac_status=$?
3472  grep -v '^ *+' conftest.er1 >conftest.err
3473  rm -f conftest.er1
3474  cat conftest.err >&5
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); } &&
3477         { ac_try='test -z "$ac_f77_werror_flag"
3478                         || test ! -s conftest.err'
3479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480  (eval $ac_try) 2>&5
3481  ac_status=$?
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); }; } &&
3484         { ac_try='test -s conftest.$ac_objext'
3485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486  (eval $ac_try) 2>&5
3487  ac_status=$?
3488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489  (exit $ac_status); }; }; then
3490  ac_compiler_gnu=yes
3491else
3492  echo "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
3495ac_compiler_gnu=no
3496fi
3497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3498ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3499
3500fi
3501echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3502echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3503ac_ext=$ac_save_ext
3504ac_test_FFLAGS=${FFLAGS+set}
3505ac_save_FFLAGS=$FFLAGS
3506FFLAGS=
3507echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3508echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3509if test "${ac_cv_prog_f77_g+set}" = set; then
3510  echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512  FFLAGS=-g
3513cat >conftest.$ac_ext <<_ACEOF
3514      program main
3515
3516      end
3517_ACEOF
3518rm -f conftest.$ac_objext
3519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520  (eval $ac_compile) 2>conftest.er1
3521  ac_status=$?
3522  grep -v '^ *+' conftest.er1 >conftest.err
3523  rm -f conftest.er1
3524  cat conftest.err >&5
3525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526  (exit $ac_status); } &&
3527         { ac_try='test -z "$ac_f77_werror_flag"
3528                         || test ! -s conftest.err'
3529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530  (eval $ac_try) 2>&5
3531  ac_status=$?
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); }; } &&
3534         { ac_try='test -s conftest.$ac_objext'
3535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536  (eval $ac_try) 2>&5
3537  ac_status=$?
3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); }; }; then
3540  ac_cv_prog_f77_g=yes
3541else
3542  echo "$as_me: failed program was:" >&5
3543sed 's/^/| /' conftest.$ac_ext >&5
3544
3545ac_cv_prog_f77_g=no
3546fi
3547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3548
3549fi
3550echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3551echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3552if test "$ac_test_FFLAGS" = set; then
3553  FFLAGS=$ac_save_FFLAGS
3554elif test $ac_cv_prog_f77_g = yes; then
3555  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3556    FFLAGS="-g -O2"
3557  else
3558    FFLAGS="-g"
3559  fi
3560else
3561  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3562    FFLAGS="-O2"
3563  else
3564    FFLAGS=
3565  fi
3566fi
3567
3568G77=`test $ac_compiler_gnu = yes && echo yes`
3569ac_ext=f
3570ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3571ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3573
3574else
3575  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3576echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3577fi
3578
3579FFLAGS="$save_fflags"
3580
3581# Check if a project specific FFLAGS variable has been set
3582if test x$COIN_PRJCT != x; then
3583  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3584  if test x$coin_tmp = xset; then
3585    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3586  fi
3587fi
3588
3589if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3590
3591  coin_add_fflags=
3592  coin_opt_fflags=
3593  coin_dbg_fflags=
3594  coin_warn_fflags=
3595
3596  if test "$G77" = "yes"; then
3597    coin_opt_fflags="-O3"
3598    coin_add_fflags="-pipe"
3599    coin_dbg_fflags="-g -O0"
3600  else
3601    case $build in
3602      *-cygwin* | *-mingw*)
3603        case $F77 in
3604          ifort* | */ifort* | IFORT* | */IFORT* )
3605            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3606              coin_opt_fflags='-MD -O3'
3607              coin_dbg_fflags='-MDd -debug'
3608            else
3609              coin_opt_fflags='-MT -O3'
3610              coin_dbg_fflags='-MTd -debug'
3611            fi
3612            coin_add_fflags='-fpp -nologo'
3613          ;;
3614          compile_f2c*)
3615            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3616              coin_opt_fflags='-MD -O2'
3617              coin_dbg_fflags='-MDd'
3618            else
3619              coin_opt_fflags='-MT -O2'
3620              coin_dbg_fflags='-MTd'
3621            fi
3622            coin_add_fflags='-nologo -wd4996'
3623          ;;
3624        esac
3625        ;;
3626      *-linux-*)
3627        case $F77 in
3628          ifc* | */ifc* | ifort* | */ifort*)
3629            coin_opt_fflags="-O3 -ip"
3630            coin_add_fflags="-cm -w90 -w95"
3631            coin_dbg_fflags="-g -CA -CB -CS"
3632            # Check if -i_dynamic is necessary (for new glibc library)
3633            FFLAGS=
3634            cat >conftest.$ac_ext <<_ACEOF
3635      program main
3636      write(*,*) 'Hello world'
3637      end
3638_ACEOF
3639rm -f conftest.$ac_objext conftest$ac_exeext
3640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3641  (eval $ac_link) 2>conftest.er1
3642  ac_status=$?
3643  grep -v '^ *+' conftest.er1 >conftest.err
3644  rm -f conftest.er1
3645  cat conftest.err >&5
3646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647  (exit $ac_status); } &&
3648         { ac_try='test -z "$ac_f77_werror_flag"
3649                         || test ! -s conftest.err'
3650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651  (eval $ac_try) 2>&5
3652  ac_status=$?
3653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654  (exit $ac_status); }; } &&
3655         { ac_try='test -s conftest$ac_exeext'
3656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657  (eval $ac_try) 2>&5
3658  ac_status=$?
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); }; }; then
3661  :
3662else
3663  echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666coin_add_fflags="-i_dynamic $coin_add_fflags"
3667fi
3668rm -f conftest.err conftest.$ac_objext \
3669      conftest$ac_exeext conftest.$ac_ext
3670            ;;
3671          pgf77* | */pgf77* | pgf90* | */pgf90*)
3672            coin_opt_fflags="-fast"
3673            coin_add_fflags="-Kieee -pc 64"
3674            coin_dbg_fflags="-g"
3675          ;;
3676        esac
3677        ;;
3678      *-ibm-*)
3679        case "$F77" in
3680          xlf* | */xlf* | mpxlf* | */mpxlf* )
3681            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3682            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3683            coin_dbg_fflags="-g -C"
3684            ;;
3685        esac
3686        ;;
3687      *-hp-*)
3688        coin_opt_fflags="+O3"
3689        coin_add_fflags="+U77"
3690        coin_dbg_fflags="-C -g"
3691        ;;
3692      *-*-solaris*)
3693        coin_opt_fflags="-O4"
3694        coin_dbg_fflags="-g"
3695        ;;
3696      *-sgi-*)
3697        coin_opt_fflags="-O5 -OPT:Olimit=0"
3698        coin_dbg_fflags="-g"
3699        ;;
3700    esac
3701  fi
3702
3703  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3704    coin_dbg_fflags="-g"
3705  fi
3706
3707  if test -z "$coin_opt_fflags"; then
3708    # Try if -O option works if nothing else is set
3709    FFLAGS=-O
3710    cat >conftest.$ac_ext <<_ACEOF
3711      program main
3712      integer i
3713      end
3714_ACEOF
3715rm -f conftest.$ac_objext conftest$ac_exeext
3716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3717  (eval $ac_link) 2>conftest.er1
3718  ac_status=$?
3719  grep -v '^ *+' conftest.er1 >conftest.err
3720  rm -f conftest.er1
3721  cat conftest.err >&5
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); } &&
3724         { ac_try='test -z "$ac_f77_werror_flag"
3725                         || test ! -s conftest.err'
3726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727  (eval $ac_try) 2>&5
3728  ac_status=$?
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); }; } &&
3731         { ac_try='test -s conftest$ac_exeext'
3732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733  (eval $ac_try) 2>&5
3734  ac_status=$?
3735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736  (exit $ac_status); }; }; then
3737  coin_opt_fflags="-O"
3738else
3739  echo "$as_me: failed program was:" >&5
3740sed 's/^/| /' conftest.$ac_ext >&5
3741
3742fi
3743rm -f conftest.err conftest.$ac_objext \
3744      conftest$ac_exeext conftest.$ac_ext
3745  fi
3746
3747  # if PM doesn't want the warning messages, take them out
3748  if test x"$coin_skip_warn_fflags" = xyes; then
3749    coin_warn_fflags=
3750  fi
3751
3752  if test x${DBG_FFLAGS+set} != xset; then
3753    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3754  fi
3755  if test x${OPT_FFLAGS+set} != xset; then
3756    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3757  fi
3758
3759  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3760  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3761
3762  if test "$coin_debug_compile" = "true"; then
3763    FFLAGS="$DBG_FFLAGS"
3764  else
3765    FFLAGS="$OPT_FFLAGS"
3766  fi
3767else
3768  FFLAGS="$FFLAGS $ADD_FFLAGS"
3769  if test x${DBG_FFLAGS+set} != xset; then
3770    DBG_FFLAGS="$FFLAGS"
3771  fi
3772  if test x${OPT_FFLAGS+set} != xset; then
3773    OPT_FFLAGS="$FFLAGS"
3774  fi
3775fi
3776
3777# Try if FFLAGS works
3778if test "$F77" != "unavailable" ; then
3779  cat >conftest.$ac_ext <<_ACEOF
3780      program main
3781      integer i
3782      end
3783_ACEOF
3784rm -f conftest.$ac_objext conftest$ac_exeext
3785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3786  (eval $ac_link) 2>conftest.er1
3787  ac_status=$?
3788  grep -v '^ *+' conftest.er1 >conftest.err
3789  rm -f conftest.er1
3790  cat conftest.err >&5
3791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792  (exit $ac_status); } &&
3793         { ac_try='test -z "$ac_f77_werror_flag"
3794                         || test ! -s conftest.err'
3795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796  (eval $ac_try) 2>&5
3797  ac_status=$?
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); }; } &&
3800         { ac_try='test -s conftest$ac_exeext'
3801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802  (eval $ac_try) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); }; }; then
3806  :
3807else
3808  echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811FFLAGS=
3812fi
3813rm -f conftest.err conftest.$ac_objext \
3814      conftest$ac_exeext conftest.$ac_ext
3815  if test -z "$FFLAGS"; then
3816    { 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
3817echo "$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;}
3818    FFLAGS='-O'
3819    cat >conftest.$ac_ext <<_ACEOF
3820      program main
3821      integer i
3822      end
3823_ACEOF
3824rm -f conftest.$ac_objext conftest$ac_exeext
3825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826  (eval $ac_link) 2>conftest.er1
3827  ac_status=$?
3828  grep -v '^ *+' conftest.er1 >conftest.err
3829  rm -f conftest.er1
3830  cat conftest.err >&5
3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); } &&
3833         { ac_try='test -z "$ac_f77_werror_flag"
3834                         || test ! -s conftest.err'
3835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836  (eval $ac_try) 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }; } &&
3840         { ac_try='test -s conftest$ac_exeext'
3841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842  (eval $ac_try) 2>&5
3843  ac_status=$?
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); }; }; then
3846  :
3847else
3848  echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851FFLAGS=
3852fi
3853rm -f conftest.err conftest.$ac_objext \
3854      conftest$ac_exeext conftest.$ac_ext
3855    if test -z "$FFLAGS"; then
3856      { 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
3857echo "$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;}
3858    fi
3859  fi
3860fi
3861
3862{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3863echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3864
3865
3866if test x"$MPIF77" = x; then :; else
3867  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3868echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3869  F77="$MPIF77"
3870fi
3871
3872# correct the LD variable if we use the intel fortran compiler in windows
3873case "$F77" in
3874  ifort* | */ifort* | IFORT* | */IFORT*)
3875
3876 case $build in
3877  *-mingw*)
3878    if test "${LD+set}" = set; then :; else
3879      LD=link
3880    fi
3881    ;;
3882 esac
3883 if test $enable_msvc = yes ; then
3884   if test "x${LD+set}" = xset; then :; else
3885     LD=link
3886   fi
3887 fi
3888
3889    ;;
3890esac
3891
3892ac_ext=c
3893ac_cpp='$CPP $CPPFLAGS'
3894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897
3898
3899
3900# Check if pkg-config is available (to setup addlibs file)
3901
3902
3903# Check whether --enable-pkg-config or --disable-pkg-config was given.
3904if test "${enable_pkg_config+set}" = set; then
3905  enableval="$enable_pkg_config"
3906  use_pkgconfig="$enableval"
3907else
3908  if test x$coin_cc_is_cl = xtrue; then
3909     use_pkgconfig=no
3910   else
3911     use_pkgconfig=yes
3912   fi
3913fi;
3914
3915if test $use_pkgconfig = yes ; then
3916  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3917    if test -n "$ac_tool_prefix"; then
3918  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3919set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3920echo "$as_me:$LINENO: checking for $ac_word" >&5
3921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3923  echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925  if test -n "$PKG_CONFIG"; then
3926  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3927else
3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH
3930do
3931  IFS=$as_save_IFS
3932  test -z "$as_dir" && as_dir=.
3933  for ac_exec_ext in '' $ac_executable_extensions; do
3934  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3936    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937    break 2
3938  fi
3939done
3940done
3941
3942fi
3943fi
3944PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3945if test -n "$PKG_CONFIG"; then
3946  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3947echo "${ECHO_T}$PKG_CONFIG" >&6
3948else
3949  echo "$as_me:$LINENO: result: no" >&5
3950echo "${ECHO_T}no" >&6
3951fi
3952
3953fi
3954if test -z "$ac_cv_prog_PKG_CONFIG"; then
3955  ac_ct_PKG_CONFIG=$PKG_CONFIG
3956  # Extract the first word of "pkg-config", so it can be a program name with args.
3957set dummy pkg-config; ac_word=$2
3958echo "$as_me:$LINENO: checking for $ac_word" >&5
3959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3961  echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963  if test -n "$ac_ct_PKG_CONFIG"; then
3964  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969  IFS=$as_save_IFS
3970  test -z "$as_dir" && as_dir=.
3971  for ac_exec_ext in '' $ac_executable_extensions; do
3972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975    break 2
3976  fi
3977done
3978done
3979
3980fi
3981fi
3982ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3983if test -n "$ac_ct_PKG_CONFIG"; then
3984  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3985echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3986else
3987  echo "$as_me:$LINENO: result: no" >&5
3988echo "${ECHO_T}no" >&6
3989fi
3990
3991  PKG_CONFIG=$ac_ct_PKG_CONFIG
3992else
3993  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3994fi
3995
3996  fi
3997  if test -n "$PKG_CONFIG"; then
3998    _pkg_min_version=0.16.0
3999    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4000echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4001    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4002      echo "$as_me:$LINENO: result: yes" >&5
4003echo "${ECHO_T}yes" >&6
4004    else
4005      echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
4007      PKG_CONFIG=""
4008    fi
4009  fi
4010
4011  # check if pkg-config supports the short-errors flag
4012  if test -n "$PKG_CONFIG" && \
4013    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4014    pkg_short_errors=" --short-errors "
4015  else
4016    pkg_short_errors=""
4017  fi
4018fi
4019
4020
4021
4022if test -n "$PKG_CONFIG"; then
4023  COIN_HAS_PKGCONFIG_TRUE=
4024  COIN_HAS_PKGCONFIG_FALSE='#'
4025else
4026  COIN_HAS_PKGCONFIG_TRUE='#'
4027  COIN_HAS_PKGCONFIG_FALSE=
4028fi
4029
4030
4031
4032# assemble pkg-config search path for installed projects
4033COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4034
4035# 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
4036# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4037# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4038if test "x${prefix}" = xNONE ; then
4039  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4040else
4041  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4042fi
4043
4044
4045# Check whether --with-coin-instdir or --without-coin-instdir was given.
4046if test "${with_coin_instdir+set}" = set; then
4047  withval="$with_coin_instdir"
4048  if test -d "$withval"; then : ; else
4049     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4050echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4051   { (exit 1); exit 1; }; }
4052   fi
4053   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4054
4055fi;
4056
4057
4058
4059# assemble additional pkg-config search paths for uninstalled projects
4060if test x$coin_projectdir = xyes ; then
4061  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4062  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4063  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4064  # 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)
4065  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4066  if test -f ../coin_subdirs.txt ; then
4067    for i in `cat ../coin_subdirs.txt` ; do
4068      if test -d ../$i ; then
4069        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4070      fi
4071      if test -d ../$i/pkgconfig ; then
4072        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4073      fi
4074    done
4075  fi
4076
4077  if test -f ../../coin_subdirs.txt ; then
4078    for i in `cat ../../coin_subdirs.txt` ; do
4079      if test -d ../../$i ; then
4080        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4081      fi
4082      if test -d ../../$i/pkgconfig ; then
4083        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4084      fi
4085    done
4086  fi
4087
4088
4089fi
4090
4091if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4092  { 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
4093echo "$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;}
4094fi
4095
4096
4097
4098# Get the linker flags (FLIBS) that are required for linking against this blas library
4099
4100# get FLIBS
4101ac_ext=f
4102ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4103ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4105echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4106echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4107if test "${ac_cv_prog_f77_v+set}" = set; then
4108  echo $ECHO_N "(cached) $ECHO_C" >&6
4109else
4110  cat >conftest.$ac_ext <<_ACEOF
4111      program main
4112
4113      end
4114_ACEOF
4115rm -f conftest.$ac_objext
4116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117  (eval $ac_compile) 2>conftest.er1
4118  ac_status=$?
4119  grep -v '^ *+' conftest.er1 >conftest.err
4120  rm -f conftest.er1
4121  cat conftest.err >&5
4122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123  (exit $ac_status); } &&
4124         { ac_try='test -z "$ac_f77_werror_flag"
4125                         || test ! -s conftest.err'
4126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127  (eval $ac_try) 2>&5
4128  ac_status=$?
4129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130  (exit $ac_status); }; } &&
4131         { ac_try='test -s conftest.$ac_objext'
4132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133  (eval $ac_try) 2>&5
4134  ac_status=$?
4135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136  (exit $ac_status); }; }; then
4137  ac_cv_prog_f77_v=
4138# Try some options frequently used verbose output
4139for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4140  cat >conftest.$ac_ext <<_ACEOF
4141      program main
4142
4143      end
4144_ACEOF
4145
4146# Compile and link our simple test program by passing a flag (argument
4147# 1 to this macro) to the Fortran compiler in order to get
4148# "verbose" output that we can then parse for the Fortran linker
4149# flags.
4150ac_save_FFLAGS=$FFLAGS
4151FFLAGS="$FFLAGS $ac_verb"
4152(eval echo $as_me:4152: \"$ac_link\") >&5
4153ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4154echo "$ac_f77_v_output" >&5
4155FFLAGS=$ac_save_FFLAGS
4156
4157rm -f conftest*
4158
4159# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4160# /foo, /bar, and /baz are search directories for the Fortran linker.
4161# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4162ac_f77_v_output="`echo $ac_f77_v_output |
4163        grep 'LPATH is:' |
4164        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4165
4166case $ac_f77_v_output in
4167  # If we are using xlf then replace all the commas with spaces.
4168  *xlfentry*)
4169    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4170
4171  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4172  # $LIBS confuse us, and the libraries appear later in the output anyway).
4173  *mGLOB_options_string*)
4174    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4175
4176  # If we are using Cray Fortran then delete quotes.
4177  # Use "\"" instead of '"' for font-lock-mode.
4178  # FIXME: a more general fix for quoted arguments with spaces?
4179  *cft90*)
4180    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4181esac
4182
4183
4184  # look for -l* and *.a constructs in the output
4185  for ac_arg in $ac_f77_v_output; do
4186     case $ac_arg in
4187        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4188          ac_cv_prog_f77_v=$ac_verb
4189          break 2 ;;
4190     esac
4191  done
4192done
4193if test -z "$ac_cv_prog_f77_v"; then
4194   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4195echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4196fi
4197else
4198  echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4202echo "$as_me: WARNING: compilation failed" >&2;}
4203fi
4204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4205
4206fi
4207echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4208echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4209echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4210echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4211if test "${ac_cv_f77_libs+set}" = set; then
4212  echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214  if test "x$FLIBS" != "x"; then
4215  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4216else
4217
4218cat >conftest.$ac_ext <<_ACEOF
4219      program main
4220
4221      end
4222_ACEOF
4223
4224# Compile and link our simple test program by passing a flag (argument
4225# 1 to this macro) to the Fortran compiler in order to get
4226# "verbose" output that we can then parse for the Fortran linker
4227# flags.
4228ac_save_FFLAGS=$FFLAGS
4229FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4230(eval echo $as_me:4230: \"$ac_link\") >&5
4231ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4232echo "$ac_f77_v_output" >&5
4233FFLAGS=$ac_save_FFLAGS
4234
4235rm -f conftest*
4236
4237# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4238# /foo, /bar, and /baz are search directories for the Fortran linker.
4239# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4240ac_f77_v_output="`echo $ac_f77_v_output |
4241        grep 'LPATH is:' |
4242        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4243
4244case $ac_f77_v_output in
4245  # If we are using xlf then replace all the commas with spaces.
4246  *xlfentry*)
4247    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4248
4249  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4250  # $LIBS confuse us, and the libraries appear later in the output anyway).
4251  *mGLOB_options_string*)
4252    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4253
4254  # If we are using Cray Fortran then delete quotes.
4255  # Use "\"" instead of '"' for font-lock-mode.
4256  # FIXME: a more general fix for quoted arguments with spaces?
4257  *cft90*)
4258    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4259esac
4260
4261
4262
4263ac_cv_f77_libs=
4264
4265# Save positional arguments (if any)
4266ac_save_positional="$@"
4267
4268set X $ac_f77_v_output
4269while test $# != 1; do
4270  shift
4271  ac_arg=$1
4272  case $ac_arg in
4273        [\\/]*.a | ?:[\\/]*.a)
4274            ac_exists=false
4275  for ac_i in $ac_cv_f77_libs; do
4276    if test x"$ac_arg" = x"$ac_i"; then
4277      ac_exists=true
4278      break
4279    fi
4280  done
4281
4282  if test x"$ac_exists" = xtrue; then
4283  :
4284else
4285  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4286fi
4287
4288          ;;
4289        -bI:*)
4290            ac_exists=false
4291  for ac_i in $ac_cv_f77_libs; do
4292    if test x"$ac_arg" = x"$ac_i"; then
4293      ac_exists=true
4294      break
4295    fi
4296  done
4297
4298  if test x"$ac_exists" = xtrue; then
4299  :
4300else
4301  if test "$ac_compiler_gnu" = yes; then
4302  for ac_link_opt in $ac_arg; do
4303    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4304  done
4305else
4306  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4307fi
4308fi
4309
4310          ;;
4311          # Ignore these flags.
4312        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4313          ;;
4314        -lkernel32)
4315          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4316          ;;
4317        -[LRuY])
4318          # These flags, when seen by themselves, take an argument.
4319          # We remove the space between option and argument and re-iterate
4320          # unless we find an empty arg or a new option (starting with -)
4321          case $2 in
4322             "" | -*);;
4323             *)
4324                ac_arg="$ac_arg$2"
4325                shift; shift
4326                set X $ac_arg "$@"
4327                ;;
4328          esac
4329          ;;
4330        -YP,*)
4331          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4332              ac_exists=false
4333  for ac_i in $ac_cv_f77_libs; do
4334    if test x"$ac_j" = x"$ac_i"; then
4335      ac_exists=true
4336      break
4337    fi
4338  done
4339
4340  if test x"$ac_exists" = xtrue; then
4341  :
4342else
4343  ac_arg="$ac_arg $ac_j"
4344                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4345fi
4346
4347          done
4348          ;;
4349        -[lLR]*)
4350            ac_exists=false
4351  for ac_i in $ac_cv_f77_libs; do
4352    if test x"$ac_arg" = x"$ac_i"; then
4353      ac_exists=true
4354      break
4355    fi
4356  done
4357
4358  if test x"$ac_exists" = xtrue; then
4359  :
4360else
4361  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4362fi
4363
4364          ;;
4365          # Ignore everything else.
4366  esac
4367done
4368# restore positional arguments
4369set X $ac_save_positional; shift
4370
4371# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4372# then we insist that the "run path" must be an absolute path (i.e. it
4373# must begin with a "/").
4374case `(uname -sr) 2>/dev/null` in
4375   "SunOS 5"*)
4376      ac_ld_run_path=`echo $ac_f77_v_output |
4377                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4378      test "x$ac_ld_run_path" != x &&
4379        if test "$ac_compiler_gnu" = yes; then
4380  for ac_link_opt in $ac_ld_run_path; do
4381    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4382  done
4383else
4384  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4385fi
4386      ;;
4387esac
4388fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4389
4390fi
4391echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4392echo "${ECHO_T}$ac_cv_f77_libs" >&6
4393FLIBS="$ac_cv_f77_libs"
4394
4395
4396ac_ext=c
4397ac_cpp='$CPP $CPPFLAGS'
4398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401
4402orig_FLIBS="$FLIBS"
4403
4404# If FLIBS has been set by the user, we just restore its value here
4405if test x"$save_FLIBS" != x; then
4406  FLIBS="$save_FLIBS"
4407else
4408  # This is to correct a missing exclusion in autoconf 2.59
4409  if test x"$FLIBS" != x; then
4410    my_flibs=
4411    for flag in $FLIBS; do
4412      case $flag in
4413        -lcrt*.o) ;;
4414        -lcygwin) ;;
4415        -lgcc*)   ;;
4416               *) my_flibs="$my_flibs $flag" ;;
4417      esac
4418    done
4419    FLIBS="$my_flibs"
4420  fi
4421
4422  case $build in
4423  # The following is a fix to define FLIBS for ifort on Windows
4424  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4425  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4426  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4427  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4428  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4429     *-cygwin* | *-mingw*)
4430       case "$F77" in
4431#         ifort* | */ifort* | IFORT* | */IFORT*)
4432#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4433#           if "$coin_debug_compile" = true ; then
4434#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4435#           else
4436#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4437#           fi
4438#           ;;
4439         compile_f2c*)
4440           FLIBS=`$F77 -FLIBS` ;;
4441       esac;;
4442     *-hp-*)
4443         FLIBS="$FLIBS -lm";;
4444     *-ibm-*)
4445         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4446     *-linux-*)
4447       case "$F77" in
4448         pgf77* | */pgf77* | pgf90* | */pgf90*)
4449# ask linker to go through the archives multiple times
4450# (the Fortran compiler seems to do that automatically...)
4451           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4452       esac
4453  esac
4454  ac_cv_f77_libs="$FLIBS"
4455fi
4456
4457if test "x$orig_FLIBS" != "x$FLIBS" ; then
4458  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4459echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4460fi
4461
4462ac_ext=f
4463ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4464ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4466
4467echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4468echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4469if test "${ac_cv_f77_dummy_main+set}" = set; then
4470  echo $ECHO_N "(cached) $ECHO_C" >&6
4471else
4472  ac_f77_dm_save_LIBS=$LIBS
4473 LIBS="$LIBS $FLIBS"
4474 ac_fortran_dm_var=F77_DUMMY_MAIN
4475 ac_ext=c
4476ac_cpp='$CPP $CPPFLAGS'
4477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480
4481 # First, try linking without a dummy main:
4482 cat >conftest.$ac_ext <<_ACEOF
4483/* confdefs.h.  */
4484_ACEOF
4485cat confdefs.h >>conftest.$ac_ext
4486cat >>conftest.$ac_ext <<_ACEOF
4487/* end confdefs.h.  */
4488
4489#ifdef F77_DUMMY_MAIN
4490
4491#  ifdef __cplusplus
4492     extern "C"
4493#  endif
4494   int F77_DUMMY_MAIN() { return 1; }
4495
4496#endif
4497int
4498main ()
4499{
4500
4501  ;
4502  return 0;
4503}
4504_ACEOF
4505rm -f conftest.$ac_objext conftest$ac_exeext
4506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4507  (eval $ac_link) 2>conftest.er1
4508  ac_status=$?
4509  grep -v '^ *+' conftest.er1 >conftest.err
4510  rm -f conftest.er1
4511  cat conftest.err >&5
4512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513  (exit $ac_status); } &&
4514         { ac_try='test -z "$ac_c_werror_flag"
4515                         || test ! -s conftest.err'
4516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517  (eval $ac_try) 2>&5
4518  ac_status=$?
4519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520  (exit $ac_status); }; } &&
4521         { ac_try='test -s conftest$ac_exeext'
4522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523  (eval $ac_try) 2>&5
4524  ac_status=$?
4525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526  (exit $ac_status); }; }; then
4527  ac_cv_fortran_dummy_main=none
4528else
4529  echo "$as_me: failed program was:" >&5
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
4532ac_cv_fortran_dummy_main=unknown
4533fi
4534rm -f conftest.err conftest.$ac_objext \
4535      conftest$ac_exeext conftest.$ac_ext
4536
4537 if test $ac_cv_fortran_dummy_main = unknown; then
4538   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4539     cat >conftest.$ac_ext <<_ACEOF
4540/* confdefs.h.  */
4541_ACEOF
4542cat confdefs.h >>conftest.$ac_ext
4543cat >>conftest.$ac_ext <<_ACEOF
4544/* end confdefs.h.  */
4545#define $ac_fortran_dm_var $ac_func
4546#ifdef F77_DUMMY_MAIN
4547
4548#  ifdef __cplusplus
4549     extern "C"
4550#  endif
4551   int F77_DUMMY_MAIN() { return 1; }
4552
4553#endif
4554int
4555main ()
4556{
4557
4558  ;
4559  return 0;
4560}
4561_ACEOF
4562rm -f conftest.$ac_objext conftest$ac_exeext
4563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4564  (eval $ac_link) 2>conftest.er1
4565  ac_status=$?
4566  grep -v '^ *+' conftest.er1 >conftest.err
4567  rm -f conftest.er1
4568  cat conftest.err >&5
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); } &&
4571         { ac_try='test -z "$ac_c_werror_flag"
4572                         || test ! -s conftest.err'
4573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574  (eval $ac_try) 2>&5
4575  ac_status=$?
4576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577  (exit $ac_status); }; } &&
4578         { ac_try='test -s conftest$ac_exeext'
4579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580  (eval $ac_try) 2>&5
4581  ac_status=$?
4582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583  (exit $ac_status); }; }; then
4584  ac_cv_fortran_dummy_main=$ac_func; break
4585else
4586  echo "$as_me: failed program was:" >&5
4587sed 's/^/| /' conftest.$ac_ext >&5
4588
4589fi
4590rm -f conftest.err conftest.$ac_objext \
4591      conftest$ac_exeext conftest.$ac_ext
4592   done
4593 fi
4594 ac_ext=f
4595ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4596ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4598 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4599 rm -f conftest*
4600 LIBS=$ac_f77_dm_save_LIBS
4601
4602fi
4603echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4604echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4605F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4606if test "$F77_DUMMY_MAIN" != unknown; then
4607  if test $F77_DUMMY_MAIN != none; then
4608
4609cat >>confdefs.h <<_ACEOF
4610#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4611_ACEOF
4612
4613  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4614
4615cat >>confdefs.h <<\_ACEOF
4616#define FC_DUMMY_MAIN_EQ_F77 1
4617_ACEOF
4618
4619  fi
4620fi
4621else
4622  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4623See \`config.log' for more details." >&5
4624echo "$as_me: error: linking to Fortran libraries from C fails
4625See \`config.log' for more details." >&2;}
4626   { (exit 1); exit 1; }; }
4627fi
4628
4629
4630ac_ext=f
4631ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4632ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4634
4635ac_ext=f
4636ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4637ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4639echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4640echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4641if test "${ac_cv_f77_mangling+set}" = set; then
4642  echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644  cat >conftest.$ac_ext <<_ACEOF
4645      subroutine foobar()
4646      return
4647      end
4648      subroutine foo_bar()
4649      return
4650      end
4651_ACEOF
4652rm -f conftest.$ac_objext
4653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654  (eval $ac_compile) 2>conftest.er1
4655  ac_status=$?
4656  grep -v '^ *+' conftest.er1 >conftest.err
4657  rm -f conftest.er1
4658  cat conftest.err >&5
4659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660  (exit $ac_status); } &&
4661         { ac_try='test -z "$ac_f77_werror_flag"
4662                         || test ! -s conftest.err'
4663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664  (eval $ac_try) 2>&5
4665  ac_status=$?
4666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667  (exit $ac_status); }; } &&
4668         { ac_try='test -s conftest.$ac_objext'
4669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670  (eval $ac_try) 2>&5
4671  ac_status=$?
4672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673  (exit $ac_status); }; }; then
4674  mv conftest.$ac_objext cfortran_test.$ac_objext
4675
4676  ac_save_LIBS=$LIBS
4677  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4678
4679  ac_ext=c
4680ac_cpp='$CPP $CPPFLAGS'
4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684  ac_success=no
4685  for ac_foobar in foobar FOOBAR; do
4686    for ac_underscore in "" "_"; do
4687      ac_func="$ac_foobar$ac_underscore"
4688      cat >conftest.$ac_ext <<_ACEOF
4689/* confdefs.h.  */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h.  */
4694
4695/* Override any gcc2 internal prototype to avoid an error.  */
4696#ifdef __cplusplus
4697extern "C"
4698#endif
4699/* We use char because int might match the return type of a gcc2
4700   builtin and then its argument prototype would still apply.  */
4701char $ac_func ();
4702#ifdef F77_DUMMY_MAIN
4703
4704#  ifdef __cplusplus
4705     extern "C"
4706#  endif
4707   int F77_DUMMY_MAIN() { return 1; }
4708
4709#endif
4710int
4711main ()
4712{
4713$ac_func ();
4714  ;
4715  return 0;
4716}
4717_ACEOF
4718rm -f conftest.$ac_objext conftest$ac_exeext
4719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4720  (eval $ac_link) 2>conftest.er1
4721  ac_status=$?
4722  grep -v '^ *+' conftest.er1 >conftest.err
4723  rm -f conftest.er1
4724  cat conftest.err >&5
4725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726  (exit $ac_status); } &&
4727         { ac_try='test -z "$ac_c_werror_flag"
4728                         || test ! -s conftest.err'
4729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730  (eval $ac_try) 2>&5
4731  ac_status=$?
4732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733  (exit $ac_status); }; } &&
4734         { ac_try='test -s conftest$ac_exeext'
4735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736  (eval $ac_try) 2>&5
4737  ac_status=$?
4738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739  (exit $ac_status); }; }; then
4740  ac_success=yes; break 2
4741else
4742  echo "$as_me: failed program was:" >&5
4743sed 's/^/| /' conftest.$ac_ext >&5
4744
4745fi
4746rm -f conftest.err conftest.$ac_objext \
4747      conftest$ac_exeext conftest.$ac_ext
4748    done
4749  done
4750  ac_ext=f
4751ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4752ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4754
4755  if test "$ac_success" = "yes"; then
4756     case $ac_foobar in
4757        foobar)
4758           ac_case=lower
4759           ac_foo_bar=foo_bar
4760           ;;
4761        FOOBAR)
4762           ac_case=upper
4763           ac_foo_bar=FOO_BAR
4764           ;;
4765     esac
4766
4767     ac_ext=c
4768ac_cpp='$CPP $CPPFLAGS'
4769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4771ac_compiler_gnu=$ac_cv_c_compiler_gnu
4772     ac_success_extra=no
4773     for ac_extra in "" "_"; do
4774        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4775        cat >conftest.$ac_ext <<_ACEOF
4776/* confdefs.h.  */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h.  */
4781
4782/* Override any gcc2 internal prototype to avoid an error.  */
4783#ifdef __cplusplus
4784extern "C"
4785#endif
4786/* We use char because int might match the return type of a gcc2
4787   builtin and then its argument prototype would still apply.  */
4788char $ac_func ();
4789#ifdef F77_DUMMY_MAIN
4790
4791#  ifdef __cplusplus
4792     extern "C"
4793#  endif
4794   int F77_DUMMY_MAIN() { return 1; }
4795
4796#endif
4797int
4798main ()
4799{
4800$ac_func ();
4801  ;
4802  return 0;
4803}
4804_ACEOF
4805rm -f conftest.$ac_objext conftest$ac_exeext
4806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4807  (eval $ac_link) 2>conftest.er1
4808  ac_status=$?
4809  grep -v '^ *+' conftest.er1 >conftest.err
4810  rm -f conftest.er1
4811  cat conftest.err >&5
4812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813  (exit $ac_status); } &&
4814         { ac_try='test -z "$ac_c_werror_flag"
4815                         || test ! -s conftest.err'
4816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817  (eval $ac_try) 2>&5
4818  ac_status=$?
4819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820  (exit $ac_status); }; } &&
4821         { ac_try='test -s conftest$ac_exeext'
4822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823  (eval $ac_try) 2>&5
4824  ac_status=$?
4825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826  (exit $ac_status); }; }; then
4827  ac_success_extra=yes; break
4828else
4829  echo "$as_me: failed program was:" >&5
4830sed 's/^/| /' conftest.$ac_ext >&5
4831
4832fi
4833rm -f conftest.err conftest.$ac_objext \
4834      conftest$ac_exeext conftest.$ac_ext
4835     done
4836     ac_ext=f
4837ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4838ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4840
4841     if test "$ac_success_extra" = "yes"; then
4842        ac_cv_f77_mangling="$ac_case case"
4843        if test -z "$ac_underscore"; then
4844           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4845        else
4846           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4847        fi
4848        if test -z "$ac_extra"; then
4849           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4850        else
4851           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4852        fi
4853      else
4854        ac_cv_f77_mangling="unknown"
4855      fi
4856  else
4857     ac_cv_f77_mangling="unknown"
4858  fi
4859
4860  LIBS=$ac_save_LIBS
4861  rm -f cfortran_test* conftest*
4862else
4863  echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4867See \`config.log' for more details." >&5
4868echo "$as_me: error: cannot compile a simple Fortran program
4869See \`config.log' for more details." >&2;}
4870   { (exit 1); exit 1; }; }
4871fi
4872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4873
4874fi
4875echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4876echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4877
4878ac_ext=f
4879ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4880ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4882
4883
4884ac_ext=f
4885ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4886ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4888
4889ac_ext=f
4890ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4891ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4893
4894
4895case $ac_cv_f77_mangling in
4896  "lower case, no underscore, no extra underscore")
4897          cat >>confdefs.h <<\_ACEOF
4898#define F77_FUNC(name,NAME) name
4899_ACEOF
4900
4901          cat >>confdefs.h <<\_ACEOF
4902#define F77_FUNC_(name,NAME) name
4903_ACEOF
4904 ;;
4905  "lower case, no underscore, extra underscore")
4906          cat >>confdefs.h <<\_ACEOF
4907#define F77_FUNC(name,NAME) name
4908_ACEOF
4909
4910          cat >>confdefs.h <<\_ACEOF
4911#define F77_FUNC_(name,NAME) name ## _
4912_ACEOF
4913 ;;
4914  "lower case, underscore, no extra underscore")
4915          cat >>confdefs.h <<\_ACEOF
4916#define F77_FUNC(name,NAME) name ## _
4917_ACEOF
4918
4919          cat >>confdefs.h <<\_ACEOF
4920#define F77_FUNC_(name,NAME) name ## _
4921_ACEOF
4922 ;;
4923  "lower case, underscore, extra underscore")
4924          cat >>confdefs.h <<\_ACEOF
4925#define F77_FUNC(name,NAME) name ## _
4926_ACEOF
4927
4928          cat >>confdefs.h <<\_ACEOF
4929#define F77_FUNC_(name,NAME) name ## __
4930_ACEOF
4931 ;;
4932  "upper case, no underscore, no extra underscore")
4933          cat >>confdefs.h <<\_ACEOF
4934#define F77_FUNC(name,NAME) NAME
4935_ACEOF
4936
4937          cat >>confdefs.h <<\_ACEOF
4938#define F77_FUNC_(name,NAME) NAME
4939_ACEOF
4940 ;;
4941  "upper case, no underscore, extra underscore")
4942          cat >>confdefs.h <<\_ACEOF
4943#define F77_FUNC(name,NAME) NAME
4944_ACEOF
4945
4946          cat >>confdefs.h <<\_ACEOF
4947#define F77_FUNC_(name,NAME) NAME ## _
4948_ACEOF
4949 ;;
4950  "upper case, underscore, no extra underscore")
4951          cat >>confdefs.h <<\_ACEOF
4952#define F77_FUNC(name,NAME) NAME ## _
4953_ACEOF
4954
4955          cat >>confdefs.h <<\_ACEOF
4956#define F77_FUNC_(name,NAME) NAME ## _
4957_ACEOF
4958 ;;
4959  "upper case, underscore, extra underscore")
4960          cat >>confdefs.h <<\_ACEOF
4961#define F77_FUNC(name,NAME) NAME ## _
4962_ACEOF
4963
4964          cat >>confdefs.h <<\_ACEOF
4965#define F77_FUNC_(name,NAME) NAME ## __
4966_ACEOF
4967 ;;
4968  *)
4969          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4970echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4971          ;;
4972esac
4973
4974ac_ext=f
4975ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4976ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4978
4979ac_ext=c
4980ac_cpp='$CPP $CPPFLAGS'
4981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984
4985
4986
4987
4988# Add FLIBS to HSL_PCLIBS, so that they get into the .pc files
4989HSL_PCLIBS="$HSL_PCLIBS $FLIBS"
4990
4991# Need egrep later on
4992echo "$as_me:$LINENO: checking for egrep" >&5
4993echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4994if test "${ac_cv_prog_egrep+set}" = set; then
4995  echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4998    then ac_cv_prog_egrep='grep -E'
4999    else ac_cv_prog_egrep='egrep'
5000    fi
5001fi
5002echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5003echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5004 EGREP=$ac_cv_prog_egrep
5005
5006
5007
5008# Also set up the FC compiler variable, required to compile .f90
5009# files.  We use the same compile and flags as F77 and FFLAGS, unless
5010# the user has set FC and FCFLAGS explicitly.
5011if test "$FC" = ""; then
5012  FC="$F77"
5013fi
5014if test "$FCFLAGS" = ""; then
5015  FCFLAGS="$FFLAGS"
5016fi
5017ac_ext=${FC_SRCEXT-f}
5018ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5019ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5021if test -n "$ac_tool_prefix"; then
5022  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5023  do
5024    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5025set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5026echo "$as_me:$LINENO: checking for $ac_word" >&5
5027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5028if test "${ac_cv_prog_FC+set}" = set; then
5029  echo $ECHO_N "(cached) $ECHO_C" >&6
5030else
5031  if test -n "$FC"; then
5032  ac_cv_prog_FC="$FC" # Let the user override the test.
5033else
5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037  IFS=$as_save_IFS
5038  test -z "$as_dir" && as_dir=.
5039  for ac_exec_ext in '' $ac_executable_extensions; do
5040  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5042    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043    break 2
5044  fi
5045done
5046done
5047
5048fi
5049fi
5050FC=$ac_cv_prog_FC
5051if test -n "$FC"; then
5052  echo "$as_me:$LINENO: result: $FC" >&5
5053echo "${ECHO_T}$FC" >&6
5054else
5055  echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057fi
5058
5059    test -n "$FC" && break
5060  done
5061fi
5062if test -z "$FC"; then
5063  ac_ct_FC=$FC
5064  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5065do
5066  # Extract the first word of "$ac_prog", so it can be a program name with args.
5067set dummy $ac_prog; ac_word=$2
5068echo "$as_me:$LINENO: checking for $ac_word" >&5
5069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5070if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
5071  echo $ECHO_N "(cached) $ECHO_C" >&6
5072else
5073  if test -n "$ac_ct_FC"; then
5074  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5075else
5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077for as_dir in $PATH
5078do
5079  IFS=$as_save_IFS
5080  test -z "$as_dir" && as_dir=.
5081  for ac_exec_ext in '' $ac_executable_extensions; do
5082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083    ac_cv_prog_ac_ct_FC="$ac_prog"
5084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085    break 2
5086  fi
5087done
5088done
5089
5090fi
5091fi
5092ac_ct_FC=$ac_cv_prog_ac_ct_FC
5093if test -n "$ac_ct_FC"; then
5094  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
5095echo "${ECHO_T}$ac_ct_FC" >&6
5096else
5097  echo "$as_me:$LINENO: result: no" >&5
5098echo "${ECHO_T}no" >&6
5099fi
5100
5101  test -n "$ac_ct_FC" && break
5102done
5103
5104  FC=$ac_ct_FC
5105fi
5106
5107
5108# Provide some information about the compiler.
5109echo "$as_me:5109:" \
5110     "checking for Fortran compiler version" >&5
5111ac_compiler=`set X $ac_compile; echo $2`
5112{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5113  (eval $ac_compiler --version </dev/null >&5) 2>&5
5114  ac_status=$?
5115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116  (exit $ac_status); }
5117{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5118  (eval $ac_compiler -v </dev/null >&5) 2>&5
5119  ac_status=$?
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); }
5122{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5123  (eval $ac_compiler -V </dev/null >&5) 2>&5
5124  ac_status=$?
5125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126  (exit $ac_status); }
5127rm -f a.out
5128
5129# If we don't use `.F' as extension, the preprocessor is not run on the
5130# input file.  (Note that this only needs to work for GNU compilers.)
5131ac_save_ext=$ac_ext
5132ac_ext=F
5133echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
5134echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
5135if test "${ac_cv_fc_compiler_gnu+set}" = set; then
5136  echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138  cat >conftest.$ac_ext <<_ACEOF
5139      program main
5140#ifndef __GNUC__
5141       choke me
5142#endif
5143
5144      end
5145_ACEOF
5146rm -f conftest.$ac_objext
5147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148  (eval $ac_compile) 2>conftest.er1
5149  ac_status=$?
5150  grep -v '^ *+' conftest.er1 >conftest.err
5151  rm -f conftest.er1
5152  cat conftest.err >&5
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); } &&
5155         { ac_try='test -z "$ac_fc_werror_flag"
5156                         || test ! -s conftest.err'
5157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158  (eval $ac_try) 2>&5
5159  ac_status=$?
5160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161  (exit $ac_status); }; } &&
5162         { ac_try='test -s conftest.$ac_objext'
5163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164  (eval $ac_try) 2>&5
5165  ac_status=$?
5166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167  (exit $ac_status); }; }; then
5168  ac_compiler_gnu=yes
5169else
5170  echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
5172
5173ac_compiler_gnu=no
5174fi
5175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5176ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5177
5178fi
5179echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
5180echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
5181ac_ext=$ac_save_ext
5182ac_test_FFLAGS=${FCFLAGS+set}
5183ac_save_FFLAGS=$FCFLAGS
5184FCFLAGS=
5185echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
5186echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
5187if test "${ac_cv_prog_fc_g+set}" = set; then
5188  echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190  FCFLAGS=-g
5191cat >conftest.$ac_ext <<_ACEOF
5192      program main
5193
5194      end
5195_ACEOF
5196rm -f conftest.$ac_objext
5197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198  (eval $ac_compile) 2>conftest.er1
5199  ac_status=$?
5200  grep -v '^ *+' conftest.er1 >conftest.err
5201  rm -f conftest.er1
5202  cat conftest.err >&5
5203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204  (exit $ac_status); } &&
5205         { ac_try='test -z "$ac_fc_werror_flag"
5206                         || test ! -s conftest.err'
5207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208  (eval $ac_try) 2>&5
5209  ac_status=$?
5210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211  (exit $ac_status); }; } &&
5212         { ac_try='test -s conftest.$ac_objext'
5213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214  (eval $ac_try) 2>&5
5215  ac_status=$?
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); }; }; then
5218  ac_cv_prog_fc_g=yes
5219else
5220  echo "$as_me: failed program was:" >&5
5221sed 's/^/| /' conftest.$ac_ext >&5
5222
5223ac_cv_prog_fc_g=no
5224fi
5225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5226
5227fi
5228echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
5229echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
5230if test "$ac_test_FFLAGS" = set; then
5231  FCFLAGS=$ac_save_FFLAGS
5232elif test $ac_cv_prog_fc_g = yes; then
5233  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5234    FCFLAGS="-g -O2"
5235  else
5236    FCFLAGS="-g"
5237  fi
5238else
5239  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5240    FCFLAGS="-O2"
5241  else
5242    FCFLAGS=
5243  fi
5244fi
5245
5246ac_ext=c
5247ac_cpp='$CPP $CPPFLAGS'
5248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251
5252
5253# recent autotools versions can recognize OpenMP with the following macro
5254# this would be useful when using MA86 and MA97
5255# AC_OPENMP
5256
5257# Initialize autotools
5258
5259if test x$enable_loadable_library = xyes; then
5260  flag=force_shared
5261fi
5262{
5263
5264
5265
5266# START
5267
5268coin_disable_shared=no
5269# Test if force_shared has been set
5270if test "x$flag" = xforce_shared; then
5271  if test x$enable_shared = xno; then
5272    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5273echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5274   { (exit 1); exit 1; }; }
5275  fi
5276  enable_shared=yes;
5277else
5278  # On Cygwin and AIX, building DLLs doesn't work
5279  case $build in
5280    *-cygwin* | *-mingw*)
5281      coin_disable_shared=yes
5282      if test x"$enable_shared" = xyes; then
5283        case "$CXX" in
5284          clang* )
5285            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5286echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5287            ;;
5288          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5289            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
5290echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
5291            ;;
5292          *)
5293            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5294echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5295            ;;
5296        esac
5297      fi
5298    ;;
5299    *-aix*)
5300      coin_disable_shared=yes
5301      platform=AIX
5302      if test x"$enable_shared" = xyes; then
5303        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
5304echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
5305      fi
5306    ;;
5307  esac
5308fi
5309if test x"$coin_disable_shared" = xyes; then
5310  if test x"$enable_shared" = xyes; then
5311    :
5312  else
5313    # we don't disable shared, because it was not selected anyway
5314    coin_disable_shared=no
5315  fi
5316  enable_shared=no
5317fi
5318# By default, we only want the shared objects to be compiled
5319# Check whether --enable-static or --disable-static was given.
5320if test "${enable_static+set}" = set; then
5321  enableval="$enable_static"
5322  p=${PACKAGE-default}
5323    case $enableval in
5324    yes) enable_static=yes ;;
5325    no) enable_static=no ;;
5326    *)
5327     enable_static=no
5328      # Look at the argument we got.  We use all the common list separators.
5329      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5330      for pkg in $enableval; do
5331        IFS="$lt_save_ifs"
5332        if test "X$pkg" = "X$p"; then
5333          enable_static=yes
5334        fi
5335      done
5336      IFS="$lt_save_ifs"
5337      ;;
5338    esac
5339else
5340  enable_static=no
5341fi;
5342
5343
5344
5345
5346# Initialize automake
5347echo "$as_me:$LINENO: checking whether ln -s works" >&5
5348echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5349LN_S=$as_ln_s
5350if test "$LN_S" = "ln -s"; then
5351  echo "$as_me:$LINENO: result: yes" >&5
5352echo "${ECHO_T}yes" >&6
5353else
5354  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5355echo "${ECHO_T}no, using $LN_S" >&6
5356fi
5357
5358am__api_version="1.9"
5359# Find a good install program.  We prefer a C program (faster),
5360# so one script is as good as another.  But avoid the broken or
5361# incompatible versions:
5362# SysV /etc/install, /usr/sbin/install
5363# SunOS /usr/etc/install
5364# IRIX /sbin/install
5365# AIX /bin/install
5366# AmigaOS /C/install, which installs bootblocks on floppy discs
5367# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5368# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5369# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5370# OS/2's system install, which has a completely different semantic
5371# ./install, which can be erroneously created by make from ./install.sh.
5372echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5373echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5374if test -z "$INSTALL"; then
5375if test "${ac_cv_path_install+set}" = set; then
5376  echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379for as_dir in $PATH
5380do
5381  IFS=$as_save_IFS
5382  test -z "$as_dir" && as_dir=.
5383  # Account for people who put trailing slashes in PATH elements.
5384case $as_dir/ in
5385  ./ | .// | /cC/* | \
5386  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5387  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5388  /usr/ucb/* ) ;;
5389  *)
5390    # OSF1 and SCO ODT 3.0 have their own names for install.
5391    # Don't use installbsd from OSF since it installs stuff as root
5392    # by default.
5393    for ac_prog in ginstall scoinst install; do
5394      for ac_exec_ext in '' $ac_executable_extensions; do
5395        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5396          if test $ac_prog = install &&
5397            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5398            # AIX install.  It has an incompatible calling convention.
5399            :
5400          elif test $ac_prog = install &&
5401            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5402            # program-specific install script used by HP pwplus--don't use.
5403            :
5404          else
5405            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5406            break 3
5407          fi
5408        fi
5409      done
5410    done
5411    ;;
5412esac
5413done
5414
5415
5416fi
5417  if test "${ac_cv_path_install+set}" = set; then
5418    INSTALL=$ac_cv_path_install
5419  else
5420    # As a last resort, use the slow shell script.  We don't cache a
5421    # path for INSTALL within a source directory, because that will
5422    # break other packages using the cache if that directory is
5423    # removed, or if the path is relative.
5424    INSTALL=$ac_install_sh
5425  fi
5426fi
5427echo "$as_me:$LINENO: result: $INSTALL" >&5
5428echo "${ECHO_T}$INSTALL" >&6
5429
5430# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5431# It thinks the first close brace ends the variable substitution.
5432test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5433
5434test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5435
5436test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5437
5438echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5439echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5440# Just in case
5441sleep 1
5442echo timestamp > conftest.file
5443# Do `set' in a subshell so we don't clobber the current shell's
5444# arguments.  Must try -L first in case configure is actually a
5445# symlink; some systems play weird games with the mod time of symlinks
5446# (eg FreeBSD returns the mod time of the symlink's containing
5447# directory).
5448if (
5449   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5450   if test "$*" = "X"; then
5451      # -L didn't work.
5452      set X `ls -t $srcdir/configure conftest.file`
5453   fi
5454   rm -f conftest.file
5455   if test "$*" != "X $srcdir/configure conftest.file" \
5456      && test "$*" != "X conftest.file $srcdir/configure"; then
5457
5458      # If neither matched, then we have a broken ls.  This can happen
5459      # if, for instance, CONFIG_SHELL is bash and it inherits a
5460      # broken ls alias from the environment.  This has actually
5461      # happened.  Such a system could not be considered "sane".
5462      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5463alias in your environment" >&5
5464echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5465alias in your environment" >&2;}
5466   { (exit 1); exit 1; }; }
5467   fi
5468
5469   test "$2" = conftest.file
5470   )
5471then
5472   # Ok.
5473   :
5474else
5475   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5476Check your system clock" >&5
5477echo "$as_me: error: newly created file is older than distributed files!
5478Check your system clock" >&2;}
5479   { (exit 1); exit 1; }; }
5480fi
5481echo "$as_me:$LINENO: result: yes" >&5
5482echo "${ECHO_T}yes" >&6
5483test "$program_prefix" != NONE &&
5484  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5485# Use a double $ so make ignores it.
5486test "$program_suffix" != NONE &&
5487  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5488# Double any \ or $.  echo might interpret backslashes.
5489# By default was `s,x,x', remove it if useless.
5490cat <<\_ACEOF >conftest.sed
5491s/[\\$]/&&/g;s/;s,x,x,$//
5492_ACEOF
5493program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5494rm conftest.sed
5495
5496# expand $ac_aux_dir to an absolute path
5497am_aux_dir=`cd $ac_aux_dir && pwd`
5498
5499test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5500# Use eval to expand $SHELL
5501if eval "$MISSING --run true"; then
5502  am_missing_run="$MISSING --run "
5503else
5504  am_missing_run=
5505  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5506echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5507fi
5508
5509if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5510  # We used to keeping the `.' as first argument, in order to
5511  # allow $(mkdir_p) to be used without argument.  As in
5512  #   $(mkdir_p) $(somedir)
5513  # where $(somedir) is conditionally defined.  However this is wrong
5514  # for two reasons:
5515  #  1. if the package is installed by a user who cannot write `.'
5516  #     make install will fail,
5517  #  2. the above comment should most certainly read
5518  #     $(mkdir_p) $(DESTDIR)$(somedir)
5519  #     so it does not work when $(somedir) is undefined and
5520  #     $(DESTDIR) is not.
5521  #  To support the latter case, we have to write
5522  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5523  #  so the `.' trick is pointless.
5524  mkdir_p='mkdir -p --'
5525else
5526  # On NextStep and OpenStep, the `mkdir' command does not
5527  # recognize any option.  It will interpret all options as
5528  # directories to create, and then abort because `.' already
5529  # exists.
5530  for d in ./-p ./--version;
5531  do
5532    test -d $d && rmdir $d
5533  done
5534  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5535  if test -f "$ac_aux_dir/mkinstalldirs"; then
5536    mkdir_p='$(mkinstalldirs)'
5537  else
5538    mkdir_p='$(install_sh) -d'
5539  fi
5540fi
5541
5542for ac_prog in gawk mawk nawk awk
5543do
5544  # Extract the first word of "$ac_prog", so it can be a program name with args.
5545set dummy $ac_prog; ac_word=$2
5546echo "$as_me:$LINENO: checking for $ac_word" >&5
5547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548if test "${ac_cv_prog_AWK+set}" = set; then
5549  echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551  if test -n "$AWK"; then
5552  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557  IFS=$as_save_IFS
5558  test -z "$as_dir" && as_dir=.
5559  for ac_exec_ext in '' $ac_executable_extensions; do
5560  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561    ac_cv_prog_AWK="$ac_prog"
5562    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563    break 2
5564  fi
5565done
5566done
5567
5568fi
5569fi
5570AWK=$ac_cv_prog_AWK
5571if test -n "$AWK"; then
5572  echo "$as_me:$LINENO: result: $AWK" >&5
5573echo "${ECHO_T}$AWK" >&6
5574else
5575  echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6
5577fi
5578
5579  test -n "$AWK" && break
5580done
5581
5582echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5583echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5584set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5585if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5586  echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588  cat >conftest.make <<\_ACEOF
5589all:
5590        @echo 'ac_maketemp="$(MAKE)"'
5591_ACEOF
5592# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5593eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5594if test -n "$ac_maketemp"; then
5595  eval ac_cv_prog_make_${ac_make}_set=yes
5596else
5597  eval ac_cv_prog_make_${ac_make}_set=no
5598fi
5599rm -f conftest.make
5600fi
5601if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5602  echo "$as_me:$LINENO: result: yes" >&5
5603echo "${ECHO_T}yes" >&6
5604  SET_MAKE=
5605else
5606  echo "$as_me:$LINENO: result: no" >&5
5607echo "${ECHO_T}no" >&6
5608  SET_MAKE="MAKE=${MAKE-make}"
5609fi
5610
5611rm -rf .tst 2>/dev/null
5612mkdir .tst 2>/dev/null
5613if test -d .tst; then
5614  am__leading_dot=.
5615else
5616  am__leading_dot=_
5617fi
5618rmdir .tst 2>/dev/null
5619
5620DEPDIR="${am__leading_dot}deps"
5621
5622          ac_config_commands="$ac_config_commands depfiles"
5623
5624
5625am_make=${MAKE-make}
5626cat > confinc << 'END'
5627am__doit:
5628        @echo done
5629.PHONY: am__doit
5630END
5631# If we don't find an include directive, just comment out the code.
5632echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5633echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5634am__include="#"
5635am__quote=
5636_am_result=none
5637# First try GNU make style include.
5638echo "include confinc" > confmf
5639# We grep out `Entering directory' and `Leaving directory'
5640# messages which can occur if `w' ends up in MAKEFLAGS.
5641# In particular we don't look at `^make:' because GNU make might
5642# be invoked under some other name (usually "gmake"), in which
5643# case it prints its new name instead of `make'.
5644if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5645   am__include=include
5646   am__quote=
5647   _am_result=GNU
5648fi
5649# Now try BSD make style include.
5650if test "$am__include" = "#"; then
5651   echo '.include "confinc"' > confmf
5652   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5653      am__include=.include
5654      am__quote="\""
5655      _am_result=BSD
5656   fi
5657fi
5658
5659
5660echo "$as_me:$LINENO: result: $_am_result" >&5
5661echo "${ECHO_T}$_am_result" >&6
5662rm -f confinc confmf
5663
5664# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5665if test "${enable_dependency_tracking+set}" = set; then
5666  enableval="$enable_dependency_tracking"
5667
5668fi;
5669if test "x$enable_dependency_tracking" != xno; then
5670  am_depcomp="$ac_aux_dir/depcomp"
5671  AMDEPBACKSLASH='\'
5672fi
5673
5674
5675if test "x$enable_dependency_tracking" != xno; then
5676  AMDEP_TRUE=
5677  AMDEP_FALSE='#'
5678else
5679  AMDEP_TRUE='#'
5680  AMDEP_FALSE=
5681fi
5682
5683
5684
5685
5686
5687
5688# AC_MSG_NOTICE([Beginning automake initialisation.])
5689# Stuff for automake
5690# test to see if srcdir already configured
5691if test "`cd $srcdir && pwd`" != "`pwd`" &&
5692   test -f $srcdir/config.status; then
5693  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5694echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5695   { (exit 1); exit 1; }; }
5696fi
5697
5698# test whether we have cygpath
5699if test -z "$CYGPATH_W"; then
5700  if (cygpath --version) >/dev/null 2>/dev/null; then
5701    CYGPATH_W='cygpath -w'
5702  else
5703    CYGPATH_W=echo
5704  fi
5705fi
5706
5707
5708# Define the identity of the package.
5709 PACKAGE='thirdpartyhsl'
5710 VERSION='1.4'
5711
5712
5713cat >>confdefs.h <<_ACEOF
5714#define PACKAGE "$PACKAGE"
5715_ACEOF
5716
5717
5718cat >>confdefs.h <<_ACEOF
5719#define VERSION "$VERSION"
5720_ACEOF
5721
5722# Some tools Automake needs.
5723
5724ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5725
5726
5727AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5728
5729
5730AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5731
5732
5733AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5734
5735
5736MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5737
5738install_sh=${install_sh-"$am_aux_dir/install-sh"}
5739
5740# Installed binaries are usually stripped using `strip' when the user
5741# run `make install-strip'.  However `strip' might not be the right
5742# tool to use in cross-compilation environments, therefore Automake
5743# will honor the `STRIP' environment variable to overrule this program.
5744if test "$cross_compiling" != no; then
5745  if test -n "$ac_tool_prefix"; then
5746  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5747set dummy ${ac_tool_prefix}strip; ac_word=$2
5748echo "$as_me:$LINENO: checking for $ac_word" >&5
5749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750if test "${ac_cv_prog_STRIP+set}" = set; then
5751  echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753  if test -n "$STRIP"; then
5754  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5755else
5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759  IFS=$as_save_IFS
5760  test -z "$as_dir" && as_dir=.
5761  for ac_exec_ext in '' $ac_executable_extensions; do
5762  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765    break 2
5766  fi
5767done
5768done
5769
5770fi
5771fi
5772STRIP=$ac_cv_prog_STRIP
5773if test -n "$STRIP"; then
5774  echo "$as_me:$LINENO: result: $STRIP" >&5
5775echo "${ECHO_T}$STRIP" >&6
5776else
5777  echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6
5779fi
5780
5781fi
5782if test -z "$ac_cv_prog_STRIP"; then
5783  ac_ct_STRIP=$STRIP
5784  # Extract the first word of "strip", so it can be a program name with args.
5785set dummy strip; ac_word=$2
5786echo "$as_me:$LINENO: checking for $ac_word" >&5
5787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5788if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5789  echo $ECHO_N "(cached) $ECHO_C" >&6
5790else
5791  if test -n "$ac_ct_STRIP"; then
5792  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797  IFS=$as_save_IFS
5798  test -z "$as_dir" && as_dir=.
5799  for ac_exec_ext in '' $ac_executable_extensions; do
5800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801    ac_cv_prog_ac_ct_STRIP="strip"
5802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803    break 2
5804  fi
5805done
5806done
5807
5808  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5809fi
5810fi
5811ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5812if test -n "$ac_ct_STRIP"; then
5813  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5814echo "${ECHO_T}$ac_ct_STRIP" >&6
5815else
5816  echo "$as_me:$LINENO: result: no" >&5
5817echo "${ECHO_T}no" >&6
5818fi
5819
5820  STRIP=$ac_ct_STRIP
5821else
5822  STRIP="$ac_cv_prog_STRIP"
5823fi
5824
5825fi
5826INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5827
5828# We need awk for the "check" target.  The system "awk" is bad on
5829# some platforms.
5830# Always define AMTAR for backward compatibility.
5831
5832AMTAR=${AMTAR-"${am_missing_run}tar"}
5833
5834am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5835
5836
5837
5838
5839depcc="$CC"   am_compiler_list=
5840
5841echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5842echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5843if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5844  echo $ECHO_N "(cached) $ECHO_C" >&6
5845else
5846  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5847  # We make a subdir and do the tests there.  Otherwise we can end up
5848  # making bogus files that we don't know about and never remove.  For
5849  # instance it was reported that on HP-UX the gcc test will end up
5850  # making a dummy file named `D' -- because `-MD' means `put the output
5851  # in D'.
5852  mkdir conftest.dir
5853  # Copy depcomp to subdir because otherwise we won't find it if we're
5854  # using a relative directory.
5855  cp "$am_depcomp" conftest.dir
5856  cd conftest.dir
5857  # We will build objects and dependencies in a subdirectory because
5858  # it helps to detect inapplicable dependency modes.  For instance
5859  # both Tru64's cc and ICC support -MD to output dependencies as a
5860  # side effect of compilation, but ICC will put the dependencies in
5861  # the current directory while Tru64 will put them in the object
5862  # directory.
5863  mkdir sub
5864
5865  am_cv_CC_dependencies_compiler_type=none
5866  if test "$am_compiler_list" = ""; then
5867     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5868  fi
5869  for depmode in $am_compiler_list; do
5870    # Setup a source with many dependencies, because some compilers
5871    # like to wrap large dependency lists on column 80 (with \), and
5872    # we should not choose a depcomp mode which is confused by this.
5873    #
5874    # We need to recreate these files for each test, as the compiler may
5875    # overwrite some of them when testing with obscure command lines.
5876    # This happens at least with the AIX C compiler.
5877    : > sub/conftest.c
5878    for i in 1 2 3 4 5 6; do
5879      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5880      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5881      # Solaris 8's {/usr,}/bin/sh.
5882      touch sub/conftst$i.h
5883    done
5884    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5885
5886    case $depmode in
5887    nosideeffect)
5888      # after this tag, mechanisms are not by side-effect, so they'll
5889      # only be used when explicitly requested
5890      if test "x$enable_dependency_tracking" = xyes; then
5891        continue
5892      else
5893        break
5894      fi
5895      ;;
5896    none) break ;;
5897    esac
5898    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5899    # mode.  It turns out that the SunPro C++ compiler does not properly
5900    # handle `-M -o', and we need to detect this.
5901    if depmode=$depmode \
5902       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5903       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5904       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5905         >/dev/null 2>conftest.err &&
5906       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5907       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5908       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5909      # icc doesn't choke on unknown options, it will just issue warnings
5910      # or remarks (even with -Werror).  So we grep stderr for any message
5911      # that says an option was ignored or not supported.
5912      # When given -MP, icc 7.0 and 7.1 complain thusly:
5913      #   icc: Command line warning: ignoring option '-M'; no argument required
5914      # The diagnosis changed in icc 8.0:
5915      #   icc: Command line remark: option '-MP' not supported
5916      if (grep 'ignoring option' conftest.err ||
5917          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5918        am_cv_CC_dependencies_compiler_type=$depmode
5919        break
5920      fi
5921    fi
5922  done
5923
5924  cd ..
5925  rm -rf conftest.dir
5926else
5927  am_cv_CC_dependencies_compiler_type=none
5928fi
5929
5930fi
5931echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5932echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5933CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5934
5935
5936
5937if
5938  test "x$enable_dependency_tracking" != xno \
5939  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5940  am__fastdepCC_TRUE=
5941  am__fastdepCC_FALSE='#'
5942else
5943  am__fastdepCC_TRUE='#'
5944  am__fastdepCC_FALSE=
5945fi
5946
5947
5948
5949echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5950echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5951    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5952if test "${enable_maintainer_mode+set}" = set; then
5953  enableval="$enable_maintainer_mode"
5954  USE_MAINTAINER_MODE=$enableval
5955else
5956  USE_MAINTAINER_MODE=no
5957fi;
5958  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5959echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5960
5961
5962if test $USE_MAINTAINER_MODE = yes; then
5963  MAINTAINER_MODE_TRUE=
5964  MAINTAINER_MODE_FALSE='#'
5965else
5966  MAINTAINER_MODE_TRUE='#'
5967  MAINTAINER_MODE_FALSE=
5968fi
5969
5970  MAINT=$MAINTAINER_MODE_TRUE
5971
5972
5973
5974coin_have_externals=no
5975if test "$enable_maintainer_mode" = yes; then
5976
5977  # If maintainer mode is chosen, we make sure that the correct versions
5978  # of the tools are used, and that we know where libtool.m4 is (to
5979  # recreate acinclude.m4)
5980
5981
5982  LIBTOOLM4=
5983  # Normally, $HOME
5984  AUTOTOOLS_DFLT=$HOME
5985
5986  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5987echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5988if test "${ac_cv_use_correct_autotools+set}" = set; then
5989  echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991  ac_cv_use_correct_autotools=check
5992fi
5993echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5994echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5995
5996  if test $ac_cv_use_correct_autotools = check; then
5997    ac_cv_use_correct_autotools=yes
5998    # Check if we have autoconf
5999    # Extract the first word of "autoconf", so it can be a program name with args.
6000set dummy autoconf; ac_word=$2
6001echo "$as_me:$LINENO: checking for $ac_word" >&5
6002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6003if test "${ac_cv_prog_have_autoconf+set}" = set; then
6004  echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
6006  if test -n "$have_autoconf"; then
6007  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012  IFS=$as_save_IFS
6013  test -z "$as_dir" && as_dir=.
6014  for ac_exec_ext in '' $ac_executable_extensions; do
6015  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016    ac_cv_prog_have_autoconf="yes"
6017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018    break 2
6019  fi
6020done
6021done
6022
6023  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6024fi
6025fi
6026have_autoconf=$ac_cv_prog_have_autoconf
6027if test -n "$have_autoconf"; then
6028  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6029echo "${ECHO_T}$have_autoconf" >&6
6030else
6031  echo "$as_me:$LINENO: result: no" >&5
6032echo "${ECHO_T}no" >&6
6033fi
6034
6035    if test $have_autoconf = no; then
6036      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6037echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6038   { (exit 1); exit 1; }; }
6039    fi
6040
6041    # Check whether autoconf is the correct version
6042    correct_version='2.59'
6043    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6044    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6045echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6046    autoconf --version > confauto.out 2>&1
6047    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6048      echo "$as_me:$LINENO: result: yes" >&5
6049echo "${ECHO_T}yes" >&6
6050    else
6051      rm -f confauto.out
6052      echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6055echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6056   { (exit 1); exit 1; }; }
6057    fi
6058    rm -f confauto.out
6059
6060    # Check if the executable autoconf is picked up from the correct location
6061    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6062echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6063    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6064    autoconf_dir=`cd $autoconf_dir; pwd`
6065    if test x$AUTOTOOLS_DIR = x; then
6066      want_dir=$AUTOTOOLS_DFLT/bin
6067    else
6068      want_dir=$AUTOTOOLS_DIR/bin
6069    fi
6070    if test $autoconf_dir = `cd $want_dir; pwd`; then
6071      echo "$as_me:$LINENO: result: yes" >&5
6072echo "${ECHO_T}yes" >&6
6073    else
6074      rm -f confauto.out
6075      echo "$as_me:$LINENO: result: no" >&5
6076echo "${ECHO_T}no" >&6
6077      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6078echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6079   { (exit 1); exit 1; }; }
6080    fi
6081
6082    # Check if we have automake
6083    # Extract the first word of "automake", so it can be a program name with args.
6084set dummy automake; ac_word=$2
6085echo "$as_me:$LINENO: checking for $ac_word" >&5
6086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6087if test "${ac_cv_prog_have_automake+set}" = set; then
6088  echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090  if test -n "$have_automake"; then
6091  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6092else
6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094for as_dir in $PATH
6095do
6096  IFS=$as_save_IFS
6097  test -z "$as_dir" && as_dir=.
6098  for ac_exec_ext in '' $ac_executable_extensions; do
6099  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100    ac_cv_prog_have_automake="yes"
6101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102    break 2
6103  fi
6104done
6105done
6106
6107  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6108fi
6109fi
6110have_automake=$ac_cv_prog_have_automake
6111if test -n "$have_automake"; then
6112  echo "$as_me:$LINENO: result: $have_automake" >&5
6113echo "${ECHO_T}$have_automake" >&6
6114else
6115  echo "$as_me:$LINENO: result: no" >&5
6116echo "${ECHO_T}no" >&6
6117fi
6118
6119    if test $have_automake = no; then
6120      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6121echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6122   { (exit 1); exit 1; }; }
6123    fi
6124
6125    # Check whether automake is the correct version
6126    correct_version='1.9.6'
6127    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6128    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6129echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6130    automake --version > confauto.out 2>&1
6131    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6132      echo "$as_me:$LINENO: result: yes" >&5
6133echo "${ECHO_T}yes" >&6
6134    else
6135      rm -f confauto.out
6136      echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6
6138      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6139echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6140   { (exit 1); exit 1; }; }
6141    fi
6142    rm -f confauto.out
6143
6144    # Check if the executable automake is picked up from the correct location
6145    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6146echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6147    automake_dir=`which automake | sed -e 's=/automake=='`
6148    automake_dir=`cd $automake_dir; pwd`
6149    if test x$AUTOTOOLS_DIR = x; then
6150      want_dir=$AUTOTOOLS_DFLT/bin
6151    else
6152      want_dir=$AUTOTOOLS_DIR/bin
6153    fi
6154    if test $automake_dir = `cd $want_dir; pwd`; then
6155      echo "$as_me:$LINENO: result: yes" >&5
6156echo "${ECHO_T}yes" >&6
6157    else
6158      rm -f confauto.out
6159      echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6
6161      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6162echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6163   { (exit 1); exit 1; }; }
6164    fi
6165
6166    # Check if this is the correct version of libtool (with escaped dots)
6167    if test x$AUTOTOOLS_DIR = x; then
6168      want_dir=$AUTOTOOLS_DFLT/share
6169    else
6170      want_dir=$AUTOTOOLS_DIR/share
6171    fi
6172    correct_version='1.5.22'
6173    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6174    if test -r $want_dir/libtool/ltmain.sh; then
6175  have_ltmain=yes
6176  :
6177else
6178  have_ltmain=no
6179  :
6180fi
6181
6182    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6183echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6184    if test $have_ltmain = yes; then
6185    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6186        echo "$as_me:$LINENO: result: yes" >&5
6187echo "${ECHO_T}yes" >&6
6188      else
6189        echo "$as_me:$LINENO: result: no" >&5
6190echo "${ECHO_T}no" >&6
6191        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6192echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6193   { (exit 1); exit 1; }; }
6194      fi
6195    else
6196      echo "$as_me:$LINENO: result: no" >&5
6197echo "${ECHO_T}no" >&6
6198      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6199echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6200   { (exit 1); exit 1; }; }
6201    fi
6202  fi
6203
6204  # Check if we can find the libtool file
6205  if test x$AUTOTOOLS_DIR = x; then
6206    want_dir=$AUTOTOOLS_DFLT/share
6207  else
6208    want_dir=$AUTOTOOLS_DIR/share
6209  fi
6210  if test -r $want_dir/aclocal/libtool.m4; then
6211  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6212  :
6213else
6214  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6215echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6216   { (exit 1); exit 1; }; }
6217  :
6218fi
6219
6220
6221  # Check if we have an Dependencies file
6222  if test -r $srcdir/Dependencies; then
6223    coin_have_externals=yes
6224  fi
6225  # Check if subversion is installed and understands https
6226  # Extract the first word of "svn", so it can be a program name with args.
6227set dummy svn; ac_word=$2
6228echo "$as_me:$LINENO: checking for $ac_word" >&5
6229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6230if test "${ac_cv_prog_have_svn+set}" = set; then
6231  echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
6233  if test -n "$have_svn"; then
6234  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6235else
6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239  IFS=$as_save_IFS
6240  test -z "$as_dir" && as_dir=.
6241  for ac_exec_ext in '' $ac_executable_extensions; do
6242  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243    ac_cv_prog_have_svn="yes"
6244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245    break 2
6246  fi
6247done
6248done
6249
6250  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6251fi
6252fi
6253have_svn=$ac_cv_prog_have_svn
6254if test -n "$have_svn"; then
6255  echo "$as_me:$LINENO: result: $have_svn" >&5
6256echo "${ECHO_T}$have_svn" >&6
6257else
6258  echo "$as_me:$LINENO: result: no" >&5
6259echo "${ECHO_T}no" >&6
6260fi
6261
6262  if test x$have_svn = xyes; then
6263    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6264echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6265if test "${ac_cv_svn_understands_https+set}" = set; then
6266  echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268  svn --version > confauto.out 2>&1
6269                    if $EGREP https confauto.out >/dev/null 2>&1; then
6270                      ac_cv_svn_understands_https=yes
6271                    else
6272                      ac_cv_svn_understands_https=no
6273                      have_svn=no
6274                      ac_cv_prog_have_svn=no
6275                    fi
6276                    rm -f confauto.out
6277fi
6278echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6279echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6280  fi
6281
6282  # Find the location of the BuildTools directory
6283  BUILDTOOLSDIR=
6284  if test -r $srcdir/BuildTools/coin.m4; then
6285    BUILDTOOLSDIR=$srcdir/BuildTools
6286  else
6287    if test -r $srcdir/../BuildTools/coin.m4; then
6288      BUILDTOOLSDIR=$srcdir/../BuildTools
6289    else
6290      if test -r $srcdir/../../BuildTools/coin.m4; then
6291        BUILDTOOLSDIR=$srcdir/../../BuildTools
6292      else
6293        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6294echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6295   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6296      fi
6297    fi
6298  fi
6299
6300
6301  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6302  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6303    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6304  fi
6305
6306  # The following variable is set to the name of the directory where
6307  # the autotool scripts are located
6308
6309  AUX_DIR=$ac_aux_dir
6310fi
6311
6312# helpful variable for the base directory of this package
6313abs_source_dir=`cd $srcdir; pwd`
6314
6315
6316# Stuff for example Makefiles
6317if test x$prefix = xNONE; then
6318  full_prefix=$ac_default_prefix
6319else
6320  full_prefix=$prefix
6321fi
6322full_prefix=`cd $full_prefix ; pwd`
6323
6324abs_lib_dir=$full_prefix/lib
6325
6326abs_include_dir=$full_prefix/include
6327
6328abs_bin_dir=$full_prefix/bin
6329
6330
6331
6332if test $coin_have_externals = yes && test x$have_svn = xyes; then
6333  HAVE_EXTERNALS_TRUE=
6334  HAVE_EXTERNALS_FALSE='#'
6335else
6336  HAVE_EXTERNALS_TRUE='#'
6337  HAVE_EXTERNALS_FALSE=
6338fi
6339
6340
6341# AC_MSG_NOTICE([End automake initialisation.])
6342
6343
6344
6345LIBTOOL=
6346if test -f ../libtool; then
6347  coin_config_dir=..
6348  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6349fi
6350if test "x$LIBTOOL" = x; then
6351  if test -f ../../libtool; then
6352    coin_config_dir=../..
6353    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6354  fi
6355fi
6356
6357if test "x$LIBTOOL" = x; then
6358# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6359  # Stuff for libtool
6360  # Check whether --enable-shared or --disable-shared was given.
6361if test "${enable_shared+set}" = set; then
6362  enableval="$enable_shared"
6363  p=${PACKAGE-default}
6364    case $enableval in
6365    yes) enable_shared=yes ;;
6366    no) enable_shared=no ;;
6367    *)
6368      enable_shared=no
6369      # Look at the argument we got.  We use all the common list separators.
6370      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6371      for pkg in $enableval; do
6372        IFS="$lt_save_ifs"
6373        if test "X$pkg" = "X$p"; then
6374          enable_shared=yes
6375        fi
6376      done
6377      IFS="$lt_save_ifs"
6378      ;;
6379    esac
6380else
6381  enable_shared=yes
6382fi;
6383
6384# Check whether --enable-fast-install or --disable-fast-install was given.
6385if test "${enable_fast_install+set}" = set; then
6386  enableval="$enable_fast_install"
6387  p=${PACKAGE-default}
6388    case $enableval in
6389    yes) enable_fast_install=yes ;;
6390    no) enable_fast_install=no ;;
6391    *)
6392      enable_fast_install=no
6393      # Look at the argument we got.  We use all the common list separators.
6394      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6395      for pkg in $enableval; do
6396        IFS="$lt_save_ifs"
6397        if test "X$pkg" = "X$p"; then
6398          enable_fast_install=yes
6399        fi
6400      done
6401      IFS="$lt_save_ifs"
6402      ;;
6403    esac
6404else
6405  enable_fast_install=yes
6406fi;
6407
6408echo "$as_me:$LINENO: checking host system type" >&5
6409echo $ECHO_N "checking host system type... $ECHO_C" >&6
6410if test "${ac_cv_host+set}" = set; then
6411  echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413  ac_cv_host_alias=$host_alias
6414test -z "$ac_cv_host_alias" &&
6415  ac_cv_host_alias=$ac_cv_build_alias
6416ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6417  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6418echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6419   { (exit 1); exit 1; }; }
6420
6421fi
6422echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6423echo "${ECHO_T}$ac_cv_host" >&6
6424host=$ac_cv_host
6425host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6426host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6427host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6428
6429
6430echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6431echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6432if test "${lt_cv_path_SED+set}" = set; then
6433  echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435  # Loop through the user's path and test for sed and gsed.
6436# Then use that list of sed's as ones to test for truncation.
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440  IFS=$as_save_IFS
6441  test -z "$as_dir" && as_dir=.
6442  for lt_ac_prog in sed gsed; do
6443    for ac_exec_ext in '' $ac_executable_extensions; do
6444      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6445        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6446      fi
6447    done
6448  done
6449done
6450lt_ac_max=0
6451lt_ac_count=0
6452# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6453# along with /bin/sed that truncates output.
6454for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6455  test ! -f $lt_ac_sed && continue
6456  cat /dev/null > conftest.in
6457  lt_ac_count=0
6458  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6459  # Check for GNU sed and select it if it is found.
6460  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6461    lt_cv_path_SED=$lt_ac_sed
6462    break
6463  fi
6464  while true; do
6465    cat conftest.in conftest.in >conftest.tmp
6466    mv conftest.tmp conftest.in
6467    cp conftest.in conftest.nl
6468    echo >>conftest.nl
6469    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6470    cmp -s conftest.out conftest.nl || break
6471    # 10000 chars as input seems more than enough
6472    test $lt_ac_count -gt 10 && break
6473    lt_ac_count=`expr $lt_ac_count + 1`
6474    if test $lt_ac_count -gt $lt_ac_max; then
6475      lt_ac_max=$lt_ac_count
6476      lt_cv_path_SED=$lt_ac_sed
6477    fi
6478  done
6479done
6480
6481fi
6482
6483SED=$lt_cv_path_SED
6484echo "$as_me:$LINENO: result: $SED" >&5
6485echo "${ECHO_T}$SED" >&6
6486
6487
6488# Check whether --with-gnu-ld or --without-gnu-ld was given.
6489if test "${with_gnu_ld+set}" = set; then
6490  withval="$with_gnu_ld"
6491  test "$withval" = no || with_gnu_ld=yes
6492else
6493  with_gnu_ld=no
6494fi;
6495ac_prog=ld
6496if test "$GCC" = yes; then
6497  # Check if gcc -print-prog-name=ld gives a path.
6498  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6499echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6500  case $host in
6501  *-*-mingw*)
6502    # gcc leaves a trailing carriage return which upsets mingw
6503    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6504  *)
6505    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6506  esac
6507  case $ac_prog in
6508    # Accept absolute paths.
6509    [\\/]* | ?:[\\/]*)
6510      re_direlt='/[^/][^/]*/\.\./'
6511      # Canonicalize the pathname of ld
6512      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6513      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6514        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6515      done
6516      test -z "$LD" && LD="$ac_prog"
6517      ;;
6518  "")
6519    # If it fails, then pretend we aren't using GCC.
6520    ac_prog=ld
6521    ;;
6522  *)
6523    # If it is relative, then search for the first ld in PATH.
6524    with_gnu_ld=unknown
6525    ;;
6526  esac
6527elif test "$with_gnu_ld" = yes; then
6528  echo "$as_me:$LINENO: checking for GNU ld" >&5
6529echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6530else
6531  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6532echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6533fi
6534if test "${lt_cv_path_LD+set}" = set; then
6535  echo $ECHO_N "(cached) $ECHO_C" >&6
6536else
6537  if test -z "$LD"; then
6538  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6539  for ac_dir in $PATH; do
6540    IFS="$lt_save_ifs"
6541    test -z "$ac_dir" && ac_dir=.
6542    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6543      lt_cv_path_LD="$ac_dir/$ac_prog"
6544      # Check to see if the program is GNU ld.  I'd rather use --version,
6545      # but apparently some variants of GNU ld only accept -v.
6546      # Break only if it was the GNU/non-GNU ld that we prefer.
6547      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6548      *GNU* | *'with BFD'*)
6549        test "$with_gnu_ld" != no && break
6550        ;;
6551      *)
6552        test "$with_gnu_ld" != yes && break
6553        ;;
6554      esac
6555    fi
6556  done
6557  IFS="$lt_save_ifs"
6558else
6559  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6560fi
6561fi
6562
6563LD="$lt_cv_path_LD"
6564if test -n "$LD"; then
6565  echo "$as_me:$LINENO: result: $LD" >&5
6566echo "${ECHO_T}$LD" >&6
6567else
6568  echo "$as_me:$LINENO: result: no" >&5
6569echo "${ECHO_T}no" >&6
6570fi
6571test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6572echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6573   { (exit 1); exit 1; }; }
6574echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6575echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6576if test "${lt_cv_prog_gnu_ld+set}" = set; then
6577  echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6580case `$LD -v 2>&1 </dev/null` in
6581*GNU* | *'with BFD'*)
6582  lt_cv_prog_gnu_ld=yes
6583  ;;
6584*)
6585  lt_cv_prog_gnu_ld=no
6586  ;;
6587esac
6588fi
6589echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6590echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6591with_gnu_ld=$lt_cv_prog_gnu_ld
6592
6593
6594echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6595echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6596if test "${lt_cv_ld_reload_flag+set}" = set; then
6597  echo $ECHO_N "(cached) $ECHO_C" >&6
6598else
6599  lt_cv_ld_reload_flag='-r'
6600fi
6601echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6602echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6603reload_flag=$lt_cv_ld_reload_flag
6604case $reload_flag in
6605"" | " "*) ;;
6606*) reload_flag=" $reload_flag" ;;
6607esac
6608reload_cmds='$LD$reload_flag -o $output$reload_objs'
6609case $host_os in
6610  darwin*)
6611    if test "$GCC" = yes; then
6612      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6613    else
6614      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6615    fi
6616    ;;
6617esac
6618
6619echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6620echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6621if test "${lt_cv_path_NM+set}" = set; then
6622  echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
6624  if test -n "$NM"; then
6625  # Let the user override the test.
6626  lt_cv_path_NM="$NM"
6627else
6628  lt_nm_to_check="${ac_tool_prefix}nm"
6629  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6630    lt_nm_to_check="$lt_nm_to_check nm"
6631  fi
6632  for lt_tmp_nm in $lt_nm_to_check; do
6633    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6634    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6635      IFS="$lt_save_ifs"
6636      test -z "$ac_dir" && ac_dir=.
6637      tmp_nm="$ac_dir/$lt_tmp_nm"
6638      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6639        # Check to see if the nm accepts a BSD-compat flag.
6640        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6641        #   nm: unknown option "B" ignored
6642        # Tru64's nm complains that /dev/null is an invalid object file
6643        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6644        */dev/null* | *'Invalid file or object type'*)
6645          lt_cv_path_NM="$tmp_nm -B"
6646          break
6647          ;;
6648        *)
6649          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6650          */dev/null*)
6651            lt_cv_path_NM="$tmp_nm -p"
6652            break
6653            ;;
6654          *)
6655            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6656            continue # so that we can try to find one that supports BSD flags
6657            ;;
6658          esac
6659          ;;
6660        esac
6661      fi
6662    done
6663    IFS="$lt_save_ifs"
6664  done
6665  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6666fi
6667fi
6668echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6669echo "${ECHO_T}$lt_cv_path_NM" >&6
6670NM="$lt_cv_path_NM"
6671
6672echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6673echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6674if test "${lt_cv_deplibs_check_method+set}" = set; then
6675  echo $ECHO_N "(cached) $ECHO_C" >&6
6676else
6677  lt_cv_file_magic_cmd='$MAGIC_CMD'
6678lt_cv_file_magic_test_file=
6679lt_cv_deplibs_check_method='unknown'
6680# Need to set the preceding variable on all platforms that support
6681# interlibrary dependencies.
6682# 'none' -- dependencies not supported.
6683# `unknown' -- same as none, but documents that we really don't know.
6684# 'pass_all' -- all dependencies passed with no checks.
6685# 'test_compile' -- check by making test program.
6686# 'file_magic [[regex]]' -- check by looking for files in library path
6687# which responds to the $file_magic_cmd with a given extended regex.
6688# If you have `file' or equivalent on your system and you're not sure
6689# whether `pass_all' will *always* work, you probably want this one.
6690
6691case $host_os in
6692aix4* | aix5*)
6693  lt_cv_deplibs_check_method=pass_all
6694  ;;
6695
6696beos*)
6697  lt_cv_deplibs_check_method=pass_all
6698  ;;
6699
6700bsdi[45]*)
6701  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6702  lt_cv_file_magic_cmd='/usr/bin/file -L'
6703  lt_cv_file_magic_test_file=/shlib/libc.so
6704  ;;
6705
6706cygwin*)
6707  # func_win32_libid is a shell function defined in ltmain.sh
6708  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6709  lt_cv_file_magic_cmd='func_win32_libid'
6710  ;;
6711
6712mingw* | pw32*)
6713  # Base MSYS/MinGW do not provide the 'file' command needed by
6714  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6715  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6716  lt_cv_file_magic_cmd='$OBJDUMP -f'
6717  ;;
6718
6719darwin* | rhapsody*)
6720  lt_cv_deplibs_check_method=pass_all
6721  ;;
6722
6723freebsd* | kfreebsd*-gnu | dragonfly*)
6724  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6725    case $host_cpu in
6726    i*86 )
6727      # Not sure whether the presence of OpenBSD here was a mistake.
6728      # Let's accept both of them until this is cleared up.
6729      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6730      lt_cv_file_magic_cmd=/usr/bin/file
6731      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6732      ;;
6733    esac
6734  else
6735    lt_cv_deplibs_check_method=pass_all
6736  fi
6737  ;;
6738
6739gnu*)
6740  lt_cv_deplibs_check_method=pass_all
6741  ;;
6742
6743hpux10.20* | hpux11*)
6744  lt_cv_file_magic_cmd=/usr/bin/file
6745  case $host_cpu in
6746  ia64*)
6747    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6748    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6749    ;;
6750  hppa*64*)
6751    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]'
6752    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6753    ;;
6754  *)
6755    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6756    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6757    ;;
6758  esac
6759  ;;
6760
6761interix3*)
6762  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6763  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6764  ;;
6765
6766irix5* | irix6* | nonstopux*)
6767  case $LD in
6768  *-32|*"-32 ") libmagic=32-bit;;
6769  *-n32|*"-n32 ") libmagic=N32;;
6770  *-64|*"-64 ") libmagic=64-bit;;
6771  *) libmagic=never-match;;
6772  esac
6773  lt_cv_deplibs_check_method=pass_all
6774  ;;
6775
6776# This must be Linux ELF.
6777linux*)
6778  lt_cv_deplibs_check_method=pass_all
6779  ;;
6780
6781netbsd*)
6782  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6783    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6784  else
6785    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6786  fi
6787  ;;
6788
6789newos6*)
6790  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6791  lt_cv_file_magic_cmd=/usr/bin/file
6792  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6793  ;;
6794
6795nto-qnx*)
6796  lt_cv_deplibs_check_method=unknown
6797  ;;
6798
6799openbsd*)
6800  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6801    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6802  else
6803    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6804  fi
6805  ;;
6806
6807osf3* | osf4* | osf5*)
6808  lt_cv_deplibs_check_method=pass_all
6809  ;;
6810
6811solaris*)
6812  lt_cv_deplibs_check_method=pass_all
6813  ;;
6814
6815sysv4 | sysv4.3*)
6816  case $host_vendor in
6817  motorola)
6818    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]'
6819    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6820    ;;
6821  ncr)
6822    lt_cv_deplibs_check_method=pass_all
6823    ;;
6824  sequent)
6825    lt_cv_file_magic_cmd='/bin/file'
6826    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6827    ;;
6828  sni)
6829    lt_cv_file_magic_cmd='/bin/file'
6830    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6831    lt_cv_file_magic_test_file=/lib/libc.so
6832    ;;
6833  siemens)
6834    lt_cv_deplibs_check_method=pass_all
6835    ;;
6836  pc)
6837    lt_cv_deplibs_check_method=pass_all
6838    ;;
6839  esac
6840  ;;
6841
6842sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6843  lt_cv_deplibs_check_method=pass_all
6844  ;;
6845esac
6846
6847fi
6848echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6849echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6850file_magic_cmd=$lt_cv_file_magic_cmd
6851deplibs_check_method=$lt_cv_deplibs_check_method
6852test -z "$deplibs_check_method" && deplibs_check_method=unknown
6853
6854
6855
6856
6857# If no C compiler was specified, use CC.
6858LTCC=${LTCC-"$CC"}
6859
6860# If no C compiler flags were specified, use CFLAGS.
6861LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6862
6863# Allow CC to be a program name with arguments.
6864compiler=$CC
6865
6866# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6867if test "${enable_libtool_lock+set}" = set; then
6868  enableval="$enable_libtool_lock"
6869
6870fi;
6871test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6872
6873# Some flags need to be propagated to the compiler or linker for good
6874# libtool support.
6875case $host in
6876ia64-*-hpux*)
6877  # Find out which ABI we are using.
6878  echo 'int i;' > conftest.$ac_ext
6879  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880  (eval $ac_compile) 2>&5
6881  ac_status=$?
6882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883  (exit $ac_status); }; then
6884    case `/usr/bin/file conftest.$ac_objext` in
6885    *ELF-32*)
6886      HPUX_IA64_MODE="32"
6887      ;;
6888    *ELF-64*)
6889      HPUX_IA64_MODE="64"
6890      ;;
6891    esac
6892  fi
6893  rm -rf conftest*
6894  ;;
6895*-*-irix6*)
6896  # Find out which ABI we are using.
6897  echo '#line 6897 "configure"' > conftest.$ac_ext
6898  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899  (eval $ac_compile) 2>&5
6900  ac_status=$?
6901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902  (exit $ac_status); }; then
6903   if test "$lt_cv_prog_gnu_ld" = yes; then
6904    case `/usr/bin/file conftest.$ac_objext` in
6905    *32-bit*)
6906      LD="${LD-ld} -melf32bsmip"
6907      ;;
6908    *N32*)
6909      LD="${LD-ld} -melf32bmipn32"
6910      ;;
6911    *64-bit*)
6912      LD="${LD-ld} -melf64bmip"
6913      ;;
6914    esac
6915   else
6916    case `/usr/bin/file conftest.$ac_objext` in
6917    *32-bit*)
6918      LD="${LD-ld} -32"
6919      ;;
6920    *N32*)
6921      LD="${LD-ld} -n32"
6922      ;;
6923    *64-bit*)
6924      LD="${LD-ld} -64"
6925      ;;
6926    esac
6927   fi
6928  fi
6929  rm -rf conftest*
6930  ;;
6931
6932x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6933  # Find out which ABI we are using.
6934  echo 'int i;' > conftest.$ac_ext
6935  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936  (eval $ac_compile) 2>&5
6937  ac_status=$?
6938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939  (exit $ac_status); }; then
6940    case `/usr/bin/file conftest.o` in
6941    *32-bit*)
6942      case $host in
6943        x86_64-*linux*)
6944          LD="${LD-ld} -m elf_i386"
6945          ;;
6946        ppc64-*linux*|powerpc64-*linux*)
6947          LD="${LD-ld} -m elf32ppclinux"
6948          ;;
6949        s390x-*linux*)
6950          LD="${LD-ld} -m elf_s390"
6951          ;;
6952        sparc64-*linux*)
6953          LD="${LD-ld} -m elf32_sparc"
6954          ;;
6955      esac
6956      ;;
6957    *64-bit*)
6958      case $host in
6959        x86_64-*linux*)
6960          LD="${LD-ld} -m elf_x86_64"
6961          ;;
6962        ppc*-*linux*|powerpc*-*linux*)
6963          LD="${LD-ld} -m elf64ppc"
6964          ;;
6965        s390*-*linux*)
6966          LD="${LD-ld} -m elf64_s390"
6967          ;;
6968        sparc*-*linux*)
6969          LD="${LD-ld} -m elf64_sparc"
6970          ;;
6971      esac
6972      ;;
6973    esac
6974  fi
6975  rm -rf conftest*
6976  ;;
6977
6978*-*-sco3.2v5*)
6979  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6980  SAVE_CFLAGS="$CFLAGS"
6981  CFLAGS="$CFLAGS -belf"
6982  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6983echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6984if test "${lt_cv_cc_needs_belf+set}" = set; then
6985  echo $ECHO_N "(cached) $ECHO_C" >&6
6986else
6987  ac_ext=c
6988ac_cpp='$CPP $CPPFLAGS'
6989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991ac_compiler_gnu=$ac_cv_c_compiler_gnu
6992
6993     cat >conftest.$ac_ext <<_ACEOF
6994/* confdefs.h.  */
6995_ACEOF
6996cat confdefs.h >>conftest.$ac_ext
6997cat >>conftest.$ac_ext <<_ACEOF
6998/* end confdefs.h.  */
6999
7000#ifdef F77_DUMMY_MAIN
7001
7002#  ifdef __cplusplus
7003     extern "C"
7004#  endif
7005   int F77_DUMMY_MAIN() { return 1; }
7006
7007#endif
7008int
7009main ()
7010{
7011
7012  ;
7013  return 0;
7014}
7015_ACEOF
7016rm -f conftest.$ac_objext conftest$ac_exeext
7017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018  (eval $ac_link) 2>conftest.er1
7019  ac_status=$?
7020  grep -v '^ *+' conftest.er1 >conftest.err
7021  rm -f conftest.er1
7022  cat conftest.err >&5
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); } &&
7025         { ac_try='test -z "$ac_c_werror_flag"
7026                         || test ! -s conftest.err'
7027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028  (eval $ac_try) 2>&5
7029  ac_status=$?
7030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031  (exit $ac_status); }; } &&
7032         { ac_try='test -s conftest$ac_exeext'
7033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034  (eval $ac_try) 2>&5
7035  ac_status=$?
7036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037  (exit $ac_status); }; }; then
7038  lt_cv_cc_needs_belf=yes
7039else
7040  echo "$as_me: failed program was:" >&5
7041sed 's/^/| /' conftest.$ac_ext >&5
7042
7043lt_cv_cc_needs_belf=no
7044fi
7045rm -f conftest.err conftest.$ac_objext \
7046      conftest$ac_exeext conftest.$ac_ext
7047     ac_ext=c
7048ac_cpp='$CPP $CPPFLAGS'
7049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051ac_compiler_gnu=$ac_cv_c_compiler_gnu
7052
7053fi
7054echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7055echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7056  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7057    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7058    CFLAGS="$SAVE_CFLAGS"
7059  fi
7060  ;;
7061sparc*-*solaris*)
7062  # Find out which ABI we are using.
7063  echo 'int i;' > conftest.$ac_ext
7064  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065  (eval $ac_compile) 2>&5
7066  ac_status=$?
7067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068  (exit $ac_status); }; then
7069    case `/usr/bin/file conftest.o` in
7070    *64-bit*)
7071      case $lt_cv_prog_gnu_ld in
7072      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7073      *)    LD="${LD-ld} -64" ;;
7074      esac
7075      ;;
7076    esac
7077  fi
7078  rm -rf conftest*
7079  ;;
7080
7081
7082esac
7083
7084need_locks="$enable_libtool_lock"
7085
7086
7087ac_ext=c
7088ac_cpp='$CPP $CPPFLAGS'
7089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7091ac_compiler_gnu=$ac_cv_c_compiler_gnu
7092echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7093echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7094# On Suns, sometimes $CPP names a directory.
7095if test -n "$CPP" && test -d "$CPP"; then
7096  CPP=
7097fi
7098if test -z "$CPP"; then
7099  if test "${ac_cv_prog_CPP+set}" = set; then
7100  echo $ECHO_N "(cached) $ECHO_C" >&6
7101else
7102      # Double quotes because CPP needs to be expanded
7103    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7104    do
7105      ac_preproc_ok=false
7106for ac_c_preproc_warn_flag in '' yes
7107do
7108  # Use a header file that comes with gcc, so configuring glibc
7109  # with a fresh cross-compiler works.
7110  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7111  # <limits.h> exists even on freestanding compilers.
7112  # On the NeXT, cc -E runs the code through the compiler's parser,
7113  # not just through cpp. "Syntax error" is here to catch this case.
7114  cat >conftest.$ac_ext <<_ACEOF
7115/* confdefs.h.  */
7116_ACEOF
7117cat confdefs.h >>conftest.$ac_ext
7118cat >>conftest.$ac_ext <<_ACEOF
7119/* end confdefs.h.  */
7120#ifdef __STDC__
7121# include <limits.h>
7122#else
7123# include <assert.h>
7124#endif
7125                     Syntax error
7126_ACEOF
7127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7128  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7129  ac_status=$?
7130  grep -v '^ *+' conftest.er1 >conftest.err
7131  rm -f conftest.er1
7132  cat conftest.err >&5
7133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134  (exit $ac_status); } >/dev/null; then
7135  if test -s conftest.err; then
7136    ac_cpp_err=$ac_c_preproc_warn_flag
7137    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7138  else
7139    ac_cpp_err=
7140  fi
7141else
7142  ac_cpp_err=yes
7143fi
7144if test -z "$ac_cpp_err"; then
7145  :
7146else
7147  echo "$as_me: failed program was:" >&5
7148sed 's/^/| /' conftest.$ac_ext >&5
7149
7150  # Broken: fails on valid input.
7151continue
7152fi
7153rm -f conftest.err conftest.$ac_ext
7154
7155  # OK, works on sane cases.  Now check whether non-existent headers
7156  # can be detected and how.
7157  cat >conftest.$ac_ext <<_ACEOF
7158/* confdefs.h.  */
7159_ACEOF
7160cat confdefs.h >>conftest.$ac_ext
7161cat >>conftest.$ac_ext <<_ACEOF
7162/* end confdefs.h.  */
7163#include <ac_nonexistent.h>
7164_ACEOF
7165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7166  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7167  ac_status=$?
7168  grep -v '^ *+' conftest.er1 >conftest.err
7169  rm -f conftest.er1
7170  cat conftest.err >&5
7171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172  (exit $ac_status); } >/dev/null; then
7173  if test -s conftest.err; then
7174    ac_cpp_err=$ac_c_preproc_warn_flag
7175    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7176  else
7177    ac_cpp_err=
7178  fi
7179else
7180  ac_cpp_err=yes
7181fi
7182if test -z "$ac_cpp_err"; then
7183  # Broken: success on invalid input.
7184continue
7185else
7186  echo "$as_me: failed program was:" >&5
7187sed 's/^/| /' conftest.$ac_ext >&5
7188
7189  # Passes both tests.
7190ac_preproc_ok=:
7191break
7192fi
7193rm -f conftest.err conftest.$ac_ext
7194
7195done
7196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7197rm -f conftest.err conftest.$ac_ext
7198if $ac_preproc_ok; then
7199  break
7200fi
7201
7202    done
7203    ac_cv_prog_CPP=$CPP
7204
7205fi
7206  CPP=$ac_cv_prog_CPP
7207else
7208  ac_cv_prog_CPP=$CPP
7209fi
7210echo "$as_me:$LINENO: result: $CPP" >&5
7211echo "${ECHO_T}$CPP" >&6
7212ac_preproc_ok=false
7213for ac_c_preproc_warn_flag in '' yes
7214do
7215  # Use a header file that comes with gcc, so configuring glibc
7216  # with a fresh cross-compiler works.
7217  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7218  # <limits.h> exists even on freestanding compilers.
7219  # On the NeXT, cc -E runs the code through the compiler's parser,
7220  # not just through cpp. "Syntax error" is here to catch this case.
7221  cat >conftest.$ac_ext <<_ACEOF
7222/* confdefs.h.  */
7223_ACEOF
7224cat confdefs.h >>conftest.$ac_ext
7225cat >>conftest.$ac_ext <<_ACEOF
7226/* end confdefs.h.  */
7227#ifdef __STDC__
7228# include <limits.h>
7229#else
7230# include <assert.h>
7231#endif
7232                     Syntax error
7233_ACEOF
7234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7235  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7236  ac_status=$?
7237  grep -v '^ *+' conftest.er1 >conftest.err
7238  rm -f conftest.er1
7239  cat conftest.err >&5
7240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241  (exit $ac_status); } >/dev/null; then
7242  if test -s conftest.err; then
7243    ac_cpp_err=$ac_c_preproc_warn_flag
7244    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7245  else
7246    ac_cpp_err=
7247  fi
7248else
7249  ac_cpp_err=yes
7250fi
7251if test -z "$ac_cpp_err"; then
7252  :
7253else
7254  echo "$as_me: failed program was:" >&5
7255sed 's/^/| /' conftest.$ac_ext >&5
7256
7257  # Broken: fails on valid input.
7258continue
7259fi
7260rm -f conftest.err conftest.$ac_ext
7261
7262  # OK, works on sane cases.  Now check whether non-existent headers
7263  # can be detected and how.
7264  cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h.  */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h.  */
7270#include <ac_nonexistent.h>
7271_ACEOF
7272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7273  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7274  ac_status=$?
7275  grep -v '^ *+' conftest.er1 >conftest.err
7276  rm -f conftest.er1
7277  cat conftest.err >&5
7278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279  (exit $ac_status); } >/dev/null; then
7280  if test -s conftest.err; then
7281    ac_cpp_err=$ac_c_preproc_warn_flag
7282    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7283  else
7284    ac_cpp_err=
7285  fi
7286else
7287  ac_cpp_err=yes
7288fi
7289if test -z "$ac_cpp_err"; then
7290  # Broken: success on invalid input.
7291continue
7292else
7293  echo "$as_me: failed program was:" >&5
7294sed 's/^/| /' conftest.$ac_ext >&5
7295
7296  # Passes both tests.
7297ac_preproc_ok=:
7298break
7299fi
7300rm -f conftest.err conftest.$ac_ext
7301
7302done
7303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7304rm -f conftest.err conftest.$ac_ext
7305if $ac_preproc_ok; then
7306  :
7307else
7308  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7309See \`config.log' for more details." >&5
7310echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7311See \`config.log' for more details." >&2;}
7312   { (exit 1); exit 1; }; }
7313fi
7314
7315ac_ext=c
7316ac_cpp='$CPP $CPPFLAGS'
7317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320
7321
7322echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7323echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7324if test "${ac_cv_header_stdc+set}" = set; then
7325  echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327  cat >conftest.$ac_ext <<_ACEOF
7328/* confdefs.h.  */
7329_ACEOF
7330cat confdefs.h >>conftest.$ac_ext
7331cat >>conftest.$ac_ext <<_ACEOF
7332/* end confdefs.h.  */
7333#include <stdlib.h>
7334#include <stdarg.h>
7335#include <string.h>
7336#include <float.h>
7337
7338#ifdef F77_DUMMY_MAIN
7339
7340#  ifdef __cplusplus
7341     extern "C"
7342#  endif
7343   int F77_DUMMY_MAIN() { return 1; }
7344
7345#endif
7346int
7347main ()
7348{
7349
7350  ;
7351  return 0;
7352}
7353_ACEOF
7354rm -f conftest.$ac_objext
7355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356  (eval $ac_compile) 2>conftest.er1
7357  ac_status=$?
7358  grep -v '^ *+' conftest.er1 >conftest.err
7359  rm -f conftest.er1
7360  cat conftest.err >&5
7361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362  (exit $ac_status); } &&
7363         { ac_try='test -z "$ac_c_werror_flag"
7364                         || test ! -s conftest.err'
7365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366  (eval $ac_try) 2>&5
7367  ac_status=$?
7368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369  (exit $ac_status); }; } &&
7370         { ac_try='test -s conftest.$ac_objext'
7371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372  (eval $ac_try) 2>&5
7373  ac_status=$?
7374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375  (exit $ac_status); }; }; then
7376  ac_cv_header_stdc=yes
7377else
7378  echo "$as_me: failed program was:" >&5
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
7381ac_cv_header_stdc=no
7382fi
7383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7384
7385if test $ac_cv_header_stdc = yes; then
7386  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7387  cat >conftest.$ac_ext <<_ACEOF
7388/* confdefs.h.  */
7389_ACEOF
7390cat confdefs.h >>conftest.$ac_ext
7391cat >>conftest.$ac_ext <<_ACEOF
7392/* end confdefs.h.  */
7393#include <string.h>
7394
7395_ACEOF
7396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7397  $EGREP "memchr" >/dev/null 2>&1; then
7398  :
7399else
7400  ac_cv_header_stdc=no
7401fi
7402rm -f conftest*
7403
7404fi
7405
7406if test $ac_cv_header_stdc = yes; then
7407  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7408  cat >conftest.$ac_ext <<_ACEOF
7409/* confdefs.h.  */
7410_ACEOF
7411cat confdefs.h >>conftest.$ac_ext
7412cat >>conftest.$ac_ext <<_ACEOF
7413/* end confdefs.h.  */
7414#include <stdlib.h>
7415
7416_ACEOF
7417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7418  $EGREP "free" >/dev/null 2>&1; then
7419  :
7420else
7421  ac_cv_header_stdc=no
7422fi
7423rm -f conftest*
7424
7425fi
7426
7427if test $ac_cv_header_stdc = yes; then
7428  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7429  if test "$cross_compiling" = yes; then
7430  :
7431else
7432  cat >conftest.$ac_ext <<_ACEOF
7433/* confdefs.h.  */
7434_ACEOF
7435cat confdefs.h >>conftest.$ac_ext
7436cat >>conftest.$ac_ext <<_ACEOF
7437/* end confdefs.h.  */
7438#include <ctype.h>
7439#if ((' ' & 0x0FF) == 0x020)
7440# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7441# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7442#else
7443# define ISLOWER(c) \
7444                   (('a' <= (c) && (c) <= 'i') \
7445                     || ('j' <= (c) && (c) <= 'r') \
7446                     || ('s' <= (c) && (c) <= 'z'))
7447# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7448#endif
7449
7450#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7451int
7452main ()
7453{
7454  int i;
7455  for (i = 0; i < 256; i++)
7456    if (XOR (islower (i), ISLOWER (i))
7457        || toupper (i) != TOUPPER (i))
7458      exit(2);
7459  exit (0);
7460}
7461_ACEOF
7462rm -f conftest$ac_exeext
7463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464  (eval $ac_link) 2>&5
7465  ac_status=$?
7466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469  (eval $ac_try) 2>&5
7470  ac_status=$?
7471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472  (exit $ac_status); }; }; then
7473  :
7474else
7475  echo "$as_me: program exited with status $ac_status" >&5
7476echo "$as_me: failed program was:" >&5
7477sed 's/^/| /' conftest.$ac_ext >&5
7478
7479( exit $ac_status )
7480ac_cv_header_stdc=no
7481fi
7482rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7483fi
7484fi
7485fi
7486echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7487echo "${ECHO_T}$ac_cv_header_stdc" >&6
7488if test $ac_cv_header_stdc = yes; then
7489
7490cat >>confdefs.h <<\_ACEOF
7491#define STDC_HEADERS 1
7492_ACEOF
7493
7494fi
7495
7496# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7507                  inttypes.h stdint.h unistd.h
7508do
7509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7510echo "$as_me:$LINENO: checking for $ac_header" >&5
7511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7512if eval "test \"\${$as_ac_Header+set}\" = set"; then
7513  echo $ECHO_N "(cached) $ECHO_C" >&6
7514else
7515  cat >conftest.$ac_ext <<_ACEOF
7516/* confdefs.h.  */
7517_ACEOF
7518cat confdefs.h >>conftest.$ac_ext
7519cat >>conftest.$ac_ext <<_ACEOF
7520/* end confdefs.h.  */
7521$ac_includes_default
7522
7523#include <$ac_header>
7524_ACEOF
7525rm -f conftest.$ac_objext
7526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527  (eval $ac_compile) 2>conftest.er1
7528  ac_status=$?
7529  grep -v '^ *+' conftest.er1 >conftest.err
7530  rm -f conftest.er1
7531  cat conftest.err >&5
7532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533  (exit $ac_status); } &&
7534         { ac_try='test -z "$ac_c_werror_flag"
7535                         || test ! -s conftest.err'
7536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537  (eval $ac_try) 2>&5
7538  ac_status=$?
7539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540  (exit $ac_status); }; } &&
7541         { ac_try='test -s conftest.$ac_objext'
7542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543  (eval $ac_try) 2>&5
7544  ac_status=$?
7545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546  (exit $ac_status); }; }; then
7547  eval "$as_ac_Header=yes"
7548else
7549  echo "$as_me: failed program was:" >&5
7550sed 's/^/| /' conftest.$ac_ext >&5
7551
7552eval "$as_ac_Header=no"
7553fi
7554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7555fi
7556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7558if test `eval echo '${'$as_ac_Header'}'` = yes; then
7559  cat >>confdefs.h <<_ACEOF
7560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7561_ACEOF
7562
7563fi
7564
7565done
7566
7567
7568
7569for ac_header in dlfcn.h
7570do
7571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7572if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573  echo "$as_me:$LINENO: checking for $ac_header" >&5
7574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7575if eval "test \"\${$as_ac_Header+set}\" = set"; then
7576  echo $ECHO_N "(cached) $ECHO_C" >&6
7577fi
7578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7580else
7581  # Is the header compilable?
7582echo "$as_me:$LINENO: checking $ac_header usability" >&5
7583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7584cat >conftest.$ac_ext <<_ACEOF
7585/* confdefs.h.  */
7586_ACEOF
7587cat confdefs.h >>conftest.$ac_ext
7588cat >>conftest.$ac_ext <<_ACEOF
7589/* end confdefs.h.  */
7590$ac_includes_default
7591#include <$ac_header>
7592_ACEOF
7593rm -f conftest.$ac_objext
7594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595  (eval $ac_compile) 2>conftest.er1
7596  ac_status=$?
7597  grep -v '^ *+' conftest.er1 >conftest.err
7598  rm -f conftest.er1
7599  cat conftest.err >&5
7600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601  (exit $ac_status); } &&
7602         { ac_try='test -z "$ac_c_werror_flag"
7603                         || test ! -s conftest.err'
7604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605  (eval $ac_try) 2>&5
7606  ac_status=$?
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); }; } &&
7609         { ac_try='test -s conftest.$ac_objext'
7610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611  (eval $ac_try) 2>&5
7612  ac_status=$?
7613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614  (exit $ac_status); }; }; then
7615  ac_header_compiler=yes
7616else
7617  echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
7620ac_header_compiler=no
7621fi
7622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7624echo "${ECHO_T}$ac_header_compiler" >&6
7625
7626# Is the header present?
7627echo "$as_me:$LINENO: checking $ac_header presence" >&5
7628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7629cat >conftest.$ac_ext <<_ACEOF
7630/* confdefs.h.  */
7631_ACEOF
7632cat confdefs.h >>conftest.$ac_ext
7633cat >>conftest.$ac_ext <<_ACEOF
7634/* end confdefs.h.  */
7635#include <$ac_header>
7636_ACEOF
7637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7638  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7639  ac_status=$?
7640  grep -v '^ *+' conftest.er1 >conftest.err
7641  rm -f conftest.er1
7642  cat conftest.err >&5
7643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644  (exit $ac_status); } >/dev/null; then
7645  if test -s conftest.err; then
7646    ac_cpp_err=$ac_c_preproc_warn_flag
7647    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7648  else
7649    ac_cpp_err=
7650  fi
7651else
7652  ac_cpp_err=yes
7653fi
7654if test -z "$ac_cpp_err"; then
7655  ac_header_preproc=yes
7656else
7657  echo "$as_me: failed program was:" >&5
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660  ac_header_preproc=no
7661fi
7662rm -f conftest.err conftest.$ac_ext
7663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7664echo "${ECHO_T}$ac_header_preproc" >&6
7665
7666# So?  What about this header?
7667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7668  yes:no: )
7669    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7671    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7673    ac_header_preproc=yes
7674    ;;
7675  no:yes:* )
7676    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7678    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7679echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7680    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7682    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7683echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7684    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7686    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7688    (
7689      cat <<\_ASBOX
7690## --------------------------------------------------------------- ##
7691## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7692## --------------------------------------------------------------- ##
7693_ASBOX
7694    ) |
7695      sed "s/^/$as_me: WARNING:     /" >&2
7696    ;;
7697esac
7698echo "$as_me:$LINENO: checking for $ac_header" >&5
7699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7700if eval "test \"\${$as_ac_Header+set}\" = set"; then
7701  echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703  eval "$as_ac_Header=\$ac_header_preproc"
7704fi
7705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7707
7708fi
7709if test `eval echo '${'$as_ac_Header'}'` = yes; then
7710  cat >>confdefs.h <<_ACEOF
7711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712_ACEOF
7713
7714fi
7715
7716done
7717
7718ac_ext=cc
7719ac_cpp='$CXXCPP $CPPFLAGS'
7720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7723if test -n "$ac_tool_prefix"; then
7724  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7725  do
7726    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7728echo "$as_me:$LINENO: checking for $ac_word" >&5
7729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7730if test "${ac_cv_prog_CXX+set}" = set; then
7731  echo $ECHO_N "(cached) $ECHO_C" >&6
7732else
7733  if test -n "$CXX"; then
7734  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7735else
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739  IFS=$as_save_IFS
7740  test -z "$as_dir" && as_dir=.
7741  for ac_exec_ext in '' $ac_executable_extensions; do
7742  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745    break 2
7746  fi
7747done
7748done
7749
7750fi
7751fi
7752CXX=$ac_cv_prog_CXX
7753if test -n "$CXX"; then
7754  echo "$as_me:$LINENO: result: $CXX" >&5
7755echo "${ECHO_T}$CXX" >&6
7756else
7757  echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6
7759fi
7760
7761    test -n "$CXX" && break
7762  done
7763fi
7764if test -z "$CXX"; then
7765  ac_ct_CXX=$CXX
7766  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7767do
7768  # Extract the first word of "$ac_prog", so it can be a program name with args.
7769set dummy $ac_prog; ac_word=$2
7770echo "$as_me:$LINENO: checking for $ac_word" >&5
7771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7772if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7773  echo $ECHO_N "(cached) $ECHO_C" >&6
7774else
7775  if test -n "$ac_ct_CXX"; then
7776  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7777else
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781  IFS=$as_save_IFS
7782  test -z "$as_dir" && as_dir=.
7783  for ac_exec_ext in '' $ac_executable_extensions; do
7784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785    ac_cv_prog_ac_ct_CXX="$ac_prog"
7786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787    break 2
7788  fi
7789done
7790done
7791
7792fi
7793fi
7794ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7795if test -n "$ac_ct_CXX"; then
7796  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7797echo "${ECHO_T}$ac_ct_CXX" >&6
7798else
7799  echo "$as_me:$LINENO: result: no" >&5
7800echo "${ECHO_T}no" >&6
7801fi
7802
7803  test -n "$ac_ct_CXX" && break
7804done
7805test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7806
7807  CXX=$ac_ct_CXX
7808fi
7809
7810
7811# Provide some information about the compiler.
7812echo "$as_me:$LINENO:" \
7813     "checking for C++ compiler version" >&5
7814ac_compiler=`set X $ac_compile; echo $2`
7815{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7816  (eval $ac_compiler --version </dev/null >&5) 2>&5
7817  ac_status=$?
7818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819  (exit $ac_status); }
7820{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7821  (eval $ac_compiler -v </dev/null >&5) 2>&5
7822  ac_status=$?
7823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824  (exit $ac_status); }
7825{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7826  (eval $ac_compiler -V </dev/null >&5) 2>&5
7827  ac_status=$?
7828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829  (exit $ac_status); }
7830
7831echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7832echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7833if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7834  echo $ECHO_N "(cached) $ECHO_C" >&6
7835else
7836  cat >conftest.$ac_ext <<_ACEOF
7837/* confdefs.h.  */
7838_ACEOF
7839cat confdefs.h >>conftest.$ac_ext
7840cat >>conftest.$ac_ext <<_ACEOF
7841/* end confdefs.h.  */
7842
7843#ifdef F77_DUMMY_MAIN
7844
7845#  ifdef __cplusplus
7846     extern "C"
7847#  endif
7848   int F77_DUMMY_MAIN() { return 1; }
7849
7850#endif
7851int
7852main ()
7853{
7854#ifndef __GNUC__
7855       choke me
7856#endif
7857
7858  ;
7859  return 0;
7860}
7861_ACEOF
7862rm -f conftest.$ac_objext
7863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7864  (eval $ac_compile) 2>conftest.er1
7865  ac_status=$?
7866  grep -v '^ *+' conftest.er1 >conftest.err
7867  rm -f conftest.er1
7868  cat conftest.err >&5
7869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870  (exit $ac_status); } &&
7871         { ac_try='test -z "$ac_cxx_werror_flag"
7872                         || test ! -s conftest.err'
7873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874  (eval $ac_try) 2>&5
7875  ac_status=$?
7876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877  (exit $ac_status); }; } &&
7878         { ac_try='test -s conftest.$ac_objext'
7879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880  (eval $ac_try) 2>&5
7881  ac_status=$?
7882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883  (exit $ac_status); }; }; then
7884  ac_compiler_gnu=yes
7885else
7886  echo "$as_me: failed program was:" >&5
7887sed 's/^/| /' conftest.$ac_ext >&5
7888
7889ac_compiler_gnu=no
7890fi
7891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7892ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7893
7894fi
7895echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7896echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7897GXX=`test $ac_compiler_gnu = yes && echo yes`
7898ac_test_CXXFLAGS=${CXXFLAGS+set}
7899ac_save_CXXFLAGS=$CXXFLAGS
7900CXXFLAGS="-g"
7901echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7902echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7903if test "${ac_cv_prog_cxx_g+set}" = set; then
7904  echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906  cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h.  */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h.  */
7912
7913#ifdef F77_DUMMY_MAIN
7914
7915#  ifdef __cplusplus
7916     extern "C"
7917#  endif
7918   int F77_DUMMY_MAIN() { return 1; }
7919
7920#endif
7921int
7922main ()
7923{
7924
7925  ;
7926  return 0;
7927}
7928_ACEOF
7929rm -f conftest.$ac_objext
7930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7931  (eval $ac_compile) 2>conftest.er1
7932  ac_status=$?
7933  grep -v '^ *+' conftest.er1 >conftest.err
7934  rm -f conftest.er1
7935  cat conftest.err >&5
7936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937  (exit $ac_status); } &&
7938         { ac_try='test -z "$ac_cxx_werror_flag"
7939                         || test ! -s conftest.err'
7940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941  (eval $ac_try) 2>&5
7942  ac_status=$?
7943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944  (exit $ac_status); }; } &&
7945         { ac_try='test -s conftest.$ac_objext'
7946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947  (eval $ac_try) 2>&5
7948  ac_status=$?
7949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950  (exit $ac_status); }; }; then
7951  ac_cv_prog_cxx_g=yes
7952else
7953  echo "$as_me: failed program was:" >&5
7954sed 's/^/| /' conftest.$ac_ext >&5
7955
7956ac_cv_prog_cxx_g=no
7957fi
7958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7959fi
7960echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7961echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7962if test "$ac_test_CXXFLAGS" = set; then
7963  CXXFLAGS=$ac_save_CXXFLAGS
7964elif test $ac_cv_prog_cxx_g = yes; then
7965  if test "$GXX" = yes; then
7966    CXXFLAGS="-g -O2"
7967  else
7968    CXXFLAGS="-g"
7969  fi
7970else
7971  if test "$GXX" = yes; then
7972    CXXFLAGS="-O2"
7973  else
7974    CXXFLAGS=
7975  fi
7976fi
7977for ac_declaration in \
7978   '' \
7979   'extern "C" void std::exit (int) throw (); using std::exit;' \
7980   'extern "C" void std::exit (int); using std::exit;' \
7981   'extern "C" void exit (int) throw ();' \
7982   'extern "C" void exit (int);' \
7983   'void exit (int);'
7984do
7985  cat >conftest.$ac_ext <<_ACEOF
7986/* confdefs.h.  */
7987_ACEOF
7988cat confdefs.h >>conftest.$ac_ext
7989cat >>conftest.$ac_ext <<_ACEOF
7990/* end confdefs.h.  */
7991$ac_declaration
7992#include <stdlib.h>
7993#ifdef F77_DUMMY_MAIN
7994
7995#  ifdef __cplusplus
7996     extern "C"
7997#  endif
7998   int F77_DUMMY_MAIN() { return 1; }
7999
8000#endif
8001int
8002main ()
8003{
8004exit (42);
8005  ;
8006  return 0;
8007}
8008_ACEOF
8009rm -f conftest.$ac_objext
8010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011  (eval $ac_compile) 2>conftest.er1
8012  ac_status=$?
8013  grep -v '^ *+' conftest.er1 >conftest.err
8014  rm -f conftest.er1
8015  cat conftest.err >&5
8016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017  (exit $ac_status); } &&
8018         { ac_try='test -z "$ac_cxx_werror_flag"
8019                         || test ! -s conftest.err'
8020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021  (eval $ac_try) 2>&5
8022  ac_status=$?
8023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024  (exit $ac_status); }; } &&
8025         { ac_try='test -s conftest.$ac_objext'
8026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027  (eval $ac_try) 2>&5
8028  ac_status=$?
8029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030  (exit $ac_status); }; }; then
8031  :
8032else
8033  echo "$as_me: failed program was:" >&5
8034sed 's/^/| /' conftest.$ac_ext >&5
8035
8036continue
8037fi
8038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8039  cat >conftest.$ac_ext <<_ACEOF
8040/* confdefs.h.  */
8041_ACEOF
8042cat confdefs.h >>conftest.$ac_ext
8043cat >>conftest.$ac_ext <<_ACEOF
8044/* end confdefs.h.  */
8045$ac_declaration
8046#ifdef F77_DUMMY_MAIN
8047
8048#  ifdef __cplusplus
8049     extern "C"
8050#  endif
8051   int F77_DUMMY_MAIN() { return 1; }
8052
8053#endif
8054int
8055main ()
8056{
8057exit (42);
8058  ;
8059  return 0;
8060}
8061_ACEOF
8062rm -f conftest.$ac_objext
8063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064  (eval $ac_compile) 2>conftest.er1
8065  ac_status=$?
8066  grep -v '^ *+' conftest.er1 >conftest.err
8067  rm -f conftest.er1
8068  cat conftest.err >&5
8069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070  (exit $ac_status); } &&
8071         { ac_try='test -z "$ac_cxx_werror_flag"
8072                         || test ! -s conftest.err'
8073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074  (eval $ac_try) 2>&5
8075  ac_status=$?
8076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077  (exit $ac_status); }; } &&
8078         { ac_try='test -s conftest.$ac_objext'
8079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080  (eval $ac_try) 2>&5
8081  ac_status=$?
8082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083  (exit $ac_status); }; }; then
8084  break
8085else
8086  echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
8089fi
8090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8091done
8092rm -f conftest*
8093if test -n "$ac_declaration"; then
8094  echo '#ifdef __cplusplus' >>confdefs.h
8095  echo $ac_declaration      >>confdefs.h
8096  echo '#endif'             >>confdefs.h
8097fi
8098
8099ac_ext=cc
8100ac_cpp='$CXXCPP $CPPFLAGS'
8101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8104
8105depcc="$CXX"  am_compiler_list=
8106
8107echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8108echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8109if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8110  echo $ECHO_N "(cached) $ECHO_C" >&6
8111else
8112  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8113  # We make a subdir and do the tests there.  Otherwise we can end up
8114  # making bogus files that we don't know about and never remove.  For
8115  # instance it was reported that on HP-UX the gcc test will end up
8116  # making a dummy file named `D' -- because `-MD' means `put the output
8117  # in D'.
8118  mkdir conftest.dir
8119  # Copy depcomp to subdir because otherwise we won't find it if we're
8120  # using a relative directory.
8121  cp "$am_depcomp" conftest.dir
8122  cd conftest.dir
8123  # We will build objects and dependencies in a subdirectory because
8124  # it helps to detect inapplicable dependency modes.  For instance
8125  # both Tru64's cc and ICC support -MD to output dependencies as a
8126  # side effect of compilation, but ICC will put the dependencies in
8127  # the current directory while Tru64 will put them in the object
8128  # directory.
8129  mkdir sub
8130
8131  am_cv_CXX_dependencies_compiler_type=none
8132  if test "$am_compiler_list" = ""; then
8133     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8134  fi
8135  for depmode in $am_compiler_list; do
8136    # Setup a source with many dependencies, because some compilers
8137    # like to wrap large dependency lists on column 80 (with \), and
8138    # we should not choose a depcomp mode which is confused by this.
8139    #
8140    # We need to recreate these files for each test, as the compiler may
8141    # overwrite some of them when testing with obscure command lines.
8142    # This happens at least with the AIX C compiler.
8143    : > sub/conftest.c
8144    for i in 1 2 3 4 5 6; do
8145      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8146      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8147      # Solaris 8's {/usr,}/bin/sh.
8148      touch sub/conftst$i.h
8149    done
8150    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8151
8152    case $depmode in
8153    nosideeffect)
8154      # after this tag, mechanisms are not by side-effect, so they'll
8155      # only be used when explicitly requested
8156      if test "x$enable_dependency_tracking" = xyes; then
8157        continue
8158      else
8159        break
8160      fi
8161      ;;
8162    none) break ;;
8163    esac
8164    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8165    # mode.  It turns out that the SunPro C++ compiler does not properly
8166    # handle `-M -o', and we need to detect this.
8167    if depmode=$depmode \
8168       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8169       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8170       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8171         >/dev/null 2>conftest.err &&
8172       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8173       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8174       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8175      # icc doesn't choke on unknown options, it will just issue warnings
8176      # or remarks (even with -Werror).  So we grep stderr for any message
8177      # that says an option was ignored or not supported.
8178      # When given -MP, icc 7.0 and 7.1 complain thusly:
8179      #   icc: Command line warning: ignoring option '-M'; no argument required
8180      # The diagnosis changed in icc 8.0:
8181      #   icc: Command line remark: option '-MP' not supported
8182      if (grep 'ignoring option' conftest.err ||
8183          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8184        am_cv_CXX_dependencies_compiler_type=$depmode
8185        break
8186      fi
8187    fi
8188  done
8189
8190  cd ..
8191  rm -rf conftest.dir
8192else
8193  am_cv_CXX_dependencies_compiler_type=none
8194fi
8195
8196fi
8197echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8198echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8199CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8200
8201
8202
8203if
8204  test "x$enable_dependency_tracking" != xno \
8205  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8206  am__fastdepCXX_TRUE=
8207  am__fastdepCXX_FALSE='#'
8208else
8209  am__fastdepCXX_TRUE='#'
8210  am__fastdepCXX_FALSE=
8211fi
8212
8213
8214
8215
8216if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8217    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8218    (test "X$CXX" != "Xg++"))) ; then
8219  ac_ext=cc
8220ac_cpp='$CXXCPP $CPPFLAGS'
8221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8224echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8225echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8226if test -z "$CXXCPP"; then
8227  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8228  echo $ECHO_N "(cached) $ECHO_C" >&6
8229else
8230      # Double quotes because CXXCPP needs to be expanded
8231    for CXXCPP in "$CXX -E" "/lib/cpp"
8232    do
8233      ac_preproc_ok=false
8234for ac_cxx_preproc_warn_flag in '' yes
8235do
8236  # Use a header file that comes with gcc, so configuring glibc
8237  # with a fresh cross-compiler works.
8238  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8239  # <limits.h> exists even on freestanding compilers.
8240  # On the NeXT, cc -E runs the code through the compiler's parser,
8241  # not just through cpp. "Syntax error" is here to catch this case.
8242  cat >conftest.$ac_ext <<_ACEOF
8243/* confdefs.h.  */
8244_ACEOF
8245cat confdefs.h >>conftest.$ac_ext
8246cat >>conftest.$ac_ext <<_ACEOF
8247/* end confdefs.h.  */
8248#ifdef __STDC__
8249# include <limits.h>
8250#else
8251# include <assert.h>
8252#endif
8253                     Syntax error
8254_ACEOF
8255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8256  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8257  ac_status=$?
8258  grep -v '^ *+' conftest.er1 >conftest.err
8259  rm -f conftest.er1
8260  cat conftest.err >&5
8261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262  (exit $ac_status); } >/dev/null; then
8263  if test -s conftest.err; then
8264    ac_cpp_err=$ac_cxx_preproc_warn_flag
8265    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8266  else
8267    ac_cpp_err=
8268  fi
8269else
8270  ac_cpp_err=yes
8271fi
8272if test -z "$ac_cpp_err"; then
8273  :
8274else
8275  echo "$as_me: failed program was:" >&5
8276sed 's/^/| /' conftest.$ac_ext >&5
8277
8278  # Broken: fails on valid input.
8279continue
8280fi
8281rm -f conftest.err conftest.$ac_ext
8282
8283  # OK, works on sane cases.  Now check whether non-existent headers
8284  # can be detected and how.
8285  cat >conftest.$ac_ext <<_ACEOF
8286/* confdefs.h.  */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h.  */
8291#include <ac_nonexistent.h>
8292_ACEOF
8293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8294  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8295  ac_status=$?
8296  grep -v '^ *+' conftest.er1 >conftest.err
8297  rm -f conftest.er1
8298  cat conftest.err >&5
8299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300  (exit $ac_status); } >/dev/null; then
8301  if test -s conftest.err; then
8302    ac_cpp_err=$ac_cxx_preproc_warn_flag
8303    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8304  else
8305    ac_cpp_err=
8306  fi
8307else
8308  ac_cpp_err=yes
8309fi
8310if test -z "$ac_cpp_err"; then
8311  # Broken: success on invalid input.
8312continue
8313else
8314  echo "$as_me: failed program was:" >&5
8315sed 's/^/| /' conftest.$ac_ext >&5
8316
8317  # Passes both tests.
8318ac_preproc_ok=:
8319break
8320fi
8321rm -f conftest.err conftest.$ac_ext
8322
8323done
8324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8325rm -f conftest.err conftest.$ac_ext
8326if $ac_preproc_ok; then
8327  break
8328fi
8329
8330    done
8331    ac_cv_prog_CXXCPP=$CXXCPP
8332
8333fi
8334  CXXCPP=$ac_cv_prog_CXXCPP
8335else
8336  ac_cv_prog_CXXCPP=$CXXCPP
8337fi
8338echo "$as_me:$LINENO: result: $CXXCPP" >&5
8339echo "${ECHO_T}$CXXCPP" >&6
8340ac_preproc_ok=false
8341for ac_cxx_preproc_warn_flag in '' yes
8342do
8343  # Use a header file that comes with gcc, so configuring glibc
8344  # with a fresh cross-compiler works.
8345  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8346  # <limits.h> exists even on freestanding compilers.
8347  # On the NeXT, cc -E runs the code through the compiler's parser,
8348  # not just through cpp. "Syntax error" is here to catch this case.
8349  cat >conftest.$ac_ext <<_ACEOF
8350/* confdefs.h.  */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
8354/* end confdefs.h.  */
8355#ifdef __STDC__
8356# include <limits.h>
8357#else
8358# include <assert.h>
8359#endif
8360                     Syntax error
8361_ACEOF
8362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8363  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8364  ac_status=$?
8365  grep -v '^ *+' conftest.er1 >conftest.err
8366  rm -f conftest.er1
8367  cat conftest.err >&5
8368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369  (exit $ac_status); } >/dev/null; then
8370  if test -s conftest.err; then
8371    ac_cpp_err=$ac_cxx_preproc_warn_flag
8372    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8373  else
8374    ac_cpp_err=
8375  fi
8376else
8377  ac_cpp_err=yes
8378fi
8379if test -z "$ac_cpp_err"; then
8380  :
8381else
8382  echo "$as_me: failed program was:" >&5
8383sed 's/^/| /' conftest.$ac_ext >&5
8384
8385  # Broken: fails on valid input.
8386continue
8387fi
8388rm -f conftest.err conftest.$ac_ext
8389
8390  # OK, works on sane cases.  Now check whether non-existent headers
8391  # can be detected and how.
8392  cat >conftest.$ac_ext <<_ACEOF
8393/* confdefs.h.  */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h.  */
8398#include <ac_nonexistent.h>
8399_ACEOF
8400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8401  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8402  ac_status=$?
8403  grep -v '^ *+' conftest.er1 >conftest.err
8404  rm -f conftest.er1
8405  cat conftest.err >&5
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); } >/dev/null; then
8408  if test -s conftest.err; then
8409    ac_cpp_err=$ac_cxx_preproc_warn_flag
8410    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8411  else
8412    ac_cpp_err=
8413  fi
8414else
8415  ac_cpp_err=yes
8416fi
8417if test -z "$ac_cpp_err"; then
8418  # Broken: success on invalid input.
8419continue
8420else
8421  echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424  # Passes both tests.
8425ac_preproc_ok=:
8426break
8427fi
8428rm -f conftest.err conftest.$ac_ext
8429
8430done
8431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8432rm -f conftest.err conftest.$ac_ext
8433if $ac_preproc_ok; then
8434  :
8435else
8436  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8437See \`config.log' for more details." >&5
8438echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8439See \`config.log' for more details." >&2;}
8440   { (exit 1); exit 1; }; }
8441fi
8442
8443ac_ext=cc
8444ac_cpp='$CXXCPP $CPPFLAGS'
8445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8448
8449fi
8450
8451
8452
8453# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8454
8455# find the maximum length of command line arguments
8456echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8457echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8458if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8459  echo $ECHO_N "(cached) $ECHO_C" >&6
8460else
8461    i=0
8462  teststring="ABCD"
8463
8464  case $build_os in
8465  msdosdjgpp*)
8466    # On DJGPP, this test can blow up pretty badly due to problems in libc
8467    # (any single argument exceeding 2000 bytes causes a buffer overrun
8468    # during glob expansion).  Even if it were fixed, the result of this
8469    # check would be larger than it should be.
8470    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8471    ;;
8472
8473  gnu*)
8474    # Under GNU Hurd, this test is not required because there is
8475    # no limit to the length of command line arguments.
8476    # Libtool will interpret -1 as no limit whatsoever
8477    lt_cv_sys_max_cmd_len=-1;
8478    ;;
8479
8480  cygwin* | mingw*)
8481    # On Win9x/ME, this test blows up -- it succeeds, but takes
8482    # about 5 minutes as the teststring grows exponentially.
8483    # Worse, since 9x/ME are not pre-emptively multitasking,
8484    # you end up with a "frozen" computer, even though with patience
8485    # the test eventually succeeds (with a max line length of 256k).
8486    # Instead, let's just punt: use the minimum linelength reported by
8487    # all of the supported platforms: 8192 (on NT/2K/XP).
8488    lt_cv_sys_max_cmd_len=8192;
8489    ;;
8490
8491  amigaos*)
8492    # On AmigaOS with pdksh, this test takes hours, literally.
8493    # So we just punt and use a minimum line length of 8192.
8494    lt_cv_sys_max_cmd_len=8192;
8495    ;;
8496
8497  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8498    # This has been around since 386BSD, at least.  Likely further.
8499    if test -x /sbin/sysctl; then
8500      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8501    elif test -x /usr/sbin/sysctl; then
8502      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8503    else
8504      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8505    fi
8506    # And add a safety zone
8507    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8508    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8509    ;;
8510
8511  interix*)
8512    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8513    lt_cv_sys_max_cmd_len=196608
8514    ;;
8515
8516  osf*)
8517    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8518    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8519    # nice to cause kernel panics so lets avoid the loop below.
8520    # First set a reasonable default.
8521    lt_cv_sys_max_cmd_len=16384
8522    #
8523    if test -x /sbin/sysconfig; then
8524      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8525        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8526      esac
8527    fi
8528    ;;
8529  sco3.2v5*)
8530    lt_cv_sys_max_cmd_len=102400
8531    ;;
8532  sysv5* | sco5v6* | sysv4.2uw2*)
8533    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8534    if test -n "$kargmax"; then
8535      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8536    else
8537      lt_cv_sys_max_cmd_len=32768
8538    fi
8539    ;;
8540  *)
8541    # If test is not a shell built-in, we'll probably end up computing a
8542    # maximum length that is only half of the actual maximum length, but
8543    # we can't tell.
8544    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8545    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8546               = "XX$teststring") >/dev/null 2>&1 &&
8547            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8548            lt_cv_sys_max_cmd_len=$new_result &&
8549            test $i != 17 # 1/2 MB should be enough
8550    do
8551      i=`expr $i + 1`
8552      teststring=$teststring$teststring
8553    done
8554    teststring=
8555    # Add a significant safety factor because C++ compilers can tack on massive
8556    # amounts of additional arguments before passing them to the linker.
8557    # It appears as though 1/2 is a usable value.
8558    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8559    ;;
8560  esac
8561
8562fi
8563
8564if test -n $lt_cv_sys_max_cmd_len ; then
8565  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8566echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8567else
8568  echo "$as_me:$LINENO: result: none" >&5
8569echo "${ECHO_T}none" >&6
8570fi
8571
8572
8573
8574
8575# Check for command to grab the raw symbol name followed by C symbol from nm.
8576echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8577echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8578if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8579  echo $ECHO_N "(cached) $ECHO_C" >&6
8580else
8581
8582# These are sane defaults that work on at least a few old systems.
8583# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8584
8585# Character class describing NM global symbol codes.
8586symcode='[BCDEGRST]'
8587
8588# Regexp to match symbols that can be accessed directly from C.
8589sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8590
8591# Transform an extracted symbol line into a proper C declaration
8592lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8593
8594# Transform an extracted symbol line into symbol name and symbol address
8595lt_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'"
8596
8597# Define system-specific variables.
8598case $host_os in
8599aix*)
8600  symcode='[BCDT]'
8601  ;;
8602cygwin* | mingw* | pw32*)
8603  symcode='[ABCDGISTW]'
8604  ;;
8605hpux*) # Its linker distinguishes data from code symbols
8606  if test "$host_cpu" = ia64; then
8607    symcode='[ABCDEGRST]'
8608  fi
8609  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8610  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'"
8611  ;;
8612linux*)
8613  if test "$host_cpu" = ia64; then
8614    symcode='[ABCDGIRSTW]'
8615    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8616    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'"
8617  fi
8618  ;;
8619irix* | nonstopux*)
8620  symcode='[BCDEGRST]'
8621  ;;
8622osf*)
8623  symcode='[BCDEGQRST]'
8624  ;;
8625solaris*)
8626  symcode='[BDRT]'
8627  ;;
8628sco3.2v5*)
8629  symcode='[DT]'
8630  ;;
8631sysv4.2uw2*)
8632  symcode='[DT]'
8633  ;;
8634sysv5* | sco5v6* | unixware* | OpenUNIX*)
8635  symcode='[ABDT]'
8636  ;;
8637sysv4)
8638  symcode='[DFNSTU]'
8639  ;;
8640esac
8641
8642# Handle CRLF in mingw tool chain
8643opt_cr=
8644case $build_os in
8645mingw*)
8646  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8647  ;;
8648esac
8649
8650# If we're using GNU nm, then use its standard symbol codes.
8651case `$NM -V 2>&1` in
8652*GNU* | *'with BFD'*)
8653  symcode='[ABCDGIRSTW]' ;;
8654esac
8655
8656# Try without a prefix undercore, then with it.
8657for ac_symprfx in "" "_"; do
8658
8659  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8660  symxfrm="\\1 $ac_symprfx\\2 \\2"
8661
8662  # Write the raw and C identifiers.
8663  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8664
8665  # Check to see that the pipe works correctly.
8666  pipe_works=no
8667
8668  rm -f conftest*
8669  cat > conftest.$ac_ext <<EOF
8670#ifdef __cplusplus
8671extern "C" {
8672#endif
8673char nm_test_var;
8674void nm_test_func(){}
8675#ifdef __cplusplus
8676}
8677#endif
8678int main(){nm_test_var='a';nm_test_func();return(0);}
8679EOF
8680
8681  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8682  (eval $ac_compile) 2>&5
8683  ac_status=$?
8684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685  (exit $ac_status); }; then
8686    # Now try to grab the symbols.
8687    nlist=conftest.nm
8688    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8689  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8690  ac_status=$?
8691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692  (exit $ac_status); } && test -s "$nlist"; then
8693      # Try sorting and uniquifying the output.
8694      if sort "$nlist" | uniq > "$nlist"T; then
8695        mv -f "$nlist"T "$nlist"
8696      else
8697        rm -f "$nlist"T
8698      fi
8699
8700      # Make sure that we snagged all the symbols we need.
8701      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8702        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8703          cat <<EOF > conftest.$ac_ext
8704#ifdef __cplusplus
8705extern "C" {
8706#endif
8707
8708EOF
8709          # Now generate the symbol file.
8710          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8711
8712          cat <<EOF >> conftest.$ac_ext
8713#if defined (__STDC__) && __STDC__
8714# define lt_ptr_t void *
8715#else
8716# define lt_ptr_t char *
8717# define const
8718#endif
8719
8720/* The mapping between symbol names and symbols. */
8721const struct {
8722  const char *name;
8723  lt_ptr_t address;
8724}
8725lt_preloaded_symbols[] =
8726{
8727EOF
8728          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8729          cat <<\EOF >> conftest.$ac_ext
8730  {0, (lt_ptr_t) 0}
8731};
8732
8733#ifdef __cplusplus
8734}
8735#endif
8736EOF
8737          # Now try linking the two files.
8738          mv conftest.$ac_objext conftstm.$ac_objext
8739          lt_save_LIBS="$LIBS"
8740          lt_save_CFLAGS="$CFLAGS"
8741          LIBS="conftstm.$ac_objext"
8742          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8743          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744  (eval $ac_link) 2>&5
8745  ac_status=$?
8746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8748            pipe_works=yes
8749          fi
8750          LIBS="$lt_save_LIBS"
8751          CFLAGS="$lt_save_CFLAGS"
8752        else
8753          echo "cannot find nm_test_func in $nlist" >&5
8754        fi
8755      else
8756        echo "cannot find nm_test_var in $nlist" >&5
8757      fi
8758    else
8759      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8760    fi
8761  else
8762    echo "$progname: failed program was:" >&5
8763    cat conftest.$ac_ext >&5
8764  fi
8765  rm -f conftest* conftst*
8766
8767  # Do not use the global_symbol_pipe unless it works.
8768  if test "$pipe_works" = yes; then
8769    break
8770  else
8771    lt_cv_sys_global_symbol_pipe=
8772  fi
8773done
8774
8775fi
8776
8777if test -z "$lt_cv_sys_global_symbol_pipe"; then
8778  lt_cv_sys_global_symbol_to_cdecl=
8779fi
8780if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8781  echo "$as_me:$LINENO: result: failed" >&5
8782echo "${ECHO_T}failed" >&6
8783else
8784  echo "$as_me:$LINENO: result: ok" >&5
8785echo "${ECHO_T}ok" >&6
8786fi
8787
8788echo "$as_me:$LINENO: checking for objdir" >&5
8789echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8790if test "${lt_cv_objdir+set}" = set; then
8791  echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793  rm -f .libs 2>/dev/null
8794mkdir .libs 2>/dev/null
8795if test -d .libs; then
8796  lt_cv_objdir=.libs
8797else
8798  # MS-DOS does not allow filenames that begin with a dot.
8799  lt_cv_objdir=_libs
8800fi
8801rmdir .libs 2>/dev/null
8802fi
8803echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8804echo "${ECHO_T}$lt_cv_objdir" >&6
8805objdir=$lt_cv_objdir
8806
8807
8808
8809
8810
8811case $host_os in
8812aix3*)
8813  # AIX sometimes has problems with the GCC collect2 program.  For some
8814  # reason, if we set the COLLECT_NAMES environment variable, the problems
8815  # vanish in a puff of smoke.
8816  if test "X${COLLECT_NAMES+set}" != Xset; then
8817    COLLECT_NAMES=
8818    export COLLECT_NAMES
8819  fi
8820  ;;
8821esac
8822
8823# Sed substitution that helps us do robust quoting.  It backslashifies
8824# metacharacters that are still active within double-quoted strings.
8825Xsed='sed -e 1s/^X//'
8826sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8827
8828# Same as above, but do not quote variable references.
8829double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8830
8831# Sed substitution to delay expansion of an escaped shell variable in a
8832# double_quote_subst'ed string.
8833delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8834
8835# Sed substitution to avoid accidental globbing in evaled expressions
8836no_glob_subst='s/\*/\\\*/g'
8837
8838# Constants:
8839rm="rm -f"
8840
8841# Global variables:
8842default_ofile=libtool
8843can_build_shared=yes
8844
8845# All known linkers require a `.a' archive for static linking (except MSVC,
8846# which needs '.lib').
8847libext=a
8848ltmain="$ac_aux_dir/ltmain.sh"
8849ofile="$default_ofile"
8850with_gnu_ld="$lt_cv_prog_gnu_ld"
8851
8852if test -n "$ac_tool_prefix"; then
8853  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8854set dummy ${ac_tool_prefix}ar; ac_word=$2
8855echo "$as_me:$LINENO: checking for $ac_word" >&5
8856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8857if test "${ac_cv_prog_AR+set}" = set; then
8858  echo $ECHO_N "(cached) $ECHO_C" >&6
8859else
8860  if test -n "$AR"; then
8861  ac_cv_prog_AR="$AR" # Let the user override the test.
8862else
8863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864for as_dir in $PATH
8865do
8866  IFS=$as_save_IFS
8867  test -z "$as_dir" && as_dir=.
8868  for ac_exec_ext in '' $ac_executable_extensions; do
8869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870    ac_cv_prog_AR="${ac_tool_prefix}ar"
8871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8872    break 2
8873  fi
8874done
8875done
8876
8877fi
8878fi
8879AR=$ac_cv_prog_AR
8880if test -n "$AR"; then
8881  echo "$as_me:$LINENO: result: $AR" >&5
8882echo "${ECHO_T}$AR" >&6
8883else
8884  echo "$as_me:$LINENO: result: no" >&5
8885echo "${ECHO_T}no" >&6
8886fi
8887
8888fi
8889if test -z "$ac_cv_prog_AR"; then
8890  ac_ct_AR=$AR
8891  # Extract the first word of "ar", so it can be a program name with args.
8892set dummy ar; ac_word=$2
8893echo "$as_me:$LINENO: checking for $ac_word" >&5
8894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8895if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8896  echo $ECHO_N "(cached) $ECHO_C" >&6
8897else
8898  if test -n "$ac_ct_AR"; then
8899  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8900else
8901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902for as_dir in $PATH
8903do
8904  IFS=$as_save_IFS
8905  test -z "$as_dir" && as_dir=.
8906  for ac_exec_ext in '' $ac_executable_extensions; do
8907  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8908    ac_cv_prog_ac_ct_AR="ar"
8909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8910    break 2
8911  fi
8912done
8913done
8914
8915  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8916fi
8917fi
8918ac_ct_AR=$ac_cv_prog_ac_ct_AR
8919if test -n "$ac_ct_AR"; then
8920  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8921echo "${ECHO_T}$ac_ct_AR" >&6
8922else
8923  echo "$as_me:$LINENO: result: no" >&5
8924echo "${ECHO_T}no" >&6
8925fi
8926
8927  AR=$ac_ct_AR
8928else
8929  AR="$ac_cv_prog_AR"
8930fi
8931
8932if test -n "$ac_tool_prefix"; then
8933  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8934set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8935echo "$as_me:$LINENO: checking for $ac_word" >&5
8936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8937if test "${ac_cv_prog_RANLIB+set}" = set; then
8938  echo $ECHO_N "(cached) $ECHO_C" >&6
8939else
8940  if test -n "$RANLIB"; then
8941  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8942else
8943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944for as_dir in $PATH
8945do
8946  IFS=$as_save_IFS
8947  test -z "$as_dir" && as_dir=.
8948  for ac_exec_ext in '' $ac_executable_extensions; do
8949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8950    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8952    break 2
8953  fi
8954done
8955done
8956
8957fi
8958fi
8959RANLIB=$ac_cv_prog_RANLIB
8960if test -n "$RANLIB"; then
8961  echo "$as_me:$LINENO: result: $RANLIB" >&5
8962echo "${ECHO_T}$RANLIB" >&6
8963else
8964  echo "$as_me:$LINENO: result: no" >&5
8965echo "${ECHO_T}no" >&6
8966fi
8967
8968fi
8969if test -z "$ac_cv_prog_RANLIB"; then
8970  ac_ct_RANLIB=$RANLIB
8971  # Extract the first word of "ranlib", so it can be a program name with args.
8972set dummy ranlib; ac_word=$2
8973echo "$as_me:$LINENO: checking for $ac_word" >&5
8974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8975if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8976  echo $ECHO_N "(cached) $ECHO_C" >&6
8977else
8978  if test -n "$ac_ct_RANLIB"; then
8979  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8980else
8981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982for as_dir in $PATH
8983do
8984  IFS=$as_save_IFS
8985  test -z "$as_dir" && as_dir=.
8986  for ac_exec_ext in '' $ac_executable_extensions; do
8987  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8988    ac_cv_prog_ac_ct_RANLIB="ranlib"
8989    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8990    break 2
8991  fi
8992done
8993done
8994
8995  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8996fi
8997fi
8998ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8999if test -n "$ac_ct_RANLIB"; then
9000  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9001echo "${ECHO_T}$ac_ct_RANLIB" >&6
9002else
9003  echo "$as_me:$LINENO: result: no" >&5
9004echo "${ECHO_T}no" >&6
9005fi
9006
9007  RANLIB=$ac_ct_RANLIB
9008else
9009  RANLIB="$ac_cv_prog_RANLIB"
9010fi
9011
9012if test -n "$ac_tool_prefix"; then
9013  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9014set dummy ${ac_tool_prefix}strip; ac_word=$2
9015echo "$as_me:$LINENO: checking for $ac_word" >&5
9016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9017if test "${ac_cv_prog_STRIP+set}" = set; then
9018  echo $ECHO_N "(cached) $ECHO_C" >&6
9019else
9020  if test -n "$STRIP"; then
9021  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9022else
9023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024for as_dir in $PATH
9025do
9026  IFS=$as_save_IFS
9027  test -z "$as_dir" && as_dir=.
9028  for ac_exec_ext in '' $ac_executable_extensions; do
9029  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9030    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9032    break 2
9033  fi
9034done
9035done
9036
9037fi
9038fi
9039STRIP=$ac_cv_prog_STRIP
9040if test -n "$STRIP"; then
9041  echo "$as_me:$LINENO: result: $STRIP" >&5
9042echo "${ECHO_T}$STRIP" >&6
9043else
9044  echo "$as_me:$LINENO: result: no" >&5
9045echo "${ECHO_T}no" >&6
9046fi
9047
9048fi
9049if test -z "$ac_cv_prog_STRIP"; then
9050  ac_ct_STRIP=$STRIP
9051  # Extract the first word of "strip", so it can be a program name with args.
9052set dummy strip; ac_word=$2
9053echo "$as_me:$LINENO: checking for $ac_word" >&5
9054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9055if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9056  echo $ECHO_N "(cached) $ECHO_C" >&6
9057else
9058  if test -n "$ac_ct_STRIP"; then
9059  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9060else
9061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062for as_dir in $PATH
9063do
9064  IFS=$as_save_IFS
9065  test -z "$as_dir" && as_dir=.
9066  for ac_exec_ext in '' $ac_executable_extensions; do
9067  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9068    ac_cv_prog_ac_ct_STRIP="strip"
9069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9070    break 2
9071  fi
9072done
9073done
9074
9075  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9076fi
9077fi
9078ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9079if test -n "$ac_ct_STRIP"; then
9080  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9081echo "${ECHO_T}$ac_ct_STRIP" >&6
9082else
9083  echo "$as_me:$LINENO: result: no" >&5
9084echo "${ECHO_T}no" >&6
9085fi
9086
9087  STRIP=$ac_ct_STRIP
9088else
9089  STRIP="$ac_cv_prog_STRIP"
9090fi
9091
9092
9093old_CC="$CC"
9094old_CFLAGS="$CFLAGS"
9095
9096# Set sane defaults for various variables
9097test -z "$AR" && AR=ar
9098test -z "$AR_FLAGS" && AR_FLAGS=cru
9099test -z "$AS" && AS=as
9100test -z "$CC" && CC=cc
9101test -z "$LTCC" && LTCC=$CC
9102test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9103test -z "$DLLTOOL" && DLLTOOL=dlltool
9104test -z "$LD" && LD=ld
9105test -z "$LN_S" && LN_S="ln -s"
9106test -z "$MAGIC_CMD" && MAGIC_CMD=file
9107test -z "$NM" && NM=nm
9108test -z "$SED" && SED=sed
9109test -z "$OBJDUMP" && OBJDUMP=objdump
9110test -z "$RANLIB" && RANLIB=:
9111test -z "$STRIP" && STRIP=:
9112test -z "$ac_objext" && ac_objext=o
9113
9114# Determine commands to create old-style static archives.
9115old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9116old_postinstall_cmds='chmod 644 $oldlib'
9117old_postuninstall_cmds=
9118
9119if test -n "$RANLIB"; then
9120  case $host_os in
9121  openbsd*)
9122    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9123    ;;
9124  *)
9125    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9126    ;;
9127  esac
9128  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9129fi
9130
9131for cc_temp in $compiler""; do
9132  case $cc_temp in
9133    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9134    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9135    \-*) ;;
9136    *) break;;
9137  esac
9138done
9139cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9140
9141
9142# Only perform the check for file, if the check method requires it
9143case $deplibs_check_method in
9144file_magic*)
9145  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9146    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9147echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9148if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9149  echo $ECHO_N "(cached) $ECHO_C" >&6
9150else
9151  case $MAGIC_CMD in
9152[\\/*] |  ?:[\\/]*)
9153  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9154  ;;
9155*)
9156  lt_save_MAGIC_CMD="$MAGIC_CMD"
9157  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9158  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9159  for ac_dir in $ac_dummy; do
9160    IFS="$lt_save_ifs"
9161    test -z "$ac_dir" && ac_dir=.
9162    if test -f $ac_dir/${ac_tool_prefix}file; then
9163      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9164      if test -n "$file_magic_test_file"; then
9165        case $deplibs_check_method in
9166        "file_magic "*)
9167          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9168          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9169          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9170            $EGREP "$file_magic_regex" > /dev/null; then
9171            :
9172          else
9173            cat <<EOF 1>&2
9174
9175*** Warning: the command libtool uses to detect shared libraries,
9176*** $file_magic_cmd, produces output that libtool cannot recognize.
9177*** The result is that libtool may fail to recognize shared libraries
9178*** as such.  This will affect the creation of libtool libraries that
9179*** depend on shared libraries, but programs linked with such libtool
9180*** libraries will work regardless of this problem.  Nevertheless, you
9181*** may want to report the problem to your system manager and/or to
9182*** bug-libtool@gnu.org
9183
9184EOF
9185          fi ;;
9186        esac
9187      fi
9188      break
9189    fi
9190  done
9191  IFS="$lt_save_ifs"
9192  MAGIC_CMD="$lt_save_MAGIC_CMD"
9193  ;;
9194esac
9195fi
9196
9197MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9198if test -n "$MAGIC_CMD"; then
9199  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9200echo "${ECHO_T}$MAGIC_CMD" >&6
9201else
9202  echo "$as_me:$LINENO: result: no" >&5
9203echo "${ECHO_T}no" >&6
9204fi
9205
9206if test -z "$lt_cv_path_MAGIC_CMD"; then
9207  if test -n "$ac_tool_prefix"; then
9208    echo "$as_me:$LINENO: checking for file" >&5
9209echo $ECHO_N "checking for file... $ECHO_C" >&6
9210if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9211  echo $ECHO_N "(cached) $ECHO_C" >&6
9212else
9213  case $MAGIC_CMD in
9214[\\/*] |  ?:[\\/]*)
9215  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9216  ;;
9217*)
9218  lt_save_MAGIC_CMD="$MAGIC_CMD"
9219  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9220  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9221  for ac_dir in $ac_dummy; do
9222    IFS="$lt_save_ifs"
9223    test -z "$ac_dir" && ac_dir=.
9224    if test -f $ac_dir/file; then
9225      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9226      if test -n "$file_magic_test_file"; then
9227        case $deplibs_check_method in
9228        "file_magic "*)
9229          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9230          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9231          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9232            $EGREP "$file_magic_regex" > /dev/null; then
9233            :
9234          else
9235            cat <<EOF 1>&2
9236
9237*** Warning: the command libtool uses to detect shared libraries,
9238*** $file_magic_cmd, produces output that libtool cannot recognize.
9239*** The result is that libtool may fail to recognize shared libraries
9240*** as such.  This will affect the creation of libtool libraries that
9241*** depend on shared libraries, but programs linked with such libtool
9242*** libraries will work regardless of this problem.  Nevertheless, you
9243*** may want to report the problem to your system manager and/or to
9244*** bug-libtool@gnu.org
9245
9246EOF
9247          fi ;;
9248        esac
9249      fi
9250      break
9251    fi
9252  done
9253  IFS="$lt_save_ifs"
9254  MAGIC_CMD="$lt_save_MAGIC_CMD"
9255  ;;
9256esac
9257fi
9258
9259MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9260if test -n "$MAGIC_CMD"; then
9261  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9262echo "${ECHO_T}$MAGIC_CMD" >&6
9263else
9264  echo "$as_me:$LINENO: result: no" >&5
9265echo "${ECHO_T}no" >&6
9266fi
9267
9268  else
9269    MAGIC_CMD=:
9270  fi
9271fi
9272
9273  fi
9274  ;;
9275esac
9276
9277enable_dlopen=no
9278enable_win32_dll=no
9279
9280# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9281if test "${enable_libtool_lock+set}" = set; then
9282  enableval="$enable_libtool_lock"
9283
9284fi;
9285test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9286
9287
9288# Check whether --with-pic or --without-pic was given.
9289if test "${with_pic+set}" = set; then
9290  withval="$with_pic"
9291  pic_mode="$withval"
9292else
9293  pic_mode=default
9294fi;
9295test -z "$pic_mode" && pic_mode=default
9296
9297# Use C for the default configuration in the libtool script
9298tagname=
9299lt_save_CC="$CC"
9300ac_ext=c
9301ac_cpp='$CPP $CPPFLAGS'
9302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9304ac_compiler_gnu=$ac_cv_c_compiler_gnu
9305
9306
9307# Source file extension for C test sources.
9308ac_ext=c
9309
9310# Object file extension for compiled C test sources.
9311objext=o
9312objext=$objext
9313
9314# Code to be used in simple compile tests
9315lt_simple_compile_test_code="int some_variable = 0;\n"
9316
9317# Code to be used in simple link tests
9318lt_simple_link_test_code='int main(){return(0);}\n'
9319
9320
9321# If no C compiler was specified, use CC.
9322LTCC=${LTCC-"$CC"}
9323
9324# If no C compiler flags were specified, use CFLAGS.
9325LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9326
9327# Allow CC to be a program name with arguments.
9328compiler=$CC
9329
9330
9331# save warnings/boilerplate of simple test code
9332ac_outfile=conftest.$ac_objext
9333printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9334eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9335_lt_compiler_boilerplate=`cat conftest.err`
9336$rm conftest*
9337
9338ac_outfile=conftest.$ac_objext
9339printf "$lt_simple_link_test_code" >conftest.$ac_ext
9340eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9341_lt_linker_boilerplate=`cat conftest.err`
9342$rm conftest*
9343
9344
9345## CAVEAT EMPTOR:
9346## There is no encapsulation within the following macros, do not change
9347## the running order or otherwise move them around unless you know exactly
9348## what you are doing...
9349
9350lt_prog_compiler_no_builtin_flag=
9351
9352if test "$GCC" = yes; then
9353  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9354
9355
9356echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9357echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9358if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9359  echo $ECHO_N "(cached) $ECHO_C" >&6
9360else
9361  lt_cv_prog_compiler_rtti_exceptions=no
9362  ac_outfile=conftest.$ac_objext
9363   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9364   lt_compiler_flag="-fno-rtti -fno-exceptions"
9365   # Insert the option either (1) after the last *FLAGS variable, or
9366   # (2) before a word containing "conftest.", or (3) at the end.
9367   # Note that $ac_compile itself does not contain backslashes and begins
9368   # with a dollar sign (not a hyphen), so the echo should work correctly.
9369   # The option is referenced via a variable to avoid confusing sed.
9370   lt_compile=`echo "$ac_compile" | $SED \
9371   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9372   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9373   -e 's:$: $lt_compiler_flag:'`
9374   (eval echo "\"\$as_me:9374: $lt_compile\"" >&5)
9375   (eval "$lt_compile" 2>conftest.err)
9376   ac_status=$?
9377   cat conftest.err >&5
9378   echo "$as_me:9378: \$? = $ac_status" >&5
9379   if (exit $ac_status) && test -s "$ac_outfile"; then
9380     # The compiler can only warn and ignore the option if not recognized
9381     # So say no if there are warnings other than the usual output.
9382     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9383     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9384     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9385       lt_cv_prog_compiler_rtti_exceptions=yes
9386     fi
9387   fi
9388   $rm conftest*
9389
9390fi
9391echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9392echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9393
9394if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9395    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9396else
9397    :
9398fi
9399
9400fi
9401
9402lt_prog_compiler_wl=
9403lt_prog_compiler_pic=
9404lt_prog_compiler_static=
9405
9406echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9407echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9408
9409  if test "$GCC" = yes; then
9410    lt_prog_compiler_wl='-Wl,'
9411    lt_prog_compiler_static='-static'
9412
9413    case $host_os in
9414      aix*)
9415      # All AIX code is PIC.
9416      if test "$host_cpu" = ia64; then
9417        # AIX 5 now supports IA64 processor
9418        lt_prog_compiler_static='-Bstatic'
9419      fi
9420      ;;
9421
9422    amigaos*)
9423      # FIXME: we need at least 68020 code to build shared libraries, but
9424      # adding the `-m68020' flag to GCC prevents building anything better,
9425      # like `-m68040'.
9426      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9427      ;;
9428
9429    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9430      # PIC is the default for these OSes.
9431      ;;
9432
9433    mingw* | pw32* | os2*)
9434      # This hack is so that the source file can tell whether it is being
9435      # built for inclusion in a dll (and should export symbols for example).
9436      lt_prog_compiler_pic='-DDLL_EXPORT'
9437      ;;
9438
9439    darwin* | rhapsody*)
9440      # PIC is the default on this platform
9441      # Common symbols not allowed in MH_DYLIB files
9442      lt_prog_compiler_pic='-fno-common'
9443      ;;
9444
9445    interix3*)
9446      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9447      # Instead, we relocate shared libraries at runtime.
9448      ;;
9449
9450    msdosdjgpp*)
9451      # Just because we use GCC doesn't mean we suddenly get shared libraries
9452      # on systems that don't support them.
9453      lt_prog_compiler_can_build_shared=no
9454      enable_shared=no
9455      ;;
9456
9457    sysv4*MP*)
9458      if test -d /usr/nec; then
9459        lt_prog_compiler_pic=-Kconform_pic
9460      fi
9461      ;;
9462
9463    hpux*)
9464      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9465      # not for PA HP-UX.
9466      case $host_cpu in
9467      hppa*64*|ia64*)
9468        # +Z the default
9469        ;;
9470      *)
9471        lt_prog_compiler_pic='-fPIC'
9472        ;;
9473      esac
9474      ;;
9475
9476    *)
9477      lt_prog_compiler_pic='-fPIC'
9478      ;;
9479    esac
9480  else
9481    # PORTME Check for flag to pass linker flags through the system compiler.
9482    case $host_os in
9483    aix*)
9484      lt_prog_compiler_wl='-Wl,'
9485      if test "$host_cpu" = ia64; then
9486        # AIX 5 now supports IA64 processor
9487        lt_prog_compiler_static='-Bstatic'
9488      else
9489        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9490      fi
9491      ;;
9492      darwin*)
9493        # PIC is the default on this platform
9494        # Common symbols not allowed in MH_DYLIB files
9495       case $cc_basename in
9496         xlc*)
9497         lt_prog_compiler_pic='-qnocommon'
9498         lt_prog_compiler_wl='-Wl,'
9499         ;;
9500       esac
9501       ;;
9502
9503    mingw* | pw32* | os2*)
9504      # This hack is so that the source file can tell whether it is being
9505      # built for inclusion in a dll (and should export symbols for example).
9506      lt_prog_compiler_pic='-DDLL_EXPORT'
9507      ;;
9508
9509    hpux9* | hpux10* | hpux11*)
9510      lt_prog_compiler_wl='-Wl,'
9511      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9512      # not for PA HP-UX.
9513      case $host_cpu in
9514      hppa*64*|ia64*)
9515        # +Z the default
9516        ;;
9517      *)
9518        lt_prog_compiler_pic='+Z'
9519        ;;
9520      esac
9521      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9522      lt_prog_compiler_static='${wl}-a ${wl}archive'
9523      ;;
9524
9525    irix5* | irix6* | nonstopux*)
9526      lt_prog_compiler_wl='-Wl,'
9527      # PIC (with -KPIC) is the default.
9528      lt_prog_compiler_static='-non_shared'
9529      ;;
9530
9531    newsos6)
9532      lt_prog_compiler_pic='-KPIC'
9533      lt_prog_compiler_static='-Bstatic'
9534      ;;
9535
9536    linux*)
9537      case $cc_basename in
9538      icc* | ecc*)
9539        lt_prog_compiler_wl='-Wl,'
9540        lt_prog_compiler_pic='-KPIC'
9541        lt_prog_compiler_static='-static'
9542        ;;
9543      pgcc* | pgf77* | pgf90* | pgf95*)
9544        # Portland Group compilers (*not* the Pentium gcc compiler,
9545        # which looks to be a dead project)
9546        lt_prog_compiler_wl='-Wl,'
9547        lt_prog_compiler_pic='-fpic'
9548        lt_prog_compiler_static='-Bstatic'
9549        ;;
9550      ccc*)
9551        lt_prog_compiler_wl='-Wl,'
9552        # All Alpha code is PIC.
9553        lt_prog_compiler_static='-non_shared'
9554        ;;
9555      esac
9556      ;;
9557
9558    osf3* | osf4* | osf5*)
9559      lt_prog_compiler_wl='-Wl,'
9560      # All OSF/1 code is PIC.
9561      lt_prog_compiler_static='-non_shared'
9562      ;;
9563
9564    solaris*)
9565      lt_prog_compiler_pic='-KPIC'
9566      lt_prog_compiler_static='-Bstatic'
9567      case $cc_basename in
9568      f77* | f90* | f95*)
9569        lt_prog_compiler_wl='-Qoption ld ';;
9570      *)
9571        lt_prog_compiler_wl='-Wl,';;
9572      esac
9573      ;;
9574
9575    sunos4*)
9576      lt_prog_compiler_wl='-Qoption ld '
9577      lt_prog_compiler_pic='-PIC'
9578      lt_prog_compiler_static='-Bstatic'
9579      ;;
9580
9581    sysv4 | sysv4.2uw2* | sysv4.3*)
9582      lt_prog_compiler_wl='-Wl,'
9583      lt_prog_compiler_pic='-KPIC'
9584      lt_prog_compiler_static='-Bstatic'
9585      ;;
9586
9587    sysv4*MP*)
9588      if test -d /usr/nec ;then
9589        lt_prog_compiler_pic='-Kconform_pic'
9590        lt_prog_compiler_static='-Bstatic'
9591      fi
9592      ;;
9593
9594    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9595      lt_prog_compiler_wl='-Wl,'
9596      lt_prog_compiler_pic='-KPIC'
9597      lt_prog_compiler_static='-Bstatic'
9598      ;;
9599
9600    unicos*)
9601      lt_prog_compiler_wl='-Wl,'
9602      lt_prog_compiler_can_build_shared=no
9603      ;;
9604
9605    uts4*)
9606      lt_prog_compiler_pic='-pic'
9607      lt_prog_compiler_static='-Bstatic'
9608      ;;
9609
9610    *)
9611      lt_prog_compiler_can_build_shared=no
9612      ;;
9613    esac
9614  fi
9615
9616echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9617echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9618
9619#
9620# Check to make sure the PIC flag actually works.
9621#
9622if test -n "$lt_prog_compiler_pic"; then
9623
9624echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9625echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9626if test "${lt_prog_compiler_pic_works+set}" = set; then
9627  echo $ECHO_N "(cached) $ECHO_C" >&6
9628else
9629  lt_prog_compiler_pic_works=no
9630  ac_outfile=conftest.$ac_objext
9631   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9632   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9633   # Insert the option either (1) after the last *FLAGS variable, or
9634   # (2) before a word containing "conftest.", or (3) at the end.
9635   # Note that $ac_compile itself does not contain backslashes and begins
9636   # with a dollar sign (not a hyphen), so the echo should work correctly.
9637   # The option is referenced via a variable to avoid confusing sed.
9638   lt_compile=`echo "$ac_compile" | $SED \
9639   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9640   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9641   -e 's:$: $lt_compiler_flag:'`
9642   (eval echo "\"\$as_me:9642: $lt_compile\"" >&5)
9643   (eval "$lt_compile" 2>conftest.err)
9644   ac_status=$?
9645   cat conftest.err >&5
9646   echo "$as_me:9646: \$? = $ac_status" >&5
9647   if (exit $ac_status) && test -s "$ac_outfile"; then
9648     # The compiler can only warn and ignore the option if not recognized
9649     # So say no if there are warnings other than the usual output.
9650     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9651     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9652     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9653       lt_prog_compiler_pic_works=yes
9654     fi
9655   fi
9656   $rm conftest*
9657
9658fi
9659echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9660echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9661
9662if test x"$lt_prog_compiler_pic_works" = xyes; then
9663    case $lt_prog_compiler_pic in
9664     "" | " "*) ;;
9665     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9666     esac
9667else
9668    lt_prog_compiler_pic=
9669     lt_prog_compiler_can_build_shared=no
9670fi
9671
9672fi
9673case $host_os in
9674  # For platforms which do not support PIC, -DPIC is meaningless:
9675  *djgpp*)
9676    lt_prog_compiler_pic=
9677    ;;
9678  *)
9679    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9680    ;;
9681esac
9682
9683#
9684# Check to make sure the static flag actually works.
9685#
9686wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9687echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9688echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9689if test "${lt_prog_compiler_static_works+set}" = set; then
9690  echo $ECHO_N "(cached) $ECHO_C" >&6
9691else
9692  lt_prog_compiler_static_works=no
9693   save_LDFLAGS="$LDFLAGS"
9694   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9695   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9696   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9697     # The linker can only warn and ignore the option if not recognized
9698     # So say no if there are warnings
9699     if test -s conftest.err; then
9700       # Append any errors to the config.log.
9701       cat conftest.err 1>&5
9702       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9703       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9704       if diff conftest.exp conftest.er2 >/dev/null; then
9705         lt_prog_compiler_static_works=yes
9706       fi
9707     else
9708       lt_prog_compiler_static_works=yes
9709     fi
9710   fi
9711   $rm conftest*
9712   LDFLAGS="$save_LDFLAGS"
9713
9714fi
9715echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9716echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9717
9718if test x"$lt_prog_compiler_static_works" = xyes; then
9719    :
9720else
9721    lt_prog_compiler_static=
9722fi
9723
9724
9725echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9726echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9727if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9728  echo $ECHO_N "(cached) $ECHO_C" >&6
9729else
9730  lt_cv_prog_compiler_c_o=no
9731   $rm -r conftest 2>/dev/null
9732   mkdir conftest
9733   cd conftest
9734   mkdir out
9735   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9736
9737   lt_compiler_flag="-o out/conftest2.$ac_objext"
9738   # Insert the option either (1) after the last *FLAGS variable, or
9739   # (2) before a word containing "conftest.", or (3) at the end.
9740   # Note that $ac_compile itself does not contain backslashes and begins
9741   # with a dollar sign (not a hyphen), so the echo should work correctly.
9742   lt_compile=`echo "$ac_compile" | $SED \
9743   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9744   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9745   -e 's:$: $lt_compiler_flag:'`
9746   (eval echo "\"\$as_me:9746: $lt_compile\"" >&5)
9747   (eval "$lt_compile" 2>out/conftest.err)
9748   ac_status=$?
9749   cat out/conftest.err >&5
9750   echo "$as_me:9750: \$? = $ac_status" >&5
9751   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9752   then
9753     # The compiler can only warn and ignore the option if not recognized
9754     # So say no if there are warnings
9755     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9756     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9757     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9758       lt_cv_prog_compiler_c_o=yes
9759     fi
9760   fi
9761   chmod u+w . 2>&5
9762   $rm conftest*
9763   # SGI C++ compiler will create directory out/ii_files/ for
9764   # template instantiation
9765   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9766   $rm out/* && rmdir out
9767   cd ..
9768   rmdir conftest
9769   $rm conftest*
9770
9771fi
9772echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9773echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9774
9775
9776hard_links="nottested"
9777if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9778  # do not overwrite the value of need_locks provided by the user
9779  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9780echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9781  hard_links=yes
9782  $rm conftest*
9783  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9784  touch conftest.a
9785  ln conftest.a conftest.b 2>&5 || hard_links=no
9786  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9787  echo "$as_me:$LINENO: result: $hard_links" >&5
9788echo "${ECHO_T}$hard_links" >&6
9789  if test "$hard_links" = no; then
9790    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9791echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9792    need_locks=warn
9793  fi
9794else
9795  need_locks=no
9796fi
9797
9798echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9799echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9800
9801  runpath_var=
9802  allow_undefined_flag=
9803  enable_shared_with_static_runtimes=no
9804  archive_cmds=
9805  archive_expsym_cmds=
9806  old_archive_From_new_cmds=
9807  old_archive_from_expsyms_cmds=
9808  export_dynamic_flag_spec=
9809  whole_archive_flag_spec=
9810  thread_safe_flag_spec=
9811  hardcode_libdir_flag_spec=
9812  hardcode_libdir_flag_spec_ld=
9813  hardcode_libdir_separator=
9814  hardcode_direct=no
9815  hardcode_minus_L=no
9816  hardcode_shlibpath_var=unsupported
9817  link_all_deplibs=unknown
9818  hardcode_automatic=no
9819  module_cmds=
9820  module_expsym_cmds=
9821  always_export_symbols=no
9822  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9823  # include_expsyms should be a list of space-separated symbols to be *always*
9824  # included in the symbol list
9825  include_expsyms=
9826  # exclude_expsyms can be an extended regexp of symbols to exclude
9827  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9828  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9829  # as well as any symbol that contains `d'.
9830  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9831  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9832  # platforms (ab)use it in PIC code, but their linkers get confused if
9833  # the symbol is explicitly referenced.  Since portable code cannot
9834  # rely on this symbol name, it's probably fine to never include it in
9835  # preloaded symbol tables.
9836  extract_expsyms_cmds=
9837  # Just being paranoid about ensuring that cc_basename is set.
9838  for cc_temp in $compiler""; do
9839  case $cc_temp in
9840    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9841    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9842    \-*) ;;
9843    *) break;;
9844  esac
9845done
9846cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9847
9848  case $host_os in
9849  cygwin* | mingw* | pw32*)
9850    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9851    # When not using gcc, we currently assume that we are using
9852    # Microsoft Visual C++.
9853    if test "$GCC" != yes; then
9854      with_gnu_ld=no
9855    fi
9856    ;;
9857  interix*)
9858    # we just hope/assume this is gcc and not c89 (= MSVC++)
9859    with_gnu_ld=yes
9860    ;;
9861  openbsd*)
9862    with_gnu_ld=no
9863    ;;
9864  esac
9865
9866  ld_shlibs=yes
9867  if test "$with_gnu_ld" = yes; then
9868    # If archive_cmds runs LD, not CC, wlarc should be empty
9869    wlarc='${wl}'
9870
9871    # Set some defaults for GNU ld with shared library support. These
9872    # are reset later if shared libraries are not supported. Putting them
9873    # here allows them to be overridden if necessary.
9874    runpath_var=LD_RUN_PATH
9875    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9876    export_dynamic_flag_spec='${wl}--export-dynamic'
9877    # ancient GNU ld didn't support --whole-archive et. al.
9878    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9879        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9880      else
9881        whole_archive_flag_spec=
9882    fi
9883    supports_anon_versioning=no
9884    case `$LD -v 2>/dev/null` in
9885      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9886      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9887      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9888      *\ 2.11.*) ;; # other 2.11 versions
9889      *) supports_anon_versioning=yes ;;
9890    esac
9891
9892    # See if GNU ld supports shared libraries.
9893    case $host_os in
9894    aix3* | aix4* | aix5*)
9895      # On AIX/PPC, the GNU linker is very broken
9896      if test "$host_cpu" != ia64; then
9897        ld_shlibs=no
9898        cat <<EOF 1>&2
9899
9900*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9901*** to be unable to reliably create shared libraries on AIX.
9902*** Therefore, libtool is disabling shared libraries support.  If you
9903*** really care for shared libraries, you may want to modify your PATH
9904*** so that a non-GNU linker is found, and then restart.
9905
9906EOF
9907      fi
9908      ;;
9909
9910    amigaos*)
9911      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)'
9912      hardcode_libdir_flag_spec='-L$libdir'
9913      hardcode_minus_L=yes
9914
9915      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9916      # that the semantics of dynamic libraries on AmigaOS, at least up
9917      # to version 4, is to share data among multiple programs linked
9918      # with the same dynamic library.  Since this doesn't match the
9919      # behavior of shared libraries on other platforms, we can't use
9920      # them.
9921      ld_shlibs=no
9922      ;;
9923
9924    beos*)
9925      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9926        allow_undefined_flag=unsupported
9927        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9928        # support --undefined.  This deserves some investigation.  FIXME
9929        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9930      else
9931        ld_shlibs=no
9932      fi
9933      ;;
9934
9935    cygwin* | mingw* | pw32*)
9936      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9937      # as there is no search path for DLLs.
9938      hardcode_libdir_flag_spec='-L$libdir'
9939      allow_undefined_flag=unsupported
9940      always_export_symbols=no
9941      enable_shared_with_static_runtimes=yes
9942      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9943
9944      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9945        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9946        # If the export-symbols file already is a .def file (1st line
9947        # is EXPORTS), use it as is; otherwise, prepend...
9948        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9949          cp $export_symbols $output_objdir/$soname.def;
9950        else
9951          echo EXPORTS > $output_objdir/$soname.def;
9952          cat $export_symbols >> $output_objdir/$soname.def;
9953        fi~
9954        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9955      else
9956        ld_shlibs=no
9957      fi
9958      ;;
9959
9960    interix3*)
9961      hardcode_direct=no
9962      hardcode_shlibpath_var=no
9963      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9964      export_dynamic_flag_spec='${wl}-E'
9965      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9966      # Instead, shared libraries are loaded at an image base (0x10000000 by
9967      # default) and relocated if they conflict, which is a slow very memory
9968      # consuming and fragmenting process.  To avoid this, we pick a random,
9969      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9970      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9971      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9972      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'
9973      ;;
9974
9975    linux*)
9976      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9977        tmp_addflag=
9978        case $cc_basename,$host_cpu in
9979        pgcc*)                          # Portland Group C compiler
9980          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'
9981          tmp_addflag=' $pic_flag'
9982          ;;
9983        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9984          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'
9985          tmp_addflag=' $pic_flag -Mnomain' ;;
9986        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9987          tmp_addflag=' -i_dynamic' ;;
9988        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9989          tmp_addflag=' -i_dynamic -nofor_main' ;;
9990        ifc* | ifort*)                  # Intel Fortran compiler
9991          tmp_addflag=' -nofor_main' ;;
9992        esac
9993        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9994
9995        if test $supports_anon_versioning = yes; then
9996          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9997  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9998  $echo "local: *; };" >> $output_objdir/$libname.ver~
9999          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10000        fi
10001      else
10002        ld_shlibs=no
10003      fi
10004      ;;
10005
10006    netbsd*)
10007      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10008        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10009        wlarc=
10010      else
10011        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10012        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10013      fi
10014      ;;
10015
10016    solaris*)
10017      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10018        ld_shlibs=no
10019        cat <<EOF 1>&2
10020
10021*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10022*** create shared libraries on Solaris systems.  Therefore, libtool
10023*** is disabling shared libraries support.  We urge you to upgrade GNU
10024*** binutils to release 2.9.1 or newer.  Another option is to modify
10025*** your PATH or compiler configuration so that the native linker is
10026*** used, and then restart.
10027
10028EOF
10029      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10030        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10031        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10032      else
10033        ld_shlibs=no
10034      fi
10035      ;;
10036
10037    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10038      case `$LD -v 2>&1` in
10039        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10040        ld_shlibs=no
10041        cat <<_LT_EOF 1>&2
10042
10043*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10044*** reliably create shared libraries on SCO systems.  Therefore, libtool
10045*** is disabling shared libraries support.  We urge you to upgrade GNU
10046*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10047*** your PATH or compiler configuration so that the native linker is
10048*** used, and then restart.
10049
10050_LT_EOF
10051        ;;
10052        *)
10053          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10054            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10055            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10056            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10057          else
10058            ld_shlibs=no
10059          fi
10060        ;;
10061      esac
10062      ;;
10063
10064    sunos4*)
10065      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10066      wlarc=
10067      hardcode_direct=yes
10068      hardcode_shlibpath_var=no
10069      ;;
10070
10071    *)
10072      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10073        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10074        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10075      else
10076        ld_shlibs=no
10077      fi
10078      ;;
10079    esac
10080
10081    if test "$ld_shlibs" = no; then
10082      runpath_var=
10083      hardcode_libdir_flag_spec=
10084      export_dynamic_flag_spec=
10085      whole_archive_flag_spec=
10086    fi
10087  else
10088    # PORTME fill in a description of your system's linker (not GNU ld)
10089    case $host_os in
10090    aix3*)
10091      allow_undefined_flag=unsupported
10092      always_export_symbols=yes
10093      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'
10094      # Note: this linker hardcodes the directories in LIBPATH if there
10095      # are no directories specified by -L.
10096      hardcode_minus_L=yes
10097      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10098        # Neither direct hardcoding nor static linking is supported with a
10099        # broken collect2.
10100        hardcode_direct=unsupported
10101      fi
10102      ;;
10103
10104    aix4* | aix5*)
10105      if test "$host_cpu" = ia64; then
10106        # On IA64, the linker does run time linking by default, so we don't
10107        # have to do anything special.
10108        aix_use_runtimelinking=no
10109        exp_sym_flag='-Bexport'
10110        no_entry_flag=""
10111      else
10112        # If we're using GNU nm, then we don't want the "-C" option.
10113        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10114        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10115          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'
10116        else
10117          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'
10118        fi
10119        aix_use_runtimelinking=no
10120
10121        # Test if we are trying to use run time linking or normal
10122        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10123        # need to do runtime linking.
10124        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10125          for ld_flag in $LDFLAGS; do
10126          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10127            aix_use_runtimelinking=yes
10128            break
10129          fi
10130          done
10131          ;;
10132        esac
10133
10134        exp_sym_flag='-bexport'
10135        no_entry_flag='-bnoentry'
10136      fi
10137
10138      # When large executables or shared objects are built, AIX ld can
10139      # have problems creating the table of contents.  If linking a library
10140      # or program results in "error TOC overflow" add -mminimal-toc to
10141      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10142      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10143
10144      archive_cmds=''
10145      hardcode_direct=yes
10146      hardcode_libdir_separator=':'
10147      link_all_deplibs=yes
10148
10149      if test "$GCC" = yes; then
10150        case $host_os in aix4.[012]|aix4.[012].*)
10151        # We only want to do this on AIX 4.2 and lower, the check
10152        # below for broken collect2 doesn't work under 4.3+
10153          collect2name=`${CC} -print-prog-name=collect2`
10154          if test -f "$collect2name" && \
10155           strings "$collect2name" | grep resolve_lib_name >/dev/null
10156          then
10157          # We have reworked collect2
10158          hardcode_direct=yes
10159          else
10160          # We have old collect2
10161          hardcode_direct=unsupported
10162          # It fails to find uninstalled libraries when the uninstalled
10163          # path is not listed in the libpath.  Setting hardcode_minus_L
10164          # to unsupported forces relinking
10165          hardcode_minus_L=yes
10166          hardcode_libdir_flag_spec='-L$libdir'
10167          hardcode_libdir_separator=
10168          fi
10169          ;;
10170        esac
10171        shared_flag='-shared'
10172        if test "$aix_use_runtimelinking" = yes; then
10173          shared_flag="$shared_flag "'${wl}-G'
10174        fi
10175      else
10176        # not using gcc
10177        if test "$host_cpu" = ia64; then
10178        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10179        # chokes on -Wl,-G. The following line is correct:
10180          shared_flag='-G'
10181        else
10182          if test "$aix_use_runtimelinking" = yes; then
10183            shared_flag='${wl}-G'
10184          else
10185            shared_flag='${wl}-bM:SRE'
10186          fi
10187        fi
10188      fi
10189
10190      # It seems that -bexpall does not export symbols beginning with
10191      # underscore (_), so it is better to generate a list of symbols to export.
10192      always_export_symbols=yes
10193      if test "$aix_use_runtimelinking" = yes; then
10194        # Warning - without using the other runtime loading flags (-brtl),
10195        # -berok will link without error, but may produce a broken library.
10196        allow_undefined_flag='-berok'
10197       # Determine the default libpath from the value encoded in an empty executable.
10198       cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h.  */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h.  */
10204
10205#ifdef F77_DUMMY_MAIN
10206
10207#  ifdef __cplusplus
10208     extern "C"
10209#  endif
10210   int F77_DUMMY_MAIN() { return 1; }
10211
10212#endif
10213int
10214main ()
10215{
10216
10217  ;
10218  return 0;
10219}
10220_ACEOF
10221rm -f conftest.$ac_objext conftest$ac_exeext
10222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10223  (eval $ac_link) 2>conftest.er1
10224  ac_status=$?
10225  grep -v '^ *+' conftest.er1 >conftest.err
10226  rm -f conftest.er1
10227  cat conftest.err >&5
10228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229  (exit $ac_status); } &&
10230         { ac_try='test -z "$ac_c_werror_flag"
10231                         || test ! -s conftest.err'
10232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233  (eval $ac_try) 2>&5
10234  ac_status=$?
10235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236  (exit $ac_status); }; } &&
10237         { ac_try='test -s conftest$ac_exeext'
10238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239  (eval $ac_try) 2>&5
10240  ac_status=$?
10241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242  (exit $ac_status); }; }; then
10243
10244aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10245}'`
10246# Check for a 64-bit object if we didn't find anything.
10247if 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; }
10248}'`; fi
10249else
10250  echo "$as_me: failed program was:" >&5
10251sed 's/^/| /' conftest.$ac_ext >&5
10252
10253fi
10254rm -f conftest.err conftest.$ac_objext \
10255      conftest$ac_exeext conftest.$ac_ext
10256if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10257
10258       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10259        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"
10260       else
10261        if test "$host_cpu" = ia64; then
10262          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10263          allow_undefined_flag="-z nodefs"
10264          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"
10265        else
10266         # Determine the default libpath from the value encoded in an empty executable.
10267         cat >conftest.$ac_ext <<_ACEOF
10268/* confdefs.h.  */
10269_ACEOF
10270cat confdefs.h >>conftest.$ac_ext
10271cat >>conftest.$ac_ext <<_ACEOF
10272/* end confdefs.h.  */
10273
10274#ifdef F77_DUMMY_MAIN
10275
10276#  ifdef __cplusplus
10277     extern "C"
10278#  endif
10279   int F77_DUMMY_MAIN() { return 1; }
10280
10281#endif
10282int
10283main ()
10284{
10285
10286  ;
10287  return 0;
10288}
10289_ACEOF
10290rm -f conftest.$ac_objext conftest$ac_exeext
10291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10292  (eval $ac_link) 2>conftest.er1
10293  ac_status=$?
10294  grep -v '^ *+' conftest.er1 >conftest.err
10295  rm -f conftest.er1
10296  cat conftest.err >&5
10297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298  (exit $ac_status); } &&
10299         { ac_try='test -z "$ac_c_werror_flag"
10300                         || test ! -s conftest.err'
10301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302  (eval $ac_try) 2>&5
10303  ac_status=$?
10304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305  (exit $ac_status); }; } &&
10306         { ac_try='test -s conftest$ac_exeext'
10307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308  (eval $ac_try) 2>&5
10309  ac_status=$?
10310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311  (exit $ac_status); }; }; then
10312
10313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10314}'`
10315# Check for a 64-bit object if we didn't find anything.
10316if 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; }
10317}'`; fi
10318else
10319  echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322fi
10323rm -f conftest.err conftest.$ac_objext \
10324      conftest$ac_exeext conftest.$ac_ext
10325if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10326
10327         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10328          # Warning - without using the other run time loading flags,
10329          # -berok will link without error, but may produce a broken library.
10330          no_undefined_flag=' ${wl}-bernotok'
10331          allow_undefined_flag=' ${wl}-berok'
10332          # Exported symbols can be pulled into shared objects from archives
10333          whole_archive_flag_spec='$convenience'
10334          archive_cmds_need_lc=yes
10335          # This is similar to how AIX traditionally builds its shared libraries.
10336          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'
10337        fi
10338      fi
10339      ;;
10340
10341    amigaos*)
10342      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)'
10343      hardcode_libdir_flag_spec='-L$libdir'
10344      hardcode_minus_L=yes
10345      # see comment about different semantics on the GNU ld section
10346      ld_shlibs=no
10347      ;;
10348
10349    bsdi[45]*)
10350      export_dynamic_flag_spec=-rdynamic
10351      ;;
10352
10353    cygwin* | mingw* | pw32*)
10354      # When not using gcc, we currently assume that we are using
10355      # Microsoft Visual C++.
10356      # hardcode_libdir_flag_spec is actually meaningless, as there is
10357      # no search path for DLLs.
10358      hardcode_libdir_flag_spec=' '
10359      allow_undefined_flag=unsupported
10360      # Tell ltmain to make .lib files, not .a files.
10361      libext=lib
10362      # Tell ltmain to make .dll files, not .so files.
10363      shrext_cmds=".dll"
10364      # FIXME: Setting linknames here is a bad hack.
10365      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10366      # The linker will automatically build a .lib file if we build a DLL.
10367      old_archive_From_new_cmds='true'
10368      # FIXME: Should let the user specify the lib program.
10369      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10370      fix_srcfile_path='`cygpath -w "$srcfile"`'
10371      enable_shared_with_static_runtimes=yes
10372      ;;
10373
10374    darwin* | rhapsody*)
10375      case $host_os in
10376        rhapsody* | darwin1.[012])
10377         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10378         ;;
10379       *) # Darwin 1.3 on
10380         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10381           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10382         else
10383           case ${MACOSX_DEPLOYMENT_TARGET} in
10384             10.[012])
10385               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10386               ;;
10387             10.*)
10388               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10389               ;;
10390           esac
10391         fi
10392         ;;
10393      esac
10394      archive_cmds_need_lc=no
10395      hardcode_direct=no
10396      hardcode_automatic=yes
10397      hardcode_shlibpath_var=unsupported
10398      whole_archive_flag_spec=''
10399      link_all_deplibs=yes
10400    if test "$GCC" = yes ; then
10401        output_verbose_link_cmd='echo'
10402        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10403      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10404      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10405      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}'
10406      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}'
10407    else
10408      case $cc_basename in
10409        xlc*)
10410         output_verbose_link_cmd='echo'
10411         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10412         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10413          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10414         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}'
10415          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}'
10416          ;;
10417       *)
10418         ld_shlibs=no
10419          ;;
10420      esac
10421    fi
10422      ;;
10423
10424    dgux*)
10425      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10426      hardcode_libdir_flag_spec='-L$libdir'
10427      hardcode_shlibpath_var=no
10428      ;;
10429
10430    freebsd1*)
10431      ld_shlibs=no
10432      ;;
10433
10434    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10435    # support.  Future versions do this automatically, but an explicit c++rt0.o
10436    # does not break anything, and helps significantly (at the cost of a little
10437    # extra space).
10438    freebsd2.2*)
10439      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10440      hardcode_libdir_flag_spec='-R$libdir'
10441      hardcode_direct=yes
10442      hardcode_shlibpath_var=no
10443      ;;
10444
10445    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10446    freebsd2*)
10447      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10448      hardcode_direct=yes
10449      hardcode_minus_L=yes
10450      hardcode_shlibpath_var=no
10451      ;;
10452
10453    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10454    freebsd* | kfreebsd*-gnu | dragonfly*)
10455      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10456      hardcode_libdir_flag_spec='-R$libdir'
10457      hardcode_direct=yes
10458      hardcode_shlibpath_var=no
10459      ;;
10460
10461    hpux9*)
10462      if test "$GCC" = yes; then
10463        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'
10464      else
10465        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'
10466      fi
10467      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10468      hardcode_libdir_separator=:
10469      hardcode_direct=yes
10470
10471      # hardcode_minus_L: Not really in the search PATH,
10472      # but as the default location of the library.
10473      hardcode_minus_L=yes
10474      export_dynamic_flag_spec='${wl}-E'
10475      ;;
10476
10477    hpux10*)
10478      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10479        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10480      else
10481        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10482      fi
10483      if test "$with_gnu_ld" = no; then
10484        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10485        hardcode_libdir_separator=:
10486
10487        hardcode_direct=yes
10488        export_dynamic_flag_spec='${wl}-E'
10489
10490        # hardcode_minus_L: Not really in the search PATH,
10491        # but as the default location of the library.
10492        hardcode_minus_L=yes
10493      fi
10494      ;;
10495
10496    hpux11*)
10497      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10498        case $host_cpu in
10499        hppa*64*)
10500          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10501          ;;
10502        ia64*)
10503          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10504          ;;
10505        *)
10506          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10507          ;;
10508        esac
10509      else
10510        case $host_cpu in
10511        hppa*64*)
10512          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10513          ;;
10514        ia64*)
10515          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10516          ;;
10517        *)
10518          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10519          ;;
10520        esac
10521      fi
10522      if test "$with_gnu_ld" = no; then
10523        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10524        hardcode_libdir_separator=:
10525
10526        case $host_cpu in
10527        hppa*64*|ia64*)
10528          hardcode_libdir_flag_spec_ld='+b $libdir'
10529          hardcode_direct=no
10530          hardcode_shlibpath_var=no
10531          ;;
10532        *)
10533          hardcode_direct=yes
10534          export_dynamic_flag_spec='${wl}-E'
10535
10536          # hardcode_minus_L: Not really in the search PATH,
10537          # but as the default location of the library.
10538          hardcode_minus_L=yes
10539          ;;
10540        esac
10541      fi
10542      ;;
10543
10544    irix5* | irix6* | nonstopux*)
10545      if test "$GCC" = yes; then
10546        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'
10547      else
10548        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'
10549        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10550      fi
10551      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10552      hardcode_libdir_separator=:
10553      link_all_deplibs=yes
10554      ;;
10555
10556    netbsd*)
10557      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10558        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10559      else
10560        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10561      fi
10562      hardcode_libdir_flag_spec='-R$libdir'
10563      hardcode_direct=yes
10564      hardcode_shlibpath_var=no
10565      ;;
10566
10567    newsos6)
10568      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569      hardcode_direct=yes
10570      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10571      hardcode_libdir_separator=:
10572      hardcode_shlibpath_var=no
10573      ;;
10574
10575    openbsd*)
10576      hardcode_direct=yes
10577      hardcode_shlibpath_var=no
10578      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10579        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10580        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10581        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10582        export_dynamic_flag_spec='${wl}-E'
10583      else
10584       case $host_os in
10585         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10586           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10587           hardcode_libdir_flag_spec='-R$libdir'
10588           ;;
10589         *)
10590           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10591           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10592           ;;
10593       esac
10594      fi
10595      ;;
10596
10597    os2*)
10598      hardcode_libdir_flag_spec='-L$libdir'
10599      hardcode_minus_L=yes
10600      allow_undefined_flag=unsupported
10601      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'
10602      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10603      ;;
10604
10605    osf3*)
10606      if test "$GCC" = yes; then
10607        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10608        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'
10609      else
10610        allow_undefined_flag=' -expect_unresolved \*'
10611        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'
10612      fi
10613      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10614      hardcode_libdir_separator=:
10615      ;;
10616
10617    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10618      if test "$GCC" = yes; then
10619        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10620        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'
10621        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10622      else
10623        allow_undefined_flag=' -expect_unresolved \*'
10624        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'
10625        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10626        $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'
10627
10628        # Both c and cxx compiler support -rpath directly
10629        hardcode_libdir_flag_spec='-rpath $libdir'
10630      fi
10631      hardcode_libdir_separator=:
10632      ;;
10633
10634    solaris*)
10635      no_undefined_flag=' -z text'
10636      if test "$GCC" = yes; then
10637        wlarc='${wl}'
10638        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10639        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10640          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10641      else
10642        wlarc=''
10643        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10645        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10646      fi
10647      hardcode_libdir_flag_spec='-R$libdir'
10648      hardcode_shlibpath_var=no
10649      case $host_os in
10650      solaris2.[0-5] | solaris2.[0-5].*) ;;
10651      *)
10652        # The compiler driver will combine linker options so we
10653        # cannot just pass the convience library names through
10654        # without $wl, iff we do not link with $LD.
10655        # Luckily, gcc supports the same syntax we need for Sun Studio.
10656        # Supported since Solaris 2.6 (maybe 2.5.1?)
10657        case $wlarc in
10658        '')
10659          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10660        *)
10661          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' ;;
10662        esac ;;
10663      esac
10664      link_all_deplibs=yes
10665      ;;
10666
10667    sunos4*)
10668      if test "x$host_vendor" = xsequent; then
10669        # Use $CC to link under sequent, because it throws in some extra .o
10670        # files that make .init and .fini sections work.
10671        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10672      else
10673        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10674      fi
10675      hardcode_libdir_flag_spec='-L$libdir'
10676      hardcode_direct=yes
10677      hardcode_minus_L=yes
10678      hardcode_shlibpath_var=no
10679      ;;
10680
10681    sysv4)
10682      case $host_vendor in
10683        sni)
10684          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10685          hardcode_direct=yes # is this really true???
10686        ;;
10687        siemens)
10688          ## LD is ld it makes a PLAMLIB
10689          ## CC just makes a GrossModule.
10690          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10691          reload_cmds='$CC -r -o $output$reload_objs'
10692          hardcode_direct=no
10693        ;;
10694        motorola)
10695          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10696          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10697        ;;
10698      esac
10699      runpath_var='LD_RUN_PATH'
10700      hardcode_shlibpath_var=no
10701      ;;
10702
10703    sysv4.3*)
10704      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10705      hardcode_shlibpath_var=no
10706      export_dynamic_flag_spec='-Bexport'
10707      ;;
10708
10709    sysv4*MP*)
10710      if test -d /usr/nec; then
10711        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10712        hardcode_shlibpath_var=no
10713        runpath_var=LD_RUN_PATH
10714        hardcode_runpath_var=yes
10715        ld_shlibs=yes
10716      fi
10717      ;;
10718
10719    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10720      no_undefined_flag='${wl}-z,text'
10721      archive_cmds_need_lc=no
10722      hardcode_shlibpath_var=no
10723      runpath_var='LD_RUN_PATH'
10724
10725      if test "$GCC" = yes; then
10726        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10727        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10728      else
10729        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10730        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731      fi
10732      ;;
10733
10734    sysv5* | sco3.2v5* | sco5v6*)
10735      # Note: We can NOT use -z defs as we might desire, because we do not
10736      # link with -lc, and that would cause any symbols used from libc to
10737      # always be unresolved, which means just about no library would
10738      # ever link correctly.  If we're not using GNU ld we use -z text
10739      # though, which does catch some bad symbols but isn't as heavy-handed
10740      # as -z defs.
10741      no_undefined_flag='${wl}-z,text'
10742      allow_undefined_flag='${wl}-z,nodefs'
10743      archive_cmds_need_lc=no
10744      hardcode_shlibpath_var=no
10745      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10746      hardcode_libdir_separator=':'
10747      link_all_deplibs=yes
10748      export_dynamic_flag_spec='${wl}-Bexport'
10749      runpath_var='LD_RUN_PATH'
10750
10751      if test "$GCC" = yes; then
10752        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10753        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10754      else
10755        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10756        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10757      fi
10758      ;;
10759
10760    uts4*)
10761      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762      hardcode_libdir_flag_spec='-L$libdir'
10763      hardcode_shlibpath_var=no
10764      ;;
10765
10766    *)
10767      ld_shlibs=no
10768      ;;
10769    esac
10770  fi
10771
10772echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10773echo "${ECHO_T}$ld_shlibs" >&6
10774test "$ld_shlibs" = no && can_build_shared=no
10775
10776#
10777# Do we need to explicitly link libc?
10778#
10779case "x$archive_cmds_need_lc" in
10780x|xyes)
10781  # Assume -lc should be added
10782  archive_cmds_need_lc=yes
10783
10784  if test "$enable_shared" = yes && test "$GCC" = yes; then
10785    case $archive_cmds in
10786    *'~'*)
10787      # FIXME: we may have to deal with multi-command sequences.
10788      ;;
10789    '$CC '*)
10790      # Test whether the compiler implicitly links with -lc since on some
10791      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10792      # to ld, don't add -lc before -lgcc.
10793      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5<