source: branches/dev/configure @ 555

Last change on this file since 555 was 555, checked in by andreasw, 15 years ago
  • integrated MA57 Interface into build system
  • minor changes in Ma57TSolverInterface code
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 388.3 KB
Line 
1#! /bin/sh
2# From configure.ac 3.0.0.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Ipopt 3.0.0.
5#
6# Report bugs to <coin-ipopt@www-124.ibm.com>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2004, 2005 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package IPOPT which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253# Name of the host.
254# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
255# so uname gets run too.
256ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
257
258exec 6>&1
259
260#
261# Initializations.
262#
263ac_default_prefix=/usr/local
264ac_config_libobj_dir=.
265cross_compiling=no
266subdirs=
267MFLAGS=
268MAKEFLAGS=
269SHELL=${CONFIG_SHELL-/bin/sh}
270
271# Maximum number of lines to put in a shell here document.
272# This variable seems obsolete.  It should probably be removed, and
273# only ac_max_sed_lines should be used.
274: ${ac_max_here_lines=38}
275
276# Identity of this package.
277PACKAGE_NAME='Ipopt'
278PACKAGE_TARNAME='ipopt'
279PACKAGE_VERSION='3.0.0'
280PACKAGE_STRING='Ipopt 3.0.0'
281PACKAGE_BUGREPORT='coin-ipopt@www-124.ibm.com'
282
283ac_unique_file="Common/IpDebug.hpp"
284ac_default_prefix=`pwd`
285# Factoring default headers for most tests.
286ac_includes_default="\
287#include <stdio.h>
288#if HAVE_SYS_TYPES_H
289# include <sys/types.h>
290#endif
291#if HAVE_SYS_STAT_H
292# include <sys/stat.h>
293#endif
294#if STDC_HEADERS
295# include <stdlib.h>
296# include <stddef.h>
297#else
298# if HAVE_STDLIB_H
299#  include <stdlib.h>
300# endif
301#endif
302#if HAVE_STRING_H
303# if !STDC_HEADERS && HAVE_MEMORY_H
304#  include <memory.h>
305# endif
306# include <string.h>
307#endif
308#if HAVE_STRINGS_H
309# include <strings.h>
310#endif
311#if HAVE_INTTYPES_H
312# include <inttypes.h>
313#else
314# if HAVE_STDINT_H
315#  include <stdint.h>
316# endif
317#endif
318#if HAVE_UNISTD_H
319# include <unistd.h>
320#endif"
321
322ac_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 build build_cpu build_vendor build_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXLIBS AR ARFLAGS AR_X CC CFLAGS ac_ct_CC F77 FFLAGS ac_ct_F77 FLIBS RANLIB ac_ct_RANLIB 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 CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CXXCPP EGREP IPADDLIBS TAUCS_INCFLAGS ASLMAKEFLAGS ASLMAKEFILECMDS ASTYLE ASTYLEFLAGS ipoptlib AMPL_CPPFLAGS IPALLLIBS BUILDBLAS_TRUE BUILDBLAS_FALSE BUILDHSL_TRUE BUILDHSL_FALSE BUILDMA27_TRUE BUILDMA27_FALSE BUILDMA57_TRUE BUILDMA57_FALSE BUILDMC19_TRUE BUILDMC19_FALSE BUILDBLASDIR_TRUE BUILDBLASDIR_FALSE BUILDHSLDIR_TRUE BUILDHSLDIR_FALSE HAVE_MA27_TRUE HAVE_MA27_FALSE HAVE_MA57_TRUE HAVE_MA57_FALSE HAVE_MC19_TRUE HAVE_MC19_FALSE HAVE_PARDISO_TRUE HAVE_PARDISO_FALSE HAVE_TAUCS_TRUE HAVE_TAUCS_FALSE BUILDASLDIR_TRUE BUILDASLDIR_FALSE BUILDAMPLINTERFACE_TRUE BUILDAMPLINTERFACE_FALSE ASLLIB LIBOBJS LTLIBOBJS'
323ac_subst_files=''
324
325# Initialize some variables set by options.
326ac_init_help=
327ac_init_version=false
328# The variables have the same names as the options, with
329# dashes changed to underlines.
330cache_file=/dev/null
331exec_prefix=NONE
332no_create=
333no_recursion=
334prefix=NONE
335program_prefix=NONE
336program_suffix=NONE
337program_transform_name=s,x,x,
338silent=
339site=
340srcdir=
341verbose=
342x_includes=NONE
343x_libraries=NONE
344
345# Installation directory options.
346# These are left unexpanded so users can "make install exec_prefix=/foo"
347# and all the variables that are supposed to be based on exec_prefix
348# by default will actually change.
349# Use braces instead of parens because sh, perl, etc. also accept them.
350bindir='${exec_prefix}/bin'
351sbindir='${exec_prefix}/sbin'
352libexecdir='${exec_prefix}/libexec'
353datadir='${prefix}/share'
354sysconfdir='${prefix}/etc'
355sharedstatedir='${prefix}/com'
356localstatedir='${prefix}/var'
357libdir='${exec_prefix}/lib'
358includedir='${prefix}/include'
359oldincludedir='/usr/include'
360infodir='${prefix}/info'
361mandir='${prefix}/man'
362
363ac_prev=
364for ac_option
365do
366  # If the previous option needs an argument, assign it.
367  if test -n "$ac_prev"; then
368    eval "$ac_prev=\$ac_option"
369    ac_prev=
370    continue
371  fi
372
373  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
374
375  # Accept the important Cygnus configure options, so we can diagnose typos.
376
377  case $ac_option in
378
379  -bindir | --bindir | --bindi | --bind | --bin | --bi)
380    ac_prev=bindir ;;
381  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
382    bindir=$ac_optarg ;;
383
384  -build | --build | --buil | --bui | --bu)
385    ac_prev=build_alias ;;
386  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
387    build_alias=$ac_optarg ;;
388
389  -cache-file | --cache-file | --cache-fil | --cache-fi \
390  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
391    ac_prev=cache_file ;;
392  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
393  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
394    cache_file=$ac_optarg ;;
395
396  --config-cache | -C)
397    cache_file=config.cache ;;
398
399  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
400    ac_prev=datadir ;;
401  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
402  | --da=*)
403    datadir=$ac_optarg ;;
404
405  -disable-* | --disable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    eval "enable_$ac_feature=no" ;;
413
414  -enable-* | --enable-*)
415    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
416    # Reject names that are not valid shell variable names.
417    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
418      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
419   { (exit 1); exit 1; }; }
420    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
421    case $ac_option in
422      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
423      *) ac_optarg=yes ;;
424    esac
425    eval "enable_$ac_feature='$ac_optarg'" ;;
426
427  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
428  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
429  | --exec | --exe | --ex)
430    ac_prev=exec_prefix ;;
431  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
432  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
433  | --exec=* | --exe=* | --ex=*)
434    exec_prefix=$ac_optarg ;;
435
436  -gas | --gas | --ga | --g)
437    # Obsolete; use --with-gas.
438    with_gas=yes ;;
439
440  -help | --help | --hel | --he | -h)
441    ac_init_help=long ;;
442  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
443    ac_init_help=recursive ;;
444  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
445    ac_init_help=short ;;
446
447  -host | --host | --hos | --ho)
448    ac_prev=host_alias ;;
449  -host=* | --host=* | --hos=* | --ho=*)
450    host_alias=$ac_optarg ;;
451
452  -includedir | --includedir | --includedi | --included | --include \
453  | --includ | --inclu | --incl | --inc)
454    ac_prev=includedir ;;
455  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
456  | --includ=* | --inclu=* | --incl=* | --inc=*)
457    includedir=$ac_optarg ;;
458
459  -infodir | --infodir | --infodi | --infod | --info | --inf)
460    ac_prev=infodir ;;
461  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
462    infodir=$ac_optarg ;;
463
464  -libdir | --libdir | --libdi | --libd)
465    ac_prev=libdir ;;
466  -libdir=* | --libdir=* | --libdi=* | --libd=*)
467    libdir=$ac_optarg ;;
468
469  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
470  | --libexe | --libex | --libe)
471    ac_prev=libexecdir ;;
472  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
473  | --libexe=* | --libex=* | --libe=*)
474    libexecdir=$ac_optarg ;;
475
476  -localstatedir | --localstatedir | --localstatedi | --localstated \
477  | --localstate | --localstat | --localsta | --localst \
478  | --locals | --local | --loca | --loc | --lo)
479    ac_prev=localstatedir ;;
480  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
481  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
482  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
483    localstatedir=$ac_optarg ;;
484
485  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
486    ac_prev=mandir ;;
487  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
488    mandir=$ac_optarg ;;
489
490  -nfp | --nfp | --nf)
491    # Obsolete; use --without-fp.
492    with_fp=no ;;
493
494  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
495  | --no-cr | --no-c | -n)
496    no_create=yes ;;
497
498  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
499  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
500    no_recursion=yes ;;
501
502  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
503  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
504  | --oldin | --oldi | --old | --ol | --o)
505    ac_prev=oldincludedir ;;
506  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
507  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
508  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
509    oldincludedir=$ac_optarg ;;
510
511  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
512    ac_prev=prefix ;;
513  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
514    prefix=$ac_optarg ;;
515
516  -program-prefix | --program-prefix | --program-prefi | --program-pref \
517  | --program-pre | --program-pr | --program-p)
518    ac_prev=program_prefix ;;
519  -program-prefix=* | --program-prefix=* | --program-prefi=* \
520  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
521    program_prefix=$ac_optarg ;;
522
523  -program-suffix | --program-suffix | --program-suffi | --program-suff \
524  | --program-suf | --program-su | --program-s)
525    ac_prev=program_suffix ;;
526  -program-suffix=* | --program-suffix=* | --program-suffi=* \
527  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
528    program_suffix=$ac_optarg ;;
529
530  -program-transform-name | --program-transform-name \
531  | --program-transform-nam | --program-transform-na \
532  | --program-transform-n | --program-transform- \
533  | --program-transform | --program-transfor \
534  | --program-transfo | --program-transf \
535  | --program-trans | --program-tran \
536  | --progr-tra | --program-tr | --program-t)
537    ac_prev=program_transform_name ;;
538  -program-transform-name=* | --program-transform-name=* \
539  | --program-transform-nam=* | --program-transform-na=* \
540  | --program-transform-n=* | --program-transform-=* \
541  | --program-transform=* | --program-transfor=* \
542  | --program-transfo=* | --program-transf=* \
543  | --program-trans=* | --program-tran=* \
544  | --progr-tra=* | --program-tr=* | --program-t=*)
545    program_transform_name=$ac_optarg ;;
546
547  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
548  | -silent | --silent | --silen | --sile | --sil)
549    silent=yes ;;
550
551  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
552    ac_prev=sbindir ;;
553  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
554  | --sbi=* | --sb=*)
555    sbindir=$ac_optarg ;;
556
557  -sharedstatedir | --sharedstatedir | --sharedstatedi \
558  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
559  | --sharedst | --shareds | --shared | --share | --shar \
560  | --sha | --sh)
561    ac_prev=sharedstatedir ;;
562  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
563  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
564  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
565  | --sha=* | --sh=*)
566    sharedstatedir=$ac_optarg ;;
567
568  -site | --site | --sit)
569    ac_prev=site ;;
570  -site=* | --site=* | --sit=*)
571    site=$ac_optarg ;;
572
573  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
574    ac_prev=srcdir ;;
575  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
576    srcdir=$ac_optarg ;;
577
578  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
579  | --syscon | --sysco | --sysc | --sys | --sy)
580    ac_prev=sysconfdir ;;
581  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
582  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
583    sysconfdir=$ac_optarg ;;
584
585  -target | --target | --targe | --targ | --tar | --ta | --t)
586    ac_prev=target_alias ;;
587  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
588    target_alias=$ac_optarg ;;
589
590  -v | -verbose | --verbose | --verbos | --verbo | --verb)
591    verbose=yes ;;
592
593  -version | --version | --versio | --versi | --vers | -V)
594    ac_init_version=: ;;
595
596  -with-* | --with-*)
597    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
598    # Reject names that are not valid shell variable names.
599    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600      { echo "$as_me: error: invalid package name: $ac_package" >&2
601   { (exit 1); exit 1; }; }
602    ac_package=`echo $ac_package| sed 's/-/_/g'`
603    case $ac_option in
604      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
605      *) ac_optarg=yes ;;
606    esac
607    eval "with_$ac_package='$ac_optarg'" ;;
608
609  -without-* | --without-*)
610    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
611    # Reject names that are not valid shell variable names.
612    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
613      { echo "$as_me: error: invalid package name: $ac_package" >&2
614   { (exit 1); exit 1; }; }
615    ac_package=`echo $ac_package | sed 's/-/_/g'`
616    eval "with_$ac_package=no" ;;
617
618  --x)
619    # Obsolete; use --with-x.
620    with_x=yes ;;
621
622  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
623  | --x-incl | --x-inc | --x-in | --x-i)
624    ac_prev=x_includes ;;
625  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
626  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
627    x_includes=$ac_optarg ;;
628
629  -x-libraries | --x-libraries | --x-librarie | --x-librari \
630  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
631    ac_prev=x_libraries ;;
632  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
633  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
634    x_libraries=$ac_optarg ;;
635
636  -*) { echo "$as_me: error: unrecognized option: $ac_option
637Try \`$0 --help' for more information." >&2
638   { (exit 1); exit 1; }; }
639    ;;
640
641  *=*)
642    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
643    # Reject names that are not valid shell variable names.
644    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
645      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
646   { (exit 1); exit 1; }; }
647    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
648    eval "$ac_envvar='$ac_optarg'"
649    export $ac_envvar ;;
650
651  *)
652    # FIXME: should be removed in autoconf 3.0.
653    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
654    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
655      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
656    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657    ;;
658
659  esac
660done
661
662if test -n "$ac_prev"; then
663  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
664  { echo "$as_me: error: missing argument to $ac_option" >&2
665   { (exit 1); exit 1; }; }
666fi
667
668# Be sure to have absolute paths.
669for ac_var in exec_prefix prefix
670do
671  eval ac_val=$`echo $ac_var`
672  case $ac_val in
673    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
674    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
675   { (exit 1); exit 1; }; };;
676  esac
677done
678
679# Be sure to have absolute paths.
680for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
681              localstatedir libdir includedir oldincludedir infodir mandir
682do
683  eval ac_val=$`echo $ac_var`
684  case $ac_val in
685    [\\/$]* | ?:[\\/]* ) ;;
686    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
687   { (exit 1); exit 1; }; };;
688  esac
689done
690
691# There might be people who depend on the old broken behavior: `$host'
692# used to hold the argument of --host etc.
693# FIXME: To remove some day.
694build=$build_alias
695host=$host_alias
696target=$target_alias
697
698# FIXME: To remove some day.
699if test "x$host_alias" != x; then
700  if test "x$build_alias" = x; then
701    cross_compiling=maybe
702    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
703    If a cross compiler is detected then cross compile mode will be used." >&2
704  elif test "x$build_alias" != "x$host_alias"; then
705    cross_compiling=yes
706  fi
707fi
708
709ac_tool_prefix=
710test -n "$host_alias" && ac_tool_prefix=$host_alias-
711
712test "$silent" = yes && exec 6>/dev/null
713
714
715# Find the source files, if location was not specified.
716if test -z "$srcdir"; then
717  ac_srcdir_defaulted=yes
718  # Try the directory containing this script, then its parent.
719  ac_confdir=`(dirname "$0") 2>/dev/null ||
720$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
721         X"$0" : 'X\(//\)[^/]' \| \
722         X"$0" : 'X\(//\)$' \| \
723         X"$0" : 'X\(/\)' \| \
724         .     : '\(.\)' 2>/dev/null ||
725echo X"$0" |
726    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
727          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
728          /^X\(\/\/\)$/{ s//\1/; q; }
729          /^X\(\/\).*/{ s//\1/; q; }
730          s/.*/./; q'`
731  srcdir=$ac_confdir
732  if test ! -r $srcdir/$ac_unique_file; then
733    srcdir=..
734  fi
735else
736  ac_srcdir_defaulted=no
737fi
738if test ! -r $srcdir/$ac_unique_file; then
739  if test "$ac_srcdir_defaulted" = yes; then
740    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
741   { (exit 1); exit 1; }; }
742  else
743    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
744   { (exit 1); exit 1; }; }
745  fi
746fi
747(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
748  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
749   { (exit 1); exit 1; }; }
750srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
751ac_env_build_alias_set=${build_alias+set}
752ac_env_build_alias_value=$build_alias
753ac_cv_env_build_alias_set=${build_alias+set}
754ac_cv_env_build_alias_value=$build_alias
755ac_env_host_alias_set=${host_alias+set}
756ac_env_host_alias_value=$host_alias
757ac_cv_env_host_alias_set=${host_alias+set}
758ac_cv_env_host_alias_value=$host_alias
759ac_env_target_alias_set=${target_alias+set}
760ac_env_target_alias_value=$target_alias
761ac_cv_env_target_alias_set=${target_alias+set}
762ac_cv_env_target_alias_value=$target_alias
763ac_env_CXX_set=${CXX+set}
764ac_env_CXX_value=$CXX
765ac_cv_env_CXX_set=${CXX+set}
766ac_cv_env_CXX_value=$CXX
767ac_env_CXXFLAGS_set=${CXXFLAGS+set}
768ac_env_CXXFLAGS_value=$CXXFLAGS
769ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
770ac_cv_env_CXXFLAGS_value=$CXXFLAGS
771ac_env_LDFLAGS_set=${LDFLAGS+set}
772ac_env_LDFLAGS_value=$LDFLAGS
773ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
774ac_cv_env_LDFLAGS_value=$LDFLAGS
775ac_env_CPPFLAGS_set=${CPPFLAGS+set}
776ac_env_CPPFLAGS_value=$CPPFLAGS
777ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
778ac_cv_env_CPPFLAGS_value=$CPPFLAGS
779ac_env_CXXLIBS_set=${CXXLIBS+set}
780ac_env_CXXLIBS_value=$CXXLIBS
781ac_cv_env_CXXLIBS_set=${CXXLIBS+set}
782ac_cv_env_CXXLIBS_value=$CXXLIBS
783ac_env_AR_set=${AR+set}
784ac_env_AR_value=$AR
785ac_cv_env_AR_set=${AR+set}
786ac_cv_env_AR_value=$AR
787ac_env_ARFLAGS_set=${ARFLAGS+set}
788ac_env_ARFLAGS_value=$ARFLAGS
789ac_cv_env_ARFLAGS_set=${ARFLAGS+set}
790ac_cv_env_ARFLAGS_value=$ARFLAGS
791ac_env_AR_X_set=${AR_X+set}
792ac_env_AR_X_value=$AR_X
793ac_cv_env_AR_X_set=${AR_X+set}
794ac_cv_env_AR_X_value=$AR_X
795ac_env_CC_set=${CC+set}
796ac_env_CC_value=$CC
797ac_cv_env_CC_set=${CC+set}
798ac_cv_env_CC_value=$CC
799ac_env_CFLAGS_set=${CFLAGS+set}
800ac_env_CFLAGS_value=$CFLAGS
801ac_cv_env_CFLAGS_set=${CFLAGS+set}
802ac_cv_env_CFLAGS_value=$CFLAGS
803ac_env_F77_set=${F77+set}
804ac_env_F77_value=$F77
805ac_cv_env_F77_set=${F77+set}
806ac_cv_env_F77_value=$F77
807ac_env_FFLAGS_set=${FFLAGS+set}
808ac_env_FFLAGS_value=$FFLAGS
809ac_cv_env_FFLAGS_set=${FFLAGS+set}
810ac_cv_env_FFLAGS_value=$FFLAGS
811ac_env_CXXCPP_set=${CXXCPP+set}
812ac_env_CXXCPP_value=$CXXCPP
813ac_cv_env_CXXCPP_set=${CXXCPP+set}
814ac_cv_env_CXXCPP_value=$CXXCPP
815ac_env_TAUCS_INCFLAGS_set=${TAUCS_INCFLAGS+set}
816ac_env_TAUCS_INCFLAGS_value=$TAUCS_INCFLAGS
817ac_cv_env_TAUCS_INCFLAGS_set=${TAUCS_INCFLAGS+set}
818ac_cv_env_TAUCS_INCFLAGS_value=$TAUCS_INCFLAGS
819ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
820ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
821ac_cv_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
822ac_cv_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
823
824#
825# Report the --help message.
826#
827if test "$ac_init_help" = "long"; then
828  # Omit some internal or obsolete options to make the list less imposing.
829  # This message is too long to be a string in the A/UX 3.1 sh.
830  cat <<_ACEOF
831\`configure' configures Ipopt 3.0.0 to adapt to many kinds of systems.
832
833Usage: $0 [OPTION]... [VAR=VALUE]...
834
835To assign environment variables (e.g., CC, CFLAGS...), specify them as
836VAR=VALUE.  See below for descriptions of some of the useful variables.
837
838Defaults for the options are specified in brackets.
839
840Configuration:
841  -h, --help              display this help and exit
842      --help=short        display options specific to this package
843      --help=recursive    display the short help of all the included packages
844  -V, --version           display version information and exit
845  -q, --quiet, --silent   do not print \`checking...' messages
846      --cache-file=FILE   cache test results in FILE [disabled]
847  -C, --config-cache      alias for \`--cache-file=config.cache'
848  -n, --no-create         do not create output files
849      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
850
851_ACEOF
852
853  cat <<_ACEOF
854Installation directories:
855  --prefix=PREFIX         install architecture-independent files in PREFIX
856                          [$ac_default_prefix]
857  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
858                          [PREFIX]
859
860By default, \`make install' will install all the files in
861\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
862an installation prefix other than \`$ac_default_prefix' using \`--prefix',
863for instance \`--prefix=\$HOME'.
864
865For better control, use the options below.
866
867Fine tuning of the installation directories:
868  --bindir=DIR           user executables [EPREFIX/bin]
869  --sbindir=DIR          system admin executables [EPREFIX/sbin]
870  --libexecdir=DIR       program executables [EPREFIX/libexec]
871  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
872  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
873  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
874  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
875  --libdir=DIR           object code libraries [EPREFIX/lib]
876  --includedir=DIR       C header files [PREFIX/include]
877  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
878  --infodir=DIR          info documentation [PREFIX/info]
879  --mandir=DIR           man documentation [PREFIX/man]
880_ACEOF
881
882  cat <<\_ACEOF
883
884Program names:
885  --program-prefix=PREFIX            prepend PREFIX to installed program names
886  --program-suffix=SUFFIX            append SUFFIX to installed program names
887  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
888
889System types:
890  --build=BUILD     configure for building on BUILD [guessed]
891_ACEOF
892fi
893
894if test -n "$ac_init_help"; then
895  case $ac_init_help in
896     short | recursive ) echo "Configuration of Ipopt 3.0.0:";;
897   esac
898  cat <<\_ACEOF
899
900Optional Features:
901  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
902  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
903  --enable-debug          compile with debug options and runtime tests
904  --disable-dependency-tracking  speeds up one-time build
905  --enable-dependency-tracking   do not reject slow dependency extractors
906  --enable-maintainer-mode  enable make rules and dependencies not useful
907                          (and sometimes confusing) to the casual installer
908
909
910Optional Packages:
911  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
912  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
913  --with-blas             specify BLAS library (or BUILD for compilation)
914  --with-hsl              specify Harwell library (or BUILD for compilation)
915  --with-pardiso          specify Pardiso library (unsupported)
916  --with-taucs            specify TAUCS library and dependencies (unsupported)
917  --with-asldir           specify absolute path to AMPL solver directory (or
918                          BUILD for compilation, or "no" for disabling AMPL)
919
920Some influential environment variables:
921  CXX         C++ compiler command
922  CXXFLAGS    C++ compiler flags
923  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
924              nonstandard directory <lib dir>
925  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
926              headers in a nonstandard directory <include dir>
927  CXXLIBS     Libraries necessary for linking C++ code with Fortran compiler
928  AR          Command for handling archives (default is `ar')
929  ARFLAGS     Flags for adding file for archive command (default is `crv')
930  AR_X        Command for extracing an archive (default is `ar x')
931  CC          C compiler command
932  CFLAGS      C compiler flags
933  F77         Fortran 77 compiler command
934  FFLAGS      Fortran 77 compiler flags
935  CXXCPP      C++ preprocessor
936  TAUCS_INCFLAGS
937              Flags for including taucs header files
938  ASLMAKEFLAGS
939              Compilation flags necessary for compiling the AMPL solver
940              library
941
942Use these variables to override the choices made by `configure' or to help
943it to find libraries and programs with nonstandard names/locations.
944
945Report bugs to <coin-ipopt@www-124.ibm.com>.
946_ACEOF
947fi
948
949if test "$ac_init_help" = "recursive"; then
950  # If there are subdirs, report their specific --help.
951  ac_popdir=`pwd`
952  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
953    test -d $ac_dir || continue
954    ac_builddir=.
955
956if test "$ac_dir" != .; then
957  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
958  # A "../" for each directory in $ac_dir_suffix.
959  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
960else
961  ac_dir_suffix= ac_top_builddir=
962fi
963
964case $srcdir in
965  .)  # No --srcdir option.  We are building in place.
966    ac_srcdir=.
967    if test -z "$ac_top_builddir"; then
968       ac_top_srcdir=.
969    else
970       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
971    fi ;;
972  [\\/]* | ?:[\\/]* )  # Absolute path.
973    ac_srcdir=$srcdir$ac_dir_suffix;
974    ac_top_srcdir=$srcdir ;;
975  *) # Relative path.
976    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
977    ac_top_srcdir=$ac_top_builddir$srcdir ;;
978esac
979
980# Do not use `cd foo && pwd` to compute absolute paths, because
981# the directories may not exist.
982case `pwd` in
983.) ac_abs_builddir="$ac_dir";;
984*)
985  case "$ac_dir" in
986  .) ac_abs_builddir=`pwd`;;
987  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
988  *) ac_abs_builddir=`pwd`/"$ac_dir";;
989  esac;;
990esac
991case $ac_abs_builddir in
992.) ac_abs_top_builddir=${ac_top_builddir}.;;
993*)
994  case ${ac_top_builddir}. in
995  .) ac_abs_top_builddir=$ac_abs_builddir;;
996  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
997  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
998  esac;;
999esac
1000case $ac_abs_builddir in
1001.) ac_abs_srcdir=$ac_srcdir;;
1002*)
1003  case $ac_srcdir in
1004  .) ac_abs_srcdir=$ac_abs_builddir;;
1005  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1006  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1007  esac;;
1008esac
1009case $ac_abs_builddir in
1010.) ac_abs_top_srcdir=$ac_top_srcdir;;
1011*)
1012  case $ac_top_srcdir in
1013  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1014  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1015  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1016  esac;;
1017esac
1018
1019    cd $ac_dir
1020    # Check for guested configure; otherwise get Cygnus style configure.
1021    if test -f $ac_srcdir/configure.gnu; then
1022      echo
1023      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1024    elif test -f $ac_srcdir/configure; then
1025      echo
1026      $SHELL $ac_srcdir/configure  --help=recursive
1027    elif test -f $ac_srcdir/configure.ac ||
1028           test -f $ac_srcdir/configure.in; then
1029      echo
1030      $ac_configure --help
1031    else
1032      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1033    fi
1034    cd $ac_popdir
1035  done
1036fi
1037
1038test -n "$ac_init_help" && exit 0
1039if $ac_init_version; then
1040  cat <<\_ACEOF
1041Ipopt configure 3.0.0
1042generated by GNU Autoconf 2.59
1043
1044Copyright (C) 2003 Free Software Foundation, Inc.
1045This configure script is free software; the Free Software Foundation
1046gives unlimited permission to copy, distribute and modify it.
1047
1048
1049Copyright 2004, 2005 International Business Machines and others.
1050All Rights Reserved.
1051This file is part of the open source package IPOPT which is distributed
1052under the Common Public License.
1053_ACEOF
1054  exit 0
1055fi
1056exec 5>config.log
1057cat >&5 <<_ACEOF
1058This file contains any messages produced by compilers while
1059running configure, to aid debugging if configure makes a mistake.
1060
1061It was created by Ipopt $as_me 3.0.0, which was
1062generated by GNU Autoconf 2.59.  Invocation command line was
1063
1064  $ $0 $@
1065
1066_ACEOF
1067{
1068cat <<_ASUNAME
1069## --------- ##
1070## Platform. ##
1071## --------- ##
1072
1073hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1074uname -m = `(uname -m) 2>/dev/null || echo unknown`
1075uname -r = `(uname -r) 2>/dev/null || echo unknown`
1076uname -s = `(uname -s) 2>/dev/null || echo unknown`
1077uname -v = `(uname -v) 2>/dev/null || echo unknown`
1078
1079/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1080/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1081
1082/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1083/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1084/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1085hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1086/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1087/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1088/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1089
1090_ASUNAME
1091
1092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1093for as_dir in $PATH
1094do
1095  IFS=$as_save_IFS
1096  test -z "$as_dir" && as_dir=.
1097  echo "PATH: $as_dir"
1098done
1099
1100} >&5
1101
1102cat >&5 <<_ACEOF
1103
1104
1105## ----------- ##
1106## Core tests. ##
1107## ----------- ##
1108
1109_ACEOF
1110
1111
1112# Keep a trace of the command line.
1113# Strip out --no-create and --no-recursion so they do not pile up.
1114# Strip out --silent because we don't want to record it for future runs.
1115# Also quote any args containing shell meta-characters.
1116# Make two passes to allow for proper duplicate-argument suppression.
1117ac_configure_args=
1118ac_configure_args0=
1119ac_configure_args1=
1120ac_sep=
1121ac_must_keep_next=false
1122for ac_pass in 1 2
1123do
1124  for ac_arg
1125  do
1126    case $ac_arg in
1127    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1128    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129    | -silent | --silent | --silen | --sile | --sil)
1130      continue ;;
1131    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1132      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1133    esac
1134    case $ac_pass in
1135    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1136    2)
1137      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1138      if test $ac_must_keep_next = true; then
1139        ac_must_keep_next=false # Got value, back to normal.
1140      else
1141        case $ac_arg in
1142          *=* | --config-cache | -C | -disable-* | --disable-* \
1143          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1144          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1145          | -with-* | --with-* | -without-* | --without-* | --x)
1146            case "$ac_configure_args0 " in
1147              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1148            esac
1149            ;;
1150          -* ) ac_must_keep_next=true ;;
1151        esac
1152      fi
1153      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1154      # Get rid of the leading space.
1155      ac_sep=" "
1156      ;;
1157    esac
1158  done
1159done
1160$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1161$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1162
1163# When interrupted or exit'd, cleanup temporary files, and complete
1164# config.log.  We remove comments because anyway the quotes in there
1165# would cause problems or look ugly.
1166# WARNING: Be sure not to use single quotes in there, as some shells,
1167# such as our DU 5.0 friend, will then `close' the trap.
1168trap 'exit_status=$?
1169  # Save into config.log some information that might help in debugging.
1170  {
1171    echo
1172
1173    cat <<\_ASBOX
1174## ---------------- ##
1175## Cache variables. ##
1176## ---------------- ##
1177_ASBOX
1178    echo
1179    # The following way of writing the cache mishandles newlines in values,
1180{
1181  (set) 2>&1 |
1182    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1183    *ac_space=\ *)
1184      sed -n \
1185        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1186          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1187      ;;
1188    *)
1189      sed -n \
1190        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1191      ;;
1192    esac;
1193}
1194    echo
1195
1196    cat <<\_ASBOX
1197## ----------------- ##
1198## Output variables. ##
1199## ----------------- ##
1200_ASBOX
1201    echo
1202    for ac_var in $ac_subst_vars
1203    do
1204      eval ac_val=$`echo $ac_var`
1205      echo "$ac_var='"'"'$ac_val'"'"'"
1206    done | sort
1207    echo
1208
1209    if test -n "$ac_subst_files"; then
1210      cat <<\_ASBOX
1211## ------------- ##
1212## Output files. ##
1213## ------------- ##
1214_ASBOX
1215      echo
1216      for ac_var in $ac_subst_files
1217      do
1218        eval ac_val=$`echo $ac_var`
1219        echo "$ac_var='"'"'$ac_val'"'"'"
1220      done | sort
1221      echo
1222    fi
1223
1224    if test -s confdefs.h; then
1225      cat <<\_ASBOX
1226## ----------- ##
1227## confdefs.h. ##
1228## ----------- ##
1229_ASBOX
1230      echo
1231      sed "/^$/d" confdefs.h | sort
1232      echo
1233    fi
1234    test "$ac_signal" != 0 &&
1235      echo "$as_me: caught signal $ac_signal"
1236    echo "$as_me: exit $exit_status"
1237  } >&5
1238  rm -f core *.core &&
1239  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1240    exit $exit_status
1241     ' 0
1242for ac_signal in 1 2 13 15; do
1243  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1244done
1245ac_signal=0
1246
1247# confdefs.h avoids OS command line length limits that DEFS can exceed.
1248rm -rf conftest* confdefs.h
1249# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250echo >confdefs.h
1251
1252# Predefined preprocessor variables.
1253
1254cat >>confdefs.h <<_ACEOF
1255#define PACKAGE_NAME "$PACKAGE_NAME"
1256_ACEOF
1257
1258
1259cat >>confdefs.h <<_ACEOF
1260#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1261_ACEOF
1262
1263
1264cat >>confdefs.h <<_ACEOF
1265#define PACKAGE_VERSION "$PACKAGE_VERSION"
1266_ACEOF
1267
1268
1269cat >>confdefs.h <<_ACEOF
1270#define PACKAGE_STRING "$PACKAGE_STRING"
1271_ACEOF
1272
1273
1274cat >>confdefs.h <<_ACEOF
1275#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1276_ACEOF
1277
1278
1279# Let the site file select an alternate cache file if it wants to.
1280# Prefer explicitly selected file to automatically selected ones.
1281if test -z "$CONFIG_SITE"; then
1282  if test "x$prefix" != xNONE; then
1283    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1284  else
1285    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1286  fi
1287fi
1288for ac_site_file in $CONFIG_SITE; do
1289  if test -r "$ac_site_file"; then
1290    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1291echo "$as_me: loading site script $ac_site_file" >&6;}
1292    sed 's/^/| /' "$ac_site_file" >&5
1293    . "$ac_site_file"
1294  fi
1295done
1296
1297if test -r "$cache_file"; then
1298  # Some versions of bash will fail to source /dev/null (special
1299  # files actually), so we avoid doing that.
1300  if test -f "$cache_file"; then
1301    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1302echo "$as_me: loading cache $cache_file" >&6;}
1303    case $cache_file in
1304      [\\/]* | ?:[\\/]* ) . $cache_file;;
1305      *)                      . ./$cache_file;;
1306    esac
1307  fi
1308else
1309  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1310echo "$as_me: creating cache $cache_file" >&6;}
1311  >$cache_file
1312fi
1313
1314# Check that the precious variables saved in the cache have kept the same
1315# value.
1316ac_cache_corrupted=false
1317for ac_var in `(set) 2>&1 |
1318               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1319  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1320  eval ac_new_set=\$ac_env_${ac_var}_set
1321  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1322  eval ac_new_val="\$ac_env_${ac_var}_value"
1323  case $ac_old_set,$ac_new_set in
1324    set,)
1325      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1326echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1327      ac_cache_corrupted=: ;;
1328    ,set)
1329      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1330echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1331      ac_cache_corrupted=: ;;
1332    ,);;
1333    *)
1334      if test "x$ac_old_val" != "x$ac_new_val"; then
1335        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1336echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1337        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1338echo "$as_me:   former value:  $ac_old_val" >&2;}
1339        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1340echo "$as_me:   current value: $ac_new_val" >&2;}
1341        ac_cache_corrupted=:
1342      fi;;
1343  esac
1344  # Pass precious variables to config.status.
1345  if test "$ac_new_set" = set; then
1346    case $ac_new_val in
1347    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1348      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1349    *) ac_arg=$ac_var=$ac_new_val ;;
1350    esac
1351    case " $ac_configure_args " in
1352      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1353      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1354    esac
1355  fi
1356done
1357if $ac_cache_corrupted; then
1358  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1359echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1360  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1361echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1362   { (exit 1); exit 1; }; }
1363fi
1364
1365ac_ext=c
1366ac_cpp='$CPP $CPPFLAGS'
1367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1369ac_compiler_gnu=$ac_cv_c_compiler_gnu
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404# Get the system type
1405ac_aux_dir=
1406for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1407  if test -f $ac_dir/install-sh; then
1408    ac_aux_dir=$ac_dir
1409    ac_install_sh="$ac_aux_dir/install-sh -c"
1410    break
1411  elif test -f $ac_dir/install.sh; then
1412    ac_aux_dir=$ac_dir
1413    ac_install_sh="$ac_aux_dir/install.sh -c"
1414    break
1415  elif test -f $ac_dir/shtool; then
1416    ac_aux_dir=$ac_dir
1417    ac_install_sh="$ac_aux_dir/shtool install -c"
1418    break
1419  fi
1420done
1421if test -z "$ac_aux_dir"; then
1422  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1423echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1424   { (exit 1); exit 1; }; }
1425fi
1426ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1427ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1428ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1429
1430# Make sure we can run config.sub.
1431$ac_config_sub sun4 >/dev/null 2>&1 ||
1432  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1433echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1434   { (exit 1); exit 1; }; }
1435
1436echo "$as_me:$LINENO: checking build system type" >&5
1437echo $ECHO_N "checking build system type... $ECHO_C" >&6
1438if test "${ac_cv_build+set}" = set; then
1439  echo $ECHO_N "(cached) $ECHO_C" >&6
1440else
1441  ac_cv_build_alias=$build_alias
1442test -z "$ac_cv_build_alias" &&
1443  ac_cv_build_alias=`$ac_config_guess`
1444test -z "$ac_cv_build_alias" &&
1445  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1446echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1447   { (exit 1); exit 1; }; }
1448ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1449  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1450echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1451   { (exit 1); exit 1; }; }
1452
1453fi
1454echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1455echo "${ECHO_T}$ac_cv_build" >&6
1456build=$ac_cv_build
1457build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460
1461
1462
1463# Check if user wants to produce debugging code
1464# Check whether --enable-debug or --disable-debug was given.
1465if test "${enable_debug+set}" = set; then
1466  enableval="$enable_debug"
1467  case "${enableval}" in
1468    yes) debugcompile=true
1469
1470cat >>confdefs.h <<\_ACEOF
1471#define IP_DEBUG 1
1472_ACEOF
1473
1474         ;;
1475    no)  debugcompile=false ;;
1476    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1477echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1478   { (exit 1); exit 1; }; } ;;
1479  esac
1480else
1481  debugcompile=false
1482fi;
1483
1484########################
1485# C++ Compiler Options #
1486########################
1487
1488ac_ext=cc
1489ac_cpp='$CXXCPP $CPPFLAGS'
1490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1493
1494SAVE_CXXFLAGS="$CXXFLAGS"
1495case $build in
1496  *-cygwin) comps="g++" ;;
1497  *)        comps="xlC aCC CC g++ c++ icpc" ;;
1498esac
1499ac_ext=cc
1500ac_cpp='$CXXCPP $CPPFLAGS'
1501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504if test -n "$ac_tool_prefix"; then
1505  for ac_prog in $CCC $comps
1506  do
1507    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1509echo "$as_me:$LINENO: checking for $ac_word" >&5
1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511if test "${ac_cv_prog_CXX+set}" = set; then
1512  echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514  if test -n "$CXX"; then
1515  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1516else
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520  IFS=$as_save_IFS
1521  test -z "$as_dir" && as_dir=.
1522  for ac_exec_ext in '' $ac_executable_extensions; do
1523  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526    break 2
1527  fi
1528done
1529done
1530
1531fi
1532fi
1533CXX=$ac_cv_prog_CXX
1534if test -n "$CXX"; then
1535  echo "$as_me:$LINENO: result: $CXX" >&5
1536echo "${ECHO_T}$CXX" >&6
1537else
1538  echo "$as_me:$LINENO: result: no" >&5
1539echo "${ECHO_T}no" >&6
1540fi
1541
1542    test -n "$CXX" && break
1543  done
1544fi
1545if test -z "$CXX"; then
1546  ac_ct_CXX=$CXX
1547  for ac_prog in $CCC $comps
1548do
1549  # Extract the first word of "$ac_prog", so it can be a program name with args.
1550set dummy $ac_prog; ac_word=$2
1551echo "$as_me:$LINENO: checking for $ac_word" >&5
1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1554  echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556  if test -n "$ac_ct_CXX"; then
1557  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1558else
1559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560for as_dir in $PATH
1561do
1562  IFS=$as_save_IFS
1563  test -z "$as_dir" && as_dir=.
1564  for ac_exec_ext in '' $ac_executable_extensions; do
1565  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566    ac_cv_prog_ac_ct_CXX="$ac_prog"
1567    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568    break 2
1569  fi
1570done
1571done
1572
1573fi
1574fi
1575ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1576if test -n "$ac_ct_CXX"; then
1577  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1578echo "${ECHO_T}$ac_ct_CXX" >&6
1579else
1580  echo "$as_me:$LINENO: result: no" >&5
1581echo "${ECHO_T}no" >&6
1582fi
1583
1584  test -n "$ac_ct_CXX" && break
1585done
1586test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1587
1588  CXX=$ac_ct_CXX
1589fi
1590
1591
1592# Provide some information about the compiler.
1593echo "$as_me:$LINENO:" \
1594     "checking for C++ compiler version" >&5
1595ac_compiler=`set X $ac_compile; echo $2`
1596{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1597  (eval $ac_compiler --version </dev/null >&5) 2>&5
1598  ac_status=$?
1599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1600  (exit $ac_status); }
1601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1602  (eval $ac_compiler -v </dev/null >&5) 2>&5
1603  ac_status=$?
1604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1605  (exit $ac_status); }
1606{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1607  (eval $ac_compiler -V </dev/null >&5) 2>&5
1608  ac_status=$?
1609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1610  (exit $ac_status); }
1611
1612cat >conftest.$ac_ext <<_ACEOF
1613/* confdefs.h.  */
1614_ACEOF
1615cat confdefs.h >>conftest.$ac_ext
1616cat >>conftest.$ac_ext <<_ACEOF
1617/* end confdefs.h.  */
1618
1619int
1620main ()
1621{
1622
1623  ;
1624  return 0;
1625}
1626_ACEOF
1627ac_clean_files_save=$ac_clean_files
1628ac_clean_files="$ac_clean_files a.out a.exe b.out"
1629# Try to create an executable without -o first, disregard a.out.
1630# It will help us diagnose broken compilers, and finding out an intuition
1631# of exeext.
1632echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1633echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1634ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1635if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1636  (eval $ac_link_default) 2>&5
1637  ac_status=$?
1638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1639  (exit $ac_status); }; then
1640  # Find the output, starting from the most likely.  This scheme is
1641# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1642# resort.
1643
1644# Be careful to initialize this variable, since it used to be cached.
1645# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1646ac_cv_exeext=
1647# b.out is created by i960 compilers.
1648for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1649do
1650  test -f "$ac_file" || continue
1651  case $ac_file in
1652    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1653        ;;
1654    conftest.$ac_ext )
1655        # This is the source file.
1656        ;;
1657    [ab].out )
1658        # We found the default executable, but exeext='' is most
1659        # certainly right.
1660        break;;
1661    *.* )
1662        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1663        # FIXME: I believe we export ac_cv_exeext for Libtool,
1664        # but it would be cool to find out if it's true.  Does anybody
1665        # maintain Libtool? --akim.
1666        export ac_cv_exeext
1667        break;;
1668    * )
1669        break;;
1670  esac
1671done
1672else
1673  echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1677See \`config.log' for more details." >&5
1678echo "$as_me: error: C++ compiler cannot create executables
1679See \`config.log' for more details." >&2;}
1680   { (exit 77); exit 77; }; }
1681fi
1682
1683ac_exeext=$ac_cv_exeext
1684echo "$as_me:$LINENO: result: $ac_file" >&5
1685echo "${ECHO_T}$ac_file" >&6
1686
1687# Check the compiler produces executables we can run.  If not, either
1688# the compiler is broken, or we cross compile.
1689echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1690echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1691# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1692# If not cross compiling, check that we can run a simple program.
1693if test "$cross_compiling" != yes; then
1694  if { ac_try='./$ac_file'
1695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1696  (eval $ac_try) 2>&5
1697  ac_status=$?
1698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699  (exit $ac_status); }; }; then
1700    cross_compiling=no
1701  else
1702    if test "$cross_compiling" = maybe; then
1703        cross_compiling=yes
1704    else
1705        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1706If you meant to cross compile, use \`--host'.
1707See \`config.log' for more details." >&5
1708echo "$as_me: error: cannot run C++ compiled programs.
1709If you meant to cross compile, use \`--host'.
1710See \`config.log' for more details." >&2;}
1711   { (exit 1); exit 1; }; }
1712    fi
1713  fi
1714fi
1715echo "$as_me:$LINENO: result: yes" >&5
1716echo "${ECHO_T}yes" >&6
1717
1718rm -f a.out a.exe conftest$ac_cv_exeext b.out
1719ac_clean_files=$ac_clean_files_save
1720# Check the compiler produces executables we can run.  If not, either
1721# the compiler is broken, or we cross compile.
1722echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1723echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1724echo "$as_me:$LINENO: result: $cross_compiling" >&5
1725echo "${ECHO_T}$cross_compiling" >&6
1726
1727echo "$as_me:$LINENO: checking for suffix of executables" >&5
1728echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1730  (eval $ac_link) 2>&5
1731  ac_status=$?
1732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733  (exit $ac_status); }; then
1734  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1735# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1736# work properly (i.e., refer to `conftest.exe'), while it won't with
1737# `rm'.
1738for ac_file in conftest.exe conftest conftest.*; do
1739  test -f "$ac_file" || continue
1740  case $ac_file in
1741    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1742    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1743          export ac_cv_exeext
1744          break;;
1745    * ) break;;
1746  esac
1747done
1748else
1749  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1750See \`config.log' for more details." >&5
1751echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1752See \`config.log' for more details." >&2;}
1753   { (exit 1); exit 1; }; }
1754fi
1755
1756rm -f conftest$ac_cv_exeext
1757echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1758echo "${ECHO_T}$ac_cv_exeext" >&6
1759
1760rm -f conftest.$ac_ext
1761EXEEXT=$ac_cv_exeext
1762ac_exeext=$EXEEXT
1763echo "$as_me:$LINENO: checking for suffix of object files" >&5
1764echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1765if test "${ac_cv_objext+set}" = set; then
1766  echo $ECHO_N "(cached) $ECHO_C" >&6
1767else
1768  cat >conftest.$ac_ext <<_ACEOF
1769/* confdefs.h.  */
1770_ACEOF
1771cat confdefs.h >>conftest.$ac_ext
1772cat >>conftest.$ac_ext <<_ACEOF
1773/* end confdefs.h.  */
1774
1775int
1776main ()
1777{
1778
1779  ;
1780  return 0;
1781}
1782_ACEOF
1783rm -f conftest.o conftest.obj
1784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1785  (eval $ac_compile) 2>&5
1786  ac_status=$?
1787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788  (exit $ac_status); }; then
1789  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1790  case $ac_file in
1791    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1792    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1793       break;;
1794  esac
1795done
1796else
1797  echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1801See \`config.log' for more details." >&5
1802echo "$as_me: error: cannot compute suffix of object files: cannot compile
1803See \`config.log' for more details." >&2;}
1804   { (exit 1); exit 1; }; }
1805fi
1806
1807rm -f conftest.$ac_cv_objext conftest.$ac_ext
1808fi
1809echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1810echo "${ECHO_T}$ac_cv_objext" >&6
1811OBJEXT=$ac_cv_objext
1812ac_objext=$OBJEXT
1813echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1814echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1815if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1816  echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818  cat >conftest.$ac_ext <<_ACEOF
1819/* confdefs.h.  */
1820_ACEOF
1821cat confdefs.h >>conftest.$ac_ext
1822cat >>conftest.$ac_ext <<_ACEOF
1823/* end confdefs.h.  */
1824
1825int
1826main ()
1827{
1828#ifndef __GNUC__
1829       choke me
1830#endif
1831
1832  ;
1833  return 0;
1834}
1835_ACEOF
1836rm -f conftest.$ac_objext
1837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1838  (eval $ac_compile) 2>conftest.er1
1839  ac_status=$?
1840  grep -v '^ *+' conftest.er1 >conftest.err
1841  rm -f conftest.er1
1842  cat conftest.err >&5
1843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844  (exit $ac_status); } &&
1845         { ac_try='test -z "$ac_cxx_werror_flag"
1846                         || test ! -s conftest.err'
1847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848  (eval $ac_try) 2>&5
1849  ac_status=$?
1850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851  (exit $ac_status); }; } &&
1852         { ac_try='test -s conftest.$ac_objext'
1853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854  (eval $ac_try) 2>&5
1855  ac_status=$?
1856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857  (exit $ac_status); }; }; then
1858  ac_compiler_gnu=yes
1859else
1860  echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863ac_compiler_gnu=no
1864fi
1865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1866ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1867
1868fi
1869echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1870echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1871GXX=`test $ac_compiler_gnu = yes && echo yes`
1872ac_test_CXXFLAGS=${CXXFLAGS+set}
1873ac_save_CXXFLAGS=$CXXFLAGS
1874CXXFLAGS="-g"
1875echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1876echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1877if test "${ac_cv_prog_cxx_g+set}" = set; then
1878  echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880  cat >conftest.$ac_ext <<_ACEOF
1881/* confdefs.h.  */
1882_ACEOF
1883cat confdefs.h >>conftest.$ac_ext
1884cat >>conftest.$ac_ext <<_ACEOF
1885/* end confdefs.h.  */
1886
1887int
1888main ()
1889{
1890
1891  ;
1892  return 0;
1893}
1894_ACEOF
1895rm -f conftest.$ac_objext
1896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1897  (eval $ac_compile) 2>conftest.er1
1898  ac_status=$?
1899  grep -v '^ *+' conftest.er1 >conftest.err
1900  rm -f conftest.er1
1901  cat conftest.err >&5
1902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903  (exit $ac_status); } &&
1904         { ac_try='test -z "$ac_cxx_werror_flag"
1905                         || test ! -s conftest.err'
1906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1907  (eval $ac_try) 2>&5
1908  ac_status=$?
1909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910  (exit $ac_status); }; } &&
1911         { ac_try='test -s conftest.$ac_objext'
1912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1913  (eval $ac_try) 2>&5
1914  ac_status=$?
1915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916  (exit $ac_status); }; }; then
1917  ac_cv_prog_cxx_g=yes
1918else
1919  echo "$as_me: failed program was:" >&5
1920sed 's/^/| /' conftest.$ac_ext >&5
1921
1922ac_cv_prog_cxx_g=no
1923fi
1924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1925fi
1926echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1927echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1928if test "$ac_test_CXXFLAGS" = set; then
1929  CXXFLAGS=$ac_save_CXXFLAGS
1930elif test $ac_cv_prog_cxx_g = yes; then
1931  if test "$GXX" = yes; then
1932    CXXFLAGS="-g -O2"
1933  else
1934    CXXFLAGS="-g"
1935  fi
1936else
1937  if test "$GXX" = yes; then
1938    CXXFLAGS="-O2"
1939  else
1940    CXXFLAGS=
1941  fi
1942fi
1943for ac_declaration in \
1944   '' \
1945   'extern "C" void std::exit (int) throw (); using std::exit;' \
1946   'extern "C" void std::exit (int); using std::exit;' \
1947   'extern "C" void exit (int) throw ();' \
1948   'extern "C" void exit (int);' \
1949   'void exit (int);'
1950do
1951  cat >conftest.$ac_ext <<_ACEOF
1952/* confdefs.h.  */
1953_ACEOF
1954cat confdefs.h >>conftest.$ac_ext
1955cat >>conftest.$ac_ext <<_ACEOF
1956/* end confdefs.h.  */
1957$ac_declaration
1958#include <stdlib.h>
1959int
1960main ()
1961{
1962exit (42);
1963  ;
1964  return 0;
1965}
1966_ACEOF
1967rm -f conftest.$ac_objext
1968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1969  (eval $ac_compile) 2>conftest.er1
1970  ac_status=$?
1971  grep -v '^ *+' conftest.er1 >conftest.err
1972  rm -f conftest.er1
1973  cat conftest.err >&5
1974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975  (exit $ac_status); } &&
1976         { ac_try='test -z "$ac_cxx_werror_flag"
1977                         || test ! -s conftest.err'
1978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979  (eval $ac_try) 2>&5
1980  ac_status=$?
1981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982  (exit $ac_status); }; } &&
1983         { ac_try='test -s conftest.$ac_objext'
1984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985  (eval $ac_try) 2>&5
1986  ac_status=$?
1987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988  (exit $ac_status); }; }; then
1989  :
1990else
1991  echo "$as_me: failed program was:" >&5
1992sed 's/^/| /' conftest.$ac_ext >&5
1993
1994continue
1995fi
1996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1997  cat >conftest.$ac_ext <<_ACEOF
1998/* confdefs.h.  */
1999_ACEOF
2000cat confdefs.h >>conftest.$ac_ext
2001cat >>conftest.$ac_ext <<_ACEOF
2002/* end confdefs.h.  */
2003$ac_declaration
2004int
2005main ()
2006{
2007exit (42);
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012rm -f conftest.$ac_objext
2013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014  (eval $ac_compile) 2>conftest.er1
2015  ac_status=$?
2016  grep -v '^ *+' conftest.er1 >conftest.err
2017  rm -f conftest.er1
2018  cat conftest.err >&5
2019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020  (exit $ac_status); } &&
2021         { ac_try='test -z "$ac_cxx_werror_flag"
2022                         || test ! -s conftest.err'
2023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024  (eval $ac_try) 2>&5
2025  ac_status=$?
2026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027  (exit $ac_status); }; } &&
2028         { ac_try='test -s conftest.$ac_objext'
2029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030  (eval $ac_try) 2>&5
2031  ac_status=$?
2032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033  (exit $ac_status); }; }; then
2034  break
2035else
2036  echo "$as_me: failed program was:" >&5
2037sed 's/^/| /' conftest.$ac_ext >&5
2038
2039fi
2040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2041done
2042rm -f conftest*
2043if test -n "$ac_declaration"; then
2044  echo '#ifdef __cplusplus' >>confdefs.h
2045  echo $ac_declaration      >>confdefs.h
2046  echo '#endif'             >>confdefs.h
2047fi
2048
2049ac_ext=cc
2050ac_cpp='$CXXCPP $CPPFLAGS'
2051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2054
2055CXXFLAGS="$SAVE_CXXFLAGS"
2056
2057warn_cxxflags=
2058
2059if test -z "$CXXFLAGS"; then
2060  add_cxxflags=
2061  opt_cxxflags=
2062  dbg_cxxflags=
2063
2064  if test "$GXX" = "yes"; then
2065    case "$CXX" in
2066      icpc | */icpc) ;;
2067      *)
2068# ToDo decide about unroll-loops
2069        opt_cxxflags="-O3"
2070#        case $build in
2071#          x86_64-* | i686-* | i586-* )
2072#            # Check for enabling special instructions
2073#            myflags=`grep flags /proc/cpuinfo | tail -1 | cut -d: -f2-`
2074#            have_sse=no
2075#            for i in $myflags; do
2076#              case $i in
2077#                sse3) CXXFLAGS="-mfpmath=sse -msse3"
2078#                     AC_MSG_CHECKING([whether flag \"$CXXFLAGS\" works])
2079#                     AC_TRY_LINK([#include <cmath>],[double s = sin(1.0);],
2080#                       [AC_MSG_RESULT([yes])
2081#                         opt_cxxflags="$opt_cxxflags $CXXFLAGS"],
2082#                        [AC_MSG_RESULT([no])])
2083#                     have_sse=yes;
2084#                     CXXFLAGS=
2085#                     ;;
2086#                sse2)
2087#                     CXXFLAGS="-mfpmath=sse -msse2"
2088#                     AC_MSG_CHECKING([whether flag \"$CXXFLAGS\" works])
2089#                     AC_TRY_LINK([#include <cmath>],[double s = sin(1.0);],
2090#                       [AC_MSG_RESULT([yes])
2091#                         if test $have_sse = no; then
2092#                           opt_cxxflags="$opt_cxxflags $CXXFLAGS"
2093#                        else
2094#                          opt_cxxflags="$opt_cxxflags -msse2"
2095#                         fi],
2096#                        [AC_MSG_RESULT([no])])
2097#                     have_sse=yes;
2098#                     CXXFLAGS=
2099#                     ;;
2100#                sse)
2101#                     CXXFLAGS="-mfpmath=sse -msse"
2102#                     AC_MSG_CHECKING([whether flag \"$CXXFLAGS\" works])
2103#                     AC_TRY_LINK([#include <cmath>],[double s = sin(1.0);],
2104#                       [AC_MSG_RESULT([yes])
2105#                         if test $have_sse = no; then
2106#                           opt_cxxflags="$opt_cxxflags $CXXFLAGS"
2107#                        else
2108#                          opt_cxxflags="$opt_cxxflags -msse"
2109#                         fi],
2110#                        [AC_MSG_RESULT([no])])
2111#                     have_sse=yes;
2112#                     CXXFLAGS=
2113#                     ;;
2114#                mmx) CXXFLAGS="-mmmx"
2115#                     AC_MSG_CHECKING([whether flag \"$CXXFLAGS\" works])
2116#                     AC_TRY_LINK([#include <cmath>],[double s = sin(1.0);],
2117#                       [AC_MSG_RESULT([yes])
2118#                         opt_cxxflags="$opt_cxxflags $CXXFLAGS"],
2119#                        [AC_MSG_RESULT([no])])
2120#                     CXXFLAGS= ;;
2121#                3dnow) CXXFLAGS="-m3dnow"
2122#                     AC_MSG_CHECKING([whether flag \"$CXXFLAGS\" works])
2123#                     AC_TRY_LINK([#include <cmath>],[double s = sin(1.0);],
2124#                       [AC_MSG_RESULT([yes])
2125#                         opt_cxxflags="$opt_cxxflags $CXXFLAGS"],
2126#                        [AC_MSG_RESULT([no])])
2127#                     CXXFLAGS= ;;
2128#              esac
2129#            done
2130#          ;;
2131#        esac
2132        add_cxxflags="-pipe"
2133        dbg_cxxflags="-g"
2134        warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Werror -Wconversion"
2135        case $build in
2136          *-cygwin*) echo "$as_me:$LINENO: checking whether flag \" -mno-cygwin\" works" >&5
2137echo $ECHO_N "checking whether flag \" -mno-cygwin\" works... $ECHO_C" >&6
2138                    CXXFLAGS="-mno-cygwin"
2139
2140cat >conftest.$ac_ext <<_ACEOF
2141/* confdefs.h.  */
2142_ACEOF
2143cat confdefs.h >>conftest.$ac_ext
2144cat >>conftest.$ac_ext <<_ACEOF
2145/* end confdefs.h.  */
2146
2147int
2148main ()
2149{
2150int i=0; i++;
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155rm -f conftest.$ac_objext conftest$ac_exeext
2156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2157  (eval $ac_link) 2>conftest.er1
2158  ac_status=$?
2159  grep -v '^ *+' conftest.er1 >conftest.err
2160  rm -f conftest.er1
2161  cat conftest.err >&5
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); } &&
2164         { ac_try='test -z "$ac_cxx_werror_flag"
2165                         || test ! -s conftest.err'
2166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167  (eval $ac_try) 2>&5
2168  ac_status=$?
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); }; } &&
2171         { ac_try='test -s conftest$ac_exeext'
2172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173  (eval $ac_try) 2>&5
2174  ac_status=$?
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); }; }; then
2177  echo "$as_me:$LINENO: result: yes" >&5
2178echo "${ECHO_T}yes" >&6; add_cxxflags="-mno-cygwin $add_cxxflags"; use_mingw=yes
2179else
2180  echo "$as_me: failed program was:" >&5
2181sed 's/^/| /' conftest.$ac_ext >&5
2182
2183echo "$as_me:$LINENO: result: no" >&5
2184echo "${ECHO_T}no" >&6
2185fi
2186rm -f conftest.err conftest.$ac_objext \
2187      conftest$ac_exeext conftest.$ac_ext
2188                    CXXFLAGS= ;;
2189        esac ;;
2190    esac
2191  fi
2192  if test -z "$opt_cxxflags"; then
2193    case $build in
2194     *-cygwin*)
2195      case "$CXX" in
2196      cl | */cl)
2197             opt_cxxflags="-Ot1"
2198             add_cxxflags="-nologo -EHsc -GR"
2199             dbg_cxxflags="-Yd";;
2200      esac;;
2201     *-linux-*)
2202      case "$CXX" in
2203      icpc | */icpc)
2204#             AC_MSG_CHECKING([whether flag \"-fast\" works])
2205#               CXXFLAGS="-fast"
2206#               AC_TRY_RUN(,[int i=0; i++;],
2207#                               [AC_MSG_RESULT([yes]); opt_cxxflags="-fast"],
2208#                               [AC_MSG_RESULT([no]); opt_cxxflags="-O3 -ip -static"])
2209#               CXXFLAGS=
2210             opt_cxxflags="-O3 -ip"
2211             add_cxxflags="-mp -pc64"
2212             dbg_cxxflags="-g"
2213             # Check if -i_dynamic is necessary (for new glibc library)
2214             echo "$as_me:$LINENO: checking whether flag \"-i_dynamic\" is needed" >&5
2215echo $ECHO_N "checking whether flag \"-i_dynamic\" is needed... $ECHO_C" >&6
2216             CXXFLAGS=
2217             cat >conftest.$ac_ext <<_ACEOF
2218/* confdefs.h.  */
2219_ACEOF
2220cat confdefs.h >>conftest.$ac_ext
2221cat >>conftest.$ac_ext <<_ACEOF
2222/* end confdefs.h.  */
2223
2224int
2225main ()
2226{
2227int i=0; i++;
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232rm -f conftest.$ac_objext conftest$ac_exeext
2233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2234  (eval $ac_link) 2>conftest.er1
2235  ac_status=$?
2236  grep -v '^ *+' conftest.er1 >conftest.err
2237  rm -f conftest.er1
2238  cat conftest.err >&5
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); } &&
2241         { ac_try='test -z "$ac_cxx_werror_flag"
2242                         || test ! -s conftest.err'
2243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244  (eval $ac_try) 2>&5
2245  ac_status=$?
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); }; } &&
2248         { ac_try='test -s conftest$ac_exeext'
2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250  (eval $ac_try) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; }; then
2254  echo "$as_me:$LINENO: result: apparently not" >&5
2255echo "${ECHO_T}apparently not" >&6
2256else
2257  echo "$as_me: failed program was:" >&5
2258sed 's/^/| /' conftest.$ac_ext >&5
2259
2260echo "$as_me:$LINENO: result: seems so" >&5
2261echo "${ECHO_T}seems so" >&6;
2262                               add_cxxflags="-i_dynamic $add_cxxflags"
2263fi
2264rm -f conftest.err conftest.$ac_objext \
2265      conftest$ac_exeext conftest.$ac_ext
2266             ;;
2267      esac;;
2268    *-ibm-*)
2269      case "$CXX" in
2270      xlC* | */xlC* | mpxlC* | */mpxlC*)
2271             opt_cxxflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
2272             add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
2273             dbg_cxxflags="-g";;
2274      esac;;
2275    *-hp-*)
2276      case "$CXX" in
2277      aCC | */aCC )
2278             opt_cxxflags="-O"
2279             add_cxxflags="-AA"
2280             dbg_cxxflags="-g";;
2281      esac;;
2282    *-sun-*)
2283             opt_cxxflags="-O4 -xtarget=native"
2284             dbg_cxxflags="-g";;
2285    esac
2286  fi
2287
2288  if test "$ac_cv_prog_cxx_g" = yes && test -z "$dbg_cxxflags" ; then
2289    dbg_cxxflags="-g"
2290  fi
2291
2292  if test "$debugcompile" = "true"; then
2293    CXXFLAGS="$dbg_cxxflags $add_cxxflags"
2294  else
2295    if test -z "$opt_cxxflags"; then
2296# Try if -O option works if nothing else is set
2297      CXXFLAGS="-O"
2298      cat >conftest.$ac_ext <<_ACEOF
2299/* confdefs.h.  */
2300_ACEOF
2301cat confdefs.h >>conftest.$ac_ext
2302cat >>conftest.$ac_ext <<_ACEOF
2303/* end confdefs.h.  */
2304
2305int
2306main ()
2307{
2308int i=0; i++;
2309  ;
2310  return 0;
2311}
2312_ACEOF
2313rm -f conftest.$ac_objext conftest$ac_exeext
2314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2315  (eval $ac_link) 2>conftest.er1
2316  ac_status=$?
2317  grep -v '^ *+' conftest.er1 >conftest.err
2318  rm -f conftest.er1
2319  cat conftest.err >&5
2320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321  (exit $ac_status); } &&
2322         { ac_try='test -z "$ac_cxx_werror_flag"
2323                         || test ! -s conftest.err'
2324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325  (eval $ac_try) 2>&5
2326  ac_status=$?
2327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328  (exit $ac_status); }; } &&
2329         { ac_try='test -s conftest$ac_exeext'
2330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331  (eval $ac_try) 2>&5
2332  ac_status=$?
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); }; }; then
2335  opt_cxxflags="-O"
2336else
2337  echo "$as_me: failed program was:" >&5
2338sed 's/^/| /' conftest.$ac_ext >&5
2339
2340fi
2341rm -f conftest.err conftest.$ac_objext \
2342      conftest$ac_exeext conftest.$ac_ext
2343    fi
2344    CXXFLAGS="$opt_cxxflags $add_cxxflags"
2345  fi
2346fi
2347
2348# Try if CXXFLAGS works
2349echo "$as_me:$LINENO: checking whether CXXFLAGS=\"$CXXFLAGS\" works" >&5
2350echo $ECHO_N "checking whether CXXFLAGS=\"$CXXFLAGS\" works... $ECHO_C" >&6
2351cat >conftest.$ac_ext <<_ACEOF
2352/* confdefs.h.  */
2353_ACEOF
2354cat confdefs.h >>conftest.$ac_ext
2355cat >>conftest.$ac_ext <<_ACEOF
2356/* end confdefs.h.  */
2357
2358int
2359main ()
2360{
2361int i=0; i++;
2362  ;
2363  return 0;
2364}
2365_ACEOF
2366rm -f conftest.$ac_objext conftest$ac_exeext
2367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2368  (eval $ac_link) 2>conftest.er1
2369  ac_status=$?
2370  grep -v '^ *+' conftest.er1 >conftest.err
2371  rm -f conftest.er1
2372  cat conftest.err >&5
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); } &&
2375         { ac_try='test -z "$ac_cxx_werror_flag"
2376                         || test ! -s conftest.err'
2377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378  (eval $ac_try) 2>&5
2379  ac_status=$?
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); }; } &&
2382         { ac_try='test -s conftest$ac_exeext'
2383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384  (eval $ac_try) 2>&5
2385  ac_status=$?
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); }; }; then
2388  :
2389else
2390  echo "$as_me: failed program was:" >&5
2391sed 's/^/| /' conftest.$ac_ext >&5
2392
2393CXXFLAGS=
2394fi
2395rm -f conftest.err conftest.$ac_objext \
2396      conftest$ac_exeext conftest.$ac_ext
2397if test -z "$CXXFLAGS"; then
2398  echo "$as_me:$LINENO: result: no" >&5
2399echo "${ECHO_T}no" >&6
2400  { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
2401echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
2402  CXXFLAGS='-O'
2403  cat >conftest.$ac_ext <<_ACEOF
2404/* confdefs.h.  */
2405_ACEOF
2406cat confdefs.h >>conftest.$ac_ext
2407cat >>conftest.$ac_ext <<_ACEOF
2408/* end confdefs.h.  */
2409
2410int
2411main ()
2412{
2413int i=0; i++;
2414  ;
2415  return 0;
2416}
2417_ACEOF
2418rm -f conftest.$ac_objext conftest$ac_exeext
2419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2420  (eval $ac_link) 2>conftest.er1
2421  ac_status=$?
2422  grep -v '^ *+' conftest.er1 >conftest.err
2423  rm -f conftest.er1
2424  cat conftest.err >&5
2425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426  (exit $ac_status); } &&
2427         { ac_try='test -z "$ac_cxx_werror_flag"
2428                         || test ! -s conftest.err'
2429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430  (eval $ac_try) 2>&5
2431  ac_status=$?
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); }; } &&
2434         { ac_try='test -s conftest$ac_exeext'
2435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436  (eval $ac_try) 2>&5
2437  ac_status=$?
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); }; }; then
2440  :
2441else
2442  echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445CXXFLAGS=
2446fi
2447rm -f conftest.err conftest.$ac_objext \
2448      conftest$ac_exeext conftest.$ac_ext
2449  if test -z "$CXXFLAGS"; then
2450    echo "$as_me:$LINENO: result: no" >&5
2451echo "${ECHO_T}no" >&6
2452    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
2453echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
2454  fi
2455else
2456  echo "$as_me:$LINENO: result: yes" >&5
2457echo "${ECHO_T}yes" >&6
2458fi
2459
2460# C++ link libraries #
2461
2462if test -z "$CXXLIBS"; then
2463  if test "$GXX" = "yes"; then
2464    case "$CXX" in
2465      icpc | */icpc)
2466        CXXLIBS=""
2467        ;;
2468      *)
2469        CXXLIBS="-lstdc++ -lm -lgcc"
2470        ;;
2471    esac
2472  else
2473    case $build in
2474     *-linux-*)
2475      case "$CXX" in
2476      icpc | */icpc)
2477        CXXLIBS=""
2478             ;;
2479      esac;;
2480    *-ibm-*)
2481      CXXLIBS="-lC -lc"
2482      ;;
2483    *-hp-*)
2484      CXXLIBS="-L/opt/aCC/lib -l++ -lstd_v2 -lCsup_v2 -lm -lcl -lc"
2485      ;;
2486    *-sun-*)
2487      CXXLIBS="-lCstd -lCrun"
2488    esac
2489  fi
2490fi
2491if test -z "$CXXLIBS"; then
2492  { echo "$as_me:$LINENO: WARNING: Could not automatically determine CXXLIBS (C++ link libraries; necessary if main program is in Fortran of C)." >&5
2493echo "$as_me: WARNING: Could not automatically determine CXXLIBS (C++ link libraries; necessary if main program is in Fortran of C)." >&2;}
2494else
2495  { echo "$as_me:$LINENO: Assuming that CXXLIBS is \"$CXXLIBS\"." >&5
2496echo "$as_me: Assuming that CXXLIBS is \"$CXXLIBS\"." >&6;}
2497fi
2498ac_ext=c
2499ac_cpp='$CPP $CPPFLAGS'
2500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503
2504
2505###############################################
2506# Set variables for the archiver              #
2507# (for AIX in 64bit mode also on SGI, SUN...) #
2508###############################################
2509if test -z "$AR"; then
2510  if test ! "$GXX" = "yes"; then
2511    case $build in
2512      *-sun-*)
2513        AR="CC -xar"
2514        ;;
2515      *-sgi-*)
2516        AR="CC -ar"
2517        ;;
2518    esac
2519  fi
2520  if test -z "$AR"; then
2521    AR="ar"
2522  fi
2523fi
2524
2525{ echo "$as_me:$LINENO: Using AR=\"$AR\"." >&5
2526echo "$as_me: Using AR=\"$AR\"." >&6;}
2527
2528if test -z "$ARFLAGS"; then
2529  if test ! "$GXX" = "yes"; then
2530    case $build in
2531      *-sun-*)
2532        ARFLAGS="-o"
2533        ;;
2534      *-sgi-*)
2535        ARFLAGS="-o"
2536        ;;
2537    esac
2538  fi
2539  if test -z "$ARFLAGS"; then
2540    ARFLAGS="crv"
2541  fi
2542fi
2543
2544{ echo "$as_me:$LINENO: Using ARFLAGS=\"$ARFLAGS\"." >&5
2545echo "$as_me: Using ARFLAGS=\"$ARFLAGS\"." >&6;}
2546
2547if test -z "$AR_X"; then
2548  AR_X="ar x"
2549fi
2550
2551{ echo "$as_me:$LINENO: Using AR_X=\"$AR_X\"." >&5
2552echo "$as_me: Using AR_X=\"$AR_X\"." >&6;}
2553
2554######################
2555# C Compiler Options #
2556######################
2557
2558ac_ext=c
2559ac_cpp='$CPP $CPPFLAGS'
2560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563
2564SAVE_CFLAGS="$CFLAGS"
2565case $build in
2566  *-cygwin) comps="gcc" ;;
2567  *)        comps="xlc cc gcc icc" ;;
2568esac
2569ac_ext=c
2570ac_cpp='$CPP $CPPFLAGS'
2571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574if test -n "$ac_tool_prefix"; then
2575  for ac_prog in $comps
2576  do
2577    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579echo "$as_me:$LINENO: checking for $ac_word" >&5
2580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581if test "${ac_cv_prog_CC+set}" = set; then
2582  echo $ECHO_N "(cached) $ECHO_C" >&6
2583else
2584  if test -n "$CC"; then
2585  ac_cv_prog_CC="$CC" # Let the user override the test.
2586else
2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590  IFS=$as_save_IFS
2591  test -z "$as_dir" && as_dir=.
2592  for ac_exec_ext in '' $ac_executable_extensions; do
2593  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2595    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596    break 2
2597  fi
2598done
2599done
2600
2601fi
2602fi
2603CC=$ac_cv_prog_CC
2604if test -n "$CC"; then
2605  echo "$as_me:$LINENO: result: $CC" >&5
2606echo "${ECHO_T}$CC" >&6
2607else
2608  echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6
2610fi
2611
2612    test -n "$CC" && break
2613  done
2614fi
2615if test -z "$CC"; then
2616  ac_ct_CC=$CC
2617  for ac_prog in $comps
2618do
2619  # Extract the first word of "$ac_prog", so it can be a program name with args.
2620set dummy $ac_prog; ac_word=$2
2621echo "$as_me:$LINENO: checking for $ac_word" >&5
2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2624  echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626  if test -n "$ac_ct_CC"; then
2627  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634  for ac_exec_ext in '' $ac_executable_extensions; do
2635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636    ac_cv_prog_ac_ct_CC="$ac_prog"
2637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638    break 2
2639  fi
2640done
2641done
2642
2643fi
2644fi
2645ac_ct_CC=$ac_cv_prog_ac_ct_CC
2646if test -n "$ac_ct_CC"; then
2647  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2648echo "${ECHO_T}$ac_ct_CC" >&6
2649else
2650  echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6
2652fi
2653
2654  test -n "$ac_ct_CC" && break
2655done
2656
2657  CC=$ac_ct_CC
2658fi
2659
2660
2661test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2662See \`config.log' for more details." >&5
2663echo "$as_me: error: no acceptable C compiler found in \$PATH
2664See \`config.log' for more details." >&2;}
2665   { (exit 1); exit 1; }; }
2666
2667# Provide some information about the compiler.
2668echo "$as_me:$LINENO:" \
2669     "checking for C compiler version" >&5
2670ac_compiler=`set X $ac_compile; echo $2`
2671{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2672  (eval $ac_compiler --version </dev/null >&5) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }
2676{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2677  (eval $ac_compiler -v </dev/null >&5) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }
2681{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2682  (eval $ac_compiler -V </dev/null >&5) 2>&5
2683  ac_status=$?
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); }
2686
2687echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2688echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2689if test "${ac_cv_c_compiler_gnu+set}" = set; then
2690  echo $ECHO_N "(cached) $ECHO_C" >&6
2691else
2692  cat >conftest.$ac_ext <<_ACEOF
2693/* confdefs.h.  */
2694_ACEOF
2695cat confdefs.h >>conftest.$ac_ext
2696cat >>conftest.$ac_ext <<_ACEOF
2697/* end confdefs.h.  */
2698
2699int
2700main ()
2701{
2702#ifndef __GNUC__
2703       choke me
2704#endif
2705
2706  ;
2707  return 0;
2708}
2709_ACEOF
2710rm -f conftest.$ac_objext
2711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712  (eval $ac_compile) 2>conftest.er1
2713  ac_status=$?
2714  grep -v '^ *+' conftest.er1 >conftest.err
2715  rm -f conftest.er1
2716  cat conftest.err >&5
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); } &&
2719         { ac_try='test -z "$ac_c_werror_flag"
2720                         || test ! -s conftest.err'
2721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722  (eval $ac_try) 2>&5
2723  ac_status=$?
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); }; } &&
2726         { ac_try='test -s conftest.$ac_objext'
2727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728  (eval $ac_try) 2>&5
2729  ac_status=$?
2730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); }; }; then
2732  ac_compiler_gnu=yes
2733else
2734  echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737ac_compiler_gnu=no
2738fi
2739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740ac_cv_c_compiler_gnu=$ac_compiler_gnu
2741
2742fi
2743echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2744echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2745GCC=`test $ac_compiler_gnu = yes && echo yes`
2746ac_test_CFLAGS=${CFLAGS+set}
2747ac_save_CFLAGS=$CFLAGS
2748CFLAGS="-g"
2749echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2750echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2751if test "${ac_cv_prog_cc_g+set}" = set; then
2752  echo $ECHO_N "(cached) $ECHO_C" >&6
2753else
2754  cat >conftest.$ac_ext <<_ACEOF
2755/* confdefs.h.  */
2756_ACEOF
2757cat confdefs.h >>conftest.$ac_ext
2758cat >>conftest.$ac_ext <<_ACEOF
2759/* end confdefs.h.  */
2760
2761int
2762main ()
2763{
2764
2765  ;
2766  return 0;
2767}
2768_ACEOF
2769rm -f conftest.$ac_objext
2770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771  (eval $ac_compile) 2>conftest.er1
2772  ac_status=$?
2773  grep -v '^ *+' conftest.er1 >conftest.err
2774  rm -f conftest.er1
2775  cat conftest.err >&5
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); } &&
2778         { ac_try='test -z "$ac_c_werror_flag"
2779                         || test ! -s conftest.err'
2780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781  (eval $ac_try) 2>&5
2782  ac_status=$?
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); }; } &&
2785         { ac_try='test -s conftest.$ac_objext'
2786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787  (eval $ac_try) 2>&5
2788  ac_status=$?
2789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790  (exit $ac_status); }; }; then
2791  ac_cv_prog_cc_g=yes
2792else
2793  echo "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796ac_cv_prog_cc_g=no
2797fi
2798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799fi
2800echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2801echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2802if test "$ac_test_CFLAGS" = set; then
2803  CFLAGS=$ac_save_CFLAGS
2804elif test $ac_cv_prog_cc_g = yes; then
2805  if test "$GCC" = yes; then
2806    CFLAGS="-g -O2"
2807  else
2808    CFLAGS="-g"
2809  fi
2810else
2811  if test "$GCC" = yes; then
2812    CFLAGS="-O2"
2813  else
2814    CFLAGS=
2815  fi
2816fi
2817echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2818echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2819if test "${ac_cv_prog_cc_stdc+set}" = set; then
2820  echo $ECHO_N "(cached) $ECHO_C" >&6
2821else
2822  ac_cv_prog_cc_stdc=no
2823ac_save_CC=$CC
2824cat >conftest.$ac_ext <<_ACEOF
2825/* confdefs.h.  */
2826_ACEOF
2827cat confdefs.h >>conftest.$ac_ext
2828cat >>conftest.$ac_ext <<_ACEOF
2829/* end confdefs.h.  */
2830#include <stdarg.h>
2831#include <stdio.h>
2832#include <sys/types.h>
2833#include <sys/stat.h>
2834/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2835struct buf { int x; };
2836FILE * (*rcsopen) (struct buf *, struct stat *, int);
2837static char *e (p, i)
2838     char **p;
2839     int i;
2840{
2841  return p[i];
2842}
2843static char *f (char * (*g) (char **, int), char **p, ...)
2844{
2845  char *s;
2846  va_list v;
2847  va_start (v,p);
2848  s = g (p, va_arg (v,int));
2849  va_end (v);
2850  return s;
2851}
2852
2853/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2854   function prototypes and stuff, but not '\xHH' hex character constants.
2855   These don't provoke an error unfortunately, instead are silently treated
2856   as 'x'.  The following induces an error, until -std1 is added to get
2857   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2858   array size at least.  It's necessary to write '\x00'==0 to get something
2859   that's true only with -std1.  */
2860int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2861
2862int test (int i, double x);
2863struct s1 {int (*f) (int a);};
2864struct s2 {int (*f) (double a);};
2865int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2866int argc;
2867char **argv;
2868int
2869main ()
2870{
2871return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2872  ;
2873  return 0;
2874}
2875_ACEOF
2876# Don't try gcc -ansi; that turns off useful extensions and
2877# breaks some systems' header files.
2878# AIX                   -qlanglvl=ansi
2879# Ultrix and OSF/1      -std1
2880# HP-UX 10.20 and later -Ae
2881# HP-UX older versions  -Aa -D_HPUX_SOURCE
2882# SVR4                  -Xc -D__EXTENSIONS__
2883for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2884do
2885  CC="$ac_save_CC $ac_arg"
2886  rm -f conftest.$ac_objext
2887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888  (eval $ac_compile) 2>conftest.er1
2889  ac_status=$?
2890  grep -v '^ *+' conftest.er1 >conftest.err
2891  rm -f conftest.er1
2892  cat conftest.err >&5
2893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894  (exit $ac_status); } &&
2895         { ac_try='test -z "$ac_c_werror_flag"
2896                         || test ! -s conftest.err'
2897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898  (eval $ac_try) 2>&5
2899  ac_status=$?
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); }; } &&
2902         { ac_try='test -s conftest.$ac_objext'
2903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904  (eval $ac_try) 2>&5
2905  ac_status=$?
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); }; }; then
2908  ac_cv_prog_cc_stdc=$ac_arg
2909break
2910else
2911  echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914fi
2915rm -f conftest.err conftest.$ac_objext
2916done
2917rm -f conftest.$ac_ext conftest.$ac_objext
2918CC=$ac_save_CC
2919
2920fi
2921
2922case "x$ac_cv_prog_cc_stdc" in
2923  x|xno)
2924    echo "$as_me:$LINENO: result: none needed" >&5
2925echo "${ECHO_T}none needed" >&6 ;;
2926  *)
2927    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2928echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2929    CC="$CC $ac_cv_prog_cc_stdc" ;;
2930esac
2931
2932# Some people use a C++ compiler to compile C.  Since we use `exit',
2933# in C++ we need to declare it.  In case someone uses the same compiler
2934# for both compiling C and C++ we need to have the C++ compiler decide
2935# the declaration of exit, since it's the most demanding environment.
2936cat >conftest.$ac_ext <<_ACEOF
2937#ifndef __cplusplus
2938  choke me
2939#endif
2940_ACEOF
2941rm -f conftest.$ac_objext
2942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943  (eval $ac_compile) 2>conftest.er1
2944  ac_status=$?
2945  grep -v '^ *+' conftest.er1 >conftest.err
2946  rm -f conftest.er1
2947  cat conftest.err >&5
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); } &&
2950         { ac_try='test -z "$ac_c_werror_flag"
2951                         || test ! -s conftest.err'
2952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953  (eval $ac_try) 2>&5
2954  ac_status=$?
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); }; } &&
2957         { ac_try='test -s conftest.$ac_objext'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; }; then
2963  for ac_declaration in \
2964   '' \
2965   'extern "C" void std::exit (int) throw (); using std::exit;' \
2966   'extern "C" void std::exit (int); using std::exit;' \
2967   'extern "C" void exit (int) throw ();' \
2968   'extern "C" void exit (int);' \
2969   'void exit (int);'
2970do
2971  cat >conftest.$ac_ext <<_ACEOF
2972/* confdefs.h.  */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h.  */
2977$ac_declaration
2978#include <stdlib.h>
2979int
2980main ()
2981{
2982exit (42);
2983  ;
2984  return 0;
2985}
2986_ACEOF
2987rm -f conftest.$ac_objext
2988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989  (eval $ac_compile) 2>conftest.er1
2990  ac_status=$?
2991  grep -v '^ *+' conftest.er1 >conftest.err
2992  rm -f conftest.er1
2993  cat conftest.err >&5
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); } &&
2996         { ac_try='test -z "$ac_c_werror_flag"
2997                         || test ! -s conftest.err'
2998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999  (eval $ac_try) 2>&5
3000  ac_status=$?
3001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002  (exit $ac_status); }; } &&
3003         { ac_try='test -s conftest.$ac_objext'
3004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005  (eval $ac_try) 2>&5
3006  ac_status=$?
3007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008  (exit $ac_status); }; }; then
3009  :
3010else
3011  echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014continue
3015fi
3016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3017  cat >conftest.$ac_ext <<_ACEOF
3018/* confdefs.h.  */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h.  */
3023$ac_declaration
3024int
3025main ()
3026{
3027exit (42);
3028  ;
3029  return 0;
3030}
3031_ACEOF
3032rm -f conftest.$ac_objext
3033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034  (eval $ac_compile) 2>conftest.er1
3035  ac_status=$?
3036  grep -v '^ *+' conftest.er1 >conftest.err
3037  rm -f conftest.er1
3038  cat conftest.err >&5
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); } &&
3041         { ac_try='test -z "$ac_c_werror_flag"
3042                         || test ! -s conftest.err'
3043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044  (eval $ac_try) 2>&5
3045  ac_status=$?
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); }; } &&
3048         { ac_try='test -s conftest.$ac_objext'
3049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050  (eval $ac_try) 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; }; then
3054  break
3055else
3056  echo "$as_me: failed program was:" >&5
3057sed 's/^/| /' conftest.$ac_ext >&5
3058
3059fi
3060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061done
3062rm -f conftest*
3063if test -n "$ac_declaration"; then
3064  echo '#ifdef __cplusplus' >>confdefs.h
3065  echo $ac_declaration      >>confdefs.h
3066  echo '#endif'             >>confdefs.h
3067fi
3068
3069else
3070  echo "$as_me: failed program was:" >&5
3071sed 's/^/| /' conftest.$ac_ext >&5
3072
3073fi
3074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3075ac_ext=c
3076ac_cpp='$CPP $CPPFLAGS'
3077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080
3081CFLAGS="$SAVE_CFLAGS"
3082
3083warn_cflags=
3084
3085if test -z "$CFLAGS"; then
3086  add_cflags=
3087  opt_cflags=
3088  dbg_cflags=
3089
3090  if test "$GCC" = "yes"; then
3091    case "$CC" in
3092      icc | */icc) ;;
3093      *)
3094        opt_cflags="-O3"
3095#        case $build in
3096#          x86_64-* | i686-* | i586-* )
3097#            # Check for enabling special instructions
3098#            myflags=`grep flags /proc/cpuinfo | tail -1 | cut -d: -f2-`
3099#            have_sse=no
3100#            SAVE_LIBS="$LIBS"
3101#            LIBS="$LIBS -lm"
3102#            for i in $myflags; do
3103#              case $i in
3104#                sse3) CFLAGS="-mfpmath=sse -msse3"
3105#                     AC_MSG_CHECKING([whether flag \"$CFLAGS\" works])
3106#                     AC_TRY_LINK([#include <math.h>],[double s = sin(1.0);],
3107#                       [AC_MSG_RESULT([yes])
3108#                         opt_cflags="$opt_cflags $CFLAGS"],
3109#                        [AC_MSG_RESULT([no])])
3110#                     have_sse=yes;
3111#                     CFLAGS=
3112#                     ;;
3113#                sse2)
3114#                     CFLAGS="-mfpmath=sse -msse2"
3115#                     AC_MSG_CHECKING([whether flag \"$CFLAGS\" works])
3116#                     AC_TRY_LINK([#include <math.h>],[double s = sin(1.0);],
3117#                       [AC_MSG_RESULT([yes])
3118#                         if test $have_sse = no; then
3119#                           opt_cflags="$opt_cflags $CFLAGS"
3120#                        else
3121#                          opt_cflags="$opt_cflags -msse2"
3122#                         fi],
3123#                        [AC_MSG_RESULT([no])])
3124#                     have_sse=yes;
3125#                     CFLAGS=
3126#                     ;;
3127#                sse)
3128#                     CFLAGS="-mfpmath=sse -msse"
3129#                     AC_MSG_CHECKING([whether flag \"$CFLAGS\" works])
3130#                     AC_TRY_LINK([#include <math.h>],[double s = sin(1.0);],
3131#                       [AC_MSG_RESULT([yes])
3132#                         if test $have_sse = no; then
3133#                           opt_cflags="$opt_cflags $CFLAGS"
3134#                        else
3135#                          opt_cflags="$opt_cflags -msse"
3136#                         fi],
3137#                        [AC_MSG_RESULT([no])])
3138#                     have_sse=yes;
3139#                     CFLAGS=
3140#                     ;;
3141#                mmx) CFLAGS="-mmmx"
3142#                     AC_MSG_CHECKING([whether flag \"$CFLAGS\" works])
3143#                     AC_TRY_LINK([#include <math.h>],[double s = sin(1.0);],
3144#                       [AC_MSG_RESULT([yes])
3145#                         opt_cflags="$opt_cflags $CFLAGS"],
3146#                        [AC_MSG_RESULT([no])])
3147#                     CFLAGS= ;;
3148#                3dnow) CFLAGS="-m3dnow"
3149#                     AC_MSG_CHECKING([whether flag \"$CFLAGS\" works])
3150#                     AC_TRY_LINK([#include <math.h>],[double s = sin(1.0);],
3151#                       [AC_MSG_RESULT([yes])
3152#                         opt_cflags="$opt_cflags $CFLAGS"],
3153#                        [AC_MSG_RESULT([no])])
3154#                     CFLAGS= ;;
3155#              esac
3156#            done
3157#            LIBS="$SAVE_LIBS"
3158#          ;;
3159#        esac
3160        add_cflags="-pipe"
3161        dbg_cflags="-g"
3162        warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Werror "
3163        case $build in
3164          *-cygwin*) echo "$as_me:$LINENO: checking whether flag \"-mno-cygwin\" works" >&5
3165echo $ECHO_N "checking whether flag \"-mno-cygwin\" works... $ECHO_C" >&6
3166                    CFLAGS="-mno-cygwin"
3167
3168cat >conftest.$ac_ext <<_ACEOF
3169/* confdefs.h.  */
3170_ACEOF
3171cat confdefs.h >>conftest.$ac_ext
3172cat >>conftest.$ac_ext <<_ACEOF
3173/* end confdefs.h.  */
3174
3175int
3176main ()
3177{
3178int i=0; i++;
3179  ;
3180  return 0;
3181}
3182_ACEOF
3183rm -f conftest.$ac_objext conftest$ac_exeext
3184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185  (eval $ac_link) 2>conftest.er1
3186  ac_status=$?
3187  grep -v '^ *+' conftest.er1 >conftest.err
3188  rm -f conftest.er1
3189  cat conftest.err >&5
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); } &&
3192         { ac_try='test -z "$ac_c_werror_flag"
3193                         || test ! -s conftest.err'
3194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195  (eval $ac_try) 2>&5
3196  ac_status=$?
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); }; } &&
3199         { ac_try='test -s conftest$ac_exeext'
3200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201  (eval $ac_try) 2>&5
3202  ac_status=$?
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); }; }; then
3205  echo "$as_me:$LINENO: result: yes" >&5
3206echo "${ECHO_T}yes" >&6; add_cflags="-mno-cygwin $add_cflags"; use_mingw=yes
3207else
3208  echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211echo "$as_me:$LINENO: result: no" >&5
3212echo "${ECHO_T}no" >&6
3213fi
3214rm -f conftest.err conftest.$ac_objext \
3215      conftest$ac_exeext conftest.$ac_ext
3216                    CFLAGS= ;;
3217        esac ;;
3218    esac
3219  fi
3220  if test -z "$opt_cflags"; then
3221    case $build in
3222     *-cygwin*)
3223      case "$CC" in
3224      cl | */cl)
3225             opt_cflags="-Ot1"
3226             add_cflags="-nologo"
3227             dbg_cflags="-Yd";;
3228      esac;;
3229     *-linux-*)
3230      case "$CC" in
3231      icc | */icc)
3232#             AC_MSG_CHECKING([whether flag \"-fast\" works])
3233#               CFLAGS="-fast"
3234#               AC_TRY_RUN(,[int i=0; i++;],
3235#                               [AC_MSG_RESULT([yes]); opt_cflags="-fast"],
3236#                               [AC_MSG_RESULT([no]); opt_cflags="-O3 -ipo -static"])
3237#               CFLAGS=
3238             opt_cflags="-O3 -ip"
3239             add_cflags="-mp -pc64"
3240             dbg_cflags="-g"
3241             # Check if -i_dynamic is necessary (for new glibc library)
3242             echo "$as_me:$LINENO: checking whether flag \"-i_dynamic\" is needed" >&5
3243echo $ECHO_N "checking whether flag \"-i_dynamic\" is needed... $ECHO_C" >&6
3244             CFLAGS=
3245             cat >conftest.$ac_ext <<_ACEOF
3246/* confdefs.h.  */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h.  */
3251
3252int
3253main ()
3254{
3255int i=0; i++;
3256  ;
3257  return 0;
3258}
3259_ACEOF
3260rm -f conftest.$ac_objext conftest$ac_exeext
3261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3262  (eval $ac_link) 2>conftest.er1
3263  ac_status=$?
3264  grep -v '^ *+' conftest.er1 >conftest.err
3265  rm -f conftest.er1
3266  cat conftest.err >&5
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); } &&
3269         { ac_try='test -z "$ac_c_werror_flag"
3270                         || test ! -s conftest.err'
3271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272  (eval $ac_try) 2>&5
3273  ac_status=$?
3274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275  (exit $ac_status); }; } &&
3276         { ac_try='test -s conftest$ac_exeext'
3277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278  (eval $ac_try) 2>&5
3279  ac_status=$?
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); }; }; then
3282  echo "$as_me:$LINENO: result: apparently not" >&5
3283echo "${ECHO_T}apparently not" >&6
3284else
3285  echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288echo "$as_me:$LINENO: result: seems so" >&5
3289echo "${ECHO_T}seems so" >&6;
3290                               add_cflags="-i_dynamic $add_cflags"
3291fi
3292rm -f conftest.err conftest.$ac_objext \
3293      conftest$ac_exeext conftest.$ac_ext
3294             ;;
3295      pgcc | */pgcc)
3296             opt_cflags="-fast"
3297             add_cflags="-Kieee -Mstabs -pc 64"
3298             dbg_cflags="-g" ;;
3299      esac;;
3300    *-ibm-*)
3301      case "$CC" in
3302      xlc* | */xlc* | mpxlc* | */mpxlc*)
3303             opt_cflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
3304             add_cflags="-bmaxdata:0x80000000"
3305             dbg_cflags="-g";;
3306      esac;;
3307    *-hp-*)
3308             opt_cflags="-O"
3309             add_cflags="-Ae"
3310             dbg_cflags="-g";;
3311    *-sun-*)
3312             opt_cflags="-xO4 -xtarget=native"
3313             dbg_cflags="-g";;
3314    *-sgi-*)
3315             opt_cflags="-O -OPT:Olimit=0"
3316             dbg_cflags="-g";;
3317    esac
3318  fi
3319
3320  if test "$ac_cv_prog_cc_g" = yes && test -z "$dbg_cflags" ; then
3321    dbg_cflags="-g"
3322  fi
3323
3324  if test "$debugcompile" = "true"; then
3325    CFLAGS="$dbg_cflags $add_cflags"
3326  else
3327    if test -z "$opt_cflags"; then
3328# Try if -O option works if nothing else is set
3329      CFLAGS="-O"
3330      cat >conftest.$ac_ext <<_ACEOF
3331/* confdefs.h.  */
3332_ACEOF
3333cat confdefs.h >>conftest.$ac_ext
3334cat >>conftest.$ac_ext <<_ACEOF
3335/* end confdefs.h.  */
3336
3337int
3338main ()
3339{
3340int i=0; i++;
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345rm -f conftest.$ac_objext conftest$ac_exeext
3346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3347  (eval $ac_link) 2>conftest.er1
3348  ac_status=$?
3349  grep -v '^ *+' conftest.er1 >conftest.err
3350  rm -f conftest.er1
3351  cat conftest.err >&5
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); } &&
3354         { ac_try='test -z "$ac_c_werror_flag"
3355                         || test ! -s conftest.err'
3356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357  (eval $ac_try) 2>&5
3358  ac_status=$?
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); }; } &&
3361         { ac_try='test -s conftest$ac_exeext'
3362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363  (eval $ac_try) 2>&5
3364  ac_status=$?
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); }; }; then
3367  opt_cflags="-O"
3368else
3369  echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372fi
3373rm -f conftest.err conftest.$ac_objext \
3374      conftest$ac_exeext conftest.$ac_ext
3375    fi
3376    CFLAGS="$opt_cflags $add_cflags"
3377  fi
3378fi
3379
3380# Try if CFLAGS works
3381echo "$as_me:$LINENO: checking whether CFLAGS=\"$CFLAGS\" works" >&5
3382echo $ECHO_N "checking whether CFLAGS=\"$CFLAGS\" works... $ECHO_C" >&6
3383cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h.  */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
3388/* end confdefs.h.  */
3389
3390int
3391main ()
3392{
3393int i=0; i++;
3394  ;
3395  return 0;
3396}
3397_ACEOF
3398rm -f conftest.$ac_objext conftest$ac_exeext
3399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3400  (eval $ac_link) 2>conftest.er1
3401  ac_status=$?
3402  grep -v '^ *+' conftest.er1 >conftest.err
3403  rm -f conftest.er1
3404  cat conftest.err >&5
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); } &&
3407         { ac_try='test -z "$ac_c_werror_flag"
3408                         || test ! -s conftest.err'
3409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410  (eval $ac_try) 2>&5
3411  ac_status=$?
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); }; } &&
3414         { ac_try='test -s conftest$ac_exeext'
3415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416  (eval $ac_try) 2>&5
3417  ac_status=$?
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); }; }; then
3420  :
3421else
3422  echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
3425CFLAGS=
3426fi
3427rm -f conftest.err conftest.$ac_objext \
3428      conftest$ac_exeext conftest.$ac_ext
3429if test -z "$CFLAGS"; then
3430  echo "$as_me:$LINENO: result: no" >&5
3431echo "${ECHO_T}no" >&6
3432  { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3433echo "$as_me: WARNING: This value for CFLAGS does not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3434  CFLAGS='-O'
3435  cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h.  */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h.  */
3441
3442int
3443main ()
3444{
3445int i=0; i++;
3446  ;
3447  return 0;
3448}
3449_ACEOF
3450rm -f conftest.$ac_objext conftest$ac_exeext
3451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3452  (eval $ac_link) 2>conftest.er1
3453  ac_status=$?
3454  grep -v '^ *+' conftest.er1 >conftest.err
3455  rm -f conftest.er1
3456  cat conftest.err >&5
3457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458  (exit $ac_status); } &&
3459         { ac_try='test -z "$ac_c_werror_flag"
3460                         || test ! -s conftest.err'
3461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462  (eval $ac_try) 2>&5
3463  ac_status=$?
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); }; } &&
3466         { ac_try='test -s conftest$ac_exeext'
3467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468  (eval $ac_try) 2>&5
3469  ac_status=$?
3470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471  (exit $ac_status); }; }; then
3472  :
3473else
3474  echo "$as_me: failed program was:" >&5
3475sed 's/^/| /' conftest.$ac_ext >&5
3476
3477CFLAGS=
3478fi
3479rm -f conftest.err conftest.$ac_objext \
3480      conftest$ac_exeext conftest.$ac_ext
3481  if test -z "$CFLAGS"; then
3482    echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
3484    { 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
3485echo "$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;}
3486  fi
3487else
3488  echo "$as_me:$LINENO: result: yes" >&5
3489echo "${ECHO_T}yes" >&6
3490fi
3491ac_ext=c
3492ac_cpp='$CPP $CPPFLAGS'
3493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496
3497
3498###################################
3499#   Fortran 77 compiler options   #
3500###################################
3501
3502ac_ext=f
3503ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3504ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3506
3507SAVE_FFLAGS="$FFLAGS"
3508case $build in
3509  *-cygwin) comps="gfortran g77" ;;
3510  *)        comps="xlf fort77 gfortran f77 g77 ifort ifc" ;;
3511esac
3512ac_ext=f
3513ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3514ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3516if test -n "$ac_tool_prefix"; then
3517  for ac_prog in $comps
3518  do
3519    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521echo "$as_me:$LINENO: checking for $ac_word" >&5
3522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3523if test "${ac_cv_prog_F77+set}" = set; then
3524  echo $ECHO_N "(cached) $ECHO_C" >&6
3525else
3526  if test -n "$F77"; then
3527  ac_cv_prog_F77="$F77" # Let the user override the test.
3528else
3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532  IFS=$as_save_IFS
3533  test -z "$as_dir" && as_dir=.
3534  for ac_exec_ext in '' $ac_executable_extensions; do
3535  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3537    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538    break 2
3539  fi
3540done
3541done
3542
3543fi
3544fi
3545F77=$ac_cv_prog_F77
3546if test -n "$F77"; then
3547  echo "$as_me:$LINENO: result: $F77" >&5
3548echo "${ECHO_T}$F77" >&6
3549else
3550  echo "$as_me:$LINENO: result: no" >&5
3551echo "${ECHO_T}no" >&6
3552fi
3553
3554    test -n "$F77" && break
3555  done
3556fi
3557if test -z "$F77"; then
3558  ac_ct_F77=$F77
3559  for ac_prog in $comps
3560do
3561  # Extract the first word of "$ac_prog", so it can be a program name with args.
3562set dummy $ac_prog; ac_word=$2
3563echo "$as_me:$LINENO: checking for $ac_word" >&5
3564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3566  echo $ECHO_N "(cached) $ECHO_C" >&6
3567else
3568  if test -n "$ac_ct_F77"; then
3569  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3570else
3571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572for as_dir in $PATH
3573do
3574  IFS=$as_save_IFS
3575  test -z "$as_dir" && as_dir=.
3576  for ac_exec_ext in '' $ac_executable_extensions; do
3577  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578    ac_cv_prog_ac_ct_F77="$ac_prog"
3579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580    break 2
3581  fi
3582done
3583done
3584
3585fi
3586fi
3587ac_ct_F77=$ac_cv_prog_ac_ct_F77
3588if test -n "$ac_ct_F77"; then
3589  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3590echo "${ECHO_T}$ac_ct_F77" >&6
3591else
3592  echo "$as_me:$LINENO: result: no" >&5
3593echo "${ECHO_T}no" >&6
3594fi
3595
3596  test -n "$ac_ct_F77" && break
3597done
3598
3599  F77=$ac_ct_F77
3600fi
3601
3602
3603# Provide some information about the compiler.
3604echo "$as_me:3604:" \
3605     "checking for Fortran 77 compiler version" >&5
3606ac_compiler=`set X $ac_compile; echo $2`
3607{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3608  (eval $ac_compiler --version </dev/null >&5) 2>&5
3609  ac_status=$?
3610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611  (exit $ac_status); }
3612{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3613  (eval $ac_compiler -v </dev/null >&5) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }
3617{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3618  (eval $ac_compiler -V </dev/null >&5) 2>&5
3619  ac_status=$?
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); }
3622rm -f a.out
3623
3624# If we don't use `.F' as extension, the preprocessor is not run on the
3625# input file.  (Note that this only needs to work for GNU compilers.)
3626ac_save_ext=$ac_ext
3627ac_ext=F
3628echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3629echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3630if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3631  echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
3633  cat >conftest.$ac_ext <<_ACEOF
3634      program main
3635#ifndef __GNUC__
3636       choke me
3637#endif
3638
3639      end
3640_ACEOF
3641rm -f conftest.$ac_objext
3642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3643  (eval $ac_compile) 2>conftest.er1
3644  ac_status=$?
3645  grep -v '^ *+' conftest.er1 >conftest.err
3646  rm -f conftest.er1
3647  cat conftest.err >&5
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); } &&
3650         { ac_try='test -z "$ac_f77_werror_flag"
3651                         || test ! -s conftest.err'
3652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653  (eval $ac_try) 2>&5
3654  ac_status=$?
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); }; } &&
3657         { ac_try='test -s conftest.$ac_objext'
3658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659  (eval $ac_try) 2>&5
3660  ac_status=$?
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); }; }; then
3663  ac_compiler_gnu=yes
3664else
3665  echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668ac_compiler_gnu=no
3669fi
3670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3672
3673fi
3674echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3675echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3676ac_ext=$ac_save_ext
3677ac_test_FFLAGS=${FFLAGS+set}
3678ac_save_FFLAGS=$FFLAGS
3679FFLAGS=
3680echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3681echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3682if test "${ac_cv_prog_f77_g+set}" = set; then
3683  echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685  FFLAGS=-g
3686cat >conftest.$ac_ext <<_ACEOF
3687      program main
3688
3689      end
3690_ACEOF
3691rm -f conftest.$ac_objext
3692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693  (eval $ac_compile) 2>conftest.er1
3694  ac_status=$?
3695  grep -v '^ *+' conftest.er1 >conftest.err
3696  rm -f conftest.er1
3697  cat conftest.err >&5
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); } &&
3700         { ac_try='test -z "$ac_f77_werror_flag"
3701                         || test ! -s conftest.err'
3702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703  (eval $ac_try) 2>&5
3704  ac_status=$?
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); }; } &&
3707         { ac_try='test -s conftest.$ac_objext'
3708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709  (eval $ac_try) 2>&5
3710  ac_status=$?
3711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); }; }; then
3713  ac_cv_prog_f77_g=yes
3714else
3715  echo "$as_me: failed program was:" >&5
3716sed 's/^/| /' conftest.$ac_ext >&5
3717
3718ac_cv_prog_f77_g=no
3719fi
3720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3721
3722fi
3723echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3724echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3725if test "$ac_test_FFLAGS" = set; then
3726  FFLAGS=$ac_save_FFLAGS
3727elif test $ac_cv_prog_f77_g = yes; then
3728  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3729    FFLAGS="-g -O2"
3730  else
3731    FFLAGS="-g"
3732  fi
3733else
3734  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3735    FFLAGS="-O2"
3736  else
3737    FFLAGS=
3738  fi
3739fi
3740
3741G77=`test $ac_compiler_gnu = yes && echo yes`
3742ac_ext=f
3743ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3744ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3746
3747FFLAGS="$SAVE_FFLAGS"
3748
3749if test -z "$FFLAGS"; then
3750  add_fflags=
3751  opt_fflags=
3752  dbg_fflags=
3753
3754  if test "$G77" = "yes"; then
3755    opt_fflags="-O3"
3756#        case $build in
3757#          x86_64-* | i686-* | i586-* )
3758#            # Check for enabling special instructions
3759#            myflags=`grep flags /proc/cpuinfo | tail -1 | cut -d: -f2-`
3760#            have_sse=no
3761#            for i in $myflags; do
3762#              case $i in
3763#                sse3) FFLAGS="-mfpmath=sse -msse3"
3764#                     AC_MSG_CHECKING([whether flag \"$FFLAGS\" works])
3765#                     AC_TRY_LINK(,[      double precision x
3766#      x = sin(1.d0)],
3767#                       [AC_MSG_RESULT([yes])
3768#                         opt_fflags="$opt_fflags $FFLAGS"],
3769#                        [AC_MSG_RESULT([no])])
3770#                     have_sse=yes;
3771#                     FFLAGS=
3772#                     ;;
3773#                sse2)
3774#                     FFLAGS="-mfpmath=sse -msse2"
3775#                     AC_MSG_CHECKING([whether flag \"$FFLAGS\" works])
3776#                     AC_TRY_LINK(,[      double precision x
3777#      x = sin(1.d0)],
3778#                       [AC_MSG_RESULT([yes])
3779#                         if test $have_sse = no; then
3780#                           opt_fflags="$opt_fflags $FFLAGS"
3781#                        else
3782#                          opt_fflags="$opt_fflags -msse2"
3783#                         fi],
3784#                        [AC_MSG_RESULT([no])])
3785#                     have_sse=yes;
3786#                     FFLAGS=
3787#                     ;;
3788#                sse)
3789#                     FFLAGS="-mfpmath=sse -msse"
3790#                     AC_MSG_CHECKING([whether flag \"$FFLAGS\" works])
3791#                     AC_TRY_LINK(,[      double precision x
3792#      x = sin(1.d0)],
3793#                       [AC_MSG_RESULT([yes])
3794#                         if test $have_sse = no; then
3795#                           opt_fflags="$opt_fflags $FFLAGS"
3796#                        else
3797#                          opt_fflags="$opt_fflags -msse"
3798#                         fi],
3799#                        [AC_MSG_RESULT([no])])
3800#                     have_sse=yes;
3801#                     FFLAGS=
3802#                     ;;
3803#                mmx) FFLAGS="-mmmx"
3804#                     AC_MSG_CHECKING([whether flag \"$FFLAGS\" works])
3805#                     AC_TRY_LINK(,[      double precision x
3806#      x = sin(1.d0)],
3807#                       [AC_MSG_RESULT([yes])
3808#                         opt_fflags="$opt_fflags $FFLAGS"],
3809#                        [AC_MSG_RESULT([no])])
3810#                     FFLAGS= ;;
3811#                3dnow) FFLAGS="-m3dnow"
3812#                     AC_MSG_CHECKING([whether flag \"$FFLAGS\" works])
3813#                     AC_TRY_LINK(,[      double precision x
3814#      x = sin(1.d0)],
3815#                       [AC_MSG_RESULT([yes])
3816#                         opt_fflags="$opt_fflags $FFLAGS"],
3817#                        [AC_MSG_RESULT([no])])
3818#                     FFLAGS= ;;
3819#              esac
3820#            done
3821#          ;;
3822#        esac
3823
3824#    case $build in
3825#      i686-* )
3826#        FFLAGS="-march=i686 -mfpmath=sse -msse"
3827#        AC_MSG_CHECKING([whether flags \"$FFLAGS\" work])
3828#        AC_TRY_LINK(,[
3829#      double precision x
3830#      x = sin(1.d0)],
3831#                       [AC_MSG_RESULT([yes]); opt_fflags="$opt_fflags $FFLAGS"],
3832#                       [AC_MSG_RESULT([no])])
3833#        FFLAGS=
3834#      ;;
3835#    esac
3836    add_fflags="-pipe"
3837    dbg_fflags="-g"
3838    case $build in
3839      *-cygwin*) echo "$as_me:$LINENO: checking whether flag \"-mno-cygwin\" works" >&5
3840echo $ECHO_N "checking whether flag \"-mno-cygwin\" works... $ECHO_C" >&6
3841                FFLAGS="-mno-cygwin"
3842
3843cat >conftest.$ac_ext <<_ACEOF
3844      program main
3845      write(*,*) 'Hello world'
3846      end
3847_ACEOF
3848rm -f conftest.$ac_objext conftest$ac_exeext
3849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3850  (eval $ac_link) 2>conftest.er1
3851  ac_status=$?
3852  grep -v '^ *+' conftest.er1 >conftest.err
3853  rm -f conftest.er1
3854  cat conftest.err >&5
3855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856  (exit $ac_status); } &&
3857         { ac_try='test -z "$ac_f77_werror_flag"
3858                         || test ! -s conftest.err'
3859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860  (eval $ac_try) 2>&5
3861  ac_status=$?
3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863  (exit $ac_status); }; } &&
3864         { ac_try='test -s conftest$ac_exeext'
3865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866  (eval $ac_try) 2>&5
3867  ac_status=$?
3868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869  (exit $ac_status); }; }; then
3870  echo "$as_me:$LINENO: result: yes" >&5
3871echo "${ECHO_T}yes" >&6; add_fflags="-mno-cygwin $add_fflags"
3872else
3873  echo "$as_me: failed program was:" >&5
3874sed 's/^/| /' conftest.$ac_ext >&5
3875
3876echo "$as_me:$LINENO: result: no" >&5
3877echo "${ECHO_T}no" >&6
3878fi
3879rm -f conftest.err conftest.$ac_objext \
3880      conftest$ac_exeext conftest.$ac_ext
3881                FFLAGS= ;;
3882    esac
3883  else
3884    case $build in
3885    *-cygwin*)
3886      case $F77 in
3887      ifort | */ifort)
3888             opt_fflags="-O3"
3889             add_fflags="-nologo -Qprec -fpp"
3890             dbg_fflags="-debug" ;;
3891      esac;;
3892    *-linux-*)
3893      case $F77 in
3894      ifc | */ifc | ifort | */ifort)
3895#             AC_MSG_CHECKING([whether flag \"-fast\" works])
3896#               FFLAGS="-fast"
3897#               AC_TRY_RUN(,[      write(*,*) 'Hello world'],
3898#                               [AC_MSG_RESULT([yes]); opt_fflags="-fast"],
3899#                               [AC_MSG_RESULT([no]); opt_fflags="-O3 -ipo -static"])
3900#               FFLAGS=
3901             opt_fflags="-O3 -ip"
3902             add_fflags="-mp -pc64 -cm -w90 -w95"
3903             dbg_fflags="-g -CA -CB -CS -CU"
3904             # Check if -i_dynamic is necessary (for new glibc library)
3905             echo "$as_me:$LINENO: checking whether flag \"-i_dynamic\" is needed" >&5
3906echo $ECHO_N "checking whether flag \"-i_dynamic\" is needed... $ECHO_C" >&6
3907             FFLAGS=
3908             cat >conftest.$ac_ext <<_ACEOF
3909      program main
3910      write(*,*) 'Hello world'
3911      end
3912_ACEOF
3913rm -f conftest.$ac_objext conftest$ac_exeext
3914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915  (eval $ac_link) 2>conftest.er1
3916  ac_status=$?
3917  grep -v '^ *+' conftest.er1 >conftest.err
3918  rm -f conftest.er1
3919  cat conftest.err >&5
3920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921  (exit $ac_status); } &&
3922         { ac_try='test -z "$ac_f77_werror_flag"
3923                         || test ! -s conftest.err'
3924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925  (eval $ac_try) 2>&5
3926  ac_status=$?
3927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928  (exit $ac_status); }; } &&
3929         { ac_try='test -s conftest$ac_exeext'
3930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931  (eval $ac_try) 2>&5
3932  ac_status=$?
3933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934  (exit $ac_status); }; }; then
3935  echo "$as_me:$LINENO: result: apparently not" >&5
3936echo "${ECHO_T}apparently not" >&6
3937else
3938  echo "$as_me: failed program was:" >&5
3939sed 's/^/| /' conftest.$ac_ext >&5
3940
3941echo "$as_me:$LINENO: result: seems so" >&5
3942echo "${ECHO_T}seems so" >&6;
3943                               add_fflags="-i_dynamic $add_fflags"
3944fi
3945rm -f conftest.err conftest.$ac_objext \
3946      conftest$ac_exeext conftest.$ac_ext
3947             ;;
3948      pgf77 | */pgf77)
3949             opt_fflags="-fast"
3950             add_fflags="-Kieee -Mstabs -pc 64"
3951             dbg_fflags="-g" ;;
3952      esac;;
3953    *-ibm-*)
3954      case $F77 in
3955      xlf* | */xlf* | mpxlf* | */mpxlf* )
3956             opt_fflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
3957             add_fflags="-bmaxdata:0x80000000"
3958             dbg_fflags="-g -C";;
3959      esac;;
3960    *-hp-*)
3961             opt_fflags="+O3"
3962             add_fflags="+U77"
3963             dbg_fflags="-C -g";;
3964    *-sun-*)
3965             opt_fflags="-O4 -xtarget=native"
3966             dbg_fflags="-g";;
3967    *-sgi-*)
3968             opt_fflags="-O5 -OPT:Olimit=0"
3969             dbg_fflags="-g";;
3970    esac
3971  fi
3972
3973  if test "$ac_cv_prog_f77_g" = yes && test -z "$dbg_fflags" ; then
3974    dbg_fflags="-g"
3975  fi
3976
3977  if test "$debugcompile" = true; then
3978    FFLAGS="$dbg_fflags $add_fflags"
3979  else
3980    if test -z "$opt_fflags"; then
3981# Try if -O option works if nothing else is set
3982      echo "$as_me:$LINENO: checking whether FFLAGS=\"-O\" works" >&5
3983echo $ECHO_N "checking whether FFLAGS=\"-O\" works... $ECHO_C" >&6
3984      FFLAGS=-O
3985      cat >conftest.$ac_ext <<_ACEOF
3986      program main
3987      integer i
3988      end
3989_ACEOF
3990rm -f conftest.$ac_objext conftest$ac_exeext
3991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3992  (eval $ac_link) 2>conftest.er1
3993  ac_status=$?
3994  grep -v '^ *+' conftest.er1 >conftest.err
3995  rm -f conftest.er1
3996  cat conftest.err >&5
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); } &&
3999         { ac_try='test -z "$ac_f77_werror_flag"
4000                         || test ! -s conftest.err'
4001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002  (eval $ac_try) 2>&5
4003  ac_status=$?
4004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005  (exit $ac_status); }; } &&
4006         { ac_try='test -s conftest$ac_exeext'
4007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008  (eval $ac_try) 2>&5
4009  ac_status=$?
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); }; }; then
4012  echo "$as_me:$LINENO: result: yes" >&5
4013echo "${ECHO_T}yes" >&6; opt_fflags="-O"
4014else
4015  echo "$as_me: failed program was:" >&5
4016sed 's/^/| /' conftest.$ac_ext >&5
4017
4018echo "$as_me:$LINENO: result: no" >&5
4019echo "${ECHO_T}no" >&6
4020fi
4021rm -f conftest.err conftest.$ac_objext \
4022      conftest$ac_exeext conftest.$ac_ext
4023    fi
4024    FFLAGS="$opt_fflags $add_fflags"
4025  fi
4026fi
4027
4028# Try if FFLAGS works
4029echo "$as_me:$LINENO: checking whether FFLAGS=\"$FFLAGS\" works" >&5
4030echo $ECHO_N "checking whether FFLAGS=\"$FFLAGS\" works... $ECHO_C" >&6
4031cat >conftest.$ac_ext <<_ACEOF
4032      program main
4033      integer i
4034      end
4035_ACEOF
4036rm -f conftest.$ac_objext conftest$ac_exeext
4037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4038  (eval $ac_link) 2>conftest.er1
4039  ac_status=$?
4040  grep -v '^ *+' conftest.er1 >conftest.err
4041  rm -f conftest.er1
4042  cat conftest.err >&5
4043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044  (exit $ac_status); } &&
4045         { ac_try='test -z "$ac_f77_werror_flag"
4046                         || test ! -s conftest.err'
4047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048  (eval $ac_try) 2>&5
4049  ac_status=$?
4050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051  (exit $ac_status); }; } &&
4052         { ac_try='test -s conftest$ac_exeext'
4053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054  (eval $ac_try) 2>&5
4055  ac_status=$?
4056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057  (exit $ac_status); }; }; then
4058  :
4059else
4060  echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063FFLAGS=
4064fi
4065rm -f conftest.err conftest.$ac_objext \
4066      conftest$ac_exeext conftest.$ac_ext
4067if test -z "$FFLAGS"; then
4068  echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6
4070  { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4071echo "$as_me: WARNING: This value for FFLAGS does not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4072  FFLAGS='-O'
4073  cat >conftest.$ac_ext <<_ACEOF
4074      program main
4075      integer i
4076      end
4077_ACEOF
4078rm -f conftest.$ac_objext conftest$ac_exeext
4079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4080  (eval $ac_link) 2>conftest.er1
4081  ac_status=$?
4082  grep -v '^ *+' conftest.er1 >conftest.err
4083  rm -f conftest.er1
4084  cat conftest.err >&5
4085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086  (exit $ac_status); } &&
4087         { ac_try='test -z "$ac_f77_werror_flag"
4088                         || test ! -s conftest.err'
4089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090  (eval $ac_try) 2>&5
4091  ac_status=$?
4092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093  (exit $ac_status); }; } &&
4094         { ac_try='test -s conftest$ac_exeext'
4095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096  (eval $ac_try) 2>&5
4097  ac_status=$?
4098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099  (exit $ac_status); }; }; then
4100  :
4101else
4102  echo "$as_me: failed program was:" >&5
4103sed 's/^/| /' conftest.$ac_ext >&5
4104
4105FFLAGS=
4106fi
4107rm -f conftest.err conftest.$ac_objext \
4108      conftest$ac_exeext conftest.$ac_ext
4109  if test -z "$FFLAGS"; then
4110    echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112    { 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
4113echo "$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;}
4114  fi
4115else
4116  echo "$as_me:$LINENO: result: yes" >&5
4117echo "${ECHO_T}yes" >&6
4118fi
4119
4120ac_ext=f
4121ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4122ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4124echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4125echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4126if test "${ac_cv_prog_f77_v+set}" = set; then
4127  echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129  cat >conftest.$ac_ext <<_ACEOF
4130      program main
4131
4132      end
4133_ACEOF
4134rm -f conftest.$ac_objext
4135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136  (eval $ac_compile) 2>conftest.er1
4137  ac_status=$?
4138  grep -v '^ *+' conftest.er1 >conftest.err
4139  rm -f conftest.er1
4140  cat conftest.err >&5
4141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142  (exit $ac_status); } &&
4143         { ac_try='test -z "$ac_f77_werror_flag"
4144                         || test ! -s conftest.err'
4145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146  (eval $ac_try) 2>&5
4147  ac_status=$?
4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149  (exit $ac_status); }; } &&
4150         { ac_try='test -s conftest.$ac_objext'
4151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152  (eval $ac_try) 2>&5
4153  ac_status=$?
4154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155  (exit $ac_status); }; }; then
4156  ac_cv_prog_f77_v=
4157# Try some options frequently used verbose output
4158for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4159  cat >conftest.$ac_ext <<_ACEOF
4160      program main
4161
4162      end
4163_ACEOF
4164
4165# Compile and link our simple test program by passing a flag (argument
4166# 1 to this macro) to the Fortran compiler in order to get
4167# "verbose" output that we can then parse for the Fortran linker
4168# flags.
4169ac_save_FFLAGS=$FFLAGS
4170FFLAGS="$FFLAGS $ac_verb"
4171(eval echo $as_me:4171: \"$ac_link\") >&5
4172ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4173echo "$ac_f77_v_output" >&5
4174FFLAGS=$ac_save_FFLAGS
4175
4176rm -f conftest*
4177
4178# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4179# /foo, /bar, and /baz are search directories for the Fortran linker.
4180# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4181ac_f77_v_output="`echo $ac_f77_v_output |
4182        grep 'LPATH is:' |
4183        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4184
4185case $ac_f77_v_output in
4186  # If we are using xlf then replace all the commas with spaces.
4187  *xlfentry*)
4188    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4189
4190  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4191  # $LIBS confuse us, and the libraries appear later in the output anyway).
4192  *mGLOB_options_string*)
4193    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4194
4195  # If we are using Cray Fortran then delete quotes.
4196  # Use "\"" instead of '"' for font-lock-mode.
4197  # FIXME: a more general fix for quoted arguments with spaces?
4198  *cft90*)
4199    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4200esac
4201
4202
4203  # look for -l* and *.a constructs in the output
4204  for ac_arg in $ac_f77_v_output; do
4205     case $ac_arg in
4206        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4207          ac_cv_prog_f77_v=$ac_verb
4208          break 2 ;;
4209     esac
4210  done
4211done
4212if test -z "$ac_cv_prog_f77_v"; then
4213   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4214echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4215fi
4216else
4217  echo "$as_me: failed program was:" >&5
4218sed 's/^/| /' conftest.$ac_ext >&5
4219
4220{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4221echo "$as_me: WARNING: compilation failed" >&2;}
4222fi
4223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4224
4225fi
4226echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4227echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4228echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4229echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4230if test "${ac_cv_f77_libs+set}" = set; then
4231  echo $ECHO_N "(cached) $ECHO_C" >&6
4232else
4233  if test "x$FLIBS" != "x"; then
4234  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4235else
4236
4237cat >conftest.$ac_ext <<_ACEOF
4238      program main
4239
4240      end
4241_ACEOF
4242
4243# Compile and link our simple test program by passing a flag (argument
4244# 1 to this macro) to the Fortran compiler in order to get
4245# "verbose" output that we can then parse for the Fortran linker
4246# flags.
4247ac_save_FFLAGS=$FFLAGS
4248FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4249(eval echo $as_me:4249: \"$ac_link\") >&5
4250ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4251echo "$ac_f77_v_output" >&5
4252FFLAGS=$ac_save_FFLAGS
4253
4254rm -f conftest*
4255
4256# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4257# /foo, /bar, and /baz are search directories for the Fortran linker.
4258# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4259ac_f77_v_output="`echo $ac_f77_v_output |
4260        grep 'LPATH is:' |
4261        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4262
4263case $ac_f77_v_output in
4264  # If we are using xlf then replace all the commas with spaces.
4265  *xlfentry*)
4266    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4267
4268  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4269  # $LIBS confuse us, and the libraries appear later in the output anyway).
4270  *mGLOB_options_string*)
4271    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4272
4273  # If we are using Cray Fortran then delete quotes.
4274  # Use "\"" instead of '"' for font-lock-mode.
4275  # FIXME: a more general fix for quoted arguments with spaces?
4276  *cft90*)
4277    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4278esac
4279
4280
4281
4282ac_cv_f77_libs=
4283
4284# Save positional arguments (if any)
4285ac_save_positional="$@"
4286
4287set X $ac_f77_v_output
4288while test $# != 1; do
4289  shift
4290  ac_arg=$1
4291  case $ac_arg in
4292        [\\/]*.a | ?:[\\/]*.a)
4293            ac_exists=false
4294  for ac_i in $ac_cv_f77_libs; do
4295    if test x"$ac_arg" = x"$ac_i"; then
4296      ac_exists=true
4297      break
4298    fi
4299  done
4300
4301  if test x"$ac_exists" = xtrue; then
4302  :
4303else
4304  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4305fi
4306
4307          ;;
4308        -bI:*)
4309            ac_exists=false
4310  for ac_i in $ac_cv_f77_libs; do
4311    if test x"$ac_arg" = x"$ac_i"; then
4312      ac_exists=true
4313      break
4314    fi
4315  done
4316
4317  if test x"$ac_exists" = xtrue; then
4318  :
4319else
4320  if test "$ac_compiler_gnu" = yes; then
4321  for ac_link_opt in $ac_arg; do
4322    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4323  done
4324else
4325  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4326fi
4327fi
4328
4329          ;;
4330          # Ignore these flags.
4331        -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=*)
4332          ;;
4333        -lkernel32)
4334          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4335          ;;
4336        -[LRuY])
4337          # These flags, when seen by themselves, take an argument.
4338          # We remove the space between option and argument and re-iterate
4339          # unless we find an empty arg or a new option (starting with -)
4340          case $2 in
4341             "" | -*);;
4342             *)
4343                ac_arg="$ac_arg$2"
4344                shift; shift
4345                set X $ac_arg "$@"
4346                ;;
4347          esac
4348          ;;
4349        -YP,*)
4350          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4351              ac_exists=false
4352  for ac_i in $ac_cv_f77_libs; do
4353    if test x"$ac_j" = x"$ac_i"; then
4354      ac_exists=true
4355      break
4356    fi
4357  done
4358
4359  if test x"$ac_exists" = xtrue; then
4360  :
4361else
4362  ac_arg="$ac_arg $ac_j"
4363                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4364fi
4365
4366          done
4367          ;;
4368        -[lLR]*)
4369            ac_exists=false
4370  for ac_i in $ac_cv_f77_libs; do
4371    if test x"$ac_arg" = x"$ac_i"; then
4372      ac_exists=true
4373      break
4374    fi
4375  done
4376
4377  if test x"$ac_exists" = xtrue; then
4378  :
4379else
4380  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4381fi
4382
4383          ;;
4384          # Ignore everything else.
4385  esac
4386done
4387# restore positional arguments
4388set X $ac_save_positional; shift
4389
4390# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4391# then we insist that the "run path" must be an absolute path (i.e. it
4392# must begin with a "/").
4393case `(uname -sr) 2>/dev/null` in
4394   "SunOS 5"*)
4395      ac_ld_run_path=`echo $ac_f77_v_output |
4396                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4397      test "x$ac_ld_run_path" != x &&
4398        if test "$ac_compiler_gnu" = yes; then
4399  for ac_link_opt in $ac_ld_run_path; do
4400    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4401  done
4402else
4403  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4404fi
4405      ;;
4406esac
4407fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4408
4409fi
4410echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4411echo "${ECHO_T}$ac_cv_f77_libs" >&6
4412FLIBS="$ac_cv_f77_libs"
4413
4414
4415ac_ext=f
4416ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4417ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4419
4420ac_ext=f
4421ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4422ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4424
4425echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4426echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4427if test "${ac_cv_f77_dummy_main+set}" = set; then
4428  echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430  ac_f77_dm_save_LIBS=$LIBS
4431 LIBS="$LIBS $FLIBS"
4432 ac_fortran_dm_var=F77_DUMMY_MAIN
4433 ac_ext=c
4434ac_cpp='$CPP $CPPFLAGS'
4435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438
4439 # First, try linking without a dummy main:
4440 cat >conftest.$ac_ext <<_ACEOF
4441/* confdefs.h.  */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h.  */
4446
4447#ifdef F77_DUMMY_MAIN
4448
4449#  ifdef __cplusplus
4450     extern "C"
4451#  endif
4452   int F77_DUMMY_MAIN() { return 1; }
4453
4454#endif
4455int
4456main ()
4457{
4458
4459  ;
4460  return 0;
4461}
4462_ACEOF
4463rm -f conftest.$ac_objext conftest$ac_exeext
4464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465  (eval $ac_link) 2>conftest.er1
4466  ac_status=$?
4467  grep -v '^ *+' conftest.er1 >conftest.err
4468  rm -f conftest.er1
4469  cat conftest.err >&5
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); } &&
4472         { ac_try='test -z "$ac_c_werror_flag"
4473                         || test ! -s conftest.err'
4474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475  (eval $ac_try) 2>&5
4476  ac_status=$?
4477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478  (exit $ac_status); }; } &&
4479         { ac_try='test -s conftest$ac_exeext'
4480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481  (eval $ac_try) 2>&5
4482  ac_status=$?
4483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484  (exit $ac_status); }; }; then
4485  ac_cv_fortran_dummy_main=none
4486else
4487  echo "$as_me: failed program was:" >&5
4488sed 's/^/| /' conftest.$ac_ext >&5
4489
4490ac_cv_fortran_dummy_main=unknown
4491fi
4492rm -f conftest.err conftest.$ac_objext \
4493      conftest$ac_exeext conftest.$ac_ext
4494
4495 if test $ac_cv_fortran_dummy_main = unknown; then
4496   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4497     cat >conftest.$ac_ext <<_ACEOF
4498/* confdefs.h.  */
4499_ACEOF
4500cat confdefs.h >>conftest.$ac_ext
4501cat >>conftest.$ac_ext <<_ACEOF
4502/* end confdefs.h.  */
4503#define $ac_fortran_dm_var $ac_func
4504#ifdef F77_DUMMY_MAIN
4505
4506#  ifdef __cplusplus
4507     extern "C"
4508#  endif
4509   int F77_DUMMY_MAIN() { return 1; }
4510
4511#endif
4512int
4513main ()
4514{
4515
4516  ;
4517  return 0;
4518}
4519_ACEOF
4520rm -f conftest.$ac_objext conftest$ac_exeext
4521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4522  (eval $ac_link) 2>conftest.er1
4523  ac_status=$?
4524  grep -v '^ *+' conftest.er1 >conftest.err
4525  rm -f conftest.er1
4526  cat conftest.err >&5
4527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528  (exit $ac_status); } &&
4529         { ac_try='test -z "$ac_c_werror_flag"
4530                         || test ! -s conftest.err'
4531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532  (eval $ac_try) 2>&5
4533  ac_status=$?
4534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535  (exit $ac_status); }; } &&
4536         { ac_try='test -s conftest$ac_exeext'
4537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538  (eval $ac_try) 2>&5
4539  ac_status=$?
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); }; }; then
4542  ac_cv_fortran_dummy_main=$ac_func; break
4543else
4544  echo "$as_me: failed program was:" >&5
4545sed 's/^/| /' conftest.$ac_ext >&5
4546
4547fi
4548rm -f conftest.err conftest.$ac_objext \
4549      conftest$ac_exeext conftest.$ac_ext
4550   done
4551 fi
4552 ac_ext=f
4553ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4554ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4556 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4557 rm -f conftest*
4558 LIBS=$ac_f77_dm_save_LIBS
4559
4560fi
4561echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4562echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4563F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4564if test "$F77_DUMMY_MAIN" != unknown; then
4565  if test $F77_DUMMY_MAIN != none; then
4566
4567cat >>confdefs.h <<_ACEOF
4568#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4569_ACEOF
4570
4571  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4572
4573cat >>confdefs.h <<\_ACEOF
4574#define FC_DUMMY_MAIN_EQ_F77 1
4575_ACEOF
4576
4577  fi
4578fi
4579else
4580  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4581See \`config.log' for more details." >&5
4582echo "$as_me: error: linking to Fortran libraries from C fails
4583See \`config.log' for more details." >&2;}
4584   { (exit 1); exit 1; }; }
4585fi
4586
4587
4588ac_ext=f
4589ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4590ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4592
4593ac_ext=f
4594ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4595ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4597echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4598echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4599if test "${ac_cv_f77_mangling+set}" = set; then
4600  echo $ECHO_N "(cached) $ECHO_C" >&6
4601else
4602  cat >conftest.$ac_ext <<_ACEOF
4603      subroutine foobar()
4604      return
4605      end
4606      subroutine foo_bar()
4607      return
4608      end
4609_ACEOF
4610rm -f conftest.$ac_objext
4611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612  (eval $ac_compile) 2>conftest.er1
4613  ac_status=$?
4614  grep -v '^ *+' conftest.er1 >conftest.err
4615  rm -f conftest.er1
4616  cat conftest.err >&5
4617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618  (exit $ac_status); } &&
4619         { ac_try='test -z "$ac_f77_werror_flag"
4620                         || test ! -s conftest.err'
4621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622  (eval $ac_try) 2>&5
4623  ac_status=$?
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); }; } &&
4626         { ac_try='test -s conftest.$ac_objext'
4627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628  (eval $ac_try) 2>&5
4629  ac_status=$?
4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); }; }; then
4632  mv conftest.$ac_objext cfortran_test.$ac_objext
4633
4634  ac_save_LIBS=$LIBS
4635  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4636
4637  ac_ext=c
4638ac_cpp='$CPP $CPPFLAGS'
4639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642  ac_success=no
4643  for ac_foobar in foobar FOOBAR; do
4644    for ac_underscore in "" "_"; do
4645      ac_func="$ac_foobar$ac_underscore"
4646      cat >conftest.$ac_ext <<_ACEOF
4647/* confdefs.h.  */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h.  */
4652
4653/* Override any gcc2 internal prototype to avoid an error.  */
4654#ifdef __cplusplus
4655extern "C"
4656#endif
4657/* We use char because int might match the return type of a gcc2
4658   builtin and then its argument prototype would still apply.  */
4659char $ac_func ();
4660#ifdef F77_DUMMY_MAIN
4661
4662#  ifdef __cplusplus
4663     extern "C"
4664#  endif
4665   int F77_DUMMY_MAIN() { return 1; }
4666
4667#endif
4668int
4669main ()
4670{
4671$ac_func ();
4672  ;
4673  return 0;
4674}
4675_ACEOF
4676rm -f conftest.$ac_objext conftest$ac_exeext
4677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4678  (eval $ac_link) 2>conftest.er1
4679  ac_status=$?
4680  grep -v '^ *+' conftest.er1 >conftest.err
4681  rm -f conftest.er1
4682  cat conftest.err >&5
4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684  (exit $ac_status); } &&
4685         { ac_try='test -z "$ac_c_werror_flag"
4686                         || test ! -s conftest.err'
4687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688  (eval $ac_try) 2>&5
4689  ac_status=$?
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); }; } &&
4692         { ac_try='test -s conftest$ac_exeext'
4693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694  (eval $ac_try) 2>&5
4695  ac_status=$?
4696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697  (exit $ac_status); }; }; then
4698  ac_success=yes; break 2
4699else
4700  echo "$as_me: failed program was:" >&5
4701sed 's/^/| /' conftest.$ac_ext >&5
4702
4703fi
4704rm -f conftest.err conftest.$ac_objext \
4705      conftest$ac_exeext conftest.$ac_ext
4706    done
4707  done
4708  ac_ext=f
4709ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4710ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4711ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4712
4713  if test "$ac_success" = "yes"; then
4714     case $ac_foobar in
4715        foobar)
4716           ac_case=lower
4717           ac_foo_bar=foo_bar
4718           ;;
4719        FOOBAR)
4720           ac_case=upper
4721           ac_foo_bar=FOO_BAR
4722           ;;
4723     esac
4724
4725     ac_ext=c
4726ac_cpp='$CPP $CPPFLAGS'
4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730     ac_success_extra=no
4731     for ac_extra in "" "_"; do
4732        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4733        cat >conftest.$ac_ext <<_ACEOF
4734/* confdefs.h.  */
4735_ACEOF
4736cat confdefs.h >>conftest.$ac_ext
4737cat >>conftest.$ac_ext <<_ACEOF
4738/* end confdefs.h.  */
4739
4740/* Override any gcc2 internal prototype to avoid an error.  */
4741#ifdef __cplusplus
4742extern "C"
4743#endif
4744/* We use char because int might match the return type of a gcc2
4745   builtin and then its argument prototype would still apply.  */
4746char $ac_func ();
4747#ifdef F77_DUMMY_MAIN
4748
4749#  ifdef __cplusplus
4750     extern "C"
4751#  endif
4752   int F77_DUMMY_MAIN() { return 1; }
4753
4754#endif
4755int
4756main ()
4757{
4758$ac_func ();
4759  ;
4760  return 0;
4761}
4762_ACEOF
4763rm -f conftest.$ac_objext conftest$ac_exeext
4764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4765  (eval $ac_link) 2>conftest.er1
4766  ac_status=$?
4767  grep -v '^ *+' conftest.er1 >conftest.err
4768  rm -f conftest.er1
4769  cat conftest.err >&5
4770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771  (exit $ac_status); } &&
4772         { ac_try='test -z "$ac_c_werror_flag"
4773                         || test ! -s conftest.err'
4774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775  (eval $ac_try) 2>&5
4776  ac_status=$?
4777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778  (exit $ac_status); }; } &&
4779         { ac_try='test -s conftest$ac_exeext'
4780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781  (eval $ac_try) 2>&5
4782  ac_status=$?
4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784  (exit $ac_status); }; }; then
4785  ac_success_extra=yes; break
4786else
4787  echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
4790fi
4791rm -f conftest.err conftest.$ac_objext \
4792      conftest$ac_exeext conftest.$ac_ext
4793     done
4794     ac_ext=f
4795ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4796ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4798
4799     if test "$ac_success_extra" = "yes"; then
4800        ac_cv_f77_mangling="$ac_case case"
4801        if test -z "$ac_underscore"; then
4802           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4803        else
4804           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4805        fi
4806        if test -z "$ac_extra"; then
4807           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4808        else
4809           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4810        fi
4811      else
4812        ac_cv_f77_mangling="unknown"
4813      fi
4814  else
4815     ac_cv_f77_mangling="unknown"
4816  fi
4817
4818  LIBS=$ac_save_LIBS
4819  rm -f cfortran_test* conftest*
4820else
4821  echo "$as_me: failed program was:" >&5
4822sed 's/^/| /' conftest.$ac_ext >&5
4823
4824{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4825See \`config.log' for more details." >&5
4826echo "$as_me: error: cannot compile a simple Fortran program
4827See \`config.log' for more details." >&2;}
4828   { (exit 1); exit 1; }; }
4829fi
4830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4831
4832fi
4833echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4834echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4835
4836ac_ext=f
4837ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4838ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4840
4841ac_ext=f
4842ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4843ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4845
4846
4847case $ac_cv_f77_mangling in
4848  "lower case, no underscore, no extra underscore")
4849          cat >>confdefs.h <<\_ACEOF
4850#define F77_FUNC(name,NAME) name
4851_ACEOF
4852
4853          cat >>confdefs.h <<\_ACEOF
4854#define F77_FUNC_(name,NAME) name
4855_ACEOF
4856 ;;
4857  "lower case, no underscore, extra underscore")
4858          cat >>confdefs.h <<\_ACEOF
4859#define F77_FUNC(name,NAME) name
4860_ACEOF
4861
4862          cat >>confdefs.h <<\_ACEOF
4863#define F77_FUNC_(name,NAME) name ## _
4864_ACEOF
4865 ;;
4866  "lower case, underscore, no extra underscore")
4867          cat >>confdefs.h <<\_ACEOF
4868#define F77_FUNC(name,NAME) name ## _
4869_ACEOF
4870
4871          cat >>confdefs.h <<\_ACEOF
4872#define F77_FUNC_(name,NAME) name ## _
4873_ACEOF
4874 ;;
4875  "lower case, underscore, extra underscore")
4876          cat >>confdefs.h <<\_ACEOF
4877#define F77_FUNC(name,NAME) name ## _
4878_ACEOF
4879
4880          cat >>confdefs.h <<\_ACEOF
4881#define F77_FUNC_(name,NAME) name ## __
4882_ACEOF
4883 ;;
4884  "upper case, no underscore, no extra underscore")
4885          cat >>confdefs.h <<\_ACEOF
4886#define F77_FUNC(name,NAME) NAME
4887_ACEOF
4888
4889          cat >>confdefs.h <<\_ACEOF
4890#define F77_FUNC_(name,NAME) NAME
4891_ACEOF
4892 ;;
4893  "upper case, no underscore, extra underscore")
4894          cat >>confdefs.h <<\_ACEOF
4895#define F77_FUNC(name,NAME) NAME
4896_ACEOF
4897
4898          cat >>confdefs.h <<\_ACEOF
4899#define F77_FUNC_(name,NAME) NAME ## _
4900_ACEOF
4901 ;;
4902  "upper case, underscore, no extra underscore")
4903          cat >>confdefs.h <<\_ACEOF
4904#define F77_FUNC(name,NAME) NAME ## _
4905_ACEOF
4906
4907          cat >>confdefs.h <<\_ACEOF
4908#define F77_FUNC_(name,NAME) NAME ## _
4909_ACEOF
4910 ;;
4911  "upper case, underscore, extra underscore")
4912          cat >>confdefs.h <<\_ACEOF
4913#define F77_FUNC(name,NAME) NAME ## _
4914_ACEOF
4915
4916          cat >>confdefs.h <<\_ACEOF
4917#define F77_FUNC_(name,NAME) NAME ## __
4918_ACEOF
4919 ;;
4920  *)
4921          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4922echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4923          ;;
4924esac
4925
4926ac_ext=f
4927ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4928ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4930
4931
4932case $build in
4933# The following is a fix to define FLIBS for ifort on Windows
4934   *-cygwin*)
4935     case $F77 in
4936       ifort | */ifort)
4937           FLIBS="libifcorert.lib libcmt.lib /link /NODEFAULTLIB:libc.lib $LIBS";;
4938     esac;;
4939   *-hp-*)
4940       FLIBS="$FLIBS -lm";;
4941   *-ibm-*)
4942       FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4943esac
4944
4945ac_ext=c
4946ac_cpp='$CPP $CPPFLAGS'
4947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950
4951
4952if test -n "$ac_tool_prefix"; then
4953  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4954set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4955echo "$as_me:$LINENO: checking for $ac_word" >&5
4956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4957if test "${ac_cv_prog_RANLIB+set}" = set; then
4958  echo $ECHO_N "(cached) $ECHO_C" >&6
4959else
4960  if test -n "$RANLIB"; then
4961  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4962else
4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964for as_dir in $PATH
4965do
4966  IFS=$as_save_IFS
4967  test -z "$as_dir" && as_dir=.
4968  for ac_exec_ext in '' $ac_executable_extensions; do
4969  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972    break 2
4973  fi
4974done
4975done
4976
4977fi
4978fi
4979RANLIB=$ac_cv_prog_RANLIB
4980if test -n "$RANLIB"; then
4981  echo "$as_me:$LINENO: result: $RANLIB" >&5
4982echo "${ECHO_T}$RANLIB" >&6
4983else
4984  echo "$as_me:$LINENO: result: no" >&5
4985echo "${ECHO_T}no" >&6
4986fi
4987
4988fi
4989if test -z "$ac_cv_prog_RANLIB"; then
4990  ac_ct_RANLIB=$RANLIB
4991  # Extract the first word of "ranlib", so it can be a program name with args.
4992set dummy ranlib; ac_word=$2
4993echo "$as_me:$LINENO: checking for $ac_word" >&5
4994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4995if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4996  echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998  if test -n "$ac_ct_RANLIB"; then
4999  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5000else
5001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002for as_dir in $PATH
5003do
5004  IFS=$as_save_IFS
5005  test -z "$as_dir" && as_dir=.
5006  for ac_exec_ext in '' $ac_executable_extensions; do
5007  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008    ac_cv_prog_ac_ct_RANLIB="ranlib"
5009    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010    break 2
5011  fi
5012done
5013done
5014
5015  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5016fi
5017fi
5018ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5019if test -n "$ac_ct_RANLIB"; then
5020  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5021echo "${ECHO_T}$ac_ct_RANLIB" >&6
5022else
5023  echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6
5025fi
5026
5027  RANLIB=$ac_ct_RANLIB
5028else
5029  RANLIB="$ac_cv_prog_RANLIB"
5030fi
5031
5032
5033
5034
5035echo "$as_me:$LINENO: checking whether ln -s works" >&5
5036echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5037LN_S=$as_ln_s
5038if test "$LN_S" = "ln -s"; then
5039  echo "$as_me:$LINENO: result: yes" >&5
5040echo "${ECHO_T}yes" >&6
5041else
5042  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5043echo "${ECHO_T}no, using $LN_S" >&6
5044fi
5045
5046
5047# Stuff for automake
5048am__api_version="1.9"
5049# Find a good install program.  We prefer a C program (faster),
5050# so one script is as good as another.  But avoid the broken or
5051# incompatible versions:
5052# SysV /etc/install, /usr/sbin/install
5053# SunOS /usr/etc/install
5054# IRIX /sbin/install
5055# AIX /bin/install
5056# AmigaOS /C/install, which installs bootblocks on floppy discs
5057# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5058# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5059# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5060# OS/2's system install, which has a completely different semantic
5061# ./install, which can be erroneously created by make from ./install.sh.
5062echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5063echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5064if test -z "$INSTALL"; then
5065if test "${ac_cv_path_install+set}" = set; then
5066  echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
5068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071  IFS=$as_save_IFS
5072  test -z "$as_dir" && as_dir=.
5073  # Account for people who put trailing slashes in PATH elements.
5074case $as_dir/ in
5075  ./ | .// | /cC/* | \
5076  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5077  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5078  /usr/ucb/* ) ;;
5079  *)
5080    # OSF1 and SCO ODT 3.0 have their own names for install.
5081    # Don't use installbsd from OSF since it installs stuff as root
5082    # by default.
5083    for ac_prog in ginstall scoinst install; do
5084      for ac_exec_ext in '' $ac_executable_extensions; do
5085        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5086          if test $ac_prog = install &&
5087            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5088            # AIX install.  It has an incompatible calling convention.
5089            :
5090          elif test $ac_prog = install &&
5091            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5092            # program-specific install script used by HP pwplus--don't use.
5093            :
5094          else
5095            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5096            break 3
5097          fi
5098        fi
5099      done
5100    done
5101    ;;
5102esac
5103done
5104
5105
5106fi
5107  if test "${ac_cv_path_install+set}" = set; then
5108    INSTALL=$ac_cv_path_install
5109  else
5110    # As a last resort, use the slow shell script.  We don't cache a
5111    # path for INSTALL within a source directory, because that will
5112    # break other packages using the cache if that directory is
5113    # removed, or if the path is relative.
5114    INSTALL=$ac_install_sh
5115  fi
5116fi
5117echo "$as_me:$LINENO: result: $INSTALL" >&5
5118echo "${ECHO_T}$INSTALL" >&6
5119
5120# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5121# It thinks the first close brace ends the variable substitution.
5122test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5123
5124test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5125
5126test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5127
5128echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5129echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5130# Just in case
5131sleep 1
5132echo timestamp > conftest.file
5133# Do `set' in a subshell so we don't clobber the current shell's
5134# arguments.  Must try -L first in case configure is actually a
5135# symlink; some systems play weird games with the mod time of symlinks
5136# (eg FreeBSD returns the mod time of the symlink's containing
5137# directory).
5138if (
5139   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5140   if test "$*" = "X"; then
5141      # -L didn't work.
5142      set X `ls -t $srcdir/configure conftest.file`
5143   fi
5144   rm -f conftest.file
5145   if test "$*" != "X $srcdir/configure conftest.file" \
5146      && test "$*" != "X conftest.file $srcdir/configure"; then
5147
5148      # If neither matched, then we have a broken ls.  This can happen
5149      # if, for instance, CONFIG_SHELL is bash and it inherits a
5150      # broken ls alias from the environment.  This has actually
5151      # happened.  Such a system could not be considered "sane".
5152      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5153alias in your environment" >&5
5154echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5155alias in your environment" >&2;}
5156   { (exit 1); exit 1; }; }
5157   fi
5158
5159   test "$2" = conftest.file
5160   )
5161then
5162   # Ok.
5163   :
5164else
5165   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5166Check your system clock" >&5
5167echo "$as_me: error: newly created file is older than distributed files!
5168Check your system clock" >&2;}
5169   { (exit 1); exit 1; }; }
5170fi
5171echo "$as_me:$LINENO: result: yes" >&5
5172echo "${ECHO_T}yes" >&6
5173test "$program_prefix" != NONE &&
5174  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5175# Use a double $ so make ignores it.
5176test "$program_suffix" != NONE &&
5177  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5178# Double any \ or $.  echo might interpret backslashes.
5179# By default was `s,x,x', remove it if useless.
5180cat <<\_ACEOF >conftest.sed
5181s/[\\$]/&&/g;s/;s,x,x,$//
5182_ACEOF
5183program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5184rm conftest.sed
5185
5186# expand $ac_aux_dir to an absolute path
5187am_aux_dir=`cd $ac_aux_dir && pwd`
5188
5189test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5190# Use eval to expand $SHELL
5191if eval "$MISSING --run true"; then
5192  am_missing_run="$MISSING --run "
5193else
5194  am_missing_run=
5195  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5196echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5197fi
5198
5199if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5200  # We used to keeping the `.' as first argument, in order to
5201  # allow $(mkdir_p) to be used without argument.  As in
5202  #   $(mkdir_p) $(somedir)
5203  # where $(somedir) is conditionally defined.  However this is wrong
5204  # for two reasons:
5205  #  1. if the package is installed by a user who cannot write `.'
5206  #     make install will fail,
5207  #  2. the above comment should most certainly read
5208  #     $(mkdir_p) $(DESTDIR)$(somedir)
5209  #     so it does not work when $(somedir) is undefined and
5210  #     $(DESTDIR) is not.
5211  #  To support the latter case, we have to write
5212  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5213  #  so the `.' trick is pointless.
5214  mkdir_p='mkdir -p --'
5215else
5216  # On NextStep and OpenStep, the `mkdir' command does not
5217  # recognize any option.  It will interpret all options as
5218  # directories to create, and then abort because `.' already
5219  # exists.
5220  for d in ./-p ./--version;
5221  do
5222    test -d $d && rmdir $d
5223  done
5224  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5225  if test -f "$ac_aux_dir/mkinstalldirs"; then
5226    mkdir_p='$(mkinstalldirs)'
5227  else
5228    mkdir_p='$(install_sh) -d'
5229  fi
5230fi
5231
5232for ac_prog in gawk mawk nawk awk
5233do
5234  # Extract the first word of "$ac_prog", so it can be a program name with args.
5235set dummy $ac_prog; ac_word=$2
5236echo "$as_me:$LINENO: checking for $ac_word" >&5
5237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238if test "${ac_cv_prog_AWK+set}" = set; then
5239  echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241  if test -n "$AWK"; then
5242  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5243else
5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247  IFS=$as_save_IFS
5248  test -z "$as_dir" && as_dir=.
5249  for ac_exec_ext in '' $ac_executable_extensions; do
5250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251    ac_cv_prog_AWK="$ac_prog"
5252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253    break 2
5254  fi
5255done
5256done
5257
5258fi
5259fi
5260AWK=$ac_cv_prog_AWK
5261if test -n "$AWK"; then
5262  echo "$as_me:$LINENO: result: $AWK" >&5
5263echo "${ECHO_T}$AWK" >&6
5264else
5265  echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267fi
5268
5269  test -n "$AWK" && break
5270done
5271
5272echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5273echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5274set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5275if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5276  echo $ECHO_N "(cached) $ECHO_C" >&6
5277else
5278  cat >conftest.make <<\_ACEOF
5279all:
5280        @echo 'ac_maketemp="$(MAKE)"'
5281_ACEOF
5282# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5283eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5284if test -n "$ac_maketemp"; then
5285  eval ac_cv_prog_make_${ac_make}_set=yes
5286else
5287  eval ac_cv_prog_make_${ac_make}_set=no
5288fi
5289rm -f conftest.make
5290fi
5291if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5292  echo "$as_me:$LINENO: result: yes" >&5
5293echo "${ECHO_T}yes" >&6
5294  SET_MAKE=
5295else
5296  echo "$as_me:$LINENO: result: no" >&5
5297echo "${ECHO_T}no" >&6
5298  SET_MAKE="MAKE=${MAKE-make}"
5299fi
5300
5301rm -rf .tst 2>/dev/null
5302mkdir .tst 2>/dev/null
5303if test -d .tst; then
5304  am__leading_dot=.
5305else
5306  am__leading_dot=_
5307fi
5308rmdir .tst 2>/dev/null
5309
5310DEPDIR="${am__leading_dot}deps"
5311
5312          ac_config_commands="$ac_config_commands depfiles"
5313
5314
5315am_make=${MAKE-make}
5316cat > confinc << 'END'
5317am__doit:
5318        @echo done
5319.PHONY: am__doit
5320END
5321# If we don't find an include directive, just comment out the code.
5322echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5323echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5324am__include="#"
5325am__quote=
5326_am_result=none
5327# First try GNU make style include.
5328echo "include confinc" > confmf
5329# We grep out `Entering directory' and `Leaving directory'
5330# messages which can occur if `w' ends up in MAKEFLAGS.
5331# In particular we don't look at `^make:' because GNU make might
5332# be invoked under some other name (usually "gmake"), in which
5333# case it prints its new name instead of `make'.
5334if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5335   am__include=include
5336   am__quote=
5337   _am_result=GNU
5338fi
5339# Now try BSD make style include.
5340if test "$am__include" = "#"; then
5341   echo '.include "confinc"' > confmf
5342   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5343      am__include=.include
5344      am__quote="\""
5345      _am_result=BSD
5346   fi
5347fi
5348
5349
5350echo "$as_me:$LINENO: result: $_am_result" >&5
5351echo "${ECHO_T}$_am_result" >&6
5352rm -f confinc confmf
5353
5354# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5355if test "${enable_dependency_tracking+set}" = set; then
5356  enableval="$enable_dependency_tracking"
5357
5358fi;
5359if test "x$enable_dependency_tracking" != xno; then
5360  am_depcomp="$ac_aux_dir/depcomp"
5361  AMDEPBACKSLASH='\'
5362fi
5363
5364
5365if test "x$enable_dependency_tracking" != xno; then
5366  AMDEP_TRUE=
5367  AMDEP_FALSE='#'
5368else
5369  AMDEP_TRUE='#'
5370  AMDEP_FALSE=
5371fi
5372
5373
5374
5375# test to see if srcdir already configured
5376if test "`cd $srcdir && pwd`" != "`pwd`" &&
5377   test -f $srcdir/config.status; then
5378  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5379echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5380   { (exit 1); exit 1; }; }
5381fi
5382
5383# test whether we have cygpath
5384if test -z "$CYGPATH_W"; then
5385  if (cygpath --version) >/dev/null 2>/dev/null; then
5386    CYGPATH_W='cygpath -w'
5387  else
5388    CYGPATH_W=echo
5389  fi
5390fi
5391
5392
5393# Define the identity of the package.
5394 PACKAGE='ipopt'
5395 VERSION='3.0.0'
5396
5397
5398cat >>confdefs.h <<_ACEOF
5399#define PACKAGE "$PACKAGE"
5400_ACEOF
5401
5402
5403cat >>confdefs.h <<_ACEOF
5404#define VERSION "$VERSION"
5405_ACEOF
5406
5407# Some tools Automake needs.
5408
5409ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5410
5411
5412AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5413
5414
5415AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5416
5417
5418AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5419
5420
5421MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5422
5423install_sh=${install_sh-"$am_aux_dir/install-sh"}
5424
5425# Installed binaries are usually stripped using `strip' when the user
5426# run `make install-strip'.  However `strip' might not be the right
5427# tool to use in cross-compilation environments, therefore Automake
5428# will honor the `STRIP' environment variable to overrule this program.
5429if test "$cross_compiling" != no; then
5430  if test -n "$ac_tool_prefix"; then
5431  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5432set dummy ${ac_tool_prefix}strip; ac_word=$2
5433echo "$as_me:$LINENO: checking for $ac_word" >&5
5434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435if test "${ac_cv_prog_STRIP+set}" = set; then
5436  echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438  if test -n "$STRIP"; then
5439  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5440else
5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444  IFS=$as_save_IFS
5445  test -z "$as_dir" && as_dir=.
5446  for ac_exec_ext in '' $ac_executable_extensions; do
5447  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5449    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450    break 2
5451  fi
5452done
5453done
5454
5455fi
5456fi
5457STRIP=$ac_cv_prog_STRIP
5458if test -n "$STRIP"; then
5459  echo "$as_me:$LINENO: result: $STRIP" >&5
5460echo "${ECHO_T}$STRIP" >&6
5461else
5462  echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6
5464fi
5465
5466fi
5467if test -z "$ac_cv_prog_STRIP"; then
5468  ac_ct_STRIP=$STRIP
5469  # Extract the first word of "strip", so it can be a program name with args.
5470set dummy strip; ac_word=$2
5471echo "$as_me:$LINENO: checking for $ac_word" >&5
5472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5473if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5474  echo $ECHO_N "(cached) $ECHO_C" >&6
5475else
5476  if test -n "$ac_ct_STRIP"; then
5477  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482  IFS=$as_save_IFS
5483  test -z "$as_dir" && as_dir=.
5484  for ac_exec_ext in '' $ac_executable_extensions; do
5485  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486    ac_cv_prog_ac_ct_STRIP="strip"
5487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488    break 2
5489  fi
5490done
5491done
5492
5493  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5494fi
5495fi
5496ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5497if test -n "$ac_ct_STRIP"; then
5498  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5499echo "${ECHO_T}$ac_ct_STRIP" >&6
5500else
5501  echo "$as_me:$LINENO: result: no" >&5
5502echo "${ECHO_T}no" >&6
5503fi
5504
5505  STRIP=$ac_ct_STRIP
5506else
5507  STRIP="$ac_cv_prog_STRIP"
5508fi
5509
5510fi
5511INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5512
5513# We need awk for the "check" target.  The system "awk" is bad on
5514# some platforms.
5515# Always define AMTAR for backward compatibility.
5516
5517AMTAR=${AMTAR-"${am_missing_run}tar"}
5518
5519am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5520
5521
5522
5523
5524depcc="$CC"   am_compiler_list=
5525
5526echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5527echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5528if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5529  echo $ECHO_N "(cached) $ECHO_C" >&6
5530else
5531  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5532  # We make a subdir and do the tests there.  Otherwise we can end up
5533  # making bogus files that we don't know about and never remove.  For
5534  # instance it was reported that on HP-UX the gcc test will end up
5535  # making a dummy file named `D' -- because `-MD' means `put the output
5536  # in D'.
5537  mkdir conftest.dir
5538  # Copy depcomp to subdir because otherwise we won't find it if we're
5539  # using a relative directory.
5540  cp "$am_depcomp" conftest.dir
5541  cd conftest.dir
5542  # We will build objects and dependencies in a subdirectory because
5543  # it helps to detect inapplicable dependency modes.  For instance
5544  # both Tru64's cc and ICC support -MD to output dependencies as a
5545  # side effect of compilation, but ICC will put the dependencies in
5546  # the current directory while Tru64 will put them in the object
5547  # directory.
5548  mkdir sub
5549
5550  am_cv_CC_dependencies_compiler_type=none
5551  if test "$am_compiler_list" = ""; then
5552     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5553  fi
5554  for depmode in $am_compiler_list; do
5555    # Setup a source with many dependencies, because some compilers
5556    # like to wrap large dependency lists on column 80 (with \), and
5557    # we should not choose a depcomp mode which is confused by this.
5558    #
5559    # We need to recreate these files for each test, as the compiler may
5560    # overwrite some of them when testing with obscure command lines.
5561    # This happens at least with the AIX C compiler.
5562    : > sub/conftest.c
5563    for i in 1 2 3 4 5 6; do
5564      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5565      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5566      # Solaris 8's {/usr,}/bin/sh.
5567      touch sub/conftst$i.h
5568    done
5569    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5570
5571    case $depmode in
5572    nosideeffect)
5573      # after this tag, mechanisms are not by side-effect, so they'll
5574      # only be used when explicitly requested
5575      if test "x$enable_dependency_tracking" = xyes; then
5576        continue
5577      else
5578        break
5579      fi
5580      ;;
5581    none) break ;;
5582    esac
5583    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5584    # mode.  It turns out that the SunPro C++ compiler does not properly
5585    # handle `-M -o', and we need to detect this.
5586    if depmode=$depmode \
5587       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5588       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5589       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5590         >/dev/null 2>conftest.err &&
5591       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5592       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5593       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5594      # icc doesn't choke on unknown options, it will just issue warnings
5595      # or remarks (even with -Werror).  So we grep stderr for any message
5596      # that says an option was ignored or not supported.
5597      # When given -MP, icc 7.0 and 7.1 complain thusly:
5598      #   icc: Command line warning: ignoring option '-M'; no argument required
5599      # The diagnosis changed in icc 8.0:
5600      #   icc: Command line remark: option '-MP' not supported
5601      if (grep 'ignoring option' conftest.err ||
5602          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5603        am_cv_CC_dependencies_compiler_type=$depmode
5604        break
5605      fi
5606    fi
5607  done
5608
5609  cd ..
5610  rm -rf conftest.dir
5611else
5612  am_cv_CC_dependencies_compiler_type=none
5613fi
5614
5615fi
5616echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5617echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5618CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5619
5620
5621
5622if
5623  test "x$enable_dependency_tracking" != xno \
5624  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5625  am__fastdepCC_TRUE=
5626  am__fastdepCC_FALSE='#'
5627else
5628  am__fastdepCC_TRUE='#'
5629  am__fastdepCC_FALSE=
5630fi
5631
5632
5633depcc="$CXX"  am_compiler_list=
5634
5635echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5636echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5637if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5638  echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5641  # We make a subdir and do the tests there.  Otherwise we can end up
5642  # making bogus files that we don't know about and never remove.  For
5643  # instance it was reported that on HP-UX the gcc test will end up
5644  # making a dummy file named `D' -- because `-MD' means `put the output
5645  # in D'.
5646  mkdir conftest.dir
5647  # Copy depcomp to subdir because otherwise we won't find it if we're
5648  # using a relative directory.
5649  cp "$am_depcomp" conftest.dir
5650  cd conftest.dir
5651  # We will build objects and dependencies in a subdirectory because
5652  # it helps to detect inapplicable dependency modes.  For instance
5653  # both Tru64's cc and ICC support -MD to output dependencies as a
5654  # side effect of compilation, but ICC will put the dependencies in
5655  # the current directory while Tru64 will put them in the object
5656  # directory.
5657  mkdir sub
5658
5659  am_cv_CXX_dependencies_compiler_type=none
5660  if test "$am_compiler_list" = ""; then
5661     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5662  fi
5663  for depmode in $am_compiler_list; do
5664    # Setup a source with many dependencies, because some compilers
5665    # like to wrap large dependency lists on column 80 (with \), and
5666    # we should not choose a depcomp mode which is confused by this.
5667    #
5668    # We need to recreate these files for each test, as the compiler may
5669    # overwrite some of them when testing with obscure command lines.
5670    # This happens at least with the AIX C compiler.
5671    : > sub/conftest.c
5672    for i in 1 2 3 4 5 6; do
5673      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5674      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5675      # Solaris 8's {/usr,}/bin/sh.
5676      touch sub/conftst$i.h
5677    done
5678    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5679
5680    case $depmode in
5681    nosideeffect)
5682      # after this tag, mechanisms are not by side-effect, so they'll
5683      # only be used when explicitly requested
5684      if test "x$enable_dependency_tracking" = xyes; then
5685        continue
5686      else
5687        break
5688      fi
5689      ;;
5690    none) break ;;
5691    esac
5692    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5693    # mode.  It turns out that the SunPro C++ compiler does not properly
5694    # handle `-M -o', and we need to detect this.
5695    if depmode=$depmode \
5696       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5697       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5698       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5699         >/dev/null 2>conftest.err &&
5700       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5701       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5702       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5703      # icc doesn't choke on unknown options, it will just issue warnings
5704      # or remarks (even with -Werror).  So we grep stderr for any message
5705      # that says an option was ignored or not supported.
5706      # When given -MP, icc 7.0 and 7.1 complain thusly:
5707      #   icc: Command line warning: ignoring option '-M'; no argument required
5708      # The diagnosis changed in icc 8.0:
5709      #   icc: Command line remark: option '-MP' not supported
5710      if (grep 'ignoring option' conftest.err ||
5711          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5712        am_cv_CXX_dependencies_compiler_type=$depmode
5713        break
5714      fi
5715    fi
5716  done
5717
5718  cd ..
5719  rm -rf conftest.dir
5720else
5721  am_cv_CXX_dependencies_compiler_type=none
5722fi
5723
5724fi
5725echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5726echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5727CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5728
5729
5730
5731if
5732  test "x$enable_dependency_tracking" != xno \
5733  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5734  am__fastdepCXX_TRUE=
5735  am__fastdepCXX_FALSE='#'
5736else
5737  am__fastdepCXX_TRUE='#'
5738  am__fastdepCXX_FALSE=
5739fi
5740
5741
5742
5743echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5744echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5745    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5746if test "${enable_maintainer_mode+set}" = set; then
5747  enableval="$enable_maintainer_mode"
5748  USE_MAINTAINER_MODE=$enableval
5749else
5750  USE_MAINTAINER_MODE=no
5751fi;
5752  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5753echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5754
5755
5756if test $USE_MAINTAINER_MODE = yes; then
5757  MAINTAINER_MODE_TRUE=
5758  MAINTAINER_MODE_FALSE='#'
5759else
5760  MAINTAINER_MODE_TRUE='#'
5761  MAINTAINER_MODE_FALSE=
5762fi
5763
5764  MAINT=$MAINTAINER_MODE_TRUE
5765
5766
5767
5768############################################################################
5769############################################################################
5770#                   Stuff that we need for C++ programs                    #
5771############################################################################
5772############################################################################
5773
5774ac_ext=cc
5775ac_cpp='$CXXCPP $CPPFLAGS'
5776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5779
5780
5781################
5782# Header Files #
5783################
5784
5785
5786
5787ac_ext=cc
5788ac_cpp='$CXXCPP $CPPFLAGS'
5789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5792echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5793echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5794if test -z "$CXXCPP"; then
5795  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5796  echo $ECHO_N "(cached) $ECHO_C" >&6
5797else
5798      # Double quotes because CXXCPP needs to be expanded
5799    for CXXCPP in "$CXX -E" "/lib/cpp"
5800    do
5801      ac_preproc_ok=false
5802for ac_cxx_preproc_warn_flag in '' yes
5803do
5804  # Use a header file that comes with gcc, so configuring glibc
5805  # with a fresh cross-compiler works.
5806  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5807  # <limits.h> exists even on freestanding compilers.
5808  # On the NeXT, cc -E runs the code through the compiler's parser,
5809  # not just through cpp. "Syntax error" is here to catch this case.
5810  cat >conftest.$ac_ext <<_ACEOF
5811/* confdefs.h.  */
5812_ACEOF
5813cat confdefs.h >>conftest.$ac_ext
5814cat >>conftest.$ac_ext <<_ACEOF
5815/* end confdefs.h.  */
5816#ifdef __STDC__
5817# include <limits.h>
5818#else
5819# include <assert.h>
5820#endif
5821                     Syntax error
5822_ACEOF
5823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5824  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5825  ac_status=$?
5826  grep -v '^ *+' conftest.er1 >conftest.err
5827  rm -f conftest.er1
5828  cat conftest.err >&5
5829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830  (exit $ac_status); } >/dev/null; then
5831  if test -s conftest.err; then
5832    ac_cpp_err=$ac_cxx_preproc_warn_flag
5833    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5834  else
5835    ac_cpp_err=
5836  fi
5837else
5838  ac_cpp_err=yes
5839fi
5840if test -z "$ac_cpp_err"; then
5841  :
5842else
5843  echo "$as_me: failed program was:" >&5
5844sed 's/^/| /' conftest.$ac_ext >&5
5845
5846  # Broken: fails on valid input.
5847continue
5848fi
5849rm -f conftest.err conftest.$ac_ext
5850
5851  # OK, works on sane cases.  Now check whether non-existent headers
5852  # can be detected and how.
5853  cat >conftest.$ac_ext <<_ACEOF
5854/* confdefs.h.  */
5855_ACEOF
5856cat confdefs.h >>conftest.$ac_ext
5857cat >>conftest.$ac_ext <<_ACEOF
5858/* end confdefs.h.  */
5859#include <ac_nonexistent.h>
5860_ACEOF
5861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5862  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5863  ac_status=$?
5864  grep -v '^ *+' conftest.er1 >conftest.err
5865  rm -f conftest.er1
5866  cat conftest.err >&5
5867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868  (exit $ac_status); } >/dev/null; then
5869  if test -s conftest.err; then
5870    ac_cpp_err=$ac_cxx_preproc_warn_flag
5871    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5872  else
5873    ac_cpp_err=
5874  fi
5875else
5876  ac_cpp_err=yes
5877fi
5878if test -z "$ac_cpp_err"; then
5879  # Broken: success on invalid input.
5880continue
5881else
5882  echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885  # Passes both tests.
5886ac_preproc_ok=:
5887break
5888fi
5889rm -f conftest.err conftest.$ac_ext
5890
5891done
5892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5893rm -f conftest.err conftest.$ac_ext
5894if $ac_preproc_ok; then
5895  break
5896fi
5897
5898    done
5899    ac_cv_prog_CXXCPP=$CXXCPP
5900
5901fi
5902  CXXCPP=$ac_cv_prog_CXXCPP
5903else
5904  ac_cv_prog_CXXCPP=$CXXCPP
5905fi
5906echo "$as_me:$LINENO: result: $CXXCPP" >&5
5907echo "${ECHO_T}$CXXCPP" >&6
5908ac_preproc_ok=false
5909for ac_cxx_preproc_warn_flag in '' yes
5910do
5911  # Use a header file that comes with gcc, so configuring glibc
5912  # with a fresh cross-compiler works.
5913  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5914  # <limits.h> exists even on freestanding compilers.
5915  # On the NeXT, cc -E runs the code through the compiler's parser,
5916  # not just through cpp. "Syntax error" is here to catch this case.
5917  cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h.  */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h.  */
5923#ifdef __STDC__
5924# include <limits.h>
5925#else
5926# include <assert.h>
5927#endif
5928                     Syntax error
5929_ACEOF
5930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5931  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5932  ac_status=$?
5933  grep -v '^ *+' conftest.er1 >conftest.err
5934  rm -f conftest.er1
5935  cat conftest.err >&5
5936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937  (exit $ac_status); } >/dev/null; then
5938  if test -s conftest.err; then
5939    ac_cpp_err=$ac_cxx_preproc_warn_flag
5940    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5941  else
5942    ac_cpp_err=
5943  fi
5944else
5945  ac_cpp_err=yes
5946fi
5947if test -z "$ac_cpp_err"; then
5948  :
5949else
5950  echo "$as_me: failed program was:" >&5
5951sed 's/^/| /' conftest.$ac_ext >&5
5952
5953  # Broken: fails on valid input.
5954continue
5955fi
5956rm -f conftest.err conftest.$ac_ext
5957
5958  # OK, works on sane cases.  Now check whether non-existent headers
5959  # can be detected and how.
5960  cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h.  */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h.  */
5966#include <ac_nonexistent.h>
5967_ACEOF
5968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5969  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5970  ac_status=$?
5971  grep -v '^ *+' conftest.er1 >conftest.err
5972  rm -f conftest.er1
5973  cat conftest.err >&5
5974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); } >/dev/null; then
5976  if test -s conftest.err; then
5977    ac_cpp_err=$ac_cxx_preproc_warn_flag
5978    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5979  else
5980    ac_cpp_err=
5981  fi
5982else
5983  ac_cpp_err=yes
5984fi
5985if test -z "$ac_cpp_err"; then
5986  # Broken: success on invalid input.
5987continue
5988else
5989  echo "$as_me: failed program was:" >&5
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
5992  # Passes both tests.
5993ac_preproc_ok=:
5994break
5995fi
5996rm -f conftest.err conftest.$ac_ext
5997
5998done
5999# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6000rm -f conftest.err conftest.$ac_ext
6001if $ac_preproc_ok; then
6002  :
6003else
6004  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6005See \`config.log' for more details." >&5
6006echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6007See \`config.log' for more details." >&2;}
6008   { (exit 1); exit 1; }; }
6009fi
6010
6011ac_ext=cc
6012ac_cpp='$CXXCPP $CPPFLAGS'
6013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6016
6017
6018echo "$as_me:$LINENO: checking for egrep" >&5
6019echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6020if test "${ac_cv_prog_egrep+set}" = set; then
6021  echo $ECHO_N "(cached) $ECHO_C" >&6
6022else
6023  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6024    then ac_cv_prog_egrep='grep -E'
6025    else ac_cv_prog_egrep='egrep'
6026    fi
6027fi
6028echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6029echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6030 EGREP=$ac_cv_prog_egrep
6031
6032
6033echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6034echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6035if test "${ac_cv_header_stdc+set}" = set; then
6036  echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038  cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h.  */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h.  */
6044#include <stdlib.h>
6045#include <stdarg.h>
6046#include <string.h>
6047#include <float.h>
6048
6049#ifdef F77_DUMMY_MAIN
6050
6051#  ifdef __cplusplus
6052     extern "C"
6053#  endif
6054   int F77_DUMMY_MAIN() { return 1; }
6055
6056#endif
6057int
6058main ()
6059{
6060
6061  ;
6062  return 0;
6063}
6064_ACEOF
6065rm -f conftest.$ac_objext
6066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067  (eval $ac_compile) 2>conftest.er1
6068  ac_status=$?
6069  grep -v '^ *+' conftest.er1 >conftest.err
6070  rm -f conftest.er1
6071  cat conftest.err >&5
6072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073  (exit $ac_status); } &&
6074         { ac_try='test -z "$ac_cxx_werror_flag"
6075                         || test ! -s conftest.err'
6076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077  (eval $ac_try) 2>&5
6078  ac_status=$?
6079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080  (exit $ac_status); }; } &&
6081         { ac_try='test -s conftest.$ac_objext'
6082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083  (eval $ac_try) 2>&5
6084  ac_status=$?
6085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086  (exit $ac_status); }; }; then
6087  ac_cv_header_stdc=yes
6088else
6089  echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
6092ac_cv_header_stdc=no
6093fi
6094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6095
6096if test $ac_cv_header_stdc = yes; then
6097  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6098  cat >conftest.$ac_ext <<_ACEOF
6099/* confdefs.h.  */
6100_ACEOF
6101cat confdefs.h >>conftest.$ac_ext
6102cat >>conftest.$ac_ext <<_ACEOF
6103/* end confdefs.h.  */
6104#include <string.h>
6105
6106_ACEOF
6107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108  $EGREP "memchr" >/dev/null 2>&1; then
6109  :
6110else
6111  ac_cv_header_stdc=no
6112fi
6113rm -f conftest*
6114
6115fi
6116
6117if test $ac_cv_header_stdc = yes; then
6118  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6119  cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h.  */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h.  */
6125#include <stdlib.h>
6126
6127_ACEOF
6128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129  $EGREP "free" >/dev/null 2>&1; then
6130  :
6131else
6132  ac_cv_header_stdc=no
6133fi
6134rm -f conftest*
6135
6136fi
6137
6138if test $ac_cv_header_stdc = yes; then
6139  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6140  if test "$cross_compiling" = yes; then
6141  :
6142else
6143  cat >conftest.$ac_ext <<_ACEOF
6144/* confdefs.h.  */
6145_ACEOF
6146cat confdefs.h >>conftest.$ac_ext
6147cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h.  */
6149#include <ctype.h>
6150#if ((' ' & 0x0FF) == 0x020)
6151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6153#else
6154# define ISLOWER(c) \
6155                   (('a' <= (c) && (c) <= 'i') \
6156                     || ('j' <= (c) && (c) <= 'r') \
6157                     || ('s' <= (c) && (c) <= 'z'))
6158# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6159#endif
6160
6161#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6162int
6163main ()
6164{
6165  int i;
6166  for (i = 0; i < 256; i++)
6167    if (XOR (islower (i), ISLOWER (i))
6168        || toupper (i) != TOUPPER (i))
6169      exit(2);
6170  exit (0);
6171}
6172_ACEOF
6173rm -f conftest$ac_exeext
6174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175  (eval $ac_link) 2>&5
6176  ac_status=$?
6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180  (eval $ac_try) 2>&5
6181  ac_status=$?
6182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183  (exit $ac_status); }; }; then
6184  :
6185else
6186  echo "$as_me: program exited with status $ac_status" >&5
6187echo "$as_me: failed program was:" >&5
6188sed 's/^/| /' conftest.$ac_ext >&5
6189
6190( exit $ac_status )
6191ac_cv_header_stdc=no
6192fi
6193rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6194fi
6195fi
6196fi
6197echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6198echo "${ECHO_T}$ac_cv_header_stdc" >&6
6199if test $ac_cv_header_stdc = yes; then
6200
6201cat >>confdefs.h <<\_ACEOF
6202#define STDC_HEADERS 1
6203_ACEOF
6204
6205fi
6206
6207# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6218                  inttypes.h stdint.h unistd.h
6219do
6220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221echo "$as_me:$LINENO: checking for $ac_header" >&5
6222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6223if eval "test \"\${$as_ac_Header+set}\" = set"; then
6224  echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226  cat >conftest.$ac_ext <<_ACEOF
6227/* confdefs.h.  */
6228_ACEOF
6229cat confdefs.h >>conftest.$ac_ext
6230cat >>conftest.$ac_ext <<_ACEOF
6231/* end confdefs.h.  */
6232$ac_includes_default
6233
6234#include <$ac_header>
6235_ACEOF
6236rm -f conftest.$ac_objext
6237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238  (eval $ac_compile) 2>conftest.er1
6239  ac_status=$?
6240  grep -v '^ *+' conftest.er1 >conftest.err
6241  rm -f conftest.er1
6242  cat conftest.err >&5
6243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244  (exit $ac_status); } &&
6245         { ac_try='test -z "$ac_cxx_werror_flag"
6246                         || test ! -s conftest.err'
6247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248  (eval $ac_try) 2>&5
6249  ac_status=$?
6250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251  (exit $ac_status); }; } &&
6252         { ac_try='test -s conftest.$ac_objext'
6253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254  (eval $ac_try) 2>&5
6255  ac_status=$?
6256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257  (exit $ac_status); }; }; then
6258  eval "$as_ac_Header=yes"
6259else
6260  echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
6263eval "$as_ac_Header=no"
6264fi
6265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6266fi
6267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6269if test `eval echo '${'$as_ac_Header'}'` = yes; then
6270  cat >>confdefs.h <<_ACEOF
6271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6272_ACEOF
6273
6274fi
6275
6276done
6277
6278
6279
6280for ac_header in cmath
6281do
6282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6283if eval "test \"\${$as_ac_Header+set}\" = set"; then
6284  echo "$as_me:$LINENO: checking for $ac_header" >&5
6285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6286if eval "test \"\${$as_ac_Header+set}\" = set"; then
6287  echo $ECHO_N "(cached) $ECHO_C" >&6
6288fi
6289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6291else
6292  # Is the header compilable?
6293echo "$as_me:$LINENO: checking $ac_header usability" >&5
6294echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6295cat >conftest.$ac_ext <<_ACEOF
6296/* confdefs.h.  */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h.  */
6301$ac_includes_default
6302#include <$ac_header>
6303_ACEOF
6304rm -f conftest.$ac_objext
6305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306  (eval $ac_compile) 2>conftest.er1
6307  ac_status=$?
6308  grep -v '^ *+' conftest.er1 >conftest.err
6309  rm -f conftest.er1
6310  cat conftest.err >&5
6311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312  (exit $ac_status); } &&
6313         { ac_try='test -z "$ac_cxx_werror_flag"
6314                         || test ! -s conftest.err'
6315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316  (eval $ac_try) 2>&5
6317  ac_status=$?
6318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319  (exit $ac_status); }; } &&
6320         { ac_try='test -s conftest.$ac_objext'
6321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322  (eval $ac_try) 2>&5
6323  ac_status=$?
6324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325  (exit $ac_status); }; }; then
6326  ac_header_compiler=yes
6327else
6328  echo "$as_me: failed program was:" >&5
6329sed 's/^/| /' conftest.$ac_ext >&5
6330
6331ac_header_compiler=no
6332fi
6333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6335echo "${ECHO_T}$ac_header_compiler" >&6
6336
6337# Is the header present?
6338echo "$as_me:$LINENO: checking $ac_header presence" >&5
6339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6340cat >conftest.$ac_ext <<_ACEOF
6341/* confdefs.h.  */
6342_ACEOF
6343cat confdefs.h >>conftest.$ac_ext
6344cat >>conftest.$ac_ext <<_ACEOF
6345/* end confdefs.h.  */
6346#include <$ac_header>
6347_ACEOF
6348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6349  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6350  ac_status=$?
6351  grep -v '^ *+' conftest.er1 >conftest.err
6352  rm -f conftest.er1
6353  cat conftest.err >&5
6354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355  (exit $ac_status); } >/dev/null; then
6356  if test -s conftest.err; then
6357    ac_cpp_err=$ac_cxx_preproc_warn_flag
6358    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6359  else
6360    ac_cpp_err=
6361  fi
6362else
6363  ac_cpp_err=yes
6364fi
6365if test -z "$ac_cpp_err"; then
6366  ac_header_preproc=yes
6367else
6368  echo "$as_me: failed program was:" >&5
6369sed 's/^/| /' conftest.$ac_ext >&5
6370
6371  ac_header_preproc=no
6372fi
6373rm -f conftest.err conftest.$ac_ext
6374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6375echo "${ECHO_T}$ac_header_preproc" >&6
6376
6377# So?  What about this header?
6378case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6379  yes:no: )
6380    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6382    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6384    ac_header_preproc=yes
6385    ;;
6386  no:yes:* )
6387    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6389    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6390echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6391    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6393    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6394echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6395    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6397    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6399    (
6400      cat <<\_ASBOX
6401## ----------------------------------------- ##
6402## Report this to coin-ipopt@www-124.ibm.com ##
6403## ----------------------------------------- ##
6404_ASBOX
6405    ) |
6406      sed "s/^/$as_me: WARNING:     /" >&2
6407    ;;
6408esac
6409echo "$as_me:$LINENO: checking for $ac_header" >&5
6410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6411if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412  echo $ECHO_N "(cached) $ECHO_C" >&6
6413else
6414  eval "$as_ac_Header=\$ac_header_preproc"
6415fi
6416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6418
6419fi
6420if test `eval echo '${'$as_ac_Header'}'` = yes; then
6421  cat >>confdefs.h <<_ACEOF
6422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6423_ACEOF
6424
6425fi
6426
6427done
6428
6429          if test ! "$ac_cv_header_cmath" = "yes"; then
6430
6431for ac_header in math.h
6432do
6433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6434if eval "test \"\${$as_ac_Header+set}\" = set"; then
6435  echo "$as_me:$LINENO: checking for $ac_header" >&5
6436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6437if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438  echo $ECHO_N "(cached) $ECHO_C" >&6
6439fi
6440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6442else
6443  # Is the header compilable?
6444echo "$as_me:$LINENO: checking $ac_header usability" >&5
6445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6446cat >conftest.$ac_ext <<_ACEOF
6447/* confdefs.h.  */
6448_ACEOF
6449cat confdefs.h >>conftest.$ac_ext
6450cat >>conftest.$ac_ext <<_ACEOF
6451/* end confdefs.h.  */
6452$ac_includes_default
6453#include <$ac_header>
6454_ACEOF
6455rm -f conftest.$ac_objext
6456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457  (eval $ac_compile) 2>conftest.er1
6458  ac_status=$?
6459  grep -v '^ *+' conftest.er1 >conftest.err
6460  rm -f conftest.er1
6461  cat conftest.err >&5
6462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463  (exit $ac_status); } &&
6464         { ac_try='test -z "$ac_cxx_werror_flag"
6465                         || test ! -s conftest.err'
6466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467  (eval $ac_try) 2>&5
6468  ac_status=$?
6469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470  (exit $ac_status); }; } &&
6471         { ac_try='test -s conftest.$ac_objext'
6472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473  (eval $ac_try) 2>&5
6474  ac_status=$?
6475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476  (exit $ac_status); }; }; then
6477  ac_header_compiler=yes
6478else
6479  echo "$as_me: failed program was:" >&5
6480sed 's/^/| /' conftest.$ac_ext >&5
6481
6482ac_header_compiler=no
6483fi
6484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6486echo "${ECHO_T}$ac_header_compiler" >&6
6487
6488# Is the header present?
6489echo "$as_me:$LINENO: checking $ac_header presence" >&5
6490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6491cat >conftest.$ac_ext <<_ACEOF
6492/* confdefs.h.  */
6493_ACEOF
6494cat confdefs.h >>conftest.$ac_ext
6495cat >>conftest.$ac_ext <<_ACEOF
6496/* end confdefs.h.  */
6497#include <$ac_header>
6498_ACEOF
6499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6500  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6501  ac_status=$?
6502  grep -v '^ *+' conftest.er1 >conftest.err
6503  rm -f conftest.er1
6504  cat conftest.err >&5
6505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506  (exit $ac_status); } >/dev/null; then
6507  if test -s conftest.err; then
6508    ac_cpp_err=$ac_cxx_preproc_warn_flag
6509    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6510  else
6511    ac_cpp_err=
6512  fi
6513else
6514  ac_cpp_err=yes
6515fi
6516if test -z "$ac_cpp_err"; then
6517  ac_header_preproc=yes
6518else
6519  echo "$as_me: failed program was:" >&5
6520sed 's/^/| /' conftest.$ac_ext >&5
6521
6522  ac_header_preproc=no
6523fi
6524rm -f conftest.err conftest.$ac_ext
6525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6526echo "${ECHO_T}$ac_header_preproc" >&6
6527
6528# So?  What about this header?
6529case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6530  yes:no: )
6531    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6533    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6535    ac_header_preproc=yes
6536    ;;
6537  no:yes:* )
6538    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6540    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6541echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6542    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6544    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6545echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6546    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6548    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6550    (
6551      cat <<\_ASBOX
6552## ----------------------------------------- ##
6553## Report this to coin-ipopt@www-124.ibm.com ##
6554## ----------------------------------------- ##
6555_ASBOX
6556    ) |
6557      sed "s/^/$as_me: WARNING:     /" >&2
6558    ;;
6559esac
6560echo "$as_me:$LINENO: checking for $ac_header" >&5
6561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6562if eval "test \"\${$as_ac_Header+set}\" = set"; then
6563  echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565  eval "$as_ac_Header=\$ac_header_preproc"
6566fi
6567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6569
6570fi
6571if test `eval echo '${'$as_ac_Header'}'` = yes; then
6572  cat >>confdefs.h <<_ACEOF
6573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6574_ACEOF
6575
6576fi
6577
6578done
6579
6580          fi
6581
6582for ac_header in cctype
6583do
6584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6585if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586  echo "$as_me:$LINENO: checking for $ac_header" >&5
6587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6588if eval "test \"\${$as_ac_Header+set}\" = set"; then
6589  echo $ECHO_N "(cached) $ECHO_C" >&6
6590fi
6591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593else
6594  # Is the header compilable?
6595echo "$as_me:$LINENO: checking $ac_header usability" >&5
6596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6597cat >conftest.$ac_ext <<_ACEOF
6598/* confdefs.h.  */
6599_ACEOF
6600cat confdefs.h >>conftest.$ac_ext
6601cat >>conftest.$ac_ext <<_ACEOF
6602/* end confdefs.h.  */
6603$ac_includes_default
6604#include <$ac_header>
6605_ACEOF
6606rm -f conftest.$ac_objext
6607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608  (eval $ac_compile) 2>conftest.er1
6609  ac_status=$?
6610  grep -v '^ *+' conftest.er1 >conftest.err
6611  rm -f conftest.er1
6612  cat conftest.err >&5
6613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614  (exit $ac_status); } &&
6615         { ac_try='test -z "$ac_cxx_werror_flag"
6616                         || test ! -s conftest.err'
6617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618  (eval $ac_try) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); }; } &&
6622         { ac_try='test -s conftest.$ac_objext'
6623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624  (eval $ac_try) 2>&5
6625  ac_status=$?
6626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); }; }; then
6628  ac_header_compiler=yes
6629else
6630  echo "$as_me: failed program was:" >&5
6631sed 's/^/| /' conftest.$ac_ext >&5
6632
6633ac_header_compiler=no
6634fi
6635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6636echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6637echo "${ECHO_T}$ac_header_compiler" >&6
6638
6639# Is the header present?
6640echo "$as_me:$LINENO: checking $ac_header presence" >&5
6641echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6642cat >conftest.$ac_ext <<_ACEOF
6643/* confdefs.h.  */
6644_ACEOF
6645cat confdefs.h >>conftest.$ac_ext
6646cat >>conftest.$ac_ext <<_ACEOF
6647/* end confdefs.h.  */
6648#include <$ac_header>
6649_ACEOF
6650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6651  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6652  ac_status=$?
6653  grep -v '^ *+' conftest.er1 >conftest.err
6654  rm -f conftest.er1
6655  cat conftest.err >&5
6656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657  (exit $ac_status); } >/dev/null; then
6658  if test -s conftest.err; then
6659    ac_cpp_err=$ac_cxx_preproc_warn_flag
6660    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6661  else
6662    ac_cpp_err=
6663  fi
6664else
6665  ac_cpp_err=yes
6666fi
6667if test -z "$ac_cpp_err"; then
6668  ac_header_preproc=yes
6669else
6670  echo "$as_me: failed program was:" >&5
6671sed 's/^/| /' conftest.$ac_ext >&5
6672
6673  ac_header_preproc=no
6674fi
6675rm -f conftest.err conftest.$ac_ext
6676echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6677echo "${ECHO_T}$ac_header_preproc" >&6
6678
6679# So?  What about this header?
6680case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6681  yes:no: )
6682    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6683echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6684    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6685echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6686    ac_header_preproc=yes
6687    ;;
6688  no:yes:* )
6689    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6690echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6691    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6692echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6693    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6694echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6695    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6696echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6697    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6698echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6699    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6700echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6701    (
6702      cat <<\_ASBOX
6703## ----------------------------------------- ##
6704## Report this to coin-ipopt@www-124.ibm.com ##
6705## ----------------------------------------- ##
6706_ASBOX
6707    ) |
6708      sed "s/^/$as_me: WARNING:     /" >&2
6709    ;;
6710esac
6711echo "$as_me:$LINENO: checking for $ac_header" >&5
6712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6713if eval "test \"\${$as_ac_Header+set}\" = set"; then
6714  echo $ECHO_N "(cached) $ECHO_C" >&6
6715else
6716  eval "$as_ac_Header=\$ac_header_preproc"
6717fi
6718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6720
6721fi
6722if test `eval echo '${'$as_ac_Header'}'` = yes; then
6723  cat >>confdefs.h <<_ACEOF
6724#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6725_ACEOF
6726
6727fi
6728
6729done
6730
6731          if test ! "$ac_cv_header_cctype" = "yes"; then
6732
6733for ac_header in ctype.h
6734do
6735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6736if eval "test \"\${$as_ac_Header+set}\" = set"; then
6737  echo "$as_me:$LINENO: checking for $ac_header" >&5
6738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6739if eval "test \"\${$as_ac_Header+set}\" = set"; then
6740  echo $ECHO_N "(cached) $ECHO_C" >&6
6741fi
6742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6744else
6745  # Is the header compilable?
6746echo "$as_me:$LINENO: checking $ac_header usability" >&5
6747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6748cat >conftest.$ac_ext <<_ACEOF
6749/* confdefs.h.  */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h.  */
6754$ac_includes_default
6755#include <$ac_header>
6756_ACEOF
6757rm -f conftest.$ac_objext
6758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759  (eval $ac_compile) 2>conftest.er1
6760  ac_status=$?
6761  grep -v '^ *+' conftest.er1 >conftest.err
6762  rm -f conftest.er1
6763  cat conftest.err >&5
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); } &&
6766         { ac_try='test -z "$ac_cxx_werror_flag"
6767                         || test ! -s conftest.err'
6768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769  (eval $ac_try) 2>&5
6770  ac_status=$?
6771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772  (exit $ac_status); }; } &&
6773         { ac_try='test -s conftest.$ac_objext'
6774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775  (eval $ac_try) 2>&5
6776  ac_status=$?
6777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778  (exit $ac_status); }; }; then
6779  ac_header_compiler=yes
6780else
6781  echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784ac_header_compiler=no
6785fi
6786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6788echo "${ECHO_T}$ac_header_compiler" >&6
6789
6790# Is the header present?
6791echo "$as_me:$LINENO: checking $ac_header presence" >&5
6792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6793cat >conftest.$ac_ext <<_ACEOF
6794/* confdefs.h.  */
6795_ACEOF
6796cat confdefs.h >>conftest.$ac_ext
6797cat >>conftest.$ac_ext <<_ACEOF
6798/* end confdefs.h.  */
6799#include <$ac_header>
6800_ACEOF
6801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6802  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6803  ac_status=$?
6804  grep -v '^ *+' conftest.er1 >conftest.err
6805  rm -f conftest.er1
6806  cat conftest.err >&5
6807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808  (exit $ac_status); } >/dev/null; then
6809  if test -s conftest.err; then
6810    ac_cpp_err=$ac_cxx_preproc_warn_flag
6811    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6812  else
6813    ac_cpp_err=
6814  fi
6815else
6816  ac_cpp_err=yes
6817fi
6818if test -z "$ac_cpp_err"; then
6819  ac_header_preproc=yes
6820else
6821  echo "$as_me: failed program was:" >&5
6822sed 's/^/| /' conftest.$ac_ext >&5
6823
6824  ac_header_preproc=no
6825fi
6826rm -f conftest.err conftest.$ac_ext
6827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6828echo "${ECHO_T}$ac_header_preproc" >&6
6829
6830# So?  What about this header?
6831case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6832  yes:no: )
6833    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6835    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6837    ac_header_preproc=yes
6838    ;;
6839  no:yes:* )
6840    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6842    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6843echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6844    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6846    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6847echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6848    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6850    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6852    (
6853      cat <<\_ASBOX
6854## ----------------------------------------- ##
6855## Report this to coin-ipopt@www-124.ibm.com ##
6856## ----------------------------------------- ##
6857_ASBOX
6858    ) |
6859      sed "s/^/$as_me: WARNING:     /" >&2
6860    ;;
6861esac
6862echo "$as_me:$LINENO: checking for $ac_header" >&5
6863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6864if eval "test \"\${$as_ac_Header+set}\" = set"; then
6865  echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867  eval "$as_ac_Header=\$ac_header_preproc"
6868fi
6869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6871
6872fi
6873if test `eval echo '${'$as_ac_Header'}'` = yes; then
6874  cat >>confdefs.h <<_ACEOF
6875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6876_ACEOF
6877
6878fi
6879
6880done
6881
6882          fi
6883
6884for ac_header in cassert
6885do
6886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6887if eval "test \"\${$as_ac_Header+set}\" = set"; then
6888  echo "$as_me:$LINENO: checking for $ac_header" >&5
6889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6890if eval "test \"\${$as_ac_Header+set}\" = set"; then
6891  echo $ECHO_N "(cached) $ECHO_C" >&6
6892fi
6893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6895else
6896  # Is the header compilable?
6897echo "$as_me:$LINENO: checking $ac_header usability" >&5
6898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6899cat >conftest.$ac_ext <<_ACEOF
6900/* confdefs.h.  */
6901_ACEOF
6902cat confdefs.h >>conftest.$ac_ext
6903cat >>conftest.$ac_ext <<_ACEOF
6904/* end confdefs.h.  */
6905$ac_includes_default
6906#include <$ac_header>
6907_ACEOF
6908rm -f conftest.$ac_objext
6909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910  (eval $ac_compile) 2>conftest.er1
6911  ac_status=$?
6912  grep -v '^ *+' conftest.er1 >conftest.err
6913  rm -f conftest.er1
6914  cat conftest.err >&5
6915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916  (exit $ac_status); } &&
6917         { ac_try='test -z "$ac_cxx_werror_flag"
6918                         || test ! -s conftest.err'
6919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920  (eval $ac_try) 2>&5
6921  ac_status=$?
6922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923  (exit $ac_status); }; } &&
6924         { ac_try='test -s conftest.$ac_objext'
6925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926  (eval $ac_try) 2>&5
6927  ac_status=$?
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); }; }; then
6930  ac_header_compiler=yes
6931else
6932  echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
6935ac_header_compiler=no
6936fi
6937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6939echo "${ECHO_T}$ac_header_compiler" >&6
6940
6941# Is the header present?
6942echo "$as_me:$LINENO: checking $ac_header presence" >&5
6943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6944cat >conftest.$ac_ext <<_ACEOF
6945/* confdefs.h.  */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h.  */
6950#include <$ac_header>
6951_ACEOF
6952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6953  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6954  ac_status=$?
6955  grep -v '^ *+' conftest.er1 >conftest.err
6956  rm -f conftest.er1
6957  cat conftest.err >&5
6958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959  (exit $ac_status); } >/dev/null; then
6960  if test -s conftest.err; then
6961    ac_cpp_err=$ac_cxx_preproc_warn_flag
6962    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6963  else
6964    ac_cpp_err=
6965  fi
6966else
6967  ac_cpp_err=yes
6968fi
6969if test -z "$ac_cpp_err"; then
6970  ac_header_preproc=yes
6971else
6972  echo "$as_me: failed program was:" >&5
6973sed 's/^/| /' conftest.$ac_ext >&5
6974
6975  ac_header_preproc=no
6976fi
6977rm -f conftest.err conftest.$ac_ext
6978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6979echo "${ECHO_T}$ac_header_preproc" >&6
6980
6981# So?  What about this header?
6982case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6983  yes:no: )
6984    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6986    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6988    ac_header_preproc=yes
6989    ;;
6990  no:yes:* )
6991    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6993    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6994echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6995    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6997    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6998echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6999    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7001    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7003    (
7004      cat <<\_ASBOX
7005## ----------------------------------------- ##
7006## Report this to coin-ipopt@www-124.ibm.com ##
7007## ----------------------------------------- ##
7008_ASBOX
7009    ) |
7010      sed "s/^/$as_me: WARNING:     /" >&2
7011    ;;
7012esac
7013echo "$as_me:$LINENO: checking for $ac_header" >&5
7014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7015if eval "test \"\${$as_ac_Header+set}\" = set"; then
7016  echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018  eval "$as_ac_Header=\$ac_header_preproc"
7019fi
7020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7022
7023fi
7024if test `eval echo '${'$as_ac_Header'}'` = yes; then
7025  cat >>confdefs.h <<_ACEOF
7026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7027_ACEOF
7028
7029fi
7030
7031done
7032
7033          if test ! "$ac_cv_header_cassert" = "yes"; then
7034
7035for ac_header in assert.h
7036do
7037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7038if eval "test \"\${$as_ac_Header+set}\" = set"; then
7039  echo "$as_me:$LINENO: checking for $ac_header" >&5
7040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7041if eval "test \"\${$as_ac_Header+set}\" = set"; then
7042  echo $ECHO_N "(cached) $ECHO_C" >&6
7043fi
7044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7046else
7047  # Is the header compilable?
7048echo "$as_me:$LINENO: checking $ac_header usability" >&5
7049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7050cat >conftest.$ac_ext <<_ACEOF
7051/* confdefs.h.  */
7052_ACEOF
7053cat confdefs.h >>conftest.$ac_ext
7054cat >>conftest.$ac_ext <<_ACEOF
7055/* end confdefs.h.  */
7056$ac_includes_default
7057#include <$ac_header>
7058_ACEOF
7059rm -f conftest.$ac_objext
7060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061  (eval $ac_compile) 2>conftest.er1
7062  ac_status=$?
7063  grep -v '^ *+' conftest.er1 >conftest.err
7064  rm -f conftest.er1
7065  cat conftest.err >&5
7066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067  (exit $ac_status); } &&
7068         { ac_try='test -z "$ac_cxx_werror_flag"
7069                         || test ! -s conftest.err'
7070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071  (eval $ac_try) 2>&5
7072  ac_status=$?
7073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074  (exit $ac_status); }; } &&
7075         { ac_try='test -s conftest.$ac_objext'
7076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077  (eval $ac_try) 2>&5
7078  ac_status=$?
7079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080  (exit $ac_status); }; }; then
7081  ac_header_compiler=yes
7082else
7083  echo "$as_me: failed program was:" >&5
7084sed 's/^/| /' conftest.$ac_ext >&5
7085
7086ac_header_compiler=no
7087fi
7088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7089echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7090echo "${ECHO_T}$ac_header_compiler" >&6
7091
7092# Is the header present?
7093echo "$as_me:$LINENO: checking $ac_header presence" >&5
7094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7095cat >conftest.$ac_ext <<_ACEOF
7096/* confdefs.h.  */
7097_ACEOF
7098cat confdefs.h >>conftest.$ac_ext
7099cat >>conftest.$ac_ext <<_ACEOF
7100/* end confdefs.h.  */
7101#include <$ac_header>
7102_ACEOF
7103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7104  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7105  ac_status=$?
7106  grep -v '^ *+' conftest.er1 >conftest.err
7107  rm -f conftest.er1
7108  cat conftest.err >&5
7109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110  (exit $ac_status); } >/dev/null; then
7111  if test -s conftest.err; then
7112    ac_cpp_err=$ac_cxx_preproc_warn_flag
7113    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7114  else
7115    ac_cpp_err=
7116  fi
7117else
7118  ac_cpp_err=yes
7119fi
7120if test -z "$ac_cpp_err"; then
7121  ac_header_preproc=yes
7122else
7123  echo "$as_me: failed program was:" >&5
7124sed 's/^/| /' conftest.$ac_ext >&5
7125
7126  ac_header_preproc=no
7127fi
7128rm -f conftest.err conftest.$ac_ext
7129echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7130echo "${ECHO_T}$ac_header_preproc" >&6
7131
7132# So?  What about this header?
7133case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7134  yes:no: )
7135    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7137    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7139    ac_header_preproc=yes
7140    ;;
7141  no:yes:* )
7142    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7144    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7145echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7146    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7148    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7149echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7150    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7152    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7154    (
7155      cat <<\_ASBOX
7156## ----------------------------------------- ##
7157## Report this to coin-ipopt@www-124.ibm.com ##
7158## ----------------------------------------- ##
7159_ASBOX
7160    ) |
7161      sed "s/^/$as_me: WARNING:     /" >&2
7162    ;;
7163esac
7164echo "$as_me:$LINENO: checking for $ac_header" >&5
7165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7166if eval "test \"\${$as_ac_Header+set}\" = set"; then
7167  echo $ECHO_N "(cached) $ECHO_C" >&6
7168else
7169  eval "$as_ac_Header=\$ac_header_preproc"
7170fi
7171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7173
7174fi
7175if test `eval echo '${'$as_ac_Header'}'` = yes; then
7176  cat >>confdefs.h <<_ACEOF
7177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7178_ACEOF
7179
7180fi
7181
7182done
7183
7184          fi
7185
7186for ac_header in cstdio
7187do
7188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7189if eval "test \"\${$as_ac_Header+set}\" = set"; then
7190  echo "$as_me:$LINENO: checking for $ac_header" >&5
7191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7192if eval "test \"\${$as_ac_Header+set}\" = set"; then
7193  echo $ECHO_N "(cached) $ECHO_C" >&6
7194fi
7195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7197else
7198  # Is the header compilable?
7199echo "$as_me:$LINENO: checking $ac_header usability" >&5
7200echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7201cat >conftest.$ac_ext <<_ACEOF
7202/* confdefs.h.  */
7203_ACEOF
7204cat confdefs.h >>conftest.$ac_ext
7205cat >>conftest.$ac_ext <<_ACEOF
7206/* end confdefs.h.  */
7207$ac_includes_default
7208#include <$ac_header>
7209_ACEOF
7210rm -f conftest.$ac_objext
7211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212  (eval $ac_compile) 2>conftest.er1
7213  ac_status=$?
7214  grep -v '^ *+' conftest.er1 >conftest.err
7215  rm -f conftest.er1
7216  cat conftest.err >&5
7217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218  (exit $ac_status); } &&
7219         { ac_try='test -z "$ac_cxx_werror_flag"
7220                         || test ! -s conftest.err'
7221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222  (eval $ac_try) 2>&5
7223  ac_status=$?
7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225  (exit $ac_status); }; } &&
7226         { ac_try='test -s conftest.$ac_objext'
7227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228  (eval $ac_try) 2>&5
7229  ac_status=$?
7230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231  (exit $ac_status); }; }; then
7232  ac_header_compiler=yes
7233else
7234  echo "$as_me: failed program was:" >&5
7235sed 's/^/| /' conftest.$ac_ext >&5
7236
7237ac_header_compiler=no
7238fi
7239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7240echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7241echo "${ECHO_T}$ac_header_compiler" >&6
7242
7243# Is the header present?
7244echo "$as_me:$LINENO: checking $ac_header presence" >&5
7245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7246cat >conftest.$ac_ext <<_ACEOF
7247/* confdefs.h.  */
7248_ACEOF
7249cat confdefs.h >>conftest.$ac_ext
7250cat >>conftest.$ac_ext <<_ACEOF
7251/* end confdefs.h.  */
7252#include <$ac_header>
7253_ACEOF
7254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7255  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7256  ac_status=$?
7257  grep -v '^ *+' conftest.er1 >conftest.err
7258  rm -f conftest.er1
7259  cat conftest.err >&5
7260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261  (exit $ac_status); } >/dev/null; then
7262  if test -s conftest.err; then
7263    ac_cpp_err=$ac_cxx_preproc_warn_flag
7264    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7265  else
7266    ac_cpp_err=
7267  fi
7268else
7269  ac_cpp_err=yes
7270fi
7271if test -z "$ac_cpp_err"; then
7272  ac_header_preproc=yes
7273else
7274  echo "$as_me: failed program was:" >&5
7275sed 's/^/| /' conftest.$ac_ext >&5
7276
7277  ac_header_preproc=no
7278fi
7279rm -f conftest.err conftest.$ac_ext
7280echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7281echo "${ECHO_T}$ac_header_preproc" >&6
7282
7283# So?  What about this header?
7284case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7285  yes:no: )
7286    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7287echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7288    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7289echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7290    ac_header_preproc=yes
7291    ;;
7292  no:yes:* )
7293    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7295    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7296echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7297    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7298echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7299    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7300echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7301    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7303    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7304echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7305    (
7306      cat <<\_ASBOX
7307## ----------------------------------------- ##
7308## Report this to coin-ipopt@www-124.ibm.com ##
7309## ----------------------------------------- ##
7310_ASBOX
7311    ) |
7312      sed "s/^/$as_me: WARNING:     /" >&2
7313    ;;
7314esac
7315echo "$as_me:$LINENO: checking for $ac_header" >&5
7316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7317if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318  echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320  eval "$as_ac_Header=\$ac_header_preproc"
7321fi
7322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7324
7325fi
7326if test `eval echo '${'$as_ac_Header'}'` = yes; then
7327  cat >>confdefs.h <<_ACEOF
7328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7329_ACEOF
7330
7331fi
7332
7333done
7334
7335          if test ! "$ac_cv_header_cstdio" = "yes"; then
7336
7337for ac_header in stdio.h
7338do
7339as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7340if eval "test \"\${$as_ac_Header+set}\" = set"; then
7341  echo "$as_me:$LINENO: checking for $ac_header" >&5
7342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7343if eval "test \"\${$as_ac_Header+set}\" = set"; then
7344  echo $ECHO_N "(cached) $ECHO_C" >&6
7345fi
7346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7348else
7349  # Is the header compilable?
7350echo "$as_me:$LINENO: checking $ac_header usability" >&5
7351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7352cat >conftest.$ac_ext <<_ACEOF
7353/* confdefs.h.  */
7354_ACEOF
7355cat confdefs.h >>conftest.$ac_ext
7356cat >>conftest.$ac_ext <<_ACEOF
7357/* end confdefs.h.  */
7358$ac_includes_default
7359#include <$ac_header>
7360_ACEOF
7361rm -f conftest.$ac_objext
7362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363  (eval $ac_compile) 2>conftest.er1
7364  ac_status=$?
7365  grep -v '^ *+' conftest.er1 >conftest.err
7366  rm -f conftest.er1
7367  cat conftest.err >&5
7368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369  (exit $ac_status); } &&
7370         { ac_try='test -z "$ac_cxx_werror_flag"
7371                         || test ! -s conftest.err'
7372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373  (eval $ac_try) 2>&5
7374  ac_status=$?
7375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376  (exit $ac_status); }; } &&
7377         { ac_try='test -s conftest.$ac_objext'
7378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379  (eval $ac_try) 2>&5
7380  ac_status=$?
7381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382  (exit $ac_status); }; }; then
7383  ac_header_compiler=yes
7384else
7385  echo "$as_me: failed program was:" >&5
7386sed 's/^/| /' conftest.$ac_ext >&5
7387
7388ac_header_compiler=no
7389fi
7390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7391echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7392echo "${ECHO_T}$ac_header_compiler" >&6
7393
7394# Is the header present?
7395echo "$as_me:$LINENO: checking $ac_header presence" >&5
7396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7397cat >conftest.$ac_ext <<_ACEOF
7398/* confdefs.h.  */
7399_ACEOF
7400cat confdefs.h >>conftest.$ac_ext
7401cat >>conftest.$ac_ext <<_ACEOF
7402/* end confdefs.h.  */
7403#include <$ac_header>
7404_ACEOF
7405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7406  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7407  ac_status=$?
7408  grep -v '^ *+' conftest.er1 >conftest.err
7409  rm -f conftest.er1
7410  cat conftest.err >&5
7411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412  (exit $ac_status); } >/dev/null; then
7413  if test -s conftest.err; then
7414    ac_cpp_err=$ac_cxx_preproc_warn_flag
7415    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7416  else
7417    ac_cpp_err=
7418  fi
7419else
7420  ac_cpp_err=yes
7421fi
7422if test -z "$ac_cpp_err"; then
7423  ac_header_preproc=yes
7424else
7425  echo "$as_me: failed program was:" >&5
7426sed 's/^/| /' conftest.$ac_ext >&5
7427
7428  ac_header_preproc=no
7429fi
7430rm -f conftest.err conftest.$ac_ext
7431echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7432echo "${ECHO_T}$ac_header_preproc" >&6
7433
7434# So?  What about this header?
7435case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7436  yes:no: )
7437    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7439    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7441    ac_header_preproc=yes
7442    ;;
7443  no:yes:* )
7444    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7446    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7447echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7448    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7450    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7451echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7452    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7454    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7456    (
7457      cat <<\_ASBOX
7458## ----------------------------------------- ##
7459## Report this to coin-ipopt@www-124.ibm.com ##
7460## ----------------------------------------- ##
7461_ASBOX
7462    ) |
7463      sed "s/^/$as_me: WARNING:     /" >&2
7464    ;;
7465esac
7466echo "$as_me:$LINENO: checking for $ac_header" >&5
7467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7468if eval "test \"\${$as_ac_Header+set}\" = set"; then
7469  echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471  eval "$as_ac_Header=\$ac_header_preproc"
7472fi
7473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7475
7476fi
7477if test `eval echo '${'$as_ac_Header'}'` = yes; then
7478  cat >>confdefs.h <<_ACEOF
7479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7480_ACEOF
7481
7482fi
7483
7484done
7485
7486          fi
7487
7488for ac_header in cstdlib
7489do
7490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7491if eval "test \"\${$as_ac_Header+set}\" = set"; then
7492  echo "$as_me:$LINENO: checking for $ac_header" >&5
7493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7494if eval "test \"\${$as_ac_Header+set}\" = set"; then
7495  echo $ECHO_N "(cached) $ECHO_C" >&6
7496fi
7497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7499else
7500  # Is the header compilable?
7501echo "$as_me:$LINENO: checking $ac_header usability" >&5
7502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7503cat >conftest.$ac_ext <<_ACEOF
7504/* confdefs.h.  */
7505_ACEOF
7506cat confdefs.h >>conftest.$ac_ext
7507cat >>conftest.$ac_ext <<_ACEOF
7508/* end confdefs.h.  */
7509$ac_includes_default
7510#include <$ac_header>
7511_ACEOF
7512rm -f conftest.$ac_objext
7513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514  (eval $ac_compile) 2>conftest.er1
7515  ac_status=$?
7516  grep -v '^ *+' conftest.er1 >conftest.err
7517  rm -f conftest.er1
7518  cat conftest.err >&5
7519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520  (exit $ac_status); } &&
7521         { ac_try='test -z "$ac_cxx_werror_flag"
7522                         || test ! -s conftest.err'
7523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524  (eval $ac_try) 2>&5
7525  ac_status=$?
7526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527  (exit $ac_status); }; } &&
7528         { ac_try='test -s conftest.$ac_objext'
7529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530  (eval $ac_try) 2>&5
7531  ac_status=$?
7532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533  (exit $ac_status); }; }; then
7534  ac_header_compiler=yes
7535else
7536  echo "$as_me: failed program was:" >&5
7537sed 's/^/| /' conftest.$ac_ext >&5
7538
7539ac_header_compiler=no
7540fi
7541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7543echo "${ECHO_T}$ac_header_compiler" >&6
7544
7545# Is the header present?
7546echo "$as_me:$LINENO: checking $ac_header presence" >&5
7547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7548cat >conftest.$ac_ext <<_ACEOF
7549/* confdefs.h.  */
7550_ACEOF
7551cat confdefs.h >>conftest.$ac_ext
7552cat >>conftest.$ac_ext <<_ACEOF
7553/* end confdefs.h.  */
7554#include <$ac_header>
7555_ACEOF
7556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7557  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7558  ac_status=$?
7559  grep -v '^ *+' conftest.er1 >conftest.err
7560  rm -f conftest.er1
7561  cat conftest.err >&5
7562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563  (exit $ac_status); } >/dev/null; then
7564  if test -s conftest.err; then
7565    ac_cpp_err=$ac_cxx_preproc_warn_flag
7566    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7567  else
7568    ac_cpp_err=
7569  fi
7570else
7571  ac_cpp_err=yes
7572fi
7573if test -z "$ac_cpp_err"; then
7574  ac_header_preproc=yes
7575else
7576  echo "$as_me: failed program was:" >&5
7577sed 's/^/| /' conftest.$ac_ext >&5
7578
7579  ac_header_preproc=no
7580fi
7581rm -f conftest.err conftest.$ac_ext
7582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7583echo "${ECHO_T}$ac_header_preproc" >&6
7584
7585# So?  What about this header?
7586case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7587  yes:no: )
7588    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7590    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7591echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7592    ac_header_preproc=yes
7593    ;;
7594  no:yes:* )
7595    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7597    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7598echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7599    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7600echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7601    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7602echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7603    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7605    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7606echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7607    (
7608      cat <<\_ASBOX
7609## ----------------------------------------- ##
7610## Report this to coin-ipopt@www-124.ibm.com ##
7611## ----------------------------------------- ##
7612_ASBOX
7613    ) |
7614      sed "s/^/$as_me: WARNING:     /" >&2
7615    ;;
7616esac
7617echo "$as_me:$LINENO: checking for $ac_header" >&5
7618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7619if eval "test \"\${$as_ac_Header+set}\" = set"; then
7620  echo $ECHO_N "(cached) $ECHO_C" >&6
7621else
7622  eval "$as_ac_Header=\$ac_header_preproc"
7623fi
7624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7626
7627fi
7628if test `eval echo '${'$as_ac_Header'}'` = yes; then
7629  cat >>confdefs.h <<_ACEOF
7630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7631_ACEOF
7632
7633fi
7634
7635done
7636
7637          if test ! "$ac_cv_header_cstdlib" = "yes"; then
7638
7639for ac_header in stdlib.h
7640do
7641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7642if eval "test \"\${$as_ac_Header+set}\" = set"; then
7643  echo "$as_me:$LINENO: checking for $ac_header" >&5
7644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7645if eval "test \"\${$as_ac_Header+set}\" = set"; then
7646  echo $ECHO_N "(cached) $ECHO_C" >&6
7647fi
7648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7650else
7651  # Is the header compilable?
7652echo "$as_me:$LINENO: checking $ac_header usability" >&5
7653echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7654cat >conftest.$ac_ext <<_ACEOF
7655/* confdefs.h.  */
7656_ACEOF
7657cat confdefs.h >>conftest.$ac_ext
7658cat >>conftest.$ac_ext <<_ACEOF
7659/* end confdefs.h.  */
7660$ac_includes_default
7661#include <$ac_header>
7662_ACEOF
7663rm -f conftest.$ac_objext
7664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7665  (eval $ac_compile) 2>conftest.er1
7666  ac_status=$?
7667  grep -v '^ *+' conftest.er1 >conftest.err
7668  rm -f conftest.er1
7669  cat conftest.err >&5
7670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671  (exit $ac_status); } &&
7672         { ac_try='test -z "$ac_cxx_werror_flag"
7673                         || test ! -s conftest.err'
7674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675  (eval $ac_try) 2>&5
7676  ac_status=$?
7677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678  (exit $ac_status); }; } &&
7679         { ac_try='test -s conftest.$ac_objext'
7680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681  (eval $ac_try) 2>&5
7682  ac_status=$?
7683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684  (exit $ac_status); }; }; then
7685  ac_header_compiler=yes
7686else
7687  echo "$as_me: failed program was:" >&5
7688sed 's/^/| /' conftest.$ac_ext >&5
7689
7690ac_header_compiler=no
7691fi
7692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7693echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7694echo "${ECHO_T}$ac_header_compiler" >&6
7695
7696# Is the header present?
7697echo "$as_me:$LINENO: checking $ac_header presence" >&5
7698echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7699cat >conftest.$ac_ext <<_ACEOF
7700/* confdefs.h.  */
7701_ACEOF
7702cat confdefs.h >>conftest.$ac_ext
7703cat >>conftest.$ac_ext <<_ACEOF
7704/* end confdefs.h.  */
7705#include <$ac_header>
7706_ACEOF
7707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7708  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7709  ac_status=$?
7710  grep -v '^ *+' conftest.er1 >conftest.err
7711  rm -f conftest.er1
7712  cat conftest.err >&5
7713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714  (exit $ac_status); } >/dev/null; then
7715  if test -s conftest.err; then
7716    ac_cpp_err=$ac_cxx_preproc_warn_flag
7717    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7718  else
7719    ac_cpp_err=
7720  fi
7721else
7722  ac_cpp_err=yes
7723fi
7724if test -z "$ac_cpp_err"; then
7725  ac_header_preproc=yes
7726else
7727  echo "$as_me: failed program was:" >&5
7728sed 's/^/| /' conftest.$ac_ext >&5
7729
7730  ac_header_preproc=no
7731fi
7732rm -f conftest.err conftest.$ac_ext
7733echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7734echo "${ECHO_T}$ac_header_preproc" >&6
7735
7736# So?  What about this header?
7737case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7738  yes:no: )
7739    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7740echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7741    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7742echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7743    ac_header_preproc=yes
7744    ;;
7745  no:yes:* )
7746    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7747echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7748    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7749echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7750    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7751echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7752    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7753echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7754    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7756    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7757echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7758    (
7759      cat <<\_ASBOX
7760## ----------------------------------------- ##
7761## Report this to coin-ipopt@www-124.ibm.com ##
7762## ----------------------------------------- ##
7763_ASBOX
7764    ) |
7765      sed "s/^/$as_me: WARNING:     /" >&2
7766    ;;
7767esac
7768echo "$as_me:$LINENO: checking for $ac_header" >&5
7769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7770if eval "test \"\${$as_ac_Header+set}\" = set"; then
7771  echo $ECHO_N "(cached) $ECHO_C" >&6
7772else
7773  eval "$as_ac_Header=\$ac_header_preproc"
7774fi
7775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7777
7778fi
7779if test `eval echo '${'$as_ac_Header'}'` = yes; then
7780  cat >>confdefs.h <<_ACEOF
7781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7782_ACEOF
7783
7784fi
7785
7786done
7787
7788          fi
7789
7790for ac_header in cstdarg
7791do
7792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7793if eval "test \"\${$as_ac_Header+set}\" = set"; then
7794  echo "$as_me:$LINENO: checking for $ac_header" >&5
7795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7796if eval "test \"\${$as_ac_Header+set}\" = set"; then
7797  echo $ECHO_N "(cached) $ECHO_C" >&6
7798fi
7799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7801else
7802  # Is the header compilable?
7803echo "$as_me:$LINENO: checking $ac_header usability" >&5
7804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7805cat >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$ac_includes_default
7812#include <$ac_header>
7813_ACEOF
7814rm -f conftest.$ac_objext
7815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7816  (eval $ac_compile) 2>conftest.er1
7817  ac_status=$?
7818  grep -v '^ *+' conftest.er1 >conftest.err
7819  rm -f conftest.er1
7820  cat conftest.err >&5
7821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822  (exit $ac_status); } &&
7823         { ac_try='test -z "$ac_cxx_werror_flag"
7824                         || test ! -s conftest.err'
7825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826  (eval $ac_try) 2>&5
7827  ac_status=$?
7828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829  (exit $ac_status); }; } &&
7830         { ac_try='test -s conftest.$ac_objext'
7831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832  (eval $ac_try) 2>&5
7833  ac_status=$?
7834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835  (exit $ac_status); }; }; then
7836  ac_header_compiler=yes
7837else
7838  echo "$as_me: failed program was:" >&5
7839sed 's/^/| /' conftest.$ac_ext >&5
7840
7841ac_header_compiler=no
7842fi
7843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7845echo "${ECHO_T}$ac_header_compiler" >&6
7846
7847# Is the header present?
7848echo "$as_me:$LINENO: checking $ac_header presence" >&5
7849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7850cat >conftest.$ac_ext <<_ACEOF
7851/* confdefs.h.  */
7852_ACEOF
7853cat confdefs.h >>conftest.$ac_ext
7854cat >>conftest.$ac_ext <<_ACEOF
7855/* end confdefs.h.  */
7856#include <$ac_header>
7857_ACEOF
7858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7859  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7860  ac_status=$?
7861  grep -v '^ *+' conftest.er1 >conftest.err
7862  rm -f conftest.er1
7863  cat conftest.err >&5
7864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865  (exit $ac_status); } >/dev/null; then
7866  if test -s conftest.err; then
7867    ac_cpp_err=$ac_cxx_preproc_warn_flag
7868    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7869  else
7870    ac_cpp_err=
7871  fi
7872else
7873  ac_cpp_err=yes
7874fi
7875if test -z "$ac_cpp_err"; then
7876  ac_header_preproc=yes
7877else
7878  echo "$as_me: failed program was:" >&5
7879sed 's/^/| /' conftest.$ac_ext >&5
7880
7881  ac_header_preproc=no
7882fi
7883rm -f conftest.err conftest.$ac_ext
7884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7885echo "${ECHO_T}$ac_header_preproc" >&6
7886
7887# So?  What about this header?
7888case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7889  yes:no: )
7890    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7892    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7894    ac_header_preproc=yes
7895    ;;
7896  no:yes:* )
7897    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7899    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7900echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7901    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7903    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7904echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7905    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7907    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7909    (
7910      cat <<\_ASBOX
7911## ----------------------------------------- ##
7912## Report this to coin-ipopt@www-124.ibm.com ##
7913## ----------------------------------------- ##
7914_ASBOX
7915    ) |
7916      sed "s/^/$as_me: WARNING:     /" >&2
7917    ;;
7918esac
7919echo "$as_me:$LINENO: checking for $ac_header" >&5
7920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7921if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922  echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924  eval "$as_ac_Header=\$ac_header_preproc"
7925fi
7926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7928
7929fi
7930if test `eval echo '${'$as_ac_Header'}'` = yes; then
7931  cat >>confdefs.h <<_ACEOF
7932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7933_ACEOF
7934
7935fi
7936
7937done
7938
7939          if test ! "$ac_cv_header_cstdarg" = "yes"; then
7940
7941for ac_header in stdarg.h
7942do
7943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7944if eval "test \"\${$as_ac_Header+set}\" = set"; then
7945  echo "$as_me:$LINENO: checking for $ac_header" >&5
7946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7947if eval "test \"\${$as_ac_Header+set}\" = set"; then
7948  echo $ECHO_N "(cached) $ECHO_C" >&6
7949fi
7950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7951echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7952else
7953  # Is the header compilable?
7954echo "$as_me:$LINENO: checking $ac_header usability" >&5
7955echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7956cat >conftest.$ac_ext <<_ACEOF
7957/* confdefs.h.  */
7958_ACEOF
7959cat confdefs.h >>conftest.$ac_ext
7960cat >>conftest.$ac_ext <<_ACEOF
7961/* end confdefs.h.  */
7962$ac_includes_default
7963#include <$ac_header>
7964_ACEOF
7965rm -f conftest.$ac_objext
7966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7967  (eval $ac_compile) 2>conftest.er1
7968  ac_status=$?
7969  grep -v '^ *+' conftest.er1 >conftest.err
7970  rm -f conftest.er1
7971  cat conftest.err >&5
7972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973  (exit $ac_status); } &&
7974         { ac_try='test -z "$ac_cxx_werror_flag"
7975                         || test ! -s conftest.err'
7976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977  (eval $ac_try) 2>&5
7978  ac_status=$?
7979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980  (exit $ac_status); }; } &&
7981         { ac_try='test -s conftest.$ac_objext'
7982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983  (eval $ac_try) 2>&5
7984  ac_status=$?
7985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986  (exit $ac_status); }; }; then
7987  ac_header_compiler=yes
7988else
7989  echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
7991
7992ac_header_compiler=no
7993fi
7994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7995echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7996echo "${ECHO_T}$ac_header_compiler" >&6
7997
7998# Is the header present?
7999echo "$as_me:$LINENO: checking $ac_header presence" >&5
8000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8001cat >conftest.$ac_ext <<_ACEOF
8002/* confdefs.h.  */
8003_ACEOF
8004cat confdefs.h >>conftest.$ac_ext
8005cat >>conftest.$ac_ext <<_ACEOF
8006/* end confdefs.h.  */
8007#include <$ac_header>
8008_ACEOF
8009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8010  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8011  ac_status=$?
8012  grep -v '^ *+' conftest.er1 >conftest.err
8013  rm -f conftest.er1
8014  cat conftest.err >&5
8015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016  (exit $ac_status); } >/dev/null; then
8017  if test -s conftest.err; then
8018    ac_cpp_err=$ac_cxx_preproc_warn_flag
8019    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8020  else
8021    ac_cpp_err=
8022  fi
8023else
8024  ac_cpp_err=yes
8025fi
8026if test -z "$ac_cpp_err"; then
8027  ac_header_preproc=yes
8028else
8029  echo "$as_me: failed program was:" >&5
8030sed 's/^/| /' conftest.$ac_ext >&5
8031
8032  ac_header_preproc=no
8033fi
8034rm -f conftest.err conftest.$ac_ext
8035echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8036echo "${ECHO_T}$ac_header_preproc" >&6
8037
8038# So?  What about this header?
8039case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8040  yes:no: )
8041    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8043    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8044echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8045    ac_header_preproc=yes
8046    ;;
8047  no:yes:* )
8048    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8050    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8051echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8052    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8053echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8054    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8055echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8056    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8057echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8058    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8059echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8060    (
8061      cat <<\_ASBOX
8062## ----------------------------------------- ##
8063## Report this to coin-ipopt@www-124.ibm.com ##
8064## ----------------------------------------- ##
8065_ASBOX
8066    ) |
8067      sed "s/^/$as_me: WARNING:     /" >&2
8068    ;;
8069esac
8070echo "$as_me:$LINENO: checking for $ac_header" >&5
8071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8072if eval "test \"\${$as_ac_Header+set}\" = set"; then
8073  echo $ECHO_N "(cached) $ECHO_C" >&6
8074else
8075  eval "$as_ac_Header=\$ac_header_preproc"
8076fi
8077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8078echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8079
8080fi
8081if test `eval echo '${'$as_ac_Header'}'` = yes; then
8082  cat >>confdefs.h <<_ACEOF
8083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8084_ACEOF
8085
8086fi
8087
8088done
8089
8090          fi
8091
8092for ac_header in cfloat
8093do
8094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8095if eval "test \"\${$as_ac_Header+set}\" = set"; then
8096  echo "$as_me:$LINENO: checking for $ac_header" >&5
8097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8098if eval "test \"\${$as_ac_Header+set}\" = set"; then
8099  echo $ECHO_N "(cached) $ECHO_C" >&6
8100fi
8101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8103else
8104  # Is the header compilable?
8105echo "$as_me:$LINENO: checking $ac_header usability" >&5
8106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8107cat >conftest.$ac_ext <<_ACEOF
8108/* confdefs.h.  */
8109_ACEOF
8110cat confdefs.h >>conftest.$ac_ext
8111cat >>conftest.$ac_ext <<_ACEOF
8112/* end confdefs.h.  */
8113$ac_includes_default
8114#include <$ac_header>
8115_ACEOF
8116rm -f conftest.$ac_objext
8117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118  (eval $ac_compile) 2>conftest.er1
8119  ac_status=$?
8120  grep -v '^ *+' conftest.er1 >conftest.err
8121  rm -f conftest.er1
8122  cat conftest.err >&5
8123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124  (exit $ac_status); } &&
8125         { ac_try='test -z "$ac_cxx_werror_flag"
8126                         || test ! -s conftest.err'
8127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128  (eval $ac_try) 2>&5
8129  ac_status=$?
8130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131  (exit $ac_status); }; } &&
8132         { ac_try='test -s conftest.$ac_objext'
8133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134  (eval $ac_try) 2>&5
8135  ac_status=$?
8136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137  (exit $ac_status); }; }; then
8138  ac_header_compiler=yes
8139else
8140  echo "$as_me: failed program was:" >&5
8141sed 's/^/| /' conftest.$ac_ext >&5
8142
8143ac_header_compiler=no
8144fi
8145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8147echo "${ECHO_T}$ac_header_compiler" >&6
8148
8149# Is the header present?
8150echo "$as_me:$LINENO: checking $ac_header presence" >&5
8151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8152cat >conftest.$ac_ext <<_ACEOF
8153/* confdefs.h.  */
8154_ACEOF
8155cat confdefs.h >>conftest.$ac_ext
8156cat >>conftest.$ac_ext <<_ACEOF
8157/* end confdefs.h.  */
8158#include <$ac_header>
8159_ACEOF
8160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8161  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8162  ac_status=$?
8163  grep -v '^ *+' conftest.er1 >conftest.err
8164  rm -f conftest.er1
8165  cat conftest.err >&5
8166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167  (exit $ac_status); } >/dev/null; then
8168  if test -s conftest.err; then
8169    ac_cpp_err=$ac_cxx_preproc_warn_flag
8170    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8171  else
8172    ac_cpp_err=
8173  fi
8174else
8175  ac_cpp_err=yes
8176fi
8177if test -z "$ac_cpp_err"; then
8178  ac_header_preproc=yes
8179else
8180  echo "$as_me: failed program was:" >&5
8181sed 's/^/| /' conftest.$ac_ext >&5
8182
8183  ac_header_preproc=no
8184fi
8185rm -f conftest.err conftest.$ac_ext
8186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8187echo "${ECHO_T}$ac_header_preproc" >&6
8188
8189# So?  What about this header?
8190case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8191  yes:no: )
8192    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8194    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8196    ac_header_preproc=yes
8197    ;;
8198  no:yes:* )
8199    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8201    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8202echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8203    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8205    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8206echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8207    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8209    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8211    (
8212      cat <<\_ASBOX
8213## ----------------------------------------- ##
8214## Report this to coin-ipopt@www-124.ibm.com ##
8215## ----------------------------------------- ##
8216_ASBOX
8217    ) |
8218      sed "s/^/$as_me: WARNING:     /" >&2
8219    ;;
8220esac
8221echo "$as_me:$LINENO: checking for $ac_header" >&5
8222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8223if eval "test \"\${$as_ac_Header+set}\" = set"; then
8224  echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226  eval "$as_ac_Header=\$ac_header_preproc"
8227fi
8228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8230
8231fi
8232if test `eval echo '${'$as_ac_Header'}'` = yes; then
8233  cat >>confdefs.h <<_ACEOF
8234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8235_ACEOF
8236
8237fi
8238
8239done
8240
8241          if test ! "$ac_cv_header_cfloat" = "yes"; then
8242
8243for ac_header in float.h
8244do
8245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8246if eval "test \"\${$as_ac_Header+set}\" = set"; then
8247  echo "$as_me:$LINENO: checking for $ac_header" >&5
8248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8249if eval "test \"\${$as_ac_Header+set}\" = set"; then
8250  echo $ECHO_N "(cached) $ECHO_C" >&6
8251fi
8252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8254else
8255  # Is the header compilable?
8256echo "$as_me:$LINENO: checking $ac_header usability" >&5
8257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8258cat >conftest.$ac_ext <<_ACEOF
8259/* confdefs.h.  */
8260_ACEOF
8261cat confdefs.h >>conftest.$ac_ext
8262cat >>conftest.$ac_ext <<_ACEOF
8263/* end confdefs.h.  */
8264$ac_includes_default
8265#include <$ac_header>
8266_ACEOF
8267rm -f conftest.$ac_objext
8268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8269  (eval $ac_compile) 2>conftest.er1
8270  ac_status=$?
8271  grep -v '^ *+' conftest.er1 >conftest.err
8272  rm -f conftest.er1
8273  cat conftest.err >&5
8274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275  (exit $ac_status); } &&
8276         { ac_try='test -z "$ac_cxx_werror_flag"
8277                         || test ! -s conftest.err'
8278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279  (eval $ac_try) 2>&5
8280  ac_status=$?
8281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282  (exit $ac_status); }; } &&
8283         { ac_try='test -s conftest.$ac_objext'
8284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285  (eval $ac_try) 2>&5
8286  ac_status=$?
8287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288  (exit $ac_status); }; }; then
8289  ac_header_compiler=yes
8290else
8291  echo "$as_me: failed program was:" >&5
8292sed 's/^/| /' conftest.$ac_ext >&5
8293
8294ac_header_compiler=no
8295fi
8296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8298echo "${ECHO_T}$ac_header_compiler" >&6
8299
8300# Is the header present?
8301echo "$as_me:$LINENO: checking $ac_header presence" >&5
8302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8303cat >conftest.$ac_ext <<_ACEOF
8304/* confdefs.h.  */
8305_ACEOF
8306cat confdefs.h >>conftest.$ac_ext
8307cat >>conftest.$ac_ext <<_ACEOF
8308/* end confdefs.h.  */
8309#include <$ac_header>
8310_ACEOF
8311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8312  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8313  ac_status=$?
8314  grep -v '^ *+' conftest.er1 >conftest.err
8315  rm -f conftest.er1
8316  cat conftest.err >&5
8317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318  (exit $ac_status); } >/dev/null; then
8319  if test -s conftest.err; then
8320    ac_cpp_err=$ac_cxx_preproc_warn_flag
8321    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8322  else
8323    ac_cpp_err=
8324  fi
8325else
8326  ac_cpp_err=yes
8327fi
8328if test -z "$ac_cpp_err"; then
8329  ac_header_preproc=yes
8330else
8331  echo "$as_me: failed program was:" >&5
8332sed 's/^/| /' conftest.$ac_ext >&5
8333
8334  ac_header_preproc=no
8335fi
8336rm -f conftest.err conftest.$ac_ext
8337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8338echo "${ECHO_T}$ac_header_preproc" >&6
8339
8340# So?  What about this header?
8341case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8342  yes:no: )
8343    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8345    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8347    ac_header_preproc=yes
8348    ;;
8349  no:yes:* )
8350    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8352    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8353echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8354    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8356    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8357echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8358    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8360    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8362    (
8363      cat <<\_ASBOX
8364## ----------------------------------------- ##
8365## Report this to coin-ipopt@www-124.ibm.com ##
8366## ----------------------------------------- ##
8367_ASBOX
8368    ) |
8369      sed "s/^/$as_me: WARNING:     /" >&2
8370    ;;
8371esac
8372echo "$as_me:$LINENO: checking for $ac_header" >&5
8373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8374if eval "test \"\${$as_ac_Header+set}\" = set"; then
8375  echo $ECHO_N "(cached) $ECHO_C" >&6
8376else
8377  eval "$as_ac_Header=\$ac_header_preproc"
8378fi
8379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8381
8382fi
8383if test `eval echo '${'$as_ac_Header'}'` = yes; then
8384  cat >>confdefs.h <<_ACEOF
8385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8386_ACEOF
8387
8388fi
8389
8390done
8391
8392          fi
8393
8394for ac_header in ctime
8395do
8396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8397if eval "test \"\${$as_ac_Header+set}\" = set"; then
8398  echo "$as_me:$LINENO: checking for $ac_header" >&5
8399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8400if eval "test \"\${$as_ac_Header+set}\" = set"; then
8401  echo $ECHO_N "(cached) $ECHO_C" >&6
8402fi
8403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8405else
8406  # Is the header compilable?
8407echo "$as_me:$LINENO: checking $ac_header usability" >&5
8408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8409cat >conftest.$ac_ext <<_ACEOF
8410/* confdefs.h.  */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
8414/* end confdefs.h.  */
8415$ac_includes_default
8416#include <$ac_header>
8417_ACEOF
8418rm -f conftest.$ac_objext
8419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8420  (eval $ac_compile) 2>conftest.er1
8421  ac_status=$?
8422  grep -v '^ *+' conftest.er1 >conftest.err
8423  rm -f conftest.er1
8424  cat conftest.err >&5
8425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426  (exit $ac_status); } &&
8427         { ac_try='test -z "$ac_cxx_werror_flag"
8428                         || test ! -s conftest.err'
8429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430  (eval $ac_try) 2>&5
8431  ac_status=$?
8432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433  (exit $ac_status); }; } &&
8434         { ac_try='test -s conftest.$ac_objext'
8435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436  (eval $ac_try) 2>&5
8437  ac_status=$?
8438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439  (exit $ac_status); }; }; then
8440  ac_header_compiler=yes
8441else
8442  echo "$as_me: failed program was:" >&5
8443sed 's/^/| /' conftest.$ac_ext >&5
8444
8445ac_header_compiler=no
8446fi
8447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8449echo "${ECHO_T}$ac_header_compiler" >&6
8450
8451# Is the header present?
8452echo "$as_me:$LINENO: checking $ac_header presence" >&5
8453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8454cat >conftest.$ac_ext <<_ACEOF
8455/* confdefs.h.  */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
8459/* end confdefs.h.  */
8460#include <$ac_header>
8461_ACEOF
8462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8463  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8464  ac_status=$?
8465  grep -v '^ *+' conftest.er1 >conftest.err
8466  rm -f conftest.er1
8467  cat conftest.err >&5
8468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469  (exit $ac_status); } >/dev/null; then
8470  if test -s conftest.err; then
8471    ac_cpp_err=$ac_cxx_preproc_warn_flag
8472    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8473  else
8474    ac_cpp_err=
8475  fi
8476else
8477  ac_cpp_err=yes
8478fi
8479if test -z "$ac_cpp_err"; then
8480  ac_header_preproc=yes
8481else
8482  echo "$as_me: failed program was:" >&5
8483sed 's/^/| /' conftest.$ac_ext >&5
8484
8485  ac_header_preproc=no
8486fi
8487rm -f conftest.err conftest.$ac_ext
8488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8489echo "${ECHO_T}$ac_header_preproc" >&6
8490
8491# So?  What about this header?
8492case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8493  yes:no: )
8494    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8496    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8498    ac_header_preproc=yes
8499    ;;
8500  no:yes:* )
8501    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8503    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8504echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8505    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8507    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8508echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8509    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8511    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8513    (
8514      cat <<\_ASBOX
8515## ----------------------------------------- ##
8516## Report this to coin-ipopt@www-124.ibm.com ##
8517## ----------------------------------------- ##
8518_ASBOX
8519    ) |
8520      sed "s/^/$as_me: WARNING:     /" >&2
8521    ;;
8522esac
8523echo "$as_me:$LINENO: checking for $ac_header" >&5
8524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8525if eval "test \"\${$as_ac_Header+set}\" = set"; then
8526  echo $ECHO_N "(cached) $ECHO_C" >&6
8527else
8528  eval "$as_ac_Header=\$ac_header_preproc"
8529fi
8530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8532
8533fi
8534if test `eval echo '${'$as_ac_Header'}'` = yes; then
8535  cat >>confdefs.h <<_ACEOF
8536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8537_ACEOF
8538
8539fi
8540
8541done
8542
8543          if test ! "$ac_cv_header_ctime" = "yes"; then
8544
8545for ac_header in time.h
8546do
8547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8548if eval "test \"\${$as_ac_Header+set}\" = set"; then
8549  echo "$as_me:$LINENO: checking for $ac_header" >&5
8550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8551if eval "test \"\${$as_ac_Header+set}\" = set"; then
8552  echo $ECHO_N "(cached) $ECHO_C" >&6
8553fi
8554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8556else
8557  # Is the header compilable?
8558echo "$as_me:$LINENO: checking $ac_header usability" >&5
8559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8560cat >conftest.$ac_ext <<_ACEOF
8561/* confdefs.h.  */
8562_ACEOF
8563cat confdefs.h >>conftest.$ac_ext
8564cat >>conftest.$ac_ext <<_ACEOF
8565/* end confdefs.h.  */
8566$ac_includes_default
8567#include <$ac_header>
8568_ACEOF
8569rm -f conftest.$ac_objext
8570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8571  (eval $ac_compile) 2>conftest.er1
8572  ac_status=$?
8573  grep -v '^ *+' conftest.er1 >conftest.err
8574  rm -f conftest.er1
8575  cat conftest.err >&5
8576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577  (exit $ac_status); } &&
8578         { ac_try='test -z "$ac_cxx_werror_flag"
8579                         || test ! -s conftest.err'
8580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581  (eval $ac_try) 2>&5
8582  ac_status=$?
8583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584  (exit $ac_status); }; } &&
8585         { ac_try='test -s conftest.$ac_objext'
8586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587  (eval $ac_try) 2>&5
8588  ac_status=$?
8589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590  (exit $ac_status); }; }; then
8591  ac_header_compiler=yes
8592else
8593  echo "$as_me: failed program was:" >&5
8594sed 's/^/| /' conftest.$ac_ext >&5
8595
8596ac_header_compiler=no
8597fi
8598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8599echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8600echo "${ECHO_T}$ac_header_compiler" >&6
8601
8602# Is the header present?
8603echo "$as_me:$LINENO: checking $ac_header presence" >&5
8604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8605cat >conftest.$ac_ext <<_ACEOF
8606/* confdefs.h.  */
8607_ACEOF
8608cat confdefs.h >>conftest.$ac_ext
8609cat >>conftest.$ac_ext <<_ACEOF
8610/* end confdefs.h.  */
8611#include <$ac_header>
8612_ACEOF
8613if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8614  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8615  ac_status=$?
8616  grep -v '^ *+' conftest.er1 >conftest.err
8617  rm -f conftest.er1
8618  cat conftest.err >&5
8619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620  (exit $ac_status); } >/dev/null; then
8621  if test -s conftest.err; then
8622    ac_cpp_err=$ac_cxx_preproc_warn_flag
8623    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8624  else
8625    ac_cpp_err=
8626  fi
8627else
8628  ac_cpp_err=yes
8629fi
8630if test -z "$ac_cpp_err"; then
8631  ac_header_preproc=yes
8632else
8633  echo "$as_me: failed program was:" >&5
8634sed 's/^/| /' conftest.$ac_ext >&5
8635
8636  ac_header_preproc=no
8637fi
8638rm -f conftest.err conftest.$ac_ext
8639echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8640echo "${ECHO_T}$ac_header_preproc" >&6
8641
8642# So?  What about this header?
8643case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8644  yes:no: )
8645    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8646echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8647    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8648echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8649    ac_header_preproc=yes
8650    ;;
8651  no:yes:* )
8652    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8653echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8654    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8655echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8656    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8657echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8658    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8659echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8660    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8662    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8663echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8664    (
8665      cat <<\_ASBOX
8666## ----------------------------------------- ##
8667## Report this to coin-ipopt@www-124.ibm.com ##
8668## ----------------------------------------- ##
8669_ASBOX
8670    ) |
8671      sed "s/^/$as_me: WARNING:     /" >&2
8672    ;;
8673esac
8674echo "$as_me:$LINENO: checking for $ac_header" >&5
8675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8676if eval "test \"\${$as_ac_Header+set}\" = set"; then
8677  echo $ECHO_N "(cached) $ECHO_C" >&6
8678else
8679  eval "$as_ac_Header=\$ac_header_preproc"
8680fi
8681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8683
8684fi
8685if test `eval echo '${'$as_ac_Header'}'` = yes; then
8686  cat >>confdefs.h <<_ACEOF
8687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8688_ACEOF
8689
8690fi
8691
8692done
8693
8694          fi
8695
8696###################
8697# Function finite #
8698###################
8699
8700# First check for a few headers
8701
8702case $build in
8703  *-cygwin*) ;;
8704  *)
8705for ac_header in cieeefp
8706do
8707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8708if eval "test \"\${$as_ac_Header+set}\" = set"; then
8709  echo "$as_me:$LINENO: checking for $ac_header" >&5
8710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8711if eval "test \"\${$as_ac_Header+set}\" = set"; then
8712  echo $ECHO_N "(cached) $ECHO_C" >&6
8713fi
8714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8716else
8717  # Is the header compilable?
8718echo "$as_me:$LINENO: checking $ac_header usability" >&5
8719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8720cat >conftest.$ac_ext <<_ACEOF
8721/* confdefs.h.  */
8722_ACEOF
8723cat confdefs.h >>conftest.$ac_ext
8724cat >>conftest.$ac_ext <<_ACEOF
8725/* end confdefs.h.  */
8726$ac_includes_default
8727#include <$ac_header>
8728_ACEOF
8729rm -f conftest.$ac_objext
8730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8731  (eval $ac_compile) 2>conftest.er1
8732  ac_status=$?
8733  grep -v '^ *+' conftest.er1 >conftest.err
8734  rm -f conftest.er1
8735  cat conftest.err >&5
8736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737  (exit $ac_status); } &&
8738         { ac_try='test -z "$ac_cxx_werror_flag"
8739                         || test ! -s conftest.err'
8740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741  (eval $ac_try) 2>&5
8742  ac_status=$?
8743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744  (exit $ac_status); }; } &&
8745         { ac_try='test -s conftest.$ac_objext'
8746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747  (eval $ac_try) 2>&5
8748  ac_status=$?
8749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750  (exit $ac_status); }; }; then
8751  ac_header_compiler=yes
8752else
8753  echo "$as_me: failed program was:" >&5
8754sed 's/^/| /' conftest.$ac_ext >&5
8755
8756ac_header_compiler=no
8757fi
8758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8760echo "${ECHO_T}$ac_header_compiler" >&6
8761
8762# Is the header present?
8763echo "$as_me:$LINENO: checking $ac_header presence" >&5
8764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8765cat >conftest.$ac_ext <<_ACEOF
8766/* confdefs.h.  */
8767_ACEOF
8768cat confdefs.h >>conftest.$ac_ext
8769cat >>conftest.$ac_ext <<_ACEOF
8770/* end confdefs.h.  */
8771#include <$ac_header>
8772_ACEOF
8773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8774  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8775  ac_status=$?
8776  grep -v '^ *+' conftest.er1 >conftest.err
8777  rm -f conftest.er1
8778  cat conftest.err >&5
8779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780  (exit $ac_status); } >/dev/null; then
8781  if test -s conftest.err; then
8782    ac_cpp_err=$ac_cxx_preproc_warn_flag
8783    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8784  else
8785    ac_cpp_err=
8786  fi
8787else
8788  ac_cpp_err=yes
8789fi
8790if test -z "$ac_cpp_err"; then
8791  ac_header_preproc=yes
8792else
8793  echo "$as_me: failed program was:" >&5
8794sed 's/^/| /' conftest.$ac_ext >&5
8795
8796  ac_header_preproc=no
8797fi
8798rm -f conftest.err conftest.$ac_ext
8799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8800echo "${ECHO_T}$ac_header_preproc" >&6
8801
8802# So?  What about this header?
8803case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8804  yes:no: )
8805    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8807    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8809    ac_header_preproc=yes
8810    ;;
8811  no:yes:* )
8812    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8814    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8815echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8816    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8818    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8819echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8820    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8822    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8824    (
8825      cat <<\_ASBOX
8826## ----------------------------------------- ##
8827## Report this to coin-ipopt@www-124.ibm.com ##
8828## ----------------------------------------- ##
8829_ASBOX
8830    ) |
8831      sed "s/^/$as_me: WARNING:     /" >&2
8832    ;;
8833esac
8834echo "$as_me:$LINENO: checking for $ac_header" >&5
8835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8836if eval "test \"\${$as_ac_Header+set}\" = set"; then
8837  echo $ECHO_N "(cached) $ECHO_C" >&6
8838else
8839  eval "$as_ac_Header=\$ac_header_preproc"
8840fi
8841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8843
8844fi
8845if test `eval echo '${'$as_ac_Header'}'` = yes; then
8846  cat >>confdefs.h <<_ACEOF
8847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8848_ACEOF
8849
8850fi
8851
8852done
8853
8854          if test ! "$ac_cv_header_cieeefp" = "yes"; then
8855
8856for ac_header in ieeefp.h
8857do
8858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8859if eval "test \"\${$as_ac_Header+set}\" = set"; then
8860  echo "$as_me:$LINENO: checking for $ac_header" >&5
8861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8862if eval "test \"\${$as_ac_Header+set}\" = set"; then
8863  echo $ECHO_N "(cached) $ECHO_C" >&6
8864fi
8865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8867else
8868  # Is the header compilable?
8869echo "$as_me:$LINENO: checking $ac_header usability" >&5
8870echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8871cat >conftest.$ac_ext <<_ACEOF
8872/* confdefs.h.  */
8873_ACEOF
8874cat confdefs.h >>conftest.$ac_ext
8875cat >>conftest.$ac_ext <<_ACEOF
8876/* end confdefs.h.  */
8877$ac_includes_default
8878#include <$ac_header>
8879_ACEOF
8880rm -f conftest.$ac_objext
8881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8882  (eval $ac_compile) 2>conftest.er1
8883  ac_status=$?
8884  grep -v '^ *+' conftest.er1 >conftest.err
8885  rm -f conftest.er1
8886  cat conftest.err >&5
8887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888  (exit $ac_status); } &&
8889         { ac_try='test -z "$ac_cxx_werror_flag"
8890                         || test ! -s conftest.err'
8891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892  (eval $ac_try) 2>&5
8893  ac_status=$?
8894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895  (exit $ac_status); }; } &&
8896         { ac_try='test -s conftest.$ac_objext'
8897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898  (eval $ac_try) 2>&5
8899  ac_status=$?
8900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901  (exit $ac_status); }; }; then
8902  ac_header_compiler=yes
8903else
8904  echo "$as_me: failed program was:" >&5
8905sed 's/^/| /' conftest.$ac_ext >&5
8906
8907ac_header_compiler=no
8908fi
8909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8910echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8911echo "${ECHO_T}$ac_header_compiler" >&6
8912
8913# Is the header present?
8914echo "$as_me:$LINENO: checking $ac_header presence" >&5
8915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8916cat >conftest.$ac_ext <<_ACEOF
8917/* confdefs.h.  */
8918_ACEOF
8919cat confdefs.h >>conftest.$ac_ext
8920cat >>conftest.$ac_ext <<_ACEOF
8921/* end confdefs.h.  */
8922#include <$ac_header>
8923_ACEOF
8924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8925  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8926  ac_status=$?
8927  grep -v '^ *+' conftest.er1 >conftest.err
8928  rm -f conftest.er1
8929  cat conftest.err >&5
8930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931  (exit $ac_status); } >/dev/null; then
8932  if test -s conftest.err; then
8933    ac_cpp_err=$ac_cxx_preproc_warn_flag
8934    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8935  else
8936    ac_cpp_err=
8937  fi
8938else
8939  ac_cpp_err=yes
8940fi
8941if test -z "$ac_cpp_err"; then
8942  ac_header_preproc=yes
8943else
8944  echo "$as_me: failed program was:" >&5
8945sed 's/^/| /' conftest.$ac_ext >&5
8946
8947  ac_header_preproc=no
8948fi
8949rm -f conftest.err conftest.$ac_ext
8950echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8951echo "${ECHO_T}$ac_header_preproc" >&6
8952
8953# So?  What about this header?
8954case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8955  yes:no: )
8956    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8957echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8958    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8959echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8960    ac_header_preproc=yes
8961    ;;
8962  no:yes:* )
8963    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8964echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8965    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8966echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8967    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8968echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8969    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8970echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8971    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8972echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8973    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8974echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8975    (
8976      cat <<\_ASBOX
8977## ----------------------------------------- ##
8978## Report this to coin-ipopt@www-124.ibm.com ##
8979## ----------------------------------------- ##
8980_ASBOX
8981    ) |
8982      sed "s/^/$as_me: WARNING:     /" >&2
8983    ;;
8984esac
8985echo "$as_me:$LINENO: checking for $ac_header" >&5
8986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8987if eval "test \"\${$as_ac_Header+set}\" = set"; then
8988  echo $ECHO_N "(cached) $ECHO_C" >&6
8989else
8990  eval "$as_ac_Header=\$ac_header_preproc"
8991fi
8992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8994
8995fi
8996if test `eval echo '${'$as_ac_Header'}'` = yes; then
8997  cat >>confdefs.h <<_ACEOF
8998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8999_ACEOF
9000
9001fi
9002
9003done
9004
9005          fi ;;
9006esac
9007
9008# now try to guess the correct name of the finite function
9009
9010MY_C_FINITE=
9011echo "$as_me:$LINENO: checking whether finite is declared" >&5
9012echo $ECHO_N "checking whether finite is declared... $ECHO_C" >&6
9013if test "${ac_cv_have_decl_finite+set}" = set; then
9014  echo $ECHO_N "(cached) $ECHO_C" >&6
9015else
9016  cat >conftest.$ac_ext <<_ACEOF
9017/* confdefs.h.  */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
9021/* end confdefs.h.  */
9022
9023#ifdef HAVE_CMATH
9024# include <cmath>
9025#else
9026# ifdef HAVE_MATH_H
9027#  include <math.h>
9028# endif
9029#endif
9030#ifdef HAVE_CFLOAT
9031# include <cfloat>
9032#else
9033# ifdef HAVE_FLOAT_H
9034#  include <float.h>
9035# endif
9036#endif
9037#ifdef HAVE_CIEEEFP
9038# include <cieeefp>
9039#else
9040# ifdef HAVE_IEEEFP_H
9041#  include <ieeefp.h>
9042# endif
9043#endif
9044
9045#ifdef F77_DUMMY_MAIN
9046
9047#  ifdef __cplusplus
9048     extern "C"
9049#  endif
9050   int F77_DUMMY_MAIN() { return 1; }
9051
9052#endif
9053int
9054main ()
9055{
9056#ifndef finite
9057  char *p = (char *) finite;
9058#endif
9059
9060  ;
9061  return 0;
9062}
9063_ACEOF
9064rm -f conftest.$ac_objext
9065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066  (eval $ac_compile) 2>conftest.er1
9067  ac_status=$?
9068  grep -v '^ *+' conftest.er1 >conftest.err
9069  rm -f conftest.er1
9070  cat conftest.err >&5
9071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072  (exit $ac_status); } &&
9073         { ac_try='test -z "$ac_cxx_werror_flag"
9074                         || test ! -s conftest.err'
9075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076  (eval $ac_try) 2>&5
9077  ac_status=$?
9078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079  (exit $ac_status); }; } &&
9080         { ac_try='test -s conftest.$ac_objext'
9081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082  (eval $ac_try) 2>&5
9083  ac_status=$?
9084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085  (exit $ac_status); }; }; then
9086  ac_cv_have_decl_finite=yes
9087else
9088  echo "$as_me: failed program was:" >&5
9089sed 's/^/| /' conftest.$ac_ext >&5
9090
9091ac_cv_have_decl_finite=no
9092fi
9093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9094fi
9095echo "$as_me:$LINENO: result: $ac_cv_have_decl_finite" >&5
9096echo "${ECHO_T}$ac_cv_have_decl_finite" >&6
9097if test $ac_cv_have_decl_finite = yes; then
9098  MY_C_FINITE=finite
9099fi
9100
9101if test -z "$MY_C_FINITE"; then
9102  echo "$as_me:$LINENO: checking whether _finite is declared" >&5
9103echo $ECHO_N "checking whether _finite is declared... $ECHO_C" >&6
9104if test "${ac_cv_have_decl__finite+set}" = set; then
9105  echo $ECHO_N "(cached) $ECHO_C" >&6
9106else
9107  cat >conftest.$ac_ext <<_ACEOF
9108/* confdefs.h.  */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h.  */
9113
9114#ifdef HAVE_CMATH
9115# include <cmath>
9116#else
9117# ifdef HAVE_MATH_H
9118#  include <math.h>
9119# endif
9120#endif
9121#ifdef HAVE_CFLOAT
9122# include <cfloat>
9123#else
9124# ifdef HAVE_FLOAT_H
9125#  include <float.h>
9126# endif
9127#endif
9128#ifdef HAVE_CIEEEFP
9129# include <cieeefp>
9130#else
9131# ifdef HAVE_IEEEFP_H
9132#  include <ieeefp.h>
9133# endif
9134#endif
9135
9136#ifdef F77_DUMMY_MAIN
9137
9138#  ifdef __cplusplus
9139     extern "C"
9140#  endif
9141   int F77_DUMMY_MAIN() { return 1; }
9142
9143#endif
9144int
9145main ()
9146{
9147#ifndef _finite
9148  char *p = (char *) _finite;
9149#endif
9150
9151  ;
9152  return 0;
9153}
9154_ACEOF
9155rm -f conftest.$ac_objext
9156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157  (eval $ac_compile) 2>conftest.er1
9158  ac_status=$?
9159  grep -v '^ *+' conftest.er1 >conftest.err
9160  rm -f conftest.er1
9161  cat conftest.err >&5
9162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163  (exit $ac_status); } &&
9164         { ac_try='test -z "$ac_cxx_werror_flag"
9165                         || test ! -s conftest.err'
9166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167  (eval $ac_try) 2>&5
9168  ac_status=$?
9169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170  (exit $ac_status); }; } &&
9171         { ac_try='test -s conftest.$ac_objext'
9172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173  (eval $ac_try) 2>&5
9174  ac_status=$?
9175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176  (exit $ac_status); }; }; then
9177  ac_cv_have_decl__finite=yes
9178else
9179  echo "$as_me: failed program was:" >&5
9180sed 's/^/| /' conftest.$ac_ext >&5
9181
9182ac_cv_have_decl__finite=no
9183fi
9184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9185fi
9186echo "$as_me:$LINENO: result: $ac_cv_have_decl__finite" >&5
9187echo "${ECHO_T}$ac_cv_have_decl__finite" >&6
9188if test $ac_cv_have_decl__finite = yes; then
9189  MY_C_FINITE=_finite
9190fi
9191
9192  if test -z "$MY_C_FINITE"; then
9193    echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
9194echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6
9195if test "${ac_cv_have_decl_isfinite+set}" = set; then
9196  echo $ECHO_N "(cached) $ECHO_C" >&6
9197else
9198  cat >conftest.$ac_ext <<_ACEOF
9199/* confdefs.h.  */
9200_ACEOF
9201cat confdefs.h >>conftest.$ac_ext
9202cat >>conftest.$ac_ext <<_ACEOF
9203/* end confdefs.h.  */
9204
9205#ifdef HAVE_CMATH
9206# include <cmath>
9207#else
9208# ifdef HAVE_MATH_H
9209#  include <math.h>
9210# endif
9211#endif
9212#ifdef HAVE_CFLOAT
9213# include <cfloat>
9214#else
9215# ifdef HAVE_FLOAT_H
9216#  include <float.h>
9217# endif
9218#endif
9219#ifdef HAVE_CIEEEFP
9220# include <cieeefp>
9221#else
9222# ifdef HAVE_IEEEFP_H
9223#  include <ieeefp.h>
9224# endif
9225#endif
9226
9227#ifdef F77_DUMMY_MAIN
9228
9229#  ifdef __cplusplus
9230     extern "C"
9231#  endif
9232   int F77_DUMMY_MAIN() { return 1; }
9233
9234#endif
9235int
9236main ()
9237{
9238#ifndef isfinite
9239  char *p = (char *) isfinite;
9240#endif
9241
9242  ;
9243  return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext
9247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9248  (eval $ac_compile) 2>conftest.er1
9249  ac_status=$?
9250  grep -v '^ *+' conftest.er1 >conftest.err
9251  rm -f conftest.er1
9252  cat conftest.err >&5
9253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254  (exit $ac_status); } &&
9255         { ac_try='test -z "$ac_cxx_werror_flag"
9256                         || test ! -s conftest.err'
9257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258  (eval $ac_try) 2>&5
9259  ac_status=$?
9260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261  (exit $ac_status); }; } &&
9262         { ac_try='test -s conftest.$ac_objext'
9263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264  (eval $ac_try) 2>&5
9265  ac_status=$?
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); }; }; then
9268  ac_cv_have_decl_isfinite=yes
9269else
9270  echo "$as_me: failed program was:" >&5
9271sed 's/^/| /' conftest.$ac_ext >&5
9272
9273ac_cv_have_decl_isfinite=no
9274fi
9275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9276fi
9277echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
9278echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6
9279if test $ac_cv_have_decl_isfinite = yes; then
9280  MY_C_FINITE=isfinite
9281fi
9282
9283  fi
9284fi
9285if test -z "$MY_C_FINITE"; then
9286  { echo "$as_me:$LINENO: WARNING: Cannot find C-function for checking NaN and Inf.  Check will be disabled" >&5
9287echo "$as_me: WARNING: Cannot find C-function for checking NaN and Inf.  Check will be disabled" >&2;}
9288else
9289
9290cat >>confdefs.h <<_ACEOF
9291#define MY_C_FINITE $MY_C_FINITE
9292_ACEOF
9293
9294fi
9295
9296###########
9297# va_copy #
9298###########
9299
9300echo "$as_me:$LINENO: checking whether va_copy is declared" >&5
9301echo $ECHO_N "checking whether va_copy is declared... $ECHO_C" >&6
9302if test "${ac_cv_have_decl_va_copy+set}" = set; then
9303  echo $ECHO_N "(cached) $ECHO_C" >&6
9304else
9305  cat >conftest.$ac_ext <<_ACEOF
9306/* confdefs.h.  */
9307_ACEOF
9308cat confdefs.h >>conftest.$ac_ext
9309cat >>conftest.$ac_ext <<_ACEOF
9310/* end confdefs.h.  */
9311
9312#ifdef HAVE_CSTDARG
9313# include <cstdarg>
9314#else
9315# ifdef HAVE_STDARG_H
9316#  include <stdarg.h>
9317# endif
9318#endif
9319
9320#ifdef F77_DUMMY_MAIN
9321
9322#  ifdef __cplusplus
9323     extern "C"
9324#  endif
9325   int F77_DUMMY_MAIN() { return 1; }
9326
9327#endif
9328int
9329main ()
9330{
9331#ifndef va_copy
9332  char *p = (char *) va_copy;
9333#endif
9334
9335  ;
9336  return 0;
9337}
9338_ACEOF
9339rm -f conftest.$ac_objext
9340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341  (eval $ac_compile) 2>conftest.er1
9342  ac_status=$?
9343  grep -v '^ *+' conftest.er1 >conftest.err
9344  rm -f conftest.er1
9345  cat conftest.err >&5
9346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347  (exit $ac_status); } &&
9348         { ac_try='test -z "$ac_cxx_werror_flag"
9349                         || test ! -s conftest.err'
9350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351  (eval $ac_try) 2>&5
9352  ac_status=$?
9353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354  (exit $ac_status); }; } &&
9355         { ac_try='test -s conftest.$ac_objext'
9356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357  (eval $ac_try) 2>&5
9358  ac_status=$?
9359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360  (exit $ac_status); }; }; then
9361  ac_cv_have_decl_va_copy=yes
9362else
9363  echo "$as_me: failed program was:" >&5
9364sed 's/^/| /' conftest.$ac_ext >&5
9365
9366ac_cv_have_decl_va_copy=no
9367fi
9368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9369fi
9370echo "$as_me:$LINENO: result: $ac_cv_have_decl_va_copy" >&5
9371echo "${ECHO_T}$ac_cv_have_decl_va_copy" >&6
9372if test $ac_cv_have_decl_va_copy = yes; then
9373
9374cat >>confdefs.h <<\_ACEOF
9375#define HAVE_VA_COPY 1
9376_ACEOF
9377
9378fi
9379
9380
9381##########################################################################
9382
9383# Additional libraries and packages
9384
9385IPADDLIBS=
9386
9387
9388##########
9389#  BLAS  #
9390##########
9391
9392ipblaslibdir="\$(top_builddir)/Extern/blas"
9393
9394
9395# Check whether --with-blas or --without-blas was given.
9396if test "${with_blas+set}" = set; then
9397  withval="$with_blas"
9398  use_blas=$withval
9399else
9400  use_blas=
9401fi;
9402# Check if user supplied option makes sense
9403if test ! -z "$use_blas"; then
9404  if test "$use_blas" = "BUILD"; then
9405    as_ac_File=`echo "ac_cv_file_$srcdir/Extern/blas/dgemm.f" | $as_tr_sh`
9406echo "$as_me:$LINENO: checking for $srcdir/Extern/blas/dgemm.f" >&5
9407echo $ECHO_N "checking for $srcdir/Extern/blas/dgemm.f... $ECHO_C" >&6
9408if eval "test \"\${$as_ac_File+set}\" = set"; then
9409  echo $ECHO_N "(cached) $ECHO_C" >&6
9410else
9411  test "$cross_compiling" = yes &&
9412  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9413echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9414   { (exit 1); exit 1; }; }
9415if test -r "$srcdir/Extern/blas/dgemm.f"; then
9416  eval "$as_ac_File=yes"
9417else
9418  eval "$as_ac_File=no"
9419fi
9420fi
9421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
9422echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9423if test `eval echo '${'$as_ac_File'}'` = yes; then
9424  :
9425else
9426  { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for blas, but sources are missing" >&5
9427echo "$as_me: error: option \"BUILD\" specified for blas, but sources are missing" >&2;}
9428   { (exit 1); exit 1; }; }
9429fi
9430
9431  else
9432    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
9433echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
9434    LIBS="$use_blas $LIBS"
9435    IPADDLIBS="$use_blas $IPADDLIBS"
9436    # Probably the blas library requires the Fortran libraries, so add
9437    # them for this test.  They are added at the end anyway
9438    SAVE_LIBS="$LIBS"
9439    LIBS="$LIBS $FLIBS"
9440    ac_ext=f
9441ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9442ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9443ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9444case $ac_cv_f77_mangling in
9445  upper*) ac_val="DAXPY" ;;
9446  lower*) ac_val="daxpy" ;;
9447  *)      ac_val="unknown" ;;
9448esac
9449case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9450
9451cfunc="$ac_val"
9452
9453ac_ext=cc
9454ac_cpp='$CXXCPP $CPPFLAGS'
9455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9458
9459    cat >conftest.$ac_ext <<_ACEOF
9460/* confdefs.h.  */
9461_ACEOF
9462cat confdefs.h >>conftest.$ac_ext
9463cat >>conftest.$ac_ext <<_ACEOF
9464/* end confdefs.h.  */
9465extern "C" {void $cfunc();}
9466#ifdef F77_DUMMY_MAIN
9467
9468#  ifdef __cplusplus
9469     extern "C"
9470#  endif
9471   int F77_DUMMY_MAIN() { return 1; }
9472
9473#endif
9474int
9475main ()
9476{
9477$cfunc()
9478  ;
9479  return 0;
9480}
9481_ACEOF
9482rm -f conftest.$ac_objext conftest$ac_exeext
9483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9484  (eval $ac_link) 2>conftest.er1
9485  ac_status=$?
9486  grep -v '^ *+' conftest.er1 >conftest.err
9487  rm -f conftest.er1
9488  cat conftest.err >&5
9489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490  (exit $ac_status); } &&
9491         { ac_try='test -z "$ac_cxx_werror_flag"
9492                         || test ! -s conftest.err'
9493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494  (eval $ac_try) 2>&5
9495  ac_status=$?
9496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497  (exit $ac_status); }; } &&
9498         { ac_try='test -s conftest$ac_exeext'
9499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500  (eval $ac_try) 2>&5
9501  ac_status=$?
9502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503  (exit $ac_status); }; }; then
9504  echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
9506else
9507  echo "$as_me: failed program was:" >&5
9508sed 's/^/| /' conftest.$ac_ext >&5
9509
9510echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
9512                 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
9513echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
9514   { (exit 1); exit 1; }; }
9515fi
9516rm -f conftest.err conftest.$ac_objext \
9517      conftest$ac_exeext conftest.$ac_ext
9518    LIBS="$SAVE_LIBS"
9519  fi
9520else
9521# Try to autodetect the library for blas based on build system
9522  case $build in
9523    *-sgi-*) ac_ext=f
9524ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9525ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9526ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9527case $ac_cv_f77_mangling in
9528  upper*) ac_val="DAXPY" ;;
9529  lower*) ac_val="daxpy" ;;
9530  *)      ac_val="unknown" ;;
9531esac
9532case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9533
9534cfunc="$ac_val"
9535
9536ac_ext=cc
9537ac_cpp='$CXXCPP $CPPFLAGS'
9538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9541
9542             as_ac_Lib=`echo "ac_cv_lib_complib.sgimath_$cfunc" | $as_tr_sh`
9543echo "$as_me:$LINENO: checking for $cfunc in -lcomplib.sgimath" >&5
9544echo $ECHO_N "checking for $cfunc in -lcomplib.sgimath... $ECHO_C" >&6
9545if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9546  echo $ECHO_N "(cached) $ECHO_C" >&6
9547else
9548  ac_check_lib_save_LIBS=$LIBS
9549LIBS="-lcomplib.sgimath  $LIBS"
9550cat >conftest.$ac_ext <<_ACEOF
9551/* confdefs.h.  */
9552_ACEOF
9553cat confdefs.h >>conftest.$ac_ext
9554cat >>conftest.$ac_ext <<_ACEOF
9555/* end confdefs.h.  */
9556
9557/* Override any gcc2 internal prototype to avoid an error.  */
9558#ifdef __cplusplus
9559extern "C"
9560#endif
9561/* We use char because int might match the return type of a gcc2
9562   builtin and then its argument prototype would still apply.  */
9563char $cfunc ();
9564#ifdef F77_DUMMY_MAIN
9565
9566#  ifdef __cplusplus
9567     extern "C"
9568#  endif
9569   int F77_DUMMY_MAIN() { return 1; }
9570
9571#endif
9572int
9573main ()
9574{
9575$cfunc ();
9576  ;
9577  return 0;
9578}
9579_ACEOF
9580rm -f conftest.$ac_objext conftest$ac_exeext
9581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9582  (eval $ac_link) 2>conftest.er1
9583  ac_status=$?
9584  grep -v '^ *+' conftest.er1 >conftest.err
9585  rm -f conftest.er1
9586  cat conftest.err >&5
9587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588  (exit $ac_status); } &&
9589         { ac_try='test -z "$ac_cxx_werror_flag"
9590                         || test ! -s conftest.err'
9591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592  (eval $ac_try) 2>&5
9593  ac_status=$?
9594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595  (exit $ac_status); }; } &&
9596         { ac_try='test -s conftest$ac_exeext'
9597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598  (eval $ac_try) 2>&5
9599  ac_status=$?
9600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601  (exit $ac_status); }; }; then
9602  eval "$as_ac_Lib=yes"
9603else
9604  echo "$as_me: failed program was:" >&5
9605sed 's/^/| /' conftest.$ac_ext >&5
9606
9607eval "$as_ac_Lib=no"
9608fi
9609rm -f conftest.err conftest.$ac_objext \
9610      conftest$ac_exeext conftest.$ac_ext
9611LIBS=$ac_check_lib_save_LIBS
9612fi
9613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9614echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9615if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9616  use_blas=-lcomplib.sgimath;
9617                           LIBS="-lcomplib.sgimath $LIBS";
9618                           IPADDLIBS="-lcomplib.sgimath $IPADDLIBS"
9619fi
9620
9621             ;;
9622    *-sun-*) SAVE_LIBS="$LIBS"
9623             echo "$as_me:$LINENO: checking whether -xlic_lib=sunperf has BLAS" >&5
9624echo $ECHO_N "checking whether -xlic_lib=sunperf has BLAS... $ECHO_C" >&6
9625             LIBS="-xlic_lib=sunperf $LIBS"
9626             ac_ext=f
9627ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9628ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9629ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9630case $ac_cv_f77_mangling in
9631  upper*) ac_val="DAXPY" ;;
9632  lower*) ac_val="daxpy" ;;
9633  *)      ac_val="unknown" ;;
9634esac
9635case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9636
9637cfunc="$ac_val"
9638
9639ac_ext=cc
9640ac_cpp='$CXXCPP $CPPFLAGS'
9641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9644
9645             cat >conftest.$ac_ext <<_ACEOF
9646/* confdefs.h.  */
9647_ACEOF
9648cat confdefs.h >>conftest.$ac_ext
9649cat >>conftest.$ac_ext <<_ACEOF
9650/* end confdefs.h.  */
9651extern "C" {void $cfunc();}
9652#ifdef F77_DUMMY_MAIN
9653
9654#  ifdef __cplusplus
9655     extern "C"
9656#  endif
9657   int F77_DUMMY_MAIN() { return 1; }
9658
9659#endif
9660int
9661main ()
9662{
9663$cfunc()
9664  ;
9665  return 0;
9666}
9667_ACEOF
9668rm -f conftest.$ac_objext conftest$ac_exeext
9669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670  (eval $ac_link) 2>conftest.er1
9671  ac_status=$?
9672  grep -v '^ *+' conftest.er1 >conftest.err
9673  rm -f conftest.er1
9674  cat conftest.err >&5
9675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676  (exit $ac_status); } &&
9677         { ac_try='test -z "$ac_cxx_werror_flag"
9678                         || test ! -s conftest.err'
9679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680  (eval $ac_try) 2>&5
9681  ac_status=$?
9682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683  (exit $ac_status); }; } &&
9684         { ac_try='test -s conftest$ac_exeext'
9685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686  (eval $ac_try) 2>&5
9687  ac_status=$?
9688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689  (exit $ac_status); }; }; then
9690  echo "$as_me:$LINENO: result: yes" >&5
9691echo "${ECHO_T}yes" >&6
9692                          IPADDLIBS="-xlic_lib=sunperf $IPADDLIBS"
9693                          use_blas=-xlic_lib=sunperf
9694else
9695  echo "$as_me: failed program was:" >&5
9696sed 's/^/| /' conftest.$ac_ext >&5
9697
9698echo "$as_me:$LINENO: result: no" >&5
9699echo "${ECHO_T}no" >&6
9700                          LIBS="$SAVE_LIBS"
9701fi
9702rm -f conftest.err conftest.$ac_objext \
9703      conftest$ac_exeext conftest.$ac_ext
9704             ;;
9705  esac
9706  if test -z "$use_blas"; then
9707    # Probably the blas library requires the Fortran libraries, so add
9708    # them for this test.  They are added at the end anyway
9709    ac_ext=f
9710ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9711ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9712ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9713case $ac_cv_f77_mangling in
9714  upper*) ac_val="DAXPY" ;;
9715  lower*) ac_val="daxpy" ;;
9716  *)      ac_val="unknown" ;;
9717esac
9718case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9719
9720cdaxpy="$ac_val"
9721
9722ac_ext=cc
9723ac_cpp='$CXXCPP $CPPFLAGS'
9724ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9725ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9726ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9727
9728    SAVE_LIBS="$LIBS"
9729    LIBS="$LIBS $FLIBS"
9730    as_ac_Lib=`echo "ac_cv_lib_blas_$cdaxpy" | $as_tr_sh`
9731echo "$as_me:$LINENO: checking for $cdaxpy in -lblas" >&5
9732echo $ECHO_N "checking for $cdaxpy in -lblas... $ECHO_C" >&6
9733if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9734  echo $ECHO_N "(cached) $ECHO_C" >&6
9735else
9736  ac_check_lib_save_LIBS=$LIBS
9737LIBS="-lblas  $LIBS"
9738cat >conftest.$ac_ext <<_ACEOF
9739/* confdefs.h.  */
9740_ACEOF
9741cat confdefs.h >>conftest.$ac_ext
9742cat >>conftest.$ac_ext <<_ACEOF
9743/* end confdefs.h.  */
9744
9745/* Override any gcc2 internal prototype to avoid an error.  */
9746#ifdef __cplusplus
9747extern "C"
9748#endif
9749/* We use char because int might match the return type of a gcc2
9750   builtin and then its argument prototype would still apply.  */
9751char $cdaxpy ();
9752#ifdef F77_DUMMY_MAIN
9753
9754#  ifdef __cplusplus
9755     extern "C"
9756#  endif
9757   int F77_DUMMY_MAIN() { return 1; }
9758
9759#endif
9760int
9761main ()
9762{
9763$cdaxpy ();
9764  ;
9765  return 0;
9766}
9767_ACEOF
9768rm -f conftest.$ac_objext conftest$ac_exeext
9769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9770  (eval $ac_link) 2>conftest.er1
9771  ac_status=$?
9772  grep -v '^ *+' conftest.er1 >conftest.err
9773  rm -f conftest.er1
9774  cat conftest.err >&5
9775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776  (exit $ac_status); } &&
9777         { ac_try='test -z "$ac_cxx_werror_flag"
9778                         || test ! -s conftest.err'
9779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780  (eval $ac_try) 2>&5
9781  ac_status=$?
9782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783  (exit $ac_status); }; } &&
9784         { ac_try='test -s conftest$ac_exeext'
9785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786  (eval $ac_try) 2>&5
9787  ac_status=$?
9788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789  (exit $ac_status); }; }; then
9790  eval "$as_ac_Lib=yes"
9791else
9792  echo "$as_me: failed program was:" >&5
9793sed 's/^/| /' conftest.$ac_ext >&5
9794
9795eval "$as_ac_Lib=no"
9796fi
9797rm -f conftest.err conftest.$ac_objext \
9798      conftest$ac_exeext conftest.$ac_ext
9799LIBS=$ac_check_lib_save_LIBS
9800fi
9801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9802echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9803if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9804  use_blas=-lblas;
9805                               LIBS="-lblas $SAVE_LIBS";
9806                               IPADDLIBS="-lblas $IPADDLIBS"
9807else
9808  LIBS="$SAVE_LIBS"
9809fi
9810
9811  fi
9812  if test -z "$use_blas"; then
9813    as_ac_File=`echo "ac_cv_file_$srcdir/Extern/blas/dgemm.f" | $as_tr_sh`
9814echo "$as_me:$LINENO: checking for $srcdir/Extern/blas/dgemm.f" >&5
9815echo $ECHO_N "checking for $srcdir/Extern/blas/dgemm.f... $ECHO_C" >&6
9816if eval "test \"\${$as_ac_File+set}\" = set"; then
9817  echo $ECHO_N "(cached) $ECHO_C" >&6
9818else
9819  test "$cross_compiling" = yes &&
9820  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9821echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9822   { (exit 1); exit 1; }; }
9823if test -r "$srcdir/Extern/blas/dgemm.f"; then
9824  eval "$as_ac_File=yes"
9825else
9826  eval "$as_ac_File=no"
9827fi
9828fi
9829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
9830echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9831if test `eval echo '${'$as_ac_File'}'` = yes; then
9832  use_blas=BUILD
9833else
9834  { { echo "$as_me:$LINENO: error: cannot find BLAS, and sources are missing in $srcdir/Extern/blas/" >&5
9835echo "$as_me: error: cannot find BLAS, and sources are missing in $srcdir/Extern/blas/" >&2;}
9836   { (exit 1); exit 1; }; }
9837fi
9838
9839  fi
9840fi
9841
9842# ##########
9843# # LAPACK #
9844# ##########
9845#
9846# iplapacklibdir="\$(top_builddir)/Extern/lapack"
9847# lapackdir=Extern/lapack/LAPACK/SRC
9848# lapacksrcdir=$srcdir/$lapackdir
9849# lapackobjdir=Extern/lapack
9850#
9851# AC_ARG_WITH([lapack],
9852#             AC_HELP_STRING([--with-lapack],
9853#                            [specify LAPACK library (or BUILD for compilation)]),
9854#             [use_lapack=$withval], [use_lapack=])
9855# # Check if user supplied option makes sense
9856# if test ! -z "$use_lapack"; then
9857#   if test "$use_lapack" = "BUILD"; then
9858#     AC_CHECK_FILE([$lapacksrcdir/dlarf.f],[],
9859#                   [AC_MSG_ERROR([option \"BUILD\" specified for lapack, but sources are missing])])
9860#   else
9861#     AC_MSG_CHECKING([whether user supplied LAPACKLIB=\"$use_lapack\" works])
9862#     LIBS="$use_lapack $LIBS"
9863#     IPADDLIBS="$use_lapack $IPADDLIBS"
9864#     AC_TRY_LINK([],[      call dlasr],[AC_MSG_RESULT([yes])],
9865#                 [AC_MSG_RESULT([no]); AC_MSG_ERROR([user supplied LAPACK library \"$use_lapack\" does not work])])
9866#   fi
9867# else
9868# # First try to see if LAPACK is already available with BLAS library
9869#   AC_MSG_CHECKING([whether LAPACK is already available with BLAS library])
9870#   AC_TRY_LINK([],[      call dgetrf()],
9871#             [AC_MSG_RESULT([yes]); use_lapack=ok],
9872#             [AC_MSG_RESULT([no])])
9873#   if test -z "$use_lapack"; then
9874#     # Try to autodetect the library for lapack based on build system
9875#     case $build in
9876#       *-sgi-*)   AC_CHECK_LIB([complib.sgimath],[dgetrf],
9877#                             [use_lapack=-lcomplib.sgimath;
9878#                              LIBS="-lcomplib.sgimath $LIBS";
9879#                              IPADDLIBS="-lcomplib.sgimath $IPADDLIBS"]);;
9880#       *-sun-*) SAVE_LDFLAGS="$LDFLAGS"
9881#                AC_MSG_CHECKING([whether -xlic_lib=sunperf has LAPACK])
9882#                LDFLAGS="-xlic_lib=sunperf $LDFLAGS"
9883#                AC_TRY_LINK([],[      call dgetrf],
9884#                            [AC_MSG_RESULT([yes]); use_lapack=-xlic_lib=sunperf],
9885#                            [AC_MSG_RESULT([no]); LDFLAGS="$SAVE_LDFLAGS"]) ;;
9886#     esac
9887#   fi
9888#   if test -z "$use_lapack"; then
9889#     AC_CHECK_LIB(lapack,dgetrf,[use_lapack=-llapack;
9890#                                 LIBS="-llapack $LIBS";
9891#                                 IPADDLIBS="-llapack $IPADDLIBS"],[])
9892#   fi
9893#   if test -z "$use_lapack"; then
9894#     AC_CHECK_FILE([$lapacksrcdir/dlarf.f],[use_lapack=BUILD],
9895#                   [AC_MSG_ERROR([cannot find LAPACK, and sources are missing in $lapacksrcdir])])
9896#   fi
9897# fi
9898
9899#######################
9900# HARWELL SUBROUTINES #
9901#######################
9902
9903hslsrcdir="$srcdir/Extern/HSL"
9904hsllibdir="\$(top_builddir)/Extern/HSL"
9905
9906
9907
9908
9909
9910{ echo "$as_me:$LINENO: Checking for Harwell subroutine library" >&5
9911echo "$as_me: Checking for Harwell subroutine library" >&6;}
9912
9913
9914# Check whether --with-hsl or --without-hsl was given.
9915if test "${with_hsl+set}" = set; then
9916  withval="$with_hsl"
9917  use_hsl=$withval
9918else
9919  use_hsl=BUILD
9920fi;
9921
9922if test "$use_hsl" = BUILD; then
9923# Check which files are available
9924  as_ac_File=`echo "ac_cv_file_$hslsrcdir/ma27ad.f" | $as_tr_sh`
9925echo "$as_me:$LINENO: checking for $hslsrcdir/ma27ad.f" >&5
9926echo $ECHO_N "checking for $hslsrcdir/ma27ad.f... $ECHO_C" >&6
9927if eval "test \"\${$as_ac_File+set}\" = set"; then
9928  echo $ECHO_N "(cached) $ECHO_C" >&6
9929else
9930  test "$cross_compiling" = yes &&
9931  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9932echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9933   { (exit 1); exit 1; }; }
9934if test -r "$hslsrcdir/ma27ad.f"; then
9935  eval "$as_ac_File=yes"
9936else
9937  eval "$as_ac_File=no"
9938fi
9939fi
9940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
9941echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9942if test `eval echo '${'$as_ac_File'}'` = yes; then
9943
9944cat >>confdefs.h <<\_ACEOF
9945#define HAVE_MA27 1
9946_ACEOF
9947 use_MA27=BUILD
9948else
9949  use_MA27=no
9950fi
9951
9952  if test "$use_MA27" = BUILD; then
9953    echo "$as_me:$LINENO: checking whether MA27 is threadsafe" >&5
9954echo $ECHO_N "checking whether MA27 is threadsafe... $ECHO_C" >&6
9955    if $EGREP MA27UD $hslsrcdir/ma27ad.f >&5 ; then
9956      echo "$as_me:$LINENO: result: yes" >&5
9957echo "${ECHO_T}yes" >&6
9958    else
9959      echo "$as_me:$LINENO: result: no" >&5
9960echo "${ECHO_T}no" >&6
9961      { { echo "$as_me:$LINENO: error: Please obtain the threadsafe (newer) version of MA27" >&5
9962echo "$as_me: error: Please obtain the threadsafe (newer) version of MA27" >&2;}
9963   { (exit 1); exit 1; }; }
9964    fi
9965  fi
9966  as_ac_File=`echo "ac_cv_file_$hslsrcdir/mc19ad.f" | $as_tr_sh`
9967echo "$as_me:$LINENO: checking for $hslsrcdir/mc19ad.f" >&5
9968echo $ECHO_N "checking for $hslsrcdir/mc19ad.f... $ECHO_C" >&6
9969if eval "test \"\${$as_ac_File+set}\" = set"; then
9970  echo $ECHO_N "(cached) $ECHO_C" >&6
9971else
9972  test "$cross_compiling" = yes &&
9973  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9974echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9975   { (exit 1); exit 1; }; }
9976if test -r "$hslsrcdir/mc19ad.f"; then
9977  eval "$as_ac_File=yes"
9978else
9979  eval "$as_ac_File=no"
9980fi
9981fi
9982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
9983echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9984if test `eval echo '${'$as_ac_File'}'` = yes; then
9985
9986cat >>confdefs.h <<\_ACEOF
9987#define HAVE_MC19 1
9988_ACEOF
9989 use_MC19=BUILD
9990else
9991  use_MC19=no
9992fi
9993
9994  as_ac_File=`echo "ac_cv_file_$hslsrcdir/ma57ad.f" | $as_tr_sh`
9995echo "$as_me:$LINENO: checking for $hslsrcdir/ma57ad.f" >&5
9996echo $ECHO_N "checking for $hslsrcdir/ma57ad.f... $ECHO_C" >&6
9997if eval "test \"\${$as_ac_File+set}\" = set"; then
9998  echo $ECHO_N "(cached) $ECHO_C" >&6
9999else
10000  test "$cross_compiling" = yes &&
10001  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10002echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10003   { (exit 1); exit 1; }; }
10004if test -r "$hslsrcdir/ma57ad.f"; then
10005  eval "$as_ac_File=yes"
10006else
10007  eval "$as_ac_File=no"
10008fi
10009fi
10010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10011echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10012if test `eval echo '${'$as_ac_File'}'` = yes; then
10013
10014cat >>confdefs.h <<\_ACEOF
10015#define HAVE_MA57 1
10016_ACEOF
10017 use_MA57=BUILD
10018else
10019  use_MA57=no
10020fi
10021
10022else
10023  SAVE_LIBS="$LIBS"
10024  LIBS="$use_hsl $LIBS $FLIBS"
10025  IPADDLIBS="$use_hsl $IPADDLIBS"
10026  echo "$as_me:$LINENO: checking for ma27ad in $use_hsl" >&5
10027echo $ECHO_N "checking for ma27ad in $use_hsl... $ECHO_C" >&6
10028          use_MA27=
10029          ac_ext=f
10030ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10031ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10032ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10033case $ac_cv_f77_mangling in
10034  upper*) ac_val="MA27AD" ;;
10035  lower*) ac_val="ma27ad" ;;
10036  *)      ac_val="unknown" ;;
10037esac
10038case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10039
10040cfunc="$ac_val"
10041
10042ac_ext=cc
10043ac_cpp='$CXXCPP $CPPFLAGS'
10044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10047
10048          cat >conftest.$ac_ext <<_ACEOF
10049/* confdefs.h.  */
10050_ACEOF
10051cat confdefs.h >>conftest.$ac_ext
10052cat >>conftest.$ac_ext <<_ACEOF
10053/* end confdefs.h.  */
10054extern "C" {void $cfunc();}
10055#ifdef F77_DUMMY_MAIN
10056
10057#  ifdef __cplusplus
10058     extern "C"
10059#  endif
10060   int F77_DUMMY_MAIN() { return 1; }
10061
10062#endif
10063int
10064main ()
10065{
10066$cfunc()
10067  ;
10068  return 0;
10069}
10070_ACEOF
10071rm -f conftest.$ac_objext conftest$ac_exeext
10072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073  (eval $ac_link) 2>conftest.er1
10074  ac_status=$?
10075  grep -v '^ *+' conftest.er1 >conftest.err
10076  rm -f conftest.er1
10077  cat conftest.err >&5
10078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079  (exit $ac_status); } &&
10080         { ac_try='test -z "$ac_cxx_werror_flag"
10081                         || test ! -s conftest.err'
10082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083  (eval $ac_try) 2>&5
10084  ac_status=$?
10085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086  (exit $ac_status); }; } &&
10087         { ac_try='test -s conftest$ac_exeext'
10088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089  (eval $ac_try) 2>&5
10090  ac_status=$?
10091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092  (exit $ac_status); }; }; then
10093
10094cat >>confdefs.h <<\_ACEOF
10095#define HAVE_MA27 1
10096_ACEOF
10097
10098                       echo "$as_me:$LINENO: result: yes" >&5
10099echo "${ECHO_T}yes" >&6; use_MA27=yes
10100else
10101  echo "$as_me: failed program was:" >&5
10102sed 's/^/| /' conftest.$ac_ext >&5
10103
10104echo "$as_me:$LINENO: result: no" >&5
10105echo "${ECHO_T}no" >&6; use_MA27=no
10106fi
10107rm -f conftest.err conftest.$ac_objext \
10108      conftest$ac_exeext conftest.$ac_ext
10109  if test "$use_MA27" = "yes"; then
10110    echo "$as_me:$LINENO: checking whether MA27 is threadsafe" >&5
10111echo $ECHO_N "checking whether MA27 is threadsafe... $ECHO_C" >&6
10112    ac_ext=f
10113ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10114ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10115ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10116case $ac_cv_f77_mangling in
10117  upper*) ac_val="MA27UD" ;;
10118  lower*) ac_val="ma27ud" ;;
10119  *)      ac_val="unknown" ;;
10120esac
10121case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10122
10123cfunc="$ac_val"
10124
10125ac_ext=cc
10126ac_cpp='$CXXCPP $CPPFLAGS'
10127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10130
10131    cat >conftest.$ac_ext <<_ACEOF
10132/* confdefs.h.  */
10133_ACEOF
10134cat confdefs.h >>conftest.$ac_ext
10135cat >>conftest.$ac_ext <<_ACEOF
10136/* end confdefs.h.  */
10137extern "C" {void $cfunc();}
10138#ifdef F77_DUMMY_MAIN
10139
10140#  ifdef __cplusplus
10141     extern "C"
10142#  endif
10143   int F77_DUMMY_MAIN() { return 1; }
10144
10145#endif
10146int
10147main ()
10148{
10149$cfunc
10150  ;
10151  return 0;
10152}
10153_ACEOF
10154rm -f conftest.$ac_objext conftest$ac_exeext
10155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10156  (eval $ac_link) 2>conftest.er1
10157  ac_status=$?
10158  grep -v '^ *+' conftest.er1 >conftest.err
10159  rm -f conftest.er1
10160  cat conftest.err >&5
10161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162  (exit $ac_status); } &&
10163         { ac_try='test -z "$ac_cxx_werror_flag"
10164                         || test ! -s conftest.err'
10165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166  (eval $ac_try) 2>&5
10167  ac_status=$?
10168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169  (exit $ac_status); }; } &&
10170         { ac_try='test -s conftest$ac_exeext'
10171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172  (eval $ac_try) 2>&5
10173  ac_status=$?
10174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175  (exit $ac_status); }; }; then
10176  echo "$as_me:$LINENO: result: yes" >&5
10177echo "${ECHO_T}yes" >&6
10178else
10179  echo "$as_me: failed program was:" >&5
10180sed 's/^/| /' conftest.$ac_ext >&5
10181
10182echo "$as_me:$LINENO: result: no" >&5
10183echo "${ECHO_T}no" >&6
10184                 { { echo "$as_me:$LINENO: error: Please obtain the threadsafe (newer) version of MA27" >&5
10185echo "$as_me: error: Please obtain the threadsafe (newer) version of MA27" >&2;}
10186   { (exit 1); exit 1; }; }
10187fi
10188rm -f conftest.err conftest.$ac_objext \
10189      conftest$ac_exeext conftest.$ac_ext
10190  fi
10191  echo "$as_me:$LINENO: checking for mc19ad in $use_hsl" >&5
10192echo $ECHO_N "checking for mc19ad in $use_hsl... $ECHO_C" >&6
10193          use_MC19=
10194          ac_ext=f
10195ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10196ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10197ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10198case $ac_cv_f77_mangling in
10199  upper*) ac_val="MC19AD" ;;
10200  lower*) ac_val="mc19ad" ;;
10201  *)      ac_val="unknown" ;;
10202esac
10203case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10204
10205cfunc="$ac_val"
10206
10207ac_ext=cc
10208ac_cpp='$CXXCPP $CPPFLAGS'
10209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10212
10213          cat >conftest.$ac_ext <<_ACEOF
10214/* confdefs.h.  */
10215_ACEOF
10216cat confdefs.h >>conftest.$ac_ext
10217cat >>conftest.$ac_ext <<_ACEOF
10218/* end confdefs.h.  */
10219extern "C" {void $cfunc();}
10220#ifdef F77_DUMMY_MAIN
10221
10222#  ifdef __cplusplus
10223     extern "C"
10224#  endif
10225   int F77_DUMMY_MAIN() { return 1; }
10226
10227#endif
10228int
10229main ()
10230{
10231$cfunc()
10232  ;
10233  return 0;
10234}
10235_ACEOF
10236rm -f conftest.$ac_objext conftest$ac_exeext
10237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10238  (eval $ac_link) 2>conftest.er1
10239  ac_status=$?
10240  grep -v '^ *+' conftest.er1 >conftest.err
10241  rm -f conftest.er1
10242  cat conftest.err >&5
10243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244  (exit $ac_status); } &&
10245         { ac_try='test -z "$ac_cxx_werror_flag"
10246                         || test ! -s conftest.err'
10247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248  (eval $ac_try) 2>&5
10249  ac_status=$?
10250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251  (exit $ac_status); }; } &&
10252         { ac_try='test -s conftest$ac_exeext'
10253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254  (eval $ac_try) 2>&5
10255  ac_status=$?
10256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257  (exit $ac_status); }; }; then
10258
10259cat >>confdefs.h <<\_ACEOF
10260#define HAVE_MC19 1
10261_ACEOF
10262
10263                       echo "$as_me:$LINENO: result: yes" >&5
10264echo "${ECHO_T}yes" >&6; use_MC19=yes
10265else
10266  echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269echo "$as_me:$LINENO: result: no" >&5
10270echo "${ECHO_T}no" >&6; use_MC19=no
10271fi
10272rm -f conftest.err conftest.$ac_objext \
10273      conftest$ac_exeext conftest.$ac_ext
10274  echo "$as_me:$LINENO: checking for ma57ad in $use_hsl" >&5
10275echo $ECHO_N "checking for ma57ad in $use_hsl... $ECHO_C" >&6
10276          use_MA57=
10277          ac_ext=f
10278ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10279ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10280ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10281case $ac_cv_f77_mangling in
10282  upper*) ac_val="MA57AD" ;;
10283  lower*) ac_val="ma57ad" ;;
10284  *)      ac_val="unknown" ;;
10285esac
10286case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10287
10288cfunc="$ac_val"
10289
10290ac_ext=cc
10291ac_cpp='$CXXCPP $CPPFLAGS'
10292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10295
10296          cat >conftest.$ac_ext <<_ACEOF
10297/* confdefs.h.  */
10298_ACEOF
10299cat confdefs.h >>conftest.$ac_ext
10300cat >>conftest.$ac_ext <<_ACEOF
10301/* end confdefs.h.  */
10302extern "C" {void $cfunc();}
10303#ifdef F77_DUMMY_MAIN
10304
10305#  ifdef __cplusplus
10306     extern "C"
10307#  endif
10308   int F77_DUMMY_MAIN() { return 1; }
10309
10310#endif
10311int
10312main ()
10313{
10314$cfunc()
10315  ;
10316  return 0;
10317}
10318_ACEOF
10319rm -f conftest.$ac_objext conftest$ac_exeext
10320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10321  (eval $ac_link) 2>conftest.er1
10322  ac_status=$?
10323  grep -v '^ *+' conftest.er1 >conftest.err
10324  rm -f conftest.er1
10325  cat conftest.err >&5
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); } &&
10328         { ac_try='test -z "$ac_cxx_werror_flag"
10329                         || test ! -s conftest.err'
10330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331  (eval $ac_try) 2>&5
10332  ac_status=$?
10333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334  (exit $ac_status); }; } &&
10335         { ac_try='test -s conftest$ac_exeext'
10336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337  (eval $ac_try) 2>&5
10338  ac_status=$?
10339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340  (exit $ac_status); }; }; then
10341
10342cat >>confdefs.h <<\_ACEOF
10343#define HAVE_MA57 1
10344_ACEOF
10345
10346                       echo "$as_me:$LINENO: result: yes" >&5
10347echo "${ECHO_T}yes" >&6; use_MA57=yes
10348else
10349  echo "$as_me: failed program was:" >&5
10350sed 's/^/| /' conftest.$ac_ext >&5
10351
10352echo "$as_me:$LINENO: result: no" >&5
10353echo "${ECHO_T}no" >&6; use_MA57=no
10354fi
10355rm -f conftest.err conftest.$ac_objext \
10356      conftest$ac_exeext conftest.$ac_ext
10357  LIBS="$use_hsl $SAVE_LIBS"
10358fi
10359
10360###########
10361# PARDISO #
10362###########
10363
10364
10365# Check whether --with-pardiso or --without-pardiso was given.
10366if test "${with_pardiso+set}" = set; then
10367  withval="$with_pardiso"
10368  use_pardiso=$withval
10369else
10370  use_pardiso=no
10371fi;
10372
10373if test ! "$use_pardiso" = "no"; then
10374  LIBS="$use_pardiso $LIBS"
10375  IPADDLIBS="$use_pardiso $IPADDLIBS"
10376
10377# ToDo put this back in
10378#  AC_MSG_CHECKING([whether user-supplied Pardiso library \"$use_pardiso\" works])
10379#  AC_TRY_LINK([],[      call PARDISO()],
10380#              [AC_MSG_RESULT(yes)],
10381#              [AC_MSG_ERROR([Pardiso library $use_pardiso does not seem to work])])
10382
10383
10384cat >>confdefs.h <<\_ACEOF
10385#define HAVE_PARDISO 1
10386_ACEOF
10387
10388fi
10389
10390#########
10391# TAUCS #
10392#########
10393
10394
10395# Check whether --with-taucs or --without-taucs was given.
10396if test "${with_taucs+set}" = set; then
10397  withval="$with_taucs"
10398  use_taucs=$withval
10399else
10400  use_taucs=no
10401fi;
10402
10403if test ! "$use_taucs" = "no"; then
10404  LIBS="$use_taucs $LIBS"
10405  IPADDLIBS="$use_taucs $IPADDLIBS"
10406
10407
10408cat >>confdefs.h <<\_ACEOF
10409#define HAVE_TAUCS 1
10410_ACEOF
10411
10412
10413
10414  CXXFLAGS="$CXXFLAGS $TAUCS_INCFLAGS"
10415fi
10416
10417# Check if at least one linear solver was found
10418
10419# Check whether --enable-distconf or --disable-distconf was given.
10420if test "${enable_distconf+set}" = set; then
10421  enableval="$enable_distconf"
10422  case "${enableval}" in
10423    yes) distconf=true ;;
10424    no)  distconf=false ;;
10425    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-distconf" >&5
10426echo "$as_me: error: bad value ${enableval} for --enable-distconf" >&2;}
10427   { (exit 1); exit 1; }; } ;;
10428  esac
10429else
10430  distconf=false
10431fi;
10432
10433if test "$use_MA27" = "no" -a "$use_MA57" = "no" -a "$use_pardiso" = "no" -a "$use_taucs" = no; then
10434  if test "$distconf" = false; then
10435    { { echo "$as_me:$LINENO: error: \"No linear solver (such as MA27) available\"" >&5
10436echo "$as_me: error: \"No linear solver (such as MA27) available\"" >&2;}
10437   { (exit 1); exit 1; }; }
10438  fi
10439fi
10440
10441# For the remaining tests we need to include FLIBS into LIBS, so that
10442# the C compiler can link programs
10443LIBS="$LIBS $FLIBS"
10444
10445#######################
10446# AMPL SOLVER LIBRARY #
10447#######################
10448
10449asldir=Extern/ASL/solvers
10450aslsrcdir=$srcdir/$asldir
10451
10452
10453# Check whether --with-asldir or --without-asldir was given.
10454if test "${with_asldir+set}" = set; then
10455  withval="$with_asldir"
10456  use_asldir=$withval
10457else
10458  use_asldir=
10459fi;
10460
10461if test "$use_asldir" = BUILD; then
10462  as_ac_File=`echo "ac_cv_file_$aslsrcdir/asl.h" | $as_tr_sh`
10463echo "$as_me:$LINENO: checking for $aslsrcdir/asl.h" >&5
10464echo $ECHO_N "checking for $aslsrcdir/asl.h... $ECHO_C" >&6
10465if eval "test \"\${$as_ac_File+set}\" = set"; then
10466  echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468  test "$cross_compiling" = yes &&
10469  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10470echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10471   { (exit 1); exit 1; }; }
10472if test -r "$aslsrcdir/asl.h"; then
10473  eval "$as_ac_File=yes"
10474else
10475  eval "$as_ac_File=no"
10476fi
10477fi
10478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10479echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10480if test `eval echo '${'$as_ac_File'}'` = yes; then
10481  :
10482else
10483  { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for asldir, but sources are missing" >&5
10484echo "$as_me: error: option \"BUILD\" specified for asldir, but sources are missing" >&2;}
10485   { (exit 1); exit 1; }; }
10486fi
10487
10488elif test -z "$use_asldir"; then
10489 # try to find sources - if not given don't compile
10490  as_ac_File=`echo "ac_cv_file_$aslsrcdir/asl.h" | $as_tr_sh`
10491echo "$as_me:$LINENO: checking for $aslsrcdir/asl.h" >&5
10492echo $ECHO_N "checking for $aslsrcdir/asl.h... $ECHO_C" >&6
10493if eval "test \"\${$as_ac_File+set}\" = set"; then
10494  echo $ECHO_N "(cached) $ECHO_C" >&6
10495else
10496  test "$cross_compiling" = yes &&
10497  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10498echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10499   { (exit 1); exit 1; }; }
10500if test -r "$aslsrcdir/asl.h"; then
10501  eval "$as_ac_File=yes"
10502else
10503  eval "$as_ac_File=no"
10504fi
10505fi
10506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10507echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10508if test `eval echo '${'$as_ac_File'}'` = yes; then
10509  use_asldir=BUILD
10510else
10511  use_asldir=no
10512fi
10513
10514elif test ! "$use_asldir" = "no"; then
10515  as_ac_File=`echo "ac_cv_file_$use_asldir/amplsolver.a" | $as_tr_sh`
10516echo "$as_me:$LINENO: checking for $use_asldir/amplsolver.a" >&5
10517echo $ECHO_N "checking for $use_asldir/amplsolver.a... $ECHO_C" >&6
10518if eval "test \"\${$as_ac_File+set}\" = set"; then
10519  echo $ECHO_N "(cached) $ECHO_C" >&6
10520else
10521  test "$cross_compiling" = yes &&
10522  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10523echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10524   { (exit 1); exit 1; }; }
10525if test -r "$use_asldir/amplsolver.a"; then
10526  eval "$as_ac_File=yes"
10527else
10528  eval "$as_ac_File=no"
10529fi
10530fi
10531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10532echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10533if test `eval echo '${'$as_ac_File'}'` = yes; then
10534  :
10535else
10536  { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but library missing" >&5
10537echo "$as_me: error: ASL directory \"$use_asldir\" specified, but library missing" >&2;}
10538   { (exit 1); exit 1; }; }
10539fi
10540
10541  as_ac_File=`echo "ac_cv_file_$use_asldir/asl.h" | $as_tr_sh`
10542echo "$as_me:$LINENO: checking for $use_asldir/asl.h" >&5
10543echo $ECHO_N "checking for $use_asldir/asl.h... $ECHO_C" >&6
10544if eval "test \"\${$as_ac_File+set}\" = set"; then
10545  echo $ECHO_N "(cached) $ECHO_C" >&6
10546else
10547  test "$cross_compiling" = yes &&
10548  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10549echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10550   { (exit 1); exit 1; }; }
10551if test -r "$use_asldir/asl.h"; then
10552  eval "$as_ac_File=yes"
10553else
10554  eval "$as_ac_File=no"
10555fi
10556fi
10557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10558echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10559if test `eval echo '${'$as_ac_File'}'` = yes; then
10560  :
10561else
10562  { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&5
10563echo "$as_me: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&2;}
10564   { (exit 1); exit 1; }; }
10565fi
10566
10567  use_asldir=`cd $use_asldir; pwd`
10568  case $build in
10569    *-cygwin*) use_asldir=`cygpath -w $use_asldir` ;;
10570  esac
10571fi
10572
10573if test "$use_asldir" = BUILD; then
10574  if test -z "$ASLMAKEFLAGS" ; then
10575    asladdcflags=
10576    case $build in
10577      *-linux*) asladdcflags="-DNON_STDIO"
10578                case $CC in
10579                  pgcc | */pgcc)
10580                     asladdcflags="$asladdcflags -DNO_fpu_control";;
10581                esac
10582                  ;;
10583      *-cygwin*) asladdcflags="-DNON_STDIO"
10584                if test "$use_mingw" = yes; then
10585                  asladdcflags="$asladdcflags -DNo_Control87 -DNO_RUSAGE"
10586                fi
10587                ;;
10588    esac
10589#    ASLMAKEFLAGS="CFLAGS=\"\$(CFLAGS) $asladdcflags\""
10590# Do the following for now to make sure we are not interupting compilation
10591# of ASL because of warning message:
10592    bla=
10593    for i in $CFLAGS; do
10594      if test ! "$i" = "-Werror"; then
10595        bla="$bla $i"
10596      fi
10597    done
10598    ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\""
10599
10600#   Somehow, -qtune=auto makes ASL segfault on AIX compiler, so take them out
10601    case $CC in
10602      xlc* | */xlc* | mpxlc* | */mpxlc*)
10603        ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed 's/-qtune=auto//g' | sed 's/-qarch=auto//g' | sed 's/-qcache=auto//g' | sed 's/-qhot//g' | sed 's/-O3/-O/g'`
10604      ;;
10605    esac
10606
10607    echo "$as_me:$LINENO: checking whether $am_make is the GNU make" >&5
10608echo $ECHO_N "checking whether $am_make is the GNU make... $ECHO_C" >&6
10609    rm -f conftest.mak
10610    ($am_make -v -f conftest.mak > conftest.grp) 2>&5
10611    if $EGREP GNU conftest.grp >&5 ; then
10612      echo "$as_me:$LINENO: result: yes" >&5
10613echo "${ECHO_T}yes" >&6
10614      ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
10615    else
10616      echo "$as_me:$LINENO: result: no" >&5
10617echo "${ECHO_T}no" >&6
10618    fi
10619    rm -f conftest.mak conftest.grp
10620
10621#    if test $USE_MAINTAINER_MODE = 'yes'; then
10622#      AC_MSG_WARN([Assuming that maintainer mode is only used for GNU make])
10623#      ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
10624#    else
10625#      AC_LANG_PUSH(Fortran 77)
10626#      AC_MSG_CHECKING([whether $am_make understands the `-j 1' flag])
10627#      AC_LANG_CONFTEST([[bladfaoekja:]])
10628#      if ($am_make -f conftest.c -j 1 bladfaoekja >&5) 2>&5 ; then
10629#        AC_MSG_RESULT([yes])
10630#        ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
10631#      else
10632#        AC_MSG_RESULT([no])
10633#        AC_MSG_CHECKING([whether $am_make understands the `-J 1' flag])
10634#        if ($am_make -f conftest.c -J 1 bladfaoekja >&5) 2>&5 ; then
10635#          AC_MSG_RESULT([yes])
10636#          ASLMAKEFLAGS="-J 1 $ASLMAKEFLAGS"
10637#        else
10638#          AC_MSG_RESULT([no])
10639#        fi
10640#      fi
10641#      AC_LANG_POP(Fortran 77)
10642#    fi
10643  fi
10644  ASLMAKEFILECMDS="sed 's/ar \$\$(ARFLAGS)/$AR $ARFLAGS/' makefile.u | sed 's/ar ruv/$AR $ARFLAGS/' "
10645  if test "$EXEEXT" = ".exe"; then
10646    ASLMAKEFILECMDS="$ASLMAKEFILECMDS | sed 's/a.out/a.exe/'"
10647  fi
10648  case $build in
10649    *-cygwin*) ASLMAKEFILECMDS="$ASLMAKEFILECMDS | sed 's%s/System_details/\`uname -sr\`/%s|System_details|\`uname -sr\`|%'" ;;
10650  esac
10651  ASLMAKEFILECMDS="$ASLMAKEFILECMDS > makefile"
10652fi
10653
10654
10655
10656if test ! "$use_asldir" = no; then
10657  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10658echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10659if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10660  echo $ECHO_N "(cached) $ECHO_C" >&6
10661else
10662  ac_check_lib_save_LIBS=$LIBS
10663LIBS="-ldl  $LIBS"
10664cat >conftest.$ac_ext <<_ACEOF
10665/* confdefs.h.  */
10666_ACEOF
10667cat confdefs.h >>conftest.$ac_ext
10668cat >>conftest.$ac_ext <<_ACEOF
10669/* end confdefs.h.  */
10670
10671/* Override any gcc2 internal prototype to avoid an error.  */
10672#ifdef __cplusplus
10673extern "C"
10674#endif
10675/* We use char because int might match the return type of a gcc2
10676   builtin and then its argument prototype would still apply.  */
10677char dlopen ();
10678#ifdef F77_DUMMY_MAIN
10679
10680#  ifdef __cplusplus
10681     extern "C"
10682#  endif
10683   int F77_DUMMY_MAIN() { return 1; }
10684
10685#endif
10686int
10687main ()
10688{
10689dlopen ();
10690  ;
10691  return 0;
10692}
10693_ACEOF
10694rm -f conftest.$ac_objext conftest$ac_exeext
10695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696  (eval $ac_link) 2>conftest.er1
10697  ac_status=$?
10698  grep -v '^ *+' conftest.er1 >conftest.err
10699  rm -f conftest.er1
10700  cat conftest.err >&5
10701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702  (exit $ac_status); } &&
10703         { ac_try='test -z "$ac_cxx_werror_flag"
10704                         || test ! -s conftest.err'
10705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706  (eval $ac_try) 2>&5
10707  ac_status=$?
10708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709  (exit $ac_status); }; } &&
10710         { ac_try='test -s conftest$ac_exeext'
10711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712  (eval $ac_try) 2>&5
10713  ac_status=$?
10714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715  (exit $ac_status); }; }; then
10716  ac_cv_lib_dl_dlopen=yes
10717else
10718  echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721ac_cv_lib_dl_dlopen=no
10722fi
10723rm -f conftest.err conftest.$ac_objext \
10724      conftest$ac_exeext conftest.$ac_ext
10725LIBS=$ac_check_lib_save_LIBS
10726fi
10727echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10728echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10729if test $ac_cv_lib_dl_dlopen = yes; then
10730  LIBS="$LIBS -ldl"
10731fi
10732
10733fi
10734
10735ac_ext=c
10736ac_cpp='$CPP $CPPFLAGS'
10737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10739ac_compiler_gnu=$ac_cv_c_compiler_gnu
10740
10741
10742######################################
10743# Equivalent int Fortran and C types #
10744######################################
10745
10746
10747cat >>confdefs.h <<\_ACEOF
10748#define FORTRAN_INTEGER_TYPE int
10749_ACEOF
10750