source: ThirdParty/HSL/stable/1.2/configure @ 1971

Last change on this file since 1971 was 1971, checked in by stefan, 11 years ago

temporarily committing release candidate

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