source: ThirdParty/HSL/stable/1.3/configure @ 2754

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

restoring BuildTools/ThirdParty?/HSL/stable/1.3

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