source: branches/dev/configure @ 567

Last change on this file since 567 was 567, checked in by andreasw, 15 years ago

adapted for Portland compilers

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 388.8 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++ pgCC 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      pgCC | */pgCC)
2268             opt_cxxflags="-fast"
2269             add_cxxflags="-Kieee -pc 64"
2270             dbg_cxxflags="-g";;
2271      esac;;
2272    *-ibm-*)
2273      case "$CXX" in
2274      xlC* | */xlC* | mpxlC* | */mpxlC*)
2275             opt_cxxflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
2276             add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
2277             dbg_cxxflags="-g";;
2278      esac;;
2279    *-hp-*)
2280      case "$CXX" in
2281      aCC | */aCC )
2282             opt_cxxflags="-O"
2283             add_cxxflags="-AA"
2284             dbg_cxxflags="-g";;
2285      esac;;
2286    *-sun-*)
2287             opt_cxxflags="-O4 -xtarget=native"
2288             dbg_cxxflags="-g";;
2289    esac
2290  fi
2291
2292  if test "$ac_cv_prog_cxx_g" = yes && test -z "$dbg_cxxflags" ; then
2293    dbg_cxxflags="-g"
2294  fi
2295
2296  if test "$debugcompile" = "true"; then
2297    CXXFLAGS="$dbg_cxxflags $add_cxxflags"
2298  else
2299    if test -z "$opt_cxxflags"; then
2300# Try if -O option works if nothing else is set
2301      CXXFLAGS="-O"
2302      cat >conftest.$ac_ext <<_ACEOF
2303/* confdefs.h.  */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h.  */
2308
2309int
2310main ()
2311{
2312int i=0; i++;
2313  ;
2314  return 0;
2315}
2316_ACEOF
2317rm -f conftest.$ac_objext conftest$ac_exeext
2318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2319  (eval $ac_link) 2>conftest.er1
2320  ac_status=$?
2321  grep -v '^ *+' conftest.er1 >conftest.err
2322  rm -f conftest.er1
2323  cat conftest.err >&5
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); } &&
2326         { ac_try='test -z "$ac_cxx_werror_flag"
2327                         || test ! -s conftest.err'
2328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329  (eval $ac_try) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; } &&
2333         { ac_try='test -s conftest$ac_exeext'
2334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335  (eval $ac_try) 2>&5
2336  ac_status=$?
2337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338  (exit $ac_status); }; }; then
2339  opt_cxxflags="-O"
2340else
2341  echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344fi
2345rm -f conftest.err conftest.$ac_objext \
2346      conftest$ac_exeext conftest.$ac_ext
2347    fi
2348    CXXFLAGS="$opt_cxxflags $add_cxxflags"
2349  fi
2350fi
2351
2352# Try if CXXFLAGS works
2353echo "$as_me:$LINENO: checking whether CXXFLAGS=\"$CXXFLAGS\" works" >&5
2354echo $ECHO_N "checking whether CXXFLAGS=\"$CXXFLAGS\" works... $ECHO_C" >&6
2355cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365int i=0; i++;
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370rm -f conftest.$ac_objext conftest$ac_exeext
2371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2372  (eval $ac_link) 2>conftest.er1
2373  ac_status=$?
2374  grep -v '^ *+' conftest.er1 >conftest.err
2375  rm -f conftest.er1
2376  cat conftest.err >&5
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); } &&
2379         { ac_try='test -z "$ac_cxx_werror_flag"
2380                         || test ! -s conftest.err'
2381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382  (eval $ac_try) 2>&5
2383  ac_status=$?
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); }; } &&
2386         { ac_try='test -s conftest$ac_exeext'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; }; then
2392  :
2393else
2394  echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397CXXFLAGS=
2398fi
2399rm -f conftest.err conftest.$ac_objext \
2400      conftest$ac_exeext conftest.$ac_ext
2401if test -z "$CXXFLAGS"; then
2402  echo "$as_me:$LINENO: result: no" >&5
2403echo "${ECHO_T}no" >&6
2404  { 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
2405echo "$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;}
2406  CXXFLAGS='-O'
2407  cat >conftest.$ac_ext <<_ACEOF
2408/* confdefs.h.  */
2409_ACEOF
2410cat confdefs.h >>conftest.$ac_ext
2411cat >>conftest.$ac_ext <<_ACEOF
2412/* end confdefs.h.  */
2413
2414int
2415main ()
2416{
2417int i=0; i++;
2418  ;
2419  return 0;
2420}
2421_ACEOF
2422rm -f conftest.$ac_objext conftest$ac_exeext
2423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2424  (eval $ac_link) 2>conftest.er1
2425  ac_status=$?
2426  grep -v '^ *+' conftest.er1 >conftest.err
2427  rm -f conftest.er1
2428  cat conftest.err >&5
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); } &&
2431         { ac_try='test -z "$ac_cxx_werror_flag"
2432                         || test ! -s conftest.err'
2433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434  (eval $ac_try) 2>&5
2435  ac_status=$?
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); }; } &&
2438         { ac_try='test -s conftest$ac_exeext'
2439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440  (eval $ac_try) 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }; }; then
2444  :
2445else
2446  echo "$as_me: failed program was:" >&5
2447sed 's/^/| /' conftest.$ac_ext >&5
2448
2449CXXFLAGS=
2450fi
2451rm -f conftest.err conftest.$ac_objext \
2452      conftest$ac_exeext conftest.$ac_ext
2453  if test -z "$CXXFLAGS"; then
2454    echo "$as_me:$LINENO: result: no" >&5
2455echo "${ECHO_T}no" >&6
2456    { 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
2457echo "$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;}
2458  fi
2459else
2460  echo "$as_me:$LINENO: result: yes" >&5
2461echo "${ECHO_T}yes" >&6
2462fi
2463
2464# C++ link libraries #
2465
2466if test -z "$CXXLIBS"; then
2467  if test "$GXX" = "yes"; then
2468    case "$CXX" in
2469      icpc | */icpc)
2470        CXXLIBS=""
2471        ;;
2472      *)
2473        CXXLIBS="-lstdc++ -lm -lgcc"
2474        ;;
2475    esac
2476  else
2477    case $build in
2478     *-linux-*)
2479      case "$CXX" in
2480      icpc | */icpc)
2481        CXXLIBS=""
2482             ;;
2483      pgCC | */pgCC)
2484        CXXLIBS="-lstd -lC -lc"
2485             ;;
2486      esac;;
2487    *-ibm-*)
2488      CXXLIBS="-lC -lc"
2489      ;;
2490    *-hp-*)
2491      CXXLIBS="-L/opt/aCC/lib -l++ -lstd_v2 -lCsup_v2 -lm -lcl -lc"
2492      ;;
2493    *-sun-*)
2494      CXXLIBS="-lCstd -lCrun"
2495    esac
2496  fi
2497fi
2498if test -z "$CXXLIBS"; then
2499  { echo "$as_me:$LINENO: WARNING: Could not automatically determine CXXLIBS (C++ link libraries; necessary if main program is in Fortran of C)." >&5
2500echo "$as_me: WARNING: Could not automatically determine CXXLIBS (C++ link libraries; necessary if main program is in Fortran of C)." >&2;}
2501else
2502  { echo "$as_me:$LINENO: Assuming that CXXLIBS is \"$CXXLIBS\"." >&5
2503echo "$as_me: Assuming that CXXLIBS is \"$CXXLIBS\"." >&6;}
2504fi
2505ac_ext=c
2506ac_cpp='$CPP $CPPFLAGS'
2507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
2511
2512###############################################
2513# Set variables for the archiver              #
2514# (for AIX in 64bit mode also on SGI, SUN...) #
2515###############################################
2516if test -z "$AR"; then
2517  if test ! "$GXX" = "yes"; then
2518    case $build in
2519      *-sun-*)
2520        AR="CC -xar"
2521        ;;
2522      *-sgi-*)
2523        AR="CC -ar"
2524        ;;
2525    esac
2526  fi
2527  if test -z "$AR"; then
2528    AR="ar"
2529  fi
2530fi
2531
2532{ echo "$as_me:$LINENO: Using AR=\"$AR\"." >&5
2533echo "$as_me: Using AR=\"$AR\"." >&6;}
2534
2535if test -z "$ARFLAGS"; then
2536  if test ! "$GXX" = "yes"; then
2537    case $build in
2538      *-sun-*)
2539        ARFLAGS="-o"
2540        ;;
2541      *-sgi-*)
2542        ARFLAGS="-o"
2543        ;;
2544    esac
2545  fi
2546  if test -z "$ARFLAGS"; then
2547    ARFLAGS="crv"
2548  fi
2549fi
2550
2551{ echo "$as_me:$LINENO: Using ARFLAGS=\"$ARFLAGS\"." >&5
2552echo "$as_me: Using ARFLAGS=\"$ARFLAGS\"." >&6;}
2553
2554if test -z "$AR_X"; then
2555  AR_X="ar x"
2556fi
2557
2558{ echo "$as_me:$LINENO: Using AR_X=\"$AR_X\"." >&5
2559echo "$as_me: Using AR_X=\"$AR_X\"." >&6;}
2560
2561######################
2562# C Compiler Options #
2563######################
2564
2565ac_ext=c
2566ac_cpp='$CPP $CPPFLAGS'
2567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570
2571SAVE_CFLAGS="$CFLAGS"
2572case $build in
2573  *-cygwin) comps="gcc" ;;
2574  *)        comps="xlc cc gcc pgcc icc" ;;
2575esac
2576ac_ext=c
2577ac_cpp='$CPP $CPPFLAGS'
2578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581if test -n "$ac_tool_prefix"; then
2582  for ac_prog in $comps
2583  do
2584    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2585set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2586echo "$as_me:$LINENO: checking for $ac_word" >&5
2587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2588if test "${ac_cv_prog_CC+set}" = set; then
2589  echo $ECHO_N "(cached) $ECHO_C" >&6
2590else
2591  if test -n "$CC"; then
2592  ac_cv_prog_CC="$CC" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597  IFS=$as_save_IFS
2598  test -z "$as_dir" && as_dir=.
2599  for ac_exec_ext in '' $ac_executable_extensions; do
2600  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2602    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603    break 2
2604  fi
2605done
2606done
2607
2608fi
2609fi
2610CC=$ac_cv_prog_CC
2611if test -n "$CC"; then
2612  echo "$as_me:$LINENO: result: $CC" >&5
2613echo "${ECHO_T}$CC" >&6
2614else
2615  echo "$as_me:$LINENO: result: no" >&5
2616echo "${ECHO_T}no" >&6
2617fi
2618
2619    test -n "$CC" && break
2620  done
2621fi
2622if test -z "$CC"; then
2623  ac_ct_CC=$CC
2624  for ac_prog in $comps
2625do
2626  # Extract the first word of "$ac_prog", so it can be a program name with args.
2627set dummy $ac_prog; ac_word=$2
2628echo "$as_me:$LINENO: checking for $ac_word" >&5
2629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2630if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2631  echo $ECHO_N "(cached) $ECHO_C" >&6
2632else
2633  if test -n "$ac_ct_CC"; then
2634  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639  IFS=$as_save_IFS
2640  test -z "$as_dir" && as_dir=.
2641  for ac_exec_ext in '' $ac_executable_extensions; do
2642  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2643    ac_cv_prog_ac_ct_CC="$ac_prog"
2644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645    break 2
2646  fi
2647done
2648done
2649
2650fi
2651fi
2652ac_ct_CC=$ac_cv_prog_ac_ct_CC
2653if test -n "$ac_ct_CC"; then
2654  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2655echo "${ECHO_T}$ac_ct_CC" >&6
2656else
2657  echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6
2659fi
2660
2661  test -n "$ac_ct_CC" && break
2662done
2663
2664  CC=$ac_ct_CC
2665fi
2666
2667
2668test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2669See \`config.log' for more details." >&5
2670echo "$as_me: error: no acceptable C compiler found in \$PATH
2671See \`config.log' for more details." >&2;}
2672   { (exit 1); exit 1; }; }
2673
2674# Provide some information about the compiler.
2675echo "$as_me:$LINENO:" \
2676     "checking for C compiler version" >&5
2677ac_compiler=`set X $ac_compile; echo $2`
2678{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2679  (eval $ac_compiler --version </dev/null >&5) 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }
2683{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2684  (eval $ac_compiler -v </dev/null >&5) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }
2688{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2689  (eval $ac_compiler -V </dev/null >&5) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); }
2693
2694echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2695echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2696if test "${ac_cv_c_compiler_gnu+set}" = set; then
2697  echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699  cat >conftest.$ac_ext <<_ACEOF
2700/* confdefs.h.  */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h.  */
2705
2706int
2707main ()
2708{
2709#ifndef __GNUC__
2710       choke me
2711#endif
2712
2713  ;
2714  return 0;
2715}
2716_ACEOF
2717rm -f conftest.$ac_objext
2718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719  (eval $ac_compile) 2>conftest.er1
2720  ac_status=$?
2721  grep -v '^ *+' conftest.er1 >conftest.err
2722  rm -f conftest.er1
2723  cat conftest.err >&5
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); } &&
2726         { ac_try='test -z "$ac_c_werror_flag"
2727                         || test ! -s conftest.err'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; } &&
2733         { ac_try='test -s conftest.$ac_objext'
2734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735  (eval $ac_try) 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }; }; then
2739  ac_compiler_gnu=yes
2740else
2741  echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744ac_compiler_gnu=no
2745fi
2746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2747ac_cv_c_compiler_gnu=$ac_compiler_gnu
2748
2749fi
2750echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2751echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2752GCC=`test $ac_compiler_gnu = yes && echo yes`
2753ac_test_CFLAGS=${CFLAGS+set}
2754ac_save_CFLAGS=$CFLAGS
2755CFLAGS="-g"
2756echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2757echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2758if test "${ac_cv_prog_cc_g+set}" = set; then
2759  echo $ECHO_N "(cached) $ECHO_C" >&6
2760else
2761  cat >conftest.$ac_ext <<_ACEOF
2762/* confdefs.h.  */
2763_ACEOF
2764cat confdefs.h >>conftest.$ac_ext
2765cat >>conftest.$ac_ext <<_ACEOF
2766/* end confdefs.h.  */
2767
2768int
2769main ()
2770{
2771
2772  ;
2773  return 0;
2774}
2775_ACEOF
2776rm -f conftest.$ac_objext
2777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778  (eval $ac_compile) 2>conftest.er1
2779  ac_status=$?
2780  grep -v '^ *+' conftest.er1 >conftest.err
2781  rm -f conftest.er1
2782  cat conftest.err >&5
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); } &&
2785         { ac_try='test -z "$ac_c_werror_flag"
2786                         || test ! -s conftest.err'
2787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788  (eval $ac_try) 2>&5
2789  ac_status=$?
2790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791  (exit $ac_status); }; } &&
2792         { ac_try='test -s conftest.$ac_objext'
2793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794  (eval $ac_try) 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); }; }; then
2798  ac_cv_prog_cc_g=yes
2799else
2800  echo "$as_me: failed program was:" >&5
2801sed 's/^/| /' conftest.$ac_ext >&5
2802
2803ac_cv_prog_cc_g=no
2804fi
2805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806fi
2807echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2809if test "$ac_test_CFLAGS" = set; then
2810  CFLAGS=$ac_save_CFLAGS
2811elif test $ac_cv_prog_cc_g = yes; then
2812  if test "$GCC" = yes; then
2813    CFLAGS="-g -O2"
2814  else
2815    CFLAGS="-g"
2816  fi
2817else
2818  if test "$GCC" = yes; then
2819    CFLAGS="-O2"
2820  else
2821    CFLAGS=
2822  fi
2823fi
2824echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2825echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2826if test "${ac_cv_prog_cc_stdc+set}" = set; then
2827  echo $ECHO_N "(cached) $ECHO_C" >&6
2828else
2829  ac_cv_prog_cc_stdc=no
2830ac_save_CC=$CC
2831cat >conftest.$ac_ext <<_ACEOF
2832/* confdefs.h.  */
2833_ACEOF
2834cat confdefs.h >>conftest.$ac_ext
2835cat >>conftest.$ac_ext <<_ACEOF
2836/* end confdefs.h.  */
2837#include <stdarg.h>
2838#include <stdio.h>
2839#include <sys/types.h>
2840#include <sys/stat.h>
2841/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2842struct buf { int x; };
2843FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844static char *e (p, i)
2845     char **p;
2846     int i;
2847{
2848  return p[i];
2849}
2850static char *f (char * (*g) (char **, int), char **p, ...)
2851{
2852  char *s;
2853  va_list v;
2854  va_start (v,p);
2855  s = g (p, va_arg (v,int));
2856  va_end (v);
2857  return s;
2858}
2859
2860/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2861   function prototypes and stuff, but not '\xHH' hex character constants.
2862   These don't provoke an error unfortunately, instead are silently treated
2863   as 'x'.  The following induces an error, until -std1 is added to get
2864   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2865   array size at least.  It's necessary to write '\x00'==0 to get something
2866   that's true only with -std1.  */
2867int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2868
2869int test (int i, double x);
2870struct s1 {int (*f) (int a);};
2871struct s2 {int (*f) (double a);};
2872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2873int argc;
2874char **argv;
2875int
2876main ()
2877{
2878return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2879  ;
2880  return 0;
2881}
2882_ACEOF
2883# Don't try gcc -ansi; that turns off useful extensions and
2884# breaks some systems' header files.
2885# AIX                   -qlanglvl=ansi
2886# Ultrix and OSF/1      -std1
2887# HP-UX 10.20 and later -Ae
2888# HP-UX older versions  -Aa -D_HPUX_SOURCE
2889# SVR4                  -Xc -D__EXTENSIONS__
2890for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891do
2892  CC="$ac_save_CC $ac_arg"
2893  rm -f conftest.$ac_objext
2894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2895  (eval $ac_compile) 2>conftest.er1
2896  ac_status=$?
2897  grep -v '^ *+' conftest.er1 >conftest.err
2898  rm -f conftest.er1
2899  cat conftest.err >&5
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); } &&
2902         { ac_try='test -z "$ac_c_werror_flag"
2903                         || test ! -s conftest.err'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; } &&
2909         { ac_try='test -s conftest.$ac_objext'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; }; then
2915  ac_cv_prog_cc_stdc=$ac_arg
2916break
2917else
2918  echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
2921fi
2922rm -f conftest.err conftest.$ac_objext
2923done
2924rm -f conftest.$ac_ext conftest.$ac_objext
2925CC=$ac_save_CC
2926
2927fi
2928
2929case "x$ac_cv_prog_cc_stdc" in
2930  x|xno)
2931    echo "$as_me:$LINENO: result: none needed" >&5
2932echo "${ECHO_T}none needed" >&6 ;;
2933  *)
2934    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2935echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2936    CC="$CC $ac_cv_prog_cc_stdc" ;;
2937esac
2938
2939# Some people use a C++ compiler to compile C.  Since we use `exit',
2940# in C++ we need to declare it.  In case someone uses the same compiler
2941# for both compiling C and C++ we need to have the C++ compiler decide
2942# the declaration of exit, since it's the most demanding environment.
2943cat >conftest.$ac_ext <<_ACEOF
2944#ifndef __cplusplus
2945  choke me
2946#endif
2947_ACEOF
2948rm -f conftest.$ac_objext
2949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950  (eval $ac_compile) 2>conftest.er1
2951  ac_status=$?
2952  grep -v '^ *+' conftest.er1 >conftest.err
2953  rm -f conftest.er1
2954  cat conftest.err >&5
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); } &&
2957         { ac_try='test -z "$ac_c_werror_flag"
2958                         || test ! -s conftest.err'
2959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960  (eval $ac_try) 2>&5
2961  ac_status=$?
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); }; } &&
2964         { ac_try='test -s conftest.$ac_objext'
2965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966  (eval $ac_try) 2>&5
2967  ac_status=$?
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }; }; then
2970  for ac_declaration in \
2971   '' \
2972   'extern "C" void std::exit (int) throw (); using std::exit;' \
2973   'extern "C" void std::exit (int); using std::exit;' \
2974   'extern "C" void exit (int) throw ();' \
2975   'extern "C" void exit (int);' \
2976   'void exit (int);'
2977do
2978  cat >conftest.$ac_ext <<_ACEOF
2979/* confdefs.h.  */
2980_ACEOF
2981cat confdefs.h >>conftest.$ac_ext
2982cat >>conftest.$ac_ext <<_ACEOF
2983/* end confdefs.h.  */
2984$ac_declaration
2985#include <stdlib.h>
2986int
2987main ()
2988{
2989exit (42);
2990  ;
2991  return 0;
2992}
2993_ACEOF
2994rm -f conftest.$ac_objext
2995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996  (eval $ac_compile) 2>conftest.er1
2997  ac_status=$?
2998  grep -v '^ *+' conftest.er1 >conftest.err
2999  rm -f conftest.er1
3000  cat conftest.err >&5
3001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002  (exit $ac_status); } &&
3003         { ac_try='test -z "$ac_c_werror_flag"
3004                         || test ! -s conftest.err'
3005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006  (eval $ac_try) 2>&5
3007  ac_status=$?
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); }; } &&
3010         { ac_try='test -s conftest.$ac_objext'
3011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012  (eval $ac_try) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }; }; then
3016  :
3017else
3018  echo "$as_me: failed program was:" >&5
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
3021continue
3022fi
3023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3024  cat >conftest.$ac_ext <<_ACEOF
3025/* confdefs.h.  */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
3029/* end confdefs.h.  */
3030$ac_declaration
3031int
3032main ()
3033{
3034exit (42);
3035  ;
3036  return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext
3040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041  (eval $ac_compile) 2>conftest.er1
3042  ac_status=$?
3043  grep -v '^ *+' conftest.er1 >conftest.err
3044  rm -f conftest.er1
3045  cat conftest.err >&5
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); } &&
3048         { ac_try='test -z "$ac_c_werror_flag"
3049                         || test ! -s conftest.err'
3050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051  (eval $ac_try) 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; } &&
3055         { ac_try='test -s conftest.$ac_objext'
3056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057  (eval $ac_try) 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; }; then
3061  break
3062else
3063  echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066fi
3067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068done
3069rm -f conftest*
3070if test -n "$ac_declaration"; then
3071  echo '#ifdef __cplusplus' >>confdefs.h
3072  echo $ac_declaration      >>confdefs.h
3073  echo '#endif'             >>confdefs.h
3074fi
3075
3076else
3077  echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080fi
3081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3082ac_ext=c
3083ac_cpp='$CPP $CPPFLAGS'
3084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087
3088CFLAGS="$SAVE_CFLAGS"
3089
3090warn_cflags=
3091
3092if test -z "$CFLAGS"; then
3093  add_cflags=
3094  opt_cflags=
3095  dbg_cflags=
3096
3097  if test "$GCC" = "yes"; then
3098    case "$CC" in
3099      icc | */icc) ;;
3100      *)
3101        opt_cflags="-O3"
3102#        case $build in
3103#          x86_64-* | i686-* | i586-* )
3104#            # Check for enabling special instructions
3105#            myflags=`grep flags /proc/cpuinfo | tail -1 | cut -d: -f2-`
3106#            have_sse=no
3107#            SAVE_LIBS="$LIBS"
3108#            LIBS="$LIBS -lm"
3109#            for i in $myflags; do
3110#              case $i in
3111#                sse3) CFLAGS="-mfpmath=sse -msse3"
3112#                     AC_MSG_CHECKING([whether flag \"$CFLAGS\" works])
3113#                     AC_TRY_LINK([#include <math.h>],[double s = sin(1.0);],
3114#                       [AC_MSG_RESULT([yes])
3115#                         opt_cflags="$opt_cflags $CFLAGS"],
3116#                        [AC_MSG_RESULT([no])])
3117#                     have_sse=yes;
3118#                     CFLAGS=
3119#                     ;;
3120#                sse2)
3121#                     CFLAGS="-mfpmath=sse -msse2"
3122#                     AC_MSG_CHECKING([whether flag \"$CFLAGS\" works])
3123#                     AC_TRY_LINK([#include <math.h>],[double s = sin(1.0);],
3124#                       [AC_MSG_RESULT([yes])
3125#                         if test $have_sse = no; then
3126#                           opt_cflags="$opt_cflags $CFLAGS"
3127#                        else
3128#                          opt_cflags="$opt_cflags -msse2"
3129#                         fi],
3130#                        [AC_MSG_RESULT([no])])
3131#                     have_sse=yes;
3132#                     CFLAGS=
3133#                     ;;
3134#                sse)
3135#                     CFLAGS="-mfpmath=sse -msse"
3136#                     AC_MSG_CHECKING([whether flag \"$CFLAGS\" works])
3137#                     AC_TRY_LINK([#include <math.h>],[double s = sin(1.0);],
3138#                       [AC_MSG_RESULT([yes])
3139#                         if test $have_sse = no; then
3140#                           opt_cflags="$opt_cflags $CFLAGS"
3141#                        else
3142#                          opt_cflags="$opt_cflags -msse"
3143#                         fi],
3144#                        [AC_MSG_RESULT([no])])
3145#                     have_sse=yes;
3146#                     CFLAGS=
3147#                     ;;
3148#                mmx) CFLAGS="-mmmx"
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#                3dnow) CFLAGS="-m3dnow"
3156#                     AC_MSG_CHECKING([whether flag \"$CFLAGS\" works])
3157#                     AC_TRY_LINK([#include <math.h>],[double s = sin(1.0);],
3158#                       [AC_MSG_RESULT([yes])
3159#                         opt_cflags="$opt_cflags $CFLAGS"],
3160#                        [AC_MSG_RESULT([no])])
3161#                     CFLAGS= ;;
3162#              esac
3163#            done
3164#            LIBS="$SAVE_LIBS"
3165#          ;;
3166#        esac
3167        add_cflags="-pipe"
3168        dbg_cflags="-g"
3169        warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Werror "
3170        case $build in
3171          *-cygwin*) echo "$as_me:$LINENO: checking whether flag \"-mno-cygwin\" works" >&5
3172echo $ECHO_N "checking whether flag \"-mno-cygwin\" works... $ECHO_C" >&6
3173                    CFLAGS="-mno-cygwin"
3174
3175cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h.  */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h.  */
3181
3182int
3183main ()
3184{
3185int i=0; i++;
3186  ;
3187  return 0;
3188}
3189_ACEOF
3190rm -f conftest.$ac_objext conftest$ac_exeext
3191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3192  (eval $ac_link) 2>conftest.er1
3193  ac_status=$?
3194  grep -v '^ *+' conftest.er1 >conftest.err
3195  rm -f conftest.er1
3196  cat conftest.err >&5
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); } &&
3199         { ac_try='test -z "$ac_c_werror_flag"
3200                         || test ! -s conftest.err'
3201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202  (eval $ac_try) 2>&5
3203  ac_status=$?
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }; } &&
3206         { ac_try='test -s conftest$ac_exeext'
3207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208  (eval $ac_try) 2>&5
3209  ac_status=$?
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); }; }; then
3212  echo "$as_me:$LINENO: result: yes" >&5
3213echo "${ECHO_T}yes" >&6; add_cflags="-mno-cygwin $add_cflags"; use_mingw=yes
3214else
3215  echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
3220fi
3221rm -f conftest.err conftest.$ac_objext \
3222      conftest$ac_exeext conftest.$ac_ext
3223                    CFLAGS= ;;
3224        esac ;;
3225    esac
3226  fi
3227  if test -z "$opt_cflags"; then
3228    case $build in
3229     *-cygwin*)
3230      case "$CC" in
3231      cl | */cl)
3232             opt_cflags="-Ot1"
3233             add_cflags="-nologo"
3234             dbg_cflags="-Yd";;
3235      esac;;
3236     *-linux-*)
3237      case "$CC" in
3238      icc | */icc)
3239#             AC_MSG_CHECKING([whether flag \"-fast\" works])
3240#               CFLAGS="-fast"
3241#               AC_TRY_RUN(,[int i=0; i++;],
3242#                               [AC_MSG_RESULT([yes]); opt_cflags="-fast"],
3243#                               [AC_MSG_RESULT([no]); opt_cflags="-O3 -ipo -static"])
3244#               CFLAGS=
3245             opt_cflags="-O3 -ip"
3246             add_cflags="-mp -pc64"
3247             dbg_cflags="-g"
3248             # Check if -i_dynamic is necessary (for new glibc library)
3249             echo "$as_me:$LINENO: checking whether flag \"-i_dynamic\" is needed" >&5
3250echo $ECHO_N "checking whether flag \"-i_dynamic\" is needed... $ECHO_C" >&6
3251             CFLAGS=
3252             cat >conftest.$ac_ext <<_ACEOF
3253/* confdefs.h.  */
3254_ACEOF
3255cat confdefs.h >>conftest.$ac_ext
3256cat >>conftest.$ac_ext <<_ACEOF
3257/* end confdefs.h.  */
3258
3259int
3260main ()
3261{
3262int i=0; i++;
3263  ;
3264  return 0;
3265}
3266_ACEOF
3267rm -f conftest.$ac_objext conftest$ac_exeext
3268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269  (eval $ac_link) 2>conftest.er1
3270  ac_status=$?
3271  grep -v '^ *+' conftest.er1 >conftest.err
3272  rm -f conftest.er1
3273  cat conftest.err >&5
3274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275  (exit $ac_status); } &&
3276         { ac_try='test -z "$ac_c_werror_flag"
3277                         || test ! -s conftest.err'
3278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279  (eval $ac_try) 2>&5
3280  ac_status=$?
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); }; } &&
3283         { ac_try='test -s conftest$ac_exeext'
3284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285  (eval $ac_try) 2>&5
3286  ac_status=$?
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }; }; then
3289  echo "$as_me:$LINENO: result: apparently not" >&5
3290echo "${ECHO_T}apparently not" >&6
3291else
3292  echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295echo "$as_me:$LINENO: result: seems so" >&5
3296echo "${ECHO_T}seems so" >&6;
3297                               add_cflags="-i_dynamic $add_cflags"
3298fi
3299rm -f conftest.err conftest.$ac_objext \
3300      conftest$ac_exeext conftest.$ac_ext
3301             ;;
3302      pgcc | */pgcc)
3303             opt_cflags="-fast"
3304             add_cflags="-Kieee -pc 64"
3305             dbg_cflags="-g" ;;
3306      esac;;
3307    *-ibm-*)
3308      case "$CC" in
3309      xlc* | */xlc* | mpxlc* | */mpxlc*)
3310             opt_cflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
3311             add_cflags="-bmaxdata:0x80000000"
3312             dbg_cflags="-g";;
3313      esac;;
3314    *-hp-*)
3315             opt_cflags="-O"
3316             add_cflags="-Ae"
3317             dbg_cflags="-g";;
3318    *-sun-*)
3319             opt_cflags="-xO4 -xtarget=native"
3320             dbg_cflags="-g";;
3321    *-sgi-*)
3322             opt_cflags="-O -OPT:Olimit=0"
3323             dbg_cflags="-g";;
3324    esac
3325  fi
3326
3327  if test "$ac_cv_prog_cc_g" = yes && test -z "$dbg_cflags" ; then
3328    dbg_cflags="-g"
3329  fi
3330
3331  if test "$debugcompile" = "true"; then
3332    CFLAGS="$dbg_cflags $add_cflags"
3333  else
3334    if test -z "$opt_cflags"; then
3335# Try if -O option works if nothing else is set
3336      CFLAGS="-O"
3337      cat >conftest.$ac_ext <<_ACEOF
3338/* confdefs.h.  */
3339_ACEOF
3340cat confdefs.h >>conftest.$ac_ext
3341cat >>conftest.$ac_ext <<_ACEOF
3342/* end confdefs.h.  */
3343
3344int
3345main ()
3346{
3347int i=0; i++;
3348  ;
3349  return 0;
3350}
3351_ACEOF
3352rm -f conftest.$ac_objext conftest$ac_exeext
3353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3354  (eval $ac_link) 2>conftest.er1
3355  ac_status=$?
3356  grep -v '^ *+' conftest.er1 >conftest.err
3357  rm -f conftest.er1
3358  cat conftest.err >&5
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); } &&
3361         { ac_try='test -z "$ac_c_werror_flag"
3362                         || test ! -s conftest.err'
3363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364  (eval $ac_try) 2>&5
3365  ac_status=$?
3366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367  (exit $ac_status); }; } &&
3368         { ac_try='test -s conftest$ac_exeext'
3369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370  (eval $ac_try) 2>&5
3371  ac_status=$?
3372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373  (exit $ac_status); }; }; then
3374  opt_cflags="-O"
3375else
3376  echo "$as_me: failed program was:" >&5
3377sed 's/^/| /' conftest.$ac_ext >&5
3378
3379fi
3380rm -f conftest.err conftest.$ac_objext \
3381      conftest$ac_exeext conftest.$ac_ext
3382    fi
3383    CFLAGS="$opt_cflags $add_cflags"
3384  fi
3385fi
3386
3387# Try if CFLAGS works
3388echo "$as_me:$LINENO: checking whether CFLAGS=\"$CFLAGS\" works" >&5
3389echo $ECHO_N "checking whether CFLAGS=\"$CFLAGS\" works... $ECHO_C" >&6
3390cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h.  */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h.  */
3396
3397int
3398main ()
3399{
3400int i=0; i++;
3401  ;
3402  return 0;
3403}
3404_ACEOF
3405rm -f conftest.$ac_objext conftest$ac_exeext
3406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3407  (eval $ac_link) 2>conftest.er1
3408  ac_status=$?
3409  grep -v '^ *+' conftest.er1 >conftest.err
3410  rm -f conftest.er1
3411  cat conftest.err >&5
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); } &&
3414         { ac_try='test -z "$ac_c_werror_flag"
3415                         || test ! -s conftest.err'
3416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417  (eval $ac_try) 2>&5
3418  ac_status=$?
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }; } &&
3421         { ac_try='test -s conftest$ac_exeext'
3422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423  (eval $ac_try) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }; }; then
3427  :
3428else
3429  echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
3432CFLAGS=
3433fi
3434rm -f conftest.err conftest.$ac_objext \
3435      conftest$ac_exeext conftest.$ac_ext
3436if test -z "$CFLAGS"; then
3437  echo "$as_me:$LINENO: result: no" >&5
3438echo "${ECHO_T}no" >&6
3439  { 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
3440echo "$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;}
3441  CFLAGS='-O'
3442  cat >conftest.$ac_ext <<_ACEOF
3443/* confdefs.h.  */
3444_ACEOF
3445cat confdefs.h >>conftest.$ac_ext
3446cat >>conftest.$ac_ext <<_ACEOF
3447/* end confdefs.h.  */
3448
3449int
3450main ()
3451{
3452int i=0; i++;
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457rm -f conftest.$ac_objext conftest$ac_exeext
3458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3459  (eval $ac_link) 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } &&
3466         { ac_try='test -z "$ac_c_werror_flag"
3467                         || test ! -s conftest.err'
3468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469  (eval $ac_try) 2>&5
3470  ac_status=$?
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); }; } &&
3473         { ac_try='test -s conftest$ac_exeext'
3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; }; then
3479  :
3480else
3481  echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484CFLAGS=
3485fi
3486rm -f conftest.err conftest.$ac_objext \
3487      conftest$ac_exeext conftest.$ac_ext
3488  if test -z "$CFLAGS"; then
3489    echo "$as_me:$LINENO: result: no" >&5
3490echo "${ECHO_T}no" >&6
3491    { 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
3492echo "$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;}
3493  fi
3494else
3495  echo "$as_me:$LINENO: result: yes" >&5
3496echo "${ECHO_T}yes" >&6
3497fi
3498ac_ext=c
3499ac_cpp='$CPP $CPPFLAGS'
3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503
3504
3505###################################
3506#   Fortran 77 compiler options   #
3507###################################
3508
3509ac_ext=f
3510ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3511ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3513
3514SAVE_FFLAGS="$FFLAGS"
3515case $build in
3516  *-cygwin) comps="gfortran g77" ;;
3517  *)        comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc" ;;
3518esac
3519ac_ext=f
3520ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3521ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3523if test -n "$ac_tool_prefix"; then
3524  for ac_prog in $comps
3525  do
3526    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3527set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3528echo "$as_me:$LINENO: checking for $ac_word" >&5
3529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530if test "${ac_cv_prog_F77+set}" = set; then
3531  echo $ECHO_N "(cached) $ECHO_C" >&6
3532else
3533  if test -n "$F77"; then
3534  ac_cv_prog_F77="$F77" # Let the user override the test.
3535else
3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537for as_dir in $PATH
3538do
3539  IFS=$as_save_IFS
3540  test -z "$as_dir" && as_dir=.
3541  for ac_exec_ext in '' $ac_executable_extensions; do
3542  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545    break 2
3546  fi
3547done
3548done
3549
3550fi
3551fi
3552F77=$ac_cv_prog_F77
3553if test -n "$F77"; then
3554  echo "$as_me:$LINENO: result: $F77" >&5
3555echo "${ECHO_T}$F77" >&6
3556else
3557  echo "$as_me:$LINENO: result: no" >&5
3558echo "${ECHO_T}no" >&6
3559fi
3560
3561    test -n "$F77" && break
3562  done
3563fi
3564if test -z "$F77"; then
3565  ac_ct_F77=$F77
3566  for ac_prog in $comps
3567do
3568  # Extract the first word of "$ac_prog", so it can be a program name with args.
3569set dummy $ac_prog; ac_word=$2
3570echo "$as_me:$LINENO: checking for $ac_word" >&5
3571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3572if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3573  echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575  if test -n "$ac_ct_F77"; then
3576  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3577else
3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH
3580do
3581  IFS=$as_save_IFS
3582  test -z "$as_dir" && as_dir=.
3583  for ac_exec_ext in '' $ac_executable_extensions; do
3584  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585    ac_cv_prog_ac_ct_F77="$ac_prog"
3586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587    break 2
3588  fi
3589done
3590done
3591
3592fi
3593fi
3594ac_ct_F77=$ac_cv_prog_ac_ct_F77
3595if test -n "$ac_ct_F77"; then
3596  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3597echo "${ECHO_T}$ac_ct_F77" >&6
3598else
3599  echo "$as_me:$LINENO: result: no" >&5
3600echo "${ECHO_T}no" >&6
3601fi
3602
3603  test -n "$ac_ct_F77" && break
3604done
3605
3606  F77=$ac_ct_F77
3607fi
3608
3609
3610# Provide some information about the compiler.
3611echo "$as_me:3611:" \
3612     "checking for Fortran 77 compiler version" >&5
3613ac_compiler=`set X $ac_compile; echo $2`
3614{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3615  (eval $ac_compiler --version </dev/null >&5) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }
3619{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3620  (eval $ac_compiler -v </dev/null >&5) 2>&5
3621  ac_status=$?
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); }
3624{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3625  (eval $ac_compiler -V </dev/null >&5) 2>&5
3626  ac_status=$?
3627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628  (exit $ac_status); }
3629rm -f a.out
3630
3631# If we don't use `.F' as extension, the preprocessor is not run on the
3632# input file.  (Note that this only needs to work for GNU compilers.)
3633ac_save_ext=$ac_ext
3634ac_ext=F
3635echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3636echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3637if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3638  echo $ECHO_N "(cached) $ECHO_C" >&6
3639else
3640  cat >conftest.$ac_ext <<_ACEOF
3641      program main
3642#ifndef __GNUC__
3643       choke me
3644#endif
3645
3646      end
3647_ACEOF
3648rm -f conftest.$ac_objext
3649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650  (eval $ac_compile) 2>conftest.er1
3651  ac_status=$?
3652  grep -v '^ *+' conftest.er1 >conftest.err
3653  rm -f conftest.er1
3654  cat conftest.err >&5
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); } &&
3657         { ac_try='test -z "$ac_f77_werror_flag"
3658                         || test ! -s conftest.err'
3659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660  (eval $ac_try) 2>&5
3661  ac_status=$?
3662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663  (exit $ac_status); }; } &&
3664         { ac_try='test -s conftest.$ac_objext'
3665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666  (eval $ac_try) 2>&5
3667  ac_status=$?
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); }; }; then
3670  ac_compiler_gnu=yes
3671else
3672  echo "$as_me: failed program was:" >&5
3673sed 's/^/| /' conftest.$ac_ext >&5
3674
3675ac_compiler_gnu=no
3676fi
3677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3678ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3679
3680fi
3681echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3682echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3683ac_ext=$ac_save_ext
3684ac_test_FFLAGS=${FFLAGS+set}
3685ac_save_FFLAGS=$FFLAGS
3686FFLAGS=
3687echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3688echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3689if test "${ac_cv_prog_f77_g+set}" = set; then
3690  echo $ECHO_N "(cached) $ECHO_C" >&6
3691else
3692  FFLAGS=-g
3693cat >conftest.$ac_ext <<_ACEOF
3694      program main
3695
3696      end
3697_ACEOF
3698rm -f conftest.$ac_objext
3699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700  (eval $ac_compile) 2>conftest.er1
3701  ac_status=$?
3702  grep -v '^ *+' conftest.er1 >conftest.err
3703  rm -f conftest.er1
3704  cat conftest.err >&5
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); } &&
3707         { ac_try='test -z "$ac_f77_werror_flag"
3708                         || test ! -s conftest.err'
3709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710  (eval $ac_try) 2>&5
3711  ac_status=$?
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); }; } &&
3714         { ac_try='test -s conftest.$ac_objext'
3715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716  (eval $ac_try) 2>&5
3717  ac_status=$?
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); }; }; then
3720  ac_cv_prog_f77_g=yes
3721else
3722  echo "$as_me: failed program was:" >&5
3723sed 's/^/| /' conftest.$ac_ext >&5
3724
3725ac_cv_prog_f77_g=no
3726fi
3727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728
3729fi
3730echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3731echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3732if test "$ac_test_FFLAGS" = set; then
3733  FFLAGS=$ac_save_FFLAGS
3734elif test $ac_cv_prog_f77_g = yes; then
3735  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3736    FFLAGS="-g -O2"
3737  else
3738    FFLAGS="-g"
3739  fi
3740else
3741  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3742    FFLAGS="-O2"
3743  else
3744    FFLAGS=
3745  fi
3746fi
3747
3748G77=`test $ac_compiler_gnu = yes && echo yes`
3749ac_ext=f
3750ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3751ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3753
3754FFLAGS="$SAVE_FFLAGS"
3755
3756if test -z "$FFLAGS"; then
3757  add_fflags=
3758  opt_fflags=
3759  dbg_fflags=
3760
3761  if test "$G77" = "yes"; then
3762    opt_fflags="-O3"
3763#        case $build in
3764#          x86_64-* | i686-* | i586-* )
3765#            # Check for enabling special instructions
3766#            myflags=`grep flags /proc/cpuinfo | tail -1 | cut -d: -f2-`
3767#            have_sse=no
3768#            for i in $myflags; do
3769#              case $i in
3770#                sse3) FFLAGS="-mfpmath=sse -msse3"
3771#                     AC_MSG_CHECKING([whether flag \"$FFLAGS\" works])
3772#                     AC_TRY_LINK(,[      double precision x
3773#      x = sin(1.d0)],
3774#                       [AC_MSG_RESULT([yes])
3775#                         opt_fflags="$opt_fflags $FFLAGS"],
3776#                        [AC_MSG_RESULT([no])])
3777#                     have_sse=yes;
3778#                     FFLAGS=
3779#                     ;;
3780#                sse2)
3781#                     FFLAGS="-mfpmath=sse -msse2"
3782#                     AC_MSG_CHECKING([whether flag \"$FFLAGS\" works])
3783#                     AC_TRY_LINK(,[      double precision x
3784#      x = sin(1.d0)],
3785#                       [AC_MSG_RESULT([yes])
3786#                         if test $have_sse = no; then
3787#                           opt_fflags="$opt_fflags $FFLAGS"
3788#                        else
3789#                          opt_fflags="$opt_fflags -msse2"
3790#                         fi],
3791#                        [AC_MSG_RESULT([no])])
3792#                     have_sse=yes;
3793#                     FFLAGS=
3794#                     ;;
3795#                sse)
3796#                     FFLAGS="-mfpmath=sse -msse"
3797#                     AC_MSG_CHECKING([whether flag \"$FFLAGS\" works])
3798#                     AC_TRY_LINK(,[      double precision x
3799#      x = sin(1.d0)],
3800#                       [AC_MSG_RESULT([yes])
3801#                         if test $have_sse = no; then
3802#                           opt_fflags="$opt_fflags $FFLAGS"
3803#                        else
3804#                          opt_fflags="$opt_fflags -msse"
3805#                         fi],
3806#                        [AC_MSG_RESULT([no])])
3807#                     have_sse=yes;
3808#                     FFLAGS=
3809#                     ;;
3810#                mmx) FFLAGS="-mmmx"
3811#                     AC_MSG_CHECKING([whether flag \"$FFLAGS\" works])
3812#                     AC_TRY_LINK(,[      double precision x
3813#      x = sin(1.d0)],
3814#                       [AC_MSG_RESULT([yes])
3815#                         opt_fflags="$opt_fflags $FFLAGS"],
3816#                        [AC_MSG_RESULT([no])])
3817#                     FFLAGS= ;;
3818#                3dnow) FFLAGS="-m3dnow"
3819#                     AC_MSG_CHECKING([whether flag \"$FFLAGS\" works])
3820#                     AC_TRY_LINK(,[      double precision x
3821#      x = sin(1.d0)],
3822#                       [AC_MSG_RESULT([yes])
3823#                         opt_fflags="$opt_fflags $FFLAGS"],
3824#                        [AC_MSG_RESULT([no])])
3825#                     FFLAGS= ;;
3826#              esac
3827#            done
3828#          ;;
3829#        esac
3830
3831#    case $build in
3832#      i686-* )
3833#        FFLAGS="-march=i686 -mfpmath=sse -msse"
3834#        AC_MSG_CHECKING([whether flags \"$FFLAGS\" work])
3835#        AC_TRY_LINK(,[
3836#      double precision x
3837#      x = sin(1.d0)],
3838#                       [AC_MSG_RESULT([yes]); opt_fflags="$opt_fflags $FFLAGS"],
3839#                       [AC_MSG_RESULT([no])])
3840#        FFLAGS=
3841#      ;;
3842#    esac
3843    add_fflags="-pipe"
3844    dbg_fflags="-g"
3845    case $build in
3846      *-cygwin*) echo "$as_me:$LINENO: checking whether flag \"-mno-cygwin\" works" >&5
3847echo $ECHO_N "checking whether flag \"-mno-cygwin\" works... $ECHO_C" >&6
3848                FFLAGS="-mno-cygwin"
3849
3850cat >conftest.$ac_ext <<_ACEOF
3851      program main
3852      write(*,*) 'Hello world'
3853      end
3854_ACEOF
3855rm -f conftest.$ac_objext conftest$ac_exeext
3856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857  (eval $ac_link) 2>conftest.er1
3858  ac_status=$?
3859  grep -v '^ *+' conftest.er1 >conftest.err
3860  rm -f conftest.er1
3861  cat conftest.err >&5
3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863  (exit $ac_status); } &&
3864         { ac_try='test -z "$ac_f77_werror_flag"
3865                         || test ! -s conftest.err'
3866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867  (eval $ac_try) 2>&5
3868  ac_status=$?
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); }; } &&
3871         { ac_try='test -s conftest$ac_exeext'
3872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873  (eval $ac_try) 2>&5
3874  ac_status=$?
3875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876  (exit $ac_status); }; }; then
3877  echo "$as_me:$LINENO: result: yes" >&5
3878echo "${ECHO_T}yes" >&6; add_fflags="-mno-cygwin $add_fflags"
3879else
3880  echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883echo "$as_me:$LINENO: result: no" >&5
3884echo "${ECHO_T}no" >&6
3885fi
3886rm -f conftest.err conftest.$ac_objext \
3887      conftest$ac_exeext conftest.$ac_ext
3888                FFLAGS= ;;
3889    esac
3890  else
3891    case $build in
3892    *-cygwin*)
3893      case $F77 in
3894      ifort | */ifort)
3895             opt_fflags="-O3"
3896             add_fflags="-nologo -Qprec -fpp"
3897             dbg_fflags="-debug" ;;
3898      esac;;
3899    *-linux-*)
3900      case $F77 in
3901      ifc | */ifc | ifort | */ifort)
3902#             AC_MSG_CHECKING([whether flag \"-fast\" works])
3903#               FFLAGS="-fast"
3904#               AC_TRY_RUN(,[      write(*,*) 'Hello world'],
3905#                               [AC_MSG_RESULT([yes]); opt_fflags="-fast"],
3906#                               [AC_MSG_RESULT([no]); opt_fflags="-O3 -ipo -static"])
3907#               FFLAGS=
3908             opt_fflags="-O3 -ip"
3909             add_fflags="-mp -pc64 -cm -w90 -w95"
3910             dbg_fflags="-g -CA -CB -CS -CU"
3911             # Check if -i_dynamic is necessary (for new glibc library)
3912             echo "$as_me:$LINENO: checking whether flag \"-i_dynamic\" is needed" >&5
3913echo $ECHO_N "checking whether flag \"-i_dynamic\" is needed... $ECHO_C" >&6
3914             FFLAGS=
3915             cat >conftest.$ac_ext <<_ACEOF
3916      program main
3917      write(*,*) 'Hello world'
3918      end
3919_ACEOF
3920rm -f conftest.$ac_objext conftest$ac_exeext
3921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3922  (eval $ac_link) 2>conftest.er1
3923  ac_status=$?
3924  grep -v '^ *+' conftest.er1 >conftest.err
3925  rm -f conftest.er1
3926  cat conftest.err >&5
3927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928  (exit $ac_status); } &&
3929         { ac_try='test -z "$ac_f77_werror_flag"
3930                         || test ! -s conftest.err'
3931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932  (eval $ac_try) 2>&5
3933  ac_status=$?
3934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935  (exit $ac_status); }; } &&
3936         { ac_try='test -s conftest$ac_exeext'
3937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938  (eval $ac_try) 2>&5
3939  ac_status=$?
3940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941  (exit $ac_status); }; }; then
3942  echo "$as_me:$LINENO: result: apparently not" >&5
3943echo "${ECHO_T}apparently not" >&6
3944else
3945  echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948echo "$as_me:$LINENO: result: seems so" >&5
3949echo "${ECHO_T}seems so" >&6;
3950                               add_fflags="-i_dynamic $add_fflags"
3951fi
3952rm -f conftest.err conftest.$ac_objext \
3953      conftest$ac_exeext conftest.$ac_ext
3954             ;;
3955      pgf77 | */pgf77 | pgf90 | */pgf90)
3956             opt_fflags="-fast"
3957             add_fflags="-Kieee -pc 64"
3958             dbg_fflags="-g" ;;
3959      esac;;
3960    *-ibm-*)
3961      case $F77 in
3962      xlf* | */xlf* | mpxlf* | */mpxlf* )
3963             opt_fflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
3964             add_fflags="-bmaxdata:0x80000000"
3965             dbg_fflags="-g -C";;
3966      esac;;
3967    *-hp-*)
3968             opt_fflags="+O3"
3969             add_fflags="+U77"
3970             dbg_fflags="-C -g";;
3971    *-sun-*)
3972             opt_fflags="-O4 -xtarget=native"
3973             dbg_fflags="-g";;
3974    *-sgi-*)
3975             opt_fflags="-O5 -OPT:Olimit=0"
3976             dbg_fflags="-g";;
3977    esac
3978  fi
3979
3980  if test "$ac_cv_prog_f77_g" = yes && test -z "$dbg_fflags" ; then
3981    dbg_fflags="-g"
3982  fi
3983
3984  if test "$debugcompile" = true; then
3985    FFLAGS="$dbg_fflags $add_fflags"
3986  else
3987    if test -z "$opt_fflags"; then
3988# Try if -O option works if nothing else is set
3989      echo "$as_me:$LINENO: checking whether FFLAGS=\"-O\" works" >&5
3990echo $ECHO_N "checking whether FFLAGS=\"-O\" works... $ECHO_C" >&6
3991      FFLAGS=-O
3992      cat >conftest.$ac_ext <<_ACEOF
3993      program main
3994      integer i
3995      end
3996_ACEOF
3997rm -f conftest.$ac_objext conftest$ac_exeext
3998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999  (eval $ac_link) 2>conftest.er1
4000  ac_status=$?
4001  grep -v '^ *+' conftest.er1 >conftest.err
4002  rm -f conftest.er1
4003  cat conftest.err >&5
4004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005  (exit $ac_status); } &&
4006         { ac_try='test -z "$ac_f77_werror_flag"
4007                         || test ! -s conftest.err'
4008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009  (eval $ac_try) 2>&5
4010  ac_status=$?
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); }; } &&
4013         { ac_try='test -s conftest$ac_exeext'
4014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015  (eval $ac_try) 2>&5
4016  ac_status=$?
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); }; }; then
4019  echo "$as_me:$LINENO: result: yes" >&5
4020echo "${ECHO_T}yes" >&6; opt_fflags="-O"
4021else
4022  echo "$as_me: failed program was:" >&5
4023sed 's/^/| /' conftest.$ac_ext >&5
4024
4025echo "$as_me:$LINENO: result: no" >&5
4026echo "${ECHO_T}no" >&6
4027fi
4028rm -f conftest.err conftest.$ac_objext \
4029      conftest$ac_exeext conftest.$ac_ext
4030    fi
4031    FFLAGS="$opt_fflags $add_fflags"
4032  fi
4033fi
4034
4035# Try if FFLAGS works
4036echo "$as_me:$LINENO: checking whether FFLAGS=\"$FFLAGS\" works" >&5
4037echo $ECHO_N "checking whether FFLAGS=\"$FFLAGS\" works... $ECHO_C" >&6
4038cat >conftest.$ac_ext <<_ACEOF
4039      program main
4040      integer i
4041      end
4042_ACEOF
4043rm -f conftest.$ac_objext conftest$ac_exeext
4044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4045  (eval $ac_link) 2>conftest.er1
4046  ac_status=$?
4047  grep -v '^ *+' conftest.er1 >conftest.err
4048  rm -f conftest.er1
4049  cat conftest.err >&5
4050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051  (exit $ac_status); } &&
4052         { ac_try='test -z "$ac_f77_werror_flag"
4053                         || test ! -s conftest.err'
4054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055  (eval $ac_try) 2>&5
4056  ac_status=$?
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); }; } &&
4059         { ac_try='test -s conftest$ac_exeext'
4060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061  (eval $ac_try) 2>&5
4062  ac_status=$?
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); }; }; then
4065  :
4066else
4067  echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070FFLAGS=
4071fi
4072rm -f conftest.err conftest.$ac_objext \
4073      conftest$ac_exeext conftest.$ac_ext
4074if test -z "$FFLAGS"; then
4075  echo "$as_me:$LINENO: result: no" >&5
4076echo "${ECHO_T}no" >&6
4077  { 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
4078echo "$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;}
4079  FFLAGS='-O'
4080  cat >conftest.$ac_ext <<_ACEOF
4081      program main
4082      integer i
4083      end
4084_ACEOF
4085rm -f conftest.$ac_objext conftest$ac_exeext
4086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4087  (eval $ac_link) 2>conftest.er1
4088  ac_status=$?
4089  grep -v '^ *+' conftest.er1 >conftest.err
4090  rm -f conftest.er1
4091  cat conftest.err >&5
4092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093  (exit $ac_status); } &&
4094         { ac_try='test -z "$ac_f77_werror_flag"
4095                         || test ! -s conftest.err'
4096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097  (eval $ac_try) 2>&5
4098  ac_status=$?
4099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100  (exit $ac_status); }; } &&
4101         { ac_try='test -s conftest$ac_exeext'
4102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103  (eval $ac_try) 2>&5
4104  ac_status=$?
4105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106  (exit $ac_status); }; }; then
4107  :
4108else
4109  echo "$as_me: failed program was:" >&5
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
4112FFLAGS=
4113fi
4114rm -f conftest.err conftest.$ac_objext \
4115      conftest$ac_exeext conftest.$ac_ext
4116  if test -z "$FFLAGS"; then
4117    echo "$as_me:$LINENO: result: no" >&5
4118echo "${ECHO_T}no" >&6
4119    { 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
4120echo "$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;}
4121  fi
4122else
4123  echo "$as_me:$LINENO: result: yes" >&5
4124echo "${ECHO_T}yes" >&6
4125fi
4126
4127ac_ext=f
4128ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4129ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4131echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4132echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4133if test "${ac_cv_prog_f77_v+set}" = set; then
4134  echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136  cat >conftest.$ac_ext <<_ACEOF
4137      program main
4138
4139      end
4140_ACEOF
4141rm -f conftest.$ac_objext
4142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4143  (eval $ac_compile) 2>conftest.er1
4144  ac_status=$?
4145  grep -v '^ *+' conftest.er1 >conftest.err
4146  rm -f conftest.er1
4147  cat conftest.err >&5
4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149  (exit $ac_status); } &&
4150         { ac_try='test -z "$ac_f77_werror_flag"
4151                         || test ! -s conftest.err'
4152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153  (eval $ac_try) 2>&5
4154  ac_status=$?
4155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156  (exit $ac_status); }; } &&
4157         { ac_try='test -s conftest.$ac_objext'
4158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159  (eval $ac_try) 2>&5
4160  ac_status=$?
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); }; }; then
4163  ac_cv_prog_f77_v=
4164# Try some options frequently used verbose output
4165for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4166  cat >conftest.$ac_ext <<_ACEOF
4167      program main
4168
4169      end
4170_ACEOF
4171
4172# Compile and link our simple test program by passing a flag (argument
4173# 1 to this macro) to the Fortran compiler in order to get
4174# "verbose" output that we can then parse for the Fortran linker
4175# flags.
4176ac_save_FFLAGS=$FFLAGS
4177FFLAGS="$FFLAGS $ac_verb"
4178(eval echo $as_me:4178: \"$ac_link\") >&5
4179ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4180echo "$ac_f77_v_output" >&5
4181FFLAGS=$ac_save_FFLAGS
4182
4183rm -f conftest*
4184
4185# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4186# /foo, /bar, and /baz are search directories for the Fortran linker.
4187# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4188ac_f77_v_output="`echo $ac_f77_v_output |
4189        grep 'LPATH is:' |
4190        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4191
4192case $ac_f77_v_output in
4193  # If we are using xlf then replace all the commas with spaces.
4194  *xlfentry*)
4195    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4196
4197  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4198  # $LIBS confuse us, and the libraries appear later in the output anyway).
4199  *mGLOB_options_string*)
4200    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4201
4202  # If we are using Cray Fortran then delete quotes.
4203  # Use "\"" instead of '"' for font-lock-mode.
4204  # FIXME: a more general fix for quoted arguments with spaces?
4205  *cft90*)
4206    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4207esac
4208
4209
4210  # look for -l* and *.a constructs in the output
4211  for ac_arg in $ac_f77_v_output; do
4212     case $ac_arg in
4213        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4214          ac_cv_prog_f77_v=$ac_verb
4215          break 2 ;;
4216     esac
4217  done
4218done
4219if test -z "$ac_cv_prog_f77_v"; then
4220   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4221echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4222fi
4223else
4224  echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4228echo "$as_me: WARNING: compilation failed" >&2;}
4229fi
4230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4231
4232fi
4233echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4234echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4235echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4236echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4237if test "${ac_cv_f77_libs+set}" = set; then
4238  echo $ECHO_N "(cached) $ECHO_C" >&6
4239else
4240  if test "x$FLIBS" != "x"; then
4241  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4242else
4243
4244cat >conftest.$ac_ext <<_ACEOF
4245      program main
4246
4247      end
4248_ACEOF
4249
4250# Compile and link our simple test program by passing a flag (argument
4251# 1 to this macro) to the Fortran compiler in order to get
4252# "verbose" output that we can then parse for the Fortran linker
4253# flags.
4254ac_save_FFLAGS=$FFLAGS
4255FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4256(eval echo $as_me:4256: \"$ac_link\") >&5
4257ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4258echo "$ac_f77_v_output" >&5
4259FFLAGS=$ac_save_FFLAGS
4260
4261rm -f conftest*
4262
4263# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4264# /foo, /bar, and /baz are search directories for the Fortran linker.
4265# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4266ac_f77_v_output="`echo $ac_f77_v_output |
4267        grep 'LPATH is:' |
4268        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4269
4270case $ac_f77_v_output in
4271  # If we are using xlf then replace all the commas with spaces.
4272  *xlfentry*)
4273    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4274
4275  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4276  # $LIBS confuse us, and the libraries appear later in the output anyway).
4277  *mGLOB_options_string*)
4278    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4279
4280  # If we are using Cray Fortran then delete quotes.
4281  # Use "\"" instead of '"' for font-lock-mode.
4282  # FIXME: a more general fix for quoted arguments with spaces?
4283  *cft90*)
4284    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4285esac
4286
4287
4288
4289ac_cv_f77_libs=
4290
4291# Save positional arguments (if any)
4292ac_save_positional="$@"
4293
4294set X $ac_f77_v_output
4295while test $# != 1; do
4296  shift
4297  ac_arg=$1
4298  case $ac_arg in
4299        [\\/]*.a | ?:[\\/]*.a)
4300            ac_exists=false
4301  for ac_i in $ac_cv_f77_libs; do
4302    if test x"$ac_arg" = x"$ac_i"; then
4303      ac_exists=true
4304      break
4305    fi
4306  done
4307
4308  if test x"$ac_exists" = xtrue; then
4309  :
4310else
4311  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4312fi
4313
4314          ;;
4315        -bI:*)
4316            ac_exists=false
4317  for ac_i in $ac_cv_f77_libs; do
4318    if test x"$ac_arg" = x"$ac_i"; then
4319      ac_exists=true
4320      break
4321    fi
4322  done
4323
4324  if test x"$ac_exists" = xtrue; then
4325  :
4326else
4327  if test "$ac_compiler_gnu" = yes; then
4328  for ac_link_opt in $ac_arg; do
4329    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4330  done
4331else
4332  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4333fi
4334fi
4335
4336          ;;
4337          # Ignore these flags.
4338        -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=*)
4339          ;;
4340        -lkernel32)
4341          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4342          ;;
4343        -[LRuY])
4344          # These flags, when seen by themselves, take an argument.
4345          # We remove the space between option and argument and re-iterate
4346          # unless we find an empty arg or a new option (starting with -)
4347          case $2 in
4348             "" | -*);;
4349             *)
4350                ac_arg="$ac_arg$2"
4351                shift; shift
4352                set X $ac_arg "$@"
4353                ;;
4354          esac
4355          ;;
4356        -YP,*)
4357          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4358              ac_exists=false
4359  for ac_i in $ac_cv_f77_libs; do
4360    if test x"$ac_j" = x"$ac_i"; then
4361      ac_exists=true
4362      break
4363    fi
4364  done
4365
4366  if test x"$ac_exists" = xtrue; then
4367  :
4368else
4369  ac_arg="$ac_arg $ac_j"
4370                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4371fi
4372
4373          done
4374          ;;
4375        -[lLR]*)
4376            ac_exists=false
4377  for ac_i in $ac_cv_f77_libs; do
4378    if test x"$ac_arg" = x"$ac_i"; then
4379      ac_exists=true
4380      break
4381    fi
4382  done
4383
4384  if test x"$ac_exists" = xtrue; then
4385  :
4386else
4387  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4388fi
4389
4390          ;;
4391          # Ignore everything else.
4392  esac
4393done
4394# restore positional arguments
4395set X $ac_save_positional; shift
4396
4397# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4398# then we insist that the "run path" must be an absolute path (i.e. it
4399# must begin with a "/").
4400case `(uname -sr) 2>/dev/null` in
4401   "SunOS 5"*)
4402      ac_ld_run_path=`echo $ac_f77_v_output |
4403                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4404      test "x$ac_ld_run_path" != x &&
4405        if test "$ac_compiler_gnu" = yes; then
4406  for ac_link_opt in $ac_ld_run_path; do
4407    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4408  done
4409else
4410  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4411fi
4412      ;;
4413esac
4414fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4415
4416fi
4417echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4418echo "${ECHO_T}$ac_cv_f77_libs" >&6
4419FLIBS="$ac_cv_f77_libs"
4420
4421
4422ac_ext=f
4423ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4424ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4426
4427ac_ext=f
4428ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4429ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4431
4432echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4433echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4434if test "${ac_cv_f77_dummy_main+set}" = set; then
4435  echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437  ac_f77_dm_save_LIBS=$LIBS
4438 LIBS="$LIBS $FLIBS"
4439 ac_fortran_dm_var=F77_DUMMY_MAIN
4440 ac_ext=c
4441ac_cpp='$CPP $CPPFLAGS'
4442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445
4446 # First, try linking without a dummy main:
4447 cat >conftest.$ac_ext <<_ACEOF
4448/* confdefs.h.  */
4449_ACEOF
4450cat confdefs.h >>conftest.$ac_ext
4451cat >>conftest.$ac_ext <<_ACEOF
4452/* end confdefs.h.  */
4453
4454#ifdef F77_DUMMY_MAIN
4455
4456#  ifdef __cplusplus
4457     extern "C"
4458#  endif
4459   int F77_DUMMY_MAIN() { return 1; }
4460
4461#endif
4462int
4463main ()
4464{
4465
4466  ;
4467  return 0;
4468}
4469_ACEOF
4470rm -f conftest.$ac_objext conftest$ac_exeext
4471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4472  (eval $ac_link) 2>conftest.er1
4473  ac_status=$?
4474  grep -v '^ *+' conftest.er1 >conftest.err
4475  rm -f conftest.er1
4476  cat conftest.err >&5
4477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478  (exit $ac_status); } &&
4479         { ac_try='test -z "$ac_c_werror_flag"
4480                         || test ! -s conftest.err'
4481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482  (eval $ac_try) 2>&5
4483  ac_status=$?
4484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485  (exit $ac_status); }; } &&
4486         { ac_try='test -s conftest$ac_exeext'
4487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488  (eval $ac_try) 2>&5
4489  ac_status=$?
4490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491  (exit $ac_status); }; }; then
4492  ac_cv_fortran_dummy_main=none
4493else
4494  echo "$as_me: failed program was:" >&5
4495sed 's/^/| /' conftest.$ac_ext >&5
4496
4497ac_cv_fortran_dummy_main=unknown
4498fi
4499rm -f conftest.err conftest.$ac_objext \
4500      conftest$ac_exeext conftest.$ac_ext
4501
4502 if test $ac_cv_fortran_dummy_main = unknown; then
4503   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4504     cat >conftest.$ac_ext <<_ACEOF
4505/* confdefs.h.  */
4506_ACEOF
4507cat confdefs.h >>conftest.$ac_ext
4508cat >>conftest.$ac_ext <<_ACEOF
4509/* end confdefs.h.  */
4510#define $ac_fortran_dm_var $ac_func
4511#ifdef F77_DUMMY_MAIN
4512
4513#  ifdef __cplusplus
4514     extern "C"
4515#  endif
4516   int F77_DUMMY_MAIN() { return 1; }
4517
4518#endif
4519int
4520main ()
4521{
4522
4523  ;
4524  return 0;
4525}
4526_ACEOF
4527rm -f conftest.$ac_objext conftest$ac_exeext
4528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4529  (eval $ac_link) 2>conftest.er1
4530  ac_status=$?
4531  grep -v '^ *+' conftest.er1 >conftest.err
4532  rm -f conftest.er1
4533  cat conftest.err >&5
4534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535  (exit $ac_status); } &&
4536         { ac_try='test -z "$ac_c_werror_flag"
4537                         || test ! -s conftest.err'
4538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539  (eval $ac_try) 2>&5
4540  ac_status=$?
4541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); }; } &&
4543         { ac_try='test -s conftest$ac_exeext'
4544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545  (eval $ac_try) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; }; then
4549  ac_cv_fortran_dummy_main=$ac_func; break
4550else
4551  echo "$as_me: failed program was:" >&5
4552sed 's/^/| /' conftest.$ac_ext >&5
4553
4554fi
4555rm -f conftest.err conftest.$ac_objext \
4556      conftest$ac_exeext conftest.$ac_ext
4557   done
4558 fi
4559 ac_ext=f
4560ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4561ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4563 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4564 rm -f conftest*
4565 LIBS=$ac_f77_dm_save_LIBS
4566
4567fi
4568echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4569echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4570F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4571if test "$F77_DUMMY_MAIN" != unknown; then
4572  if test $F77_DUMMY_MAIN != none; then
4573
4574cat >>confdefs.h <<_ACEOF
4575#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4576_ACEOF
4577
4578  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4579
4580cat >>confdefs.h <<\_ACEOF
4581#define FC_DUMMY_MAIN_EQ_F77 1
4582_ACEOF
4583
4584  fi
4585fi
4586else
4587  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4588See \`config.log' for more details." >&5
4589echo "$as_me: error: linking to Fortran libraries from C fails
4590See \`config.log' for more details." >&2;}
4591   { (exit 1); exit 1; }; }
4592fi
4593
4594
4595ac_ext=f
4596ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4597ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4599
4600ac_ext=f
4601ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4602ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4604echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4605echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4606if test "${ac_cv_f77_mangling+set}" = set; then
4607  echo $ECHO_N "(cached) $ECHO_C" >&6
4608else
4609  cat >conftest.$ac_ext <<_ACEOF
4610      subroutine foobar()
4611      return
4612      end
4613      subroutine foo_bar()
4614      return
4615      end
4616_ACEOF
4617rm -f conftest.$ac_objext
4618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4619  (eval $ac_compile) 2>conftest.er1
4620  ac_status=$?
4621  grep -v '^ *+' conftest.er1 >conftest.err
4622  rm -f conftest.er1
4623  cat conftest.err >&5
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); } &&
4626         { ac_try='test -z "$ac_f77_werror_flag"
4627                         || test ! -s conftest.err'
4628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629  (eval $ac_try) 2>&5
4630  ac_status=$?
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); }; } &&
4633         { ac_try='test -s conftest.$ac_objext'
4634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635  (eval $ac_try) 2>&5
4636  ac_status=$?
4637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638  (exit $ac_status); }; }; then
4639  mv conftest.$ac_objext cfortran_test.$ac_objext
4640
4641  ac_save_LIBS=$LIBS
4642  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4643
4644  ac_ext=c
4645ac_cpp='$CPP $CPPFLAGS'
4646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649  ac_success=no
4650  for ac_foobar in foobar FOOBAR; do
4651    for ac_underscore in "" "_"; do
4652      ac_func="$ac_foobar$ac_underscore"
4653      cat >conftest.$ac_ext <<_ACEOF
4654/* confdefs.h.  */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h.  */
4659
4660/* Override any gcc2 internal prototype to avoid an error.  */
4661#ifdef __cplusplus
4662extern "C"
4663#endif
4664/* We use char because int might match the return type of a gcc2
4665   builtin and then its argument prototype would still apply.  */
4666char $ac_func ();
4667#ifdef F77_DUMMY_MAIN
4668
4669#  ifdef __cplusplus
4670     extern "C"
4671#  endif
4672   int F77_DUMMY_MAIN() { return 1; }
4673
4674#endif
4675int
4676main ()
4677{
4678$ac_func ();
4679  ;
4680  return 0;
4681}
4682_ACEOF
4683rm -f conftest.$ac_objext conftest$ac_exeext
4684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685  (eval $ac_link) 2>conftest.er1
4686  ac_status=$?
4687  grep -v '^ *+' conftest.er1 >conftest.err
4688  rm -f conftest.er1
4689  cat conftest.err >&5
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); } &&
4692         { ac_try='test -z "$ac_c_werror_flag"
4693                         || test ! -s conftest.err'
4694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695  (eval $ac_try) 2>&5
4696  ac_status=$?
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); }; } &&
4699         { ac_try='test -s conftest$ac_exeext'
4700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701  (eval $ac_try) 2>&5
4702  ac_status=$?
4703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704  (exit $ac_status); }; }; then
4705  ac_success=yes; break 2
4706else
4707  echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710fi
4711rm -f conftest.err conftest.$ac_objext \
4712      conftest$ac_exeext conftest.$ac_ext
4713    done
4714  done
4715  ac_ext=f
4716ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4717ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4719
4720  if test "$ac_success" = "yes"; then
4721     case $ac_foobar in
4722        foobar)
4723           ac_case=lower
4724           ac_foo_bar=foo_bar
4725           ;;
4726        FOOBAR)
4727           ac_case=upper
4728           ac_foo_bar=FOO_BAR
4729           ;;
4730     esac
4731
4732     ac_ext=c
4733ac_cpp='$CPP $CPPFLAGS'
4734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737     ac_success_extra=no
4738     for ac_extra in "" "_"; do
4739        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4740        cat >conftest.$ac_ext <<_ACEOF
4741/* confdefs.h.  */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h.  */
4746
4747/* Override any gcc2 internal prototype to avoid an error.  */
4748#ifdef __cplusplus
4749extern "C"
4750#endif
4751/* We use char because int might match the return type of a gcc2
4752   builtin and then its argument prototype would still apply.  */
4753char $ac_func ();
4754#ifdef F77_DUMMY_MAIN
4755
4756#  ifdef __cplusplus
4757     extern "C"
4758#  endif
4759   int F77_DUMMY_MAIN() { return 1; }
4760
4761#endif
4762int
4763main ()
4764{
4765$ac_func ();
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770rm -f conftest.$ac_objext conftest$ac_exeext
4771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4772  (eval $ac_link) 2>conftest.er1
4773  ac_status=$?
4774  grep -v '^ *+' conftest.er1 >conftest.err
4775  rm -f conftest.er1
4776  cat conftest.err >&5
4777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778  (exit $ac_status); } &&
4779         { ac_try='test -z "$ac_c_werror_flag"
4780                         || test ! -s conftest.err'
4781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782  (eval $ac_try) 2>&5
4783  ac_status=$?
4784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785  (exit $ac_status); }; } &&
4786         { ac_try='test -s conftest$ac_exeext'
4787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788  (eval $ac_try) 2>&5
4789  ac_status=$?
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); }; }; then
4792  ac_success_extra=yes; break
4793else
4794  echo "$as_me: failed program was:" >&5
4795sed 's/^/| /' conftest.$ac_ext >&5
4796
4797fi
4798rm -f conftest.err conftest.$ac_objext \
4799      conftest$ac_exeext conftest.$ac_ext
4800     done
4801     ac_ext=f
4802ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4803ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4805
4806     if test "$ac_success_extra" = "yes"; then
4807        ac_cv_f77_mangling="$ac_case case"
4808        if test -z "$ac_underscore"; then
4809           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4810        else
4811           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4812        fi
4813        if test -z "$ac_extra"; then
4814           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4815        else
4816           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4817        fi
4818      else
4819        ac_cv_f77_mangling="unknown"
4820      fi
4821  else
4822     ac_cv_f77_mangling="unknown"
4823  fi
4824
4825  LIBS=$ac_save_LIBS
4826  rm -f cfortran_test* conftest*
4827else
4828  echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4832See \`config.log' for more details." >&5
4833echo "$as_me: error: cannot compile a simple Fortran program
4834See \`config.log' for more details." >&2;}
4835   { (exit 1); exit 1; }; }
4836fi
4837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4838
4839fi
4840echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4841echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4842
4843ac_ext=f
4844ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4845ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4847
4848ac_ext=f
4849ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4850ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4852
4853
4854case $ac_cv_f77_mangling in
4855  "lower case, no underscore, no extra underscore")
4856          cat >>confdefs.h <<\_ACEOF
4857#define F77_FUNC(name,NAME) name
4858_ACEOF
4859
4860          cat >>confdefs.h <<\_ACEOF
4861#define F77_FUNC_(name,NAME) name
4862_ACEOF
4863 ;;
4864  "lower case, no underscore, extra underscore")
4865          cat >>confdefs.h <<\_ACEOF
4866#define F77_FUNC(name,NAME) name
4867_ACEOF
4868
4869          cat >>confdefs.h <<\_ACEOF
4870#define F77_FUNC_(name,NAME) name ## _
4871_ACEOF
4872 ;;
4873  "lower case, underscore, no extra underscore")
4874          cat >>confdefs.h <<\_ACEOF
4875#define F77_FUNC(name,NAME) name ## _
4876_ACEOF
4877
4878          cat >>confdefs.h <<\_ACEOF
4879#define F77_FUNC_(name,NAME) name ## _
4880_ACEOF
4881 ;;
4882  "lower case, underscore, extra underscore")
4883          cat >>confdefs.h <<\_ACEOF
4884#define F77_FUNC(name,NAME) name ## _
4885_ACEOF
4886
4887          cat >>confdefs.h <<\_ACEOF
4888#define F77_FUNC_(name,NAME) name ## __
4889_ACEOF
4890 ;;
4891  "upper case, no underscore, no extra underscore")
4892          cat >>confdefs.h <<\_ACEOF
4893#define F77_FUNC(name,NAME) NAME
4894_ACEOF
4895
4896          cat >>confdefs.h <<\_ACEOF
4897#define F77_FUNC_(name,NAME) NAME
4898_ACEOF
4899 ;;
4900  "upper case, no underscore, extra underscore")
4901          cat >>confdefs.h <<\_ACEOF
4902#define F77_FUNC(name,NAME) NAME
4903_ACEOF
4904
4905          cat >>confdefs.h <<\_ACEOF
4906#define F77_FUNC_(name,NAME) NAME ## _
4907_ACEOF
4908 ;;
4909  "upper case, underscore, no extra underscore")
4910          cat >>confdefs.h <<\_ACEOF
4911#define F77_FUNC(name,NAME) NAME ## _
4912_ACEOF
4913
4914          cat >>confdefs.h <<\_ACEOF
4915#define F77_FUNC_(name,NAME) NAME ## _
4916_ACEOF
4917 ;;
4918  "upper case, underscore, extra underscore")
4919          cat >>confdefs.h <<\_ACEOF
4920#define F77_FUNC(name,NAME) NAME ## _
4921_ACEOF
4922
4923          cat >>confdefs.h <<\_ACEOF
4924#define F77_FUNC_(name,NAME) NAME ## __
4925_ACEOF
4926 ;;
4927  *)
4928          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4929echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4930          ;;
4931esac
4932
4933ac_ext=f
4934ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4935ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4937
4938
4939case $build in
4940# The following is a fix to define FLIBS for ifort on Windows
4941   *-cygwin*)
4942     case $F77 in
4943       ifort | */ifort)
4944           FLIBS="libifcorert.lib libcmt.lib /link /NODEFAULTLIB:libc.lib $LIBS";;
4945     esac;;
4946   *-hp-*)
4947       FLIBS="$FLIBS -lm";;
4948   *-ibm-*)
4949       FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4950   *-linux-*)
4951     case "$F77" in
4952       pgf77 | */pgf77 | pgf90 | */pgf90)
4953# ask linker to go through the archives multiple times
4954# (the Fortran compiler seems to do that automatically...
4955         FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4956     esac
4957esac
4958
4959ac_ext=c
4960ac_cpp='$CPP $CPPFLAGS'
4961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964
4965
4966if test -n "$ac_tool_prefix"; then
4967  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4968set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4969echo "$as_me:$LINENO: checking for $ac_word" >&5
4970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971if test "${ac_cv_prog_RANLIB+set}" = set; then
4972  echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974  if test -n "$RANLIB"; then
4975  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980  IFS=$as_save_IFS
4981  test -z "$as_dir" && as_dir=.
4982  for ac_exec_ext in '' $ac_executable_extensions; do
4983  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4985    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986    break 2
4987  fi
4988done
4989done
4990
4991fi
4992fi
4993RANLIB=$ac_cv_prog_RANLIB
4994if test -n "$RANLIB"; then
4995  echo "$as_me:$LINENO: result: $RANLIB" >&5
4996echo "${ECHO_T}$RANLIB" >&6
4997else
4998  echo "$as_me:$LINENO: result: no" >&5
4999echo "${ECHO_T}no" >&6
5000fi
5001
5002fi
5003if test -z "$ac_cv_prog_RANLIB"; then
5004  ac_ct_RANLIB=$RANLIB
5005  # Extract the first word of "ranlib", so it can be a program name with args.
5006set dummy ranlib; ac_word=$2
5007echo "$as_me:$LINENO: checking for $ac_word" >&5
5008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5010  echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012  if test -n "$ac_ct_RANLIB"; then
5013  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5014else
5015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016for as_dir in $PATH
5017do
5018  IFS=$as_save_IFS
5019  test -z "$as_dir" && as_dir=.
5020  for ac_exec_ext in '' $ac_executable_extensions; do
5021  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022    ac_cv_prog_ac_ct_RANLIB="ranlib"
5023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024    break 2
5025  fi
5026done
5027done
5028
5029  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5030fi
5031fi
5032ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5033if test -n "$ac_ct_RANLIB"; then
5034  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5035echo "${ECHO_T}$ac_ct_RANLIB" >&6
5036else
5037  echo "$as_me:$LINENO: result: no" >&5
5038echo "${ECHO_T}no" >&6
5039fi
5040
5041  RANLIB=$ac_ct_RANLIB
5042else
5043  RANLIB="$ac_cv_prog_RANLIB"
5044fi
5045
5046
5047
5048
5049echo "$as_me:$LINENO: checking whether ln -s works" >&5
5050echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5051LN_S=$as_ln_s
5052if test "$LN_S" = "ln -s"; then
5053  echo "$as_me:$LINENO: result: yes" >&5
5054echo "${ECHO_T}yes" >&6
5055else
5056  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5057echo "${ECHO_T}no, using $LN_S" >&6
5058fi
5059
5060
5061# Stuff for automake
5062am__api_version="1.9"
5063# Find a good install program.  We prefer a C program (faster),
5064# so one script is as good as another.  But avoid the broken or
5065# incompatible versions:
5066# SysV /etc/install, /usr/sbin/install
5067# SunOS /usr/etc/install
5068# IRIX /sbin/install
5069# AIX /bin/install
5070# AmigaOS /C/install, which installs bootblocks on floppy discs
5071# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5072# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5073# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5074# OS/2's system install, which has a completely different semantic
5075# ./install, which can be erroneously created by make from ./install.sh.
5076echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5077echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5078if test -z "$INSTALL"; then
5079if test "${ac_cv_path_install+set}" = set; then
5080  echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085  IFS=$as_save_IFS
5086  test -z "$as_dir" && as_dir=.
5087  # Account for people who put trailing slashes in PATH elements.
5088case $as_dir/ in
5089  ./ | .// | /cC/* | \
5090  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5091  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5092  /usr/ucb/* ) ;;
5093  *)
5094    # OSF1 and SCO ODT 3.0 have their own names for install.
5095    # Don't use installbsd from OSF since it installs stuff as root
5096    # by default.
5097    for ac_prog in ginstall scoinst install; do
5098      for ac_exec_ext in '' $ac_executable_extensions; do
5099        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5100          if test $ac_prog = install &&
5101            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5102            # AIX install.  It has an incompatible calling convention.
5103            :
5104          elif test $ac_prog = install &&
5105            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5106            # program-specific install script used by HP pwplus--don't use.
5107            :
5108          else
5109            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5110            break 3
5111          fi
5112        fi
5113      done
5114    done
5115    ;;
5116esac
5117done
5118
5119
5120fi
5121  if test "${ac_cv_path_install+set}" = set; then
5122    INSTALL=$ac_cv_path_install
5123  else
5124    # As a last resort, use the slow shell script.  We don't cache a
5125    # path for INSTALL within a source directory, because that will
5126    # break other packages using the cache if that directory is
5127    # removed, or if the path is relative.
5128    INSTALL=$ac_install_sh
5129  fi
5130fi
5131echo "$as_me:$LINENO: result: $INSTALL" >&5
5132echo "${ECHO_T}$INSTALL" >&6
5133
5134# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5135# It thinks the first close brace ends the variable substitution.
5136test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5137
5138test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5139
5140test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5141
5142echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5143echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5144# Just in case
5145sleep 1
5146echo timestamp > conftest.file
5147# Do `set' in a subshell so we don't clobber the current shell's
5148# arguments.  Must try -L first in case configure is actually a
5149# symlink; some systems play weird games with the mod time of symlinks
5150# (eg FreeBSD returns the mod time of the symlink's containing
5151# directory).
5152if (
5153   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5154   if test "$*" = "X"; then
5155      # -L didn't work.
5156      set X `ls -t $srcdir/configure conftest.file`
5157   fi
5158   rm -f conftest.file
5159   if test "$*" != "X $srcdir/configure conftest.file" \
5160      && test "$*" != "X conftest.file $srcdir/configure"; then
5161
5162      # If neither matched, then we have a broken ls.  This can happen
5163      # if, for instance, CONFIG_SHELL is bash and it inherits a
5164      # broken ls alias from the environment.  This has actually
5165      # happened.  Such a system could not be considered "sane".
5166      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5167alias in your environment" >&5
5168echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5169alias in your environment" >&2;}
5170   { (exit 1); exit 1; }; }
5171   fi
5172
5173   test "$2" = conftest.file
5174   )
5175then
5176   # Ok.
5177   :
5178else
5179   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5180Check your system clock" >&5
5181echo "$as_me: error: newly created file is older than distributed files!
5182Check your system clock" >&2;}
5183   { (exit 1); exit 1; }; }
5184fi
5185echo "$as_me:$LINENO: result: yes" >&5
5186echo "${ECHO_T}yes" >&6
5187test "$program_prefix" != NONE &&
5188  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5189# Use a double $ so make ignores it.
5190test "$program_suffix" != NONE &&
5191  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5192# Double any \ or $.  echo might interpret backslashes.
5193# By default was `s,x,x', remove it if useless.
5194cat <<\_ACEOF >conftest.sed
5195s/[\\$]/&&/g;s/;s,x,x,$//
5196_ACEOF
5197program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5198rm conftest.sed
5199
5200# expand $ac_aux_dir to an absolute path
5201am_aux_dir=`cd $ac_aux_dir && pwd`
5202
5203test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5204# Use eval to expand $SHELL
5205if eval "$MISSING --run true"; then
5206  am_missing_run="$MISSING --run "
5207else
5208  am_missing_run=
5209  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5210echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5211fi
5212
5213if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5214  # We used to keeping the `.' as first argument, in order to
5215  # allow $(mkdir_p) to be used without argument.  As in
5216  #   $(mkdir_p) $(somedir)
5217  # where $(somedir) is conditionally defined.  However this is wrong
5218  # for two reasons:
5219  #  1. if the package is installed by a user who cannot write `.'
5220  #     make install will fail,
5221  #  2. the above comment should most certainly read
5222  #     $(mkdir_p) $(DESTDIR)$(somedir)
5223  #     so it does not work when $(somedir) is undefined and
5224  #     $(DESTDIR) is not.
5225  #  To support the latter case, we have to write
5226  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5227  #  so the `.' trick is pointless.
5228  mkdir_p='mkdir -p --'
5229else
5230  # On NextStep and OpenStep, the `mkdir' command does not
5231  # recognize any option.  It will interpret all options as
5232  # directories to create, and then abort because `.' already
5233  # exists.
5234  for d in ./-p ./--version;
5235  do
5236    test -d $d && rmdir $d
5237  done
5238  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5239  if test -f "$ac_aux_dir/mkinstalldirs"; then
5240    mkdir_p='$(mkinstalldirs)'
5241  else
5242    mkdir_p='$(install_sh) -d'
5243  fi
5244fi
5245
5246for ac_prog in gawk mawk nawk awk
5247do
5248  # Extract the first word of "$ac_prog", so it can be a program name with args.
5249set dummy $ac_prog; ac_word=$2
5250echo "$as_me:$LINENO: checking for $ac_word" >&5
5251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5252if test "${ac_cv_prog_AWK+set}" = set; then
5253  echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255  if test -n "$AWK"; then
5256  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5257else
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  test -z "$as_dir" && as_dir=.
5263  for ac_exec_ext in '' $ac_executable_extensions; do
5264  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265    ac_cv_prog_AWK="$ac_prog"
5266    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267    break 2
5268  fi
5269done
5270done
5271
5272fi
5273fi
5274AWK=$ac_cv_prog_AWK
5275if test -n "$AWK"; then
5276  echo "$as_me:$LINENO: result: $AWK" >&5
5277echo "${ECHO_T}$AWK" >&6
5278else
5279  echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
5281fi
5282
5283  test -n "$AWK" && break
5284done
5285
5286echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5287echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5288set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5289if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5290  echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292  cat >conftest.make <<\_ACEOF
5293all:
5294        @echo 'ac_maketemp="$(MAKE)"'
5295_ACEOF
5296# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5297eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5298if test -n "$ac_maketemp"; then
5299  eval ac_cv_prog_make_${ac_make}_set=yes
5300else
5301  eval ac_cv_prog_make_${ac_make}_set=no
5302fi
5303rm -f conftest.make
5304fi
5305if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5306  echo "$as_me:$LINENO: result: yes" >&5
5307echo "${ECHO_T}yes" >&6
5308  SET_MAKE=
5309else
5310  echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312  SET_MAKE="MAKE=${MAKE-make}"
5313fi
5314
5315rm -rf .tst 2>/dev/null
5316mkdir .tst 2>/dev/null
5317if test -d .tst; then
5318  am__leading_dot=.
5319else
5320  am__leading_dot=_
5321fi
5322rmdir .tst 2>/dev/null
5323
5324DEPDIR="${am__leading_dot}deps"
5325
5326          ac_config_commands="$ac_config_commands depfiles"
5327
5328
5329am_make=${MAKE-make}
5330cat > confinc << 'END'
5331am__doit:
5332        @echo done
5333.PHONY: am__doit
5334END
5335# If we don't find an include directive, just comment out the code.
5336echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5337echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5338am__include="#"
5339am__quote=
5340_am_result=none
5341# First try GNU make style include.
5342echo "include confinc" > confmf
5343# We grep out `Entering directory' and `Leaving directory'
5344# messages which can occur if `w' ends up in MAKEFLAGS.
5345# In particular we don't look at `^make:' because GNU make might
5346# be invoked under some other name (usually "gmake"), in which
5347# case it prints its new name instead of `make'.
5348if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5349   am__include=include
5350   am__quote=
5351   _am_result=GNU
5352fi
5353# Now try BSD make style include.
5354if test "$am__include" = "#"; then
5355   echo '.include "confinc"' > confmf
5356   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5357      am__include=.include
5358      am__quote="\""
5359      _am_result=BSD
5360   fi
5361fi
5362
5363
5364echo "$as_me:$LINENO: result: $_am_result" >&5
5365echo "${ECHO_T}$_am_result" >&6
5366rm -f confinc confmf
5367
5368# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5369if test "${enable_dependency_tracking+set}" = set; then
5370  enableval="$enable_dependency_tracking"
5371
5372fi;
5373if test "x$enable_dependency_tracking" != xno; then
5374  am_depcomp="$ac_aux_dir/depcomp"
5375  AMDEPBACKSLASH='\'
5376fi
5377
5378
5379if test "x$enable_dependency_tracking" != xno; then
5380  AMDEP_TRUE=
5381  AMDEP_FALSE='#'
5382else
5383  AMDEP_TRUE='#'
5384  AMDEP_FALSE=
5385fi
5386
5387
5388
5389# test to see if srcdir already configured
5390if test "`cd $srcdir && pwd`" != "`pwd`" &&
5391   test -f $srcdir/config.status; then
5392  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5393echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5394   { (exit 1); exit 1; }; }
5395fi
5396
5397# test whether we have cygpath
5398if test -z "$CYGPATH_W"; then
5399  if (cygpath --version) >/dev/null 2>/dev/null; then
5400    CYGPATH_W='cygpath -w'
5401  else
5402    CYGPATH_W=echo
5403  fi
5404fi
5405
5406
5407# Define the identity of the package.
5408 PACKAGE='ipopt'
5409 VERSION='3.0.0'
5410
5411
5412cat >>confdefs.h <<_ACEOF
5413#define PACKAGE "$PACKAGE"
5414_ACEOF
5415
5416
5417cat >>confdefs.h <<_ACEOF
5418#define VERSION "$VERSION"
5419_ACEOF
5420
5421# Some tools Automake needs.
5422
5423ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5424
5425
5426AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5427
5428
5429AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5430
5431
5432AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5433
5434
5435MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5436
5437install_sh=${install_sh-"$am_aux_dir/install-sh"}
5438
5439# Installed binaries are usually stripped using `strip' when the user
5440# run `make install-strip'.  However `strip' might not be the right
5441# tool to use in cross-compilation environments, therefore Automake
5442# will honor the `STRIP' environment variable to overrule this program.
5443if test "$cross_compiling" != no; then
5444  if test -n "$ac_tool_prefix"; then
5445  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5446set dummy ${ac_tool_prefix}strip; ac_word=$2
5447echo "$as_me:$LINENO: checking for $ac_word" >&5
5448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449if test "${ac_cv_prog_STRIP+set}" = set; then
5450  echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452  if test -n "$STRIP"; then
5453  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5454else
5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456for as_dir in $PATH
5457do
5458  IFS=$as_save_IFS
5459  test -z "$as_dir" && as_dir=.
5460  for ac_exec_ext in '' $ac_executable_extensions; do
5461  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464    break 2
5465  fi
5466done
5467done
5468
5469fi
5470fi
5471STRIP=$ac_cv_prog_STRIP
5472if test -n "$STRIP"; then
5473  echo "$as_me:$LINENO: result: $STRIP" >&5
5474echo "${ECHO_T}$STRIP" >&6
5475else
5476  echo "$as_me:$LINENO: result: no" >&5
5477echo "${ECHO_T}no" >&6
5478fi
5479
5480fi
5481if test -z "$ac_cv_prog_STRIP"; then
5482  ac_ct_STRIP=$STRIP
5483  # Extract the first word of "strip", so it can be a program name with args.
5484set dummy strip; ac_word=$2
5485echo "$as_me:$LINENO: checking for $ac_word" >&5
5486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5488  echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490  if test -n "$ac_ct_STRIP"; then
5491  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496  IFS=$as_save_IFS
5497  test -z "$as_dir" && as_dir=.
5498  for ac_exec_ext in '' $ac_executable_extensions; do
5499  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500    ac_cv_prog_ac_ct_STRIP="strip"
5501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502    break 2
5503  fi
5504done
5505done
5506
5507  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5508fi
5509fi
5510ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5511if test -n "$ac_ct_STRIP"; then
5512  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5513echo "${ECHO_T}$ac_ct_STRIP" >&6
5514else
5515  echo "$as_me:$LINENO: result: no" >&5
5516echo "${ECHO_T}no" >&6
5517fi
5518
5519  STRIP=$ac_ct_STRIP
5520else
5521  STRIP="$ac_cv_prog_STRIP"
5522fi
5523
5524fi
5525INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5526
5527# We need awk for the "check" target.  The system "awk" is bad on
5528# some platforms.
5529# Always define AMTAR for backward compatibility.
5530
5531AMTAR=${AMTAR-"${am_missing_run}tar"}
5532
5533am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5534
5535
5536
5537
5538depcc="$CC"   am_compiler_list=
5539
5540echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5541echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5542if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5543  echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5546  # We make a subdir and do the tests there.  Otherwise we can end up
5547  # making bogus files that we don't know about and never remove.  For
5548  # instance it was reported that on HP-UX the gcc test will end up
5549  # making a dummy file named `D' -- because `-MD' means `put the output
5550  # in D'.
5551  mkdir conftest.dir
5552  # Copy depcomp to subdir because otherwise we won't find it if we're
5553  # using a relative directory.
5554  cp "$am_depcomp" conftest.dir
5555  cd conftest.dir
5556  # We will build objects and dependencies in a subdirectory because
5557  # it helps to detect inapplicable dependency modes.  For instance
5558  # both Tru64's cc and ICC support -MD to output dependencies as a
5559  # side effect of compilation, but ICC will put the dependencies in
5560  # the current directory while Tru64 will put them in the object
5561  # directory.
5562  mkdir sub
5563
5564  am_cv_CC_dependencies_compiler_type=none
5565  if test "$am_compiler_list" = ""; then
5566     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5567  fi
5568  for depmode in $am_compiler_list; do
5569    # Setup a source with many dependencies, because some compilers
5570    # like to wrap large dependency lists on column 80 (with \), and
5571    # we should not choose a depcomp mode which is confused by this.
5572    #
5573    # We need to recreate these files for each test, as the compiler may
5574    # overwrite some of them when testing with obscure command lines.
5575    # This happens at least with the AIX C compiler.
5576    : > sub/conftest.c
5577    for i in 1 2 3 4 5 6; do
5578      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5579      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5580      # Solaris 8's {/usr,}/bin/sh.
5581      touch sub/conftst$i.h
5582    done
5583    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5584
5585    case $depmode in
5586    nosideeffect)
5587      # after this tag, mechanisms are not by side-effect, so they'll
5588      # only be used when explicitly requested
5589      if test "x$enable_dependency_tracking" = xyes; then
5590        continue
5591      else
5592        break
5593      fi
5594      ;;
5595    none) break ;;
5596    esac
5597    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5598    # mode.  It turns out that the SunPro C++ compiler does not properly
5599    # handle `-M -o', and we need to detect this.
5600    if depmode=$depmode \
5601       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5602       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5603       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5604         >/dev/null 2>conftest.err &&
5605       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5606       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5607       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5608      # icc doesn't choke on unknown options, it will just issue warnings
5609      # or remarks (even with -Werror).  So we grep stderr for any message
5610      # that says an option was ignored or not supported.
5611      # When given -MP, icc 7.0 and 7.1 complain thusly:
5612      #   icc: Command line warning: ignoring option '-M'; no argument required
5613      # The diagnosis changed in icc 8.0:
5614      #   icc: Command line remark: option '-MP' not supported
5615      if (grep 'ignoring option' conftest.err ||
5616          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5617        am_cv_CC_dependencies_compiler_type=$depmode
5618        break
5619      fi
5620    fi
5621  done
5622
5623  cd ..
5624  rm -rf conftest.dir
5625else
5626  am_cv_CC_dependencies_compiler_type=none
5627fi
5628
5629fi
5630echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5631echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5632CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5633
5634
5635
5636if
5637  test "x$enable_dependency_tracking" != xno \
5638  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5639  am__fastdepCC_TRUE=
5640  am__fastdepCC_FALSE='#'
5641else
5642  am__fastdepCC_TRUE='#'
5643  am__fastdepCC_FALSE=
5644fi
5645
5646
5647depcc="$CXX"  am_compiler_list=
5648
5649echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5650echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5651if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5652  echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5655  # We make a subdir and do the tests there.  Otherwise we can end up
5656  # making bogus files that we don't know about and never remove.  For
5657  # instance it was reported that on HP-UX the gcc test will end up
5658  # making a dummy file named `D' -- because `-MD' means `put the output
5659  # in D'.
5660  mkdir conftest.dir
5661  # Copy depcomp to subdir because otherwise we won't find it if we're
5662  # using a relative directory.
5663  cp "$am_depcomp" conftest.dir
5664  cd conftest.dir
5665  # We will build objects and dependencies in a subdirectory because
5666  # it helps to detect inapplicable dependency modes.  For instance
5667  # both Tru64's cc and ICC support -MD to output dependencies as a
5668  # side effect of compilation, but ICC will put the dependencies in
5669  # the current directory while Tru64 will put them in the object
5670  # directory.
5671  mkdir sub
5672
5673  am_cv_CXX_dependencies_compiler_type=none
5674  if test "$am_compiler_list" = ""; then
5675     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5676  fi
5677  for depmode in $am_compiler_list; do
5678    # Setup a source with many dependencies, because some compilers
5679    # like to wrap large dependency lists on column 80 (with \), and
5680    # we should not choose a depcomp mode which is confused by this.
5681    #
5682    # We need to recreate these files for each test, as the compiler may
5683    # overwrite some of them when testing with obscure command lines.
5684    # This happens at least with the AIX C compiler.
5685    : > sub/conftest.c
5686    for i in 1 2 3 4 5 6; do
5687      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5688      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5689      # Solaris 8's {/usr,}/bin/sh.
5690      touch sub/conftst$i.h
5691    done
5692    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5693
5694    case $depmode in
5695    nosideeffect)
5696      # after this tag, mechanisms are not by side-effect, so they'll
5697      # only be used when explicitly requested
5698      if test "x$enable_dependency_tracking" = xyes; then
5699        continue
5700      else
5701        break
5702      fi
5703      ;;
5704    none) break ;;
5705    esac
5706    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5707    # mode.  It turns out that the SunPro C++ compiler does not properly
5708    # handle `-M -o', and we need to detect this.
5709    if depmode=$depmode \
5710       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5711       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5712       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5713         >/dev/null 2>conftest.err &&
5714       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5715       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5716       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5717      # icc doesn't choke on unknown options, it will just issue warnings
5718      # or remarks (even with -Werror).  So we grep stderr for any message
5719      # that says an option was ignored or not supported.
5720      # When given -MP, icc 7.0 and 7.1 complain thusly:
5721      #   icc: Command line warning: ignoring option '-M'; no argument required
5722      # The diagnosis changed in icc 8.0:
5723      #   icc: Command line remark: option '-MP' not supported
5724      if (grep 'ignoring option' conftest.err ||
5725          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5726        am_cv_CXX_dependencies_compiler_type=$depmode
5727        break
5728      fi
5729    fi
5730  done
5731
5732  cd ..
5733  rm -rf conftest.dir
5734else
5735  am_cv_CXX_dependencies_compiler_type=none
5736fi
5737
5738fi
5739echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5740echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5741CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5742
5743
5744
5745if
5746  test "x$enable_dependency_tracking" != xno \
5747  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5748  am__fastdepCXX_TRUE=
5749  am__fastdepCXX_FALSE='#'
5750else
5751  am__fastdepCXX_TRUE='#'
5752  am__fastdepCXX_FALSE=
5753fi
5754
5755
5756
5757echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5758echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5759    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5760if test "${enable_maintainer_mode+set}" = set; then
5761  enableval="$enable_maintainer_mode"
5762  USE_MAINTAINER_MODE=$enableval
5763else
5764  USE_MAINTAINER_MODE=no
5765fi;
5766  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5767echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5768
5769
5770if test $USE_MAINTAINER_MODE = yes; then
5771  MAINTAINER_MODE_TRUE=
5772  MAINTAINER_MODE_FALSE='#'
5773else
5774  MAINTAINER_MODE_TRUE='#'
5775  MAINTAINER_MODE_FALSE=
5776fi
5777
5778  MAINT=$MAINTAINER_MODE_TRUE
5779
5780
5781
5782############################################################################
5783############################################################################
5784#                   Stuff that we need for C++ programs                    #
5785############################################################################
5786############################################################################
5787
5788ac_ext=cc
5789ac_cpp='$CXXCPP $CPPFLAGS'
5790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5793
5794
5795################
5796# Header Files #
5797################
5798
5799
5800
5801ac_ext=cc
5802ac_cpp='$CXXCPP $CPPFLAGS'
5803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5806echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5807echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5808if test -z "$CXXCPP"; then
5809  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5810  echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812      # Double quotes because CXXCPP needs to be expanded
5813    for CXXCPP in "$CXX -E" "/lib/cpp"
5814    do
5815      ac_preproc_ok=false
5816for ac_cxx_preproc_warn_flag in '' yes
5817do
5818  # Use a header file that comes with gcc, so configuring glibc
5819  # with a fresh cross-compiler works.
5820  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5821  # <limits.h> exists even on freestanding compilers.
5822  # On the NeXT, cc -E runs the code through the compiler's parser,
5823  # not just through cpp. "Syntax error" is here to catch this case.
5824  cat >conftest.$ac_ext <<_ACEOF
5825/* confdefs.h.  */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h.  */
5830#ifdef __STDC__
5831# include <limits.h>
5832#else
5833# include <assert.h>
5834#endif
5835                     Syntax error
5836_ACEOF
5837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5838  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5839  ac_status=$?
5840  grep -v '^ *+' conftest.er1 >conftest.err
5841  rm -f conftest.er1
5842  cat conftest.err >&5
5843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844  (exit $ac_status); } >/dev/null; then
5845  if test -s conftest.err; then
5846    ac_cpp_err=$ac_cxx_preproc_warn_flag
5847    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5848  else
5849    ac_cpp_err=
5850  fi
5851else
5852  ac_cpp_err=yes
5853fi
5854if test -z "$ac_cpp_err"; then
5855  :
5856else
5857  echo "$as_me: failed program was:" >&5
5858sed 's/^/| /' conftest.$ac_ext >&5
5859
5860  # Broken: fails on valid input.
5861continue
5862fi
5863rm -f conftest.err conftest.$ac_ext
5864
5865  # OK, works on sane cases.  Now check whether non-existent headers
5866  # can be detected and how.
5867  cat >conftest.$ac_ext <<_ACEOF
5868/* confdefs.h.  */
5869_ACEOF
5870cat confdefs.h >>conftest.$ac_ext
5871cat >>conftest.$ac_ext <<_ACEOF
5872/* end confdefs.h.  */
5873#include <ac_nonexistent.h>
5874_ACEOF
5875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5876  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5877  ac_status=$?
5878  grep -v '^ *+' conftest.er1 >conftest.err
5879  rm -f conftest.er1
5880  cat conftest.err >&5
5881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882  (exit $ac_status); } >/dev/null; then
5883  if test -s conftest.err; then
5884    ac_cpp_err=$ac_cxx_preproc_warn_flag
5885    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5886  else
5887    ac_cpp_err=
5888  fi
5889else
5890  ac_cpp_err=yes
5891fi
5892if test -z "$ac_cpp_err"; then
5893  # Broken: success on invalid input.
5894continue
5895else
5896  echo "$as_me: failed program was:" >&5
5897sed 's/^/| /' conftest.$ac_ext >&5
5898
5899  # Passes both tests.
5900ac_preproc_ok=:
5901break
5902fi
5903rm -f conftest.err conftest.$ac_ext
5904
5905done
5906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5907rm -f conftest.err conftest.$ac_ext
5908if $ac_preproc_ok; then
5909  break
5910fi
5911
5912    done
5913    ac_cv_prog_CXXCPP=$CXXCPP
5914
5915fi
5916  CXXCPP=$ac_cv_prog_CXXCPP
5917else
5918  ac_cv_prog_CXXCPP=$CXXCPP
5919fi
5920echo "$as_me:$LINENO: result: $CXXCPP" >&5
5921echo "${ECHO_T}$CXXCPP" >&6
5922ac_preproc_ok=false
5923for ac_cxx_preproc_warn_flag in '' yes
5924do
5925  # Use a header file that comes with gcc, so configuring glibc
5926  # with a fresh cross-compiler works.
5927  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5928  # <limits.h> exists even on freestanding compilers.
5929  # On the NeXT, cc -E runs the code through the compiler's parser,
5930  # not just through cpp. "Syntax error" is here to catch this case.
5931  cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h.  */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h.  */
5937#ifdef __STDC__
5938# include <limits.h>
5939#else
5940# include <assert.h>
5941#endif
5942                     Syntax error
5943_ACEOF
5944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5945  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5946  ac_status=$?
5947  grep -v '^ *+' conftest.er1 >conftest.err
5948  rm -f conftest.er1
5949  cat conftest.err >&5
5950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951  (exit $ac_status); } >/dev/null; then
5952  if test -s conftest.err; then
5953    ac_cpp_err=$ac_cxx_preproc_warn_flag
5954    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5955  else
5956    ac_cpp_err=
5957  fi
5958else
5959  ac_cpp_err=yes
5960fi
5961if test -z "$ac_cpp_err"; then
5962  :
5963else
5964  echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
5967  # Broken: fails on valid input.
5968continue
5969fi
5970rm -f conftest.err conftest.$ac_ext
5971
5972  # OK, works on sane cases.  Now check whether non-existent headers
5973  # can be detected and how.
5974  cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h.  */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h.  */
5980#include <ac_nonexistent.h>
5981_ACEOF
5982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5983  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5984  ac_status=$?
5985  grep -v '^ *+' conftest.er1 >conftest.err
5986  rm -f conftest.er1
5987  cat conftest.err >&5
5988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); } >/dev/null; then
5990  if test -s conftest.err; then
5991    ac_cpp_err=$ac_cxx_preproc_warn_flag
5992    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5993  else
5994    ac_cpp_err=
5995  fi
5996else
5997  ac_cpp_err=yes
5998fi
5999if test -z "$ac_cpp_err"; then
6000  # Broken: success on invalid input.
6001continue
6002else
6003  echo "$as_me: failed program was:" >&5
6004sed 's/^/| /' conftest.$ac_ext >&5
6005
6006  # Passes both tests.
6007ac_preproc_ok=:
6008break
6009fi
6010rm -f conftest.err conftest.$ac_ext
6011
6012done
6013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6014rm -f conftest.err conftest.$ac_ext
6015if $ac_preproc_ok; then
6016  :
6017else
6018  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6019See \`config.log' for more details." >&5
6020echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6021See \`config.log' for more details." >&2;}
6022   { (exit 1); exit 1; }; }
6023fi
6024
6025ac_ext=cc
6026ac_cpp='$CXXCPP $CPPFLAGS'
6027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6030
6031
6032echo "$as_me:$LINENO: checking for egrep" >&5
6033echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6034if test "${ac_cv_prog_egrep+set}" = set; then
6035  echo $ECHO_N "(cached) $ECHO_C" >&6
6036else
6037  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6038    then ac_cv_prog_egrep='grep -E'
6039    else ac_cv_prog_egrep='egrep'
6040    fi
6041fi
6042echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6043echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6044 EGREP=$ac_cv_prog_egrep
6045
6046
6047echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6048echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6049if test "${ac_cv_header_stdc+set}" = set; then
6050  echo $ECHO_N "(cached) $ECHO_C" >&6
6051else
6052  cat >conftest.$ac_ext <<_ACEOF
6053/* confdefs.h.  */
6054_ACEOF
6055cat confdefs.h >>conftest.$ac_ext
6056cat >>conftest.$ac_ext <<_ACEOF
6057/* end confdefs.h.  */
6058#include <stdlib.h>
6059#include <stdarg.h>
6060#include <string.h>
6061#include <float.h>
6062
6063#ifdef F77_DUMMY_MAIN
6064
6065#  ifdef __cplusplus
6066     extern "C"
6067#  endif
6068   int F77_DUMMY_MAIN() { return 1; }
6069
6070#endif
6071int
6072main ()
6073{
6074
6075  ;
6076  return 0;
6077}
6078_ACEOF
6079rm -f conftest.$ac_objext
6080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081  (eval $ac_compile) 2>conftest.er1
6082  ac_status=$?
6083  grep -v '^ *+' conftest.er1 >conftest.err
6084  rm -f conftest.er1
6085  cat conftest.err >&5
6086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087  (exit $ac_status); } &&
6088         { ac_try='test -z "$ac_cxx_werror_flag"
6089                         || test ! -s conftest.err'
6090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091  (eval $ac_try) 2>&5
6092  ac_status=$?
6093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094  (exit $ac_status); }; } &&
6095         { ac_try='test -s conftest.$ac_objext'
6096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097  (eval $ac_try) 2>&5
6098  ac_status=$?
6099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100  (exit $ac_status); }; }; then
6101  ac_cv_header_stdc=yes
6102else
6103  echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
6105
6106ac_cv_header_stdc=no
6107fi
6108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6109
6110if test $ac_cv_header_stdc = yes; then
6111  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6112  cat >conftest.$ac_ext <<_ACEOF
6113/* confdefs.h.  */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h.  */
6118#include <string.h>
6119
6120_ACEOF
6121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122  $EGREP "memchr" >/dev/null 2>&1; then
6123  :
6124else
6125  ac_cv_header_stdc=no
6126fi
6127rm -f conftest*
6128
6129fi
6130
6131if test $ac_cv_header_stdc = yes; then
6132  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6133  cat >conftest.$ac_ext <<_ACEOF
6134/* confdefs.h.  */
6135_ACEOF
6136cat confdefs.h >>conftest.$ac_ext
6137cat >>conftest.$ac_ext <<_ACEOF
6138/* end confdefs.h.  */
6139#include <stdlib.h>
6140
6141_ACEOF
6142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6143  $EGREP "free" >/dev/null 2>&1; then
6144  :
6145else
6146  ac_cv_header_stdc=no
6147fi
6148rm -f conftest*
6149
6150fi
6151
6152if test $ac_cv_header_stdc = yes; then
6153  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6154  if test "$cross_compiling" = yes; then
6155  :
6156else
6157  cat >conftest.$ac_ext <<_ACEOF
6158/* confdefs.h.  */
6159_ACEOF
6160cat confdefs.h >>conftest.$ac_ext
6161cat >>conftest.$ac_ext <<_ACEOF
6162/* end confdefs.h.  */
6163#include <ctype.h>
6164#if ((' ' & 0x0FF) == 0x020)
6165# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6166# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6167#else
6168# define ISLOWER(c) \
6169                   (('a' <= (c) && (c) <= 'i') \
6170                     || ('j' <= (c) && (c) <= 'r') \
6171                     || ('s' <= (c) && (c) <= 'z'))
6172# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6173#endif
6174
6175#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6176int
6177main ()
6178{
6179  int i;
6180  for (i = 0; i < 256; i++)
6181    if (XOR (islower (i), ISLOWER (i))
6182        || toupper (i) != TOUPPER (i))
6183      exit(2);
6184  exit (0);
6185}
6186_ACEOF
6187rm -f conftest$ac_exeext
6188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6189  (eval $ac_link) 2>&5
6190  ac_status=$?
6191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194  (eval $ac_try) 2>&5
6195  ac_status=$?
6196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); }; }; then
6198  :
6199else
6200  echo "$as_me: program exited with status $ac_status" >&5
6201echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204( exit $ac_status )
6205ac_cv_header_stdc=no
6206fi
6207rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6208fi
6209fi
6210fi
6211echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6212echo "${ECHO_T}$ac_cv_header_stdc" >&6
6213if test $ac_cv_header_stdc = yes; then
6214
6215cat >>confdefs.h <<\_ACEOF
6216#define STDC_HEADERS 1
6217_ACEOF
6218
6219fi
6220
6221# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6232                  inttypes.h stdint.h unistd.h
6233do
6234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235echo "$as_me:$LINENO: checking for $ac_header" >&5
6236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6237if eval "test \"\${$as_ac_Header+set}\" = set"; then
6238  echo $ECHO_N "(cached) $ECHO_C" >&6
6239else
6240  cat >conftest.$ac_ext <<_ACEOF
6241/* confdefs.h.  */
6242_ACEOF
6243cat confdefs.h >>conftest.$ac_ext
6244cat >>conftest.$ac_ext <<_ACEOF
6245/* end confdefs.h.  */
6246$ac_includes_default
6247
6248#include <$ac_header>
6249_ACEOF
6250rm -f conftest.$ac_objext
6251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252  (eval $ac_compile) 2>conftest.er1
6253  ac_status=$?
6254  grep -v '^ *+' conftest.er1 >conftest.err
6255  rm -f conftest.er1
6256  cat conftest.err >&5
6257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258  (exit $ac_status); } &&
6259         { ac_try='test -z "$ac_cxx_werror_flag"
6260                         || test ! -s conftest.err'
6261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262  (eval $ac_try) 2>&5
6263  ac_status=$?
6264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); }; } &&
6266         { ac_try='test -s conftest.$ac_objext'
6267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268  (eval $ac_try) 2>&5
6269  ac_status=$?
6270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271  (exit $ac_status); }; }; then
6272  eval "$as_ac_Header=yes"
6273else
6274  echo "$as_me: failed program was:" >&5
6275sed 's/^/| /' conftest.$ac_ext >&5
6276
6277eval "$as_ac_Header=no"
6278fi
6279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6280fi
6281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6283if test `eval echo '${'$as_ac_Header'}'` = yes; then
6284  cat >>confdefs.h <<_ACEOF
6285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6286_ACEOF
6287
6288fi
6289
6290done
6291
6292
6293
6294for ac_header in cmath
6295do
6296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6297if eval "test \"\${$as_ac_Header+set}\" = set"; then
6298  echo "$as_me:$LINENO: checking for $ac_header" >&5
6299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6300if eval "test \"\${$as_ac_Header+set}\" = set"; then
6301  echo $ECHO_N "(cached) $ECHO_C" >&6
6302fi
6303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6305else
6306  # Is the header compilable?
6307echo "$as_me:$LINENO: checking $ac_header usability" >&5
6308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6309cat >conftest.$ac_ext <<_ACEOF
6310/* confdefs.h.  */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h.  */
6315$ac_includes_default
6316#include <$ac_header>
6317_ACEOF
6318rm -f conftest.$ac_objext
6319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320  (eval $ac_compile) 2>conftest.er1
6321  ac_status=$?
6322  grep -v '^ *+' conftest.er1 >conftest.err
6323  rm -f conftest.er1
6324  cat conftest.err >&5
6325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326  (exit $ac_status); } &&
6327         { ac_try='test -z "$ac_cxx_werror_flag"
6328                         || test ! -s conftest.err'
6329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330  (eval $ac_try) 2>&5
6331  ac_status=$?
6332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333  (exit $ac_status); }; } &&
6334         { ac_try='test -s conftest.$ac_objext'
6335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336  (eval $ac_try) 2>&5
6337  ac_status=$?
6338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339  (exit $ac_status); }; }; then
6340  ac_header_compiler=yes
6341else
6342  echo "$as_me: failed program was:" >&5
6343sed 's/^/| /' conftest.$ac_ext >&5
6344
6345ac_header_compiler=no
6346fi
6347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6349echo "${ECHO_T}$ac_header_compiler" >&6
6350
6351# Is the header present?
6352echo "$as_me:$LINENO: checking $ac_header presence" >&5
6353echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6354cat >conftest.$ac_ext <<_ACEOF
6355/* confdefs.h.  */
6356_ACEOF
6357cat confdefs.h >>conftest.$ac_ext
6358cat >>conftest.$ac_ext <<_ACEOF
6359/* end confdefs.h.  */
6360#include <$ac_header>
6361_ACEOF
6362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6363  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6364  ac_status=$?
6365  grep -v '^ *+' conftest.er1 >conftest.err
6366  rm -f conftest.er1
6367  cat conftest.err >&5
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); } >/dev/null; then
6370  if test -s conftest.err; then
6371    ac_cpp_err=$ac_cxx_preproc_warn_flag
6372    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6373  else
6374    ac_cpp_err=
6375  fi
6376else
6377  ac_cpp_err=yes
6378fi
6379if test -z "$ac_cpp_err"; then
6380  ac_header_preproc=yes
6381else
6382  echo "$as_me: failed program was:" >&5
6383sed 's/^/| /' conftest.$ac_ext >&5
6384
6385  ac_header_preproc=no
6386fi
6387rm -f conftest.err conftest.$ac_ext
6388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6389echo "${ECHO_T}$ac_header_preproc" >&6
6390
6391# So?  What about this header?
6392case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6393  yes:no: )
6394    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6396    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6398    ac_header_preproc=yes
6399    ;;
6400  no:yes:* )
6401    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6403    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6404echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6405    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6407    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6408echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6409    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6411    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6413    (
6414      cat <<\_ASBOX
6415## ----------------------------------------- ##
6416## Report this to coin-ipopt@www-124.ibm.com ##
6417## ----------------------------------------- ##
6418_ASBOX
6419    ) |
6420      sed "s/^/$as_me: WARNING:     /" >&2
6421    ;;
6422esac
6423echo "$as_me:$LINENO: checking for $ac_header" >&5
6424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6425if eval "test \"\${$as_ac_Header+set}\" = set"; then
6426  echo $ECHO_N "(cached) $ECHO_C" >&6
6427else
6428  eval "$as_ac_Header=\$ac_header_preproc"
6429fi
6430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6432
6433fi
6434if test `eval echo '${'$as_ac_Header'}'` = yes; then
6435  cat >>confdefs.h <<_ACEOF
6436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6437_ACEOF
6438
6439fi
6440
6441done
6442
6443          if test ! "$ac_cv_header_cmath" = "yes"; then
6444
6445for ac_header in math.h
6446do
6447as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6448if eval "test \"\${$as_ac_Header+set}\" = set"; then
6449  echo "$as_me:$LINENO: checking for $ac_header" >&5
6450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6451if eval "test \"\${$as_ac_Header+set}\" = set"; then
6452  echo $ECHO_N "(cached) $ECHO_C" >&6
6453fi
6454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6456else
6457  # Is the header compilable?
6458echo "$as_me:$LINENO: checking $ac_header usability" >&5
6459echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6460cat >conftest.$ac_ext <<_ACEOF
6461/* confdefs.h.  */
6462_ACEOF
6463cat confdefs.h >>conftest.$ac_ext
6464cat >>conftest.$ac_ext <<_ACEOF
6465/* end confdefs.h.  */
6466$ac_includes_default
6467#include <$ac_header>
6468_ACEOF
6469rm -f conftest.$ac_objext
6470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471  (eval $ac_compile) 2>conftest.er1
6472  ac_status=$?
6473  grep -v '^ *+' conftest.er1 >conftest.err
6474  rm -f conftest.er1
6475  cat conftest.err >&5
6476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477  (exit $ac_status); } &&
6478         { ac_try='test -z "$ac_cxx_werror_flag"
6479                         || test ! -s conftest.err'
6480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481  (eval $ac_try) 2>&5
6482  ac_status=$?
6483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484  (exit $ac_status); }; } &&
6485         { ac_try='test -s conftest.$ac_objext'
6486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487  (eval $ac_try) 2>&5
6488  ac_status=$?
6489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); }; }; then
6491  ac_header_compiler=yes
6492else
6493  echo "$as_me: failed program was:" >&5
6494sed 's/^/| /' conftest.$ac_ext >&5
6495
6496ac_header_compiler=no
6497fi
6498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6499echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6500echo "${ECHO_T}$ac_header_compiler" >&6
6501
6502# Is the header present?
6503echo "$as_me:$LINENO: checking $ac_header presence" >&5
6504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6505cat >conftest.$ac_ext <<_ACEOF
6506/* confdefs.h.  */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h.  */
6511#include <$ac_header>
6512_ACEOF
6513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6514  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6515  ac_status=$?
6516  grep -v '^ *+' conftest.er1 >conftest.err
6517  rm -f conftest.er1
6518  cat conftest.err >&5
6519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520  (exit $ac_status); } >/dev/null; then
6521  if test -s conftest.err; then
6522    ac_cpp_err=$ac_cxx_preproc_warn_flag
6523    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6524  else
6525    ac_cpp_err=
6526  fi
6527else
6528  ac_cpp_err=yes
6529fi
6530if test -z "$ac_cpp_err"; then
6531  ac_header_preproc=yes
6532else
6533  echo "$as_me: failed program was:" >&5
6534sed 's/^/| /' conftest.$ac_ext >&5
6535
6536  ac_header_preproc=no
6537fi
6538rm -f conftest.err conftest.$ac_ext
6539echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6540echo "${ECHO_T}$ac_header_preproc" >&6
6541
6542# So?  What about this header?
6543case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6544  yes:no: )
6545    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6546echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6547    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6548echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6549    ac_header_preproc=yes
6550    ;;
6551  no:yes:* )
6552    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6553echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6554    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6555echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6556    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6557echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6558    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6559echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6560    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6562    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6563echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6564    (
6565      cat <<\_ASBOX
6566## ----------------------------------------- ##
6567## Report this to coin-ipopt@www-124.ibm.com ##
6568## ----------------------------------------- ##
6569_ASBOX
6570    ) |
6571      sed "s/^/$as_me: WARNING:     /" >&2
6572    ;;
6573esac
6574echo "$as_me:$LINENO: checking for $ac_header" >&5
6575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6576if eval "test \"\${$as_ac_Header+set}\" = set"; then
6577  echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579  eval "$as_ac_Header=\$ac_header_preproc"
6580fi
6581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6583
6584fi
6585if test `eval echo '${'$as_ac_Header'}'` = yes; then
6586  cat >>confdefs.h <<_ACEOF
6587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6588_ACEOF
6589
6590fi
6591
6592done
6593
6594          fi
6595
6596for ac_header in cctype
6597do
6598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6599if eval "test \"\${$as_ac_Header+set}\" = set"; then
6600  echo "$as_me:$LINENO: checking for $ac_header" >&5
6601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6602if eval "test \"\${$as_ac_Header+set}\" = set"; then
6603  echo $ECHO_N "(cached) $ECHO_C" >&6
6604fi
6605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6607else
6608  # Is the header compilable?
6609echo "$as_me:$LINENO: checking $ac_header usability" >&5
6610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6611cat >conftest.$ac_ext <<_ACEOF
6612/* confdefs.h.  */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
6616/* end confdefs.h.  */
6617$ac_includes_default
6618#include <$ac_header>
6619_ACEOF
6620rm -f conftest.$ac_objext
6621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622  (eval $ac_compile) 2>conftest.er1
6623  ac_status=$?
6624  grep -v '^ *+' conftest.er1 >conftest.err
6625  rm -f conftest.er1
6626  cat conftest.err >&5
6627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628  (exit $ac_status); } &&
6629         { ac_try='test -z "$ac_cxx_werror_flag"
6630                         || test ! -s conftest.err'
6631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632  (eval $ac_try) 2>&5
6633  ac_status=$?
6634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635  (exit $ac_status); }; } &&
6636         { ac_try='test -s conftest.$ac_objext'
6637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638  (eval $ac_try) 2>&5
6639  ac_status=$?
6640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641  (exit $ac_status); }; }; then
6642  ac_header_compiler=yes
6643else
6644  echo "$as_me: failed program was:" >&5
6645sed 's/^/| /' conftest.$ac_ext >&5
6646
6647ac_header_compiler=no
6648fi
6649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6650echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6651echo "${ECHO_T}$ac_header_compiler" >&6
6652
6653# Is the header present?
6654echo "$as_me:$LINENO: checking $ac_header presence" >&5
6655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6656cat >conftest.$ac_ext <<_ACEOF
6657/* confdefs.h.  */
6658_ACEOF
6659cat confdefs.h >>conftest.$ac_ext
6660cat >>conftest.$ac_ext <<_ACEOF
6661/* end confdefs.h.  */
6662#include <$ac_header>
6663_ACEOF
6664if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6665  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6666  ac_status=$?
6667  grep -v '^ *+' conftest.er1 >conftest.err
6668  rm -f conftest.er1
6669  cat conftest.err >&5
6670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671  (exit $ac_status); } >/dev/null; then
6672  if test -s conftest.err; then
6673    ac_cpp_err=$ac_cxx_preproc_warn_flag
6674    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6675  else
6676    ac_cpp_err=
6677  fi
6678else
6679  ac_cpp_err=yes
6680fi
6681if test -z "$ac_cpp_err"; then
6682  ac_header_preproc=yes
6683else
6684  echo "$as_me: failed program was:" >&5
6685sed 's/^/| /' conftest.$ac_ext >&5
6686
6687  ac_header_preproc=no
6688fi
6689rm -f conftest.err conftest.$ac_ext
6690echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6691echo "${ECHO_T}$ac_header_preproc" >&6
6692
6693# So?  What about this header?
6694case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6695  yes:no: )
6696    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6698    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6700    ac_header_preproc=yes
6701    ;;
6702  no:yes:* )
6703    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6705    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6706echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6707    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6709    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6710echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6711    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6713    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6715    (
6716      cat <<\_ASBOX
6717## ----------------------------------------- ##
6718## Report this to coin-ipopt@www-124.ibm.com ##
6719## ----------------------------------------- ##
6720_ASBOX
6721    ) |
6722      sed "s/^/$as_me: WARNING:     /" >&2
6723    ;;
6724esac
6725echo "$as_me:$LINENO: checking for $ac_header" >&5
6726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6727if eval "test \"\${$as_ac_Header+set}\" = set"; then
6728  echo $ECHO_N "(cached) $ECHO_C" >&6
6729else
6730  eval "$as_ac_Header=\$ac_header_preproc"
6731fi
6732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734
6735fi
6736if test `eval echo '${'$as_ac_Header'}'` = yes; then
6737  cat >>confdefs.h <<_ACEOF
6738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6739_ACEOF
6740
6741fi
6742
6743done
6744
6745          if test ! "$ac_cv_header_cctype" = "yes"; then
6746
6747for ac_header in ctype.h
6748do
6749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6750if eval "test \"\${$as_ac_Header+set}\" = set"; then
6751  echo "$as_me:$LINENO: checking for $ac_header" >&5
6752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6753if eval "test \"\${$as_ac_Header+set}\" = set"; then
6754  echo $ECHO_N "(cached) $ECHO_C" >&6
6755fi
6756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6758else
6759  # Is the header compilable?
6760echo "$as_me:$LINENO: checking $ac_header usability" >&5
6761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6762cat >conftest.$ac_ext <<_ACEOF
6763/* confdefs.h.  */
6764_ACEOF
6765cat confdefs.h >>conftest.$ac_ext
6766cat >>conftest.$ac_ext <<_ACEOF
6767/* end confdefs.h.  */
6768$ac_includes_default
6769#include <$ac_header>
6770_ACEOF
6771rm -f conftest.$ac_objext
6772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6773  (eval $ac_compile) 2>conftest.er1
6774  ac_status=$?
6775  grep -v '^ *+' conftest.er1 >conftest.err
6776  rm -f conftest.er1
6777  cat conftest.err >&5
6778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779  (exit $ac_status); } &&
6780         { ac_try='test -z "$ac_cxx_werror_flag"
6781                         || test ! -s conftest.err'
6782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783  (eval $ac_try) 2>&5
6784  ac_status=$?
6785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786  (exit $ac_status); }; } &&
6787         { ac_try='test -s conftest.$ac_objext'
6788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789  (eval $ac_try) 2>&5
6790  ac_status=$?
6791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792  (exit $ac_status); }; }; then
6793  ac_header_compiler=yes
6794else
6795  echo "$as_me: failed program was:" >&5
6796sed 's/^/| /' conftest.$ac_ext >&5
6797
6798ac_header_compiler=no
6799fi
6800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6801echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6802echo "${ECHO_T}$ac_header_compiler" >&6
6803
6804# Is the header present?
6805echo "$as_me:$LINENO: checking $ac_header presence" >&5
6806echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6807cat >conftest.$ac_ext <<_ACEOF
6808/* confdefs.h.  */
6809_ACEOF
6810cat confdefs.h >>conftest.$ac_ext
6811cat >>conftest.$ac_ext <<_ACEOF
6812/* end confdefs.h.  */
6813#include <$ac_header>
6814_ACEOF
6815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6816  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6817  ac_status=$?
6818  grep -v '^ *+' conftest.er1 >conftest.err
6819  rm -f conftest.er1
6820  cat conftest.err >&5
6821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822  (exit $ac_status); } >/dev/null; then
6823  if test -s conftest.err; then
6824    ac_cpp_err=$ac_cxx_preproc_warn_flag
6825    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6826  else
6827    ac_cpp_err=
6828  fi
6829else
6830  ac_cpp_err=yes
6831fi
6832if test -z "$ac_cpp_err"; then
6833  ac_header_preproc=yes
6834else
6835  echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
6837
6838  ac_header_preproc=no
6839fi
6840rm -f conftest.err conftest.$ac_ext
6841echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6842echo "${ECHO_T}$ac_header_preproc" >&6
6843
6844# So?  What about this header?
6845case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6846  yes:no: )
6847    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6849    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6851    ac_header_preproc=yes
6852    ;;
6853  no:yes:* )
6854    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6856    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6857echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6858    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6860    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6861echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6862    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6864    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6866    (
6867      cat <<\_ASBOX
6868## ----------------------------------------- ##
6869## Report this to coin-ipopt@www-124.ibm.com ##
6870## ----------------------------------------- ##
6871_ASBOX
6872    ) |
6873      sed "s/^/$as_me: WARNING:     /" >&2
6874    ;;
6875esac
6876echo "$as_me:$LINENO: checking for $ac_header" >&5
6877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6878if eval "test \"\${$as_ac_Header+set}\" = set"; then
6879  echo $ECHO_N "(cached) $ECHO_C" >&6
6880else
6881  eval "$as_ac_Header=\$ac_header_preproc"
6882fi
6883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6885
6886fi
6887if test `eval echo '${'$as_ac_Header'}'` = yes; then
6888  cat >>confdefs.h <<_ACEOF
6889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6890_ACEOF
6891
6892fi
6893
6894done
6895
6896          fi
6897
6898for ac_header in cassert
6899do
6900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6901if eval "test \"\${$as_ac_Header+set}\" = set"; then
6902  echo "$as_me:$LINENO: checking for $ac_header" >&5
6903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6904if eval "test \"\${$as_ac_Header+set}\" = set"; then
6905  echo $ECHO_N "(cached) $ECHO_C" >&6
6906fi
6907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6909else
6910  # Is the header compilable?
6911echo "$as_me:$LINENO: checking $ac_header usability" >&5
6912echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6913cat >conftest.$ac_ext <<_ACEOF
6914/* confdefs.h.  */
6915_ACEOF
6916cat confdefs.h >>conftest.$ac_ext
6917cat >>conftest.$ac_ext <<_ACEOF
6918/* end confdefs.h.  */
6919$ac_includes_default
6920#include <$ac_header>
6921_ACEOF
6922rm -f conftest.$ac_objext
6923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6924  (eval $ac_compile) 2>conftest.er1
6925  ac_status=$?
6926  grep -v '^ *+' conftest.er1 >conftest.err
6927  rm -f conftest.er1
6928  cat conftest.err >&5
6929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930  (exit $ac_status); } &&
6931         { ac_try='test -z "$ac_cxx_werror_flag"
6932                         || test ! -s conftest.err'
6933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934  (eval $ac_try) 2>&5
6935  ac_status=$?
6936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937  (exit $ac_status); }; } &&
6938         { ac_try='test -s conftest.$ac_objext'
6939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940  (eval $ac_try) 2>&5
6941  ac_status=$?
6942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943  (exit $ac_status); }; }; then
6944  ac_header_compiler=yes
6945else
6946  echo "$as_me: failed program was:" >&5
6947sed 's/^/| /' conftest.$ac_ext >&5
6948
6949ac_header_compiler=no
6950fi
6951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6952echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6953echo "${ECHO_T}$ac_header_compiler" >&6
6954
6955# Is the header present?
6956echo "$as_me:$LINENO: checking $ac_header presence" >&5
6957echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6958cat >conftest.$ac_ext <<_ACEOF
6959/* confdefs.h.  */
6960_ACEOF
6961cat confdefs.h >>conftest.$ac_ext
6962cat >>conftest.$ac_ext <<_ACEOF
6963/* end confdefs.h.  */
6964#include <$ac_header>
6965_ACEOF
6966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6967  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6968  ac_status=$?
6969  grep -v '^ *+' conftest.er1 >conftest.err
6970  rm -f conftest.er1
6971  cat conftest.err >&5
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); } >/dev/null; then
6974  if test -s conftest.err; then
6975    ac_cpp_err=$ac_cxx_preproc_warn_flag
6976    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6977  else
6978    ac_cpp_err=
6979  fi
6980else
6981  ac_cpp_err=yes
6982fi
6983if test -z "$ac_cpp_err"; then
6984  ac_header_preproc=yes
6985else
6986  echo "$as_me: failed program was:" >&5
6987sed 's/^/| /' conftest.$ac_ext >&5
6988
6989  ac_header_preproc=no
6990fi
6991rm -f conftest.err conftest.$ac_ext
6992echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6993echo "${ECHO_T}$ac_header_preproc" >&6
6994
6995# So?  What about this header?
6996case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6997  yes:no: )
6998    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7000    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7002    ac_header_preproc=yes
7003    ;;
7004  no:yes:* )
7005    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7007    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7008echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7009    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7011    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7012echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7013    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7015    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7017    (
7018      cat <<\_ASBOX
7019## ----------------------------------------- ##
7020## Report this to coin-ipopt@www-124.ibm.com ##
7021## ----------------------------------------- ##
7022_ASBOX
7023    ) |
7024      sed "s/^/$as_me: WARNING:     /" >&2
7025    ;;
7026esac
7027echo "$as_me:$LINENO: checking for $ac_header" >&5
7028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7029if eval "test \"\${$as_ac_Header+set}\" = set"; then
7030  echo $ECHO_N "(cached) $ECHO_C" >&6
7031else
7032  eval "$as_ac_Header=\$ac_header_preproc"
7033fi
7034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7036
7037fi
7038if test `eval echo '${'$as_ac_Header'}'` = yes; then
7039  cat >>confdefs.h <<_ACEOF
7040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7041_ACEOF
7042
7043fi
7044
7045done
7046
7047          if test ! "$ac_cv_header_cassert" = "yes"; then
7048
7049for ac_header in assert.h
7050do
7051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7052if eval "test \"\${$as_ac_Header+set}\" = set"; then
7053  echo "$as_me:$LINENO: checking for $ac_header" >&5
7054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7055if eval "test \"\${$as_ac_Header+set}\" = set"; then
7056  echo $ECHO_N "(cached) $ECHO_C" >&6
7057fi
7058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7060else
7061  # Is the header compilable?
7062echo "$as_me:$LINENO: checking $ac_header usability" >&5
7063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7064cat >conftest.$ac_ext <<_ACEOF
7065/* confdefs.h.  */
7066_ACEOF
7067cat confdefs.h >>conftest.$ac_ext
7068cat >>conftest.$ac_ext <<_ACEOF
7069/* end confdefs.h.  */
7070$ac_includes_default
7071#include <$ac_header>
7072_ACEOF
7073rm -f conftest.$ac_objext
7074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075  (eval $ac_compile) 2>conftest.er1
7076  ac_status=$?
7077  grep -v '^ *+' conftest.er1 >conftest.err
7078  rm -f conftest.er1
7079  cat conftest.err >&5
7080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081  (exit $ac_status); } &&
7082         { ac_try='test -z "$ac_cxx_werror_flag"
7083                         || test ! -s conftest.err'
7084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085  (eval $ac_try) 2>&5
7086  ac_status=$?
7087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088  (exit $ac_status); }; } &&
7089         { ac_try='test -s conftest.$ac_objext'
7090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091  (eval $ac_try) 2>&5
7092  ac_status=$?
7093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094  (exit $ac_status); }; }; then
7095  ac_header_compiler=yes
7096else
7097  echo "$as_me: failed program was:" >&5
7098sed 's/^/| /' conftest.$ac_ext >&5
7099
7100ac_header_compiler=no
7101fi
7102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7103echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7104echo "${ECHO_T}$ac_header_compiler" >&6
7105
7106# Is the header present?
7107echo "$as_me:$LINENO: checking $ac_header presence" >&5
7108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7109cat >conftest.$ac_ext <<_ACEOF
7110/* confdefs.h.  */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h.  */
7115#include <$ac_header>
7116_ACEOF
7117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7118  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7119  ac_status=$?
7120  grep -v '^ *+' conftest.er1 >conftest.err
7121  rm -f conftest.er1
7122  cat conftest.err >&5
7123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124  (exit $ac_status); } >/dev/null; then
7125  if test -s conftest.err; then
7126    ac_cpp_err=$ac_cxx_preproc_warn_flag
7127    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7128  else
7129    ac_cpp_err=
7130  fi
7131else
7132  ac_cpp_err=yes
7133fi
7134if test -z "$ac_cpp_err"; then
7135  ac_header_preproc=yes
7136else
7137  echo "$as_me: failed program was:" >&5
7138sed 's/^/| /' conftest.$ac_ext >&5
7139
7140  ac_header_preproc=no
7141fi
7142rm -f conftest.err conftest.$ac_ext
7143echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7144echo "${ECHO_T}$ac_header_preproc" >&6
7145
7146# So?  What about this header?
7147case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7148  yes:no: )
7149    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7150echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7151    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7152echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7153    ac_header_preproc=yes
7154    ;;
7155  no:yes:* )
7156    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7157echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7158    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7159echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7160    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7161echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7162    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7163echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7164    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7165echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7166    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7167echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7168    (
7169      cat <<\_ASBOX
7170## ----------------------------------------- ##
7171## Report this to coin-ipopt@www-124.ibm.com ##
7172## ----------------------------------------- ##
7173_ASBOX
7174    ) |
7175      sed "s/^/$as_me: WARNING:     /" >&2
7176    ;;
7177esac
7178echo "$as_me:$LINENO: checking for $ac_header" >&5
7179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7180if eval "test \"\${$as_ac_Header+set}\" = set"; then
7181  echo $ECHO_N "(cached) $ECHO_C" >&6
7182else
7183  eval "$as_ac_Header=\$ac_header_preproc"
7184fi
7185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7187
7188fi
7189if test `eval echo '${'$as_ac_Header'}'` = yes; then
7190  cat >>confdefs.h <<_ACEOF
7191#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7192_ACEOF
7193
7194fi
7195
7196done
7197
7198          fi
7199
7200for ac_header in cstdio
7201do
7202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7203if eval "test \"\${$as_ac_Header+set}\" = set"; then
7204  echo "$as_me:$LINENO: checking for $ac_header" >&5
7205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7206if eval "test \"\${$as_ac_Header+set}\" = set"; then
7207  echo $ECHO_N "(cached) $ECHO_C" >&6
7208fi
7209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7211else
7212  # Is the header compilable?
7213echo "$as_me:$LINENO: checking $ac_header usability" >&5
7214echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7215cat >conftest.$ac_ext <<_ACEOF
7216/* confdefs.h.  */
7217_ACEOF
7218cat confdefs.h >>conftest.$ac_ext
7219cat >>conftest.$ac_ext <<_ACEOF
7220/* end confdefs.h.  */
7221$ac_includes_default
7222#include <$ac_header>
7223_ACEOF
7224rm -f conftest.$ac_objext
7225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7226  (eval $ac_compile) 2>conftest.er1
7227  ac_status=$?
7228  grep -v '^ *+' conftest.er1 >conftest.err
7229  rm -f conftest.er1
7230  cat conftest.err >&5
7231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232  (exit $ac_status); } &&
7233         { ac_try='test -z "$ac_cxx_werror_flag"
7234                         || test ! -s conftest.err'
7235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236  (eval $ac_try) 2>&5
7237  ac_status=$?
7238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239  (exit $ac_status); }; } &&
7240         { ac_try='test -s conftest.$ac_objext'
7241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242  (eval $ac_try) 2>&5
7243  ac_status=$?
7244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245  (exit $ac_status); }; }; then
7246  ac_header_compiler=yes
7247else
7248  echo "$as_me: failed program was:" >&5
7249sed 's/^/| /' conftest.$ac_ext >&5
7250
7251ac_header_compiler=no
7252fi
7253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7254echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7255echo "${ECHO_T}$ac_header_compiler" >&6
7256
7257# Is the header present?
7258echo "$as_me:$LINENO: checking $ac_header presence" >&5
7259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7260cat >conftest.$ac_ext <<_ACEOF
7261/* confdefs.h.  */
7262_ACEOF
7263cat confdefs.h >>conftest.$ac_ext
7264cat >>conftest.$ac_ext <<_ACEOF
7265/* end confdefs.h.  */
7266#include <$ac_header>
7267_ACEOF
7268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7269  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7270  ac_status=$?
7271  grep -v '^ *+' conftest.er1 >conftest.err
7272  rm -f conftest.er1
7273  cat conftest.err >&5
7274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275  (exit $ac_status); } >/dev/null; then
7276  if test -s conftest.err; then
7277    ac_cpp_err=$ac_cxx_preproc_warn_flag
7278    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7279  else
7280    ac_cpp_err=
7281  fi
7282else
7283  ac_cpp_err=yes
7284fi
7285if test -z "$ac_cpp_err"; then
7286  ac_header_preproc=yes
7287else
7288  echo "$as_me: failed program was:" >&5
7289sed 's/^/| /' conftest.$ac_ext >&5
7290
7291  ac_header_preproc=no
7292fi
7293rm -f conftest.err conftest.$ac_ext
7294echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7295echo "${ECHO_T}$ac_header_preproc" >&6
7296
7297# So?  What about this header?
7298case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7299  yes:no: )
7300    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7301echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7302    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7303echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7304    ac_header_preproc=yes
7305    ;;
7306  no:yes:* )
7307    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7308echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7309    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7310echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7311    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7312echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7313    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7314echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7315    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7316echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7317    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7318echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7319    (
7320      cat <<\_ASBOX
7321## ----------------------------------------- ##
7322## Report this to coin-ipopt@www-124.ibm.com ##
7323## ----------------------------------------- ##
7324_ASBOX
7325    ) |
7326      sed "s/^/$as_me: WARNING:     /" >&2
7327    ;;
7328esac
7329echo "$as_me:$LINENO: checking for $ac_header" >&5
7330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7331if eval "test \"\${$as_ac_Header+set}\" = set"; then
7332  echo $ECHO_N "(cached) $ECHO_C" >&6
7333else
7334  eval "$as_ac_Header=\$ac_header_preproc"
7335fi
7336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7338
7339fi
7340if test `eval echo '${'$as_ac_Header'}'` = yes; then
7341  cat >>confdefs.h <<_ACEOF
7342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7343_ACEOF
7344
7345fi
7346
7347done
7348
7349          if test ! "$ac_cv_header_cstdio" = "yes"; then
7350
7351for ac_header in stdio.h
7352do
7353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7354if eval "test \"\${$as_ac_Header+set}\" = set"; then
7355  echo "$as_me:$LINENO: checking for $ac_header" >&5
7356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7357if eval "test \"\${$as_ac_Header+set}\" = set"; then
7358  echo $ECHO_N "(cached) $ECHO_C" >&6
7359fi
7360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7362else
7363  # Is the header compilable?
7364echo "$as_me:$LINENO: checking $ac_header usability" >&5
7365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7366cat >conftest.$ac_ext <<_ACEOF
7367/* confdefs.h.  */
7368_ACEOF
7369cat confdefs.h >>conftest.$ac_ext
7370cat >>conftest.$ac_ext <<_ACEOF
7371/* end confdefs.h.  */
7372$ac_includes_default
7373#include <$ac_header>
7374_ACEOF
7375rm -f conftest.$ac_objext
7376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377  (eval $ac_compile) 2>conftest.er1
7378  ac_status=$?
7379  grep -v '^ *+' conftest.er1 >conftest.err
7380  rm -f conftest.er1
7381  cat conftest.err >&5
7382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); } &&
7384         { ac_try='test -z "$ac_cxx_werror_flag"
7385                         || test ! -s conftest.err'
7386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387  (eval $ac_try) 2>&5
7388  ac_status=$?
7389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390  (exit $ac_status); }; } &&
7391         { ac_try='test -s conftest.$ac_objext'
7392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393  (eval $ac_try) 2>&5
7394  ac_status=$?
7395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396  (exit $ac_status); }; }; then
7397  ac_header_compiler=yes
7398else
7399  echo "$as_me: failed program was:" >&5
7400sed 's/^/| /' conftest.$ac_ext >&5
7401
7402ac_header_compiler=no
7403fi
7404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7406echo "${ECHO_T}$ac_header_compiler" >&6
7407
7408# Is the header present?
7409echo "$as_me:$LINENO: checking $ac_header presence" >&5
7410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7411cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h.  */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h.  */
7417#include <$ac_header>
7418_ACEOF
7419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7420  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7421  ac_status=$?
7422  grep -v '^ *+' conftest.er1 >conftest.err
7423  rm -f conftest.er1
7424  cat conftest.err >&5
7425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426  (exit $ac_status); } >/dev/null; then
7427  if test -s conftest.err; then
7428    ac_cpp_err=$ac_cxx_preproc_warn_flag
7429    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7430  else
7431    ac_cpp_err=
7432  fi
7433else
7434  ac_cpp_err=yes
7435fi
7436if test -z "$ac_cpp_err"; then
7437  ac_header_preproc=yes
7438else
7439  echo "$as_me: failed program was:" >&5
7440sed 's/^/| /' conftest.$ac_ext >&5
7441
7442  ac_header_preproc=no
7443fi
7444rm -f conftest.err conftest.$ac_ext
7445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7446echo "${ECHO_T}$ac_header_preproc" >&6
7447
7448# So?  What about this header?
7449case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7450  yes:no: )
7451    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7453    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7455    ac_header_preproc=yes
7456    ;;
7457  no:yes:* )
7458    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7460    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7461echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7462    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7464    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7465echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7466    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7468    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7470    (
7471      cat <<\_ASBOX
7472## ----------------------------------------- ##
7473## Report this to coin-ipopt@www-124.ibm.com ##
7474## ----------------------------------------- ##
7475_ASBOX
7476    ) |
7477      sed "s/^/$as_me: WARNING:     /" >&2
7478    ;;
7479esac
7480echo "$as_me:$LINENO: checking for $ac_header" >&5
7481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7482if eval "test \"\${$as_ac_Header+set}\" = set"; then
7483  echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485  eval "$as_ac_Header=\$ac_header_preproc"
7486fi
7487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7489
7490fi
7491if test `eval echo '${'$as_ac_Header'}'` = yes; then
7492  cat >>confdefs.h <<_ACEOF
7493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7494_ACEOF
7495
7496fi
7497
7498done
7499
7500          fi
7501
7502for ac_header in cstdlib
7503do
7504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7505if eval "test \"\${$as_ac_Header+set}\" = set"; then
7506  echo "$as_me:$LINENO: checking for $ac_header" >&5
7507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509  echo $ECHO_N "(cached) $ECHO_C" >&6
7510fi
7511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7513else
7514  # Is the header compilable?
7515echo "$as_me:$LINENO: checking $ac_header usability" >&5
7516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7517cat >conftest.$ac_ext <<_ACEOF
7518/* confdefs.h.  */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h.  */
7523$ac_includes_default
7524#include <$ac_header>
7525_ACEOF
7526rm -f conftest.$ac_objext
7527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528  (eval $ac_compile) 2>conftest.er1
7529  ac_status=$?
7530  grep -v '^ *+' conftest.er1 >conftest.err
7531  rm -f conftest.er1
7532  cat conftest.err >&5
7533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534  (exit $ac_status); } &&
7535         { ac_try='test -z "$ac_cxx_werror_flag"
7536                         || test ! -s conftest.err'
7537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538  (eval $ac_try) 2>&5
7539  ac_status=$?
7540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541  (exit $ac_status); }; } &&
7542         { ac_try='test -s conftest.$ac_objext'
7543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544  (eval $ac_try) 2>&5
7545  ac_status=$?
7546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547  (exit $ac_status); }; }; then
7548  ac_header_compiler=yes
7549else
7550  echo "$as_me: failed program was:" >&5
7551sed 's/^/| /' conftest.$ac_ext >&5
7552
7553ac_header_compiler=no
7554fi
7555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7557echo "${ECHO_T}$ac_header_compiler" >&6
7558
7559# Is the header present?
7560echo "$as_me:$LINENO: checking $ac_header presence" >&5
7561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7562cat >conftest.$ac_ext <<_ACEOF
7563/* confdefs.h.  */
7564_ACEOF
7565cat confdefs.h >>conftest.$ac_ext
7566cat >>conftest.$ac_ext <<_ACEOF
7567/* end confdefs.h.  */
7568#include <$ac_header>
7569_ACEOF
7570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7571  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7572  ac_status=$?
7573  grep -v '^ *+' conftest.er1 >conftest.err
7574  rm -f conftest.er1
7575  cat conftest.err >&5
7576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577  (exit $ac_status); } >/dev/null; then
7578  if test -s conftest.err; then
7579    ac_cpp_err=$ac_cxx_preproc_warn_flag
7580    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7581  else
7582    ac_cpp_err=
7583  fi
7584else
7585  ac_cpp_err=yes
7586fi
7587if test -z "$ac_cpp_err"; then
7588  ac_header_preproc=yes
7589else
7590  echo "$as_me: failed program was:" >&5
7591sed 's/^/| /' conftest.$ac_ext >&5
7592
7593  ac_header_preproc=no
7594fi
7595rm -f conftest.err conftest.$ac_ext
7596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7597echo "${ECHO_T}$ac_header_preproc" >&6
7598
7599# So?  What about this header?
7600case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7601  yes:no: )
7602    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7604    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7606    ac_header_preproc=yes
7607    ;;
7608  no:yes:* )
7609    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7611    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7612echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7613    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7615    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7616echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7617    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7619    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7621    (
7622      cat <<\_ASBOX
7623## ----------------------------------------- ##
7624## Report this to coin-ipopt@www-124.ibm.com ##
7625## ----------------------------------------- ##
7626_ASBOX
7627    ) |
7628      sed "s/^/$as_me: WARNING:     /" >&2
7629    ;;
7630esac
7631echo "$as_me:$LINENO: checking for $ac_header" >&5
7632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7633if eval "test \"\${$as_ac_Header+set}\" = set"; then
7634  echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636  eval "$as_ac_Header=\$ac_header_preproc"
7637fi
7638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7640
7641fi
7642if test `eval echo '${'$as_ac_Header'}'` = yes; then
7643  cat >>confdefs.h <<_ACEOF
7644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7645_ACEOF
7646
7647fi
7648
7649done
7650
7651          if test ! "$ac_cv_header_cstdlib" = "yes"; then
7652
7653for ac_header in stdlib.h
7654do
7655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7656if eval "test \"\${$as_ac_Header+set}\" = set"; then
7657  echo "$as_me:$LINENO: checking for $ac_header" >&5
7658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7659if eval "test \"\${$as_ac_Header+set}\" = set"; then
7660  echo $ECHO_N "(cached) $ECHO_C" >&6
7661fi
7662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7664else
7665  # Is the header compilable?
7666echo "$as_me:$LINENO: checking $ac_header usability" >&5
7667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7668cat >conftest.$ac_ext <<_ACEOF
7669/* confdefs.h.  */
7670_ACEOF
7671cat confdefs.h >>conftest.$ac_ext
7672cat >>conftest.$ac_ext <<_ACEOF
7673/* end confdefs.h.  */
7674$ac_includes_default
7675#include <$ac_header>
7676_ACEOF
7677rm -f conftest.$ac_objext
7678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7679  (eval $ac_compile) 2>conftest.er1
7680  ac_status=$?
7681  grep -v '^ *+' conftest.er1 >conftest.err
7682  rm -f conftest.er1
7683  cat conftest.err >&5
7684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685  (exit $ac_status); } &&
7686         { ac_try='test -z "$ac_cxx_werror_flag"
7687                         || test ! -s conftest.err'
7688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689  (eval $ac_try) 2>&5
7690  ac_status=$?
7691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692  (exit $ac_status); }; } &&
7693         { ac_try='test -s conftest.$ac_objext'
7694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695  (eval $ac_try) 2>&5
7696  ac_status=$?
7697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698  (exit $ac_status); }; }; then
7699  ac_header_compiler=yes
7700else
7701  echo "$as_me: failed program was:" >&5
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
7704ac_header_compiler=no
7705fi
7706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7707echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7708echo "${ECHO_T}$ac_header_compiler" >&6
7709
7710# Is the header present?
7711echo "$as_me:$LINENO: checking $ac_header presence" >&5
7712echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7713cat >conftest.$ac_ext <<_ACEOF
7714/* confdefs.h.  */
7715_ACEOF
7716cat confdefs.h >>conftest.$ac_ext
7717cat >>conftest.$ac_ext <<_ACEOF
7718/* end confdefs.h.  */
7719#include <$ac_header>
7720_ACEOF
7721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7722  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7723  ac_status=$?
7724  grep -v '^ *+' conftest.er1 >conftest.err
7725  rm -f conftest.er1
7726  cat conftest.err >&5
7727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728  (exit $ac_status); } >/dev/null; then
7729  if test -s conftest.err; then
7730    ac_cpp_err=$ac_cxx_preproc_warn_flag
7731    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7732  else
7733    ac_cpp_err=
7734  fi
7735else
7736  ac_cpp_err=yes
7737fi
7738if test -z "$ac_cpp_err"; then
7739  ac_header_preproc=yes
7740else
7741  echo "$as_me: failed program was:" >&5
7742sed 's/^/| /' conftest.$ac_ext >&5
7743
7744  ac_header_preproc=no
7745fi
7746rm -f conftest.err conftest.$ac_ext
7747echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7748echo "${ECHO_T}$ac_header_preproc" >&6
7749
7750# So?  What about this header?
7751case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7752  yes:no: )
7753    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7754echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7755    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7756echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7757    ac_header_preproc=yes
7758    ;;
7759  no:yes:* )
7760    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7761echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7762    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7763echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7764    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7765echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7766    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7767echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7768    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7770    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7771echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7772    (
7773      cat <<\_ASBOX
7774## ----------------------------------------- ##
7775## Report this to coin-ipopt@www-124.ibm.com ##
7776## ----------------------------------------- ##
7777_ASBOX
7778    ) |
7779      sed "s/^/$as_me: WARNING:     /" >&2
7780    ;;
7781esac
7782echo "$as_me:$LINENO: checking for $ac_header" >&5
7783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7784if eval "test \"\${$as_ac_Header+set}\" = set"; then
7785  echo $ECHO_N "(cached) $ECHO_C" >&6
7786else
7787  eval "$as_ac_Header=\$ac_header_preproc"
7788fi
7789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7791
7792fi
7793if test `eval echo '${'$as_ac_Header'}'` = yes; then
7794  cat >>confdefs.h <<_ACEOF
7795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7796_ACEOF
7797
7798fi
7799
7800done
7801
7802          fi
7803
7804for ac_header in cstdarg
7805do
7806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7807if eval "test \"\${$as_ac_Header+set}\" = set"; then
7808  echo "$as_me:$LINENO: checking for $ac_header" >&5
7809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7810if eval "test \"\${$as_ac_Header+set}\" = set"; then
7811  echo $ECHO_N "(cached) $ECHO_C" >&6
7812fi
7813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7815else
7816  # Is the header compilable?
7817echo "$as_me:$LINENO: checking $ac_header usability" >&5
7818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7819cat >conftest.$ac_ext <<_ACEOF
7820/* confdefs.h.  */
7821_ACEOF
7822cat confdefs.h >>conftest.$ac_ext
7823cat >>conftest.$ac_ext <<_ACEOF
7824/* end confdefs.h.  */
7825$ac_includes_default
7826#include <$ac_header>
7827_ACEOF
7828rm -f conftest.$ac_objext
7829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830  (eval $ac_compile) 2>conftest.er1
7831  ac_status=$?
7832  grep -v '^ *+' conftest.er1 >conftest.err
7833  rm -f conftest.er1
7834  cat conftest.err >&5
7835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836  (exit $ac_status); } &&
7837         { ac_try='test -z "$ac_cxx_werror_flag"
7838                         || test ! -s conftest.err'
7839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840  (eval $ac_try) 2>&5
7841  ac_status=$?
7842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843  (exit $ac_status); }; } &&
7844         { ac_try='test -s conftest.$ac_objext'
7845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846  (eval $ac_try) 2>&5
7847  ac_status=$?
7848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849  (exit $ac_status); }; }; then
7850  ac_header_compiler=yes
7851else
7852  echo "$as_me: failed program was:" >&5
7853sed 's/^/| /' conftest.$ac_ext >&5
7854
7855ac_header_compiler=no
7856fi
7857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7859echo "${ECHO_T}$ac_header_compiler" >&6
7860
7861# Is the header present?
7862echo "$as_me:$LINENO: checking $ac_header presence" >&5
7863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7864cat >conftest.$ac_ext <<_ACEOF
7865/* confdefs.h.  */
7866_ACEOF
7867cat confdefs.h >>conftest.$ac_ext
7868cat >>conftest.$ac_ext <<_ACEOF
7869/* end confdefs.h.  */
7870#include <$ac_header>
7871_ACEOF
7872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7873  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7874  ac_status=$?
7875  grep -v '^ *+' conftest.er1 >conftest.err
7876  rm -f conftest.er1
7877  cat conftest.err >&5
7878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879  (exit $ac_status); } >/dev/null; then
7880  if test -s conftest.err; then
7881    ac_cpp_err=$ac_cxx_preproc_warn_flag
7882    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7883  else
7884    ac_cpp_err=
7885  fi
7886else
7887  ac_cpp_err=yes
7888fi
7889if test -z "$ac_cpp_err"; then
7890  ac_header_preproc=yes
7891else
7892  echo "$as_me: failed program was:" >&5
7893sed 's/^/| /' conftest.$ac_ext >&5
7894
7895  ac_header_preproc=no
7896fi
7897rm -f conftest.err conftest.$ac_ext
7898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7899echo "${ECHO_T}$ac_header_preproc" >&6
7900
7901# So?  What about this header?
7902case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7903  yes:no: )
7904    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7906    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7908    ac_header_preproc=yes
7909    ;;
7910  no:yes:* )
7911    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7913    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7914echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7915    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7917    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7918echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7919    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7921    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7923    (
7924      cat <<\_ASBOX
7925## ----------------------------------------- ##
7926## Report this to coin-ipopt@www-124.ibm.com ##
7927## ----------------------------------------- ##
7928_ASBOX
7929    ) |
7930      sed "s/^/$as_me: WARNING:     /" >&2
7931    ;;
7932esac
7933echo "$as_me:$LINENO: checking for $ac_header" >&5
7934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7935if eval "test \"\${$as_ac_Header+set}\" = set"; then
7936  echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938  eval "$as_ac_Header=\$ac_header_preproc"
7939fi
7940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7942
7943fi
7944if test `eval echo '${'$as_ac_Header'}'` = yes; then
7945  cat >>confdefs.h <<_ACEOF
7946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7947_ACEOF
7948
7949fi
7950
7951done
7952
7953          if test ! "$ac_cv_header_cstdarg" = "yes"; then
7954
7955for ac_header in stdarg.h
7956do
7957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7958if eval "test \"\${$as_ac_Header+set}\" = set"; then
7959  echo "$as_me:$LINENO: checking for $ac_header" >&5
7960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7961if eval "test \"\${$as_ac_Header+set}\" = set"; then
7962  echo $ECHO_N "(cached) $ECHO_C" >&6
7963fi
7964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7966else
7967  # Is the header compilable?
7968echo "$as_me:$LINENO: checking $ac_header usability" >&5
7969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7970cat >conftest.$ac_ext <<_ACEOF
7971/* confdefs.h.  */
7972_ACEOF
7973cat confdefs.h >>conftest.$ac_ext
7974cat >>conftest.$ac_ext <<_ACEOF
7975/* end confdefs.h.  */
7976$ac_includes_default
7977#include <$ac_header>
7978_ACEOF
7979rm -f conftest.$ac_objext
7980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981  (eval $ac_compile) 2>conftest.er1
7982  ac_status=$?
7983  grep -v '^ *+' conftest.er1 >conftest.err
7984  rm -f conftest.er1
7985  cat conftest.err >&5
7986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987  (exit $ac_status); } &&
7988         { ac_try='test -z "$ac_cxx_werror_flag"
7989                         || test ! -s conftest.err'
7990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991  (eval $ac_try) 2>&5
7992  ac_status=$?
7993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994  (exit $ac_status); }; } &&
7995         { ac_try='test -s conftest.$ac_objext'
7996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997  (eval $ac_try) 2>&5
7998  ac_status=$?
7999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000  (exit $ac_status); }; }; then
8001  ac_header_compiler=yes
8002else
8003  echo "$as_me: failed program was:" >&5
8004sed 's/^/| /' conftest.$ac_ext >&5
8005
8006ac_header_compiler=no
8007fi
8008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8010echo "${ECHO_T}$ac_header_compiler" >&6
8011
8012# Is the header present?
8013echo "$as_me:$LINENO: checking $ac_header presence" >&5
8014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8015cat >conftest.$ac_ext <<_ACEOF
8016/* confdefs.h.  */
8017_ACEOF
8018cat confdefs.h >>conftest.$ac_ext
8019cat >>conftest.$ac_ext <<_ACEOF
8020/* end confdefs.h.  */
8021#include <$ac_header>
8022_ACEOF
8023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8024  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8025  ac_status=$?
8026  grep -v '^ *+' conftest.er1 >conftest.err
8027  rm -f conftest.er1
8028  cat conftest.err >&5
8029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030  (exit $ac_status); } >/dev/null; then
8031  if test -s conftest.err; then
8032    ac_cpp_err=$ac_cxx_preproc_warn_flag
8033    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8034  else
8035    ac_cpp_err=
8036  fi
8037else
8038  ac_cpp_err=yes
8039fi
8040if test -z "$ac_cpp_err"; then
8041  ac_header_preproc=yes
8042else
8043  echo "$as_me: failed program was:" >&5
8044sed 's/^/| /' conftest.$ac_ext >&5
8045
8046  ac_header_preproc=no
8047fi
8048rm -f conftest.err conftest.$ac_ext
8049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8050echo "${ECHO_T}$ac_header_preproc" >&6
8051
8052# So?  What about this header?
8053case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8054  yes:no: )
8055    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8057    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8059    ac_header_preproc=yes
8060    ;;
8061  no:yes:* )
8062    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8064    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8065echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8066    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8068    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8069echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8070    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8072    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8074    (
8075      cat <<\_ASBOX
8076## ----------------------------------------- ##
8077## Report this to coin-ipopt@www-124.ibm.com ##
8078## ----------------------------------------- ##
8079_ASBOX
8080    ) |
8081      sed "s/^/$as_me: WARNING:     /" >&2
8082    ;;
8083esac
8084echo "$as_me:$LINENO: checking for $ac_header" >&5
8085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8086if eval "test \"\${$as_ac_Header+set}\" = set"; then
8087  echo $ECHO_N "(cached) $ECHO_C" >&6
8088else
8089  eval "$as_ac_Header=\$ac_header_preproc"
8090fi
8091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8093
8094fi
8095if test `eval echo '${'$as_ac_Header'}'` = yes; then
8096  cat >>confdefs.h <<_ACEOF
8097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8098_ACEOF
8099
8100fi
8101
8102done
8103
8104          fi
8105
8106for ac_header in cfloat
8107do
8108as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8109if eval "test \"\${$as_ac_Header+set}\" = set"; then
8110  echo "$as_me:$LINENO: checking for $ac_header" >&5
8111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8112if eval "test \"\${$as_ac_Header+set}\" = set"; then
8113  echo $ECHO_N "(cached) $ECHO_C" >&6
8114fi
8115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8117else
8118  # Is the header compilable?
8119echo "$as_me:$LINENO: checking $ac_header usability" >&5
8120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8121cat >conftest.$ac_ext <<_ACEOF
8122/* confdefs.h.  */
8123_ACEOF
8124cat confdefs.h >>conftest.$ac_ext
8125cat >>conftest.$ac_ext <<_ACEOF
8126/* end confdefs.h.  */
8127$ac_includes_default
8128#include <$ac_header>
8129_ACEOF
8130rm -f conftest.$ac_objext
8131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132  (eval $ac_compile) 2>conftest.er1
8133  ac_status=$?
8134  grep -v '^ *+' conftest.er1 >conftest.err
8135  rm -f conftest.er1
8136  cat conftest.err >&5
8137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138  (exit $ac_status); } &&
8139         { ac_try='test -z "$ac_cxx_werror_flag"
8140                         || test ! -s conftest.err'
8141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142  (eval $ac_try) 2>&5
8143  ac_status=$?
8144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145  (exit $ac_status); }; } &&
8146         { ac_try='test -s conftest.$ac_objext'
8147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148  (eval $ac_try) 2>&5
8149  ac_status=$?
8150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151  (exit $ac_status); }; }; then
8152  ac_header_compiler=yes
8153else
8154  echo "$as_me: failed program was:" >&5
8155sed 's/^/| /' conftest.$ac_ext >&5
8156
8157ac_header_compiler=no
8158fi
8159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8161echo "${ECHO_T}$ac_header_compiler" >&6
8162
8163# Is the header present?
8164echo "$as_me:$LINENO: checking $ac_header presence" >&5
8165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8166cat >conftest.$ac_ext <<_ACEOF
8167/* confdefs.h.  */
8168_ACEOF
8169cat confdefs.h >>conftest.$ac_ext
8170cat >>conftest.$ac_ext <<_ACEOF
8171/* end confdefs.h.  */
8172#include <$ac_header>
8173_ACEOF
8174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8175  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8176  ac_status=$?
8177  grep -v '^ *+' conftest.er1 >conftest.err
8178  rm -f conftest.er1
8179  cat conftest.err >&5
8180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181  (exit $ac_status); } >/dev/null; then
8182  if test -s conftest.err; then
8183    ac_cpp_err=$ac_cxx_preproc_warn_flag
8184    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8185  else
8186    ac_cpp_err=
8187  fi
8188else
8189  ac_cpp_err=yes
8190fi
8191if test -z "$ac_cpp_err"; then
8192  ac_header_preproc=yes
8193else
8194  echo "$as_me: failed program was:" >&5
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
8197  ac_header_preproc=no
8198fi
8199rm -f conftest.err conftest.$ac_ext
8200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8201echo "${ECHO_T}$ac_header_preproc" >&6
8202
8203# So?  What about this header?
8204case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8205  yes:no: )
8206    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8208    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8210    ac_header_preproc=yes
8211    ;;
8212  no:yes:* )
8213    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8215    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8216echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8217    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8219    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8220echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8221    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8223    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8225    (
8226      cat <<\_ASBOX
8227## ----------------------------------------- ##
8228## Report this to coin-ipopt@www-124.ibm.com ##
8229## ----------------------------------------- ##
8230_ASBOX
8231    ) |
8232      sed "s/^/$as_me: WARNING:     /" >&2
8233    ;;
8234esac
8235echo "$as_me:$LINENO: checking for $ac_header" >&5
8236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8237if eval "test \"\${$as_ac_Header+set}\" = set"; then
8238  echo $ECHO_N "(cached) $ECHO_C" >&6
8239else
8240  eval "$as_ac_Header=\$ac_header_preproc"
8241fi
8242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8244
8245fi
8246if test `eval echo '${'$as_ac_Header'}'` = yes; then
8247  cat >>confdefs.h <<_ACEOF
8248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8249_ACEOF
8250
8251fi
8252
8253done
8254
8255          if test ! "$ac_cv_header_cfloat" = "yes"; then
8256
8257for ac_header in float.h
8258do
8259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8260if eval "test \"\${$as_ac_Header+set}\" = set"; then
8261  echo "$as_me:$LINENO: checking for $ac_header" >&5
8262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8263if eval "test \"\${$as_ac_Header+set}\" = set"; then
8264  echo $ECHO_N "(cached) $ECHO_C" >&6
8265fi
8266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8268else
8269  # Is the header compilable?
8270echo "$as_me:$LINENO: checking $ac_header usability" >&5
8271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8272cat >conftest.$ac_ext <<_ACEOF
8273/* confdefs.h.  */
8274_ACEOF
8275cat confdefs.h >>conftest.$ac_ext
8276cat >>conftest.$ac_ext <<_ACEOF
8277/* end confdefs.h.  */
8278$ac_includes_default
8279#include <$ac_header>
8280_ACEOF
8281rm -f conftest.$ac_objext
8282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8283  (eval $ac_compile) 2>conftest.er1
8284  ac_status=$?
8285  grep -v '^ *+' conftest.er1 >conftest.err
8286  rm -f conftest.er1
8287  cat conftest.err >&5
8288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289  (exit $ac_status); } &&
8290         { ac_try='test -z "$ac_cxx_werror_flag"
8291                         || test ! -s conftest.err'
8292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293  (eval $ac_try) 2>&5
8294  ac_status=$?
8295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296  (exit $ac_status); }; } &&
8297         { ac_try='test -s conftest.$ac_objext'
8298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299  (eval $ac_try) 2>&5
8300  ac_status=$?
8301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302  (exit $ac_status); }; }; then
8303  ac_header_compiler=yes
8304else
8305  echo "$as_me: failed program was:" >&5
8306sed 's/^/| /' conftest.$ac_ext >&5
8307
8308ac_header_compiler=no
8309fi
8310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8311echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8312echo "${ECHO_T}$ac_header_compiler" >&6
8313
8314# Is the header present?
8315echo "$as_me:$LINENO: checking $ac_header presence" >&5
8316echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8317cat >conftest.$ac_ext <<_ACEOF
8318/* confdefs.h.  */
8319_ACEOF
8320cat confdefs.h >>conftest.$ac_ext
8321cat >>conftest.$ac_ext <<_ACEOF
8322/* end confdefs.h.  */
8323#include <$ac_header>
8324_ACEOF
8325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8326  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8327  ac_status=$?
8328  grep -v '^ *+' conftest.er1 >conftest.err
8329  rm -f conftest.er1
8330  cat conftest.err >&5
8331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332  (exit $ac_status); } >/dev/null; then
8333  if test -s conftest.err; then
8334    ac_cpp_err=$ac_cxx_preproc_warn_flag
8335    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8336  else
8337    ac_cpp_err=
8338  fi
8339else
8340  ac_cpp_err=yes
8341fi
8342if test -z "$ac_cpp_err"; then
8343  ac_header_preproc=yes
8344else
8345  echo "$as_me: failed program was:" >&5
8346sed 's/^/| /' conftest.$ac_ext >&5
8347
8348  ac_header_preproc=no
8349fi
8350rm -f conftest.err conftest.$ac_ext
8351echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8352echo "${ECHO_T}$ac_header_preproc" >&6
8353
8354# So?  What about this header?
8355case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8356  yes:no: )
8357    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8358echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8359    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8360echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8361    ac_header_preproc=yes
8362    ;;
8363  no:yes:* )
8364    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8365echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8366    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8367echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8368    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8369echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8370    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8371echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8372    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8374    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8375echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8376    (
8377      cat <<\_ASBOX
8378## ----------------------------------------- ##
8379## Report this to coin-ipopt@www-124.ibm.com ##
8380## ----------------------------------------- ##
8381_ASBOX
8382    ) |
8383      sed "s/^/$as_me: WARNING:     /" >&2
8384    ;;
8385esac
8386echo "$as_me:$LINENO: checking for $ac_header" >&5
8387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8388if eval "test \"\${$as_ac_Header+set}\" = set"; then
8389  echo $ECHO_N "(cached) $ECHO_C" >&6
8390else
8391  eval "$as_ac_Header=\$ac_header_preproc"
8392fi
8393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8395
8396fi
8397if test `eval echo '${'$as_ac_Header'}'` = yes; then
8398  cat >>confdefs.h <<_ACEOF
8399#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8400_ACEOF
8401
8402fi
8403
8404done
8405
8406          fi
8407
8408for ac_header in ctime
8409do
8410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8411if eval "test \"\${$as_ac_Header+set}\" = set"; then
8412  echo "$as_me:$LINENO: checking for $ac_header" >&5
8413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8414if eval "test \"\${$as_ac_Header+set}\" = set"; then
8415  echo $ECHO_N "(cached) $ECHO_C" >&6
8416fi
8417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8419else
8420  # Is the header compilable?
8421echo "$as_me:$LINENO: checking $ac_header usability" >&5
8422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8423cat >conftest.$ac_ext <<_ACEOF
8424/* confdefs.h.  */
8425_ACEOF
8426cat confdefs.h >>conftest.$ac_ext
8427cat >>conftest.$ac_ext <<_ACEOF
8428/* end confdefs.h.  */
8429$ac_includes_default
8430#include <$ac_header>
8431_ACEOF
8432rm -f conftest.$ac_objext
8433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8434  (eval $ac_compile) 2>conftest.er1
8435  ac_status=$?
8436  grep -v '^ *+' conftest.er1 >conftest.err
8437  rm -f conftest.er1
8438  cat conftest.err >&5
8439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440  (exit $ac_status); } &&
8441         { ac_try='test -z "$ac_cxx_werror_flag"
8442                         || test ! -s conftest.err'
8443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444  (eval $ac_try) 2>&5
8445  ac_status=$?
8446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447  (exit $ac_status); }; } &&
8448         { ac_try='test -s conftest.$ac_objext'
8449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450  (eval $ac_try) 2>&5
8451  ac_status=$?
8452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453  (exit $ac_status); }; }; then
8454  ac_header_compiler=yes
8455else
8456  echo "$as_me: failed program was:" >&5
8457sed 's/^/| /' conftest.$ac_ext >&5
8458
8459ac_header_compiler=no
8460fi
8461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8462echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8463echo "${ECHO_T}$ac_header_compiler" >&6
8464
8465# Is the header present?
8466echo "$as_me:$LINENO: checking $ac_header presence" >&5
8467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8468cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h.  */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h.  */
8474#include <$ac_header>
8475_ACEOF
8476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8477  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8478  ac_status=$?
8479  grep -v '^ *+' conftest.er1 >conftest.err
8480  rm -f conftest.er1
8481  cat conftest.err >&5
8482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483  (exit $ac_status); } >/dev/null; then
8484  if test -s conftest.err; then
8485    ac_cpp_err=$ac_cxx_preproc_warn_flag
8486    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8487  else
8488    ac_cpp_err=
8489  fi
8490else
8491  ac_cpp_err=yes
8492fi
8493if test -z "$ac_cpp_err"; then
8494  ac_header_preproc=yes
8495else
8496  echo "$as_me: failed program was:" >&5
8497sed 's/^/| /' conftest.$ac_ext >&5
8498
8499  ac_header_preproc=no
8500fi
8501rm -f conftest.err conftest.$ac_ext
8502echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8503echo "${ECHO_T}$ac_header_preproc" >&6
8504
8505# So?  What about this header?
8506case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8507  yes:no: )
8508    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8509echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8510    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8511echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8512    ac_header_preproc=yes
8513    ;;
8514  no:yes:* )
8515    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8516echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8517    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8518echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8519    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8520echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8521    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8522echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8523    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8525    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8526echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8527    (
8528      cat <<\_ASBOX
8529## ----------------------------------------- ##
8530## Report this to coin-ipopt@www-124.ibm.com ##
8531## ----------------------------------------- ##
8532_ASBOX
8533    ) |
8534      sed "s/^/$as_me: WARNING:     /" >&2
8535    ;;
8536esac
8537echo "$as_me:$LINENO: checking for $ac_header" >&5
8538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8539if eval "test \"\${$as_ac_Header+set}\" = set"; then
8540  echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542  eval "$as_ac_Header=\$ac_header_preproc"
8543fi
8544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8546
8547fi
8548if test `eval echo '${'$as_ac_Header'}'` = yes; then
8549  cat >>confdefs.h <<_ACEOF
8550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8551_ACEOF
8552
8553fi
8554
8555done
8556
8557          if test ! "$ac_cv_header_ctime" = "yes"; then
8558
8559for ac_header in time.h
8560do
8561as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8562if eval "test \"\${$as_ac_Header+set}\" = set"; then
8563  echo "$as_me:$LINENO: checking for $ac_header" >&5
8564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8565if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566  echo $ECHO_N "(cached) $ECHO_C" >&6
8567fi
8568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8570else
8571  # Is the header compilable?
8572echo "$as_me:$LINENO: checking $ac_header usability" >&5
8573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8574cat >conftest.$ac_ext <<_ACEOF
8575/* confdefs.h.  */
8576_ACEOF
8577cat confdefs.h >>conftest.$ac_ext
8578cat >>conftest.$ac_ext <<_ACEOF
8579/* end confdefs.h.  */
8580$ac_includes_default
8581#include <$ac_header>
8582_ACEOF
8583rm -f conftest.$ac_objext
8584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585  (eval $ac_compile) 2>conftest.er1
8586  ac_status=$?
8587  grep -v '^ *+' conftest.er1 >conftest.err
8588  rm -f conftest.er1
8589  cat conftest.err >&5
8590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591  (exit $ac_status); } &&
8592         { ac_try='test -z "$ac_cxx_werror_flag"
8593                         || test ! -s conftest.err'
8594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595  (eval $ac_try) 2>&5
8596  ac_status=$?
8597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598  (exit $ac_status); }; } &&
8599         { ac_try='test -s conftest.$ac_objext'
8600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601  (eval $ac_try) 2>&5
8602  ac_status=$?
8603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604  (exit $ac_status); }; }; then
8605  ac_header_compiler=yes
8606else
8607  echo "$as_me: failed program was:" >&5
8608sed 's/^/| /' conftest.$ac_ext >&5
8609
8610ac_header_compiler=no
8611fi
8612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8613echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8614echo "${ECHO_T}$ac_header_compiler" >&6
8615
8616# Is the header present?
8617echo "$as_me:$LINENO: checking $ac_header presence" >&5
8618echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8619cat >conftest.$ac_ext <<_ACEOF
8620/* confdefs.h.  */
8621_ACEOF
8622cat confdefs.h >>conftest.$ac_ext
8623cat >>conftest.$ac_ext <<_ACEOF
8624/* end confdefs.h.  */
8625#include <$ac_header>
8626_ACEOF
8627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8628  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8629  ac_status=$?
8630  grep -v '^ *+' conftest.er1 >conftest.err
8631  rm -f conftest.er1
8632  cat conftest.err >&5
8633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634  (exit $ac_status); } >/dev/null; then
8635  if test -s conftest.err; then
8636    ac_cpp_err=$ac_cxx_preproc_warn_flag
8637    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8638  else
8639    ac_cpp_err=
8640  fi
8641else
8642  ac_cpp_err=yes
8643fi
8644if test -z "$ac_cpp_err"; then
8645  ac_header_preproc=yes
8646else
8647  echo "$as_me: failed program was:" >&5
8648sed 's/^/| /' conftest.$ac_ext >&5
8649
8650  ac_header_preproc=no
8651fi
8652rm -f conftest.err conftest.$ac_ext
8653echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8654echo "${ECHO_T}$ac_header_preproc" >&6
8655
8656# So?  What about this header?
8657case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8658  yes:no: )
8659    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8660echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8661    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8662echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8663    ac_header_preproc=yes
8664    ;;
8665  no:yes:* )
8666    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8667echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8668    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8669echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8670    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8671echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8672    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8673echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8674    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8676    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8677echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8678    (
8679      cat <<\_ASBOX
8680## ----------------------------------------- ##
8681## Report this to coin-ipopt@www-124.ibm.com ##
8682## ----------------------------------------- ##
8683_ASBOX
8684    ) |
8685      sed "s/^/$as_me: WARNING:     /" >&2
8686    ;;
8687esac
8688echo "$as_me:$LINENO: checking for $ac_header" >&5
8689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8690if eval "test \"\${$as_ac_Header+set}\" = set"; then
8691  echo $ECHO_N "(cached) $ECHO_C" >&6
8692else
8693  eval "$as_ac_Header=\$ac_header_preproc"
8694fi
8695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8697
8698fi
8699if test `eval echo '${'$as_ac_Header'}'` = yes; then
8700  cat >>confdefs.h <<_ACEOF
8701#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8702_ACEOF
8703
8704fi
8705
8706done
8707
8708          fi
8709
8710###################
8711# Function finite #
8712###################
8713
8714# First check for a few headers
8715
8716case $build in
8717  *-cygwin*) ;;
8718  *)
8719for ac_header in cieeefp
8720do
8721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8722if eval "test \"\${$as_ac_Header+set}\" = set"; then
8723  echo "$as_me:$LINENO: checking for $ac_header" >&5
8724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8725if eval "test \"\${$as_ac_Header+set}\" = set"; then
8726  echo $ECHO_N "(cached) $ECHO_C" >&6
8727fi
8728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8730else
8731  # Is the header compilable?
8732echo "$as_me:$LINENO: checking $ac_header usability" >&5
8733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8734cat >conftest.$ac_ext <<_ACEOF
8735/* confdefs.h.  */
8736_ACEOF
8737cat confdefs.h >>conftest.$ac_ext
8738cat >>conftest.$ac_ext <<_ACEOF
8739/* end confdefs.h.  */
8740$ac_includes_default
8741#include <$ac_header>
8742_ACEOF
8743rm -f conftest.$ac_objext
8744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8745  (eval $ac_compile) 2>conftest.er1
8746  ac_status=$?
8747  grep -v '^ *+' conftest.er1 >conftest.err
8748  rm -f conftest.er1
8749  cat conftest.err >&5
8750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751  (exit $ac_status); } &&
8752         { ac_try='test -z "$ac_cxx_werror_flag"
8753                         || test ! -s conftest.err'
8754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755  (eval $ac_try) 2>&5
8756  ac_status=$?
8757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758  (exit $ac_status); }; } &&
8759         { ac_try='test -s conftest.$ac_objext'
8760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761  (eval $ac_try) 2>&5
8762  ac_status=$?
8763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764  (exit $ac_status); }; }; then
8765  ac_header_compiler=yes
8766else
8767  echo "$as_me: failed program was:" >&5
8768sed 's/^/| /' conftest.$ac_ext >&5
8769
8770ac_header_compiler=no
8771fi
8772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8774echo "${ECHO_T}$ac_header_compiler" >&6
8775
8776# Is the header present?
8777echo "$as_me:$LINENO: checking $ac_header presence" >&5
8778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8779cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h.  */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h.  */
8785#include <$ac_header>
8786_ACEOF
8787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8788  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8789  ac_status=$?
8790  grep -v '^ *+' conftest.er1 >conftest.err
8791  rm -f conftest.er1
8792  cat conftest.err >&5
8793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794  (exit $ac_status); } >/dev/null; then
8795  if test -s conftest.err; then
8796    ac_cpp_err=$ac_cxx_preproc_warn_flag
8797    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8798  else
8799    ac_cpp_err=
8800  fi
8801else
8802  ac_cpp_err=yes
8803fi
8804if test -z "$ac_cpp_err"; then
8805  ac_header_preproc=yes
8806else
8807  echo "$as_me: failed program was:" >&5
8808sed 's/^/| /' conftest.$ac_ext >&5
8809
8810  ac_header_preproc=no
8811fi
8812rm -f conftest.err conftest.$ac_ext
8813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8814echo "${ECHO_T}$ac_header_preproc" >&6
8815
8816# So?  What about this header?
8817case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8818  yes:no: )
8819    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8820echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8821    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8822echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8823    ac_header_preproc=yes
8824    ;;
8825  no:yes:* )
8826    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8827echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8828    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8829echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8830    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8831echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8832    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8833echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8834    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8835echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8836    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8837echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8838    (
8839      cat <<\_ASBOX
8840## ----------------------------------------- ##
8841## Report this to coin-ipopt@www-124.ibm.com ##
8842## ----------------------------------------- ##
8843_ASBOX
8844    ) |
8845      sed "s/^/$as_me: WARNING:     /" >&2
8846    ;;
8847esac
8848echo "$as_me:$LINENO: checking for $ac_header" >&5
8849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8850if eval "test \"\${$as_ac_Header+set}\" = set"; then
8851  echo $ECHO_N "(cached) $ECHO_C" >&6
8852else
8853  eval "$as_ac_Header=\$ac_header_preproc"
8854fi
8855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8857
8858fi
8859if test `eval echo '${'$as_ac_Header'}'` = yes; then
8860  cat >>confdefs.h <<_ACEOF
8861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8862_ACEOF
8863
8864fi
8865
8866done
8867
8868          if test ! "$ac_cv_header_cieeefp" = "yes"; then
8869
8870for ac_header in ieeefp.h
8871do
8872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8873if eval "test \"\${$as_ac_Header+set}\" = set"; then
8874  echo "$as_me:$LINENO: checking for $ac_header" >&5
8875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8876if eval "test \"\${$as_ac_Header+set}\" = set"; then
8877  echo $ECHO_N "(cached) $ECHO_C" >&6
8878fi
8879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8881else
8882  # Is the header compilable?
8883echo "$as_me:$LINENO: checking $ac_header usability" >&5
8884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8885cat >conftest.$ac_ext <<_ACEOF
8886/* confdefs.h.  */
8887_ACEOF
8888cat confdefs.h >>conftest.$ac_ext
8889cat >>conftest.$ac_ext <<_ACEOF
8890/* end confdefs.h.  */
8891$ac_includes_default
8892#include <$ac_header>
8893_ACEOF
8894rm -f conftest.$ac_objext
8895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896  (eval $ac_compile) 2>conftest.er1
8897  ac_status=$?
8898  grep -v '^ *+' conftest.er1 >conftest.err
8899  rm -f conftest.er1
8900  cat conftest.err >&5
8901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902  (exit $ac_status); } &&
8903         { ac_try='test -z "$ac_cxx_werror_flag"
8904                         || test ! -s conftest.err'
8905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906  (eval $ac_try) 2>&5
8907  ac_status=$?
8908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909  (exit $ac_status); }; } &&
8910         { ac_try='test -s conftest.$ac_objext'
8911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912  (eval $ac_try) 2>&5
8913  ac_status=$?
8914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915  (exit $ac_status); }; }; then
8916  ac_header_compiler=yes
8917else
8918  echo "$as_me: failed program was:" >&5
8919sed 's/^/| /' conftest.$ac_ext >&5
8920
8921ac_header_compiler=no
8922fi
8923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8924echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8925echo "${ECHO_T}$ac_header_compiler" >&6
8926
8927# Is the header present?
8928echo "$as_me:$LINENO: checking $ac_header presence" >&5
8929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8930cat >conftest.$ac_ext <<_ACEOF
8931/* confdefs.h.  */
8932_ACEOF
8933cat confdefs.h >>conftest.$ac_ext
8934cat >>conftest.$ac_ext <<_ACEOF
8935/* end confdefs.h.  */
8936#include <$ac_header>
8937_ACEOF
8938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8939  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8940  ac_status=$?
8941  grep -v '^ *+' conftest.er1 >conftest.err
8942  rm -f conftest.er1
8943  cat conftest.err >&5
8944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945  (exit $ac_status); } >/dev/null; then
8946  if test -s conftest.err; then
8947    ac_cpp_err=$ac_cxx_preproc_warn_flag
8948    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8949  else
8950    ac_cpp_err=
8951  fi
8952else
8953  ac_cpp_err=yes
8954fi
8955if test -z "$ac_cpp_err"; then
8956  ac_header_preproc=yes
8957else
8958  echo "$as_me: failed program was:" >&5
8959sed 's/^/| /' conftest.$ac_ext >&5
8960
8961  ac_header_preproc=no
8962fi
8963rm -f conftest.err conftest.$ac_ext
8964echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8965echo "${ECHO_T}$ac_header_preproc" >&6
8966
8967# So?  What about this header?
8968case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8969  yes:no: )
8970    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8972    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8974    ac_header_preproc=yes
8975    ;;
8976  no:yes:* )
8977    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8979    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8980echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8981    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8983    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8984echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8985    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8987    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8989    (
8990      cat <<\_ASBOX
8991## ----------------------------------------- ##
8992## Report this to coin-ipopt@www-124.ibm.com ##
8993## ----------------------------------------- ##
8994_ASBOX
8995    ) |
8996      sed "s/^/$as_me: WARNING:     /" >&2
8997    ;;
8998esac
8999echo "$as_me:$LINENO: checking for $ac_header" >&5
9000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9001if eval "test \"\${$as_ac_Header+set}\" = set"; then
9002  echo $ECHO_N "(cached) $ECHO_C" >&6
9003else
9004  eval "$as_ac_Header=\$ac_header_preproc"
9005fi
9006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9008
9009fi
9010if test `eval echo '${'$as_ac_Header'}'` = yes; then
9011  cat >>confdefs.h <<_ACEOF
9012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9013_ACEOF
9014
9015fi
9016
9017done
9018
9019          fi ;;
9020esac
9021
9022# now try to guess the correct name of the finite function
9023
9024MY_C_FINITE=
9025echo "$as_me:$LINENO: checking whether finite is declared" >&5
9026echo $ECHO_N "checking whether finite is declared... $ECHO_C" >&6
9027if test "${ac_cv_have_decl_finite+set}" = set; then
9028  echo $ECHO_N "(cached) $ECHO_C" >&6
9029else
9030  cat >conftest.$ac_ext <<_ACEOF
9031/* confdefs.h.  */
9032_ACEOF
9033cat confdefs.h >>conftest.$ac_ext
9034cat >>conftest.$ac_ext <<_ACEOF
9035/* end confdefs.h.  */
9036
9037#ifdef HAVE_CMATH
9038# include <cmath>
9039#else
9040# ifdef HAVE_MATH_H
9041#  include <math.h>
9042# endif
9043#endif
9044#ifdef HAVE_CFLOAT
9045# include <cfloat>
9046#else
9047# ifdef HAVE_FLOAT_H
9048#  include <float.h>
9049# endif
9050#endif
9051#ifdef HAVE_CIEEEFP
9052# include <cieeefp>
9053#else
9054# ifdef HAVE_IEEEFP_H
9055#  include <ieeefp.h>
9056# endif
9057#endif
9058
9059#ifdef F77_DUMMY_MAIN
9060
9061#  ifdef __cplusplus
9062     extern "C"
9063#  endif
9064   int F77_DUMMY_MAIN() { return 1; }
9065
9066#endif
9067int
9068main ()
9069{
9070#ifndef finite
9071  char *p = (char *) finite;
9072#endif
9073
9074  ;
9075  return 0;
9076}
9077_ACEOF
9078rm -f conftest.$ac_objext
9079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080  (eval $ac_compile) 2>conftest.er1
9081  ac_status=$?
9082  grep -v '^ *+' conftest.er1 >conftest.err
9083  rm -f conftest.er1
9084  cat conftest.err >&5
9085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086  (exit $ac_status); } &&
9087         { ac_try='test -z "$ac_cxx_werror_flag"
9088                         || test ! -s conftest.err'
9089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090  (eval $ac_try) 2>&5
9091  ac_status=$?
9092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093  (exit $ac_status); }; } &&
9094         { ac_try='test -s conftest.$ac_objext'
9095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096  (eval $ac_try) 2>&5
9097  ac_status=$?
9098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099  (exit $ac_status); }; }; then
9100  ac_cv_have_decl_finite=yes
9101else
9102  echo "$as_me: failed program was:" >&5
9103sed 's/^/| /' conftest.$ac_ext >&5
9104
9105ac_cv_have_decl_finite=no
9106fi
9107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9108fi
9109echo "$as_me:$LINENO: result: $ac_cv_have_decl_finite" >&5
9110echo "${ECHO_T}$ac_cv_have_decl_finite" >&6
9111if test $ac_cv_have_decl_finite = yes; then
9112  MY_C_FINITE=finite
9113fi
9114
9115if test -z "$MY_C_FINITE"; then
9116  echo "$as_me:$LINENO: checking whether _finite is declared" >&5
9117echo $ECHO_N "checking whether _finite is declared... $ECHO_C" >&6
9118if test "${ac_cv_have_decl__finite+set}" = set; then
9119  echo $ECHO_N "(cached) $ECHO_C" >&6
9120else
9121  cat >conftest.$ac_ext <<_ACEOF
9122/* confdefs.h.  */
9123_ACEOF
9124cat confdefs.h >>conftest.$ac_ext
9125cat >>conftest.$ac_ext <<_ACEOF
9126/* end confdefs.h.  */
9127
9128#ifdef HAVE_CMATH
9129# include <cmath>
9130#else
9131# ifdef HAVE_MATH_H
9132#  include <math.h>
9133# endif
9134#endif
9135#ifdef HAVE_CFLOAT
9136# include <cfloat>
9137#else
9138# ifdef HAVE_FLOAT_H
9139#  include <float.h>
9140# endif
9141#endif
9142#ifdef HAVE_CIEEEFP
9143# include <cieeefp>
9144#else
9145# ifdef HAVE_IEEEFP_H
9146#  include <ieeefp.h>
9147# endif
9148#endif
9149
9150#ifdef F77_DUMMY_MAIN
9151
9152#  ifdef __cplusplus
9153     extern "C"
9154#  endif
9155   int F77_DUMMY_MAIN() { return 1; }
9156
9157#endif
9158int
9159main ()
9160{
9161#ifndef _finite
9162  char *p = (char *) _finite;
9163#endif
9164
9165  ;
9166  return 0;
9167}
9168_ACEOF
9169rm -f conftest.$ac_objext
9170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9171  (eval $ac_compile) 2>conftest.er1
9172  ac_status=$?
9173  grep -v '^ *+' conftest.er1 >conftest.err
9174  rm -f conftest.er1
9175  cat conftest.err >&5
9176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177  (exit $ac_status); } &&
9178         { ac_try='test -z "$ac_cxx_werror_flag"
9179                         || test ! -s conftest.err'
9180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181  (eval $ac_try) 2>&5
9182  ac_status=$?
9183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184  (exit $ac_status); }; } &&
9185         { ac_try='test -s conftest.$ac_objext'
9186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187  (eval $ac_try) 2>&5
9188  ac_status=$?
9189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190  (exit $ac_status); }; }; then
9191  ac_cv_have_decl__finite=yes
9192else
9193  echo "$as_me: failed program was:" >&5
9194sed 's/^/| /' conftest.$ac_ext >&5
9195
9196ac_cv_have_decl__finite=no
9197fi
9198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9199fi
9200echo "$as_me:$LINENO: result: $ac_cv_have_decl__finite" >&5
9201echo "${ECHO_T}$ac_cv_have_decl__finite" >&6
9202if test $ac_cv_have_decl__finite = yes; then
9203  MY_C_FINITE=_finite
9204fi
9205
9206  if test -z "$MY_C_FINITE"; then
9207    echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
9208echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6
9209if test "${ac_cv_have_decl_isfinite+set}" = set; then
9210  echo $ECHO_N "(cached) $ECHO_C" >&6
9211else
9212  cat >conftest.$ac_ext <<_ACEOF
9213/* confdefs.h.  */
9214_ACEOF
9215cat confdefs.h >>conftest.$ac_ext
9216cat >>conftest.$ac_ext <<_ACEOF
9217/* end confdefs.h.  */
9218
9219#ifdef HAVE_CMATH
9220# include <cmath>
9221#else
9222# ifdef HAVE_MATH_H
9223#  include <math.h>
9224# endif
9225#endif
9226#ifdef HAVE_CFLOAT
9227# include <cfloat>
9228#else
9229# ifdef HAVE_FLOAT_H
9230#  include <float.h>
9231# endif
9232#endif
9233#ifdef HAVE_CIEEEFP
9234# include <cieeefp>
9235#else
9236# ifdef HAVE_IEEEFP_H
9237#  include <ieeefp.h>
9238# endif
9239#endif
9240
9241#ifdef F77_DUMMY_MAIN
9242
9243#  ifdef __cplusplus
9244     extern "C"
9245#  endif
9246   int F77_DUMMY_MAIN() { return 1; }
9247
9248#endif
9249int
9250main ()
9251{
9252#ifndef isfinite
9253  char *p = (char *) isfinite;
9254#endif
9255
9256  ;
9257  return 0;
9258}
9259_ACEOF
9260rm -f conftest.$ac_objext
9261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9262  (eval $ac_compile) 2>conftest.er1
9263  ac_status=$?
9264  grep -v '^ *+' conftest.er1 >conftest.err
9265  rm -f conftest.er1
9266  cat conftest.err >&5
9267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268  (exit $ac_status); } &&
9269         { ac_try='test -z "$ac_cxx_werror_flag"
9270                         || test ! -s conftest.err'
9271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272  (eval $ac_try) 2>&5
9273  ac_status=$?
9274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275  (exit $ac_status); }; } &&
9276         { ac_try='test -s conftest.$ac_objext'
9277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278  (eval $ac_try) 2>&5
9279  ac_status=$?
9280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281  (exit $ac_status); }; }; then
9282  ac_cv_have_decl_isfinite=yes
9283else
9284  echo "$as_me: failed program was:" >&5
9285sed 's/^/| /' conftest.$ac_ext >&5
9286
9287ac_cv_have_decl_isfinite=no
9288fi
9289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9290fi
9291echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
9292echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6
9293if test $ac_cv_have_decl_isfinite = yes; then
9294  MY_C_FINITE=isfinite
9295fi
9296
9297  fi
9298fi
9299if test -z "$MY_C_FINITE"; then
9300  { echo "$as_me:$LINENO: WARNING: Cannot find C-function for checking NaN and Inf.  Check will be disabled" >&5
9301echo "$as_me: WARNING: Cannot find C-function for checking NaN and Inf.  Check will be disabled" >&2;}
9302else
9303
9304cat >>confdefs.h <<_ACEOF
9305#define MY_C_FINITE $MY_C_FINITE
9306_ACEOF
9307
9308fi
9309
9310###########
9311# va_copy #
9312###########
9313
9314echo "$as_me:$LINENO: checking whether va_copy is declared" >&5
9315echo $ECHO_N "checking whether va_copy is declared... $ECHO_C" >&6
9316if test "${ac_cv_have_decl_va_copy+set}" = set; then
9317  echo $ECHO_N "(cached) $ECHO_C" >&6
9318else
9319  cat >conftest.$ac_ext <<_ACEOF
9320/* confdefs.h.  */
9321_ACEOF
9322cat confdefs.h >>conftest.$ac_ext
9323cat >>conftest.$ac_ext <<_ACEOF
9324/* end confdefs.h.  */
9325
9326#ifdef HAVE_CSTDARG
9327# include <cstdarg>
9328#else
9329# ifdef HAVE_STDARG_H
9330#  include <stdarg.h>
9331# endif
9332#endif
9333
9334#ifdef F77_DUMMY_MAIN
9335
9336#  ifdef __cplusplus
9337     extern "C"
9338#  endif
9339   int F77_DUMMY_MAIN() { return 1; }
9340
9341#endif
9342int
9343main ()
9344{
9345#ifndef va_copy
9346  char *p = (char *) va_copy;
9347#endif
9348
9349  ;
9350  return 0;
9351}
9352_ACEOF
9353rm -f conftest.$ac_objext
9354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355  (eval $ac_compile) 2>conftest.er1
9356  ac_status=$?
9357  grep -v '^ *+' conftest.er1 >conftest.err
9358  rm -f conftest.er1
9359  cat conftest.err >&5
9360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); } &&
9362         { ac_try='test -z "$ac_cxx_werror_flag"
9363                         || test ! -s conftest.err'
9364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365  (eval $ac_try) 2>&5
9366  ac_status=$?
9367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368  (exit $ac_status); }; } &&
9369         { ac_try='test -s conftest.$ac_objext'
9370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371  (eval $ac_try) 2>&5
9372  ac_status=$?
9373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374  (exit $ac_status); }; }; then
9375  ac_cv_have_decl_va_copy=yes
9376else
9377  echo "$as_me: failed program was:" >&5
9378sed 's/^/| /' conftest.$ac_ext >&5
9379
9380ac_cv_have_decl_va_copy=no
9381fi
9382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9383fi
9384echo "$as_me:$LINENO: result: $ac_cv_have_decl_va_copy" >&5
9385echo "${ECHO_T}$ac_cv_have_decl_va_copy" >&6
9386if test $ac_cv_have_decl_va_copy = yes; then
9387
9388cat >>confdefs.h <<\_ACEOF
9389#define HAVE_VA_COPY 1
9390_ACEOF
9391
9392fi
9393
9394
9395##########################################################################
9396
9397# Additional libraries and packages
9398
9399IPADDLIBS=
9400
9401
9402##########
9403#  BLAS  #
9404##########
9405
9406ipblaslibdir="\$(top_builddir)/Extern/blas"
9407
9408
9409# Check whether --with-blas or --without-blas was given.
9410if test "${with_blas+set}" = set; then
9411  withval="$with_blas"
9412  use_blas=$withval
9413else
9414  use_blas=
9415fi;
9416# Check if user supplied option makes sense
9417if test ! -z "$use_blas"; then
9418  if test "$use_blas" = "BUILD"; then
9419    as_ac_File=`echo "ac_cv_file_$srcdir/Extern/blas/dgemm.f" | $as_tr_sh`
9420echo "$as_me:$LINENO: checking for $srcdir/Extern/blas/dgemm.f" >&5
9421echo $ECHO_N "checking for $srcdir/Extern/blas/dgemm.f... $ECHO_C" >&6
9422if eval "test \"\${$as_ac_File+set}\" = set"; then
9423  echo $ECHO_N "(cached) $ECHO_C" >&6
9424else
9425  test "$cross_compiling" = yes &&
9426  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9427echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9428   { (exit 1); exit 1; }; }
9429if test -r "$srcdir/Extern/blas/dgemm.f"; then
9430  eval "$as_ac_File=yes"
9431else
9432  eval "$as_ac_File=no"
9433fi
9434fi
9435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
9436echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9437if test `eval echo '${'$as_ac_File'}'` = yes; then
9438  :
9439else
9440  { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for blas, but sources are missing" >&5
9441echo "$as_me: error: option \"BUILD\" specified for blas, but sources are missing" >&2;}
9442   { (exit 1); exit 1; }; }
9443fi
9444
9445  else
9446    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
9447echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
9448    LIBS="$use_blas $LIBS"
9449    IPADDLIBS="$use_blas $IPADDLIBS"
9450    # Probably the blas library requires the Fortran libraries, so add
9451    # them for this test.  They are added at the end anyway
9452    SAVE_LIBS="$LIBS"
9453    LIBS="$LIBS $FLIBS"
9454    ac_ext=f
9455ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9456ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9457ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9458case $ac_cv_f77_mangling in
9459  upper*) ac_val="DAXPY" ;;
9460  lower*) ac_val="daxpy" ;;
9461  *)      ac_val="unknown" ;;
9462esac
9463case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9464
9465cfunc="$ac_val"
9466
9467ac_ext=cc
9468ac_cpp='$CXXCPP $CPPFLAGS'
9469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9472
9473    cat >conftest.$ac_ext <<_ACEOF
9474/* confdefs.h.  */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h.  */
9479extern "C" {void $cfunc();}
9480#ifdef F77_DUMMY_MAIN
9481
9482#  ifdef __cplusplus
9483     extern "C"
9484#  endif
9485   int F77_DUMMY_MAIN() { return 1; }
9486
9487#endif
9488int
9489main ()
9490{
9491$cfunc()
9492  ;
9493  return 0;
9494}
9495_ACEOF
9496rm -f conftest.$ac_objext conftest$ac_exeext
9497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498  (eval $ac_link) 2>conftest.er1
9499  ac_status=$?
9500  grep -v '^ *+' conftest.er1 >conftest.err
9501  rm -f conftest.er1
9502  cat conftest.err >&5
9503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504  (exit $ac_status); } &&
9505         { ac_try='test -z "$ac_cxx_werror_flag"
9506                         || test ! -s conftest.err'
9507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508  (eval $ac_try) 2>&5
9509  ac_status=$?
9510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511  (exit $ac_status); }; } &&
9512         { ac_try='test -s conftest$ac_exeext'
9513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514  (eval $ac_try) 2>&5
9515  ac_status=$?
9516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517  (exit $ac_status); }; }; then
9518  echo "$as_me:$LINENO: result: yes" >&5
9519echo "${ECHO_T}yes" >&6
9520else
9521  echo "$as_me: failed program was:" >&5
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
9524echo "$as_me:$LINENO: result: no" >&5
9525echo "${ECHO_T}no" >&6
9526                 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
9527echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
9528   { (exit 1); exit 1; }; }
9529fi
9530rm -f conftest.err conftest.$ac_objext \
9531      conftest$ac_exeext conftest.$ac_ext
9532    LIBS="$SAVE_LIBS"
9533  fi
9534else
9535# Try to autodetect the library for blas based on build system
9536  case $build in
9537    *-sgi-*) ac_ext=f
9538ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9539ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9540ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9541case $ac_cv_f77_mangling in
9542  upper*) ac_val="DAXPY" ;;
9543  lower*) ac_val="daxpy" ;;
9544  *)      ac_val="unknown" ;;
9545esac
9546case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9547
9548cfunc="$ac_val"
9549
9550ac_ext=cc
9551ac_cpp='$CXXCPP $CPPFLAGS'
9552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9555
9556             as_ac_Lib=`echo "ac_cv_lib_complib.sgimath_$cfunc" | $as_tr_sh`
9557echo "$as_me:$LINENO: checking for $cfunc in -lcomplib.sgimath" >&5
9558echo $ECHO_N "checking for $cfunc in -lcomplib.sgimath... $ECHO_C" >&6
9559if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9560  echo $ECHO_N "(cached) $ECHO_C" >&6
9561else
9562  ac_check_lib_save_LIBS=$LIBS
9563LIBS="-lcomplib.sgimath  $LIBS"
9564cat >conftest.$ac_ext <<_ACEOF
9565/* confdefs.h.  */
9566_ACEOF
9567cat confdefs.h >>conftest.$ac_ext
9568cat >>conftest.$ac_ext <<_ACEOF
9569/* end confdefs.h.  */
9570
9571/* Override any gcc2 internal prototype to avoid an error.  */
9572#ifdef __cplusplus
9573extern "C"
9574#endif
9575/* We use char because int might match the return type of a gcc2
9576   builtin and then its argument prototype would still apply.  */
9577char $cfunc ();
9578#ifdef F77_DUMMY_MAIN
9579
9580#  ifdef __cplusplus
9581     extern "C"
9582#  endif
9583   int F77_DUMMY_MAIN() { return 1; }
9584
9585#endif
9586int
9587main ()
9588{
9589$cfunc ();
9590  ;
9591  return 0;
9592}
9593_ACEOF
9594rm -f conftest.$ac_objext conftest$ac_exeext
9595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596  (eval $ac_link) 2>conftest.er1
9597  ac_status=$?
9598  grep -v '^ *+' conftest.er1 >conftest.err
9599  rm -f conftest.er1
9600  cat conftest.err >&5
9601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602  (exit $ac_status); } &&
9603         { ac_try='test -z "$ac_cxx_werror_flag"
9604                         || test ! -s conftest.err'
9605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606  (eval $ac_try) 2>&5
9607  ac_status=$?
9608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609  (exit $ac_status); }; } &&
9610         { ac_try='test -s conftest$ac_exeext'
9611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612  (eval $ac_try) 2>&5
9613  ac_status=$?
9614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615  (exit $ac_status); }; }; then
9616  eval "$as_ac_Lib=yes"
9617else
9618  echo "$as_me: failed program was:" >&5
9619sed 's/^/| /' conftest.$ac_ext >&5
9620
9621eval "$as_ac_Lib=no"
9622fi
9623rm -f conftest.err conftest.$ac_objext \
9624      conftest$ac_exeext conftest.$ac_ext
9625LIBS=$ac_check_lib_save_LIBS
9626fi
9627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9628echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9629if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9630  use_blas=-lcomplib.sgimath;
9631                           LIBS="-lcomplib.sgimath $LIBS";
9632                           IPADDLIBS="-lcomplib.sgimath $IPADDLIBS"
9633fi
9634
9635             ;;
9636    *-sun-*) SAVE_LIBS="$LIBS"
9637             echo "$as_me:$LINENO: checking whether -xlic_lib=sunperf has BLAS" >&5
9638echo $ECHO_N "checking whether -xlic_lib=sunperf has BLAS... $ECHO_C" >&6
9639             LIBS="-xlic_lib=sunperf $LIBS"
9640             ac_ext=f
9641ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9642ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9643ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9644case $ac_cv_f77_mangling in
9645  upper*) ac_val="DAXPY" ;;
9646  lower*) ac_val="daxpy" ;;
9647  *)      ac_val="unknown" ;;
9648esac
9649case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9650
9651cfunc="$ac_val"
9652
9653ac_ext=cc
9654ac_cpp='$CXXCPP $CPPFLAGS'
9655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9658
9659             cat >conftest.$ac_ext <<_ACEOF
9660/* confdefs.h.  */
9661_ACEOF
9662cat confdefs.h >>conftest.$ac_ext
9663cat >>conftest.$ac_ext <<_ACEOF
9664/* end confdefs.h.  */
9665extern "C" {void $cfunc();}
9666#ifdef F77_DUMMY_MAIN
9667
9668#  ifdef __cplusplus
9669     extern "C"
9670#  endif
9671   int F77_DUMMY_MAIN() { return 1; }
9672
9673#endif
9674int
9675main ()
9676{
9677$cfunc()
9678  ;
9679  return 0;
9680}
9681_ACEOF
9682rm -f conftest.$ac_objext conftest$ac_exeext
9683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9684  (eval $ac_link) 2>conftest.er1
9685  ac_status=$?
9686  grep -v '^ *+' conftest.er1 >conftest.err
9687  rm -f conftest.er1
9688  cat conftest.err >&5
9689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690  (exit $ac_status); } &&
9691         { ac_try='test -z "$ac_cxx_werror_flag"
9692                         || test ! -s conftest.err'
9693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694  (eval $ac_try) 2>&5
9695  ac_status=$?
9696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697  (exit $ac_status); }; } &&
9698         { ac_try='test -s conftest$ac_exeext'
9699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700  (eval $ac_try) 2>&5
9701  ac_status=$?
9702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703  (exit $ac_status); }; }; then
9704  echo "$as_me:$LINENO: result: yes" >&5
9705echo "${ECHO_T}yes" >&6
9706                          IPADDLIBS="-xlic_lib=sunperf $IPADDLIBS"
9707                          use_blas=-xlic_lib=sunperf
9708else
9709  echo "$as_me: failed program was:" >&5
9710sed 's/^/| /' conftest.$ac_ext >&5
9711
9712echo "$as_me:$LINENO: result: no" >&5
9713echo "${ECHO_T}no" >&6
9714                          LIBS="$SAVE_LIBS"
9715fi
9716rm -f conftest.err conftest.$ac_objext \
9717      conftest$ac_exeext conftest.$ac_ext
9718             ;;
9719  esac
9720  if test -z "$use_blas"; then
9721    # Probably the blas library requires the Fortran libraries, so add
9722    # them for this test.  They are added at the end anyway
9723    ac_ext=f
9724ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9725ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9726ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9727case $ac_cv_f77_mangling in
9728  upper*) ac_val="DAXPY" ;;
9729  lower*) ac_val="daxpy" ;;
9730  *)      ac_val="unknown" ;;
9731esac
9732case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9733
9734cdaxpy="$ac_val"
9735
9736ac_ext=cc
9737ac_cpp='$CXXCPP $CPPFLAGS'
9738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9741
9742    SAVE_LIBS="$LIBS"
9743    LIBS="$LIBS $FLIBS"
9744    as_ac_Lib=`echo "ac_cv_lib_blas_$cdaxpy" | $as_tr_sh`
9745echo "$as_me:$LINENO: checking for $cdaxpy in -lblas" >&5
9746echo $ECHO_N "checking for $cdaxpy in -lblas... $ECHO_C" >&6
9747if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9748  echo $ECHO_N "(cached) $ECHO_C" >&6
9749else
9750  ac_check_lib_save_LIBS=$LIBS
9751LIBS="-lblas  $LIBS"
9752cat >conftest.$ac_ext <<_ACEOF
9753/* confdefs.h.  */
9754_ACEOF
9755cat confdefs.h >>conftest.$ac_ext
9756cat >>conftest.$ac_ext <<_ACEOF
9757/* end confdefs.h.  */
9758
9759/* Override any gcc2 internal prototype to avoid an error.  */
9760#ifdef __cplusplus
9761extern "C"
9762#endif
9763/* We use char because int might match the return type of a gcc2
9764   builtin and then its argument prototype would still apply.  */
9765char $cdaxpy ();
9766#ifdef F77_DUMMY_MAIN
9767
9768#  ifdef __cplusplus
9769     extern "C"
9770#  endif
9771   int F77_DUMMY_MAIN() { return 1; }
9772
9773#endif
9774int
9775main ()
9776{
9777$cdaxpy ();
9778  ;
9779  return 0;
9780}
9781_ACEOF
9782rm -f conftest.$ac_objext conftest$ac_exeext
9783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9784  (eval $ac_link) 2>conftest.er1
9785  ac_status=$?
9786  grep -v '^ *+' conftest.er1 >conftest.err
9787  rm -f conftest.er1
9788  cat conftest.err >&5
9789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790  (exit $ac_status); } &&
9791         { ac_try='test -z "$ac_cxx_werror_flag"
9792                         || test ! -s conftest.err'
9793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794  (eval $ac_try) 2>&5
9795  ac_status=$?
9796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797  (exit $ac_status); }; } &&
9798         { ac_try='test -s conftest$ac_exeext'
9799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800  (eval $ac_try) 2>&5
9801  ac_status=$?
9802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803  (exit $ac_status); }; }; then
9804  eval "$as_ac_Lib=yes"
9805else
9806  echo "$as_me: failed program was:" >&5
9807sed 's/^/| /' conftest.$ac_ext >&5
9808
9809eval "$as_ac_Lib=no"
9810fi
9811rm -f conftest.err conftest.$ac_objext \
9812      conftest$ac_exeext conftest.$ac_ext
9813LIBS=$ac_check_lib_save_LIBS
9814fi
9815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9816echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9817if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9818  use_blas=-lblas;
9819                               LIBS="-lblas $SAVE_LIBS";
9820                               IPADDLIBS="-lblas $IPADDLIBS"
9821else
9822  LIBS="$SAVE_LIBS"
9823fi
9824
9825  fi
9826  if test -z "$use_blas"; then
9827    as_ac_File=`echo "ac_cv_file_$srcdir/Extern/blas/dgemm.f" | $as_tr_sh`
9828echo "$as_me:$LINENO: checking for $srcdir/Extern/blas/dgemm.f" >&5
9829echo $ECHO_N "checking for $srcdir/Extern/blas/dgemm.f... $ECHO_C" >&6
9830if eval "test \"\${$as_ac_File+set}\" = set"; then
9831  echo $ECHO_N "(cached) $ECHO_C" >&6
9832else
9833  test "$cross_compiling" = yes &&
9834  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9835echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9836   { (exit 1); exit 1; }; }
9837if test -r "$srcdir/Extern/blas/dgemm.f"; then
9838  eval "$as_ac_File=yes"
9839else
9840  eval "$as_ac_File=no"
9841fi
9842fi
9843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
9844echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9845if test `eval echo '${'$as_ac_File'}'` = yes; then
9846  use_blas=BUILD
9847else
9848  { { echo "$as_me:$LINENO: error: cannot find BLAS, and sources are missing in $srcdir/Extern/blas/" >&5
9849echo "$as_me: error: cannot find BLAS, and sources are missing in $srcdir/Extern/blas/" >&2;}
9850   { (exit 1); exit 1; }; }
9851fi
9852
9853  fi
9854fi
9855
9856# ##########
9857# # LAPACK #
9858# ##########
9859#
9860# iplapacklibdir="\$(top_builddir)/Extern/lapack"
9861# lapackdir=Extern/lapack/LAPACK/SRC
9862# lapacksrcdir=$srcdir/$lapackdir
9863# lapackobjdir=Extern/lapack
9864#
9865# AC_ARG_WITH([lapack],
9866#             AC_HELP_STRING([--with-lapack],
9867#                            [specify LAPACK library (or BUILD for compilation)]),
9868#             [use_lapack=$withval], [use_lapack=])
9869# # Check if user supplied option makes sense
9870# if test ! -z "$use_lapack"; then
9871#   if test "$use_lapack" = "BUILD"; then
9872#     AC_CHECK_FILE([$lapacksrcdir/dlarf.f],[],
9873#                   [AC_MSG_ERROR([option \"BUILD\" specified for lapack, but sources are missing])])
9874#   else
9875#     AC_MSG_CHECKING([whether user supplied LAPACKLIB=\"$use_lapack\" works])
9876#     LIBS="$use_lapack $LIBS"
9877#     IPADDLIBS="$use_lapack $IPADDLIBS"
9878#     AC_TRY_LINK([],[      call dlasr],[AC_MSG_RESULT([yes])],
9879#                 [AC_MSG_RESULT([no]); AC_MSG_ERROR([user supplied LAPACK library \"$use_lapack\" does not work])])
9880#   fi
9881# else
9882# # First try to see if LAPACK is already available with BLAS library
9883#   AC_MSG_CHECKING([whether LAPACK is already available with BLAS library])
9884#   AC_TRY_LINK([],[      call dgetrf()],
9885#             [AC_MSG_RESULT([yes]); use_lapack=ok],
9886#             [AC_MSG_RESULT([no])])
9887#   if test -z "$use_lapack"; then
9888#     # Try to autodetect the library for lapack based on build system
9889#     case $build in
9890#       *-sgi-*)   AC_CHECK_LIB([complib.sgimath],[dgetrf],
9891#                             [use_lapack=-lcomplib.sgimath;
9892#                              LIBS="-lcomplib.sgimath $LIBS";
9893#                              IPADDLIBS="-lcomplib.sgimath $IPADDLIBS"]);;
9894#       *-sun-*) SAVE_LDFLAGS="$LDFLAGS"
9895#                AC_MSG_CHECKING([whether -xlic_lib=sunperf has LAPACK])
9896#                LDFLAGS="-xlic_lib=sunperf $LDFLAGS"
9897#                AC_TRY_LINK([],[      call dgetrf],
9898#                            [AC_MSG_RESULT([yes]); use_lapack=-xlic_lib=sunperf],
9899#                            [AC_MSG_RESULT([no]); LDFLAGS="$SAVE_LDFLAGS"]) ;;
9900#     esac
9901#   fi
9902#   if test -z "$use_lapack"; then
9903#     AC_CHECK_LIB(lapack,dgetrf,[use_lapack=-llapack;
9904#                                 LIBS="-llapack $LIBS";
9905#                                 IPADDLIBS="-llapack $IPADDLIBS"],[])
9906#   fi
9907#   if test -z "$use_lapack"; then
9908#     AC_CHECK_FILE([$lapacksrcdir/dlarf.f],[use_lapack=BUILD],
9909#                   [AC_MSG_ERROR([cannot find LAPACK, and sources are missing in $lapacksrcdir])])
9910#   fi
9911# fi
9912
9913#######################
9914# HARWELL SUBROUTINES #
9915#######################
9916
9917hslsrcdir="$srcdir/Extern/HSL"
9918hsllibdir="\$(top_builddir)/Extern/HSL"
9919
9920
9921
9922
9923
9924{ echo "$as_me:$LINENO: Checking for Harwell subroutine library" >&5
9925echo "$as_me: Checking for Harwell subroutine library" >&6;}
9926
9927
9928# Check whether --with-hsl or --without-hsl was given.
9929if test "${with_hsl+set}" = set; then
9930  withval="$with_hsl"
9931  use_hsl=$withval
9932else
9933  use_hsl=BUILD
9934fi;
9935
9936if test "$use_hsl" = BUILD; then
9937# Check which files are available
9938  as_ac_File=`echo "ac_cv_file_$hslsrcdir/ma27ad.f" | $as_tr_sh`
9939echo "$as_me:$LINENO: checking for $hslsrcdir/ma27ad.f" >&5
9940echo $ECHO_N "checking for $hslsrcdir/ma27ad.f... $ECHO_C" >&6
9941if eval "test \"\${$as_ac_File+set}\" = set"; then
9942  echo $ECHO_N "(cached) $ECHO_C" >&6
9943else
9944  test "$cross_compiling" = yes &&
9945  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9946echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9947   { (exit 1); exit 1; }; }
9948if test -r "$hslsrcdir/ma27ad.f"; then
9949  eval "$as_ac_File=yes"
9950else
9951  eval "$as_ac_File=no"
9952fi
9953fi
9954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
9955echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9956if test `eval echo '${'$as_ac_File'}'` = yes; then
9957
9958cat >>confdefs.h <<\_ACEOF
9959#define HAVE_MA27 1
9960_ACEOF
9961 use_MA27=BUILD
9962else
9963  use_MA27=no
9964fi
9965
9966  if test "$use_MA27" = BUILD; then
9967    echo "$as_me:$LINENO: checking whether MA27 is threadsafe" >&5
9968echo $ECHO_N "checking whether MA27 is threadsafe... $ECHO_C" >&6
9969    if $EGREP MA27UD $hslsrcdir/ma27ad.f >&5 ; then
9970      echo "$as_me:$LINENO: result: yes" >&5
9971echo "${ECHO_T}yes" >&6
9972    else
9973      echo "$as_me:$LINENO: result: no" >&5
9974echo "${ECHO_T}no" >&6
9975      { { echo "$as_me:$LINENO: error: Please obtain the threadsafe (newer) version of MA27" >&5
9976echo "$as_me: error: Please obtain the threadsafe (newer) version of MA27" >&2;}
9977   { (exit 1); exit 1; }; }
9978    fi
9979  fi
9980  as_ac_File=`echo "ac_cv_file_$hslsrcdir/mc19ad.f" | $as_tr_sh`
9981echo "$as_me:$LINENO: checking for $hslsrcdir/mc19ad.f" >&5
9982echo $ECHO_N "checking for $hslsrcdir/mc19ad.f... $ECHO_C" >&6
9983if eval "test \"\${$as_ac_File+set}\" = set"; then
9984  echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
9986  test "$cross_compiling" = yes &&
9987  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9988echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9989   { (exit 1); exit 1; }; }
9990if test -r "$hslsrcdir/mc19ad.f"; then
9991  eval "$as_ac_File=yes"
9992else
9993  eval "$as_ac_File=no"
9994fi
9995fi
9996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
9997echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9998if test `eval echo '${'$as_ac_File'}'` = yes; then
9999
10000cat >>confdefs.h <<\_ACEOF
10001#define HAVE_MC19 1
10002_ACEOF
10003 use_MC19=BUILD
10004else
10005  use_MC19=no
10006fi
10007
10008  as_ac_File=`echo "ac_cv_file_$hslsrcdir/ma57ad.f" | $as_tr_sh`
10009echo "$as_me:$LINENO: checking for $hslsrcdir/ma57ad.f" >&5
10010echo $ECHO_N "checking for $hslsrcdir/ma57ad.f... $ECHO_C" >&6
10011if eval "test \"\${$as_ac_File+set}\" = set"; then
10012  echo $ECHO_N "(cached) $ECHO_C" >&6
10013else
10014  test "$cross_compiling" = yes &&
10015  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10016echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10017   { (exit 1); exit 1; }; }
10018if test -r "$hslsrcdir/ma57ad.f"; then
10019  eval "$as_ac_File=yes"
10020else
10021  eval "$as_ac_File=no"
10022fi
10023fi
10024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10025echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10026if test `eval echo '${'$as_ac_File'}'` = yes; then
10027
10028cat >>confdefs.h <<\_ACEOF
10029#define HAVE_MA57 1
10030_ACEOF
10031 use_MA57=BUILD
10032else
10033  use_MA57=no
10034fi
10035
10036else
10037  SAVE_LIBS="$LIBS"
10038  LIBS="$use_hsl $LIBS $FLIBS"
10039  IPADDLIBS="$use_hsl $IPADDLIBS"
10040  echo "$as_me:$LINENO: checking for ma27ad in $use_hsl" >&5
10041echo $ECHO_N "checking for ma27ad in $use_hsl... $ECHO_C" >&6
10042          use_MA27=
10043          ac_ext=f
10044ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10045ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10046ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10047case $ac_cv_f77_mangling in
10048  upper*) ac_val="MA27AD" ;;
10049  lower*) ac_val="ma27ad" ;;
10050  *)      ac_val="unknown" ;;
10051esac
10052case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10053
10054cfunc="$ac_val"
10055
10056ac_ext=cc
10057ac_cpp='$CXXCPP $CPPFLAGS'
10058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10061
10062          cat >conftest.$ac_ext <<_ACEOF
10063/* confdefs.h.  */
10064_ACEOF
10065cat confdefs.h >>conftest.$ac_ext
10066cat >>conftest.$ac_ext <<_ACEOF
10067/* end confdefs.h.  */
10068extern "C" {void $cfunc();}
10069#ifdef F77_DUMMY_MAIN
10070
10071#  ifdef __cplusplus
10072     extern "C"
10073#  endif
10074   int F77_DUMMY_MAIN() { return 1; }
10075
10076#endif
10077int
10078main ()
10079{
10080$cfunc()
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085rm -f conftest.$ac_objext conftest$ac_exeext
10086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10087  (eval $ac_link) 2>conftest.er1
10088  ac_status=$?
10089  grep -v '^ *+' conftest.er1 >conftest.err
10090  rm -f conftest.er1
10091  cat conftest.err >&5
10092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093  (exit $ac_status); } &&
10094         { ac_try='test -z "$ac_cxx_werror_flag"
10095                         || test ! -s conftest.err'
10096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097  (eval $ac_try) 2>&5
10098  ac_status=$?
10099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100  (exit $ac_status); }; } &&
10101         { ac_try='test -s conftest$ac_exeext'
10102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103  (eval $ac_try) 2>&5
10104  ac_status=$?
10105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106  (exit $ac_status); }; }; then
10107
10108cat >>confdefs.h <<\_ACEOF
10109#define HAVE_MA27 1
10110_ACEOF
10111
10112                       echo "$as_me:$LINENO: result: yes" >&5
10113echo "${ECHO_T}yes" >&6; use_MA27=yes
10114else
10115  echo "$as_me: failed program was:" >&5
10116sed 's/^/| /' conftest.$ac_ext >&5
10117
10118echo "$as_me:$LINENO: result: no" >&5
10119echo "${ECHO_T}no" >&6; use_MA27=no
10120fi
10121rm -f conftest.err conftest.$ac_objext \
10122      conftest$ac_exeext conftest.$ac_ext
10123  if test "$use_MA27" = "yes"; then
10124    echo "$as_me:$LINENO: checking whether MA27 is threadsafe" >&5
10125echo $ECHO_N "checking whether MA27 is threadsafe... $ECHO_C" >&6
10126    ac_ext=f
10127ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10128ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10129ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10130case $ac_cv_f77_mangling in
10131  upper*) ac_val="MA27UD" ;;
10132  lower*) ac_val="ma27ud" ;;
10133  *)      ac_val="unknown" ;;
10134esac
10135case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10136
10137cfunc="$ac_val"
10138
10139ac_ext=cc
10140ac_cpp='$CXXCPP $CPPFLAGS'
10141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10144
10145    cat >conftest.$ac_ext <<_ACEOF
10146/* confdefs.h.  */
10147_ACEOF
10148cat confdefs.h >>conftest.$ac_ext
10149cat >>conftest.$ac_ext <<_ACEOF
10150/* end confdefs.h.  */
10151extern "C" {void $cfunc();}
10152#ifdef F77_DUMMY_MAIN
10153
10154#  ifdef __cplusplus
10155     extern "C"
10156#  endif
10157   int F77_DUMMY_MAIN() { return 1; }
10158
10159#endif
10160int
10161main ()
10162{
10163$cfunc
10164  ;
10165  return 0;
10166}
10167_ACEOF
10168rm -f conftest.$ac_objext conftest$ac_exeext
10169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10170  (eval $ac_link) 2>conftest.er1
10171  ac_status=$?
10172  grep -v '^ *+' conftest.er1 >conftest.err
10173  rm -f conftest.er1
10174  cat conftest.err >&5
10175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176  (exit $ac_status); } &&
10177         { ac_try='test -z "$ac_cxx_werror_flag"
10178                         || test ! -s conftest.err'
10179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180  (eval $ac_try) 2>&5
10181  ac_status=$?
10182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183  (exit $ac_status); }; } &&
10184         { ac_try='test -s conftest$ac_exeext'
10185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186  (eval $ac_try) 2>&5
10187  ac_status=$?
10188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189  (exit $ac_status); }; }; then
10190  echo "$as_me:$LINENO: result: yes" >&5
10191echo "${ECHO_T}yes" >&6
10192else
10193  echo "$as_me: failed program was:" >&5
10194sed 's/^/| /' conftest.$ac_ext >&5
10195
10196echo "$as_me:$LINENO: result: no" >&5
10197echo "${ECHO_T}no" >&6
10198                 { { echo "$as_me:$LINENO: error: Please obtain the threadsafe (newer) version of MA27" >&5
10199echo "$as_me: error: Please obtain the threadsafe (newer) version of MA27" >&2;}
10200   { (exit 1); exit 1; }; }
10201fi
10202rm -f conftest.err conftest.$ac_objext \
10203      conftest$ac_exeext conftest.$ac_ext
10204  fi
10205  echo "$as_me:$LINENO: checking for mc19ad in $use_hsl" >&5
10206echo $ECHO_N "checking for mc19ad in $use_hsl... $ECHO_C" >&6
10207          use_MC19=
10208          ac_ext=f
10209ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10210ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10211ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10212case $ac_cv_f77_mangling in
10213  upper*) ac_val="MC19AD" ;;
10214  lower*) ac_val="mc19ad" ;;
10215  *)      ac_val="unknown" ;;
10216esac
10217case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10218
10219cfunc="$ac_val"
10220
10221ac_ext=cc
10222ac_cpp='$CXXCPP $CPPFLAGS'
10223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10226
10227          cat >conftest.$ac_ext <<_ACEOF
10228/* confdefs.h.  */
10229_ACEOF
10230cat confdefs.h >>conftest.$ac_ext
10231cat >>conftest.$ac_ext <<_ACEOF
10232/* end confdefs.h.  */
10233extern "C" {void $cfunc();}
10234#ifdef F77_DUMMY_MAIN
10235
10236#  ifdef __cplusplus
10237     extern "C"
10238#  endif
10239   int F77_DUMMY_MAIN() { return 1; }
10240
10241#endif
10242int
10243main ()
10244{
10245$cfunc()
10246  ;
10247  return 0;
10248}
10249_ACEOF
10250rm -f conftest.$ac_objext conftest$ac_exeext
10251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252  (eval $ac_link) 2>conftest.er1
10253  ac_status=$?
10254  grep -v '^ *+' conftest.er1 >conftest.err
10255  rm -f conftest.er1
10256  cat conftest.err >&5
10257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258  (exit $ac_status); } &&
10259         { ac_try='test -z "$ac_cxx_werror_flag"
10260                         || test ! -s conftest.err'
10261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262  (eval $ac_try) 2>&5
10263  ac_status=$?
10264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265  (exit $ac_status); }; } &&
10266         { ac_try='test -s conftest$ac_exeext'
10267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268  (eval $ac_try) 2>&5
10269  ac_status=$?
10270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271  (exit $ac_status); }; }; then
10272
10273cat >>confdefs.h <<\_ACEOF
10274#define HAVE_MC19 1
10275_ACEOF
10276
10277                       echo "$as_me:$LINENO: result: yes" >&5
10278echo "${ECHO_T}yes" >&6; use_MC19=yes
10279else
10280  echo "$as_me: failed program was:" >&5
10281sed 's/^/| /' conftest.$ac_ext >&5
10282
10283echo "$as_me:$LINENO: result: no" >&5
10284echo "${ECHO_T}no" >&6; use_MC19=no
10285fi
10286rm -f conftest.err conftest.$ac_objext \
10287      conftest$ac_exeext conftest.$ac_ext
10288  echo "$as_me:$LINENO: checking for ma57ad in $use_hsl" >&5
10289echo $ECHO_N "checking for ma57ad in $use_hsl... $ECHO_C" >&6
10290          use_MA57=
10291          ac_ext=f
10292ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10293ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10294ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10295case $ac_cv_f77_mangling in
10296  upper*) ac_val="MA57AD" ;;
10297  lower*) ac_val="ma57ad" ;;
10298  *)      ac_val="unknown" ;;
10299esac
10300case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10301
10302cfunc="$ac_val"
10303
10304ac_ext=cc
10305ac_cpp='$CXXCPP $CPPFLAGS'
10306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10309
10310          cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h.  */
10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h.  */
10316extern "C" {void $cfunc();}
10317#ifdef F77_DUMMY_MAIN
10318
10319#  ifdef __cplusplus
10320     extern "C"
10321#  endif
10322   int F77_DUMMY_MAIN() { return 1; }
10323
10324#endif
10325int
10326main ()
10327{
10328$cfunc()
10329  ;
10330  return 0;
10331}
10332_ACEOF
10333rm -f conftest.$ac_objext conftest$ac_exeext
10334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335  (eval $ac_link) 2>conftest.er1
10336  ac_status=$?
10337  grep -v '^ *+' conftest.er1 >conftest.err
10338  rm -f conftest.er1
10339  cat conftest.err >&5
10340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341  (exit $ac_status); } &&
10342         { ac_try='test -z "$ac_cxx_werror_flag"
10343                         || test ! -s conftest.err'
10344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345  (eval $ac_try) 2>&5
10346  ac_status=$?
10347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348  (exit $ac_status); }; } &&
10349         { ac_try='test -s conftest$ac_exeext'
10350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351  (eval $ac_try) 2>&5
10352  ac_status=$?
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); }; }; then
10355
10356cat >>confdefs.h <<\_ACEOF
10357#define HAVE_MA57 1
10358_ACEOF
10359
10360                       echo "$as_me:$LINENO: result: yes" >&5
10361echo "${ECHO_T}yes" >&6; use_MA57=yes
10362else
10363  echo "$as_me: failed program was:" >&5
10364sed 's/^/| /' conftest.$ac_ext >&5
10365
10366echo "$as_me:$LINENO: result: no" >&5
10367echo "${ECHO_T}no" >&6; use_MA57=no
10368fi
10369rm -f conftest.err conftest.$ac_objext \
10370      conftest$ac_exeext conftest.$ac_ext
10371  LIBS="$use_hsl $SAVE_LIBS"
10372fi
10373
10374###########
10375# PARDISO #
10376###########
10377
10378
10379# Check whether --with-pardiso or --without-pardiso was given.
10380if test "${with_pardiso+set}" = set; then
10381  withval="$with_pardiso"
10382  use_pardiso=$withval
10383else
10384  use_pardiso=no
10385fi;
10386
10387if test ! "$use_pardiso" = "no"; then
10388  LIBS="$use_pardiso $LIBS"
10389  IPADDLIBS="$use_pardiso $IPADDLIBS"
10390
10391# ToDo put this back in
10392#  AC_MSG_CHECKING([whether user-supplied Pardiso library \"$use_pardiso\" works])
10393#  AC_TRY_LINK([],[      call PARDISO()],
10394#              [AC_MSG_RESULT(yes)],
10395#              [AC_MSG_ERROR([Pardiso library $use_pardiso does not seem to work])])
10396
10397
10398cat >>confdefs.h <<\_ACEOF
10399#define HAVE_PARDISO 1
10400_ACEOF
10401
10402fi
10403
10404#########
10405# TAUCS #
10406#########
10407
10408
10409# Check whether --with-taucs or --without-taucs was given.
10410if test "${with_taucs+set}" = set; then
10411  withval="$with_taucs"
10412  use_taucs=$withval
10413else
10414  use_taucs=no
10415fi;
10416
10417if test ! "$use_taucs" = "no"; then
10418  LIBS="$use_taucs $LIBS"
10419  IPADDLIBS="$use_taucs $IPADDLIBS"
10420
10421
10422cat >>confdefs.h <<\_ACEOF
10423#define HAVE_TAUCS 1
10424_ACEOF
10425
10426
10427
10428  CXXFLAGS="$CXXFLAGS $TAUCS_INCFLAGS"
10429fi
10430
10431# Check if at least one linear solver was found
10432
10433# Check whether --enable-distconf or --disable-distconf was given.
10434if test "${enable_distconf+set}" = set; then
10435  enableval="$enable_distconf"
10436  case "${enableval}" in
10437    yes) distconf=true ;;
10438    no)  distconf=false ;;
10439    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-distconf" >&5
10440echo "$as_me: error: bad value ${enableval} for --enable-distconf" >&2;}
10441   { (exit 1); exit 1; }; } ;;
10442  esac
10443else
10444  distconf=false
10445fi;
10446
10447if test "$use_MA27" = "no" -a "$use_MA57" = "no" -a "$use_pardiso" = "no" -a "$use_taucs" = no; then
10448  if test "$distconf" = false; then
10449    { { echo "$as_me:$LINENO: error: \"No linear solver (such as MA27) available\"" >&5
10450echo "$as_me: error: \"No linear solver (such as MA27) available\"" >&2;}
10451   { (exit 1); exit 1; }; }
10452  fi
10453fi
10454
10455# For the remaining tests we need to include FLIBS into LIBS, so that
10456# the C compiler can link programs
10457LIBS="$LIBS $FLIBS"
10458
10459#######################
10460# AMPL SOLVER LIBRARY #
10461#######################
10462
10463asldir=Extern/ASL/solvers
10464aslsrcdir=$srcdir/$asldir
10465
10466
10467# Check whether --with-asldir or --without-asldir was given.
10468if test "${with_asldir+set}" = set; then
10469  withval="$with_asldir"
10470  use_asldir=$withval
10471else
10472  use_asldir=
10473fi;
10474
10475if test "$use_asldir" = BUILD; then
10476  as_ac_File=`echo "ac_cv_file_$aslsrcdir/asl.h" | $as_tr_sh`
10477echo "$as_me:$LINENO: checking for $aslsrcdir/asl.h" >&5
10478echo $ECHO_N "checking for $aslsrcdir/asl.h... $ECHO_C" >&6
10479if eval "test \"\${$as_ac_File+set}\" = set"; then
10480  echo $ECHO_N "(cached) $ECHO_C" >&6
10481else
10482  test "$cross_compiling" = yes &&
10483  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10484echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10485   { (exit 1); exit 1; }; }
10486if test -r "$aslsrcdir/asl.h"; then
10487  eval "$as_ac_File=yes"
10488else
10489  eval "$as_ac_File=no"
10490fi
10491fi
10492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10493echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10494if test `eval echo '${'$as_ac_File'}'` = yes; then
10495  :
10496else
10497  { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for asldir, but sources are missing" >&5
10498echo "$as_me: error: option \"BUILD\" specified for asldir, but sources are missing" >&2;}
10499   { (exit 1); exit 1; }; }
10500fi
10501
10502elif test -z "$use_asldir"; then
10503 # try to find sources - if not given don't compile
10504  as_ac_File=`echo "ac_cv_file_$aslsrcdir/asl.h" | $as_tr_sh`
10505echo "$as_me:$LINENO: checking for $aslsrcdir/asl.h" >&5
10506echo $ECHO_N "checking for $aslsrcdir/asl.h... $ECHO_C" >&6
10507if eval "test \"\${$as_ac_File+set}\" = set"; then
10508  echo $ECHO_N "(cached) $ECHO_C" >&6
10509else
10510  test "$cross_compiling" = yes &&
10511  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10512echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10513   { (exit 1); exit 1; }; }
10514if test -r "$aslsrcdir/asl.h"; then
10515  eval "$as_ac_File=yes"
10516else
10517  eval "$as_ac_File=no"
10518fi
10519fi
10520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10521echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10522if test `eval echo '${'$as_ac_File'}'` = yes; then
10523  use_asldir=BUILD
10524else
10525  use_asldir=no
10526fi
10527
10528elif test ! "$use_asldir" = "no"; then
10529  as_ac_File=`echo "ac_cv_file_$use_asldir/amplsolver.a" | $as_tr_sh`
10530echo "$as_me:$LINENO: checking for $use_asldir/amplsolver.a" >&5
10531echo $ECHO_N "checking for $use_asldir/amplsolver.a... $ECHO_C" >&6
10532if eval "test \"\${$as_ac_File+set}\" = set"; then
10533  echo $ECHO_N "(cached) $ECHO_C" >&6
10534else
10535  test "$cross_compiling" = yes &&
10536  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10537echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10538   { (exit 1); exit 1; }; }
10539if test -r "$use_asldir/amplsolver.a"; then
10540  eval "$as_ac_File=yes"
10541else
10542  eval "$as_ac_File=no"
10543fi
10544fi
10545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10546echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10547if test `eval echo '${'$as_ac_File'}'` = yes; then
10548  :
10549else
10550  { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but library missing" >&5
10551echo "$as_me: error: ASL directory \"$use_asldir\" specified, but library missing" >&2;}
10552   { (exit 1); exit 1; }; }
10553fi
10554
10555  as_ac_File=`echo "ac_cv_file_$use_asldir/asl.h" | $as_tr_sh`
10556echo "$as_me:$LINENO: checking for $use_asldir/asl.h" >&5
10557echo $ECHO_N "checking for $use_asldir/asl.h... $ECHO_C" >&6
10558if eval "test \"\${$as_ac_File+set}\" = set"; then
10559  echo $ECHO_N "(cached) $ECHO_C" >&6
10560else
10561  test "$cross_compiling" = yes &&
10562  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10563echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10564   { (exit 1); exit 1; }; }
10565if test -r "$use_asldir/asl.h"; then
10566  eval "$as_ac_File=yes"
10567else
10568  eval "$as_ac_File=no"
10569fi
10570fi
10571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
10572echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
10573if test `eval echo '${'$as_ac_File'}'` = yes; then
10574  :
10575else
10576  { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&5
10577echo "$as_me: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&2;}
10578   { (exit 1); exit 1; }; }
10579fi
10580
10581  use_asldir=`cd $use_asldir; pwd`
10582  case $build in
10583    *-cygwin*) use_asldir=`cygpath -w $use_asldir` ;;
10584  esac
10585fi
10586
10587if test "$use_asldir" = BUILD; then
10588  if test -z "$ASLMAKEFLAGS" ; then
10589    asladdcflags=
10590    case $build in
10591      *-linux*) asladdcflags="-DNON_STDIO"
10592                case $CC in
10593                  pgcc | */pgcc)
10594                     asladdcflags="$asladdcflags -DNO_fpu_control";;
10595                esac
10596                  ;;
10597      *-cygwin*) asladdcflags="-DNON_STDIO"
10598                if test "$use_mingw" = yes; then
10599                  asladdcflags="$asladdcflags -DNo_Control87 -DNO_RUSAGE"
10600                fi
10601                ;;
10602    esac
10603#    ASLMAKEFLAGS="CFLAGS=\"\$(CFLAGS) $asladdcflags\""
10604# Do the following for now to make sure we are not interupting compilation
10605# of ASL because of warning message:
10606    bla=
10607    for i in $CFLAGS; do
10608      if test ! "$i" = "-Werror"; then
10609        bla="$bla $i"
10610      fi
10611    done
10612    ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\""
10613
10614#   Somehow, -qtune=auto makes ASL segfault on AIX compiler, so take them out
10615    case $CC in
10616      xlc* | */xlc* | mpxlc* | */mpxlc*)
10617        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'`
10618      ;;
10619      pgcc | */pgcc)
10620        ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed 's/-fast/-O1/g'`
10621      ;;
10622    esac
10623
10624    echo "$as_me:$LINENO: checking whether $am_make is the GNU make" >&5
10625echo $ECHO_N "checking whether $am_make is the GNU make... $ECHO_C" >&6
10626    rm -f conftest.mak
10627    ($am_make -v -f conftest.mak > conftest.grp) 2>&5
10628    if $EGREP GNU conftest.grp >&5 ; then
10629      echo "$as_me:$LINENO: result: yes" >&5
10630echo "${ECHO_T}yes" >&6
10631      ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
10632    else
10633      echo "$as_me:$LINENO: result: no" >&5
10634echo "${ECHO_T}no" >&6
10635    fi
10636    rm -f conftest.mak conftest.grp
10637
10638#    if test $USE_MAINTAINER_MODE = 'yes'; then
10639#      AC_MSG_WARN([Assuming that maintainer mode is only used for GNU make])
10640#      ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
10641#    else
10642#      AC_LANG_PUSH(Fortran 77)
10643#      AC_MSG_CHECKING([whether $am_make understands the `-j 1' flag])
10644#      AC_LANG_CONFTEST([[bladfaoekja:]])
10645#      if ($am_make -f conftest.c -j 1 bladfaoekja >&5) 2>&5 ; then
10646#        AC_MSG_RESULT([yes])
10647#        ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS"
10648#      else
10649#        AC_MSG_RESULT([no])
10650#        AC_MSG_CHECKING([whether $am_make understands the `-J 1' flag])
10651#        if ($am_make -f conftest.c -J 1 bladfaoekja >&5) 2>&5 ; then
10652#          AC_MSG_RESULT([yes])
10653#          ASLMAKEFLAGS="-J 1 $ASLMAKEFLAGS"
10654#        else
10655#          AC_MSG_RESULT([no])
10656#        fi
10657#      fi
10658#      AC_LANG_POP(Fortran 77)
10659#    fi
10660  fi
10661  ASLMAKEFILECMDS="sed 's/ar \$\$(ARFLAGS)/$AR $ARFLAGS/' makefile.u | sed 's/ar ruv/$AR $ARFLAGS/' "
10662  if test "$EXEEXT" = ".exe"; then
10663    ASLMAKEFILECMDS="$ASLMAKEFILECMDS | sed 's/a.out/a.exe/'"
10664  fi
10665  case $build in
10666    *-cygwin*) ASLMAKEFILECMDS="$ASLMAKEFILECMDS | sed 's%s/System_details/\`uname -sr\`/%s|System_details|\`uname -sr\`|%'" ;;
10667  esac
10668  ASLMAKEFILECMDS="$ASLMAKEFILECMDS > makefile"
10669fi
10670
10671
10672
10673if test ! "$use_asldir" = no; then
10674  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10675echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10676if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10677  echo $ECHO_N "(cached) $ECHO_C" >&6
10678else
10679  ac_check_lib_save_LIBS=$LIBS
10680LIBS="-ldl  $LIBS"
10681cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h.  */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h.  */
10687
10688/* Override any gcc2 internal prototype to avoid an error.  */
10689#ifdef __cplusplus
10690extern "C"
10691#endif
10692/* We use char because int might match the return type of a gcc2
10693   builtin and then its argument prototype would still apply.  */
10694char dlopen ();
10695#ifdef F77_DUMMY_MAIN
10696
10697#  ifdef __cplusplus
10698     extern "C"
10699#  endif
10700   int F77_DUMMY_MAIN() { return 1; }
10701
10702#endif
10703int
10704main ()
10705{
10706dlopen ();
10707  ;
10708  return 0;
10709}
10710_ACEOF
10711rm -f conftest.$ac_objext conftest$ac_exeext
10712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10713  (eval $ac_link) 2>conftest.er1
10714  ac_status=$?
10715  grep -v '^ *+' conftest.er1 >conftest.err
10716  rm -f conftest.er1
10717  cat conftest.err >&5
10718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719  (exit $ac_status); } &&
10720         { ac_try='test -z "$ac_cxx_werror_flag"
10721                         || test ! -s conftest.err'
10722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723  (eval $ac_try) 2>&5
10724  ac_status=$?
10725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726  (exit $ac_status); }; } &&
10727         { ac_try='test -s conftest$ac_exeext'
10728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729  (eval $ac_try) 2>&5
10730  ac_status=$?
10731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732  (exit $ac_status); }; }; then
10733  ac_cv_lib_dl_dlopen=yes
10734else
10735  echo "$as_me: failed program was:" >&5
10736sed 's/^/| /' conftest.$ac_ext >&5
10737
10738ac_cv_lib_dl_dlopen=no
10739fi
10740rm -f conftest.err conftest.$ac_objext \
10741      conftest$ac_exeext conftest.$ac_ext
10742LIBS=$ac_check_lib_save_LIBS
10743fi
10744echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10745echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10746if test $ac_cv_lib_dl_dlopen = yes; then
10747  LIBS="$LIBS -ldl"
10748fi