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

Last change on this file since 3320 was 3320, checked in by stefan, 7 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 884.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 1.3.8.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='1.3.8'
433PACKAGE_STRING='ThirdPartyHSL 1.3.8'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="configure.ac"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COINHSL_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED FLIBS EGREP FC FCFLAGS ac_ct_FC LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED HSL_CFLAGS HSL_LIBS HSL_PCLIBS HSL_PCREQUIRES HSL_DEPENDENCIES HSL_CFLAGS_INSTALLED HSL_LIBS_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE COIN_HAS_MA77_TRUE COIN_HAS_MA77_FALSE F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE BUILD_COINHSL_TRUE BUILD_COINHSL_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_FC_set=${FC+set}
981ac_env_FC_value=$FC
982ac_cv_env_FC_set=${FC+set}
983ac_cv_env_FC_value=$FC
984ac_env_FCFLAGS_set=${FCFLAGS+set}
985ac_env_FCFLAGS_value=$FCFLAGS
986ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
987ac_cv_env_FCFLAGS_value=$FCFLAGS
988ac_env_CPP_set=${CPP+set}
989ac_env_CPP_value=$CPP
990ac_cv_env_CPP_set=${CPP+set}
991ac_cv_env_CPP_value=$CPP
992ac_env_CXX_set=${CXX+set}
993ac_env_CXX_value=$CXX
994ac_cv_env_CXX_set=${CXX+set}
995ac_cv_env_CXX_value=$CXX
996ac_env_CXXFLAGS_set=${CXXFLAGS+set}
997ac_env_CXXFLAGS_value=$CXXFLAGS
998ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
999ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1000ac_env_CXXCPP_set=${CXXCPP+set}
1001ac_env_CXXCPP_value=$CXXCPP
1002ac_cv_env_CXXCPP_set=${CXXCPP+set}
1003ac_cv_env_CXXCPP_value=$CXXCPP
1004
1005#
1006# Report the --help message.
1007#
1008if test "$ac_init_help" = "long"; then
1009  # Omit some internal or obsolete options to make the list less imposing.
1010  # This message is too long to be a string in the A/UX 3.1 sh.
1011  cat <<_ACEOF
1012\`configure' configures ThirdPartyHSL 1.3.8 to adapt to many kinds of systems.
1013
1014Usage: $0 [OPTION]... [VAR=VALUE]...
1015
1016To assign environment variables (e.g., CC, CFLAGS...), specify them as
1017VAR=VALUE.  See below for descriptions of some of the useful variables.
1018
1019Defaults for the options are specified in brackets.
1020
1021Configuration:
1022  -h, --help              display this help and exit
1023      --help=short        display options specific to this package
1024      --help=recursive    display the short help of all the included packages
1025  -V, --version           display version information and exit
1026  -q, --quiet, --silent   do not print \`checking...' messages
1027      --cache-file=FILE   cache test results in FILE [disabled]
1028  -C, --config-cache      alias for \`--cache-file=config.cache'
1029  -n, --no-create         do not create output files
1030      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1031
1032_ACEOF
1033
1034  cat <<_ACEOF
1035Installation directories:
1036  --prefix=PREFIX         install architecture-independent files in PREFIX
1037                          [$ac_default_prefix]
1038  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1039                          [PREFIX]
1040
1041By default, \`make install' will install all the files in
1042\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1043an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1044for instance \`--prefix=\$HOME'.
1045
1046For better control, use the options below.
1047
1048Fine tuning of the installation directories:
1049  --bindir=DIR           user executables [EPREFIX/bin]
1050  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1051  --libexecdir=DIR       program executables [EPREFIX/libexec]
1052  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1053  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1054  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1055  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1056  --libdir=DIR           object code libraries [EPREFIX/lib]
1057  --includedir=DIR       C header files [PREFIX/include]
1058  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1059  --infodir=DIR          info documentation [PREFIX/info]
1060  --mandir=DIR           man documentation [PREFIX/man]
1061_ACEOF
1062
1063  cat <<\_ACEOF
1064
1065Program names:
1066  --program-prefix=PREFIX            prepend PREFIX to installed program names
1067  --program-suffix=SUFFIX            append SUFFIX to installed program names
1068  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1069
1070System types:
1071  --build=BUILD     configure for building on BUILD [guessed]
1072  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1073_ACEOF
1074fi
1075
1076if test -n "$ac_init_help"; then
1077  case $ac_init_help in
1078     short | recursive ) echo "Configuration of ThirdPartyHSL 1.3.8:";;
1079   esac
1080  cat <<\_ACEOF
1081
1082Optional Features:
1083  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1084  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1085  --enable-loadable-library
1086                          compile stand-alone shared library for delayed
1087                          loading
1088  --enable-debug          compile all projects with debug options tests
1089                          (implies --disable-shared)
1090  --enable-debug-hsl compile project HSL with debug compiler flags
1091
1092  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1093  --disable-pkg-config    disable use of pkg-config (if available)
1094  --enable-static[=PKGS]
1095                          build static libraries [default=no]
1096  --disable-dependency-tracking  speeds up one-time build
1097  --enable-dependency-tracking   do not reject slow dependency extractors
1098  --enable-maintainer-mode  enable make rules and dependencies not useful
1099                          (and sometimes confusing) to the casual installer
1100  --enable-shared[=PKGS]
1101                          build shared libraries [default=yes]
1102  --enable-fast-install[=PKGS]
1103                          optimize for fast installation [default=yes]
1104  --disable-libtool-lock  avoid locking (might break parallel builds)
1105  --disable-interpackage-dependencies
1106                          disables deduction of Makefile dependencies from
1107                          package linker flags
1108
1109Optional Packages:
1110  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1111  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1112  --with-hsl-verbosity specify the debug verbosity level for project HSL
1113  --with-hsl-checklevel specify the sanity check level for project HSL
1114  --with-coin-instdir     prefix of installation directory for precompiled
1115                          COIN packages
1116  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1117  --with-pic              try to use only PIC/non-PIC objects [default=use
1118                          both]
1119  --with-tags[=TAGS]
1120                          include additional configurations [automatic]
1121
1122  --with-metis-lib linker flags for using package Metis
1123  --with-metis-incdir directory with header files for using package Metis
1124  --with-metis-datadir directory with data files for using package Metis
1125  --with-blas             specify BLAS library (or BUILD to enforce use of
1126                          ThirdParty/Blas)
1127  --with-blas-lib linker flags for using package Blas
1128  --with-blas-incdir directory with header files for using package Blas
1129  --with-blas-datadir directory with data files for using package Blas
1130
1131Some influential environment variables:
1132  CDEFS       Additional -D flags to be used when compiling C code.
1133  ADD_CFLAGS  Additional C compiler options
1134  DBG_CFLAGS  Debug C compiler options
1135  OPT_CFLAGS  Optimize C compiler options
1136  CC          C compiler command
1137  CFLAGS      C compiler flags
1138  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1139              nonstandard directory <lib dir>
1140  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1141              headers in a nonstandard directory <include dir>
1142  MPICC       C MPI Compiler
1143  ADD_FFLAGS  Additional Fortran compiler options
1144  DBG_FFLAGS  Debug Fortran compiler options
1145  OPT_FFLAGS  Optimize Fortran compiler options
1146  F77         Fortran 77 compiler command
1147  FFLAGS      Fortran 77 compiler flags
1148  MPIF77      Fortran MPI Compiler
1149  PKG_CONFIG  path to pkg-config utility
1150  FC          Fortran compiler command
1151  FCFLAGS     Fortran compiler flags
1152  CPP         C preprocessor
1153  CXX         C++ compiler command
1154  CXXFLAGS    C++ compiler flags
1155  CXXCPP      C++ preprocessor
1156
1157Use these variables to override the choices made by `configure' or to help
1158it to find libraries and programs with nonstandard names/locations.
1159
1160Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1161_ACEOF
1162fi
1163
1164if test "$ac_init_help" = "recursive"; then
1165  # If there are subdirs, report their specific --help.
1166  ac_popdir=`pwd`
1167  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1168    test -d $ac_dir || continue
1169    ac_builddir=.
1170
1171if test "$ac_dir" != .; then
1172  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1173  # A "../" for each directory in $ac_dir_suffix.
1174  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1175else
1176  ac_dir_suffix= ac_top_builddir=
1177fi
1178
1179case $srcdir in
1180  .)  # No --srcdir option.  We are building in place.
1181    ac_srcdir=.
1182    if test -z "$ac_top_builddir"; then
1183       ac_top_srcdir=.
1184    else
1185       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1186    fi ;;
1187  [\\/]* | ?:[\\/]* )  # Absolute path.
1188    ac_srcdir=$srcdir$ac_dir_suffix;
1189    ac_top_srcdir=$srcdir ;;
1190  *) # Relative path.
1191    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1192    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1193esac
1194
1195# Do not use `cd foo && pwd` to compute absolute paths, because
1196# the directories may not exist.
1197case `pwd` in
1198.) ac_abs_builddir="$ac_dir";;
1199*)
1200  case "$ac_dir" in
1201  .) ac_abs_builddir=`pwd`;;
1202  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1203  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1204  esac;;
1205esac
1206case $ac_abs_builddir in
1207.) ac_abs_top_builddir=${ac_top_builddir}.;;
1208*)
1209  case ${ac_top_builddir}. in
1210  .) ac_abs_top_builddir=$ac_abs_builddir;;
1211  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1212  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1213  esac;;
1214esac
1215case $ac_abs_builddir in
1216.) ac_abs_srcdir=$ac_srcdir;;
1217*)
1218  case $ac_srcdir in
1219  .) ac_abs_srcdir=$ac_abs_builddir;;
1220  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1221  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1222  esac;;
1223esac
1224case $ac_abs_builddir in
1225.) ac_abs_top_srcdir=$ac_top_srcdir;;
1226*)
1227  case $ac_top_srcdir in
1228  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1229  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1230  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1231  esac;;
1232esac
1233
1234    cd $ac_dir
1235    # Check for guested configure; otherwise get Cygnus style configure.
1236    if test -f $ac_srcdir/configure.gnu; then
1237      echo
1238      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1239    elif test -f $ac_srcdir/configure; then
1240      echo
1241      $SHELL $ac_srcdir/configure  --help=recursive
1242    elif test -f $ac_srcdir/configure.ac ||
1243           test -f $ac_srcdir/configure.in; then
1244      echo
1245      $ac_configure --help
1246    else
1247      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1248    fi
1249    cd $ac_popdir
1250  done
1251fi
1252
1253test -n "$ac_init_help" && exit 0
1254if $ac_init_version; then
1255  cat <<\_ACEOF
1256ThirdPartyHSL configure 1.3.8
1257generated by GNU Autoconf 2.59
1258
1259Copyright (C) 2003 Free Software Foundation, Inc.
1260This configure script is free software; the Free Software Foundation
1261gives unlimited permission to copy, distribute and modify it.
1262
1263
1264Copyright 2006, 2009 International Business Machines and others.
1265All Rights Reserved.
1266This file is part of the open source package Coin which is distributed
1267under the Eclipse Public License.
1268_ACEOF
1269  exit 0
1270fi
1271exec 5>config.log
1272cat >&5 <<_ACEOF
1273This file contains any messages produced by compilers while
1274running configure, to aid debugging if configure makes a mistake.
1275
1276It was created by ThirdPartyHSL $as_me 1.3.8, which was
1277generated by GNU Autoconf 2.59.  Invocation command line was
1278
1279  $ $0 $@
1280
1281_ACEOF
1282{
1283cat <<_ASUNAME
1284## --------- ##
1285## Platform. ##
1286## --------- ##
1287
1288hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1289uname -m = `(uname -m) 2>/dev/null || echo unknown`
1290uname -r = `(uname -r) 2>/dev/null || echo unknown`
1291uname -s = `(uname -s) 2>/dev/null || echo unknown`
1292uname -v = `(uname -v) 2>/dev/null || echo unknown`
1293
1294/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1295/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1296
1297/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1298/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1299/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1300hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1301/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1302/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1303/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1304
1305_ASUNAME
1306
1307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1308for as_dir in $PATH
1309do
1310  IFS=$as_save_IFS
1311  test -z "$as_dir" && as_dir=.
1312  echo "PATH: $as_dir"
1313done
1314
1315} >&5
1316
1317cat >&5 <<_ACEOF
1318
1319
1320## ----------- ##
1321## Core tests. ##
1322## ----------- ##
1323
1324_ACEOF
1325
1326
1327# Keep a trace of the command line.
1328# Strip out --no-create and --no-recursion so they do not pile up.
1329# Strip out --silent because we don't want to record it for future runs.
1330# Also quote any args containing shell meta-characters.
1331# Make two passes to allow for proper duplicate-argument suppression.
1332ac_configure_args=
1333ac_configure_args0=
1334ac_configure_args1=
1335ac_sep=
1336ac_must_keep_next=false
1337for ac_pass in 1 2
1338do
1339  for ac_arg
1340  do
1341    case $ac_arg in
1342    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1343    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1344    | -silent | --silent | --silen | --sile | --sil)
1345      continue ;;
1346    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1347      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1348    esac
1349    case $ac_pass in
1350    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1351    2)
1352      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1353      if test $ac_must_keep_next = true; then
1354        ac_must_keep_next=false # Got value, back to normal.
1355      else
1356        case $ac_arg in
1357          *=* | --config-cache | -C | -disable-* | --disable-* \
1358          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1359          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1360          | -with-* | --with-* | -without-* | --without-* | --x)
1361            case "$ac_configure_args0 " in
1362              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1363            esac
1364            ;;
1365          -* ) ac_must_keep_next=true ;;
1366        esac
1367      fi
1368      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1369      # Get rid of the leading space.
1370      ac_sep=" "
1371      ;;
1372    esac
1373  done
1374done
1375$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1376$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1377
1378# When interrupted or exit'd, cleanup temporary files, and complete
1379# config.log.  We remove comments because anyway the quotes in there
1380# would cause problems or look ugly.
1381# WARNING: Be sure not to use single quotes in there, as some shells,
1382# such as our DU 5.0 friend, will then `close' the trap.
1383trap 'exit_status=$?
1384  # Save into config.log some information that might help in debugging.
1385  {
1386    echo
1387
1388    cat <<\_ASBOX
1389## ---------------- ##
1390## Cache variables. ##
1391## ---------------- ##
1392_ASBOX
1393    echo
1394    # The following way of writing the cache mishandles newlines in values,
1395{
1396  (set) 2>&1 |
1397    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1398    *ac_space=\ *)
1399      sed -n \
1400        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1401          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1402      ;;
1403    *)
1404      sed -n \
1405        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1406      ;;
1407    esac;
1408}
1409    echo
1410
1411    cat <<\_ASBOX
1412## ----------------- ##
1413## Output variables. ##
1414## ----------------- ##
1415_ASBOX
1416    echo
1417    for ac_var in $ac_subst_vars
1418    do
1419      eval ac_val=$`echo $ac_var`
1420      echo "$ac_var='"'"'$ac_val'"'"'"
1421    done | sort
1422    echo
1423
1424    if test -n "$ac_subst_files"; then
1425      cat <<\_ASBOX
1426## ------------- ##
1427## Output files. ##
1428## ------------- ##
1429_ASBOX
1430      echo
1431      for ac_var in $ac_subst_files
1432      do
1433        eval ac_val=$`echo $ac_var`
1434        echo "$ac_var='"'"'$ac_val'"'"'"
1435      done | sort
1436      echo
1437    fi
1438
1439    if test -s confdefs.h; then
1440      cat <<\_ASBOX
1441## ----------- ##
1442## confdefs.h. ##
1443## ----------- ##
1444_ASBOX
1445      echo
1446      sed "/^$/d" confdefs.h | sort
1447      echo
1448    fi
1449    test "$ac_signal" != 0 &&
1450      echo "$as_me: caught signal $ac_signal"
1451    echo "$as_me: exit $exit_status"
1452  } >&5
1453  rm -f core *.core &&
1454  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1455    exit $exit_status
1456     ' 0
1457for ac_signal in 1 2 13 15; do
1458  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1459done
1460ac_signal=0
1461
1462# confdefs.h avoids OS command line length limits that DEFS can exceed.
1463rm -rf conftest* confdefs.h
1464# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1465echo >confdefs.h
1466
1467# Predefined preprocessor variables.
1468
1469cat >>confdefs.h <<_ACEOF
1470#define PACKAGE_NAME "$PACKAGE_NAME"
1471_ACEOF
1472
1473
1474cat >>confdefs.h <<_ACEOF
1475#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1476_ACEOF
1477
1478
1479cat >>confdefs.h <<_ACEOF
1480#define PACKAGE_VERSION "$PACKAGE_VERSION"
1481_ACEOF
1482
1483
1484cat >>confdefs.h <<_ACEOF
1485#define PACKAGE_STRING "$PACKAGE_STRING"
1486_ACEOF
1487
1488
1489cat >>confdefs.h <<_ACEOF
1490#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1491_ACEOF
1492
1493
1494# Let the site file select an alternate cache file if it wants to.
1495# Prefer explicitly selected file to automatically selected ones.
1496if test -z "$CONFIG_SITE"; then
1497  if test "x$prefix" != xNONE; then
1498    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1499  else
1500    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1501  fi
1502fi
1503for ac_site_file in $CONFIG_SITE; do
1504  if test -r "$ac_site_file"; then
1505    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1506echo "$as_me: loading site script $ac_site_file" >&6;}
1507    sed 's/^/| /' "$ac_site_file" >&5
1508    . "$ac_site_file"
1509  fi
1510done
1511
1512if test -r "$cache_file"; then
1513  # Some versions of bash will fail to source /dev/null (special
1514  # files actually), so we avoid doing that.
1515  if test -f "$cache_file"; then
1516    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1517echo "$as_me: loading cache $cache_file" >&6;}
1518    case $cache_file in
1519      [\\/]* | ?:[\\/]* ) . $cache_file;;
1520      *)                      . ./$cache_file;;
1521    esac
1522  fi
1523else
1524  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1525echo "$as_me: creating cache $cache_file" >&6;}
1526  >$cache_file
1527fi
1528
1529# Check that the precious variables saved in the cache have kept the same
1530# value.
1531ac_cache_corrupted=false
1532for ac_var in `(set) 2>&1 |
1533               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1534  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1535  eval ac_new_set=\$ac_env_${ac_var}_set
1536  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1537  eval ac_new_val="\$ac_env_${ac_var}_value"
1538  case $ac_old_set,$ac_new_set in
1539    set,)
1540      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1541echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1542      ac_cache_corrupted=: ;;
1543    ,set)
1544      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1545echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1546      ac_cache_corrupted=: ;;
1547    ,);;
1548    *)
1549      if test "x$ac_old_val" != "x$ac_new_val"; then
1550        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1551echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1552        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1553echo "$as_me:   former value:  $ac_old_val" >&2;}
1554        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1555echo "$as_me:   current value: $ac_new_val" >&2;}
1556        ac_cache_corrupted=:
1557      fi;;
1558  esac
1559  # Pass precious variables to config.status.
1560  if test "$ac_new_set" = set; then
1561    case $ac_new_val in
1562    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1563      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1564    *) ac_arg=$ac_var=$ac_new_val ;;
1565    esac
1566    case " $ac_configure_args " in
1567      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1568      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1569    esac
1570  fi
1571done
1572if $ac_cache_corrupted; then
1573  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1574echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1575  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1576echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1577   { (exit 1); exit 1; }; }
1578fi
1579
1580ac_ext=c
1581ac_cpp='$CPP $CPPFLAGS'
1582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1584ac_compiler_gnu=$ac_cv_c_compiler_gnu
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615# List one file in the package so that the configure script can test
1616# whether the package is actually there
1617# Here we don't know yet which files are actually provided...
1618
1619
1620# Where should everything be installed by default?  Here, we want it
1621# to be installed directly in 'bin', 'lib', 'include' subdirectories
1622# of the directory where configure is run.  The default would be
1623# /usr/local.
1624
1625
1626
1627# As backup, we make sure we don't loose an FLIBS if it has been set
1628# by the user
1629save_FLIBS="$FLIBS"
1630
1631# A useful makefile conditional that is always false
1632
1633
1634if false; then
1635  ALWAYS_FALSE_TRUE=
1636  ALWAYS_FALSE_FALSE='#'
1637else
1638  ALWAYS_FALSE_TRUE='#'
1639  ALWAYS_FALSE_FALSE=
1640fi
1641
1642
1643# We set the following variable so that we know later in AC_COIN_FINALIZE
1644# that we are in a project main directory
1645coin_projectdir=yes
1646
1647# Set the project's version numbers
1648
1649
1650cat >>confdefs.h <<_ACEOF
1651#define COINHSL_VERSION "$PACKAGE_VERSION"
1652_ACEOF
1653
1654
1655  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1656  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1657  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1658  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1659  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1660  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1661
1662cat >>confdefs.h <<_ACEOF
1663#define COINHSL_VERSION_MAJOR $coin_majorver
1664_ACEOF
1665
1666
1667cat >>confdefs.h <<_ACEOF
1668#define COINHSL_VERSION_MINOR $coin_minorver
1669_ACEOF
1670
1671
1672cat >>confdefs.h <<_ACEOF
1673#define COINHSL_VERSION_RELEASE $coin_releasever
1674_ACEOF
1675
1676
1677  # We use the following variable to have a string with the upper case
1678  # version of the project name
1679  COIN_PRJCT=COINHSL
1680
1681  # Set the project's SVN revision number. The complicated sed expression
1682  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1683  # as a single number.
1684  # Extract the first word of "svnversion", so it can be a program name with args.
1685set dummy svnversion; ac_word=$2
1686echo "$as_me:$LINENO: checking for $ac_word" >&5
1687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688if test "${ac_cv_prog_have_svnversion+set}" = set; then
1689  echo $ECHO_N "(cached) $ECHO_C" >&6
1690else
1691  if test -n "$have_svnversion"; then
1692  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1693else
1694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695for as_dir in $PATH
1696do
1697  IFS=$as_save_IFS
1698  test -z "$as_dir" && as_dir=.
1699  for ac_exec_ext in '' $ac_executable_extensions; do
1700  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701    ac_cv_prog_have_svnversion="yes"
1702    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703    break 2
1704  fi
1705done
1706done
1707
1708  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1709fi
1710fi
1711have_svnversion=$ac_cv_prog_have_svnversion
1712if test -n "$have_svnversion"; then
1713  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1714echo "${ECHO_T}$have_svnversion" >&6
1715else
1716  echo "$as_me:$LINENO: result: no" >&5
1717echo "${ECHO_T}no" >&6
1718fi
1719
1720  if test "x$have_svnversion" = xyes; then
1721
1722    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1723    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1724      COINHSL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1725
1726cat >>confdefs.h <<_ACEOF
1727#define COINHSL_SVN_REV $COINHSL_SVN_REV
1728_ACEOF
1729
1730    fi
1731  fi
1732
1733
1734
1735# Capture libtool library version, if given.
1736 coin_libversion=4:8:3
1737
1738
1739
1740
1741#############################################################################
1742#                         Standard build tool stuff                         #
1743#############################################################################
1744
1745# Get the system type
1746ac_aux_dir=
1747for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1748  if test -f $ac_dir/install-sh; then
1749    ac_aux_dir=$ac_dir
1750    ac_install_sh="$ac_aux_dir/install-sh -c"
1751    break
1752  elif test -f $ac_dir/install.sh; then
1753    ac_aux_dir=$ac_dir
1754    ac_install_sh="$ac_aux_dir/install.sh -c"
1755    break
1756  elif test -f $ac_dir/shtool; then
1757    ac_aux_dir=$ac_dir
1758    ac_install_sh="$ac_aux_dir/shtool install -c"
1759    break
1760  fi
1761done
1762if test -z "$ac_aux_dir"; then
1763  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1764echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1765   { (exit 1); exit 1; }; }
1766fi
1767ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1768ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1769ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1770
1771# Make sure we can run config.sub.
1772$ac_config_sub sun4 >/dev/null 2>&1 ||
1773  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1774echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1775   { (exit 1); exit 1; }; }
1776
1777echo "$as_me:$LINENO: checking build system type" >&5
1778echo $ECHO_N "checking build system type... $ECHO_C" >&6
1779if test "${ac_cv_build+set}" = set; then
1780  echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782  ac_cv_build_alias=$build_alias
1783test -z "$ac_cv_build_alias" &&
1784  ac_cv_build_alias=`$ac_config_guess`
1785test -z "$ac_cv_build_alias" &&
1786  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1787echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1788   { (exit 1); exit 1; }; }
1789ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1790  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1791echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1792   { (exit 1); exit 1; }; }
1793
1794fi
1795echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1796echo "${ECHO_T}$ac_cv_build" >&6
1797build=$ac_cv_build
1798build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1799build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1800build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1801
1802
1803
1804# turn off warnings and pedantic mode since they could make trouble on some platforms,
1805# and we couldn't fix them anyway
1806coin_skip_warn_fflags=yes
1807
1808# provide flag to allow compilation of a stand-alone shared library
1809# Check whether --enable-loadable-library or --disable-loadable-library was given.
1810if test "${enable_loadable_library+set}" = set; then
1811  enableval="$enable_loadable_library"
1812
1813fi;
1814
1815# Check if user wants to produce debugging code
1816
1817echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1818echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1819
1820# Check whether --enable-debug or --disable-debug was given.
1821if test "${enable_debug+set}" = set; then
1822  enableval="$enable_debug"
1823  case "${enableval}" in
1824   yes) coin_debug_compile=true
1825        if test "${enable_shared+set}" = set; then :; else
1826          enable_shared=no
1827        fi
1828        ;;
1829   no)  coin_debug_compile=false
1830        ;;
1831   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1832echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1833   { (exit 1); exit 1; }; }
1834        ;;
1835esac
1836else
1837  coin_debug_compile=false
1838fi;
1839
1840# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1841if test "${enable_debug_hsl+set}" = set; then
1842  enableval="$enable_debug_hsl"
1843  case "${enableval}" in
1844    yes) coin_debug_compile=true
1845         ;;
1846    no)  coin_debug_compile=false
1847         ;;
1848    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1849echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1850   { (exit 1); exit 1; }; }
1851         ;;
1852 esac
1853else
1854  :
1855fi;
1856
1857 # m4_ifvaln([HSL],
1858
1859if test $coin_debug_compile = true; then
1860  echo "$as_me:$LINENO: result: yes" >&5
1861echo "${ECHO_T}yes" >&6
1862else
1863  echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6
1865fi
1866
1867
1868# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1869if test "${with_hsl_verbosity+set}" = set; then
1870  withval="$with_hsl_verbosity"
1871  if test "$withval" = yes; then
1872                withval=1
1873              fi
1874              coin_hsl_verbosity=$withval
1875else
1876  coin_hsl_verbosity=0
1877fi;
1878
1879cat >>confdefs.h <<_ACEOF
1880#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1881_ACEOF
1882
1883
1884
1885# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1886if test "${with_hsl_checklevel+set}" = set; then
1887  withval="$with_hsl_checklevel"
1888  if test "$withval" = yes; then
1889                withval=1
1890              fi
1891              coin_hsl_checklevel=$withval
1892else
1893  coin_hsl_checklevel=0
1894fi;
1895
1896cat >>confdefs.h <<_ACEOF
1897#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1898_ACEOF
1899
1900
1901 # m4_ifvaln([HSL],
1902
1903
1904
1905# Get the name of the C compiler (for a dummy program)
1906
1907
1908  # for backward compatibility
1909  # Check whether --enable-doscompile or --disable-doscompile was given.
1910if test "${enable_doscompile+set}" = set; then
1911  enableval="$enable_doscompile"
1912  enable_doscompile=$enableval
1913else
1914  enable_doscompile=no
1915fi;
1916
1917  # Check whether --enable-msvc or --disable-msvc was given.
1918if test "${enable_msvc+set}" = set; then
1919  enableval="$enable_msvc"
1920  enable_msvc=$enableval
1921else
1922  enable_msvc=no
1923     if test "$enable_doscompile" = msvc ; then
1924       enable_msvc=yes
1925     elif test "$enable_doscompile" != no ; then
1926       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1927echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1928   { (exit 1); exit 1; }; }
1929     fi
1930
1931fi;
1932
1933  if test "$enable_msvc" = MD; then
1934    enable_shared=yes
1935    enable_msvc=yes
1936  fi
1937
1938  if test "$enable_msvc" = yes; then
1939    case $build in
1940      *-cygwin* | *-mingw*) ;;
1941      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1942echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1943   { (exit 1); exit 1; }; } ;;
1944    esac
1945  fi
1946
1947
1948
1949ac_ext=c
1950ac_cpp='$CPP $CPPFLAGS'
1951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954
1955
1956# For consistency, we set the C compiler to the same value of the C++
1957# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1958if test x"$CXX" != x; then
1959  case "$CXX" in
1960    clang* ) ;;
1961    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1962      if test x"$CC" = x; then
1963        CC="$CXX"
1964        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1965echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1966      fi
1967      ;;
1968  esac
1969fi
1970
1971
1972
1973
1974
1975
1976coin_has_cc=yes
1977
1978save_cflags="$CFLAGS"
1979
1980# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1981# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1982# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1983# compiler. In this case, put cc after gcc.
1984
1985case $build in
1986  *-cygwin* | *-mingw*)
1987             if test "$enable_msvc" = yes ; then
1988               comps="icl cl gcc"
1989             else
1990               comps="gcc icl cl"
1991             fi ;;
1992  *-*-solaris*)
1993             # Extract the first word of "cc", so it can be a program name with args.
1994set dummy cc; ac_word=$2
1995echo "$as_me:$LINENO: checking for $ac_word" >&5
1996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1998  echo $ECHO_N "(cached) $ECHO_C" >&6
1999else
2000  if test -n "$sol_cc_compiler"; then
2001  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2002else
2003  ac_prog_rejected=no
2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005for as_dir in $PATH
2006do
2007  IFS=$as_save_IFS
2008  test -z "$as_dir" && as_dir=.
2009  for ac_exec_ext in '' $ac_executable_extensions; do
2010  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2012       ac_prog_rejected=yes
2013       continue
2014     fi
2015    ac_cv_prog_sol_cc_compiler="cc"
2016    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017    break 2
2018  fi
2019done
2020done
2021
2022if test $ac_prog_rejected = yes; then
2023  # We found a bogon in the path, so make sure we never use it.
2024  set dummy $ac_cv_prog_sol_cc_compiler
2025  shift
2026  if test $# != 0; then
2027    # We chose a different compiler from the bogus one.
2028    # However, it has the same basename, so the bogon will be chosen
2029    # first if we set sol_cc_compiler to just the basename; use the full file name.
2030    shift
2031    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2032  fi
2033fi
2034fi
2035fi
2036sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2037if test -n "$sol_cc_compiler"; then
2038  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2039echo "${ECHO_T}$sol_cc_compiler" >&6
2040else
2041  echo "$as_me:$LINENO: result: no" >&5
2042echo "${ECHO_T}no" >&6
2043fi
2044
2045             if test "$sol_cc_compiler" = "cc" ; then
2046               comps="cc xlc gcc pgcc icc"
2047             else
2048               comps="xlc gcc pgcc icc cc"
2049             fi
2050             ;;
2051  *-*-darwin*) comps="clang gcc cc" ;;
2052  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2053  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2054  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2055esac
2056
2057# We delete the cached value, since the test might not have been
2058# performed with our choice of compilers earlier
2059$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2060# AC_MSG_NOTICE([C compiler candidates: $comps])
2061ac_ext=c
2062ac_cpp='$CPP $CPPFLAGS'
2063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065ac_compiler_gnu=$ac_cv_c_compiler_gnu
2066if test -n "$ac_tool_prefix"; then
2067  for ac_prog in $comps
2068  do
2069    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2070set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2071echo "$as_me:$LINENO: checking for $ac_word" >&5
2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073if test "${ac_cv_prog_CC+set}" = set; then
2074  echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076  if test -n "$CC"; then
2077  ac_cv_prog_CC="$CC" # Let the user override the test.
2078else
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082  IFS=$as_save_IFS
2083  test -z "$as_dir" && as_dir=.
2084  for ac_exec_ext in '' $ac_executable_extensions; do
2085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088    break 2
2089  fi
2090done
2091done
2092
2093fi
2094fi
2095CC=$ac_cv_prog_CC
2096if test -n "$CC"; then
2097  echo "$as_me:$LINENO: result: $CC" >&5
2098echo "${ECHO_T}$CC" >&6
2099else
2100  echo "$as_me:$LINENO: result: no" >&5
2101echo "${ECHO_T}no" >&6
2102fi
2103
2104    test -n "$CC" && break
2105  done
2106fi
2107if test -z "$CC"; then
2108  ac_ct_CC=$CC
2109  for ac_prog in $comps
2110do
2111  # Extract the first word of "$ac_prog", so it can be a program name with args.
2112set dummy $ac_prog; ac_word=$2
2113echo "$as_me:$LINENO: checking for $ac_word" >&5
2114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2115if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116  echo $ECHO_N "(cached) $ECHO_C" >&6
2117else
2118  if test -n "$ac_ct_CC"; then
2119  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120else
2121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122for as_dir in $PATH
2123do
2124  IFS=$as_save_IFS
2125  test -z "$as_dir" && as_dir=.
2126  for ac_exec_ext in '' $ac_executable_extensions; do
2127  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128    ac_cv_prog_ac_ct_CC="$ac_prog"
2129    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130    break 2
2131  fi
2132done
2133done
2134
2135fi
2136fi
2137ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138if test -n "$ac_ct_CC"; then
2139  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140echo "${ECHO_T}$ac_ct_CC" >&6
2141else
2142  echo "$as_me:$LINENO: result: no" >&5
2143echo "${ECHO_T}no" >&6
2144fi
2145
2146  test -n "$ac_ct_CC" && break
2147done
2148
2149  CC=$ac_ct_CC
2150fi
2151
2152
2153test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2154See \`config.log' for more details." >&5
2155echo "$as_me: error: no acceptable C compiler found in \$PATH
2156See \`config.log' for more details." >&2;}
2157   { (exit 1); exit 1; }; }
2158
2159# Provide some information about the compiler.
2160echo "$as_me:$LINENO:" \
2161     "checking for C compiler version" >&5
2162ac_compiler=`set X $ac_compile; echo $2`
2163{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2164  (eval $ac_compiler --version </dev/null >&5) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }
2168{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2169  (eval $ac_compiler -v </dev/null >&5) 2>&5
2170  ac_status=$?
2171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172  (exit $ac_status); }
2173{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2174  (eval $ac_compiler -V </dev/null >&5) 2>&5
2175  ac_status=$?
2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177  (exit $ac_status); }
2178
2179cat >conftest.$ac_ext <<_ACEOF
2180/* confdefs.h.  */
2181_ACEOF
2182cat confdefs.h >>conftest.$ac_ext
2183cat >>conftest.$ac_ext <<_ACEOF
2184/* end confdefs.h.  */
2185
2186int
2187main ()
2188{
2189
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194ac_clean_files_save=$ac_clean_files
2195ac_clean_files="$ac_clean_files a.out a.exe b.out"
2196# Try to create an executable without -o first, disregard a.out.
2197# It will help us diagnose broken compilers, and finding out an intuition
2198# of exeext.
2199echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2200echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2201ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2202if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2203  (eval $ac_link_default) 2>&5
2204  ac_status=$?
2205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206  (exit $ac_status); }; then
2207  # Find the output, starting from the most likely.  This scheme is
2208# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2209# resort.
2210
2211# Be careful to initialize this variable, since it used to be cached.
2212# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2213ac_cv_exeext=
2214# b.out is created by i960 compilers.
2215for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2216do
2217  test -f "$ac_file" || continue
2218  case $ac_file in
2219    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2220        ;;
2221    conftest.$ac_ext )
2222        # This is the source file.
2223        ;;
2224    [ab].out )
2225        # We found the default executable, but exeext='' is most
2226        # certainly right.
2227        break;;
2228    *.* )
2229        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2230        # FIXME: I believe we export ac_cv_exeext for Libtool,
2231        # but it would be cool to find out if it's true.  Does anybody
2232        # maintain Libtool? --akim.
2233        export ac_cv_exeext
2234        break;;
2235    * )
2236        break;;
2237  esac
2238done
2239else
2240  echo "$as_me: failed program was:" >&5
2241sed 's/^/| /' conftest.$ac_ext >&5
2242
2243{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: C compiler cannot create executables
2246See \`config.log' for more details." >&2;}
2247   { (exit 77); exit 77; }; }
2248fi
2249
2250ac_exeext=$ac_cv_exeext
2251echo "$as_me:$LINENO: result: $ac_file" >&5
2252echo "${ECHO_T}$ac_file" >&6
2253
2254# Check the compiler produces executables we can run.  If not, either
2255# the compiler is broken, or we cross compile.
2256echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2257echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2258# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2259# If not cross compiling, check that we can run a simple program.
2260if test "$cross_compiling" != yes; then
2261  if { ac_try='./$ac_file'
2262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263  (eval $ac_try) 2>&5
2264  ac_status=$?
2265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266  (exit $ac_status); }; }; then
2267    cross_compiling=no
2268  else
2269    if test "$cross_compiling" = maybe; then
2270        cross_compiling=yes
2271    else
2272        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2273If you meant to cross compile, use \`--host'.
2274See \`config.log' for more details." >&5
2275echo "$as_me: error: cannot run C compiled programs.
2276If you meant to cross compile, use \`--host'.
2277See \`config.log' for more details." >&2;}
2278   { (exit 1); exit 1; }; }
2279    fi
2280  fi
2281fi
2282echo "$as_me:$LINENO: result: yes" >&5
2283echo "${ECHO_T}yes" >&6
2284
2285rm -f a.out a.exe conftest$ac_cv_exeext b.out
2286ac_clean_files=$ac_clean_files_save
2287# Check the compiler produces executables we can run.  If not, either
2288# the compiler is broken, or we cross compile.
2289echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2290echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2291echo "$as_me:$LINENO: result: $cross_compiling" >&5
2292echo "${ECHO_T}$cross_compiling" >&6
2293
2294echo "$as_me:$LINENO: checking for suffix of executables" >&5
2295echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2297  (eval $ac_link) 2>&5
2298  ac_status=$?
2299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300  (exit $ac_status); }; then
2301  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2302# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2303# work properly (i.e., refer to `conftest.exe'), while it won't with
2304# `rm'.
2305for ac_file in conftest.exe conftest conftest.*; do
2306  test -f "$ac_file" || continue
2307  case $ac_file in
2308    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2309    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2310          export ac_cv_exeext
2311          break;;
2312    * ) break;;
2313  esac
2314done
2315else
2316  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2317See \`config.log' for more details." >&5
2318echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2319See \`config.log' for more details." >&2;}
2320   { (exit 1); exit 1; }; }
2321fi
2322
2323rm -f conftest$ac_cv_exeext
2324echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2325echo "${ECHO_T}$ac_cv_exeext" >&6
2326
2327rm -f conftest.$ac_ext
2328EXEEXT=$ac_cv_exeext
2329ac_exeext=$EXEEXT
2330echo "$as_me:$LINENO: checking for suffix of object files" >&5
2331echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2332if test "${ac_cv_objext+set}" = set; then
2333  echo $ECHO_N "(cached) $ECHO_C" >&6
2334else
2335  cat >conftest.$ac_ext <<_ACEOF
2336/* confdefs.h.  */
2337_ACEOF
2338cat confdefs.h >>conftest.$ac_ext
2339cat >>conftest.$ac_ext <<_ACEOF
2340/* end confdefs.h.  */
2341
2342int
2343main ()
2344{
2345
2346  ;
2347  return 0;
2348}
2349_ACEOF
2350rm -f conftest.o conftest.obj
2351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352  (eval $ac_compile) 2>&5
2353  ac_status=$?
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); }; then
2356  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2357  case $ac_file in
2358    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2359    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2360       break;;
2361  esac
2362done
2363else
2364  echo "$as_me: failed program was:" >&5
2365sed 's/^/| /' conftest.$ac_ext >&5
2366
2367{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2368See \`config.log' for more details." >&5
2369echo "$as_me: error: cannot compute suffix of object files: cannot compile
2370See \`config.log' for more details." >&2;}
2371   { (exit 1); exit 1; }; }
2372fi
2373
2374rm -f conftest.$ac_cv_objext conftest.$ac_ext
2375fi
2376echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2377echo "${ECHO_T}$ac_cv_objext" >&6
2378OBJEXT=$ac_cv_objext
2379ac_objext=$OBJEXT
2380echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2381echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2382if test "${ac_cv_c_compiler_gnu+set}" = set; then
2383  echo $ECHO_N "(cached) $ECHO_C" >&6
2384else
2385  cat >conftest.$ac_ext <<_ACEOF
2386/* confdefs.h.  */
2387_ACEOF
2388cat confdefs.h >>conftest.$ac_ext
2389cat >>conftest.$ac_ext <<_ACEOF
2390/* end confdefs.h.  */
2391
2392int
2393main ()
2394{
2395#ifndef __GNUC__
2396       choke me
2397#endif
2398
2399  ;
2400  return 0;
2401}
2402_ACEOF
2403rm -f conftest.$ac_objext
2404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405  (eval $ac_compile) 2>conftest.er1
2406  ac_status=$?
2407  grep -v '^ *+' conftest.er1 >conftest.err
2408  rm -f conftest.er1
2409  cat conftest.err >&5
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); } &&
2412         { ac_try='test -z "$ac_c_werror_flag"
2413                         || test ! -s conftest.err'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; } &&
2419         { ac_try='test -s conftest.$ac_objext'
2420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421  (eval $ac_try) 2>&5
2422  ac_status=$?
2423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424  (exit $ac_status); }; }; then
2425  ac_compiler_gnu=yes
2426else
2427  echo "$as_me: failed program was:" >&5
2428sed 's/^/| /' conftest.$ac_ext >&5
2429
2430ac_compiler_gnu=no
2431fi
2432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433ac_cv_c_compiler_gnu=$ac_compiler_gnu
2434
2435fi
2436echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2437echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2438GCC=`test $ac_compiler_gnu = yes && echo yes`
2439ac_test_CFLAGS=${CFLAGS+set}
2440ac_save_CFLAGS=$CFLAGS
2441CFLAGS="-g"
2442echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2443echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2444if test "${ac_cv_prog_cc_g+set}" = set; then
2445  echo $ECHO_N "(cached) $ECHO_C" >&6
2446else
2447  cat >conftest.$ac_ext <<_ACEOF
2448/* confdefs.h.  */
2449_ACEOF
2450cat confdefs.h >>conftest.$ac_ext
2451cat >>conftest.$ac_ext <<_ACEOF
2452/* end confdefs.h.  */
2453
2454int
2455main ()
2456{
2457
2458  ;
2459  return 0;
2460}
2461_ACEOF
2462rm -f conftest.$ac_objext
2463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464  (eval $ac_compile) 2>conftest.er1
2465  ac_status=$?
2466  grep -v '^ *+' conftest.er1 >conftest.err
2467  rm -f conftest.er1
2468  cat conftest.err >&5
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); } &&
2471         { ac_try='test -z "$ac_c_werror_flag"
2472                         || test ! -s conftest.err'
2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474  (eval $ac_try) 2>&5
2475  ac_status=$?
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); }; } &&
2478         { ac_try='test -s conftest.$ac_objext'
2479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480  (eval $ac_try) 2>&5
2481  ac_status=$?
2482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483  (exit $ac_status); }; }; then
2484  ac_cv_prog_cc_g=yes
2485else
2486  echo "$as_me: failed program was:" >&5
2487sed 's/^/| /' conftest.$ac_ext >&5
2488
2489ac_cv_prog_cc_g=no
2490fi
2491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2492fi
2493echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2494echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2495if test "$ac_test_CFLAGS" = set; then
2496  CFLAGS=$ac_save_CFLAGS
2497elif test $ac_cv_prog_cc_g = yes; then
2498  if test "$GCC" = yes; then
2499    CFLAGS="-g -O2"
2500  else
2501    CFLAGS="-g"
2502  fi
2503else
2504  if test "$GCC" = yes; then
2505    CFLAGS="-O2"
2506  else
2507    CFLAGS=
2508  fi
2509fi
2510echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2511echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2512if test "${ac_cv_prog_cc_stdc+set}" = set; then
2513  echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515  ac_cv_prog_cc_stdc=no
2516ac_save_CC=$CC
2517cat >conftest.$ac_ext <<_ACEOF
2518/* confdefs.h.  */
2519_ACEOF
2520cat confdefs.h >>conftest.$ac_ext
2521cat >>conftest.$ac_ext <<_ACEOF
2522/* end confdefs.h.  */
2523#include <stdarg.h>
2524#include <stdio.h>
2525#include <sys/types.h>
2526#include <sys/stat.h>
2527/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2528struct buf { int x; };
2529FILE * (*rcsopen) (struct buf *, struct stat *, int);
2530static char *e (p, i)
2531     char **p;
2532     int i;
2533{
2534  return p[i];
2535}
2536static char *f (char * (*g) (char **, int), char **p, ...)
2537{
2538  char *s;
2539  va_list v;
2540  va_start (v,p);
2541  s = g (p, va_arg (v,int));
2542  va_end (v);
2543  return s;
2544}
2545
2546/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2547   function prototypes and stuff, but not '\xHH' hex character constants.
2548   These don't provoke an error unfortunately, instead are silently treated
2549   as 'x'.  The following induces an error, until -std1 is added to get
2550   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2551   array size at least.  It's necessary to write '\x00'==0 to get something
2552   that's true only with -std1.  */
2553int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2554
2555int test (int i, double x);
2556struct s1 {int (*f) (int a);};
2557struct s2 {int (*f) (double a);};
2558int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2559int argc;
2560char **argv;
2561int
2562main ()
2563{
2564return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2565  ;
2566  return 0;
2567}
2568_ACEOF
2569# Don't try gcc -ansi; that turns off useful extensions and
2570# breaks some systems' header files.
2571# AIX                   -qlanglvl=ansi
2572# Ultrix and OSF/1      -std1
2573# HP-UX 10.20 and later -Ae
2574# HP-UX older versions  -Aa -D_HPUX_SOURCE
2575# SVR4                  -Xc -D__EXTENSIONS__
2576for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2577do
2578  CC="$ac_save_CC $ac_arg"
2579  rm -f conftest.$ac_objext
2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581  (eval $ac_compile) 2>conftest.er1
2582  ac_status=$?
2583  grep -v '^ *+' conftest.er1 >conftest.err
2584  rm -f conftest.er1
2585  cat conftest.err >&5
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); } &&
2588         { ac_try='test -z "$ac_c_werror_flag"
2589                         || test ! -s conftest.err'
2590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591  (eval $ac_try) 2>&5
2592  ac_status=$?
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); }; } &&
2595         { ac_try='test -s conftest.$ac_objext'
2596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; }; then
2601  ac_cv_prog_cc_stdc=$ac_arg
2602break
2603else
2604  echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607fi
2608rm -f conftest.err conftest.$ac_objext
2609done
2610rm -f conftest.$ac_ext conftest.$ac_objext
2611CC=$ac_save_CC
2612
2613fi
2614
2615case "x$ac_cv_prog_cc_stdc" in
2616  x|xno)
2617    echo "$as_me:$LINENO: result: none needed" >&5
2618echo "${ECHO_T}none needed" >&6 ;;
2619  *)
2620    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2621echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2622    CC="$CC $ac_cv_prog_cc_stdc" ;;
2623esac
2624
2625# Some people use a C++ compiler to compile C.  Since we use `exit',
2626# in C++ we need to declare it.  In case someone uses the same compiler
2627# for both compiling C and C++ we need to have the C++ compiler decide
2628# the declaration of exit, since it's the most demanding environment.
2629cat >conftest.$ac_ext <<_ACEOF
2630#ifndef __cplusplus
2631  choke me
2632#endif
2633_ACEOF
2634rm -f conftest.$ac_objext
2635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636  (eval $ac_compile) 2>conftest.er1
2637  ac_status=$?
2638  grep -v '^ *+' conftest.er1 >conftest.err
2639  rm -f conftest.er1
2640  cat conftest.err >&5
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); } &&
2643         { ac_try='test -z "$ac_c_werror_flag"
2644                         || test ! -s conftest.err'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; } &&
2650         { ac_try='test -s conftest.$ac_objext'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; }; then
2656  for ac_declaration in \
2657   '' \
2658   'extern "C" void std::exit (int) throw (); using std::exit;' \
2659   'extern "C" void std::exit (int); using std::exit;' \
2660   'extern "C" void exit (int) throw ();' \
2661   'extern "C" void exit (int);' \
2662   'void exit (int);'
2663do
2664  cat >conftest.$ac_ext <<_ACEOF
2665/* confdefs.h.  */
2666_ACEOF
2667cat confdefs.h >>conftest.$ac_ext
2668cat >>conftest.$ac_ext <<_ACEOF
2669/* end confdefs.h.  */
2670$ac_declaration
2671#include <stdlib.h>
2672int
2673main ()
2674{
2675exit (42);
2676  ;
2677  return 0;
2678}
2679_ACEOF
2680rm -f conftest.$ac_objext
2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682  (eval $ac_compile) 2>conftest.er1
2683  ac_status=$?
2684  grep -v '^ *+' conftest.er1 >conftest.err
2685  rm -f conftest.er1
2686  cat conftest.err >&5
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); } &&
2689         { ac_try='test -z "$ac_c_werror_flag"
2690                         || test ! -s conftest.err'
2691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692  (eval $ac_try) 2>&5
2693  ac_status=$?
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); }; } &&
2696         { ac_try='test -s conftest.$ac_objext'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; }; then
2702  :
2703else
2704  echo "$as_me: failed program was:" >&5
2705sed 's/^/| /' conftest.$ac_ext >&5
2706
2707continue
2708fi
2709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710  cat >conftest.$ac_ext <<_ACEOF
2711/* confdefs.h.  */
2712_ACEOF
2713cat confdefs.h >>conftest.$ac_ext
2714cat >>conftest.$ac_ext <<_ACEOF
2715/* end confdefs.h.  */
2716$ac_declaration
2717int
2718main ()
2719{
2720exit (42);
2721  ;
2722  return 0;
2723}
2724_ACEOF
2725rm -f conftest.$ac_objext
2726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727  (eval $ac_compile) 2>conftest.er1
2728  ac_status=$?
2729  grep -v '^ *+' conftest.er1 >conftest.err
2730  rm -f conftest.er1
2731  cat conftest.err >&5
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); } &&
2734         { ac_try='test -z "$ac_c_werror_flag"
2735                         || test ! -s conftest.err'
2736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737  (eval $ac_try) 2>&5
2738  ac_status=$?
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); }; } &&
2741         { ac_try='test -s conftest.$ac_objext'
2742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743  (eval $ac_try) 2>&5
2744  ac_status=$?
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); }; }; then
2747  break
2748else
2749  echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752fi
2753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754done
2755rm -f conftest*
2756if test -n "$ac_declaration"; then
2757  echo '#ifdef __cplusplus' >>confdefs.h
2758  echo $ac_declaration      >>confdefs.h
2759  echo '#endif'             >>confdefs.h
2760fi
2761
2762else
2763  echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
2766fi
2767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768ac_ext=c
2769ac_cpp='$CPP $CPPFLAGS'
2770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774if test -z "$CC" ; then
2775  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2776echo "$as_me: error: Failed to find a C compiler!" >&2;}
2777   { (exit 1); exit 1; }; }
2778fi
2779# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2780case "$CC" in
2781  clang* ) ;;
2782  cl* | */cl* | CL* | */CL* )
2783    if test "$ac_cv_prog_cc_g" = yes ; then
2784      ac_cv_prog_cc_g=no
2785      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2786echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2787    fi ;;
2788  * )
2789    if test x"$CYGPATH_W" = x ; then
2790      CYGPATH_W=echo
2791    fi
2792    ;;
2793esac
2794CFLAGS="$save_cflags"
2795
2796# add automake conditional so we can recognize cl compiler in makefile
2797coin_cc_is_cl=false
2798case "$CC" in
2799  clang* ) ;;
2800  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2801    coin_cc_is_cl=true
2802    ;;
2803esac
2804
2805
2806if test $coin_cc_is_cl = true; then
2807  COIN_CC_IS_CL_TRUE=
2808  COIN_CC_IS_CL_FALSE='#'
2809else
2810  COIN_CC_IS_CL_TRUE='#'
2811  COIN_CC_IS_CL_FALSE=
2812fi
2813
2814
2815# Check if a project specific CFLAGS variable has been set
2816if test x$COIN_PRJCT != x; then
2817  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2818  if test x$coin_tmp = xset; then
2819    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2820  fi
2821fi
2822
2823if test x"$CFLAGS" = x; then
2824
2825  coin_add_cflags=
2826  coin_opt_cflags=
2827  coin_dbg_cflags=
2828  coin_warn_cflags=
2829
2830  if test "$GCC" = "yes"; then
2831    case "$CC" in
2832      icc* | */icc*)
2833        ;;
2834      *)
2835        coin_opt_cflags="-O3"
2836        coin_add_cflags="-pipe"
2837        coin_dbg_cflags="-g -O0"
2838        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2839        case $build in
2840          *-darwin*)
2841            ;;
2842          *)
2843            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2844            ;;
2845        esac
2846    esac
2847  fi
2848  if test -z "$coin_opt_cflags"; then
2849    case $build in
2850      *-cygwin* | *-mingw*)
2851        case "$CC" in
2852          clang* ) ;;
2853          cl* | */cl* | CL* | */CL*)
2854            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2855              coin_opt_cflags='-MD -O2'
2856              coin_dbg_cflags='-MDd'
2857            else
2858              coin_opt_cflags='-MT -O2'
2859              coin_dbg_cflags='-MTd'
2860            fi
2861            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2862            ;;
2863          icl* | */icl* | ICL* | */ICL*)
2864            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2865              coin_opt_cflags='-MD -Ox'
2866              coin_dbg_cflags='-MDd -debug'
2867            else
2868              coin_opt_cflags='-MT -Ox'
2869              coin_dbg_cflags='-MTd -debug'
2870            fi
2871            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2872            ;;
2873        esac
2874        ;;
2875      *-linux-*)
2876        case "$CC" in
2877          icc* | */icc*)
2878            coin_opt_cflags="-O3 -ip -mp1"
2879            coin_add_cflags=""
2880            coin_dbg_cflags="-g"
2881            # Check if -i_dynamic is necessary (for new glibc library)
2882            CFLAGS=
2883            cat >conftest.$ac_ext <<_ACEOF
2884/* confdefs.h.  */
2885_ACEOF
2886cat confdefs.h >>conftest.$ac_ext
2887cat >>conftest.$ac_ext <<_ACEOF
2888/* end confdefs.h.  */
2889
2890int
2891main ()
2892{
2893int i=0; i++;
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898rm -f conftest.$ac_objext conftest$ac_exeext
2899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2900  (eval $ac_link) 2>conftest.er1
2901  ac_status=$?
2902  grep -v '^ *+' conftest.er1 >conftest.err
2903  rm -f conftest.er1
2904  cat conftest.err >&5
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); } &&
2907         { ac_try='test -z "$ac_c_werror_flag"
2908                         || test ! -s conftest.err'
2909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910  (eval $ac_try) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }; } &&
2914         { ac_try='test -s conftest$ac_exeext'
2915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916  (eval $ac_try) 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }; }; then
2920  :
2921else
2922  echo "$as_me: failed program was:" >&5
2923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925coin_add_cflags="-i_dynamic $coin_add_cflags"
2926fi
2927rm -f conftest.err conftest.$ac_objext \
2928      conftest$ac_exeext conftest.$ac_ext
2929            ;;
2930          pgcc* | */pgcc*)
2931            coin_opt_cflags="-fast"
2932            coin_add_cflags="-Kieee -pc 64"
2933            coin_dbg_cflags="-g"
2934            ;;
2935        esac
2936        ;;
2937      *-ibm-*)
2938        case "$CC" in
2939          xlc* | */xlc* | mpxlc* | */mpxlc*)
2940            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2941            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2942            coin_dbg_cflags="-g"
2943          ;;
2944        esac
2945        ;;
2946      *-hp-*)
2947        coin_opt_cflags="-O"
2948        coin_add_cflags="-Ae"
2949        coin_dbg_cflags="-g"
2950        ;;
2951      *-*-solaris*)
2952        coin_opt_cflags="-xO4"
2953        coin_dbg_cflags="-g"
2954        ;;
2955      *-sgi-*)
2956        coin_opt_cflags="-O -OPT:Olimit=0"
2957        coin_dbg_cflags="-g"
2958        ;;
2959    esac
2960  fi
2961
2962  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2963    coin_dbg_cflags="-g"
2964  fi
2965
2966  if test -z "$coin_opt_cflags"; then
2967    # Try if -O option works if nothing else is set
2968    CFLAGS="-O"
2969    cat >conftest.$ac_ext <<_ACEOF
2970/* confdefs.h.  */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h.  */
2975
2976int
2977main ()
2978{
2979int i=0; i++;
2980  ;
2981  return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext conftest$ac_exeext
2985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986  (eval $ac_link) 2>conftest.er1
2987  ac_status=$?
2988  grep -v '^ *+' conftest.er1 >conftest.err
2989  rm -f conftest.er1
2990  cat conftest.err >&5
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); } &&
2993         { ac_try='test -z "$ac_c_werror_flag"
2994                         || test ! -s conftest.err'
2995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996  (eval $ac_try) 2>&5
2997  ac_status=$?
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); }; } &&
3000         { ac_try='test -s conftest$ac_exeext'
3001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002  (eval $ac_try) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }; }; then
3006  coin_opt_cflags="-O"
3007else
3008  echo "$as_me: failed program was:" >&5
3009sed 's/^/| /' conftest.$ac_ext >&5
3010
3011fi
3012rm -f conftest.err conftest.$ac_objext \
3013      conftest$ac_exeext conftest.$ac_ext
3014  fi
3015
3016  # if PM doesn't want the warning messages, take them out
3017  if test x"$coin_skip_warn_cflags" = xyes; then
3018    coin_warn_cflags=
3019  fi
3020
3021  if test x${DBG_CFLAGS+set} != xset; then
3022    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3023  fi
3024  if test x${OPT_CFLAGS+set} != xset; then
3025    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3026  fi
3027
3028  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3029  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3030
3031  if test "$coin_debug_compile" = "true"; then
3032    CFLAGS="$DBG_CFLAGS"
3033  else
3034    CFLAGS="$OPT_CFLAGS"
3035  fi
3036else
3037  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3038  if test x${DBG_CFLAGS+set} != xset; then
3039    DBG_CFLAGS="$CFLAGS"
3040  fi
3041  if test x${OPT_CFLAGS+set} != xset; then
3042    OPT_CFLAGS="$CFLAGS"
3043  fi
3044fi
3045
3046# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3047if test x$COIN_PRJCT != x; then
3048  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3049fi
3050
3051# Try if CFLAGS works
3052save_CFLAGS="$CFLAGS"
3053cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h.  */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063int i=0; i++;
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext conftest$ac_exeext
3069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3070  (eval $ac_link) 2>conftest.er1
3071  ac_status=$?
3072  grep -v '^ *+' conftest.er1 >conftest.err
3073  rm -f conftest.er1
3074  cat conftest.err >&5
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); } &&
3077         { ac_try='test -z "$ac_c_werror_flag"
3078                         || test ! -s conftest.err'
3079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080  (eval $ac_try) 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }; } &&
3084         { ac_try='test -s conftest$ac_exeext'
3085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086  (eval $ac_try) 2>&5
3087  ac_status=$?
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); }; }; then
3090  :
3091else
3092  echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095CFLAGS=
3096fi
3097rm -f conftest.err conftest.$ac_objext \
3098      conftest$ac_exeext conftest.$ac_ext
3099if test -z "$CFLAGS"; then
3100  { 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
3101echo "$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;}
3102  CFLAGS='-O'
3103  cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h.  */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h.  */
3109
3110int
3111main ()
3112{
3113int i=0; i++;
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext conftest$ac_exeext
3119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3120  (eval $ac_link) 2>conftest.er1
3121  ac_status=$?
3122  grep -v '^ *+' conftest.er1 >conftest.err
3123  rm -f conftest.er1
3124  cat conftest.err >&5
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); } &&
3127         { ac_try='test -z "$ac_c_werror_flag"
3128                         || test ! -s conftest.err'
3129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130  (eval $ac_try) 2>&5
3131  ac_status=$?
3132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133  (exit $ac_status); }; } &&
3134         { ac_try='test -s conftest$ac_exeext'
3135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136  (eval $ac_try) 2>&5
3137  ac_status=$?
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); }; }; then
3140  :
3141else
3142  echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145CFLAGS=
3146fi
3147rm -f conftest.err conftest.$ac_objext \
3148      conftest$ac_exeext conftest.$ac_ext
3149  if test -z "$CFLAGS"; then
3150    { 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
3151echo "$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;}
3152  fi
3153fi
3154
3155{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3156echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3157
3158
3159if test x"$MPICC" = x; then :; else
3160  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3161echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3162  CC="$MPICC"
3163fi
3164
3165# Correct the LD variable if we are using the MS or Intel-windows compiler
3166case "$CC" in
3167  clang* ) ;;
3168  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3169    LD=link
3170    ;;
3171esac
3172
3173ac_ext=c
3174ac_cpp='$CPP $CPPFLAGS'
3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
3180
3181# Get the name of the Fortran compiler and appropriate compiler options
3182case $build in
3183  *-cygwin* | *-mingw*)
3184     if test "$enable_msvc" = yes ; then
3185       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3186     else
3187       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3188     fi ;;
3189  *-*-solaris*)
3190     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3191  *-linux-gnu*)
3192     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3193  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3194 esac
3195
3196
3197
3198
3199
3200ac_ext=f
3201ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3202ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3204
3205
3206
3207
3208
3209
3210coin_has_f77=yes
3211
3212save_fflags="$FFLAGS"
3213
3214# We delete the cached value, since the test might not have been
3215# performed with our choice of compilers earlier
3216$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3217
3218# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3219# coin_f77_comps to see if there's a program that matches one of the names.
3220# If there's no such program, F77 = unavailable. If we match the name,
3221# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3222# compiler.
3223# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3224
3225
3226{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3227echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3228if test -n "$ac_tool_prefix"; then
3229  for ac_prog in $coin_f77_comps
3230  do
3231    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3233echo "$as_me:$LINENO: checking for $ac_word" >&5
3234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235if test "${ac_cv_prog_F77+set}" = set; then
3236  echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238  if test -n "$F77"; then
3239  ac_cv_prog_F77="$F77" # Let the user override the test.
3240else
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244  IFS=$as_save_IFS
3245  test -z "$as_dir" && as_dir=.
3246  for ac_exec_ext in '' $ac_executable_extensions; do
3247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250    break 2
3251  fi
3252done
3253done
3254
3255fi
3256fi
3257F77=$ac_cv_prog_F77
3258if test -n "$F77"; then
3259  echo "$as_me:$LINENO: result: $F77" >&5
3260echo "${ECHO_T}$F77" >&6
3261else
3262  echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264fi
3265
3266    test -n "$F77" && break
3267  done
3268fi
3269if test -z "$F77"; then
3270  ac_ct_F77=$F77
3271  for ac_prog in $coin_f77_comps
3272do
3273  # Extract the first word of "$ac_prog", so it can be a program name with args.
3274set dummy $ac_prog; ac_word=$2
3275echo "$as_me:$LINENO: checking for $ac_word" >&5
3276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  if test -n "$ac_ct_F77"; then
3281  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288  for ac_exec_ext in '' $ac_executable_extensions; do
3289  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290    ac_cv_prog_ac_ct_F77="$ac_prog"
3291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292    break 2
3293  fi
3294done
3295done
3296
3297fi
3298fi
3299ac_ct_F77=$ac_cv_prog_ac_ct_F77
3300if test -n "$ac_ct_F77"; then
3301  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3302echo "${ECHO_T}$ac_ct_F77" >&6
3303else
3304  echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306fi
3307
3308  test -n "$ac_ct_F77" && break
3309done
3310test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3311
3312  F77=$ac_ct_F77
3313fi
3314
3315
3316if test "$F77" != "unavailable" ; then
3317  ac_ext=f
3318ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3319ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3321if test -n "$ac_tool_prefix"; then
3322  for ac_prog in $coin_f77_comps
3323  do
3324    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3325set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3326echo "$as_me:$LINENO: checking for $ac_word" >&5
3327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3328if test "${ac_cv_prog_F77+set}" = set; then
3329  echo $ECHO_N "(cached) $ECHO_C" >&6
3330else
3331  if test -n "$F77"; then
3332  ac_cv_prog_F77="$F77" # Let the user override the test.
3333else
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337  IFS=$as_save_IFS
3338  test -z "$as_dir" && as_dir=.
3339  for ac_exec_ext in '' $ac_executable_extensions; do
3340  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3342    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343    break 2
3344  fi
3345done
3346done
3347
3348fi
3349fi
3350F77=$ac_cv_prog_F77
3351if test -n "$F77"; then
3352  echo "$as_me:$LINENO: result: $F77" >&5
3353echo "${ECHO_T}$F77" >&6
3354else
3355  echo "$as_me:$LINENO: result: no" >&5
3356echo "${ECHO_T}no" >&6
3357fi
3358
3359    test -n "$F77" && break
3360  done
3361fi
3362if test -z "$F77"; then
3363  ac_ct_F77=$F77
3364  for ac_prog in $coin_f77_comps
3365do
3366  # Extract the first word of "$ac_prog", so it can be a program name with args.
3367set dummy $ac_prog; ac_word=$2
3368echo "$as_me:$LINENO: checking for $ac_word" >&5
3369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3370if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3371  echo $ECHO_N "(cached) $ECHO_C" >&6
3372else
3373  if test -n "$ac_ct_F77"; then
3374  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3375else
3376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377for as_dir in $PATH
3378do
3379  IFS=$as_save_IFS
3380  test -z "$as_dir" && as_dir=.
3381  for ac_exec_ext in '' $ac_executable_extensions; do
3382  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383    ac_cv_prog_ac_ct_F77="$ac_prog"
3384    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385    break 2
3386  fi
3387done
3388done
3389
3390fi
3391fi
3392ac_ct_F77=$ac_cv_prog_ac_ct_F77
3393if test -n "$ac_ct_F77"; then
3394  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3395echo "${ECHO_T}$ac_ct_F77" >&6
3396else
3397  echo "$as_me:$LINENO: result: no" >&5
3398echo "${ECHO_T}no" >&6
3399fi
3400
3401  test -n "$ac_ct_F77" && break
3402done
3403
3404  F77=$ac_ct_F77
3405fi
3406
3407
3408# Provide some information about the compiler.
3409echo "$as_me:3409:" \
3410     "checking for Fortran 77 compiler version" >&5
3411ac_compiler=`set X $ac_compile; echo $2`
3412{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3413  (eval $ac_compiler --version </dev/null >&5) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); }
3417{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3418  (eval $ac_compiler -v </dev/null >&5) 2>&5
3419  ac_status=$?
3420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421  (exit $ac_status); }
3422{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3423  (eval $ac_compiler -V </dev/null >&5) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }
3427rm -f a.out
3428
3429# If we don't use `.F' as extension, the preprocessor is not run on the
3430# input file.  (Note that this only needs to work for GNU compilers.)
3431ac_save_ext=$ac_ext
3432ac_ext=F
3433echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3434echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3435if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3436  echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438  cat >conftest.$ac_ext <<_ACEOF
3439      program main
3440#ifndef __GNUC__
3441       choke me
3442#endif
3443
3444      end
3445_ACEOF
3446rm -f conftest.$ac_objext
3447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448  (eval $ac_compile) 2>conftest.er1
3449  ac_status=$?
3450  grep -v '^ *+' conftest.er1 >conftest.err
3451  rm -f conftest.er1
3452  cat conftest.err >&5
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); } &&
3455         { ac_try='test -z "$ac_f77_werror_flag"
3456                         || test ! -s conftest.err'
3457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458  (eval $ac_try) 2>&5
3459  ac_status=$?
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); }; } &&
3462         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3468  ac_compiler_gnu=yes
3469else
3470  echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473ac_compiler_gnu=no
3474fi
3475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3476ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3477
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3480echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3481ac_ext=$ac_save_ext
3482ac_test_FFLAGS=${FFLAGS+set}
3483ac_save_FFLAGS=$FFLAGS
3484FFLAGS=
3485echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3486echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3487if test "${ac_cv_prog_f77_g+set}" = set; then
3488  echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490  FFLAGS=-g
3491cat >conftest.$ac_ext <<_ACEOF
3492      program main
3493
3494      end
3495_ACEOF
3496rm -f conftest.$ac_objext
3497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498  (eval $ac_compile) 2>conftest.er1
3499  ac_status=$?
3500  grep -v '^ *+' conftest.er1 >conftest.err
3501  rm -f conftest.er1
3502  cat conftest.err >&5
3503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); } &&
3505         { ac_try='test -z "$ac_f77_werror_flag"
3506                         || test ! -s conftest.err'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; } &&
3512         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3518  ac_cv_prog_f77_g=yes
3519else
3520  echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523ac_cv_prog_f77_g=no
3524fi
3525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3526
3527fi
3528echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3529echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3530if test "$ac_test_FFLAGS" = set; then
3531  FFLAGS=$ac_save_FFLAGS
3532elif test $ac_cv_prog_f77_g = yes; then
3533  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3534    FFLAGS="-g -O2"
3535  else
3536    FFLAGS="-g"
3537  fi
3538else
3539  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3540    FFLAGS="-O2"
3541  else
3542    FFLAGS=
3543  fi
3544fi
3545
3546G77=`test $ac_compiler_gnu = yes && echo yes`
3547ac_ext=f
3548ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3549ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3551
3552else
3553  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3554echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3555fi
3556
3557FFLAGS="$save_fflags"
3558
3559# Check if a project specific FFLAGS variable has been set
3560if test x$COIN_PRJCT != x; then
3561  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3562  if test x$coin_tmp = xset; then
3563    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3564  fi
3565fi
3566
3567if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3568
3569  coin_add_fflags=
3570  coin_opt_fflags=
3571  coin_dbg_fflags=
3572  coin_warn_fflags=
3573
3574  if test "$G77" = "yes"; then
3575    coin_opt_fflags="-O3"
3576    coin_add_fflags="-pipe"
3577    coin_dbg_fflags="-g -O0"
3578  else
3579    case $build in
3580      *-cygwin* | *-mingw*)
3581        case $F77 in
3582          ifort* | */ifort* | IFORT* | */IFORT* )
3583            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3584              coin_opt_fflags='-MD -O3'
3585              coin_dbg_fflags='-MDd -debug'
3586            else
3587              coin_opt_fflags='-MT -O3'
3588              coin_dbg_fflags='-MTd -debug'
3589            fi
3590            coin_add_fflags='-fpp -nologo'
3591          ;;
3592          compile_f2c*)
3593            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3594              coin_opt_fflags='-MD -O2'
3595              coin_dbg_fflags='-MDd'
3596            else
3597              coin_opt_fflags='-MT -O2'
3598              coin_dbg_fflags='-MTd'
3599            fi
3600            coin_add_fflags='-nologo -wd4996'
3601          ;;
3602        esac
3603        ;;
3604      *-linux-*)
3605        case $F77 in
3606          ifc* | */ifc* | ifort* | */ifort*)
3607            coin_opt_fflags="-O3 -ip"
3608            coin_add_fflags="-cm -w90 -w95"
3609            coin_dbg_fflags="-g -CA -CB -CS"
3610            # Check if -i_dynamic is necessary (for new glibc library)
3611            FFLAGS=
3612            cat >conftest.$ac_ext <<_ACEOF
3613      program main
3614      write(*,*) 'Hello world'
3615      end
3616_ACEOF
3617rm -f conftest.$ac_objext conftest$ac_exeext
3618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619  (eval $ac_link) 2>conftest.er1
3620  ac_status=$?
3621  grep -v '^ *+' conftest.er1 >conftest.err
3622  rm -f conftest.er1
3623  cat conftest.err >&5
3624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625  (exit $ac_status); } &&
3626         { ac_try='test -z "$ac_f77_werror_flag"
3627                         || test ! -s conftest.err'
3628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629  (eval $ac_try) 2>&5
3630  ac_status=$?
3631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632  (exit $ac_status); }; } &&
3633         { ac_try='test -s conftest$ac_exeext'
3634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635  (eval $ac_try) 2>&5
3636  ac_status=$?
3637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638  (exit $ac_status); }; }; then
3639  :
3640else
3641  echo "$as_me: failed program was:" >&5
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644coin_add_fflags="-i_dynamic $coin_add_fflags"
3645fi
3646rm -f conftest.err conftest.$ac_objext \
3647      conftest$ac_exeext conftest.$ac_ext
3648            ;;
3649          pgf77* | */pgf77* | pgf90* | */pgf90*)
3650            coin_opt_fflags="-fast"
3651            coin_add_fflags="-Kieee -pc 64"
3652            coin_dbg_fflags="-g"
3653          ;;
3654        esac
3655        ;;
3656      *-ibm-*)
3657        case "$F77" in
3658          xlf* | */xlf* | mpxlf* | */mpxlf* )
3659            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3660            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3661            coin_dbg_fflags="-g -C"
3662            ;;
3663        esac
3664        ;;
3665      *-hp-*)
3666        coin_opt_fflags="+O3"
3667        coin_add_fflags="+U77"
3668        coin_dbg_fflags="-C -g"
3669        ;;
3670      *-*-solaris*)
3671        coin_opt_fflags="-O4"
3672        coin_dbg_fflags="-g"
3673        ;;
3674      *-sgi-*)
3675        coin_opt_fflags="-O5 -OPT:Olimit=0"
3676        coin_dbg_fflags="-g"
3677        ;;
3678    esac
3679  fi
3680
3681  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3682    coin_dbg_fflags="-g"
3683  fi
3684
3685  if test -z "$coin_opt_fflags"; then
3686    # Try if -O option works if nothing else is set
3687    FFLAGS=-O
3688    cat >conftest.$ac_ext <<_ACEOF
3689      program main
3690      integer i
3691      end
3692_ACEOF
3693rm -f conftest.$ac_objext conftest$ac_exeext
3694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3695  (eval $ac_link) 2>conftest.er1
3696  ac_status=$?
3697  grep -v '^ *+' conftest.er1 >conftest.err
3698  rm -f conftest.er1
3699  cat conftest.err >&5
3700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701  (exit $ac_status); } &&
3702         { ac_try='test -z "$ac_f77_werror_flag"
3703                         || test ! -s conftest.err'
3704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705  (eval $ac_try) 2>&5
3706  ac_status=$?
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); }; } &&
3709         { ac_try='test -s conftest$ac_exeext'
3710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711  (eval $ac_try) 2>&5
3712  ac_status=$?
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); }; }; then
3715  coin_opt_fflags="-O"
3716else
3717  echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720fi
3721rm -f conftest.err conftest.$ac_objext \
3722      conftest$ac_exeext conftest.$ac_ext
3723  fi
3724
3725  # if PM doesn't want the warning messages, take them out
3726  if test x"$coin_skip_warn_fflags" = xyes; then
3727    coin_warn_fflags=
3728  fi
3729
3730  if test x${DBG_FFLAGS+set} != xset; then
3731    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3732  fi
3733  if test x${OPT_FFLAGS+set} != xset; then
3734    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3735  fi
3736
3737  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3738  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3739
3740  if test "$coin_debug_compile" = "true"; then
3741    FFLAGS="$DBG_FFLAGS"
3742  else
3743    FFLAGS="$OPT_FFLAGS"
3744  fi
3745else
3746  FFLAGS="$FFLAGS $ADD_FFLAGS"
3747  if test x${DBG_FFLAGS+set} != xset; then
3748    DBG_FFLAGS="$FFLAGS"
3749  fi
3750  if test x${OPT_FFLAGS+set} != xset; then
3751    OPT_FFLAGS="$FFLAGS"
3752  fi
3753fi
3754
3755# Try if FFLAGS works
3756if test "$F77" != "unavailable" ; then
3757  cat >conftest.$ac_ext <<_ACEOF
3758      program main
3759      integer i
3760      end
3761_ACEOF
3762rm -f conftest.$ac_objext conftest$ac_exeext
3763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3764  (eval $ac_link) 2>conftest.er1
3765  ac_status=$?
3766  grep -v '^ *+' conftest.er1 >conftest.err
3767  rm -f conftest.er1
3768  cat conftest.err >&5
3769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770  (exit $ac_status); } &&
3771         { ac_try='test -z "$ac_f77_werror_flag"
3772                         || test ! -s conftest.err'
3773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774  (eval $ac_try) 2>&5
3775  ac_status=$?
3776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777  (exit $ac_status); }; } &&
3778         { ac_try='test -s conftest$ac_exeext'
3779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780  (eval $ac_try) 2>&5
3781  ac_status=$?
3782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783  (exit $ac_status); }; }; then
3784  :
3785else
3786  echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789FFLAGS=
3790fi
3791rm -f conftest.err conftest.$ac_objext \
3792      conftest$ac_exeext conftest.$ac_ext
3793  if test -z "$FFLAGS"; then
3794    { 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
3795echo "$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;}
3796    FFLAGS='-O'
3797    cat >conftest.$ac_ext <<_ACEOF
3798      program main
3799      integer i
3800      end
3801_ACEOF
3802rm -f conftest.$ac_objext conftest$ac_exeext
3803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3804  (eval $ac_link) 2>conftest.er1
3805  ac_status=$?
3806  grep -v '^ *+' conftest.er1 >conftest.err
3807  rm -f conftest.er1
3808  cat conftest.err >&5
3809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810  (exit $ac_status); } &&
3811         { ac_try='test -z "$ac_f77_werror_flag"
3812                         || test ! -s conftest.err'
3813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814  (eval $ac_try) 2>&5
3815  ac_status=$?
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); }; } &&
3818         { ac_try='test -s conftest$ac_exeext'
3819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820  (eval $ac_try) 2>&5
3821  ac_status=$?
3822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823  (exit $ac_status); }; }; then
3824  :
3825else
3826  echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829FFLAGS=
3830fi
3831rm -f conftest.err conftest.$ac_objext \
3832      conftest$ac_exeext conftest.$ac_ext
3833    if test -z "$FFLAGS"; then
3834      { 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
3835echo "$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;}
3836    fi
3837  fi
3838fi
3839
3840{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3841echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3842
3843
3844if test x"$MPIF77" = x; then :; else
3845  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3846echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3847  F77="$MPIF77"
3848fi
3849
3850# correct the LD variable if we use the intel fortran compiler in windows
3851case "$F77" in
3852  ifort* | */ifort* | IFORT* | */IFORT*)
3853    LD=link
3854    ;;
3855esac
3856
3857ac_ext=c
3858ac_cpp='$CPP $CPPFLAGS'
3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863
3864
3865# Check if pkg-config is available (to setup addlibs file)
3866
3867
3868# Check whether --enable-pkg-config or --disable-pkg-config was given.
3869if test "${enable_pkg_config+set}" = set; then
3870  enableval="$enable_pkg_config"
3871  use_pkgconfig="$enableval"
3872else
3873  if test x$coin_cc_is_cl = xtrue; then
3874     use_pkgconfig=no
3875   else
3876     use_pkgconfig=yes
3877   fi
3878fi;
3879
3880if test $use_pkgconfig = yes ; then
3881  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3882    if test -n "$ac_tool_prefix"; then
3883  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3884set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3885echo "$as_me:$LINENO: checking for $ac_word" >&5
3886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3888  echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890  if test -n "$PKG_CONFIG"; then
3891  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3892else
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896  IFS=$as_save_IFS
3897  test -z "$as_dir" && as_dir=.
3898  for ac_exec_ext in '' $ac_executable_extensions; do
3899  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3901    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902    break 2
3903  fi
3904done
3905done
3906
3907fi
3908fi
3909PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3910if test -n "$PKG_CONFIG"; then
3911  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3912echo "${ECHO_T}$PKG_CONFIG" >&6
3913else
3914  echo "$as_me:$LINENO: result: no" >&5
3915echo "${ECHO_T}no" >&6
3916fi
3917
3918fi
3919if test -z "$ac_cv_prog_PKG_CONFIG"; then
3920  ac_ct_PKG_CONFIG=$PKG_CONFIG
3921  # Extract the first word of "pkg-config", so it can be a program name with args.
3922set dummy pkg-config; ac_word=$2
3923echo "$as_me:$LINENO: checking for $ac_word" >&5
3924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3926  echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928  if test -n "$ac_ct_PKG_CONFIG"; then
3929  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3930else
3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH
3933do
3934  IFS=$as_save_IFS
3935  test -z "$as_dir" && as_dir=.
3936  for ac_exec_ext in '' $ac_executable_extensions; do
3937  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940    break 2
3941  fi
3942done
3943done
3944
3945fi
3946fi
3947ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3948if test -n "$ac_ct_PKG_CONFIG"; then
3949  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3950echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3951else
3952  echo "$as_me:$LINENO: result: no" >&5
3953echo "${ECHO_T}no" >&6
3954fi
3955
3956  PKG_CONFIG=$ac_ct_PKG_CONFIG
3957else
3958  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3959fi
3960
3961  fi
3962  if test -n "$PKG_CONFIG"; then
3963    _pkg_min_version=0.16.0
3964    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3965echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3966    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3967      echo "$as_me:$LINENO: result: yes" >&5
3968echo "${ECHO_T}yes" >&6
3969    else
3970      echo "$as_me:$LINENO: result: no" >&5
3971echo "${ECHO_T}no" >&6
3972      PKG_CONFIG=""
3973    fi
3974  fi
3975
3976  # check if pkg-config supports the short-errors flag
3977  if test -n "$PKG_CONFIG" && \
3978    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3979    pkg_short_errors=" --short-errors "
3980  else
3981    pkg_short_errors=""
3982  fi
3983fi
3984
3985
3986
3987if test -n "$PKG_CONFIG"; then
3988  COIN_HAS_PKGCONFIG_TRUE=
3989  COIN_HAS_PKGCONFIG_FALSE='#'
3990else
3991  COIN_HAS_PKGCONFIG_TRUE='#'
3992  COIN_HAS_PKGCONFIG_FALSE=
3993fi
3994
3995
3996
3997# assemble pkg-config search path for installed projects
3998COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3999
4000# 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
4001# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4002# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4003if test "x${prefix}" = xNONE ; then
4004  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4005else
4006  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4007fi
4008
4009
4010# Check whether --with-coin-instdir or --without-coin-instdir was given.
4011if test "${with_coin_instdir+set}" = set; then
4012  withval="$with_coin_instdir"
4013  if test -d "$withval"; then : ; else
4014     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4015echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4016   { (exit 1); exit 1; }; }
4017   fi
4018   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4019
4020fi;
4021
4022
4023
4024# assemble additional pkg-config search paths for uninstalled projects
4025if test x$coin_projectdir = xyes ; then
4026  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4027  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4028  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4029  # 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)
4030  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4031  if test -f ../coin_subdirs.txt ; then
4032    for i in `cat ../coin_subdirs.txt` ; do
4033      if test -d ../$i ; then
4034        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4035      fi
4036      if test -d ../$i/pkgconfig ; then
4037        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4038      fi
4039    done
4040  fi
4041
4042  if test -f ../../coin_subdirs.txt ; then
4043    for i in `cat ../../coin_subdirs.txt` ; do
4044      if test -d ../../$i ; then
4045        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4046      fi
4047      if test -d ../../$i/pkgconfig ; then
4048        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4049      fi
4050    done
4051  fi
4052
4053
4054fi
4055
4056if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4057  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
4058echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
4059fi
4060
4061
4062
4063# Get the linker flags (FLIBS) that are required for linking against this blas library
4064
4065# get FLIBS
4066ac_ext=f
4067ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4068ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4070echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4071echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4072if test "${ac_cv_prog_f77_v+set}" = set; then
4073  echo $ECHO_N "(cached) $ECHO_C" >&6
4074else
4075  cat >conftest.$ac_ext <<_ACEOF
4076      program main
4077
4078      end
4079_ACEOF
4080rm -f conftest.$ac_objext
4081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082  (eval $ac_compile) 2>conftest.er1
4083  ac_status=$?
4084  grep -v '^ *+' conftest.er1 >conftest.err
4085  rm -f conftest.er1
4086  cat conftest.err >&5
4087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088  (exit $ac_status); } &&
4089         { ac_try='test -z "$ac_f77_werror_flag"
4090                         || test ! -s conftest.err'
4091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092  (eval $ac_try) 2>&5
4093  ac_status=$?
4094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095  (exit $ac_status); }; } &&
4096         { ac_try='test -s conftest.$ac_objext'
4097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098  (eval $ac_try) 2>&5
4099  ac_status=$?
4100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101  (exit $ac_status); }; }; then
4102  ac_cv_prog_f77_v=
4103# Try some options frequently used verbose output
4104for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4105  cat >conftest.$ac_ext <<_ACEOF
4106      program main
4107
4108      end
4109_ACEOF
4110
4111# Compile and link our simple test program by passing a flag (argument
4112# 1 to this macro) to the Fortran compiler in order to get
4113# "verbose" output that we can then parse for the Fortran linker
4114# flags.
4115ac_save_FFLAGS=$FFLAGS
4116FFLAGS="$FFLAGS $ac_verb"
4117(eval echo $as_me:4117: \"$ac_link\") >&5
4118ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4119echo "$ac_f77_v_output" >&5
4120FFLAGS=$ac_save_FFLAGS
4121
4122rm -f conftest*
4123
4124# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4125# /foo, /bar, and /baz are search directories for the Fortran linker.
4126# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4127ac_f77_v_output="`echo $ac_f77_v_output |
4128        grep 'LPATH is:' |
4129        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4130
4131case $ac_f77_v_output in
4132  # If we are using xlf then replace all the commas with spaces.
4133  *xlfentry*)
4134    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4135
4136  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4137  # $LIBS confuse us, and the libraries appear later in the output anyway).
4138  *mGLOB_options_string*)
4139    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4140
4141  # If we are using Cray Fortran then delete quotes.
4142  # Use "\"" instead of '"' for font-lock-mode.
4143  # FIXME: a more general fix for quoted arguments with spaces?
4144  *cft90*)
4145    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4146esac
4147
4148
4149  # look for -l* and *.a constructs in the output
4150  for ac_arg in $ac_f77_v_output; do
4151     case $ac_arg in
4152        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4153          ac_cv_prog_f77_v=$ac_verb
4154          break 2 ;;
4155     esac
4156  done
4157done
4158if test -z "$ac_cv_prog_f77_v"; then
4159   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4160echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4161fi
4162else
4163  echo "$as_me: failed program was:" >&5
4164sed 's/^/| /' conftest.$ac_ext >&5
4165
4166{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4167echo "$as_me: WARNING: compilation failed" >&2;}
4168fi
4169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4170
4171fi
4172echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4173echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4174echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4175echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4176if test "${ac_cv_f77_libs+set}" = set; then
4177  echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179  if test "x$FLIBS" != "x"; then
4180  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4181else
4182
4183cat >conftest.$ac_ext <<_ACEOF
4184      program main
4185
4186      end
4187_ACEOF
4188
4189# Compile and link our simple test program by passing a flag (argument
4190# 1 to this macro) to the Fortran compiler in order to get
4191# "verbose" output that we can then parse for the Fortran linker
4192# flags.
4193ac_save_FFLAGS=$FFLAGS
4194FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4195(eval echo $as_me:4195: \"$ac_link\") >&5
4196ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4197echo "$ac_f77_v_output" >&5
4198FFLAGS=$ac_save_FFLAGS
4199
4200rm -f conftest*
4201
4202# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4203# /foo, /bar, and /baz are search directories for the Fortran linker.
4204# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4205ac_f77_v_output="`echo $ac_f77_v_output |
4206        grep 'LPATH is:' |
4207        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4208
4209case $ac_f77_v_output in
4210  # If we are using xlf then replace all the commas with spaces.
4211  *xlfentry*)
4212    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4213
4214  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4215  # $LIBS confuse us, and the libraries appear later in the output anyway).
4216  *mGLOB_options_string*)
4217    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4218
4219  # If we are using Cray Fortran then delete quotes.
4220  # Use "\"" instead of '"' for font-lock-mode.
4221  # FIXME: a more general fix for quoted arguments with spaces?
4222  *cft90*)
4223    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4224esac
4225
4226
4227
4228ac_cv_f77_libs=
4229
4230# Save positional arguments (if any)
4231ac_save_positional="$@"
4232
4233set X $ac_f77_v_output
4234while test $# != 1; do
4235  shift
4236  ac_arg=$1
4237  case $ac_arg in
4238        [\\/]*.a | ?:[\\/]*.a)
4239            ac_exists=false
4240  for ac_i in $ac_cv_f77_libs; do
4241    if test x"$ac_arg" = x"$ac_i"; then
4242      ac_exists=true
4243      break
4244    fi
4245  done
4246
4247  if test x"$ac_exists" = xtrue; then
4248  :
4249else
4250  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4251fi
4252
4253          ;;
4254        -bI:*)
4255            ac_exists=false
4256  for ac_i in $ac_cv_f77_libs; do
4257    if test x"$ac_arg" = x"$ac_i"; then
4258      ac_exists=true
4259      break
4260    fi
4261  done
4262
4263  if test x"$ac_exists" = xtrue; then
4264  :
4265else
4266  if test "$ac_compiler_gnu" = yes; then
4267  for ac_link_opt in $ac_arg; do
4268    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4269  done
4270else
4271  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4272fi
4273fi
4274
4275          ;;
4276          # Ignore these flags.
4277        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4278          ;;
4279        -lkernel32)
4280          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4281          ;;
4282        -[LRuY])
4283          # These flags, when seen by themselves, take an argument.
4284          # We remove the space between option and argument and re-iterate
4285          # unless we find an empty arg or a new option (starting with -)
4286          case $2 in
4287             "" | -*);;
4288             *)
4289                ac_arg="$ac_arg$2"
4290                shift; shift
4291                set X $ac_arg "$@"
4292                ;;
4293          esac
4294          ;;
4295        -YP,*)
4296          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4297              ac_exists=false
4298  for ac_i in $ac_cv_f77_libs; do
4299    if test x"$ac_j" = x"$ac_i"; then
4300      ac_exists=true
4301      break
4302    fi
4303  done
4304
4305  if test x"$ac_exists" = xtrue; then
4306  :
4307else
4308  ac_arg="$ac_arg $ac_j"
4309                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4310fi
4311
4312          done
4313          ;;
4314        -[lLR]*)
4315            ac_exists=false
4316  for ac_i in $ac_cv_f77_libs; do
4317    if test x"$ac_arg" = x"$ac_i"; then
4318      ac_exists=true
4319      break
4320    fi
4321  done
4322
4323  if test x"$ac_exists" = xtrue; then
4324  :
4325else
4326  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4327fi
4328
4329          ;;
4330          # Ignore everything else.
4331  esac
4332done
4333# restore positional arguments
4334set X $ac_save_positional; shift
4335
4336# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4337# then we insist that the "run path" must be an absolute path (i.e. it
4338# must begin with a "/").
4339case `(uname -sr) 2>/dev/null` in
4340   "SunOS 5"*)
4341      ac_ld_run_path=`echo $ac_f77_v_output |
4342                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4343      test "x$ac_ld_run_path" != x &&
4344        if test "$ac_compiler_gnu" = yes; then
4345  for ac_link_opt in $ac_ld_run_path; do
4346    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4347  done
4348else
4349  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4350fi
4351      ;;
4352esac
4353fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4354
4355fi
4356echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4357echo "${ECHO_T}$ac_cv_f77_libs" >&6
4358FLIBS="$ac_cv_f77_libs"
4359
4360
4361ac_ext=c
4362ac_cpp='$CPP $CPPFLAGS'
4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366
4367orig_FLIBS="$FLIBS"
4368
4369# If FLIBS has been set by the user, we just restore its value here
4370if test x"$save_FLIBS" != x; then
4371  FLIBS="$save_FLIBS"
4372else
4373  # This is to correct a missing exclusion in autoconf 2.59
4374  if test x"$FLIBS" != x; then
4375    my_flibs=
4376    for flag in $FLIBS; do
4377      case $flag in
4378        -lcrt*.o) ;;
4379        -lcygwin) ;;
4380        -lgcc*)   ;;
4381               *) my_flibs="$my_flibs $flag" ;;
4382      esac
4383    done
4384    FLIBS="$my_flibs"
4385  fi
4386
4387  case $build in
4388  # The following is a fix to define FLIBS for ifort on Windows
4389  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4390  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4391  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4392  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4393  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4394     *-cygwin* | *-mingw*)
4395       case "$F77" in
4396#         ifort* | */ifort* | IFORT* | */IFORT*)
4397#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4398#           if "$coin_debug_compile" = true ; then
4399#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4400#           else
4401#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4402#           fi
4403#           ;;
4404         compile_f2c*)
4405           FLIBS=`$F77 -FLIBS` ;;
4406       esac;;
4407     *-hp-*)
4408         FLIBS="$FLIBS -lm";;
4409     *-ibm-*)
4410         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4411     *-linux-*)
4412       case "$F77" in
4413         pgf77* | */pgf77* | pgf90* | */pgf90*)
4414# ask linker to go through the archives multiple times
4415# (the Fortran compiler seems to do that automatically...)
4416           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4417       esac
4418  esac
4419  ac_cv_f77_libs="$FLIBS"
4420fi
4421
4422if test "x$orig_FLIBS" != "x$FLIBS" ; then
4423  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4424echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4425fi
4426
4427ac_ext=f
4428ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4429ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4431
4432echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4433echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4434if test "${ac_cv_f77_dummy_main+set}" = set; then
4435  echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437  ac_f77_dm_save_LIBS=$LIBS
4438 LIBS="$LIBS $FLIBS"
4439 ac_fortran_dm_var=F77_DUMMY_MAIN
4440 ac_ext=c
4441ac_cpp='$CPP $CPPFLAGS'
4442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445
4446 # First, try linking without a dummy main:
4447 cat >conftest.$ac_ext <<_ACEOF
4448/* confdefs.h.  */
4449_ACEOF
4450cat confdefs.h >>conftest.$ac_ext
4451cat >>conftest.$ac_ext <<_ACEOF
4452/* end confdefs.h.  */
4453
4454#ifdef F77_DUMMY_MAIN
4455
4456#  ifdef __cplusplus
4457     extern "C"
4458#  endif
4459   int F77_DUMMY_MAIN() { return 1; }
4460
4461#endif
4462int
4463main ()
4464{
4465
4466  ;
4467  return 0;
4468}
4469_ACEOF
4470rm -f conftest.$ac_objext conftest$ac_exeext
4471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4472  (eval $ac_link) 2>conftest.er1
4473  ac_status=$?
4474  grep -v '^ *+' conftest.er1 >conftest.err
4475  rm -f conftest.er1
4476  cat conftest.err >&5
4477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478  (exit $ac_status); } &&
4479         { ac_try='test -z "$ac_c_werror_flag"
4480                         || test ! -s conftest.err'
4481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482  (eval $ac_try) 2>&5
4483  ac_status=$?
4484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485  (exit $ac_status); }; } &&
4486         { ac_try='test -s conftest$ac_exeext'
4487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488  (eval $ac_try) 2>&5
4489  ac_status=$?
4490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491  (exit $ac_status); }; }; then
4492  ac_cv_fortran_dummy_main=none
4493else
4494  echo "$as_me: failed program was:" >&5
4495sed 's/^/| /' conftest.$ac_ext >&5
4496
4497ac_cv_fortran_dummy_main=unknown
4498fi
4499rm -f conftest.err conftest.$ac_objext \
4500      conftest$ac_exeext conftest.$ac_ext
4501
4502 if test $ac_cv_fortran_dummy_main = unknown; then
4503   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4504     cat >conftest.$ac_ext <<_ACEOF
4505/* confdefs.h.  */
4506_ACEOF
4507cat confdefs.h >>conftest.$ac_ext
4508cat >>conftest.$ac_ext <<_ACEOF
4509/* end confdefs.h.  */
4510#define $ac_fortran_dm_var $ac_func
4511#ifdef F77_DUMMY_MAIN
4512
4513#  ifdef __cplusplus
4514     extern "C"
4515#  endif
4516   int F77_DUMMY_MAIN() { return 1; }
4517
4518#endif
4519int
4520main ()
4521{
4522
4523  ;
4524  return 0;
4525}
4526_ACEOF
4527rm -f conftest.$ac_objext conftest$ac_exeext
4528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4529  (eval $ac_link) 2>conftest.er1
4530  ac_status=$?
4531  grep -v '^ *+' conftest.er1 >conftest.err
4532  rm -f conftest.er1
4533  cat conftest.err >&5
4534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535  (exit $ac_status); } &&
4536         { ac_try='test -z "$ac_c_werror_flag"
4537                         || test ! -s conftest.err'
4538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539  (eval $ac_try) 2>&5
4540  ac_status=$?
4541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); }; } &&
4543         { ac_try='test -s conftest$ac_exeext'
4544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545  (eval $ac_try) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; }; then
4549  ac_cv_fortran_dummy_main=$ac_func; break
4550else
4551  echo "$as_me: failed program was:" >&5
4552sed 's/^/| /' conftest.$ac_ext >&5
4553
4554fi
4555rm -f conftest.err conftest.$ac_objext \
4556      conftest$ac_exeext conftest.$ac_ext
4557   done
4558 fi
4559 ac_ext=f
4560ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4561ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4563 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4564 rm -f conftest*
4565 LIBS=$ac_f77_dm_save_LIBS
4566
4567fi
4568echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4569echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4570F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4571if test "$F77_DUMMY_MAIN" != unknown; then
4572  if test $F77_DUMMY_MAIN != none; then
4573
4574cat >>confdefs.h <<_ACEOF
4575#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4576_ACEOF
4577
4578  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4579
4580cat >>confdefs.h <<\_ACEOF
4581#define FC_DUMMY_MAIN_EQ_F77 1
4582_ACEOF
4583
4584  fi
4585fi
4586else
4587  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4588See \`config.log' for more details." >&5
4589echo "$as_me: error: linking to Fortran libraries from C fails
4590See \`config.log' for more details." >&2;}
4591   { (exit 1); exit 1; }; }
4592fi
4593
4594
4595ac_ext=f
4596ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4597ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4599
4600ac_ext=f
4601ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4602ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4604echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4605echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4606if test "${ac_cv_f77_mangling+set}" = set; then
4607  echo $ECHO_N "(cached) $ECHO_C" >&6
4608else
4609  cat >conftest.$ac_ext <<_ACEOF
4610      subroutine foobar()
4611      return
4612      end
4613      subroutine foo_bar()
4614      return
4615      end
4616_ACEOF
4617rm -f conftest.$ac_objext
4618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4619  (eval $ac_compile) 2>conftest.er1
4620  ac_status=$?
4621  grep -v '^ *+' conftest.er1 >conftest.err
4622  rm -f conftest.er1
4623  cat conftest.err >&5
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); } &&
4626         { ac_try='test -z "$ac_f77_werror_flag"
4627                         || test ! -s conftest.err'
4628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629  (eval $ac_try) 2>&5
4630  ac_status=$?
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); }; } &&
4633         { ac_try='test -s conftest.$ac_objext'
4634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635  (eval $ac_try) 2>&5
4636  ac_status=$?
4637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638  (exit $ac_status); }; }; then
4639  mv conftest.$ac_objext cfortran_test.$ac_objext
4640
4641  ac_save_LIBS=$LIBS
4642  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4643
4644  ac_ext=c
4645ac_cpp='$CPP $CPPFLAGS'
4646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649  ac_success=no
4650  for ac_foobar in foobar FOOBAR; do
4651    for ac_underscore in "" "_"; do
4652      ac_func="$ac_foobar$ac_underscore"
4653      cat >conftest.$ac_ext <<_ACEOF
4654/* confdefs.h.  */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h.  */
4659
4660/* Override any gcc2 internal prototype to avoid an error.  */
4661#ifdef __cplusplus
4662extern "C"
4663#endif
4664/* We use char because int might match the return type of a gcc2
4665   builtin and then its argument prototype would still apply.  */
4666char $ac_func ();
4667#ifdef F77_DUMMY_MAIN
4668
4669#  ifdef __cplusplus
4670     extern "C"
4671#  endif
4672   int F77_DUMMY_MAIN() { return 1; }
4673
4674#endif
4675int
4676main ()
4677{
4678$ac_func ();
4679  ;
4680  return 0;
4681}
4682_ACEOF
4683rm -f conftest.$ac_objext conftest$ac_exeext
4684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685  (eval $ac_link) 2>conftest.er1
4686  ac_status=$?
4687  grep -v '^ *+' conftest.er1 >conftest.err
4688  rm -f conftest.er1
4689  cat conftest.err >&5
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); } &&
4692         { ac_try='test -z "$ac_c_werror_flag"
4693                         || test ! -s conftest.err'
4694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695  (eval $ac_try) 2>&5
4696  ac_status=$?
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); }; } &&
4699         { ac_try='test -s conftest$ac_exeext'
4700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701  (eval $ac_try) 2>&5
4702  ac_status=$?
4703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704  (exit $ac_status); }; }; then
4705  ac_success=yes; break 2
4706else
4707  echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710fi
4711rm -f conftest.err conftest.$ac_objext \
4712      conftest$ac_exeext conftest.$ac_ext
4713    done
4714  done
4715  ac_ext=f
4716ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4717ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4719
4720  if test "$ac_success" = "yes"; then
4721     case $ac_foobar in
4722        foobar)
4723           ac_case=lower
4724           ac_foo_bar=foo_bar
4725           ;;
4726        FOOBAR)
4727           ac_case=upper
4728           ac_foo_bar=FOO_BAR
4729           ;;
4730     esac
4731
4732     ac_ext=c
4733ac_cpp='$CPP $CPPFLAGS'
4734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737     ac_success_extra=no
4738     for ac_extra in "" "_"; do
4739        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4740        cat >conftest.$ac_ext <<_ACEOF
4741/* confdefs.h.  */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h.  */
4746
4747/* Override any gcc2 internal prototype to avoid an error.  */
4748#ifdef __cplusplus
4749extern "C"
4750#endif
4751/* We use char because int might match the return type of a gcc2
4752   builtin and then its argument prototype would still apply.  */
4753char $ac_func ();
4754#ifdef F77_DUMMY_MAIN
4755
4756#  ifdef __cplusplus
4757     extern "C"
4758#  endif
4759   int F77_DUMMY_MAIN() { return 1; }
4760
4761#endif
4762int
4763main ()
4764{
4765$ac_func ();
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770rm -f conftest.$ac_objext conftest$ac_exeext
4771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4772  (eval $ac_link) 2>conftest.er1
4773  ac_status=$?
4774  grep -v '^ *+' conftest.er1 >conftest.err
4775  rm -f conftest.er1
4776  cat conftest.err >&5
4777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778  (exit $ac_status); } &&
4779         { ac_try='test -z "$ac_c_werror_flag"
4780                         || test ! -s conftest.err'
4781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782  (eval $ac_try) 2>&5
4783  ac_status=$?
4784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785  (exit $ac_status); }; } &&
4786         { ac_try='test -s conftest$ac_exeext'
4787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788  (eval $ac_try) 2>&5
4789  ac_status=$?
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); }; }; then
4792  ac_success_extra=yes; break
4793else
4794  echo "$as_me: failed program was:" >&5
4795sed 's/^/| /' conftest.$ac_ext >&5
4796
4797fi
4798rm -f conftest.err conftest.$ac_objext \
4799      conftest$ac_exeext conftest.$ac_ext
4800     done
4801     ac_ext=f
4802ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4803ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4805
4806     if test "$ac_success_extra" = "yes"; then
4807        ac_cv_f77_mangling="$ac_case case"
4808        if test -z "$ac_underscore"; then
4809           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4810        else
4811           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4812        fi
4813        if test -z "$ac_extra"; then
4814           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4815        else
4816           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4817        fi
4818      else
4819        ac_cv_f77_mangling="unknown"
4820      fi
4821  else
4822     ac_cv_f77_mangling="unknown"
4823  fi
4824
4825  LIBS=$ac_save_LIBS
4826  rm -f cfortran_test* conftest*
4827else
4828  echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4832See \`config.log' for more details." >&5
4833echo "$as_me: error: cannot compile a simple Fortran program
4834See \`config.log' for more details." >&2;}
4835   { (exit 1); exit 1; }; }
4836fi
4837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4838
4839fi
4840echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4841echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4842
4843ac_ext=f
4844ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4845ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4847
4848
4849ac_ext=f
4850ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4851ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4853
4854ac_ext=f
4855ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4856ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4858
4859
4860case $ac_cv_f77_mangling in
4861  "lower case, no underscore, no extra underscore")
4862          cat >>confdefs.h <<\_ACEOF
4863#define F77_FUNC(name,NAME) name
4864_ACEOF
4865
4866          cat >>confdefs.h <<\_ACEOF
4867#define F77_FUNC_(name,NAME) name
4868_ACEOF
4869 ;;
4870  "lower case, no underscore, extra underscore")
4871          cat >>confdefs.h <<\_ACEOF
4872#define F77_FUNC(name,NAME) name
4873_ACEOF
4874
4875          cat >>confdefs.h <<\_ACEOF
4876#define F77_FUNC_(name,NAME) name ## _
4877_ACEOF
4878 ;;
4879  "lower case, underscore, no extra underscore")
4880          cat >>confdefs.h <<\_ACEOF
4881#define F77_FUNC(name,NAME) name ## _
4882_ACEOF
4883
4884          cat >>confdefs.h <<\_ACEOF
4885#define F77_FUNC_(name,NAME) name ## _
4886_ACEOF
4887 ;;
4888  "lower case, underscore, extra underscore")
4889          cat >>confdefs.h <<\_ACEOF
4890#define F77_FUNC(name,NAME) name ## _
4891_ACEOF
4892
4893          cat >>confdefs.h <<\_ACEOF
4894#define F77_FUNC_(name,NAME) name ## __
4895_ACEOF
4896 ;;
4897  "upper case, no underscore, no extra underscore")
4898          cat >>confdefs.h <<\_ACEOF
4899#define F77_FUNC(name,NAME) NAME
4900_ACEOF
4901
4902          cat >>confdefs.h <<\_ACEOF
4903#define F77_FUNC_(name,NAME) NAME
4904_ACEOF
4905 ;;
4906  "upper case, no underscore, extra underscore")
4907          cat >>confdefs.h <<\_ACEOF
4908#define F77_FUNC(name,NAME) NAME
4909_ACEOF
4910
4911          cat >>confdefs.h <<\_ACEOF
4912#define F77_FUNC_(name,NAME) NAME ## _
4913_ACEOF
4914 ;;
4915  "upper case, underscore, no extra underscore")
4916          cat >>confdefs.h <<\_ACEOF
4917#define F77_FUNC(name,NAME) NAME ## _
4918_ACEOF
4919
4920          cat >>confdefs.h <<\_ACEOF
4921#define F77_FUNC_(name,NAME) NAME ## _
4922_ACEOF
4923 ;;
4924  "upper case, underscore, extra underscore")
4925          cat >>confdefs.h <<\_ACEOF
4926#define F77_FUNC(name,NAME) NAME ## _
4927_ACEOF
4928
4929          cat >>confdefs.h <<\_ACEOF
4930#define F77_FUNC_(name,NAME) NAME ## __
4931_ACEOF
4932 ;;
4933  *)
4934          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4935echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4936          ;;
4937esac
4938
4939ac_ext=f
4940ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4941ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4943
4944ac_ext=c
4945ac_cpp='$CPP $CPPFLAGS'
4946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949
4950
4951
4952
4953# Add FLIBS to HSL_PCLIBS, so that they get into the .pc files
4954HSL_PCLIBS="$HSL_PCLIBS $FLIBS"
4955
4956# Need egrep later on
4957echo "$as_me:$LINENO: checking for egrep" >&5
4958echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4959if test "${ac_cv_prog_egrep+set}" = set; then
4960  echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4963    then ac_cv_prog_egrep='grep -E'
4964    else ac_cv_prog_egrep='egrep'
4965    fi
4966fi
4967echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4968echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4969 EGREP=$ac_cv_prog_egrep
4970
4971
4972
4973# Also set up the FC compiler variable, required to compile .f90
4974# files.  We use the same compile and flags as F77 and FFLAGS, unless
4975# the user has set FC and FCFLAGS explicitly.
4976if test "$FC" = ""; then
4977  FC="$F77"
4978fi
4979if test "$FCFLAGS" = ""; then
4980  FCFLAGS="$FFLAGS"
4981fi
4982ac_ext=${FC_SRCEXT-f}
4983ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4984ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4985ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4986if test -n "$ac_tool_prefix"; then
4987  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
4988  do
4989    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4990set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4991echo "$as_me:$LINENO: checking for $ac_word" >&5
4992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4993if test "${ac_cv_prog_FC+set}" = set; then
4994  echo $ECHO_N "(cached) $ECHO_C" >&6
4995else
4996  if test -n "$FC"; then
4997  ac_cv_prog_FC="$FC" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002  IFS=$as_save_IFS
5003  test -z "$as_dir" && as_dir=.
5004  for ac_exec_ext in '' $ac_executable_extensions; do
5005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008    break 2
5009  fi
5010done
5011done
5012
5013fi
5014fi
5015FC=$ac_cv_prog_FC
5016if test -n "$FC"; then
5017  echo "$as_me:$LINENO: result: $FC" >&5
5018echo "${ECHO_T}$FC" >&6
5019else
5020  echo "$as_me:$LINENO: result: no" >&5
5021echo "${ECHO_T}no" >&6
5022fi
5023
5024    test -n "$FC" && break
5025  done
5026fi
5027if test -z "$FC"; then
5028  ac_ct_FC=$FC
5029  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5030do
5031  # Extract the first word of "$ac_prog", so it can be a program name with args.
5032set dummy $ac_prog; ac_word=$2
5033echo "$as_me:$LINENO: checking for $ac_word" >&5
5034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5035if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
5036  echo $ECHO_N "(cached) $ECHO_C" >&6
5037else
5038  if test -n "$ac_ct_FC"; then
5039  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5040else
5041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042for as_dir in $PATH
5043do
5044  IFS=$as_save_IFS
5045  test -z "$as_dir" && as_dir=.
5046  for ac_exec_ext in '' $ac_executable_extensions; do
5047  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048    ac_cv_prog_ac_ct_FC="$ac_prog"
5049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050    break 2
5051  fi
5052done
5053done
5054
5055fi
5056fi
5057ac_ct_FC=$ac_cv_prog_ac_ct_FC
5058if test -n "$ac_ct_FC"; then
5059  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
5060echo "${ECHO_T}$ac_ct_FC" >&6
5061else
5062  echo "$as_me:$LINENO: result: no" >&5
5063echo "${ECHO_T}no" >&6
5064fi
5065
5066  test -n "$ac_ct_FC" && break
5067done
5068
5069  FC=$ac_ct_FC
5070fi
5071
5072
5073# Provide some information about the compiler.
5074echo "$as_me:5074:" \
5075     "checking for Fortran compiler version" >&5
5076ac_compiler=`set X $ac_compile; echo $2`
5077{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5078  (eval $ac_compiler --version </dev/null >&5) 2>&5
5079  ac_status=$?
5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081  (exit $ac_status); }
5082{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5083  (eval $ac_compiler -v </dev/null >&5) 2>&5
5084  ac_status=$?
5085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086  (exit $ac_status); }
5087{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5088  (eval $ac_compiler -V </dev/null >&5) 2>&5
5089  ac_status=$?
5090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091  (exit $ac_status); }
5092rm -f a.out
5093
5094# If we don't use `.F' as extension, the preprocessor is not run on the
5095# input file.  (Note that this only needs to work for GNU compilers.)
5096ac_save_ext=$ac_ext
5097ac_ext=F
5098echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
5099echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
5100if test "${ac_cv_fc_compiler_gnu+set}" = set; then
5101  echo $ECHO_N "(cached) $ECHO_C" >&6
5102else
5103  cat >conftest.$ac_ext <<_ACEOF
5104      program main
5105#ifndef __GNUC__
5106       choke me
5107#endif
5108
5109      end
5110_ACEOF
5111rm -f conftest.$ac_objext
5112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113  (eval $ac_compile) 2>conftest.er1
5114  ac_status=$?
5115  grep -v '^ *+' conftest.er1 >conftest.err
5116  rm -f conftest.er1
5117  cat conftest.err >&5
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); } &&
5120         { ac_try='test -z "$ac_fc_werror_flag"
5121                         || test ! -s conftest.err'
5122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123  (eval $ac_try) 2>&5
5124  ac_status=$?
5125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126  (exit $ac_status); }; } &&
5127         { ac_try='test -s conftest.$ac_objext'
5128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129  (eval $ac_try) 2>&5
5130  ac_status=$?
5131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132  (exit $ac_status); }; }; then
5133  ac_compiler_gnu=yes
5134else
5135  echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
5138ac_compiler_gnu=no
5139fi
5140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5141ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5142
5143fi
5144echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
5145echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
5146ac_ext=$ac_save_ext
5147ac_test_FFLAGS=${FCFLAGS+set}
5148ac_save_FFLAGS=$FCFLAGS
5149FCFLAGS=
5150echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
5151echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
5152if test "${ac_cv_prog_fc_g+set}" = set; then
5153  echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155  FCFLAGS=-g
5156cat >conftest.$ac_ext <<_ACEOF
5157      program main
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_cv_prog_fc_g=yes
5184else
5185  echo "$as_me: failed program was:" >&5
5186sed 's/^/| /' conftest.$ac_ext >&5
5187
5188ac_cv_prog_fc_g=no
5189fi
5190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5191
5192fi
5193echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
5194echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
5195if test "$ac_test_FFLAGS" = set; then
5196  FCFLAGS=$ac_save_FFLAGS
5197elif test $ac_cv_prog_fc_g = yes; then
5198  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5199    FCFLAGS="-g -O2"
5200  else
5201    FCFLAGS="-g"
5202  fi
5203else
5204  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5205    FCFLAGS="-O2"
5206  else
5207    FCFLAGS=
5208  fi
5209fi
5210
5211ac_ext=c
5212ac_cpp='$CPP $CPPFLAGS'
5213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216
5217
5218# Initialize autotools
5219
5220if test x$enable_loadable_library = xyes; then
5221  flag=force_shared
5222fi
5223{
5224
5225
5226
5227# START
5228
5229coin_disable_shared=no
5230# Test if force_shared has been set
5231if test "x$flag" = xforce_shared; then
5232  if test x$enable_shared = xno; then
5233    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5234echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5235   { (exit 1); exit 1; }; }
5236  fi
5237  enable_shared=yes;
5238else
5239  # On Cygwin and AIX, building DLLs doesn't work
5240  case $build in
5241    *-cygwin* | *-mingw*)
5242      coin_disable_shared=yes
5243      if test x"$enable_shared" = xyes; then
5244        case "$CC" in
5245          clang* )
5246            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5247echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5248            ;;
5249          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5250            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
5251echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
5252            ;;
5253          *gcc*)
5254            if test x"$enable_dependency_linking" = xyes; then
5255              coin_disable_shared=no
5256            else
5257              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
5258echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
5259            fi
5260            ;;
5261          *)
5262            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5263echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5264            ;;
5265        esac
5266      fi
5267    ;;
5268    *-aix*)
5269      coin_disable_shared=yes
5270      platform=AIX
5271      if test x"$enable_shared" = xyes; then
5272        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
5273echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
5274      fi
5275    ;;
5276  esac
5277fi
5278if test x"$coin_disable_shared" = xyes; then
5279  if test x"$enable_shared" = xyes; then
5280    :
5281  else
5282    # we don't disable shared, because it was not selected anyway
5283    coin_disable_shared=no
5284  fi
5285  enable_shared=no
5286fi
5287# By default, we only want the shared objects to be compiled
5288# Check whether --enable-static or --disable-static was given.
5289if test "${enable_static+set}" = set; then
5290  enableval="$enable_static"
5291  p=${PACKAGE-default}
5292    case $enableval in
5293    yes) enable_static=yes ;;
5294    no) enable_static=no ;;
5295    *)
5296     enable_static=no
5297      # Look at the argument we got.  We use all the common list separators.
5298      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5299      for pkg in $enableval; do
5300        IFS="$lt_save_ifs"
5301        if test "X$pkg" = "X$p"; then
5302          enable_static=yes
5303        fi
5304      done
5305      IFS="$lt_save_ifs"
5306      ;;
5307    esac
5308else
5309  enable_static=no
5310fi;
5311
5312
5313
5314
5315# Initialize automake
5316echo "$as_me:$LINENO: checking whether ln -s works" >&5
5317echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5318LN_S=$as_ln_s
5319if test "$LN_S" = "ln -s"; then
5320  echo "$as_me:$LINENO: result: yes" >&5
5321echo "${ECHO_T}yes" >&6
5322else
5323  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5324echo "${ECHO_T}no, using $LN_S" >&6
5325fi
5326
5327am__api_version="1.9"
5328# Find a good install program.  We prefer a C program (faster),
5329# so one script is as good as another.  But avoid the broken or
5330# incompatible versions:
5331# SysV /etc/install, /usr/sbin/install
5332# SunOS /usr/etc/install
5333# IRIX /sbin/install
5334# AIX /bin/install
5335# AmigaOS /C/install, which installs bootblocks on floppy discs
5336# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5337# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5338# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5339# OS/2's system install, which has a completely different semantic
5340# ./install, which can be erroneously created by make from ./install.sh.
5341echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5342echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5343if test -z "$INSTALL"; then
5344if test "${ac_cv_path_install+set}" = set; then
5345  echo $ECHO_N "(cached) $ECHO_C" >&6
5346else
5347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350  IFS=$as_save_IFS
5351  test -z "$as_dir" && as_dir=.
5352  # Account for people who put trailing slashes in PATH elements.
5353case $as_dir/ in
5354  ./ | .// | /cC/* | \
5355  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5356  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5357  /usr/ucb/* ) ;;
5358  *)
5359    # OSF1 and SCO ODT 3.0 have their own names for install.
5360    # Don't use installbsd from OSF since it installs stuff as root
5361    # by default.
5362    for ac_prog in ginstall scoinst install; do
5363      for ac_exec_ext in '' $ac_executable_extensions; do
5364        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5365          if test $ac_prog = install &&
5366            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5367            # AIX install.  It has an incompatible calling convention.
5368            :
5369          elif test $ac_prog = install &&
5370            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5371            # program-specific install script used by HP pwplus--don't use.
5372            :
5373          else
5374            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5375            break 3
5376          fi
5377        fi
5378      done
5379    done
5380    ;;
5381esac
5382done
5383
5384
5385fi
5386  if test "${ac_cv_path_install+set}" = set; then
5387    INSTALL=$ac_cv_path_install
5388  else
5389    # As a last resort, use the slow shell script.  We don't cache a
5390    # path for INSTALL within a source directory, because that will
5391    # break other packages using the cache if that directory is
5392    # removed, or if the path is relative.
5393    INSTALL=$ac_install_sh
5394  fi
5395fi
5396echo "$as_me:$LINENO: result: $INSTALL" >&5
5397echo "${ECHO_T}$INSTALL" >&6
5398
5399# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5400# It thinks the first close brace ends the variable substitution.
5401test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5402
5403test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5404
5405test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5406
5407echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5408echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5409# Just in case
5410sleep 1
5411echo timestamp > conftest.file
5412# Do `set' in a subshell so we don't clobber the current shell's
5413# arguments.  Must try -L first in case configure is actually a
5414# symlink; some systems play weird games with the mod time of symlinks
5415# (eg FreeBSD returns the mod time of the symlink's containing
5416# directory).
5417if (
5418   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5419   if test "$*" = "X"; then
5420      # -L didn't work.
5421      set X `ls -t $srcdir/configure conftest.file`
5422   fi
5423   rm -f conftest.file
5424   if test "$*" != "X $srcdir/configure conftest.file" \
5425      && test "$*" != "X conftest.file $srcdir/configure"; then
5426
5427      # If neither matched, then we have a broken ls.  This can happen
5428      # if, for instance, CONFIG_SHELL is bash and it inherits a
5429      # broken ls alias from the environment.  This has actually
5430      # happened.  Such a system could not be considered "sane".
5431      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5432alias in your environment" >&5
5433echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5434alias in your environment" >&2;}
5435   { (exit 1); exit 1; }; }
5436   fi
5437
5438   test "$2" = conftest.file
5439   )
5440then
5441   # Ok.
5442   :
5443else
5444   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5445Check your system clock" >&5
5446echo "$as_me: error: newly created file is older than distributed files!
5447Check your system clock" >&2;}
5448   { (exit 1); exit 1; }; }
5449fi
5450echo "$as_me:$LINENO: result: yes" >&5
5451echo "${ECHO_T}yes" >&6
5452test "$program_prefix" != NONE &&
5453  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5454# Use a double $ so make ignores it.
5455test "$program_suffix" != NONE &&
5456  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5457# Double any \ or $.  echo might interpret backslashes.
5458# By default was `s,x,x', remove it if useless.
5459cat <<\_ACEOF >conftest.sed
5460s/[\\$]/&&/g;s/;s,x,x,$//
5461_ACEOF
5462program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5463rm conftest.sed
5464
5465# expand $ac_aux_dir to an absolute path
5466am_aux_dir=`cd $ac_aux_dir && pwd`
5467
5468test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5469# Use eval to expand $SHELL
5470if eval "$MISSING --run true"; then
5471  am_missing_run="$MISSING --run "
5472else
5473  am_missing_run=
5474  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5475echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5476fi
5477
5478if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5479  # We used to keeping the `.' as first argument, in order to
5480  # allow $(mkdir_p) to be used without argument.  As in
5481  #   $(mkdir_p) $(somedir)
5482  # where $(somedir) is conditionally defined.  However this is wrong
5483  # for two reasons:
5484  #  1. if the package is installed by a user who cannot write `.'
5485  #     make install will fail,
5486  #  2. the above comment should most certainly read
5487  #     $(mkdir_p) $(DESTDIR)$(somedir)
5488  #     so it does not work when $(somedir) is undefined and
5489  #     $(DESTDIR) is not.
5490  #  To support the latter case, we have to write
5491  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5492  #  so the `.' trick is pointless.
5493  mkdir_p='mkdir -p --'
5494else
5495  # On NextStep and OpenStep, the `mkdir' command does not
5496  # recognize any option.  It will interpret all options as
5497  # directories to create, and then abort because `.' already
5498  # exists.
5499  for d in ./-p ./--version;
5500  do
5501    test -d $d && rmdir $d
5502  done
5503  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5504  if test -f "$ac_aux_dir/mkinstalldirs"; then
5505    mkdir_p='$(mkinstalldirs)'
5506  else
5507    mkdir_p='$(install_sh) -d'
5508  fi
5509fi
5510
5511for ac_prog in gawk mawk nawk awk
5512do
5513  # Extract the first word of "$ac_prog", so it can be a program name with args.
5514set dummy $ac_prog; ac_word=$2
5515echo "$as_me:$LINENO: checking for $ac_word" >&5
5516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5517if test "${ac_cv_prog_AWK+set}" = set; then
5518  echo $ECHO_N "(cached) $ECHO_C" >&6
5519else
5520  if test -n "$AWK"; then
5521  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5522else
5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH
5525do
5526  IFS=$as_save_IFS
5527  test -z "$as_dir" && as_dir=.
5528  for ac_exec_ext in '' $ac_executable_extensions; do
5529  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530    ac_cv_prog_AWK="$ac_prog"
5531    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532    break 2
5533  fi
5534done
5535done
5536
5537fi
5538fi
5539AWK=$ac_cv_prog_AWK
5540if test -n "$AWK"; then
5541  echo "$as_me:$LINENO: result: $AWK" >&5
5542echo "${ECHO_T}$AWK" >&6
5543else
5544  echo "$as_me:$LINENO: result: no" >&5
5545echo "${ECHO_T}no" >&6
5546fi
5547
5548  test -n "$AWK" && break
5549done
5550
5551echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5552echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5553set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5554if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5555  echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557  cat >conftest.make <<\_ACEOF
5558all:
5559        @echo 'ac_maketemp="$(MAKE)"'
5560_ACEOF
5561# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5562eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5563if test -n "$ac_maketemp"; then
5564  eval ac_cv_prog_make_${ac_make}_set=yes
5565else
5566  eval ac_cv_prog_make_${ac_make}_set=no
5567fi
5568rm -f conftest.make
5569fi
5570if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5571  echo "$as_me:$LINENO: result: yes" >&5
5572echo "${ECHO_T}yes" >&6
5573  SET_MAKE=
5574else
5575  echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6
5577  SET_MAKE="MAKE=${MAKE-make}"
5578fi
5579
5580rm -rf .tst 2>/dev/null
5581mkdir .tst 2>/dev/null
5582if test -d .tst; then
5583  am__leading_dot=.
5584else
5585  am__leading_dot=_
5586fi
5587rmdir .tst 2>/dev/null
5588
5589DEPDIR="${am__leading_dot}deps"
5590
5591          ac_config_commands="$ac_config_commands depfiles"
5592
5593
5594am_make=${MAKE-make}
5595cat > confinc << 'END'
5596am__doit:
5597        @echo done
5598.PHONY: am__doit
5599END
5600# If we don't find an include directive, just comment out the code.
5601echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5602echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5603am__include="#"
5604am__quote=
5605_am_result=none
5606# First try GNU make style include.
5607echo "include confinc" > confmf
5608# We grep out `Entering directory' and `Leaving directory'
5609# messages which can occur if `w' ends up in MAKEFLAGS.
5610# In particular we don't look at `^make:' because GNU make might
5611# be invoked under some other name (usually "gmake"), in which
5612# case it prints its new name instead of `make'.
5613if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5614   am__include=include
5615   am__quote=
5616   _am_result=GNU
5617fi
5618# Now try BSD make style include.
5619if test "$am__include" = "#"; then
5620   echo '.include "confinc"' > confmf
5621   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5622      am__include=.include
5623      am__quote="\""
5624      _am_result=BSD
5625   fi
5626fi
5627
5628
5629echo "$as_me:$LINENO: result: $_am_result" >&5
5630echo "${ECHO_T}$_am_result" >&6
5631rm -f confinc confmf
5632
5633# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5634if test "${enable_dependency_tracking+set}" = set; then
5635  enableval="$enable_dependency_tracking"
5636
5637fi;
5638if test "x$enable_dependency_tracking" != xno; then
5639  am_depcomp="$ac_aux_dir/depcomp"
5640  AMDEPBACKSLASH='\'
5641fi
5642
5643
5644if test "x$enable_dependency_tracking" != xno; then
5645  AMDEP_TRUE=
5646  AMDEP_FALSE='#'
5647else
5648  AMDEP_TRUE='#'
5649  AMDEP_FALSE=
5650fi
5651
5652
5653
5654
5655
5656
5657# AC_MSG_NOTICE([Beginning automake initialisation.])
5658# Stuff for automake
5659# test to see if srcdir already configured
5660if test "`cd $srcdir && pwd`" != "`pwd`" &&
5661   test -f $srcdir/config.status; then
5662  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5663echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5664   { (exit 1); exit 1; }; }
5665fi
5666
5667# test whether we have cygpath
5668if test -z "$CYGPATH_W"; then
5669  if (cygpath --version) >/dev/null 2>/dev/null; then
5670    CYGPATH_W='cygpath -w'
5671  else
5672    CYGPATH_W=echo
5673  fi
5674fi
5675
5676
5677# Define the identity of the package.
5678 PACKAGE='thirdpartyhsl'
5679 VERSION='1.3.8'
5680
5681
5682cat >>confdefs.h <<_ACEOF
5683#define PACKAGE "$PACKAGE"
5684_ACEOF
5685
5686
5687cat >>confdefs.h <<_ACEOF
5688#define VERSION "$VERSION"
5689_ACEOF
5690
5691# Some tools Automake needs.
5692
5693ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5694
5695
5696AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5697
5698
5699AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5700
5701
5702AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5703
5704
5705MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5706
5707install_sh=${install_sh-"$am_aux_dir/install-sh"}
5708
5709# Installed binaries are usually stripped using `strip' when the user
5710# run `make install-strip'.  However `strip' might not be the right
5711# tool to use in cross-compilation environments, therefore Automake
5712# will honor the `STRIP' environment variable to overrule this program.
5713if test "$cross_compiling" != no; then
5714  if test -n "$ac_tool_prefix"; then
5715  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5716set dummy ${ac_tool_prefix}strip; ac_word=$2
5717echo "$as_me:$LINENO: checking for $ac_word" >&5
5718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719if test "${ac_cv_prog_STRIP+set}" = set; then
5720  echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722  if test -n "$STRIP"; then
5723  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730  for ac_exec_ext in '' $ac_executable_extensions; do
5731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737done
5738
5739fi
5740fi
5741STRIP=$ac_cv_prog_STRIP
5742if test -n "$STRIP"; then
5743  echo "$as_me:$LINENO: result: $STRIP" >&5
5744echo "${ECHO_T}$STRIP" >&6
5745else
5746  echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6
5748fi
5749
5750fi
5751if test -z "$ac_cv_prog_STRIP"; then
5752  ac_ct_STRIP=$STRIP
5753  # Extract the first word of "strip", so it can be a program name with args.
5754set dummy strip; ac_word=$2
5755echo "$as_me:$LINENO: checking for $ac_word" >&5
5756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5758  echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760  if test -n "$ac_ct_STRIP"; then
5761  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766  IFS=$as_save_IFS
5767  test -z "$as_dir" && as_dir=.
5768  for ac_exec_ext in '' $ac_executable_extensions; do
5769  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770    ac_cv_prog_ac_ct_STRIP="strip"
5771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772    break 2
5773  fi
5774done
5775done
5776
5777  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5778fi
5779fi
5780ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5781if test -n "$ac_ct_STRIP"; then
5782  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5783echo "${ECHO_T}$ac_ct_STRIP" >&6
5784else
5785  echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6
5787fi
5788
5789  STRIP=$ac_ct_STRIP
5790else
5791  STRIP="$ac_cv_prog_STRIP"
5792fi
5793
5794fi
5795INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5796
5797# We need awk for the "check" target.  The system "awk" is bad on
5798# some platforms.
5799# Always define AMTAR for backward compatibility.
5800
5801AMTAR=${AMTAR-"${am_missing_run}tar"}
5802
5803am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5804
5805
5806
5807
5808depcc="$CC"   am_compiler_list=
5809
5810echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5811echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5812if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5813  echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5816  # We make a subdir and do the tests there.  Otherwise we can end up
5817  # making bogus files that we don't know about and never remove.  For
5818  # instance it was reported that on HP-UX the gcc test will end up
5819  # making a dummy file named `D' -- because `-MD' means `put the output
5820  # in D'.
5821  mkdir conftest.dir
5822  # Copy depcomp to subdir because otherwise we won't find it if we're
5823  # using a relative directory.
5824  cp "$am_depcomp" conftest.dir
5825  cd conftest.dir
5826  # We will build objects and dependencies in a subdirectory because
5827  # it helps to detect inapplicable dependency modes.  For instance
5828  # both Tru64's cc and ICC support -MD to output dependencies as a
5829  # side effect of compilation, but ICC will put the dependencies in
5830  # the current directory while Tru64 will put them in the object
5831  # directory.
5832  mkdir sub
5833
5834  am_cv_CC_dependencies_compiler_type=none
5835  if test "$am_compiler_list" = ""; then
5836     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5837  fi
5838  for depmode in $am_compiler_list; do
5839    # Setup a source with many dependencies, because some compilers
5840    # like to wrap large dependency lists on column 80 (with \), and
5841    # we should not choose a depcomp mode which is confused by this.
5842    #
5843    # We need to recreate these files for each test, as the compiler may
5844    # overwrite some of them when testing with obscure command lines.
5845    # This happens at least with the AIX C compiler.
5846    : > sub/conftest.c
5847    for i in 1 2 3 4 5 6; do
5848      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5849      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5850      # Solaris 8's {/usr,}/bin/sh.
5851      touch sub/conftst$i.h
5852    done
5853    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5854
5855    case $depmode in
5856    nosideeffect)
5857      # after this tag, mechanisms are not by side-effect, so they'll
5858      # only be used when explicitly requested
5859      if test "x$enable_dependency_tracking" = xyes; then
5860        continue
5861      else
5862        break
5863      fi
5864      ;;
5865    none) break ;;
5866    esac
5867    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5868    # mode.  It turns out that the SunPro C++ compiler does not properly
5869    # handle `-M -o', and we need to detect this.
5870    if depmode=$depmode \
5871       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5872       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5873       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5874         >/dev/null 2>conftest.err &&
5875       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5876       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5877       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5878      # icc doesn't choke on unknown options, it will just issue warnings
5879      # or remarks (even with -Werror).  So we grep stderr for any message
5880      # that says an option was ignored or not supported.
5881      # When given -MP, icc 7.0 and 7.1 complain thusly:
5882      #   icc: Command line warning: ignoring option '-M'; no argument required
5883      # The diagnosis changed in icc 8.0:
5884      #   icc: Command line remark: option '-MP' not supported
5885      if (grep 'ignoring option' conftest.err ||
5886          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5887        am_cv_CC_dependencies_compiler_type=$depmode
5888        break
5889      fi
5890    fi
5891  done
5892
5893  cd ..
5894  rm -rf conftest.dir
5895else
5896  am_cv_CC_dependencies_compiler_type=none
5897fi
5898
5899fi
5900echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5901echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5902CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5903
5904
5905
5906if
5907  test "x$enable_dependency_tracking" != xno \
5908  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5909  am__fastdepCC_TRUE=
5910  am__fastdepCC_FALSE='#'
5911else
5912  am__fastdepCC_TRUE='#'
5913  am__fastdepCC_FALSE=
5914fi
5915
5916
5917
5918echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5919echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5920    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5921if test "${enable_maintainer_mode+set}" = set; then
5922  enableval="$enable_maintainer_mode"
5923  USE_MAINTAINER_MODE=$enableval
5924else
5925  USE_MAINTAINER_MODE=no
5926fi;
5927  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5928echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5929
5930
5931if test $USE_MAINTAINER_MODE = yes; then
5932  MAINTAINER_MODE_TRUE=
5933  MAINTAINER_MODE_FALSE='#'
5934else
5935  MAINTAINER_MODE_TRUE='#'
5936  MAINTAINER_MODE_FALSE=
5937fi
5938
5939  MAINT=$MAINTAINER_MODE_TRUE
5940
5941
5942
5943coin_have_externals=no
5944if test "$enable_maintainer_mode" = yes; then
5945
5946  # If maintainer mode is chosen, we make sure that the correct versions
5947  # of the tools are used, and that we know where libtool.m4 is (to
5948  # recreate acinclude.m4)
5949
5950
5951  LIBTOOLM4=
5952  # Normally, $HOME
5953  AUTOTOOLS_DFLT=$HOME
5954
5955  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5956echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5957if test "${ac_cv_use_correct_autotools+set}" = set; then
5958  echo $ECHO_N "(cached) $ECHO_C" >&6
5959else
5960  ac_cv_use_correct_autotools=check
5961fi
5962echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5963echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5964
5965  if test $ac_cv_use_correct_autotools = check; then
5966    ac_cv_use_correct_autotools=yes
5967    # Check if we have autoconf
5968    # Extract the first word of "autoconf", so it can be a program name with args.
5969set dummy autoconf; ac_word=$2
5970echo "$as_me:$LINENO: checking for $ac_word" >&5
5971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5972if test "${ac_cv_prog_have_autoconf+set}" = set; then
5973  echo $ECHO_N "(cached) $ECHO_C" >&6
5974else
5975  if test -n "$have_autoconf"; then
5976  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5977else
5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981  IFS=$as_save_IFS
5982  test -z "$as_dir" && as_dir=.
5983  for ac_exec_ext in '' $ac_executable_extensions; do
5984  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985    ac_cv_prog_have_autoconf="yes"
5986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987    break 2
5988  fi
5989done
5990done
5991
5992  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5993fi
5994fi
5995have_autoconf=$ac_cv_prog_have_autoconf
5996if test -n "$have_autoconf"; then
5997  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5998echo "${ECHO_T}$have_autoconf" >&6
5999else
6000  echo "$as_me:$LINENO: result: no" >&5
6001echo "${ECHO_T}no" >&6
6002fi
6003
6004    if test $have_autoconf = no; then
6005      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6006echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6007   { (exit 1); exit 1; }; }
6008    fi
6009
6010    # Check whether autoconf is the correct version
6011    correct_version='2.59'
6012    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6013    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6014echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6015    autoconf --version > confauto.out 2>&1
6016    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6017      echo "$as_me:$LINENO: result: yes" >&5
6018echo "${ECHO_T}yes" >&6
6019    else
6020      rm -f confauto.out
6021      echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6
6023      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6024echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6025   { (exit 1); exit 1; }; }
6026    fi
6027    rm -f confauto.out
6028
6029    # Check if the executable autoconf is picked up from the correct location
6030    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6031echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6032    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6033    autoconf_dir=`cd $autoconf_dir; pwd`
6034    if test x$AUTOTOOLS_DIR = x; then
6035      want_dir=$AUTOTOOLS_DFLT/bin
6036    else
6037      want_dir=$AUTOTOOLS_DIR/bin
6038    fi
6039    if test $autoconf_dir = `cd $want_dir; pwd`; then
6040      echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042    else
6043      rm -f confauto.out
6044      echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6047echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6048   { (exit 1); exit 1; }; }
6049    fi
6050
6051    # Check if we have automake
6052    # Extract the first word of "automake", so it can be a program name with args.
6053set dummy automake; ac_word=$2
6054echo "$as_me:$LINENO: checking for $ac_word" >&5
6055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6056if test "${ac_cv_prog_have_automake+set}" = set; then
6057  echo $ECHO_N "(cached) $ECHO_C" >&6
6058else
6059  if test -n "$have_automake"; then
6060  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065  IFS=$as_save_IFS
6066  test -z "$as_dir" && as_dir=.
6067  for ac_exec_ext in '' $ac_executable_extensions; do
6068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069    ac_cv_prog_have_automake="yes"
6070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071    break 2
6072  fi
6073done
6074done
6075
6076  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6077fi
6078fi
6079have_automake=$ac_cv_prog_have_automake
6080if test -n "$have_automake"; then
6081  echo "$as_me:$LINENO: result: $have_automake" >&5
6082echo "${ECHO_T}$have_automake" >&6
6083else
6084  echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086fi
6087
6088    if test $have_automake = no; then
6089      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6090echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6091   { (exit 1); exit 1; }; }
6092    fi
6093
6094    # Check whether automake is the correct version
6095    correct_version='1.9.6'
6096    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6097    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6098echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6099    automake --version > confauto.out 2>&1
6100    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6101      echo "$as_me:$LINENO: result: yes" >&5
6102echo "${ECHO_T}yes" >&6
6103    else
6104      rm -f confauto.out
6105      echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6
6107      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6108echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6109   { (exit 1); exit 1; }; }
6110    fi
6111    rm -f confauto.out
6112
6113    # Check if the executable automake is picked up from the correct location
6114    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6115echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6116    automake_dir=`which automake | sed -e 's=/automake=='`
6117    automake_dir=`cd $automake_dir; pwd`
6118    if test x$AUTOTOOLS_DIR = x; then
6119      want_dir=$AUTOTOOLS_DFLT/bin
6120    else
6121      want_dir=$AUTOTOOLS_DIR/bin
6122    fi
6123    if test $automake_dir = `cd $want_dir; pwd`; then
6124      echo "$as_me:$LINENO: result: yes" >&5
6125echo "${ECHO_T}yes" >&6
6126    else
6127      rm -f confauto.out
6128      echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
6130      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6131echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6132   { (exit 1); exit 1; }; }
6133    fi
6134
6135    # Check if this is the correct version of libtool (with escaped dots)
6136    if test x$AUTOTOOLS_DIR = x; then
6137      want_dir=$AUTOTOOLS_DFLT/share
6138    else
6139      want_dir=$AUTOTOOLS_DIR/share
6140    fi
6141    correct_version='1.5.22'
6142    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6143    if test -r $want_dir/libtool/ltmain.sh; then
6144  have_ltmain=yes
6145  :
6146else
6147  have_ltmain=no
6148  :
6149fi
6150
6151    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6152echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6153    if test $have_ltmain = yes; then
6154    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6155        echo "$as_me:$LINENO: result: yes" >&5
6156echo "${ECHO_T}yes" >&6
6157      else
6158        echo "$as_me:$LINENO: result: no" >&5
6159echo "${ECHO_T}no" >&6
6160        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6161echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6162   { (exit 1); exit 1; }; }
6163      fi
6164    else
6165      echo "$as_me:$LINENO: result: no" >&5
6166echo "${ECHO_T}no" >&6
6167      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6168echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6169   { (exit 1); exit 1; }; }
6170    fi
6171  fi
6172
6173  # Check if we can find the libtool file
6174  if test x$AUTOTOOLS_DIR = x; then
6175    want_dir=$AUTOTOOLS_DFLT/share
6176  else
6177    want_dir=$AUTOTOOLS_DIR/share
6178  fi
6179  if test -r $want_dir/aclocal/libtool.m4; then
6180  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6181  :
6182else
6183  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6184echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6185   { (exit 1); exit 1; }; }
6186  :
6187fi
6188
6189
6190  # Check if we have an Dependencies file
6191  if test -r $srcdir/Dependencies; then
6192    coin_have_externals=yes
6193  fi
6194  # Check if subversion is installed and understands https
6195  # Extract the first word of "svn", so it can be a program name with args.
6196set dummy svn; ac_word=$2
6197echo "$as_me:$LINENO: checking for $ac_word" >&5
6198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6199if test "${ac_cv_prog_have_svn+set}" = set; then
6200  echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202  if test -n "$have_svn"; then
6203  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208  IFS=$as_save_IFS
6209  test -z "$as_dir" && as_dir=.
6210  for ac_exec_ext in '' $ac_executable_extensions; do
6211  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212    ac_cv_prog_have_svn="yes"
6213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214    break 2
6215  fi
6216done
6217done
6218
6219  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6220fi
6221fi
6222have_svn=$ac_cv_prog_have_svn
6223if test -n "$have_svn"; then
6224  echo "$as_me:$LINENO: result: $have_svn" >&5
6225echo "${ECHO_T}$have_svn" >&6
6226else
6227  echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
6229fi
6230
6231  if test x$have_svn = xyes; then
6232    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6233echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6234if test "${ac_cv_svn_understands_https+set}" = set; then
6235  echo $ECHO_N "(cached) $ECHO_C" >&6
6236else
6237  svn --version > confauto.out 2>&1
6238                    if $EGREP https confauto.out >/dev/null 2>&1; then
6239                      ac_cv_svn_understands_https=yes
6240                    else
6241                      ac_cv_svn_understands_https=no
6242                      have_svn=no
6243                      ac_cv_prog_have_svn=no
6244                    fi
6245                    rm -f confauto.out
6246fi
6247echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6248echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6249  fi
6250
6251  # Find the location of the BuildTools directory
6252  BUILDTOOLSDIR=
6253  if test -r $srcdir/BuildTools/coin.m4; then
6254    BUILDTOOLSDIR=$srcdir/BuildTools
6255  else
6256    if test -r $srcdir/../BuildTools/coin.m4; then
6257      BUILDTOOLSDIR=$srcdir/../BuildTools
6258    else
6259      if test -r $srcdir/../../BuildTools/coin.m4; then
6260        BUILDTOOLSDIR=$srcdir/../../BuildTools
6261      else
6262        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6263echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6264   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6265      fi
6266    fi
6267  fi
6268
6269
6270  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6271  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6272    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6273  fi
6274
6275  # The following variable is set to the name of the directory where
6276  # the autotool scripts are located
6277
6278  AUX_DIR=$ac_aux_dir
6279fi
6280
6281# helpful variable for the base directory of this package
6282abs_source_dir=`cd $srcdir; pwd`
6283
6284
6285# Stuff for example Makefiles
6286if test x$prefix = xNONE; then
6287  full_prefix=$ac_default_prefix
6288else
6289  full_prefix=$prefix
6290fi
6291full_prefix=`cd $full_prefix ; pwd`
6292
6293abs_lib_dir=$full_prefix/lib
6294
6295abs_include_dir=$full_prefix/include
6296
6297abs_bin_dir=$full_prefix/bin
6298
6299
6300
6301if test $coin_have_externals = yes && test x$have_svn = xyes; then
6302  HAVE_EXTERNALS_TRUE=
6303  HAVE_EXTERNALS_FALSE='#'
6304else
6305  HAVE_EXTERNALS_TRUE='#'
6306  HAVE_EXTERNALS_FALSE=
6307fi
6308
6309
6310# AC_MSG_NOTICE([End automake initialisation.])
6311
6312
6313
6314LIBTOOL=
6315if test -f ../libtool; then
6316  coin_config_dir=..
6317  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6318fi
6319if test "x$LIBTOOL" = x; then
6320  if test -f ../../libtool; then
6321    coin_config_dir=../..
6322    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6323  fi
6324fi
6325
6326if test "x$LIBTOOL" = x; then
6327# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6328  # Stuff for libtool
6329  # Check whether --enable-shared or --disable-shared was given.
6330if test "${enable_shared+set}" = set; then
6331  enableval="$enable_shared"
6332  p=${PACKAGE-default}
6333    case $enableval in
6334    yes) enable_shared=yes ;;
6335    no) enable_shared=no ;;
6336    *)
6337      enable_shared=no
6338      # Look at the argument we got.  We use all the common list separators.
6339      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6340      for pkg in $enableval; do
6341        IFS="$lt_save_ifs"
6342        if test "X$pkg" = "X$p"; then
6343          enable_shared=yes
6344        fi
6345      done
6346      IFS="$lt_save_ifs"
6347      ;;
6348    esac
6349else
6350  enable_shared=yes
6351fi;
6352
6353# Check whether --enable-fast-install or --disable-fast-install was given.
6354if test "${enable_fast_install+set}" = set; then
6355  enableval="$enable_fast_install"
6356  p=${PACKAGE-default}
6357    case $enableval in
6358    yes) enable_fast_install=yes ;;
6359    no) enable_fast_install=no ;;
6360    *)
6361      enable_fast_install=no
6362      # Look at the argument we got.  We use all the common list separators.
6363      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6364      for pkg in $enableval; do
6365        IFS="$lt_save_ifs"
6366        if test "X$pkg" = "X$p"; then
6367          enable_fast_install=yes
6368        fi
6369      done
6370      IFS="$lt_save_ifs"
6371      ;;
6372    esac
6373else
6374  enable_fast_install=yes
6375fi;
6376
6377echo "$as_me:$LINENO: checking host system type" >&5
6378echo $ECHO_N "checking host system type... $ECHO_C" >&6
6379if test "${ac_cv_host+set}" = set; then
6380  echo $ECHO_N "(cached) $ECHO_C" >&6
6381else
6382  ac_cv_host_alias=$host_alias
6383test -z "$ac_cv_host_alias" &&
6384  ac_cv_host_alias=$ac_cv_build_alias
6385ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6386  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6387echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6388   { (exit 1); exit 1; }; }
6389
6390fi
6391echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6392echo "${ECHO_T}$ac_cv_host" >&6
6393host=$ac_cv_host
6394host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6395host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6396host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6397
6398
6399echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6400echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6401if test "${lt_cv_path_SED+set}" = set; then
6402  echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404  # Loop through the user's path and test for sed and gsed.
6405# Then use that list of sed's as ones to test for truncation.
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409  IFS=$as_save_IFS
6410  test -z "$as_dir" && as_dir=.
6411  for lt_ac_prog in sed gsed; do
6412    for ac_exec_ext in '' $ac_executable_extensions; do
6413      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6414        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6415      fi
6416    done
6417  done
6418done
6419lt_ac_max=0
6420lt_ac_count=0
6421# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6422# along with /bin/sed that truncates output.
6423for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6424  test ! -f $lt_ac_sed && continue
6425  cat /dev/null > conftest.in
6426  lt_ac_count=0
6427  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6428  # Check for GNU sed and select it if it is found.
6429  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6430    lt_cv_path_SED=$lt_ac_sed
6431    break
6432  fi
6433  while true; do
6434    cat conftest.in conftest.in >conftest.tmp
6435    mv conftest.tmp conftest.in
6436    cp conftest.in conftest.nl
6437    echo >>conftest.nl
6438    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6439    cmp -s conftest.out conftest.nl || break
6440    # 10000 chars as input seems more than enough
6441    test $lt_ac_count -gt 10 && break
6442    lt_ac_count=`expr $lt_ac_count + 1`
6443    if test $lt_ac_count -gt $lt_ac_max; then
6444      lt_ac_max=$lt_ac_count
6445      lt_cv_path_SED=$lt_ac_sed
6446    fi
6447  done
6448done
6449
6450fi
6451
6452SED=$lt_cv_path_SED
6453echo "$as_me:$LINENO: result: $SED" >&5
6454echo "${ECHO_T}$SED" >&6
6455
6456
6457# Check whether --with-gnu-ld or --without-gnu-ld was given.
6458if test "${with_gnu_ld+set}" = set; then
6459  withval="$with_gnu_ld"
6460  test "$withval" = no || with_gnu_ld=yes
6461else
6462  with_gnu_ld=no
6463fi;
6464ac_prog=ld
6465if test "$GCC" = yes; then
6466  # Check if gcc -print-prog-name=ld gives a path.
6467  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6468echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6469  case $host in
6470  *-*-mingw*)
6471    # gcc leaves a trailing carriage return which upsets mingw
6472    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6473  *)
6474    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6475  esac
6476  case $ac_prog in
6477    # Accept absolute paths.
6478    [\\/]* | ?:[\\/]*)
6479      re_direlt='/[^/][^/]*/\.\./'
6480      # Canonicalize the pathname of ld
6481      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6482      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6483        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6484      done
6485      test -z "$LD" && LD="$ac_prog"
6486      ;;
6487  "")
6488    # If it fails, then pretend we aren't using GCC.
6489    ac_prog=ld
6490    ;;
6491  *)
6492    # If it is relative, then search for the first ld in PATH.
6493    with_gnu_ld=unknown
6494    ;;
6495  esac
6496elif test "$with_gnu_ld" = yes; then
6497  echo "$as_me:$LINENO: checking for GNU ld" >&5
6498echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6499else
6500  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6501echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6502fi
6503if test "${lt_cv_path_LD+set}" = set; then
6504  echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506  if test -z "$LD"; then
6507  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6508  for ac_dir in $PATH; do
6509    IFS="$lt_save_ifs"
6510    test -z "$ac_dir" && ac_dir=.
6511    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6512      lt_cv_path_LD="$ac_dir/$ac_prog"
6513      # Check to see if the program is GNU ld.  I'd rather use --version,
6514      # but apparently some variants of GNU ld only accept -v.
6515      # Break only if it was the GNU/non-GNU ld that we prefer.
6516      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6517      *GNU* | *'with BFD'*)
6518        test "$with_gnu_ld" != no && break
6519        ;;
6520      *)
6521        test "$with_gnu_ld" != yes && break
6522        ;;
6523      esac
6524    fi
6525  done
6526  IFS="$lt_save_ifs"
6527else
6528  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6529fi
6530fi
6531
6532LD="$lt_cv_path_LD"
6533if test -n "$LD"; then
6534  echo "$as_me:$LINENO: result: $LD" >&5
6535echo "${ECHO_T}$LD" >&6
6536else
6537  echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6
6539fi
6540test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6541echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6542   { (exit 1); exit 1; }; }
6543echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6544echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6545if test "${lt_cv_prog_gnu_ld+set}" = set; then
6546  echo $ECHO_N "(cached) $ECHO_C" >&6
6547else
6548  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6549case `$LD -v 2>&1 </dev/null` in
6550*GNU* | *'with BFD'*)
6551  lt_cv_prog_gnu_ld=yes
6552  ;;
6553*)
6554  lt_cv_prog_gnu_ld=no
6555  ;;
6556esac
6557fi
6558echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6559echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6560with_gnu_ld=$lt_cv_prog_gnu_ld
6561
6562
6563echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6564echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6565if test "${lt_cv_ld_reload_flag+set}" = set; then
6566  echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568  lt_cv_ld_reload_flag='-r'
6569fi
6570echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6571echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6572reload_flag=$lt_cv_ld_reload_flag
6573case $reload_flag in
6574"" | " "*) ;;
6575*) reload_flag=" $reload_flag" ;;
6576esac
6577reload_cmds='$LD$reload_flag -o $output$reload_objs'
6578case $host_os in
6579  darwin*)
6580    if test "$GCC" = yes; then
6581      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6582    else
6583      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6584    fi
6585    ;;
6586esac
6587
6588echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6589echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6590if test "${lt_cv_path_NM+set}" = set; then
6591  echo $ECHO_N "(cached) $ECHO_C" >&6
6592else
6593  if test -n "$NM"; then
6594  # Let the user override the test.
6595  lt_cv_path_NM="$NM"
6596else
6597  lt_nm_to_check="${ac_tool_prefix}nm"
6598  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6599    lt_nm_to_check="$lt_nm_to_check nm"
6600  fi
6601  for lt_tmp_nm in $lt_nm_to_check; do
6602    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6603    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6604      IFS="$lt_save_ifs"
6605      test -z "$ac_dir" && ac_dir=.
6606      tmp_nm="$ac_dir/$lt_tmp_nm"
6607      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6608        # Check to see if the nm accepts a BSD-compat flag.
6609        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6610        #   nm: unknown option "B" ignored
6611        # Tru64's nm complains that /dev/null is an invalid object file
6612        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6613        */dev/null* | *'Invalid file or object type'*)
6614          lt_cv_path_NM="$tmp_nm -B"
6615          break
6616          ;;
6617        *)
6618          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6619          */dev/null*)
6620            lt_cv_path_NM="$tmp_nm -p"
6621            break
6622            ;;
6623          *)
6624            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6625            continue # so that we can try to find one that supports BSD flags
6626            ;;
6627          esac
6628          ;;
6629        esac
6630      fi
6631    done
6632    IFS="$lt_save_ifs"
6633  done
6634  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6635fi
6636fi
6637echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6638echo "${ECHO_T}$lt_cv_path_NM" >&6
6639NM="$lt_cv_path_NM"
6640
6641echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6642echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6643if test "${lt_cv_deplibs_check_method+set}" = set; then
6644  echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646  lt_cv_file_magic_cmd='$MAGIC_CMD'
6647lt_cv_file_magic_test_file=
6648lt_cv_deplibs_check_method='unknown'
6649# Need to set the preceding variable on all platforms that support
6650# interlibrary dependencies.
6651# 'none' -- dependencies not supported.
6652# `unknown' -- same as none, but documents that we really don't know.
6653# 'pass_all' -- all dependencies passed with no checks.
6654# 'test_compile' -- check by making test program.
6655# 'file_magic [[regex]]' -- check by looking for files in library path
6656# which responds to the $file_magic_cmd with a given extended regex.
6657# If you have `file' or equivalent on your system and you're not sure
6658# whether `pass_all' will *always* work, you probably want this one.
6659
6660case $host_os in
6661aix4* | aix5*)
6662  lt_cv_deplibs_check_method=pass_all
6663  ;;
6664
6665beos*)
6666  lt_cv_deplibs_check_method=pass_all
6667  ;;
6668
6669bsdi[45]*)
6670  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6671  lt_cv_file_magic_cmd='/usr/bin/file -L'
6672  lt_cv_file_magic_test_file=/shlib/libc.so
6673  ;;
6674
6675cygwin*)
6676  # func_win32_libid is a shell function defined in ltmain.sh
6677  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6678  lt_cv_file_magic_cmd='func_win32_libid'
6679  ;;
6680
6681mingw* | pw32*)
6682  # Base MSYS/MinGW do not provide the 'file' command needed by
6683  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6684  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6685  lt_cv_file_magic_cmd='$OBJDUMP -f'
6686  ;;
6687
6688darwin* | rhapsody*)
6689  lt_cv_deplibs_check_method=pass_all
6690  ;;
6691
6692freebsd* | kfreebsd*-gnu | dragonfly*)
6693  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6694    case $host_cpu in
6695    i*86 )
6696      # Not sure whether the presence of OpenBSD here was a mistake.
6697      # Let's accept both of them until this is cleared up.
6698      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6699      lt_cv_file_magic_cmd=/usr/bin/file
6700      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6701      ;;
6702    esac
6703  else
6704    lt_cv_deplibs_check_method=pass_all
6705  fi
6706  ;;
6707
6708gnu*)
6709  lt_cv_deplibs_check_method=pass_all
6710  ;;
6711
6712hpux10.20* | hpux11*)
6713  lt_cv_file_magic_cmd=/usr/bin/file
6714  case $host_cpu in
6715  ia64*)
6716    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6717    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6718    ;;
6719  hppa*64*)
6720    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]'
6721    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6722    ;;
6723  *)
6724    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6725    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6726    ;;
6727  esac
6728  ;;
6729
6730interix3*)
6731  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6732  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6733  ;;
6734
6735irix5* | irix6* | nonstopux*)
6736  case $LD in
6737  *-32|*"-32 ") libmagic=32-bit;;
6738  *-n32|*"-n32 ") libmagic=N32;;
6739  *-64|*"-64 ") libmagic=64-bit;;
6740  *) libmagic=never-match;;
6741  esac
6742  lt_cv_deplibs_check_method=pass_all
6743  ;;
6744
6745# This must be Linux ELF.
6746linux*)
6747  lt_cv_deplibs_check_method=pass_all
6748  ;;
6749
6750netbsd*)
6751  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6752    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6753  else
6754    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6755  fi
6756  ;;
6757
6758newos6*)
6759  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6760  lt_cv_file_magic_cmd=/usr/bin/file
6761  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6762  ;;
6763
6764nto-qnx*)
6765  lt_cv_deplibs_check_method=unknown
6766  ;;
6767
6768openbsd*)
6769  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6770    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6771  else
6772    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6773  fi
6774  ;;
6775
6776osf3* | osf4* | osf5*)
6777  lt_cv_deplibs_check_method=pass_all
6778  ;;
6779
6780solaris*)
6781  lt_cv_deplibs_check_method=pass_all
6782  ;;
6783
6784sysv4 | sysv4.3*)
6785  case $host_vendor in
6786  motorola)
6787    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]'
6788    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6789    ;;
6790  ncr)
6791    lt_cv_deplibs_check_method=pass_all
6792    ;;
6793  sequent)
6794    lt_cv_file_magic_cmd='/bin/file'
6795    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6796    ;;
6797  sni)
6798    lt_cv_file_magic_cmd='/bin/file'
6799    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6800    lt_cv_file_magic_test_file=/lib/libc.so
6801    ;;
6802  siemens)
6803    lt_cv_deplibs_check_method=pass_all
6804    ;;
6805  pc)
6806    lt_cv_deplibs_check_method=pass_all
6807    ;;
6808  esac
6809  ;;
6810
6811sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6812  lt_cv_deplibs_check_method=pass_all
6813  ;;
6814esac
6815
6816fi
6817echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6818echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6819file_magic_cmd=$lt_cv_file_magic_cmd
6820deplibs_check_method=$lt_cv_deplibs_check_method
6821test -z "$deplibs_check_method" && deplibs_check_method=unknown
6822
6823
6824
6825
6826# If no C compiler was specified, use CC.
6827LTCC=${LTCC-"$CC"}
6828
6829# If no C compiler flags were specified, use CFLAGS.
6830LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6831
6832# Allow CC to be a program name with arguments.
6833compiler=$CC
6834
6835# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6836if test "${enable_libtool_lock+set}" = set; then
6837  enableval="$enable_libtool_lock"
6838
6839fi;
6840test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6841
6842# Some flags need to be propagated to the compiler or linker for good
6843# libtool support.
6844case $host in
6845ia64-*-hpux*)
6846  # Find out which ABI we are using.
6847  echo 'int i;' > conftest.$ac_ext
6848  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849  (eval $ac_compile) 2>&5
6850  ac_status=$?
6851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852  (exit $ac_status); }; then
6853    case `/usr/bin/file conftest.$ac_objext` in
6854    *ELF-32*)
6855      HPUX_IA64_MODE="32"
6856      ;;
6857    *ELF-64*)
6858      HPUX_IA64_MODE="64"
6859      ;;
6860    esac
6861  fi
6862  rm -rf conftest*
6863  ;;
6864*-*-irix6*)
6865  # Find out which ABI we are using.
6866  echo '#line 6866 "configure"' > conftest.$ac_ext
6867  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868  (eval $ac_compile) 2>&5
6869  ac_status=$?
6870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871  (exit $ac_status); }; then
6872   if test "$lt_cv_prog_gnu_ld" = yes; then
6873    case `/usr/bin/file conftest.$ac_objext` in
6874    *32-bit*)
6875      LD="${LD-ld} -melf32bsmip"
6876      ;;
6877    *N32*)
6878      LD="${LD-ld} -melf32bmipn32"
6879      ;;
6880    *64-bit*)
6881      LD="${LD-ld} -melf64bmip"
6882      ;;
6883    esac
6884   else
6885    case `/usr/bin/file conftest.$ac_objext` in
6886    *32-bit*)
6887      LD="${LD-ld} -32"
6888      ;;
6889    *N32*)
6890      LD="${LD-ld} -n32"
6891      ;;
6892    *64-bit*)
6893      LD="${LD-ld} -64"
6894      ;;
6895    esac
6896   fi
6897  fi
6898  rm -rf conftest*
6899  ;;
6900
6901x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6902  # Find out which ABI we are using.
6903  echo 'int i;' > conftest.$ac_ext
6904  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6905  (eval $ac_compile) 2>&5
6906  ac_status=$?
6907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908  (exit $ac_status); }; then
6909    case `/usr/bin/file conftest.o` in
6910    *32-bit*)
6911      case $host in
6912        x86_64-*linux*)
6913          LD="${LD-ld} -m elf_i386"
6914          ;;
6915        ppc64-*linux*|powerpc64-*linux*)
6916          LD="${LD-ld} -m elf32ppclinux"
6917          ;;
6918        s390x-*linux*)
6919          LD="${LD-ld} -m elf_s390"
6920          ;;
6921        sparc64-*linux*)
6922          LD="${LD-ld} -m elf32_sparc"
6923          ;;
6924      esac
6925      ;;
6926    *64-bit*)
6927      case $host in
6928        x86_64-*linux*)
6929          LD="${LD-ld} -m elf_x86_64"
6930          ;;
6931        ppc*-*linux*|powerpc*-*linux*)
6932          LD="${LD-ld} -m elf64ppc"
6933          ;;
6934        s390*-*linux*)
6935          LD="${LD-ld} -m elf64_s390"
6936          ;;
6937        sparc*-*linux*)
6938          LD="${LD-ld} -m elf64_sparc"
6939          ;;
6940      esac
6941      ;;
6942    esac
6943  fi
6944  rm -rf conftest*
6945  ;;
6946
6947*-*-sco3.2v5*)
6948  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6949  SAVE_CFLAGS="$CFLAGS"
6950  CFLAGS="$CFLAGS -belf"
6951  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6952echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6953if test "${lt_cv_cc_needs_belf+set}" = set; then
6954  echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956  ac_ext=c
6957ac_cpp='$CPP $CPPFLAGS'
6958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960ac_compiler_gnu=$ac_cv_c_compiler_gnu
6961
6962     cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h.  */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h.  */
6968
6969#ifdef F77_DUMMY_MAIN
6970
6971#  ifdef __cplusplus
6972     extern "C"
6973#  endif
6974   int F77_DUMMY_MAIN() { return 1; }
6975
6976#endif
6977int
6978main ()
6979{
6980
6981  ;
6982  return 0;
6983}
6984_ACEOF
6985rm -f conftest.$ac_objext conftest$ac_exeext
6986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6987  (eval $ac_link) 2>conftest.er1
6988  ac_status=$?
6989  grep -v '^ *+' conftest.er1 >conftest.err
6990  rm -f conftest.er1
6991  cat conftest.err >&5
6992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993  (exit $ac_status); } &&
6994         { ac_try='test -z "$ac_c_werror_flag"
6995                         || test ! -s conftest.err'
6996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997  (eval $ac_try) 2>&5
6998  ac_status=$?
6999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000  (exit $ac_status); }; } &&
7001         { ac_try='test -s conftest$ac_exeext'
7002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003  (eval $ac_try) 2>&5
7004  ac_status=$?
7005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006  (exit $ac_status); }; }; then
7007  lt_cv_cc_needs_belf=yes
7008else
7009  echo "$as_me: failed program was:" >&5
7010sed 's/^/| /' conftest.$ac_ext >&5
7011
7012lt_cv_cc_needs_belf=no
7013fi
7014rm -f conftest.err conftest.$ac_objext \
7015      conftest$ac_exeext conftest.$ac_ext
7016     ac_ext=c
7017ac_cpp='$CPP $CPPFLAGS'
7018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021
7022fi
7023echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7024echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7025  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7026    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7027    CFLAGS="$SAVE_CFLAGS"
7028  fi
7029  ;;
7030sparc*-*solaris*)
7031  # Find out which ABI we are using.
7032  echo 'int i;' > conftest.$ac_ext
7033  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034  (eval $ac_compile) 2>&5
7035  ac_status=$?
7036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037  (exit $ac_status); }; then
7038    case `/usr/bin/file conftest.o` in
7039    *64-bit*)
7040      case $lt_cv_prog_gnu_ld in
7041      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7042      *)    LD="${LD-ld} -64" ;;
7043      esac
7044      ;;
7045    esac
7046  fi
7047  rm -rf conftest*
7048  ;;
7049
7050
7051esac
7052
7053need_locks="$enable_libtool_lock"
7054
7055
7056ac_ext=c
7057ac_cpp='$CPP $CPPFLAGS'
7058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7062echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7063# On Suns, sometimes $CPP names a directory.
7064if test -n "$CPP" && test -d "$CPP"; then
7065  CPP=
7066fi
7067if test -z "$CPP"; then
7068  if test "${ac_cv_prog_CPP+set}" = set; then
7069  echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071      # Double quotes because CPP needs to be expanded
7072    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7073    do
7074      ac_preproc_ok=false
7075for ac_c_preproc_warn_flag in '' yes
7076do
7077  # Use a header file that comes with gcc, so configuring glibc
7078  # with a fresh cross-compiler works.
7079  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7080  # <limits.h> exists even on freestanding compilers.
7081  # On the NeXT, cc -E runs the code through the compiler's parser,
7082  # not just through cpp. "Syntax error" is here to catch this case.
7083  cat >conftest.$ac_ext <<_ACEOF
7084/* confdefs.h.  */
7085_ACEOF
7086cat confdefs.h >>conftest.$ac_ext
7087cat >>conftest.$ac_ext <<_ACEOF
7088/* end confdefs.h.  */
7089#ifdef __STDC__
7090# include <limits.h>
7091#else
7092# include <assert.h>
7093#endif
7094                     Syntax error
7095_ACEOF
7096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7097  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7098  ac_status=$?
7099  grep -v '^ *+' conftest.er1 >conftest.err
7100  rm -f conftest.er1
7101  cat conftest.err >&5
7102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103  (exit $ac_status); } >/dev/null; then
7104  if test -s conftest.err; then
7105    ac_cpp_err=$ac_c_preproc_warn_flag
7106    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7107  else
7108    ac_cpp_err=
7109  fi
7110else
7111  ac_cpp_err=yes
7112fi
7113if test -z "$ac_cpp_err"; then
7114  :
7115else
7116  echo "$as_me: failed program was:" >&5
7117sed 's/^/| /' conftest.$ac_ext >&5
7118
7119  # Broken: fails on valid input.
7120continue
7121fi
7122rm -f conftest.err conftest.$ac_ext
7123
7124  # OK, works on sane cases.  Now check whether non-existent headers
7125  # can be detected and how.
7126  cat >conftest.$ac_ext <<_ACEOF
7127/* confdefs.h.  */
7128_ACEOF
7129cat confdefs.h >>conftest.$ac_ext
7130cat >>conftest.$ac_ext <<_ACEOF
7131/* end confdefs.h.  */
7132#include <ac_nonexistent.h>
7133_ACEOF
7134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7135  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7136  ac_status=$?
7137  grep -v '^ *+' conftest.er1 >conftest.err
7138  rm -f conftest.er1
7139  cat conftest.err >&5
7140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141  (exit $ac_status); } >/dev/null; then
7142  if test -s conftest.err; then
7143    ac_cpp_err=$ac_c_preproc_warn_flag
7144    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7145  else
7146    ac_cpp_err=
7147  fi
7148else
7149  ac_cpp_err=yes
7150fi
7151if test -z "$ac_cpp_err"; then
7152  # Broken: success on invalid input.
7153continue
7154else
7155  echo "$as_me: failed program was:" >&5
7156sed 's/^/| /' conftest.$ac_ext >&5
7157
7158  # Passes both tests.
7159ac_preproc_ok=:
7160break
7161fi
7162rm -f conftest.err conftest.$ac_ext
7163
7164done
7165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7166rm -f conftest.err conftest.$ac_ext
7167if $ac_preproc_ok; then
7168  break
7169fi
7170
7171    done
7172    ac_cv_prog_CPP=$CPP
7173
7174fi
7175  CPP=$ac_cv_prog_CPP
7176else
7177  ac_cv_prog_CPP=$CPP
7178fi
7179echo "$as_me:$LINENO: result: $CPP" >&5
7180echo "${ECHO_T}$CPP" >&6
7181ac_preproc_ok=false
7182for ac_c_preproc_warn_flag in '' yes
7183do
7184  # Use a header file that comes with gcc, so configuring glibc
7185  # with a fresh cross-compiler works.
7186  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7187  # <limits.h> exists even on freestanding compilers.
7188  # On the NeXT, cc -E runs the code through the compiler's parser,
7189  # not just through cpp. "Syntax error" is here to catch this case.
7190  cat >conftest.$ac_ext <<_ACEOF
7191/* confdefs.h.  */
7192_ACEOF
7193cat confdefs.h >>conftest.$ac_ext
7194cat >>conftest.$ac_ext <<_ACEOF
7195/* end confdefs.h.  */
7196#ifdef __STDC__
7197# include <limits.h>
7198#else
7199# include <assert.h>
7200#endif
7201                     Syntax error
7202_ACEOF
7203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7204  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7205  ac_status=$?
7206  grep -v '^ *+' conftest.er1 >conftest.err
7207  rm -f conftest.er1
7208  cat conftest.err >&5
7209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210  (exit $ac_status); } >/dev/null; then
7211  if test -s conftest.err; then
7212    ac_cpp_err=$ac_c_preproc_warn_flag
7213    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7214  else
7215    ac_cpp_err=
7216  fi
7217else
7218  ac_cpp_err=yes
7219fi
7220if test -z "$ac_cpp_err"; then
7221  :
7222else
7223  echo "$as_me: failed program was:" >&5
7224sed 's/^/| /' conftest.$ac_ext >&5
7225
7226  # Broken: fails on valid input.
7227continue
7228fi
7229rm -f conftest.err conftest.$ac_ext
7230
7231  # OK, works on sane cases.  Now check whether non-existent headers
7232  # can be detected and how.
7233  cat >conftest.$ac_ext <<_ACEOF
7234/* confdefs.h.  */
7235_ACEOF
7236cat confdefs.h >>conftest.$ac_ext
7237cat >>conftest.$ac_ext <<_ACEOF
7238/* end confdefs.h.  */
7239#include <ac_nonexistent.h>
7240_ACEOF
7241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7242  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7243  ac_status=$?
7244  grep -v '^ *+' conftest.er1 >conftest.err
7245  rm -f conftest.er1
7246  cat conftest.err >&5
7247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248  (exit $ac_status); } >/dev/null; then
7249  if test -s conftest.err; then
7250    ac_cpp_err=$ac_c_preproc_warn_flag
7251    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7252  else
7253    ac_cpp_err=
7254  fi
7255else
7256  ac_cpp_err=yes
7257fi
7258if test -z "$ac_cpp_err"; then
7259  # Broken: success on invalid input.
7260continue
7261else
7262  echo "$as_me: failed program was:" >&5
7263sed 's/^/| /' conftest.$ac_ext >&5
7264
7265  # Passes both tests.
7266ac_preproc_ok=:
7267break
7268fi
7269rm -f conftest.err conftest.$ac_ext
7270
7271done
7272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7273rm -f conftest.err conftest.$ac_ext
7274if $ac_preproc_ok; then
7275  :
7276else
7277  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7278See \`config.log' for more details." >&5
7279echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7280See \`config.log' for more details." >&2;}
7281   { (exit 1); exit 1; }; }
7282fi
7283
7284ac_ext=c
7285ac_cpp='$CPP $CPPFLAGS'
7286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7288ac_compiler_gnu=$ac_cv_c_compiler_gnu
7289
7290
7291echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7292echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7293if test "${ac_cv_header_stdc+set}" = set; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296  cat >conftest.$ac_ext <<_ACEOF
7297/* confdefs.h.  */
7298_ACEOF
7299cat confdefs.h >>conftest.$ac_ext
7300cat >>conftest.$ac_ext <<_ACEOF
7301/* end confdefs.h.  */
7302#include <stdlib.h>
7303#include <stdarg.h>
7304#include <string.h>
7305#include <float.h>
7306
7307#ifdef F77_DUMMY_MAIN
7308
7309#  ifdef __cplusplus
7310     extern "C"
7311#  endif
7312   int F77_DUMMY_MAIN() { return 1; }
7313
7314#endif
7315int
7316main ()
7317{
7318
7319  ;
7320  return 0;
7321}
7322_ACEOF
7323rm -f conftest.$ac_objext
7324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325  (eval $ac_compile) 2>conftest.er1
7326  ac_status=$?
7327  grep -v '^ *+' conftest.er1 >conftest.err
7328  rm -f conftest.er1
7329  cat conftest.err >&5
7330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331  (exit $ac_status); } &&
7332         { ac_try='test -z "$ac_c_werror_flag"
7333                         || test ! -s conftest.err'
7334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335  (eval $ac_try) 2>&5
7336  ac_status=$?
7337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338  (exit $ac_status); }; } &&
7339         { ac_try='test -s conftest.$ac_objext'
7340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341  (eval $ac_try) 2>&5
7342  ac_status=$?
7343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344  (exit $ac_status); }; }; then
7345  ac_cv_header_stdc=yes
7346else
7347  echo "$as_me: failed program was:" >&5
7348sed 's/^/| /' conftest.$ac_ext >&5
7349
7350ac_cv_header_stdc=no
7351fi
7352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7353
7354if test $ac_cv_header_stdc = yes; then
7355  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7356  cat >conftest.$ac_ext <<_ACEOF
7357/* confdefs.h.  */
7358_ACEOF
7359cat confdefs.h >>conftest.$ac_ext
7360cat >>conftest.$ac_ext <<_ACEOF
7361/* end confdefs.h.  */
7362#include <string.h>
7363
7364_ACEOF
7365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7366  $EGREP "memchr" >/dev/null 2>&1; then
7367  :
7368else
7369  ac_cv_header_stdc=no
7370fi
7371rm -f conftest*
7372
7373fi
7374
7375if test $ac_cv_header_stdc = yes; then
7376  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7377  cat >conftest.$ac_ext <<_ACEOF
7378/* confdefs.h.  */
7379_ACEOF
7380cat confdefs.h >>conftest.$ac_ext
7381cat >>conftest.$ac_ext <<_ACEOF
7382/* end confdefs.h.  */
7383#include <stdlib.h>
7384
7385_ACEOF
7386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7387  $EGREP "free" >/dev/null 2>&1; then
7388  :
7389else
7390  ac_cv_header_stdc=no
7391fi
7392rm -f conftest*
7393
7394fi
7395
7396if test $ac_cv_header_stdc = yes; then
7397  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7398  if test "$cross_compiling" = yes; then
7399  :
7400else
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 <ctype.h>
7408#if ((' ' & 0x0FF) == 0x020)
7409# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7410# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7411#else
7412# define ISLOWER(c) \
7413                   (('a' <= (c) && (c) <= 'i') \
7414                     || ('j' <= (c) && (c) <= 'r') \
7415                     || ('s' <= (c) && (c) <= 'z'))
7416# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7417#endif
7418
7419#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7420int
7421main ()
7422{
7423  int i;
7424  for (i = 0; i < 256; i++)
7425    if (XOR (islower (i), ISLOWER (i))
7426        || toupper (i) != TOUPPER (i))
7427      exit(2);
7428  exit (0);
7429}
7430_ACEOF
7431rm -f conftest$ac_exeext
7432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7433  (eval $ac_link) 2>&5
7434  ac_status=$?
7435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438  (eval $ac_try) 2>&5
7439  ac_status=$?
7440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441  (exit $ac_status); }; }; then
7442  :
7443else
7444  echo "$as_me: program exited with status $ac_status" >&5
7445echo "$as_me: failed program was:" >&5
7446sed 's/^/| /' conftest.$ac_ext >&5
7447
7448( exit $ac_status )
7449ac_cv_header_stdc=no
7450fi
7451rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7452fi
7453fi
7454fi
7455echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7456echo "${ECHO_T}$ac_cv_header_stdc" >&6
7457if test $ac_cv_header_stdc = yes; then
7458
7459cat >>confdefs.h <<\_ACEOF
7460#define STDC_HEADERS 1
7461_ACEOF
7462
7463fi
7464
7465# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7476                  inttypes.h stdint.h unistd.h
7477do
7478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7479echo "$as_me:$LINENO: checking for $ac_header" >&5
7480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7481if eval "test \"\${$as_ac_Header+set}\" = set"; then
7482  echo $ECHO_N "(cached) $ECHO_C" >&6
7483else
7484  cat >conftest.$ac_ext <<_ACEOF
7485/* confdefs.h.  */
7486_ACEOF
7487cat confdefs.h >>conftest.$ac_ext
7488cat >>conftest.$ac_ext <<_ACEOF
7489/* end confdefs.h.  */
7490$ac_includes_default
7491
7492#include <$ac_header>
7493_ACEOF
7494rm -f conftest.$ac_objext
7495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7496  (eval $ac_compile) 2>conftest.er1
7497  ac_status=$?
7498  grep -v '^ *+' conftest.er1 >conftest.err
7499  rm -f conftest.er1
7500  cat conftest.err >&5
7501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502  (exit $ac_status); } &&
7503         { ac_try='test -z "$ac_c_werror_flag"
7504                         || test ! -s conftest.err'
7505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506  (eval $ac_try) 2>&5
7507  ac_status=$?
7508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509  (exit $ac_status); }; } &&
7510         { ac_try='test -s conftest.$ac_objext'
7511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512  (eval $ac_try) 2>&5
7513  ac_status=$?
7514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515  (exit $ac_status); }; }; then
7516  eval "$as_ac_Header=yes"
7517else
7518  echo "$as_me: failed program was:" >&5
7519sed 's/^/| /' conftest.$ac_ext >&5
7520
7521eval "$as_ac_Header=no"
7522fi
7523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7524fi
7525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7527if test `eval echo '${'$as_ac_Header'}'` = yes; then
7528  cat >>confdefs.h <<_ACEOF
7529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7530_ACEOF
7531
7532fi
7533
7534done
7535
7536
7537
7538for ac_header in dlfcn.h
7539do
7540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7541if eval "test \"\${$as_ac_Header+set}\" = set"; then
7542  echo "$as_me:$LINENO: checking for $ac_header" >&5
7543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7544if eval "test \"\${$as_ac_Header+set}\" = set"; then
7545  echo $ECHO_N "(cached) $ECHO_C" >&6
7546fi
7547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7549else
7550  # Is the header compilable?
7551echo "$as_me:$LINENO: checking $ac_header usability" >&5
7552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7553cat >conftest.$ac_ext <<_ACEOF
7554/* confdefs.h.  */
7555_ACEOF
7556cat confdefs.h >>conftest.$ac_ext
7557cat >>conftest.$ac_ext <<_ACEOF
7558/* end confdefs.h.  */
7559$ac_includes_default
7560#include <$ac_header>
7561_ACEOF
7562rm -f conftest.$ac_objext
7563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564  (eval $ac_compile) 2>conftest.er1
7565  ac_status=$?
7566  grep -v '^ *+' conftest.er1 >conftest.err
7567  rm -f conftest.er1
7568  cat conftest.err >&5
7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570  (exit $ac_status); } &&
7571         { ac_try='test -z "$ac_c_werror_flag"
7572                         || test ! -s conftest.err'
7573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574  (eval $ac_try) 2>&5
7575  ac_status=$?
7576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577  (exit $ac_status); }; } &&
7578         { ac_try='test -s conftest.$ac_objext'
7579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580  (eval $ac_try) 2>&5
7581  ac_status=$?
7582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583  (exit $ac_status); }; }; then
7584  ac_header_compiler=yes
7585else
7586  echo "$as_me: failed program was:" >&5
7587sed 's/^/| /' conftest.$ac_ext >&5
7588
7589ac_header_compiler=no
7590fi
7591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7593echo "${ECHO_T}$ac_header_compiler" >&6
7594
7595# Is the header present?
7596echo "$as_me:$LINENO: checking $ac_header presence" >&5
7597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7598cat >conftest.$ac_ext <<_ACEOF
7599/* confdefs.h.  */
7600_ACEOF
7601cat confdefs.h >>conftest.$ac_ext
7602cat >>conftest.$ac_ext <<_ACEOF
7603/* end confdefs.h.  */
7604#include <$ac_header>
7605_ACEOF
7606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7607  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7608  ac_status=$?
7609  grep -v '^ *+' conftest.er1 >conftest.err
7610  rm -f conftest.er1
7611  cat conftest.err >&5
7612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613  (exit $ac_status); } >/dev/null; then
7614  if test -s conftest.err; then
7615    ac_cpp_err=$ac_c_preproc_warn_flag
7616    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7617  else
7618    ac_cpp_err=
7619  fi
7620else
7621  ac_cpp_err=yes
7622fi
7623if test -z "$ac_cpp_err"; then
7624  ac_header_preproc=yes
7625else
7626  echo "$as_me: failed program was:" >&5
7627sed 's/^/| /' conftest.$ac_ext >&5
7628
7629  ac_header_preproc=no
7630fi
7631rm -f conftest.err conftest.$ac_ext
7632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7633echo "${ECHO_T}$ac_header_preproc" >&6
7634
7635# So?  What about this header?
7636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7637  yes:no: )
7638    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7640    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7642    ac_header_preproc=yes
7643    ;;
7644  no:yes:* )
7645    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7647    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7648echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7649    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7651    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7652echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7653    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7655    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7657    (
7658      cat <<\_ASBOX
7659## --------------------------------------------------------------- ##
7660## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7661## --------------------------------------------------------------- ##
7662_ASBOX
7663    ) |
7664      sed "s/^/$as_me: WARNING:     /" >&2
7665    ;;
7666esac
7667echo "$as_me:$LINENO: checking for $ac_header" >&5
7668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7669if eval "test \"\${$as_ac_Header+set}\" = set"; then
7670  echo $ECHO_N "(cached) $ECHO_C" >&6
7671else
7672  eval "$as_ac_Header=\$ac_header_preproc"
7673fi
7674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7676
7677fi
7678if test `eval echo '${'$as_ac_Header'}'` = yes; then
7679  cat >>confdefs.h <<_ACEOF
7680#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7681_ACEOF
7682
7683fi
7684
7685done
7686
7687ac_ext=cc
7688ac_cpp='$CXXCPP $CPPFLAGS'
7689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7692if test -n "$ac_tool_prefix"; then
7693  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7694  do
7695    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7696set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7697echo "$as_me:$LINENO: checking for $ac_word" >&5
7698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7699if test "${ac_cv_prog_CXX+set}" = set; then
7700  echo $ECHO_N "(cached) $ECHO_C" >&6
7701else
7702  if test -n "$CXX"; then
7703  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7704else
7705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706for as_dir in $PATH
7707do
7708  IFS=$as_save_IFS
7709  test -z "$as_dir" && as_dir=.
7710  for ac_exec_ext in '' $ac_executable_extensions; do
7711  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7713    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714    break 2
7715  fi
7716done
7717done
7718
7719fi
7720fi
7721CXX=$ac_cv_prog_CXX
7722if test -n "$CXX"; then
7723  echo "$as_me:$LINENO: result: $CXX" >&5
7724echo "${ECHO_T}$CXX" >&6
7725else
7726  echo "$as_me:$LINENO: result: no" >&5
7727echo "${ECHO_T}no" >&6
7728fi
7729
7730    test -n "$CXX" && break
7731  done
7732fi
7733if test -z "$CXX"; then
7734  ac_ct_CXX=$CXX
7735  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7736do
7737  # Extract the first word of "$ac_prog", so it can be a program name with args.
7738set dummy $ac_prog; ac_word=$2
7739echo "$as_me:$LINENO: checking for $ac_word" >&5
7740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7741if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7742  echo $ECHO_N "(cached) $ECHO_C" >&6
7743else
7744  if test -n "$ac_ct_CXX"; then
7745  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750  IFS=$as_save_IFS
7751  test -z "$as_dir" && as_dir=.
7752  for ac_exec_ext in '' $ac_executable_extensions; do
7753  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754    ac_cv_prog_ac_ct_CXX="$ac_prog"
7755    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756    break 2
7757  fi
7758done
7759done
7760
7761fi
7762fi
7763ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7764if test -n "$ac_ct_CXX"; then
7765  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7766echo "${ECHO_T}$ac_ct_CXX" >&6
7767else
7768  echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6
7770fi
7771
7772  test -n "$ac_ct_CXX" && break
7773done
7774test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7775
7776  CXX=$ac_ct_CXX
7777fi
7778
7779
7780# Provide some information about the compiler.
7781echo "$as_me:$LINENO:" \
7782     "checking for C++ compiler version" >&5
7783ac_compiler=`set X $ac_compile; echo $2`
7784{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7785  (eval $ac_compiler --version </dev/null >&5) 2>&5
7786  ac_status=$?
7787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788  (exit $ac_status); }
7789{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7790  (eval $ac_compiler -v </dev/null >&5) 2>&5
7791  ac_status=$?
7792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793  (exit $ac_status); }
7794{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7795  (eval $ac_compiler -V </dev/null >&5) 2>&5
7796  ac_status=$?
7797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798  (exit $ac_status); }
7799
7800echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7801echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7802if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7803  echo $ECHO_N "(cached) $ECHO_C" >&6
7804else
7805  cat >conftest.$ac_ext <<_ACEOF
7806/* confdefs.h.  */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h.  */
7811
7812#ifdef F77_DUMMY_MAIN
7813
7814#  ifdef __cplusplus
7815     extern "C"
7816#  endif
7817   int F77_DUMMY_MAIN() { return 1; }
7818
7819#endif
7820int
7821main ()
7822{
7823#ifndef __GNUC__
7824       choke me
7825#endif
7826
7827  ;
7828  return 0;
7829}
7830_ACEOF
7831rm -f conftest.$ac_objext
7832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7833  (eval $ac_compile) 2>conftest.er1
7834  ac_status=$?
7835  grep -v '^ *+' conftest.er1 >conftest.err
7836  rm -f conftest.er1
7837  cat conftest.err >&5
7838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839  (exit $ac_status); } &&
7840         { ac_try='test -z "$ac_cxx_werror_flag"
7841                         || test ! -s conftest.err'
7842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843  (eval $ac_try) 2>&5
7844  ac_status=$?
7845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846  (exit $ac_status); }; } &&
7847         { ac_try='test -s conftest.$ac_objext'
7848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849  (eval $ac_try) 2>&5
7850  ac_status=$?
7851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852  (exit $ac_status); }; }; then
7853  ac_compiler_gnu=yes
7854else
7855  echo "$as_me: failed program was:" >&5
7856sed 's/^/| /' conftest.$ac_ext >&5
7857
7858ac_compiler_gnu=no
7859fi
7860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7861ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7862
7863fi
7864echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7865echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7866GXX=`test $ac_compiler_gnu = yes && echo yes`
7867ac_test_CXXFLAGS=${CXXFLAGS+set}
7868ac_save_CXXFLAGS=$CXXFLAGS
7869CXXFLAGS="-g"
7870echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7871echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7872if test "${ac_cv_prog_cxx_g+set}" = set; then
7873  echo $ECHO_N "(cached) $ECHO_C" >&6
7874else
7875  cat >conftest.$ac_ext <<_ACEOF
7876/* confdefs.h.  */
7877_ACEOF
7878cat confdefs.h >>conftest.$ac_ext
7879cat >>conftest.$ac_ext <<_ACEOF
7880/* end confdefs.h.  */
7881
7882#ifdef F77_DUMMY_MAIN
7883
7884#  ifdef __cplusplus
7885     extern "C"
7886#  endif
7887   int F77_DUMMY_MAIN() { return 1; }
7888
7889#endif
7890int
7891main ()
7892{
7893
7894  ;
7895  return 0;
7896}
7897_ACEOF
7898rm -f conftest.$ac_objext
7899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900  (eval $ac_compile) 2>conftest.er1
7901  ac_status=$?
7902  grep -v '^ *+' conftest.er1 >conftest.err
7903  rm -f conftest.er1
7904  cat conftest.err >&5
7905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906  (exit $ac_status); } &&
7907         { ac_try='test -z "$ac_cxx_werror_flag"
7908                         || test ! -s conftest.err'
7909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910  (eval $ac_try) 2>&5
7911  ac_status=$?
7912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913  (exit $ac_status); }; } &&
7914         { ac_try='test -s conftest.$ac_objext'
7915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916  (eval $ac_try) 2>&5
7917  ac_status=$?
7918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919  (exit $ac_status); }; }; then
7920  ac_cv_prog_cxx_g=yes
7921else
7922  echo "$as_me: failed program was:" >&5
7923sed 's/^/| /' conftest.$ac_ext >&5
7924
7925ac_cv_prog_cxx_g=no
7926fi
7927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7928fi
7929echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7930echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7931if test "$ac_test_CXXFLAGS" = set; then
7932  CXXFLAGS=$ac_save_CXXFLAGS
7933elif test $ac_cv_prog_cxx_g = yes; then
7934  if test "$GXX" = yes; then
7935    CXXFLAGS="-g -O2"
7936  else
7937    CXXFLAGS="-g"
7938  fi
7939else
7940  if test "$GXX" = yes; then
7941    CXXFLAGS="-O2"
7942  else
7943    CXXFLAGS=
7944  fi
7945fi
7946for ac_declaration in \
7947   '' \
7948   'extern "C" void std::exit (int) throw (); using std::exit;' \
7949   'extern "C" void std::exit (int); using std::exit;' \
7950   'extern "C" void exit (int) throw ();' \
7951   'extern "C" void exit (int);' \
7952   'void exit (int);'
7953do
7954  cat >conftest.$ac_ext <<_ACEOF
7955/* confdefs.h.  */
7956_ACEOF
7957cat confdefs.h >>conftest.$ac_ext
7958cat >>conftest.$ac_ext <<_ACEOF
7959/* end confdefs.h.  */
7960$ac_declaration
7961#include <stdlib.h>
7962#ifdef F77_DUMMY_MAIN
7963
7964#  ifdef __cplusplus
7965     extern "C"
7966#  endif
7967   int F77_DUMMY_MAIN() { return 1; }
7968
7969#endif
7970int
7971main ()
7972{
7973exit (42);
7974  ;
7975  return 0;
7976}
7977_ACEOF
7978rm -f conftest.$ac_objext
7979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7980  (eval $ac_compile) 2>conftest.er1
7981  ac_status=$?
7982  grep -v '^ *+' conftest.er1 >conftest.err
7983  rm -f conftest.er1
7984  cat conftest.err >&5
7985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986  (exit $ac_status); } &&
7987         { ac_try='test -z "$ac_cxx_werror_flag"
7988                         || test ! -s conftest.err'
7989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990  (eval $ac_try) 2>&5
7991  ac_status=$?
7992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993  (exit $ac_status); }; } &&
7994         { ac_try='test -s conftest.$ac_objext'
7995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996  (eval $ac_try) 2>&5
7997  ac_status=$?
7998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999  (exit $ac_status); }; }; then
8000  :
8001else
8002  echo "$as_me: failed program was:" >&5
8003sed 's/^/| /' conftest.$ac_ext >&5
8004
8005continue
8006fi
8007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8008  cat >conftest.$ac_ext <<_ACEOF
8009/* confdefs.h.  */
8010_ACEOF
8011cat confdefs.h >>conftest.$ac_ext
8012cat >>conftest.$ac_ext <<_ACEOF
8013/* end confdefs.h.  */
8014$ac_declaration
8015#ifdef F77_DUMMY_MAIN
8016
8017#  ifdef __cplusplus
8018     extern "C"
8019#  endif
8020   int F77_DUMMY_MAIN() { return 1; }
8021
8022#endif
8023int
8024main ()
8025{
8026exit (42);
8027  ;
8028  return 0;
8029}
8030_ACEOF
8031rm -f conftest.$ac_objext
8032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033  (eval $ac_compile) 2>conftest.er1
8034  ac_status=$?
8035  grep -v '^ *+' conftest.er1 >conftest.err
8036  rm -f conftest.er1
8037  cat conftest.err >&5
8038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039  (exit $ac_status); } &&
8040         { ac_try='test -z "$ac_cxx_werror_flag"
8041                         || test ! -s conftest.err'
8042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043  (eval $ac_try) 2>&5
8044  ac_status=$?
8045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046  (exit $ac_status); }; } &&
8047         { ac_try='test -s conftest.$ac_objext'
8048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049  (eval $ac_try) 2>&5
8050  ac_status=$?
8051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052  (exit $ac_status); }; }; then
8053  break
8054else
8055  echo "$as_me: failed program was:" >&5
8056sed 's/^/| /' conftest.$ac_ext >&5
8057
8058fi
8059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8060done
8061rm -f conftest*
8062if test -n "$ac_declaration"; then
8063  echo '#ifdef __cplusplus' >>confdefs.h
8064  echo $ac_declaration      >>confdefs.h
8065  echo '#endif'             >>confdefs.h
8066fi
8067
8068ac_ext=cc
8069ac_cpp='$CXXCPP $CPPFLAGS'
8070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8073
8074depcc="$CXX"  am_compiler_list=
8075
8076echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8077echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8078if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8079  echo $ECHO_N "(cached) $ECHO_C" >&6
8080else
8081  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8082  # We make a subdir and do the tests there.  Otherwise we can end up
8083  # making bogus files that we don't know about and never remove.  For
8084  # instance it was reported that on HP-UX the gcc test will end up
8085  # making a dummy file named `D' -- because `-MD' means `put the output
8086  # in D'.
8087  mkdir conftest.dir
8088  # Copy depcomp to subdir because otherwise we won't find it if we're
8089  # using a relative directory.
8090  cp "$am_depcomp" conftest.dir
8091  cd conftest.dir
8092  # We will build objects and dependencies in a subdirectory because
8093  # it helps to detect inapplicable dependency modes.  For instance
8094  # both Tru64's cc and ICC support -MD to output dependencies as a
8095  # side effect of compilation, but ICC will put the dependencies in
8096  # the current directory while Tru64 will put them in the object
8097  # directory.
8098  mkdir sub
8099
8100  am_cv_CXX_dependencies_compiler_type=none
8101  if test "$am_compiler_list" = ""; then
8102     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8103  fi
8104  for depmode in $am_compiler_list; do
8105    # Setup a source with many dependencies, because some compilers
8106    # like to wrap large dependency lists on column 80 (with \), and
8107    # we should not choose a depcomp mode which is confused by this.
8108    #
8109    # We need to recreate these files for each test, as the compiler may
8110    # overwrite some of them when testing with obscure command lines.
8111    # This happens at least with the AIX C compiler.
8112    : > sub/conftest.c
8113    for i in 1 2 3 4 5 6; do
8114      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8115      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8116      # Solaris 8's {/usr,}/bin/sh.
8117      touch sub/conftst$i.h
8118    done
8119    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8120
8121    case $depmode in
8122    nosideeffect)
8123      # after this tag, mechanisms are not by side-effect, so they'll
8124      # only be used when explicitly requested
8125      if test "x$enable_dependency_tracking" = xyes; then
8126        continue
8127      else
8128        break
8129      fi
8130      ;;
8131    none) break ;;
8132    esac
8133    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8134    # mode.  It turns out that the SunPro C++ compiler does not properly
8135    # handle `-M -o', and we need to detect this.
8136    if depmode=$depmode \
8137       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8138       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8139       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8140         >/dev/null 2>conftest.err &&
8141       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8142       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8143       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8144      # icc doesn't choke on unknown options, it will just issue warnings
8145      # or remarks (even with -Werror).  So we grep stderr for any message
8146      # that says an option was ignored or not supported.
8147      # When given -MP, icc 7.0 and 7.1 complain thusly:
8148      #   icc: Command line warning: ignoring option '-M'; no argument required
8149      # The diagnosis changed in icc 8.0:
8150      #   icc: Command line remark: option '-MP' not supported
8151      if (grep 'ignoring option' conftest.err ||
8152          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8153        am_cv_CXX_dependencies_compiler_type=$depmode
8154        break
8155      fi
8156    fi
8157  done
8158
8159  cd ..
8160  rm -rf conftest.dir
8161else
8162  am_cv_CXX_dependencies_compiler_type=none
8163fi
8164
8165fi
8166echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8167echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8168CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8169
8170
8171
8172if
8173  test "x$enable_dependency_tracking" != xno \
8174  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8175  am__fastdepCXX_TRUE=
8176  am__fastdepCXX_FALSE='#'
8177else
8178  am__fastdepCXX_TRUE='#'
8179  am__fastdepCXX_FALSE=
8180fi
8181
8182
8183
8184
8185if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8186    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8187    (test "X$CXX" != "Xg++"))) ; then
8188  ac_ext=cc
8189ac_cpp='$CXXCPP $CPPFLAGS'
8190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8193echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8194echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8195if test -z "$CXXCPP"; then
8196  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8197  echo $ECHO_N "(cached) $ECHO_C" >&6
8198else
8199      # Double quotes because CXXCPP needs to be expanded
8200    for CXXCPP in "$CXX -E" "/lib/cpp"
8201    do
8202      ac_preproc_ok=false
8203for ac_cxx_preproc_warn_flag in '' yes
8204do
8205  # Use a header file that comes with gcc, so configuring glibc
8206  # with a fresh cross-compiler works.
8207  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8208  # <limits.h> exists even on freestanding compilers.
8209  # On the NeXT, cc -E runs the code through the compiler's parser,
8210  # not just through cpp. "Syntax error" is here to catch this case.
8211  cat >conftest.$ac_ext <<_ACEOF
8212/* confdefs.h.  */
8213_ACEOF
8214cat confdefs.h >>conftest.$ac_ext
8215cat >>conftest.$ac_ext <<_ACEOF
8216/* end confdefs.h.  */
8217#ifdef __STDC__
8218# include <limits.h>
8219#else
8220# include <assert.h>
8221#endif
8222                     Syntax error
8223_ACEOF
8224if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8225  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8226  ac_status=$?
8227  grep -v '^ *+' conftest.er1 >conftest.err
8228  rm -f conftest.er1
8229  cat conftest.err >&5
8230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231  (exit $ac_status); } >/dev/null; then
8232  if test -s conftest.err; then
8233    ac_cpp_err=$ac_cxx_preproc_warn_flag
8234    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8235  else
8236    ac_cpp_err=
8237  fi
8238else
8239  ac_cpp_err=yes
8240fi
8241if test -z "$ac_cpp_err"; then
8242  :
8243else
8244  echo "$as_me: failed program was:" >&5
8245sed 's/^/| /' conftest.$ac_ext >&5
8246
8247  # Broken: fails on valid input.
8248continue
8249fi
8250rm -f conftest.err conftest.$ac_ext
8251
8252  # OK, works on sane cases.  Now check whether non-existent headers
8253  # can be detected and how.
8254  cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h.  */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h.  */
8260#include <ac_nonexistent.h>
8261_ACEOF
8262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8263  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8264  ac_status=$?
8265  grep -v '^ *+' conftest.er1 >conftest.err
8266  rm -f conftest.er1
8267  cat conftest.err >&5
8268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269  (exit $ac_status); } >/dev/null; then
8270  if test -s conftest.err; then
8271    ac_cpp_err=$ac_cxx_preproc_warn_flag
8272    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8273  else
8274    ac_cpp_err=
8275  fi
8276else
8277  ac_cpp_err=yes
8278fi
8279if test -z "$ac_cpp_err"; then
8280  # Broken: success on invalid input.
8281continue
8282else
8283  echo "$as_me: failed program was:" >&5
8284sed 's/^/| /' conftest.$ac_ext >&5
8285
8286  # Passes both tests.
8287ac_preproc_ok=:
8288break
8289fi
8290rm -f conftest.err conftest.$ac_ext
8291
8292done
8293# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8294rm -f conftest.err conftest.$ac_ext
8295if $ac_preproc_ok; then
8296  break
8297fi
8298
8299    done
8300    ac_cv_prog_CXXCPP=$CXXCPP
8301
8302fi
8303  CXXCPP=$ac_cv_prog_CXXCPP
8304else
8305  ac_cv_prog_CXXCPP=$CXXCPP
8306fi
8307echo "$as_me:$LINENO: result: $CXXCPP" >&5
8308echo "${ECHO_T}$CXXCPP" >&6
8309ac_preproc_ok=false
8310for ac_cxx_preproc_warn_flag in '' yes
8311do
8312  # Use a header file that comes with gcc, so configuring glibc
8313  # with a fresh cross-compiler works.
8314  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8315  # <limits.h> exists even on freestanding compilers.
8316  # On the NeXT, cc -E runs the code through the compiler's parser,
8317  # not just through cpp. "Syntax error" is here to catch this case.
8318  cat >conftest.$ac_ext <<_ACEOF
8319/* confdefs.h.  */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
8323/* end confdefs.h.  */
8324#ifdef __STDC__
8325# include <limits.h>
8326#else
8327# include <assert.h>
8328#endif
8329                     Syntax error
8330_ACEOF
8331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8332  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8333  ac_status=$?
8334  grep -v '^ *+' conftest.er1 >conftest.err
8335  rm -f conftest.er1
8336  cat conftest.err >&5
8337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338  (exit $ac_status); } >/dev/null; then
8339  if test -s conftest.err; then
8340    ac_cpp_err=$ac_cxx_preproc_warn_flag
8341    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8342  else
8343    ac_cpp_err=
8344  fi
8345else
8346  ac_cpp_err=yes
8347fi
8348if test -z "$ac_cpp_err"; then
8349  :
8350else
8351  echo "$as_me: failed program was:" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
8354  # Broken: fails on valid input.
8355continue
8356fi
8357rm -f conftest.err conftest.$ac_ext
8358
8359  # OK, works on sane cases.  Now check whether non-existent headers
8360  # can be detected and how.
8361  cat >conftest.$ac_ext <<_ACEOF
8362/* confdefs.h.  */
8363_ACEOF
8364cat confdefs.h >>conftest.$ac_ext
8365cat >>conftest.$ac_ext <<_ACEOF
8366/* end confdefs.h.  */
8367#include <ac_nonexistent.h>
8368_ACEOF
8369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8370  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8371  ac_status=$?
8372  grep -v '^ *+' conftest.er1 >conftest.err
8373  rm -f conftest.er1
8374  cat conftest.err >&5
8375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376  (exit $ac_status); } >/dev/null; then
8377  if test -s conftest.err; then
8378    ac_cpp_err=$ac_cxx_preproc_warn_flag
8379    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8380  else
8381    ac_cpp_err=
8382  fi
8383else
8384  ac_cpp_err=yes
8385fi
8386if test -z "$ac_cpp_err"; then
8387  # Broken: success on invalid input.
8388continue
8389else
8390  echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393  # Passes both tests.
8394ac_preproc_ok=:
8395break
8396fi
8397rm -f conftest.err conftest.$ac_ext
8398
8399done
8400# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8401rm -f conftest.err conftest.$ac_ext
8402if $ac_preproc_ok; then
8403  :
8404else
8405  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8406See \`config.log' for more details." >&5
8407echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8408See \`config.log' for more details." >&2;}
8409   { (exit 1); exit 1; }; }
8410fi
8411
8412ac_ext=cc
8413ac_cpp='$CXXCPP $CPPFLAGS'
8414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8417
8418fi
8419
8420
8421
8422# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8423
8424# find the maximum length of command line arguments
8425echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8426echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8427if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8428  echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430    i=0
8431  teststring="ABCD"
8432
8433  case $build_os in
8434  msdosdjgpp*)
8435    # On DJGPP, this test can blow up pretty badly due to problems in libc
8436    # (any single argument exceeding 2000 bytes causes a buffer overrun
8437    # during glob expansion).  Even if it were fixed, the result of this
8438    # check would be larger than it should be.
8439    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8440    ;;
8441
8442  gnu*)
8443    # Under GNU Hurd, this test is not required because there is
8444    # no limit to the length of command line arguments.
8445    # Libtool will interpret -1 as no limit whatsoever
8446    lt_cv_sys_max_cmd_len=-1;
8447    ;;
8448
8449  cygwin* | mingw*)
8450    # On Win9x/ME, this test blows up -- it succeeds, but takes
8451    # about 5 minutes as the teststring grows exponentially.
8452    # Worse, since 9x/ME are not pre-emptively multitasking,
8453    # you end up with a "frozen" computer, even though with patience
8454    # the test eventually succeeds (with a max line length of 256k).
8455    # Instead, let's just punt: use the minimum linelength reported by
8456    # all of the supported platforms: 8192 (on NT/2K/XP).
8457    lt_cv_sys_max_cmd_len=8192;
8458    ;;
8459
8460  amigaos*)
8461    # On AmigaOS with pdksh, this test takes hours, literally.
8462    # So we just punt and use a minimum line length of 8192.
8463    lt_cv_sys_max_cmd_len=8192;
8464    ;;
8465
8466  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8467    # This has been around since 386BSD, at least.  Likely further.
8468    if test -x /sbin/sysctl; then
8469      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8470    elif test -x /usr/sbin/sysctl; then
8471      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8472    else
8473      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8474    fi
8475    # And add a safety zone
8476    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8477    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8478    ;;
8479
8480  interix*)
8481    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8482    lt_cv_sys_max_cmd_len=196608
8483    ;;
8484
8485  osf*)
8486    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8487    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8488    # nice to cause kernel panics so lets avoid the loop below.
8489    # First set a reasonable default.
8490    lt_cv_sys_max_cmd_len=16384
8491    #
8492    if test -x /sbin/sysconfig; then
8493      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8494        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8495      esac
8496    fi
8497    ;;
8498  sco3.2v5*)
8499    lt_cv_sys_max_cmd_len=102400
8500    ;;
8501  sysv5* | sco5v6* | sysv4.2uw2*)
8502    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8503    if test -n "$kargmax"; then
8504      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8505    else
8506      lt_cv_sys_max_cmd_len=32768
8507    fi
8508    ;;
8509  *)
8510    # If test is not a shell built-in, we'll probably end up computing a
8511    # maximum length that is only half of the actual maximum length, but
8512    # we can't tell.
8513    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8514    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8515               = "XX$teststring") >/dev/null 2>&1 &&
8516            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8517            lt_cv_sys_max_cmd_len=$new_result &&
8518            test $i != 17 # 1/2 MB should be enough
8519    do
8520      i=`expr $i + 1`
8521      teststring=$teststring$teststring
8522    done
8523    teststring=
8524    # Add a significant safety factor because C++ compilers can tack on massive
8525    # amounts of additional arguments before passing them to the linker.
8526    # It appears as though 1/2 is a usable value.
8527    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8528    ;;
8529  esac
8530
8531fi
8532
8533if test -n $lt_cv_sys_max_cmd_len ; then
8534  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8535echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8536else
8537  echo "$as_me:$LINENO: result: none" >&5
8538echo "${ECHO_T}none" >&6
8539fi
8540
8541
8542
8543
8544# Check for command to grab the raw symbol name followed by C symbol from nm.
8545echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8546echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8547if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8548  echo $ECHO_N "(cached) $ECHO_C" >&6
8549else
8550
8551# These are sane defaults that work on at least a few old systems.
8552# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8553
8554# Character class describing NM global symbol codes.
8555symcode='[BCDEGRST]'
8556
8557# Regexp to match symbols that can be accessed directly from C.
8558sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8559
8560# Transform an extracted symbol line into a proper C declaration
8561lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8562
8563# Transform an extracted symbol line into symbol name and symbol address
8564lt_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'"
8565
8566# Define system-specific variables.
8567case $host_os in
8568aix*)
8569  symcode='[BCDT]'
8570  ;;
8571cygwin* | mingw* | pw32*)
8572  symcode='[ABCDGISTW]'
8573  ;;
8574hpux*) # Its linker distinguishes data from code symbols
8575  if test "$host_cpu" = ia64; then
8576    symcode='[ABCDEGRST]'
8577  fi
8578  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8579  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'"
8580  ;;
8581linux*)
8582  if test "$host_cpu" = ia64; then
8583    symcode='[ABCDGIRSTW]'
8584    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8585    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'"
8586  fi
8587  ;;
8588irix* | nonstopux*)
8589  symcode='[BCDEGRST]'
8590  ;;
8591osf*)
8592  symcode='[BCDEGQRST]'
8593  ;;
8594solaris*)
8595  symcode='[BDRT]'
8596  ;;
8597sco3.2v5*)
8598  symcode='[DT]'
8599  ;;
8600sysv4.2uw2*)
8601  symcode='[DT]'
8602  ;;
8603sysv5* | sco5v6* | unixware* | OpenUNIX*)
8604  symcode='[ABDT]'
8605  ;;
8606sysv4)
8607  symcode='[DFNSTU]'
8608  ;;
8609esac
8610
8611# Handle CRLF in mingw tool chain
8612opt_cr=
8613case $build_os in
8614mingw*)
8615  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8616  ;;
8617esac
8618
8619# If we're using GNU nm, then use its standard symbol codes.
8620case `$NM -V 2>&1` in
8621*GNU* | *'with BFD'*)
8622  symcode='[ABCDGIRSTW]' ;;
8623esac
8624
8625# Try without a prefix undercore, then with it.
8626for ac_symprfx in "" "_"; do
8627
8628  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8629  symxfrm="\\1 $ac_symprfx\\2 \\2"
8630
8631  # Write the raw and C identifiers.
8632  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8633
8634  # Check to see that the pipe works correctly.
8635  pipe_works=no
8636
8637  rm -f conftest*
8638  cat > conftest.$ac_ext <<EOF
8639#ifdef __cplusplus
8640extern "C" {
8641#endif
8642char nm_test_var;
8643void nm_test_func(){}
8644#ifdef __cplusplus
8645}
8646#endif
8647int main(){nm_test_var='a';nm_test_func();return(0);}
8648EOF
8649
8650  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651  (eval $ac_compile) 2>&5
8652  ac_status=$?
8653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654  (exit $ac_status); }; then
8655    # Now try to grab the symbols.
8656    nlist=conftest.nm
8657    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8658  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8659  ac_status=$?
8660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661  (exit $ac_status); } && test -s "$nlist"; then
8662      # Try sorting and uniquifying the output.
8663      if sort "$nlist" | uniq > "$nlist"T; then
8664        mv -f "$nlist"T "$nlist"
8665      else
8666        rm -f "$nlist"T
8667      fi
8668
8669      # Make sure that we snagged all the symbols we need.
8670      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8671        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8672          cat <<EOF > conftest.$ac_ext
8673#ifdef __cplusplus
8674extern "C" {
8675#endif
8676
8677EOF
8678          # Now generate the symbol file.
8679          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8680
8681          cat <<EOF >> conftest.$ac_ext
8682#if defined (__STDC__) && __STDC__
8683# define lt_ptr_t void *
8684#else
8685# define lt_ptr_t char *
8686# define const
8687#endif
8688
8689/* The mapping between symbol names and symbols. */
8690const struct {
8691  const char *name;
8692  lt_ptr_t address;
8693}
8694lt_preloaded_symbols[] =
8695{
8696EOF
8697          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8698          cat <<\EOF >> conftest.$ac_ext
8699  {0, (lt_ptr_t) 0}
8700};
8701
8702#ifdef __cplusplus
8703}
8704#endif
8705EOF
8706          # Now try linking the two files.
8707          mv conftest.$ac_objext conftstm.$ac_objext
8708          lt_save_LIBS="$LIBS"
8709          lt_save_CFLAGS="$CFLAGS"
8710          LIBS="conftstm.$ac_objext"
8711          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8712          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713  (eval $ac_link) 2>&5
8714  ac_status=$?
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8717            pipe_works=yes
8718          fi
8719          LIBS="$lt_save_LIBS"
8720          CFLAGS="$lt_save_CFLAGS"
8721        else
8722          echo "cannot find nm_test_func in $nlist" >&5
8723        fi
8724      else
8725        echo "cannot find nm_test_var in $nlist" >&5
8726      fi
8727    else
8728      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8729    fi
8730  else
8731    echo "$progname: failed program was:" >&5
8732    cat conftest.$ac_ext >&5
8733  fi
8734  rm -f conftest* conftst*
8735
8736  # Do not use the global_symbol_pipe unless it works.
8737  if test "$pipe_works" = yes; then
8738    break
8739  else
8740    lt_cv_sys_global_symbol_pipe=
8741  fi
8742done
8743
8744fi
8745
8746if test -z "$lt_cv_sys_global_symbol_pipe"; then
8747  lt_cv_sys_global_symbol_to_cdecl=
8748fi
8749if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8750  echo "$as_me:$LINENO: result: failed" >&5
8751echo "${ECHO_T}failed" >&6
8752else
8753  echo "$as_me:$LINENO: result: ok" >&5
8754echo "${ECHO_T}ok" >&6
8755fi
8756
8757echo "$as_me:$LINENO: checking for objdir" >&5
8758echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8759if test "${lt_cv_objdir+set}" = set; then
8760  echo $ECHO_N "(cached) $ECHO_C" >&6
8761else
8762  rm -f .libs 2>/dev/null
8763mkdir .libs 2>/dev/null
8764if test -d .libs; then
8765  lt_cv_objdir=.libs
8766else
8767  # MS-DOS does not allow filenames that begin with a dot.
8768  lt_cv_objdir=_libs
8769fi
8770rmdir .libs 2>/dev/null
8771fi
8772echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8773echo "${ECHO_T}$lt_cv_objdir" >&6
8774objdir=$lt_cv_objdir
8775
8776
8777
8778
8779
8780case $host_os in
8781aix3*)
8782  # AIX sometimes has problems with the GCC collect2 program.  For some
8783  # reason, if we set the COLLECT_NAMES environment variable, the problems
8784  # vanish in a puff of smoke.
8785  if test "X${COLLECT_NAMES+set}" != Xset; then
8786    COLLECT_NAMES=
8787    export COLLECT_NAMES
8788  fi
8789  ;;
8790esac
8791
8792# Sed substitution that helps us do robust quoting.  It backslashifies
8793# metacharacters that are still active within double-quoted strings.
8794Xsed='sed -e 1s/^X//'
8795sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8796
8797# Same as above, but do not quote variable references.
8798double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8799
8800# Sed substitution to delay expansion of an escaped shell variable in a
8801# double_quote_subst'ed string.
8802delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8803
8804# Sed substitution to avoid accidental globbing in evaled expressions
8805no_glob_subst='s/\*/\\\*/g'
8806
8807# Constants:
8808rm="rm -f"
8809
8810# Global variables:
8811default_ofile=libtool
8812can_build_shared=yes
8813
8814# All known linkers require a `.a' archive for static linking (except MSVC,
8815# which needs '.lib').
8816libext=a
8817ltmain="$ac_aux_dir/ltmain.sh"
8818ofile="$default_ofile"
8819with_gnu_ld="$lt_cv_prog_gnu_ld"
8820
8821if test -n "$ac_tool_prefix"; then
8822  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8823set dummy ${ac_tool_prefix}ar; ac_word=$2
8824echo "$as_me:$LINENO: checking for $ac_word" >&5
8825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8826if test "${ac_cv_prog_AR+set}" = set; then
8827  echo $ECHO_N "(cached) $ECHO_C" >&6
8828else
8829  if test -n "$AR"; then
8830  ac_cv_prog_AR="$AR" # Let the user override the test.
8831else
8832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833for as_dir in $PATH
8834do
8835  IFS=$as_save_IFS
8836  test -z "$as_dir" && as_dir=.
8837  for ac_exec_ext in '' $ac_executable_extensions; do
8838  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839    ac_cv_prog_AR="${ac_tool_prefix}ar"
8840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8841    break 2
8842  fi
8843done
8844done
8845
8846fi
8847fi
8848AR=$ac_cv_prog_AR
8849if test -n "$AR"; then
8850  echo "$as_me:$LINENO: result: $AR" >&5
8851echo "${ECHO_T}$AR" >&6
8852else
8853  echo "$as_me:$LINENO: result: no" >&5
8854echo "${ECHO_T}no" >&6
8855fi
8856
8857fi
8858if test -z "$ac_cv_prog_AR"; then
8859  ac_ct_AR=$AR
8860  # Extract the first word of "ar", so it can be a program name with args.
8861set dummy ar; ac_word=$2
8862echo "$as_me:$LINENO: checking for $ac_word" >&5
8863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8864if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8865  echo $ECHO_N "(cached) $ECHO_C" >&6
8866else
8867  if test -n "$ac_ct_AR"; then
8868  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8869else
8870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871for as_dir in $PATH
8872do
8873  IFS=$as_save_IFS
8874  test -z "$as_dir" && as_dir=.
8875  for ac_exec_ext in '' $ac_executable_extensions; do
8876  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8877    ac_cv_prog_ac_ct_AR="ar"
8878    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8879    break 2
8880  fi
8881done
8882done
8883
8884  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8885fi
8886fi
8887ac_ct_AR=$ac_cv_prog_ac_ct_AR
8888if test -n "$ac_ct_AR"; then
8889  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8890echo "${ECHO_T}$ac_ct_AR" >&6
8891else
8892  echo "$as_me:$LINENO: result: no" >&5
8893echo "${ECHO_T}no" >&6
8894fi
8895
8896  AR=$ac_ct_AR
8897else
8898  AR="$ac_cv_prog_AR"
8899fi
8900
8901if test -n "$ac_tool_prefix"; then
8902  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8903set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8904echo "$as_me:$LINENO: checking for $ac_word" >&5
8905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8906if test "${ac_cv_prog_RANLIB+set}" = set; then
8907  echo $ECHO_N "(cached) $ECHO_C" >&6
8908else
8909  if test -n "$RANLIB"; then
8910  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8911else
8912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913for as_dir in $PATH
8914do
8915  IFS=$as_save_IFS
8916  test -z "$as_dir" && as_dir=.
8917  for ac_exec_ext in '' $ac_executable_extensions; do
8918  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8919    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8921    break 2
8922  fi
8923done
8924done
8925
8926fi
8927fi
8928RANLIB=$ac_cv_prog_RANLIB
8929if test -n "$RANLIB"; then
8930  echo "$as_me:$LINENO: result: $RANLIB" >&5
8931echo "${ECHO_T}$RANLIB" >&6
8932else
8933  echo "$as_me:$LINENO: result: no" >&5
8934echo "${ECHO_T}no" >&6
8935fi
8936
8937fi
8938if test -z "$ac_cv_prog_RANLIB"; then
8939  ac_ct_RANLIB=$RANLIB
8940  # Extract the first word of "ranlib", so it can be a program name with args.
8941set dummy ranlib; ac_word=$2
8942echo "$as_me:$LINENO: checking for $ac_word" >&5
8943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8944if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8945  echo $ECHO_N "(cached) $ECHO_C" >&6
8946else
8947  if test -n "$ac_ct_RANLIB"; then
8948  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8949else
8950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951for as_dir in $PATH
8952do
8953  IFS=$as_save_IFS
8954  test -z "$as_dir" && as_dir=.
8955  for ac_exec_ext in '' $ac_executable_extensions; do
8956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8957    ac_cv_prog_ac_ct_RANLIB="ranlib"
8958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8959    break 2
8960  fi
8961done
8962done
8963
8964  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8965fi
8966fi
8967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8968if test -n "$ac_ct_RANLIB"; then
8969  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8970echo "${ECHO_T}$ac_ct_RANLIB" >&6
8971else
8972  echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
8974fi
8975
8976  RANLIB=$ac_ct_RANLIB
8977else
8978  RANLIB="$ac_cv_prog_RANLIB"
8979fi
8980
8981if test -n "$ac_tool_prefix"; then
8982  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8983set dummy ${ac_tool_prefix}strip; ac_word=$2
8984echo "$as_me:$LINENO: checking for $ac_word" >&5
8985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8986if test "${ac_cv_prog_STRIP+set}" = set; then
8987  echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989  if test -n "$STRIP"; then
8990  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8991else
8992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993for as_dir in $PATH
8994do
8995  IFS=$as_save_IFS
8996  test -z "$as_dir" && as_dir=.
8997  for ac_exec_ext in '' $ac_executable_extensions; do
8998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8999    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9001    break 2
9002  fi
9003done
9004done
9005
9006fi
9007fi
9008STRIP=$ac_cv_prog_STRIP
9009if test -n "$STRIP"; then
9010  echo "$as_me:$LINENO: result: $STRIP" >&5
9011echo "${ECHO_T}$STRIP" >&6
9012else
9013  echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015fi
9016
9017fi
9018if test -z "$ac_cv_prog_STRIP"; then
9019  ac_ct_STRIP=$STRIP
9020  # Extract the first word of "strip", so it can be a program name with args.
9021set dummy strip; ac_word=$2
9022echo "$as_me:$LINENO: checking for $ac_word" >&5
9023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9024if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9025  echo $ECHO_N "(cached) $ECHO_C" >&6
9026else
9027  if test -n "$ac_ct_STRIP"; then
9028  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9029else
9030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031for as_dir in $PATH
9032do
9033  IFS=$as_save_IFS
9034  test -z "$as_dir" && as_dir=.
9035  for ac_exec_ext in '' $ac_executable_extensions; do
9036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9037    ac_cv_prog_ac_ct_STRIP="strip"
9038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9039    break 2
9040  fi
9041done
9042done
9043
9044  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9045fi
9046fi
9047ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9048if test -n "$ac_ct_STRIP"; then
9049  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9050echo "${ECHO_T}$ac_ct_STRIP" >&6
9051else
9052  echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6
9054fi
9055
9056  STRIP=$ac_ct_STRIP
9057else
9058  STRIP="$ac_cv_prog_STRIP"
9059fi
9060
9061
9062old_CC="$CC"
9063old_CFLAGS="$CFLAGS"
9064
9065# Set sane defaults for various variables
9066test -z "$AR" && AR=ar
9067test -z "$AR_FLAGS" && AR_FLAGS=cru
9068test -z "$AS" && AS=as
9069test -z "$CC" && CC=cc
9070test -z "$LTCC" && LTCC=$CC
9071test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9072test -z "$DLLTOOL" && DLLTOOL=dlltool
9073test -z "$LD" && LD=ld
9074test -z "$LN_S" && LN_S="ln -s"
9075test -z "$MAGIC_CMD" && MAGIC_CMD=file
9076test -z "$NM" && NM=nm
9077test -z "$SED" && SED=sed
9078test -z "$OBJDUMP" && OBJDUMP=objdump
9079test -z "$RANLIB" && RANLIB=:
9080test -z "$STRIP" && STRIP=:
9081test -z "$ac_objext" && ac_objext=o
9082
9083# Determine commands to create old-style static archives.
9084old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9085old_postinstall_cmds='chmod 644 $oldlib'
9086old_postuninstall_cmds=
9087
9088if test -n "$RANLIB"; then
9089  case $host_os in
9090  openbsd*)
9091    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9092    ;;
9093  *)
9094    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9095    ;;
9096  esac
9097  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9098fi
9099
9100for cc_temp in $compiler""; do
9101  case $cc_temp in
9102    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9103    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9104    \-*) ;;
9105    *) break;;
9106  esac
9107done
9108cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9109
9110
9111# Only perform the check for file, if the check method requires it
9112case $deplibs_check_method in
9113file_magic*)
9114  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9115    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9116echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9117if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9118  echo $ECHO_N "(cached) $ECHO_C" >&6
9119else
9120  case $MAGIC_CMD in
9121[\\/*] |  ?:[\\/]*)
9122  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9123  ;;
9124*)
9125  lt_save_MAGIC_CMD="$MAGIC_CMD"
9126  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9127  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9128  for ac_dir in $ac_dummy; do
9129    IFS="$lt_save_ifs"
9130    test -z "$ac_dir" && ac_dir=.
9131    if test -f $ac_dir/${ac_tool_prefix}file; then
9132      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9133      if test -n "$file_magic_test_file"; then
9134        case $deplibs_check_method in
9135        "file_magic "*)
9136          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9137          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9138          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9139            $EGREP "$file_magic_regex" > /dev/null; then
9140            :
9141          else
9142            cat <<EOF 1>&2
9143
9144*** Warning: the command libtool uses to detect shared libraries,
9145*** $file_magic_cmd, produces output that libtool cannot recognize.
9146*** The result is that libtool may fail to recognize shared libraries
9147*** as such.  This will affect the creation of libtool libraries that
9148*** depend on shared libraries, but programs linked with such libtool
9149*** libraries will work regardless of this problem.  Nevertheless, you
9150*** may want to report the problem to your system manager and/or to
9151*** bug-libtool@gnu.org
9152
9153EOF
9154          fi ;;
9155        esac
9156      fi
9157      break
9158    fi
9159  done
9160  IFS="$lt_save_ifs"
9161  MAGIC_CMD="$lt_save_MAGIC_CMD"
9162  ;;
9163esac
9164fi
9165
9166MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9167if test -n "$MAGIC_CMD"; then
9168  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9169echo "${ECHO_T}$MAGIC_CMD" >&6
9170else
9171  echo "$as_me:$LINENO: result: no" >&5
9172echo "${ECHO_T}no" >&6
9173fi
9174
9175if test -z "$lt_cv_path_MAGIC_CMD"; then
9176  if test -n "$ac_tool_prefix"; then
9177    echo "$as_me:$LINENO: checking for file" >&5
9178echo $ECHO_N "checking for file... $ECHO_C" >&6
9179if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9180  echo $ECHO_N "(cached) $ECHO_C" >&6
9181else
9182  case $MAGIC_CMD in
9183[\\/*] |  ?:[\\/]*)
9184  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9185  ;;
9186*)
9187  lt_save_MAGIC_CMD="$MAGIC_CMD"
9188  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9189  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9190  for ac_dir in $ac_dummy; do
9191    IFS="$lt_save_ifs"
9192    test -z "$ac_dir" && ac_dir=.
9193    if test -f $ac_dir/file; then
9194      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9195      if test -n "$file_magic_test_file"; then
9196        case $deplibs_check_method in
9197        "file_magic "*)
9198          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9199          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9200          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9201            $EGREP "$file_magic_regex" > /dev/null; then
9202            :
9203          else
9204            cat <<EOF 1>&2
9205
9206*** Warning: the command libtool uses to detect shared libraries,
9207*** $file_magic_cmd, produces output that libtool cannot recognize.
9208*** The result is that libtool may fail to recognize shared libraries
9209*** as such.  This will affect the creation of libtool libraries that
9210*** depend on shared libraries, but programs linked with such libtool
9211*** libraries will work regardless of this problem.  Nevertheless, you
9212*** may want to report the problem to your system manager and/or to
9213*** bug-libtool@gnu.org
9214
9215EOF
9216          fi ;;
9217        esac
9218      fi
9219      break
9220    fi
9221  done
9222  IFS="$lt_save_ifs"
9223  MAGIC_CMD="$lt_save_MAGIC_CMD"
9224  ;;
9225esac
9226fi
9227
9228MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9229if test -n "$MAGIC_CMD"; then
9230  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9231echo "${ECHO_T}$MAGIC_CMD" >&6
9232else
9233  echo "$as_me:$LINENO: result: no" >&5
9234echo "${ECHO_T}no" >&6
9235fi
9236
9237  else
9238    MAGIC_CMD=:
9239  fi
9240fi
9241
9242  fi
9243  ;;
9244esac
9245
9246enable_dlopen=no
9247enable_win32_dll=no
9248
9249# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9250if test "${enable_libtool_lock+set}" = set; then
9251  enableval="$enable_libtool_lock"
9252
9253fi;
9254test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9255
9256
9257# Check whether --with-pic or --without-pic was given.
9258if test "${with_pic+set}" = set; then
9259  withval="$with_pic"
9260  pic_mode="$withval"
9261else
9262  pic_mode=default
9263fi;
9264test -z "$pic_mode" && pic_mode=default
9265
9266# Use C for the default configuration in the libtool script
9267tagname=
9268lt_save_CC="$CC"
9269ac_ext=c
9270ac_cpp='$CPP $CPPFLAGS'
9271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9273ac_compiler_gnu=$ac_cv_c_compiler_gnu
9274
9275
9276# Source file extension for C test sources.
9277ac_ext=c
9278
9279# Object file extension for compiled C test sources.
9280objext=o
9281objext=$objext
9282
9283# Code to be used in simple compile tests
9284lt_simple_compile_test_code="int some_variable = 0;\n"
9285
9286# Code to be used in simple link tests
9287lt_simple_link_test_code='int main(){return(0);}\n'
9288
9289
9290# If no C compiler was specified, use CC.
9291LTCC=${LTCC-"$CC"}
9292
9293# If no C compiler flags were specified, use CFLAGS.
9294LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9295
9296# Allow CC to be a program name with arguments.
9297compiler=$CC
9298
9299
9300# save warnings/boilerplate of simple test code
9301ac_outfile=conftest.$ac_objext
9302printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9303eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9304_lt_compiler_boilerplate=`cat conftest.err`
9305$rm conftest*
9306
9307ac_outfile=conftest.$ac_objext
9308printf "$lt_simple_link_test_code" >conftest.$ac_ext
9309eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9310_lt_linker_boilerplate=`cat conftest.err`
9311$rm conftest*
9312
9313
9314## CAVEAT EMPTOR:
9315## There is no encapsulation within the following macros, do not change
9316## the running order or otherwise move them around unless you know exactly
9317## what you are doing...
9318
9319lt_prog_compiler_no_builtin_flag=
9320
9321if test "$GCC" = yes; then
9322  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9323
9324
9325echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9326echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9327if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9328  echo $ECHO_N "(cached) $ECHO_C" >&6
9329else
9330  lt_cv_prog_compiler_rtti_exceptions=no
9331  ac_outfile=conftest.$ac_objext
9332   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9333   lt_compiler_flag="-fno-rtti -fno-exceptions"
9334   # Insert the option either (1) after the last *FLAGS variable, or
9335   # (2) before a word containing "conftest.", or (3) at the end.
9336   # Note that $ac_compile itself does not contain backslashes and begins
9337   # with a dollar sign (not a hyphen), so the echo should work correctly.
9338   # The option is referenced via a variable to avoid confusing sed.
9339   lt_compile=`echo "$ac_compile" | $SED \
9340   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9341   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9342   -e 's:$: $lt_compiler_flag:'`
9343   (eval echo "\"\$as_me:9343: $lt_compile\"" >&5)
9344   (eval "$lt_compile" 2>conftest.err)
9345   ac_status=$?
9346   cat conftest.err >&5
9347   echo "$as_me:9347: \$? = $ac_status" >&5
9348   if (exit $ac_status) && test -s "$ac_outfile"; then
9349     # The compiler can only warn and ignore the option if not recognized
9350     # So say no if there are warnings other than the usual output.
9351     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9352     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9353     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9354       lt_cv_prog_compiler_rtti_exceptions=yes
9355     fi
9356   fi
9357   $rm conftest*
9358
9359fi
9360echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9361echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9362
9363if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9364    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9365else
9366    :
9367fi
9368
9369fi
9370
9371lt_prog_compiler_wl=
9372lt_prog_compiler_pic=
9373lt_prog_compiler_static=
9374
9375echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9376echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9377
9378  if test "$GCC" = yes; then
9379    lt_prog_compiler_wl='-Wl,'
9380    lt_prog_compiler_static='-static'
9381
9382    case $host_os in
9383      aix*)
9384      # All AIX code is PIC.
9385      if test "$host_cpu" = ia64; then
9386        # AIX 5 now supports IA64 processor
9387        lt_prog_compiler_static='-Bstatic'
9388      fi
9389      ;;
9390
9391    amigaos*)
9392      # FIXME: we need at least 68020 code to build shared libraries, but
9393      # adding the `-m68020' flag to GCC prevents building anything better,
9394      # like `-m68040'.
9395      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9396      ;;
9397
9398    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9399      # PIC is the default for these OSes.
9400      ;;
9401
9402    mingw* | pw32* | os2*)
9403      # This hack is so that the source file can tell whether it is being
9404      # built for inclusion in a dll (and should export symbols for example).
9405      lt_prog_compiler_pic='-DDLL_EXPORT'
9406      ;;
9407
9408    darwin* | rhapsody*)
9409      # PIC is the default on this platform
9410      # Common symbols not allowed in MH_DYLIB files
9411      lt_prog_compiler_pic='-fno-common'
9412      ;;
9413
9414    interix3*)
9415      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9416      # Instead, we relocate shared libraries at runtime.
9417      ;;
9418
9419    msdosdjgpp*)
9420      # Just because we use GCC doesn't mean we suddenly get shared libraries
9421      # on systems that don't support them.
9422      lt_prog_compiler_can_build_shared=no
9423      enable_shared=no
9424      ;;
9425
9426    sysv4*MP*)
9427      if test -d /usr/nec; then
9428        lt_prog_compiler_pic=-Kconform_pic
9429      fi
9430      ;;
9431
9432    hpux*)
9433      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9434      # not for PA HP-UX.
9435      case $host_cpu in
9436      hppa*64*|ia64*)
9437        # +Z the default
9438        ;;
9439      *)
9440        lt_prog_compiler_pic='-fPIC'
9441        ;;
9442      esac
9443      ;;
9444
9445    *)
9446      lt_prog_compiler_pic='-fPIC'
9447      ;;
9448    esac
9449  else
9450    # PORTME Check for flag to pass linker flags through the system compiler.
9451    case $host_os in
9452    aix*)
9453      lt_prog_compiler_wl='-Wl,'
9454      if test "$host_cpu" = ia64; then
9455        # AIX 5 now supports IA64 processor
9456        lt_prog_compiler_static='-Bstatic'
9457      else
9458        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9459      fi
9460      ;;
9461      darwin*)
9462        # PIC is the default on this platform
9463        # Common symbols not allowed in MH_DYLIB files
9464       case $cc_basename in
9465         xlc*)
9466         lt_prog_compiler_pic='-qnocommon'
9467         lt_prog_compiler_wl='-Wl,'
9468         ;;
9469       esac
9470       ;;
9471
9472    mingw* | pw32* | os2*)
9473      # This hack is so that the source file can tell whether it is being
9474      # built for inclusion in a dll (and should export symbols for example).
9475      lt_prog_compiler_pic='-DDLL_EXPORT'
9476      ;;
9477
9478    hpux9* | hpux10* | hpux11*)
9479      lt_prog_compiler_wl='-Wl,'
9480      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9481      # not for PA HP-UX.
9482      case $host_cpu in
9483      hppa*64*|ia64*)
9484        # +Z the default
9485        ;;
9486      *)
9487        lt_prog_compiler_pic='+Z'
9488        ;;
9489      esac
9490      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9491      lt_prog_compiler_static='${wl}-a ${wl}archive'
9492      ;;
9493
9494    irix5* | irix6* | nonstopux*)
9495      lt_prog_compiler_wl='-Wl,'
9496      # PIC (with -KPIC) is the default.
9497      lt_prog_compiler_static='-non_shared'
9498      ;;
9499
9500    newsos6)
9501      lt_prog_compiler_pic='-KPIC'
9502      lt_prog_compiler_static='-Bstatic'
9503      ;;
9504
9505    linux*)
9506      case $cc_basename in
9507      icc* | ecc*)
9508        lt_prog_compiler_wl='-Wl,'
9509        lt_prog_compiler_pic='-KPIC'
9510        lt_prog_compiler_static='-static'
9511        ;;
9512      pgcc* | pgf77* | pgf90* | pgf95*)
9513        # Portland Group compilers (*not* the Pentium gcc compiler,
9514        # which looks to be a dead project)
9515        lt_prog_compiler_wl='-Wl,'
9516        lt_prog_compiler_pic='-fpic'
9517        lt_prog_compiler_static='-Bstatic'
9518        ;;
9519      ccc*)
9520        lt_prog_compiler_wl='-Wl,'
9521        # All Alpha code is PIC.
9522        lt_prog_compiler_static='-non_shared'
9523        ;;
9524      esac
9525      ;;
9526
9527    osf3* | osf4* | osf5*)
9528      lt_prog_compiler_wl='-Wl,'
9529      # All OSF/1 code is PIC.
9530      lt_prog_compiler_static='-non_shared'
9531      ;;
9532
9533    solaris*)
9534      lt_prog_compiler_pic='-KPIC'
9535      lt_prog_compiler_static='-Bstatic'
9536      case $cc_basename in
9537      f77* | f90* | f95*)
9538        lt_prog_compiler_wl='-Qoption ld ';;
9539      *)
9540        lt_prog_compiler_wl='-Wl,';;
9541      esac
9542      ;;
9543
9544    sunos4*)
9545      lt_prog_compiler_wl='-Qoption ld '
9546      lt_prog_compiler_pic='-PIC'
9547      lt_prog_compiler_static='-Bstatic'
9548      ;;
9549
9550    sysv4 | sysv4.2uw2* | sysv4.3*)
9551      lt_prog_compiler_wl='-Wl,'
9552      lt_prog_compiler_pic='-KPIC'
9553      lt_prog_compiler_static='-Bstatic'
9554      ;;
9555
9556    sysv4*MP*)
9557      if test -d /usr/nec ;then
9558        lt_prog_compiler_pic='-Kconform_pic'
9559        lt_prog_compiler_static='-Bstatic'
9560      fi
9561      ;;
9562
9563    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9564      lt_prog_compiler_wl='-Wl,'
9565      lt_prog_compiler_pic='-KPIC'
9566      lt_prog_compiler_static='-Bstatic'
9567      ;;
9568
9569    unicos*)
9570      lt_prog_compiler_wl='-Wl,'
9571      lt_prog_compiler_can_build_shared=no
9572      ;;
9573
9574    uts4*)
9575      lt_prog_compiler_pic='-pic'
9576      lt_prog_compiler_static='-Bstatic'
9577      ;;
9578
9579    *)
9580      lt_prog_compiler_can_build_shared=no
9581      ;;
9582    esac
9583  fi
9584
9585echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9586echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9587
9588#
9589# Check to make sure the PIC flag actually works.
9590#
9591if test -n "$lt_prog_compiler_pic"; then
9592
9593echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9594echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9595if test "${lt_prog_compiler_pic_works+set}" = set; then
9596  echo $ECHO_N "(cached) $ECHO_C" >&6
9597else
9598  lt_prog_compiler_pic_works=no
9599  ac_outfile=conftest.$ac_objext
9600   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9601   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9602   # Insert the option either (1) after the last *FLAGS variable, or
9603   # (2) before a word containing "conftest.", or (3) at the end.
9604   # Note that $ac_compile itself does not contain backslashes and begins
9605   # with a dollar sign (not a hyphen), so the echo should work correctly.
9606   # The option is referenced via a variable to avoid confusing sed.
9607   lt_compile=`echo "$ac_compile" | $SED \
9608   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9609   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9610   -e 's:$: $lt_compiler_flag:'`
9611   (eval echo "\"\$as_me:9611: $lt_compile\"" >&5)
9612   (eval "$lt_compile" 2>conftest.err)
9613   ac_status=$?
9614   cat conftest.err >&5
9615   echo "$as_me:9615: \$? = $ac_status" >&5
9616   if (exit $ac_status) && test -s "$ac_outfile"; then
9617     # The compiler can only warn and ignore the option if not recognized
9618     # So say no if there are warnings other than the usual output.
9619     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9620     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9621     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9622       lt_prog_compiler_pic_works=yes
9623     fi
9624   fi
9625   $rm conftest*
9626
9627fi
9628echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9629echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9630
9631if test x"$lt_prog_compiler_pic_works" = xyes; then
9632    case $lt_prog_compiler_pic in
9633     "" | " "*) ;;
9634     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9635     esac
9636else
9637    lt_prog_compiler_pic=
9638     lt_prog_compiler_can_build_shared=no
9639fi
9640
9641fi
9642case $host_os in
9643  # For platforms which do not support PIC, -DPIC is meaningless:
9644  *djgpp*)
9645    lt_prog_compiler_pic=
9646    ;;
9647  *)
9648    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9649    ;;
9650esac
9651
9652#
9653# Check to make sure the static flag actually works.
9654#
9655wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9656echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9657echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9658if test "${lt_prog_compiler_static_works+set}" = set; then
9659  echo $ECHO_N "(cached) $ECHO_C" >&6
9660else
9661  lt_prog_compiler_static_works=no
9662   save_LDFLAGS="$LDFLAGS"
9663   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9664   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9665   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9666     # The linker can only warn and ignore the option if not recognized
9667     # So say no if there are warnings
9668     if test -s conftest.err; then
9669       # Append any errors to the config.log.
9670       cat conftest.err 1>&5
9671       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9672       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9673       if diff conftest.exp conftest.er2 >/dev/null; then
9674         lt_prog_compiler_static_works=yes
9675       fi
9676     else
9677       lt_prog_compiler_static_works=yes
9678     fi
9679   fi
9680   $rm conftest*
9681   LDFLAGS="$save_LDFLAGS"
9682
9683fi
9684echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9685echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9686
9687if test x"$lt_prog_compiler_static_works" = xyes; then
9688    :
9689else
9690    lt_prog_compiler_static=
9691fi
9692
9693
9694echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9695echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9696if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9697  echo $ECHO_N "(cached) $ECHO_C" >&6
9698else
9699  lt_cv_prog_compiler_c_o=no
9700   $rm -r conftest 2>/dev/null
9701   mkdir conftest
9702   cd conftest
9703   mkdir out
9704   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9705
9706   lt_compiler_flag="-o out/conftest2.$ac_objext"
9707   # Insert the option either (1) after the last *FLAGS variable, or
9708   # (2) before a word containing "conftest.", or (3) at the end.
9709   # Note that $ac_compile itself does not contain backslashes and begins
9710   # with a dollar sign (not a hyphen), so the echo should work correctly.
9711   lt_compile=`echo "$ac_compile" | $SED \
9712   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9713   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9714   -e 's:$: $lt_compiler_flag:'`
9715   (eval echo "\"\$as_me:9715: $lt_compile\"" >&5)
9716   (eval "$lt_compile" 2>out/conftest.err)
9717   ac_status=$?
9718   cat out/conftest.err >&5
9719   echo "$as_me:9719: \$? = $ac_status" >&5
9720   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9721   then
9722     # The compiler can only warn and ignore the option if not recognized
9723     # So say no if there are warnings
9724     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9725     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9726     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9727       lt_cv_prog_compiler_c_o=yes
9728     fi
9729   fi
9730   chmod u+w . 2>&5
9731   $rm conftest*
9732   # SGI C++ compiler will create directory out/ii_files/ for
9733   # template instantiation
9734   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9735   $rm out/* && rmdir out
9736   cd ..
9737   rmdir conftest
9738   $rm conftest*
9739
9740fi
9741echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9742echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9743
9744
9745hard_links="nottested"
9746if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9747  # do not overwrite the value of need_locks provided by the user
9748  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9749echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9750  hard_links=yes
9751  $rm conftest*
9752  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9753  touch conftest.a
9754  ln conftest.a conftest.b 2>&5 || hard_links=no
9755  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9756  echo "$as_me:$LINENO: result: $hard_links" >&5
9757echo "${ECHO_T}$hard_links" >&6
9758  if test "$hard_links" = no; then
9759    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9760echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9761    need_locks=warn
9762  fi
9763else
9764  need_locks=no
9765fi
9766
9767echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9768echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9769
9770  runpath_var=
9771  allow_undefined_flag=
9772  enable_shared_with_static_runtimes=no
9773  archive_cmds=
9774  archive_expsym_cmds=
9775  old_archive_From_new_cmds=
9776  old_archive_from_expsyms_cmds=
9777  export_dynamic_flag_spec=
9778  whole_archive_flag_spec=
9779  thread_safe_flag_spec=
9780  hardcode_libdir_flag_spec=
9781  hardcode_libdir_flag_spec_ld=
9782  hardcode_libdir_separator=
9783  hardcode_direct=no
9784  hardcode_minus_L=no
9785  hardcode_shlibpath_var=unsupported
9786  link_all_deplibs=unknown
9787  hardcode_automatic=no
9788  module_cmds=
9789  module_expsym_cmds=
9790  always_export_symbols=no
9791  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9792  # include_expsyms should be a list of space-separated symbols to be *always*
9793  # included in the symbol list
9794  include_expsyms=
9795  # exclude_expsyms can be an extended regexp of symbols to exclude
9796  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9797  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9798  # as well as any symbol that contains `d'.
9799  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9800  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9801  # platforms (ab)use it in PIC code, but their linkers get confused if
9802  # the symbol is explicitly referenced.  Since portable code cannot
9803  # rely on this symbol name, it's probably fine to never include it in
9804  # preloaded symbol tables.
9805  extract_expsyms_cmds=
9806  # Just being paranoid about ensuring that cc_basename is set.
9807  for cc_temp in $compiler""; do
9808  case $cc_temp in
9809    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9810    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9811    \-*) ;;
9812    *) break;;
9813  esac
9814done
9815cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9816
9817  case $host_os in
9818  cygwin* | mingw* | pw32*)
9819    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9820    # When not using gcc, we currently assume that we are using
9821    # Microsoft Visual C++.
9822    if test "$GCC" != yes; then
9823      with_gnu_ld=no
9824    fi
9825    ;;
9826  interix*)
9827    # we just hope/assume this is gcc and not c89 (= MSVC++)
9828    with_gnu_ld=yes
9829    ;;
9830  openbsd*)
9831    with_gnu_ld=no
9832    ;;
9833  esac
9834
9835  ld_shlibs=yes
9836  if test "$with_gnu_ld" = yes; then
9837    # If archive_cmds runs LD, not CC, wlarc should be empty
9838    wlarc='${wl}'
9839
9840    # Set some defaults for GNU ld with shared library support. These
9841    # are reset later if shared libraries are not supported. Putting them
9842    # here allows them to be overridden if necessary.
9843    runpath_var=LD_RUN_PATH
9844    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9845    export_dynamic_flag_spec='${wl}--export-dynamic'
9846    # ancient GNU ld didn't support --whole-archive et. al.
9847    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9848        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9849      else
9850        whole_archive_flag_spec=
9851    fi
9852    supports_anon_versioning=no
9853    case `$LD -v 2>/dev/null` in
9854      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9855      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9856      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9857      *\ 2.11.*) ;; # other 2.11 versions
9858      *) supports_anon_versioning=yes ;;
9859    esac
9860
9861    # See if GNU ld supports shared libraries.
9862    case $host_os in
9863    aix3* | aix4* | aix5*)
9864      # On AIX/PPC, the GNU linker is very broken
9865      if test "$host_cpu" != ia64; then
9866        ld_shlibs=no
9867        cat <<EOF 1>&2
9868
9869*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9870*** to be unable to reliably create shared libraries on AIX.
9871*** Therefore, libtool is disabling shared libraries support.  If you
9872*** really care for shared libraries, you may want to modify your PATH
9873*** so that a non-GNU linker is found, and then restart.
9874
9875EOF
9876      fi
9877      ;;
9878
9879    amigaos*)
9880      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)'
9881      hardcode_libdir_flag_spec='-L$libdir'
9882      hardcode_minus_L=yes
9883
9884      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9885      # that the semantics of dynamic libraries on AmigaOS, at least up
9886      # to version 4, is to share data among multiple programs linked
9887      # with the same dynamic library.  Since this doesn't match the
9888      # behavior of shared libraries on other platforms, we can't use
9889      # them.
9890      ld_shlibs=no
9891      ;;
9892
9893    beos*)
9894      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9895        allow_undefined_flag=unsupported
9896        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9897        # support --undefined.  This deserves some investigation.  FIXME
9898        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899      else
9900        ld_shlibs=no
9901      fi
9902      ;;
9903
9904    cygwin* | mingw* | pw32*)
9905      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9906      # as there is no search path for DLLs.
9907      hardcode_libdir_flag_spec='-L$libdir'
9908      allow_undefined_flag=unsupported
9909      always_export_symbols=no
9910      enable_shared_with_static_runtimes=yes
9911      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9912
9913      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9914        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9915        # If the export-symbols file already is a .def file (1st line
9916        # is EXPORTS), use it as is; otherwise, prepend...
9917        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9918          cp $export_symbols $output_objdir/$soname.def;
9919        else
9920          echo EXPORTS > $output_objdir/$soname.def;
9921          cat $export_symbols >> $output_objdir/$soname.def;
9922        fi~
9923        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9924      else
9925        ld_shlibs=no
9926      fi
9927      ;;
9928
9929    interix3*)
9930      hardcode_direct=no
9931      hardcode_shlibpath_var=no
9932      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9933      export_dynamic_flag_spec='${wl}-E'
9934      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9935      # Instead, shared libraries are loaded at an image base (0x10000000 by
9936      # default) and relocated if they conflict, which is a slow very memory
9937      # consuming and fragmenting process.  To avoid this, we pick a random,
9938      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9939      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9940      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9941      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'
9942      ;;
9943
9944    linux*)
9945      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9946        tmp_addflag=
9947        case $cc_basename,$host_cpu in
9948        pgcc*)                          # Portland Group C compiler
9949          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'
9950          tmp_addflag=' $pic_flag'
9951          ;;
9952        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9953          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'
9954          tmp_addflag=' $pic_flag -Mnomain' ;;
9955        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9956          tmp_addflag=' -i_dynamic' ;;
9957        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9958          tmp_addflag=' -i_dynamic -nofor_main' ;;
9959        ifc* | ifort*)                  # Intel Fortran compiler
9960          tmp_addflag=' -nofor_main' ;;
9961        esac
9962        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963
9964        if test $supports_anon_versioning = yes; then
9965          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9966  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9967  $echo "local: *; };" >> $output_objdir/$libname.ver~
9968          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9969        fi
9970      else
9971        ld_shlibs=no
9972      fi
9973      ;;
9974
9975    netbsd*)
9976      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9977        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9978        wlarc=
9979      else
9980        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9982      fi
9983      ;;
9984
9985    solaris*)
9986      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9987        ld_shlibs=no
9988        cat <<EOF 1>&2
9989
9990*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9991*** create shared libraries on Solaris systems.  Therefore, libtool
9992*** is disabling shared libraries support.  We urge you to upgrade GNU
9993*** binutils to release 2.9.1 or newer.  Another option is to modify
9994*** your PATH or compiler configuration so that the native linker is
9995*** used, and then restart.
9996
9997EOF
9998      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9999        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10001      else
10002        ld_shlibs=no
10003      fi
10004      ;;
10005
10006    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10007      case `$LD -v 2>&1` in
10008        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10009        ld_shlibs=no
10010        cat <<_LT_EOF 1>&2
10011
10012*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10013*** reliably create shared libraries on SCO systems.  Therefore, libtool
10014*** is disabling shared libraries support.  We urge you to upgrade GNU
10015*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10016*** your PATH or compiler configuration so that the native linker is
10017*** used, and then restart.
10018
10019_LT_EOF
10020        ;;
10021        *)
10022          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10023            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10024            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10025            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10026          else
10027            ld_shlibs=no
10028          fi
10029        ;;
10030      esac
10031      ;;
10032
10033    sunos4*)
10034      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10035      wlarc=
10036      hardcode_direct=yes
10037      hardcode_shlibpath_var=no
10038      ;;
10039
10040    *)
10041      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10042        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10043        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10044      else
10045        ld_shlibs=no
10046      fi
10047      ;;
10048    esac
10049
10050    if test "$ld_shlibs" = no; then
10051      runpath_var=
10052      hardcode_libdir_flag_spec=
10053      export_dynamic_flag_spec=
10054      whole_archive_flag_spec=
10055    fi
10056  else
10057    # PORTME fill in a description of your system's linker (not GNU ld)
10058    case $host_os in
10059    aix3*)
10060      allow_undefined_flag=unsupported
10061      always_export_symbols=yes
10062      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'
10063      # Note: this linker hardcodes the directories in LIBPATH if there
10064      # are no directories specified by -L.
10065      hardcode_minus_L=yes
10066      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10067        # Neither direct hardcoding nor static linking is supported with a
10068        # broken collect2.
10069        hardcode_direct=unsupported
10070      fi
10071      ;;
10072
10073    aix4* | aix5*)
10074      if test "$host_cpu" = ia64; then
10075        # On IA64, the linker does run time linking by default, so we don't
10076        # have to do anything special.
10077        aix_use_runtimelinking=no
10078        exp_sym_flag='-Bexport'
10079        no_entry_flag=""
10080      else
10081        # If we're using GNU nm, then we don't want the "-C" option.
10082        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10083        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10084          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'
10085        else
10086          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'
10087        fi
10088        aix_use_runtimelinking=no
10089
10090        # Test if we are trying to use run time linking or normal
10091        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10092        # need to do runtime linking.
10093        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10094          for ld_flag in $LDFLAGS; do
10095          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10096            aix_use_runtimelinking=yes
10097            break
10098          fi
10099          done
10100          ;;
10101        esac
10102
10103        exp_sym_flag='-bexport'
10104        no_entry_flag='-bnoentry'
10105      fi
10106
10107      # When large executables or shared objects are built, AIX ld can
10108      # have problems creating the table of contents.  If linking a library
10109      # or program results in "error TOC overflow" add -mminimal-toc to
10110      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10111      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10112
10113      archive_cmds=''
10114      hardcode_direct=yes
10115      hardcode_libdir_separator=':'
10116      link_all_deplibs=yes
10117
10118      if test "$GCC" = yes; then
10119        case $host_os in aix4.[012]|aix4.[012].*)
10120        # We only want to do this on AIX 4.2 and lower, the check
10121        # below for broken collect2 doesn't work under 4.3+
10122          collect2name=`${CC} -print-prog-name=collect2`
10123          if test -f "$collect2name" && \
10124           strings "$collect2name" | grep resolve_lib_name >/dev/null
10125          then
10126          # We have reworked collect2
10127          hardcode_direct=yes
10128          else
10129          # We have old collect2
10130          hardcode_direct=unsupported
10131          # It fails to find uninstalled libraries when the uninstalled
10132          # path is not listed in the libpath.  Setting hardcode_minus_L
10133          # to unsupported forces relinking
10134          hardcode_minus_L=yes
10135          hardcode_libdir_flag_spec='-L$libdir'
10136          hardcode_libdir_separator=
10137          fi
10138          ;;
10139        esac
10140        shared_flag='-shared'
10141        if test "$aix_use_runtimelinking" = yes; then
10142          shared_flag="$shared_flag "'${wl}-G'
10143        fi
10144      else
10145        # not using gcc
10146        if test "$host_cpu" = ia64; then
10147        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10148        # chokes on -Wl,-G. The following line is correct:
10149          shared_flag='-G'
10150        else
10151          if test "$aix_use_runtimelinking" = yes; then
10152            shared_flag='${wl}-G'
10153          else
10154            shared_flag='${wl}-bM:SRE'
10155          fi
10156        fi
10157      fi
10158
10159      # It seems that -bexpall does not export symbols beginning with
10160      # underscore (_), so it is better to generate a list of symbols to export.
10161      always_export_symbols=yes
10162      if test "$aix_use_runtimelinking" = yes; then
10163        # Warning - without using the other runtime loading flags (-brtl),
10164        # -berok will link without error, but may produce a broken library.
10165        allow_undefined_flag='-berok'
10166       # Determine the default libpath from the value encoded in an empty executable.
10167       cat >conftest.$ac_ext <<_ACEOF
10168/* confdefs.h.  */
10169_ACEOF
10170cat confdefs.h >>conftest.$ac_ext
10171cat >>conftest.$ac_ext <<_ACEOF
10172/* end confdefs.h.  */
10173
10174#ifdef F77_DUMMY_MAIN
10175
10176#  ifdef __cplusplus
10177     extern "C"
10178#  endif
10179   int F77_DUMMY_MAIN() { return 1; }
10180
10181#endif
10182int
10183main ()
10184{
10185
10186  ;
10187  return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext conftest$ac_exeext
10191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192  (eval $ac_link) 2>conftest.er1
10193  ac_status=$?
10194  grep -v '^ *+' conftest.er1 >conftest.err
10195  rm -f conftest.er1
10196  cat conftest.err >&5
10197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198  (exit $ac_status); } &&
10199         { ac_try='test -z "$ac_c_werror_flag"
10200                         || test ! -s conftest.err'
10201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202  (eval $ac_try) 2>&5
10203  ac_status=$?
10204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205  (exit $ac_status); }; } &&
10206         { ac_try='test -s conftest$ac_exeext'
10207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208  (eval $ac_try) 2>&5
10209  ac_status=$?
10210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211  (exit $ac_status); }; }; then
10212
10213aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10214}'`
10215# Check for a 64-bit object if we didn't find anything.
10216if 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; }
10217}'`; fi
10218else
10219  echo "$as_me: failed program was:" >&5
10220sed 's/^/| /' conftest.$ac_ext >&5
10221
10222fi
10223rm -f conftest.err conftest.$ac_objext \
10224      conftest$ac_exeext conftest.$ac_ext
10225if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10226
10227       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10228        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"
10229       else
10230        if test "$host_cpu" = ia64; then
10231          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10232          allow_undefined_flag="-z nodefs"
10233          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"
10234        else
10235         # Determine the default libpath from the value encoded in an empty executable.
10236         cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h.  */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h.  */
10242
10243#ifdef F77_DUMMY_MAIN
10244
10245#  ifdef __cplusplus
10246     extern "C"
10247#  endif
10248   int F77_DUMMY_MAIN() { return 1; }
10249
10250#endif
10251int
10252main ()
10253{
10254
10255  ;
10256  return 0;
10257}
10258_ACEOF
10259rm -f conftest.$ac_objext conftest$ac_exeext
10260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261  (eval $ac_link) 2>conftest.er1
10262  ac_status=$?
10263  grep -v '^ *+' conftest.er1 >conftest.err
10264  rm -f conftest.er1
10265  cat conftest.err >&5
10266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267  (exit $ac_status); } &&
10268         { ac_try='test -z "$ac_c_werror_flag"
10269                         || test ! -s conftest.err'
10270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271  (eval $ac_try) 2>&5
10272  ac_status=$?
10273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274  (exit $ac_status); }; } &&
10275         { ac_try='test -s conftest$ac_exeext'
10276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277  (eval $ac_try) 2>&5
10278  ac_status=$?
10279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280  (exit $ac_status); }; }; then
10281
10282aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10283}'`
10284# Check for a 64-bit object if we didn't find anything.
10285if 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; }
10286}'`; fi
10287else
10288  echo "$as_me: failed program was:" >&5
10289sed 's/^/| /' conftest.$ac_ext >&5
10290
10291fi
10292rm -f conftest.err conftest.$ac_objext \
10293      conftest$ac_exeext conftest.$ac_ext
10294if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10295
10296         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10297          # Warning - without using the other run time loading flags,
10298          # -berok will link without error, but may produce a broken library.
10299          no_undefined_flag=' ${wl}-bernotok'
10300          allow_undefined_flag=' ${wl}-berok'
10301          # Exported symbols can be pulled into shared objects from archives
10302          whole_archive_flag_spec='$convenience'
10303          archive_cmds_need_lc=yes
10304          # This is similar to how AIX traditionally builds its shared libraries.
10305          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'
10306        fi
10307      fi
10308      ;;
10309
10310    amigaos*)
10311      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)'
10312      hardcode_libdir_flag_spec='-L$libdir'
10313      hardcode_minus_L=yes
10314      # see comment about different semantics on the GNU ld section
10315      ld_shlibs=no
10316      ;;
10317
10318    bsdi[45]*)
10319      export_dynamic_flag_spec=-rdynamic
10320      ;;
10321
10322    cygwin* | mingw* | pw32*)
10323      # When not using gcc, we currently assume that we are using
10324      # Microsoft Visual C++.
10325      # hardcode_libdir_flag_spec is actually meaningless, as there is
10326      # no search path for DLLs.
10327      hardcode_libdir_flag_spec=' '
10328      allow_undefined_flag=unsupported
10329      # Tell ltmain to make .lib files, not .a files.
10330      libext=lib
10331      # Tell ltmain to make .dll files, not .so files.
10332      shrext_cmds=".dll"
10333      # FIXME: Setting linknames here is a bad hack.
10334      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10335      # The linker will automatically build a .lib file if we build a DLL.
10336      old_archive_From_new_cmds='true'
10337      # FIXME: Should let the user specify the lib program.
10338      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10339      fix_srcfile_path='`cygpath -w "$srcfile"`'
10340      enable_shared_with_static_runtimes=yes
10341      ;;
10342
10343    darwin* | rhapsody*)
10344      case $host_os in
10345        rhapsody* | darwin1.[012])
10346         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10347         ;;
10348       *) # Darwin 1.3 on
10349         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10350           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10351         else
10352           case ${MACOSX_DEPLOYMENT_TARGET} in
10353             10.[012])
10354               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10355               ;;
10356             10.*)
10357               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10358               ;;
10359           esac
10360         fi
10361         ;;
10362      esac
10363      archive_cmds_need_lc=no
10364      hardcode_direct=no
10365      hardcode_automatic=yes
10366      hardcode_shlibpath_var=unsupported
10367      whole_archive_flag_spec=''
10368      link_all_deplibs=yes
10369    if test "$GCC" = yes ; then
10370        output_verbose_link_cmd='echo'
10371        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10372      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10373      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10374      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}'
10375      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}'
10376    else
10377      case $cc_basename in
10378        xlc*)
10379         output_verbose_link_cmd='echo'
10380         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10381         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10382          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10383         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}'
10384          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}'
10385          ;;
10386       *)
10387         ld_shlibs=no
10388          ;;
10389      esac
10390    fi
10391      ;;
10392
10393    dgux*)
10394      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395      hardcode_libdir_flag_spec='-L$libdir'
10396      hardcode_shlibpath_var=no
10397      ;;
10398
10399    freebsd1*)
10400      ld_shlibs=no
10401      ;;
10402
10403    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10404    # support.  Future versions do this automatically, but an explicit c++rt0.o
10405    # does not break anything, and helps significantly (at the cost of a little
10406    # extra space).
10407    freebsd2.2*)
10408      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10409      hardcode_libdir_flag_spec='-R$libdir'
10410      hardcode_direct=yes
10411      hardcode_shlibpath_var=no
10412      ;;
10413
10414    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10415    freebsd2*)
10416      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10417      hardcode_direct=yes
10418      hardcode_minus_L=yes
10419      hardcode_shlibpath_var=no
10420      ;;
10421
10422    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10423    freebsd* | kfreebsd*-gnu | dragonfly*)
10424      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10425      hardcode_libdir_flag_spec='-R$libdir'
10426      hardcode_direct=yes
10427      hardcode_shlibpath_var=no
10428      ;;
10429
10430    hpux9*)
10431      if test "$GCC" = yes; then
10432        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'
10433      else
10434        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'
10435      fi
10436      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10437      hardcode_libdir_separator=:
10438      hardcode_direct=yes
10439
10440      # hardcode_minus_L: Not really in the search PATH,
10441      # but as the default location of the library.
10442      hardcode_minus_L=yes
10443      export_dynamic_flag_spec='${wl}-E'
10444      ;;
10445
10446    hpux10*)
10447      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10448        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10449      else
10450        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10451      fi
10452      if test "$with_gnu_ld" = no; then
10453        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10454        hardcode_libdir_separator=:
10455
10456        hardcode_direct=yes
10457        export_dynamic_flag_spec='${wl}-E'
10458
10459        # hardcode_minus_L: Not really in the search PATH,
10460        # but as the default location of the library.
10461        hardcode_minus_L=yes
10462      fi
10463      ;;
10464
10465    hpux11*)
10466      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10467        case $host_cpu in
10468        hppa*64*)
10469          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10470          ;;
10471        ia64*)
10472          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10473          ;;
10474        *)
10475          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10476          ;;
10477        esac
10478      else
10479        case $host_cpu in
10480        hppa*64*)
10481          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10482          ;;
10483        ia64*)
10484          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10485          ;;
10486        *)
10487          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10488          ;;
10489        esac
10490      fi
10491      if test "$with_gnu_ld" = no; then
10492        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10493        hardcode_libdir_separator=:
10494
10495        case $host_cpu in
10496        hppa*64*|ia64*)
10497          hardcode_libdir_flag_spec_ld='+b $libdir'
10498          hardcode_direct=no
10499          hardcode_shlibpath_var=no
10500          ;;
10501        *)
10502          hardcode_direct=yes
10503          export_dynamic_flag_spec='${wl}-E'
10504
10505          # hardcode_minus_L: Not really in the search PATH,
10506          # but as the default location of the library.
10507          hardcode_minus_L=yes
10508          ;;
10509        esac
10510      fi
10511      ;;
10512
10513    irix5* | irix6* | nonstopux*)
10514      if test "$GCC" = yes; then
10515        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'
10516      else
10517        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'
10518        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10519      fi
10520      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10521      hardcode_libdir_separator=:
10522      link_all_deplibs=yes
10523      ;;
10524
10525    netbsd*)
10526      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10527        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10528      else
10529        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10530      fi
10531      hardcode_libdir_flag_spec='-R$libdir'
10532      hardcode_direct=yes
10533      hardcode_shlibpath_var=no
10534      ;;
10535
10536    newsos6)
10537      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538      hardcode_direct=yes
10539      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10540      hardcode_libdir_separator=:
10541      hardcode_shlibpath_var=no
10542      ;;
10543
10544    openbsd*)
10545      hardcode_direct=yes
10546      hardcode_shlibpath_var=no
10547      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10548        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10549        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10550        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10551        export_dynamic_flag_spec='${wl}-E'
10552      else
10553       case $host_os in
10554         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10555           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10556           hardcode_libdir_flag_spec='-R$libdir'
10557           ;;
10558         *)
10559           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10560           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10561           ;;
10562       esac
10563      fi
10564      ;;
10565
10566    os2*)
10567      hardcode_libdir_flag_spec='-L$libdir'
10568      hardcode_minus_L=yes
10569      allow_undefined_flag=unsupported
10570      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'
10571      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10572      ;;
10573
10574    osf3*)
10575      if test "$GCC" = yes; then
10576        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10577        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'
10578      else
10579        allow_undefined_flag=' -expect_unresolved \*'
10580        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'
10581      fi
10582      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10583      hardcode_libdir_separator=:
10584      ;;
10585
10586    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10587      if test "$GCC" = yes; then
10588        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10589        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'
10590        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10591      else
10592        allow_undefined_flag=' -expect_unresolved \*'
10593        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'
10594        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10595        $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'
10596
10597        # Both c and cxx compiler support -rpath directly
10598        hardcode_libdir_flag_spec='-rpath $libdir'
10599      fi
10600      hardcode_libdir_separator=:
10601      ;;
10602
10603    solaris*)
10604      no_undefined_flag=' -z text'
10605      if test "$GCC" = yes; then
10606        wlarc='${wl}'
10607        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10608        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10609          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10610      else
10611        wlarc=''
10612        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10614        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10615      fi
10616      hardcode_libdir_flag_spec='-R$libdir'
10617      hardcode_shlibpath_var=no
10618      case $host_os in
10619      solaris2.[0-5] | solaris2.[0-5].*) ;;
10620      *)
10621        # The compiler driver will combine linker options so we
10622        # cannot just pass the convience library names through
10623        # without $wl, iff we do not link with $LD.
10624        # Luckily, gcc supports the same syntax we need for Sun Studio.
10625        # Supported since Solaris 2.6 (maybe 2.5.1?)
10626        case $wlarc in
10627        '')
10628          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10629        *)
10630          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' ;;
10631        esac ;;
10632      esac
10633      link_all_deplibs=yes
10634      ;;
10635
10636    sunos4*)
10637      if test "x$host_vendor" = xsequent; then
10638        # Use $CC to link under sequent, because it throws in some extra .o
10639        # files that make .init and .fini sections work.
10640        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10641      else
10642        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10643      fi
10644      hardcode_libdir_flag_spec='-L$libdir'
10645      hardcode_direct=yes
10646      hardcode_minus_L=yes
10647      hardcode_shlibpath_var=no
10648      ;;
10649
10650    sysv4)
10651      case $host_vendor in
10652        sni)
10653          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10654          hardcode_direct=yes # is this really true???
10655        ;;
10656        siemens)
10657          ## LD is ld it makes a PLAMLIB
10658          ## CC just makes a GrossModule.
10659          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10660          reload_cmds='$CC -r -o $output$reload_objs'
10661          hardcode_direct=no
10662        ;;
10663        motorola)
10664          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10665          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10666        ;;
10667      esac
10668      runpath_var='LD_RUN_PATH'
10669      hardcode_shlibpath_var=no
10670      ;;
10671
10672    sysv4.3*)
10673      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10674      hardcode_shlibpath_var=no
10675      export_dynamic_flag_spec='-Bexport'
10676      ;;
10677
10678    sysv4*MP*)
10679      if test -d /usr/nec; then
10680        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681        hardcode_shlibpath_var=no
10682        runpath_var=LD_RUN_PATH
10683        hardcode_runpath_var=yes
10684        ld_shlibs=yes
10685      fi
10686      ;;
10687
10688    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10689      no_undefined_flag='${wl}-z,text'
10690      archive_cmds_need_lc=no
10691      hardcode_shlibpath_var=no
10692      runpath_var='LD_RUN_PATH'
10693
10694      if test "$GCC" = yes; then
10695        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10696        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697      else
10698        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10699        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10700      fi
10701      ;;
10702
10703    sysv5* | sco3.2v5* | sco5v6*)
10704      # Note: We can NOT use -z defs as we might desire, because we do not
10705      # link with -lc, and that would cause any symbols used from libc to
10706      # always be unresolved, which means just about no library would
10707      # ever link correctly.  If we're not using GNU ld we use -z text
10708      # though, which does catch some bad symbols but isn't as heavy-handed
10709      # as -z defs.
10710      no_undefined_flag='${wl}-z,text'
10711      allow_undefined_flag='${wl}-z,nodefs'
10712      archive_cmds_need_lc=no
10713      hardcode_shlibpath_var=no
10714      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10715      hardcode_libdir_separator=':'
10716      link_all_deplibs=yes
10717      export_dynamic_flag_spec='${wl}-Bexport'
10718      runpath_var='LD_RUN_PATH'
10719
10720      if test "$GCC" = yes; then
10721        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10722        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10723      else
10724        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10725        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10726      fi
10727      ;;
10728
10729    uts4*)
10730      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10731      hardcode_libdir_flag_spec='-L$libdir'
10732      hardcode_shlibpath_var=no
10733      ;;
10734
10735    *)
10736      ld_shlibs=no
10737      ;;
10738    esac
10739  fi
10740
10741echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10742echo "${ECHO_T}$ld_shlibs" >&6
10743test "$ld_shlibs" = no && can_build_shared=no
10744
10745#
10746# Do we need to explicitly link libc?
10747#
10748case "x$archive_cmds_need_lc" in
10749x|xyes)
10750  # Assume -lc should be added
10751  archive_cmds_need_lc=yes
10752
10753  if test "$enable_shared" = yes && test "$GCC" = yes; then
10754    case $archive_cmds in
10755    *'~'*)
10756      # FIXME: we may have to deal with multi-command sequences.
10757      ;;
10758    '$CC '*)
10759      # Test whether the compiler implicitly links with -lc since on some
10760      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10761      # to ld, don't add -lc before -lgcc.
10762      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10763echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10764      $rm conftest*
10765      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10766
10767      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768  (eval $ac_compile) 2>&5
10769  ac_status=$?
10770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771  (exit $ac_status); } 2>conftest.err; then
10772        soname=conftest
10773        lib=conftest
10774        libobjs=conftest.$ac_objext
10775        deplibs=
10776        wl=$lt_prog_compiler_wl
10777        pic_flag=$lt_prog_compiler_pic
10778        compiler_flags=-v
10779        linker_flags=-v
10780        verstring=
10781        output_objdir=.
10782        libname=conftest
10783        lt_save_allow_undefined_flag=$allow_undefined_flag
10784        allow_undefined_flag=
10785        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null