source: ThirdParty/HSL/trunk/configure @ 3335

Last change on this file since 3335 was 3335, checked in by stefan, 5 years ago

merge r3256 from stable/1.4

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