source: ThirdParty/HSL/trunk/configure @ 3301

Last change on this file since 3301 was 3301, checked in by tkr, 5 years ago

restoring BuildTools/ThirdParty?/HSL/trunk

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