]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
2004-06-13 Daniel Berlin <dberlin@dberlin.org>
[thirdparty/gcc.git] / libgfortran / configure
CommitLineData
4ee9c684 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.2.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='GNU Fortran Runtime Library'
269PACKAGE_TARNAME='libgfortran'
270PACKAGE_VERSION='0.2'
271PACKAGE_STRING='GNU Fortran Runtime Library 0.2'
272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
90973b19 311ac_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 libtool_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir gcc_version toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static F77 FFLAGS LDFLAGS ac_ct_F77 CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
4ee9c684 312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
4ee9c684 752ac_env_F77_set=${F77+set}
753ac_env_F77_value=$F77
754ac_cv_env_F77_set=${F77+set}
755ac_cv_env_F77_value=$F77
756ac_env_FFLAGS_set=${FFLAGS+set}
757ac_env_FFLAGS_value=$FFLAGS
758ac_cv_env_FFLAGS_set=${FFLAGS+set}
759ac_cv_env_FFLAGS_value=$FFLAGS
90973b19 760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
4ee9c684 764ac_env_CPP_set=${CPP+set}
765ac_env_CPP_value=$CPP
766ac_cv_env_CPP_set=${CPP+set}
767ac_cv_env_CPP_value=$CPP
90973b19 768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
4ee9c684 772
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780\`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems.
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE. See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802 cat <<_ACEOF
803Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829_ACEOF
830
831 cat <<\_ACEOF
832
833Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
837
838System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
90973b19 841 --target=TARGET configure for building compilers for TARGET [HOST]
4ee9c684 842_ACEOF
843fi
844
845if test -n "$ac_init_help"; then
846 case $ac_init_help in
847 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";;
848 esac
849 cat <<\_ACEOF
850
851Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
90973b19 854 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
4ee9c684 855 --enable-maintainer-mode enable make rules and dependencies not useful
856 (and sometimes confusing) to the casual installer
90973b19 857 --enable-multilib build many library versions (default)
4ee9c684 858 --enable-shared=PKGS build shared libraries default=yes
859 --enable-static=PKGS build static libraries default=yes
860 --enable-fast-install=PKGS optimize for fast installation default=yes
861 --disable-libtool-lock avoid locking (might break parallel builds)
90973b19 862 --enable-cmath Include complex math functions
4ee9c684 863
864Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-gnu-ld assume the C compiler uses GNU ld default=no
868 --with-pic try to use only PIC/non-PIC objects default=use both
869
870Some influential environment variables:
871 CC C compiler command
872 CFLAGS C compiler flags
873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
874 nonstandard directory <lib dir>
875 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
876 headers in a nonstandard directory <include dir>
877 F77 Fortran 77 compiler command
878 FFLAGS Fortran 77 compiler flags
879 CPP C preprocessor
880
881Use these variables to override the choices made by `configure' or to help
882it to find libraries and programs with nonstandard names/locations.
883
884_ACEOF
885fi
886
887if test "$ac_init_help" = "recursive"; then
888 # If there are subdirs, report their specific --help.
889 ac_popdir=`pwd`
890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891 test -d $ac_dir || continue
892 ac_builddir=.
893
894if test "$ac_dir" != .; then
895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896 # A "../" for each directory in $ac_dir_suffix.
897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898else
899 ac_dir_suffix= ac_top_builddir=
900fi
901
902case $srcdir in
903 .) # No --srcdir option. We are building in place.
904 ac_srcdir=.
905 if test -z "$ac_top_builddir"; then
906 ac_top_srcdir=.
907 else
908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909 fi ;;
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_srcdir=$srcdir$ac_dir_suffix;
912 ac_top_srcdir=$srcdir ;;
913 *) # Relative path.
914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
916esac
917
918# Do not use `cd foo && pwd` to compute absolute paths, because
919# the directories may not exist.
920case `pwd` in
921.) ac_abs_builddir="$ac_dir";;
922*)
923 case "$ac_dir" in
924 .) ac_abs_builddir=`pwd`;;
925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
926 *) ac_abs_builddir=`pwd`/"$ac_dir";;
927 esac;;
928esac
929case $ac_abs_builddir in
930.) ac_abs_top_builddir=${ac_top_builddir}.;;
931*)
932 case ${ac_top_builddir}. in
933 .) ac_abs_top_builddir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936 esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_srcdir=$ac_srcdir;;
940*)
941 case $ac_srcdir in
942 .) ac_abs_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945 esac;;
946esac
947case $ac_abs_builddir in
948.) ac_abs_top_srcdir=$ac_top_srcdir;;
949*)
950 case $ac_top_srcdir in
951 .) ac_abs_top_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954 esac;;
955esac
956
957 cd $ac_dir
958 # Check for guested configure; otherwise get Cygnus style configure.
959 if test -f $ac_srcdir/configure.gnu; then
960 echo
961 $SHELL $ac_srcdir/configure.gnu --help=recursive
962 elif test -f $ac_srcdir/configure; then
963 echo
964 $SHELL $ac_srcdir/configure --help=recursive
965 elif test -f $ac_srcdir/configure.ac ||
966 test -f $ac_srcdir/configure.in; then
967 echo
968 $ac_configure --help
969 else
970 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971 fi
a31bd8a4 972 cd "$ac_popdir"
4ee9c684 973 done
974fi
975
976test -n "$ac_init_help" && exit 0
977if $ac_init_version; then
978 cat <<\_ACEOF
979GNU Fortran Runtime Library configure 0.2
980generated by GNU Autoconf 2.59
981
982Copyright (C) 2003 Free Software Foundation, Inc.
983This configure script is free software; the Free Software Foundation
984gives unlimited permission to copy, distribute and modify it.
985_ACEOF
986 exit 0
987fi
988exec 5>config.log
989cat >&5 <<_ACEOF
990This file contains any messages produced by compilers while
991running configure, to aid debugging if configure makes a mistake.
992
993It was created by GNU Fortran Runtime Library $as_me 0.2, which was
994generated by GNU Autoconf 2.59. Invocation command line was
995
996 $ $0 $@
997
998_ACEOF
999{
1000cat <<_ASUNAME
1001## --------- ##
1002## Platform. ##
1003## --------- ##
1004
1005hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013
1014/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1021
1022_ASUNAME
1023
1024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025for as_dir in $PATH
1026do
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030done
1031
1032} >&5
1033
1034cat >&5 <<_ACEOF
1035
1036
1037## ----------- ##
1038## Core tests. ##
1039## ----------- ##
1040
1041_ACEOF
1042
1043
1044# Keep a trace of the command line.
1045# Strip out --no-create and --no-recursion so they do not pile up.
1046# Strip out --silent because we don't want to record it for future runs.
1047# Also quote any args containing shell meta-characters.
1048# Make two passes to allow for proper duplicate-argument suppression.
1049ac_configure_args=
1050ac_configure_args0=
1051ac_configure_args1=
1052ac_sep=
1053ac_must_keep_next=false
1054for ac_pass in 1 2
1055do
1056 for ac_arg
1057 do
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 2)
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1072 else
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1081 ;;
1082 -* ) ac_must_keep_next=true ;;
1083 esac
1084 fi
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
1088 ;;
1089 esac
1090 done
1091done
1092$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095# When interrupted or exit'd, cleanup temporary files, and complete
1096# config.log. We remove comments because anyway the quotes in there
1097# would cause problems or look ugly.
1098# WARNING: Be sure not to use single quotes in there, as some shells,
1099# such as our DU 5.0 friend, will then `close' the trap.
1100trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1102 {
1103 echo
1104
1105 cat <<\_ASBOX
1106## ---------------- ##
1107## Cache variables. ##
1108## ---------------- ##
1109_ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1112{
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 ;;
1120 *)
1121 sed -n \
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 ;;
1124 esac;
1125}
1126 echo
1127
1128 cat <<\_ASBOX
1129## ----------------- ##
1130## Output variables. ##
1131## ----------------- ##
1132_ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1135 do
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1140
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143## ------------- ##
1144## Output files. ##
1145## ------------- ##
1146_ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154 fi
1155
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158## ----------- ##
1159## confdefs.h. ##
1160## ----------- ##
1161_ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1165 fi
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1173 ' 0
1174for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176done
1177ac_signal=0
1178
1179# confdefs.h avoids OS command line length limits that DEFS can exceed.
1180rm -rf conftest* confdefs.h
1181# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182echo >confdefs.h
1183
1184# Predefined preprocessor variables.
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_NAME "$PACKAGE_NAME"
1188_ACEOF
1189
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_VERSION "$PACKAGE_VERSION"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_STRING "$PACKAGE_STRING"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208_ACEOF
1209
1210
1211# Let the site file select an alternate cache file if it wants to.
1212# Prefer explicitly selected file to automatically selected ones.
1213if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 fi
1219fi
1220for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1226 fi
1227done
1228
1229if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1239 fi
1240else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1244fi
1245
1246# Check that the precious variables saved in the cache have kept the same
1247# value.
1248ac_cache_corrupted=false
1249for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1265 *)
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1287 fi
1288done
1289if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1295fi
1296
1297ac_ext=c
1298ac_cpp='$CPP $CPPFLAGS'
1299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
90973b19 1329 ac_config_headers="$ac_config_headers config.h"
1330
1331
1332# For libtool versioning info, format is CURRENT:REVISION:AGE
1333libtool_VERSION=6:0:0
1334
1335
1336# -------
1337# Options
1338# -------
1339
1340echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1341echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1342# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1343if test "${enable_version_specific_runtime_libs+set}" = set; then
1344 enableval="$enable_version_specific_runtime_libs"
1345 case "$enableval" in
1346 yes) version_specific_libs=yes ;;
1347 no) version_specific_libs=no ;;
1348 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1349echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1350 { (exit 1); exit 1; }; };;
1351 esac
1352else
1353 version_specific_libs=no
1354fi;
1355echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1356echo "${ECHO_T}$version_specific_libs" >&6
1357
1358
1359# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1360#
1361# You will slowly go insane if you do not grok the following fact: when
1362# building this library, the top-level /target/ becomes the library's /host/.
1363#
1364# configure then causes --target to default to --host, exactly like any
1365# other package using autoconf. Therefore, 'target' and 'host' will
1366# always be the same. This makes sense both for native and cross compilers
1367# just think about it for a little while. :-)
1368#
1369# Also, if this library is being configured as part of a cross compiler, the
1370# top-level configure script will pass the "real" host as $with_cross_host.
1371#
1372# Do not delete or change the following two lines. For why, see
1373# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
4ee9c684 1374ac_aux_dir=
1375for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1376 if test -f $ac_dir/install-sh; then
1377 ac_aux_dir=$ac_dir
1378 ac_install_sh="$ac_aux_dir/install-sh -c"
1379 break
1380 elif test -f $ac_dir/install.sh; then
1381 ac_aux_dir=$ac_dir
1382 ac_install_sh="$ac_aux_dir/install.sh -c"
1383 break
1384 elif test -f $ac_dir/shtool; then
1385 ac_aux_dir=$ac_dir
1386 ac_install_sh="$ac_aux_dir/shtool install -c"
1387 break
1388 fi
1389done
1390if test -z "$ac_aux_dir"; then
1391 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1392echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1393 { (exit 1); exit 1; }; }
1394fi
1395ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1396ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1397ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1398
90973b19 1399# Make sure we can run config.sub.
1400$ac_config_sub sun4 >/dev/null 2>&1 ||
1401 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1402echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1403 { (exit 1); exit 1; }; }
1404
1405echo "$as_me:$LINENO: checking build system type" >&5
1406echo $ECHO_N "checking build system type... $ECHO_C" >&6
1407if test "${ac_cv_build+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410 ac_cv_build_alias=$build_alias
1411test -z "$ac_cv_build_alias" &&
1412 ac_cv_build_alias=`$ac_config_guess`
1413test -z "$ac_cv_build_alias" &&
1414 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1415echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1416 { (exit 1); exit 1; }; }
1417ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1419echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1421
1422fi
1423echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1424echo "${ECHO_T}$ac_cv_build" >&6
1425build=$ac_cv_build
1426build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429
1430
1431echo "$as_me:$LINENO: checking host system type" >&5
1432echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433if test "${ac_cv_host+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435else
1436 ac_cv_host_alias=$host_alias
1437test -z "$ac_cv_host_alias" &&
1438 ac_cv_host_alias=$ac_cv_build_alias
1439ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1443
1444fi
1445echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1446echo "${ECHO_T}$ac_cv_host" >&6
1447host=$ac_cv_host
1448host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451
1452
1453echo "$as_me:$LINENO: checking target system type" >&5
1454echo $ECHO_N "checking target system type... $ECHO_C" >&6
1455if test "${ac_cv_target+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457else
1458 ac_cv_target_alias=$target_alias
1459test "x$ac_cv_target_alias" = "x" &&
1460 ac_cv_target_alias=$ac_cv_host_alias
1461ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1462 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1463echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1464 { (exit 1); exit 1; }; }
1465
1466fi
1467echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1468echo "${ECHO_T}$ac_cv_target" >&6
1469target=$ac_cv_target
1470target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1473
1474
1475# The aliases save the names the user supplied, while $host etc.
1476# will get canonicalized.
1477test -n "$target_alias" &&
1478 test "$program_prefix$program_suffix$program_transform_name" = \
1479 NONENONEs,x,x, &&
1480 program_prefix=${target_alias}-
1481target_alias=${target_alias-$host_alias}
1482
1483# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1484# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1485# 1.8.2: minimum required version
1486# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1487# of other PACKAGE_* variables will, however, and there's nothing
1488# we can do about that; they come from AC_INIT).
1489# foreign: we don't follow the normal rules for GNU packages (no COPYING
1490# file in the top srcdir, etc, etc), so stop complaining.
1491# no-dependencies: turns off auto dependency generation (just for now)
1492# -Wall: turns on all automake warnings...
1493# -Wno-portability: ...except this one, since GNU make is required.
1494am__api_version="1.8"
4ee9c684 1495# Find a good install program. We prefer a C program (faster),
1496# so one script is as good as another. But avoid the broken or
1497# incompatible versions:
1498# SysV /etc/install, /usr/sbin/install
1499# SunOS /usr/etc/install
1500# IRIX /sbin/install
1501# AIX /bin/install
1502# AmigaOS /C/install, which installs bootblocks on floppy discs
1503# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1504# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1505# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1506# OS/2's system install, which has a completely different semantic
1507# ./install, which can be erroneously created by make from ./install.sh.
1508echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1509echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1510if test -z "$INSTALL"; then
1511if test "${ac_cv_path_install+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 # Account for people who put trailing slashes in PATH elements.
1520case $as_dir/ in
1521 ./ | .// | /cC/* | \
1522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1524 /usr/ucb/* ) ;;
1525 *)
1526 # OSF1 and SCO ODT 3.0 have their own names for install.
1527 # Don't use installbsd from OSF since it installs stuff as root
1528 # by default.
1529 for ac_prog in ginstall scoinst install; do
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1532 if test $ac_prog = install &&
1533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1534 # AIX install. It has an incompatible calling convention.
1535 :
1536 elif test $ac_prog = install &&
1537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1538 # program-specific install script used by HP pwplus--don't use.
1539 :
1540 else
1541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1542 break 3
1543 fi
1544 fi
1545 done
1546 done
1547 ;;
1548esac
1549done
1550
1551
1552fi
1553 if test "${ac_cv_path_install+set}" = set; then
1554 INSTALL=$ac_cv_path_install
1555 else
1556 # As a last resort, use the slow shell script. We don't cache a
1557 # path for INSTALL within a source directory, because that will
1558 # break other packages using the cache if that directory is
1559 # removed, or if the path is relative.
1560 INSTALL=$ac_install_sh
1561 fi
1562fi
1563echo "$as_me:$LINENO: result: $INSTALL" >&5
1564echo "${ECHO_T}$INSTALL" >&6
1565
1566# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1567# It thinks the first close brace ends the variable substitution.
1568test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1569
1570test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1571
1572test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1573
1574echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1575echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1576# Just in case
1577sleep 1
1578echo timestamp > conftest.file
1579# Do `set' in a subshell so we don't clobber the current shell's
1580# arguments. Must try -L first in case configure is actually a
1581# symlink; some systems play weird games with the mod time of symlinks
1582# (eg FreeBSD returns the mod time of the symlink's containing
1583# directory).
1584if (
1585 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1586 if test "$*" = "X"; then
1587 # -L didn't work.
1588 set X `ls -t $srcdir/configure conftest.file`
1589 fi
1590 rm -f conftest.file
1591 if test "$*" != "X $srcdir/configure conftest.file" \
1592 && test "$*" != "X conftest.file $srcdir/configure"; then
1593
1594 # If neither matched, then we have a broken ls. This can happen
1595 # if, for instance, CONFIG_SHELL is bash and it inherits a
1596 # broken ls alias from the environment. This has actually
1597 # happened. Such a system could not be considered "sane".
1598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1599alias in your environment" >&5
1600echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1601alias in your environment" >&2;}
1602 { (exit 1); exit 1; }; }
1603 fi
1604
1605 test "$2" = conftest.file
1606 )
1607then
1608 # Ok.
1609 :
1610else
1611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1612Check your system clock" >&5
1613echo "$as_me: error: newly created file is older than distributed files!
1614Check your system clock" >&2;}
1615 { (exit 1); exit 1; }; }
1616fi
1617echo "$as_me:$LINENO: result: yes" >&5
1618echo "${ECHO_T}yes" >&6
1619test "$program_prefix" != NONE &&
1620 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1621# Use a double $ so make ignores it.
1622test "$program_suffix" != NONE &&
1623 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1624# Double any \ or $. echo might interpret backslashes.
1625# By default was `s,x,x', remove it if useless.
1626cat <<\_ACEOF >conftest.sed
1627s/[\\$]/&&/g;s/;s,x,x,$//
1628_ACEOF
1629program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1630rm conftest.sed
1631
1632# expand $ac_aux_dir to an absolute path
1633am_aux_dir=`cd $ac_aux_dir && pwd`
1634
1635test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1636# Use eval to expand $SHELL
1637if eval "$MISSING --run true"; then
1638 am_missing_run="$MISSING --run "
1639else
1640 am_missing_run=
1641 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1642echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1643fi
1644
cdafa1f6 1645if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4ee9c684 1646 # Keeping the `.' argument allows $(mkdir_p) to be used without
1647 # argument. Indeed, we sometimes output rules like
1648 # $(mkdir_p) $(somedir)
1649 # where $(somedir) is conditionally defined.
1650 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1651 # expensive solution, as it forces Make to start a sub-shell.)
1652 mkdir_p='mkdir -p -- .'
1653else
1654 # On NextStep and OpenStep, the `mkdir' command does not
1655 # recognize any option. It will interpret all options as
1656 # directories to create, and then abort because `.' already
1657 # exists.
cdafa1f6 1658 for d in ./-p ./--version;
4ee9c684 1659 do
1660 test -d $d && rmdir $d
1661 done
1662 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1663 if test -f "$ac_aux_dir/mkinstalldirs"; then
1664 mkdir_p='$(mkinstalldirs)'
1665 else
1666 mkdir_p='$(install_sh) -d'
1667 fi
1668fi
1669
1670for ac_prog in gawk mawk nawk awk
1671do
1672 # Extract the first word of "$ac_prog", so it can be a program name with args.
1673set dummy $ac_prog; ac_word=$2
1674echo "$as_me:$LINENO: checking for $ac_word" >&5
1675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676if test "${ac_cv_prog_AWK+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678else
1679 if test -n "$AWK"; then
1680 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1681else
1682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683for as_dir in $PATH
1684do
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_AWK="$ac_prog"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 break 2
1692 fi
1693done
1694done
1695
1696fi
1697fi
1698AWK=$ac_cv_prog_AWK
1699if test -n "$AWK"; then
1700 echo "$as_me:$LINENO: result: $AWK" >&5
1701echo "${ECHO_T}$AWK" >&6
1702else
1703 echo "$as_me:$LINENO: result: no" >&5
1704echo "${ECHO_T}no" >&6
1705fi
1706
1707 test -n "$AWK" && break
1708done
1709
1710echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1711echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1712set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1713if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716 cat >conftest.make <<\_ACEOF
1717all:
1718 @echo 'ac_maketemp="$(MAKE)"'
1719_ACEOF
1720# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1721eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1722if test -n "$ac_maketemp"; then
1723 eval ac_cv_prog_make_${ac_make}_set=yes
1724else
1725 eval ac_cv_prog_make_${ac_make}_set=no
1726fi
1727rm -f conftest.make
1728fi
1729if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1730 echo "$as_me:$LINENO: result: yes" >&5
1731echo "${ECHO_T}yes" >&6
1732 SET_MAKE=
1733else
1734 echo "$as_me:$LINENO: result: no" >&5
1735echo "${ECHO_T}no" >&6
1736 SET_MAKE="MAKE=${MAKE-make}"
1737fi
1738
1739rm -rf .tst 2>/dev/null
1740mkdir .tst 2>/dev/null
1741if test -d .tst; then
1742 am__leading_dot=.
1743else
1744 am__leading_dot=_
1745fi
1746rmdir .tst 2>/dev/null
1747
1748# test to see if srcdir already configured
1749if test "`cd $srcdir && pwd`" != "`pwd`" &&
1750 test -f $srcdir/config.status; then
1751 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1752echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1753 { (exit 1); exit 1; }; }
1754fi
1755
1756# test whether we have cygpath
1757if test -z "$CYGPATH_W"; then
1758 if (cygpath --version) >/dev/null 2>/dev/null; then
1759 CYGPATH_W='cygpath -w'
1760 else
1761 CYGPATH_W=echo
1762 fi
1763fi
1764
1765
1766# Define the identity of the package.
1767 PACKAGE='libgfortran'
1768 VERSION='0.2'
1769
1770
4ee9c684 1771# Some tools Automake needs.
1772
1773ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1774
1775
1776AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1777
1778
1779AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1780
1781
1782AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1783
1784
1785MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1786
1787
1788AMTAR=${AMTAR-"${am_missing_run}tar"}
1789
1790install_sh=${install_sh-"$am_aux_dir/install-sh"}
1791
1792# Installed binaries are usually stripped using `strip' when the user
1793# run `make install-strip'. However `strip' might not be the right
1794# tool to use in cross-compilation environments, therefore Automake
1795# will honor the `STRIP' environment variable to overrule this program.
1796if test "$cross_compiling" != no; then
1797 if test -n "$ac_tool_prefix"; then
1798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1799set dummy ${ac_tool_prefix}strip; ac_word=$2
1800echo "$as_me:$LINENO: checking for $ac_word" >&5
1801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802if test "${ac_cv_prog_STRIP+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
1805 if test -n "$STRIP"; then
1806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1807else
1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809for as_dir in $PATH
1810do
1811 IFS=$as_save_IFS
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1818 fi
1819done
1820done
1821
1822fi
1823fi
1824STRIP=$ac_cv_prog_STRIP
1825if test -n "$STRIP"; then
1826 echo "$as_me:$LINENO: result: $STRIP" >&5
1827echo "${ECHO_T}$STRIP" >&6
1828else
1829 echo "$as_me:$LINENO: result: no" >&5
1830echo "${ECHO_T}no" >&6
1831fi
1832
1833fi
1834if test -z "$ac_cv_prog_STRIP"; then
1835 ac_ct_STRIP=$STRIP
1836 # Extract the first word of "strip", so it can be a program name with args.
1837set dummy strip; ac_word=$2
1838echo "$as_me:$LINENO: checking for $ac_word" >&5
1839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843 if test -n "$ac_ct_STRIP"; then
1844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1845else
1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847for as_dir in $PATH
1848do
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_ac_ct_STRIP="strip"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1856 fi
1857done
1858done
1859
1860 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1861fi
1862fi
1863ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1864if test -n "$ac_ct_STRIP"; then
1865 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1866echo "${ECHO_T}$ac_ct_STRIP" >&6
1867else
1868 echo "$as_me:$LINENO: result: no" >&5
1869echo "${ECHO_T}no" >&6
1870fi
1871
1872 STRIP=$ac_ct_STRIP
1873else
1874 STRIP="$ac_cv_prog_STRIP"
1875fi
1876
1877fi
1878INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1879
1880# We need awk for the "check" target. The system "awk" is bad on
1881# some platforms.
1882
1883
1884
4ee9c684 1885
1886echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1887echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1888 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1889if test "${enable_maintainer_mode+set}" = set; then
1890 enableval="$enable_maintainer_mode"
1891 USE_MAINTAINER_MODE=$enableval
1892else
1893 USE_MAINTAINER_MODE=no
1894fi;
1895 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1896echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1897
1898
1899if test $USE_MAINTAINER_MODE = yes; then
1900 MAINTAINER_MODE_TRUE=
1901 MAINTAINER_MODE_FALSE='#'
1902else
1903 MAINTAINER_MODE_TRUE='#'
1904 MAINTAINER_MODE_FALSE=
1905fi
1906
1907 MAINT=$MAINTAINER_MODE_TRUE
1908
1909
90973b19 1910# Default to --enable-multilib
1911# Check whether --enable-multilib or --disable-multilib was given.
1912if test "${enable_multilib+set}" = set; then
1913 enableval="$enable_multilib"
1914 case "$enableval" in
1915 yes) multilib=yes ;;
1916 no) multilib=no ;;
1917 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1918echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1919 { (exit 1); exit 1; }; } ;;
1920 esac
1921else
1922 multilib=yes
1923fi;
1924
1925# We may get other options which we leave undocumented:
1926# --with-target-subdir, --with-multisrctop, --with-multisubdir
1927# See config-ml.in if you want the gory details.
1928
1929if test "$srcdir" = "."; then
1930 if test "$with_target_subdir" != "."; then
1931 multi_basedir="$srcdir/$with_multisrctop../.."
1932 else
1933 multi_basedir="$srcdir/$with_multisrctop.."
1934 fi
1935else
1936 multi_basedir="$srcdir/.."
1937fi
1938
1939
1940 ac_config_commands="$ac_config_commands default-1"
1941
1942
1943# Handy for debugging:
1944#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1945
1946# Are we being configured with some form of cross compiler?
1947# NB: We don't actually need to know this just now, but when, say, a test
1948# suite is included, we'll have to know.
1949if test "$build" != "$host"; then
1950 LIBGFOR_IS_NATIVE=false
1951 GCC_NO_EXECUTABLES
1952else
1953 LIBGFOR_IS_NATIVE=true
1954fi
1955
1956# Process the option "--enable-version-specific-runtime-libs"
1957gcc_version_trigger=${srcdir}/../gcc/version.c
1958gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1959gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1960
1961
1962# Calculate toolexeclibdir
1963# Also toolexecdir, though it's only used in toolexeclibdir
1964case ${version_specific_libs} in
1965 yes)
1966 # Need the gcc compiler version to know where to install libraries
1967 # and header files if --enable-version-specific-runtime-libs option
1968 # is selected.
1969 toolexecdir='$(libdir)/gcc/$(target_alias)'
1970 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1971 ;;
1972 no)
1973 if test -n "$with_cross_host" &&
1974 test x"$with_cross_host" != x"no"; then
1975 # Install a library built with a cross compiler in tooldir, not libdir.
1976 toolexecdir='$(exec_prefix)/$(target_alias)'
1977 toolexeclibdir='$(toolexecdir)/lib'
1978 else
1979 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1980 toolexeclibdir='$(libdir)'
1981 fi
1982 multi_os_directory=`$CC -print-multi-os-directory`
1983 case $multi_os_directory in
1984 .) ;; # Avoid trailing /.
1985 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1986 esac
1987 ;;
1988esac
1989
1990
4ee9c684 1991
90973b19 1992# Check the compiler.
1993# The same as in boehm-gc and libstdc++. Have to borrow it from there.
1994# We must force CC to /not/ be precious variables; otherwise
1995# the wrong, non-multilib-adjusted value will be used in multilibs.
1996# As a side effect, we have to subst CFLAGS ourselves.
4ee9c684 1997
1998
1999
4ee9c684 2000ac_ext=c
2001ac_cpp='$CPP $CPPFLAGS'
2002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2026 fi
2027done
2028done
2029
2030fi
2031fi
2032CC=$ac_cv_prog_CC
2033if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035echo "${ECHO_T}$CC" >&6
2036else
2037 echo "$as_me:$LINENO: result: no" >&5
2038echo "${ECHO_T}no" >&6
2039fi
2040
2041fi
2042if test -z "$ac_cv_prog_CC"; then
2043 ac_ct_CC=$CC
2044 # Extract the first word of "gcc", so it can be a program name with args.
2045set dummy gcc; ac_word=$2
2046echo "$as_me:$LINENO: checking for $ac_word" >&5
2047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053else
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_CC="gcc"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2064 fi
2065done
2066done
2067
2068fi
2069fi
2070ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071if test -n "$ac_ct_CC"; then
2072 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073echo "${ECHO_T}$ac_ct_CC" >&6
2074else
2075 echo "$as_me:$LINENO: result: no" >&5
2076echo "${ECHO_T}no" >&6
2077fi
2078
2079 CC=$ac_ct_CC
2080else
2081 CC="$ac_cv_prog_CC"
2082fi
2083
2084if test -z "$CC"; then
2085 if test -n "$ac_tool_prefix"; then
2086 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2087set dummy ${ac_tool_prefix}cc; ac_word=$2
2088echo "$as_me:$LINENO: checking for $ac_word" >&5
2089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090if test "${ac_cv_prog_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092else
2093 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test.
2095else
2096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097for as_dir in $PATH
2098do
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_CC="${ac_tool_prefix}cc"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2106 fi
2107done
2108done
2109
2110fi
2111fi
2112CC=$ac_cv_prog_CC
2113if test -n "$CC"; then
2114 echo "$as_me:$LINENO: result: $CC" >&5
2115echo "${ECHO_T}$CC" >&6
2116else
2117 echo "$as_me:$LINENO: result: no" >&5
2118echo "${ECHO_T}no" >&6
2119fi
2120
2121fi
2122if test -z "$ac_cv_prog_CC"; then
2123 ac_ct_CC=$CC
2124 # Extract the first word of "cc", so it can be a program name with args.
2125set dummy cc; ac_word=$2
2126echo "$as_me:$LINENO: checking for $ac_word" >&5
2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131 if test -n "$ac_ct_CC"; then
2132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133else
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_ac_ct_CC="cc"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2144 fi
2145done
2146done
2147
2148fi
2149fi
2150ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151if test -n "$ac_ct_CC"; then
2152 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153echo "${ECHO_T}$ac_ct_CC" >&6
2154else
2155 echo "$as_me:$LINENO: result: no" >&5
2156echo "${ECHO_T}no" >&6
2157fi
2158
2159 CC=$ac_ct_CC
2160else
2161 CC="$ac_cv_prog_CC"
2162fi
2163
2164fi
2165if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167set dummy cc; ac_word=$2
2168echo "$as_me:$LINENO: checking for $ac_word" >&5
2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175else
2176 ac_prog_rejected=no
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2187 fi
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2191 fi
2192done
2193done
2194
2195if test $ac_prog_rejected = yes; then
2196 # We found a bogon in the path, so make sure we never use it.
2197 set dummy $ac_cv_prog_CC
2198 shift
2199 if test $# != 0; then
2200 # We chose a different compiler from the bogus one.
2201 # However, it has the same basename, so the bogon will be chosen
2202 # first if we set CC to just the basename; use the full file name.
2203 shift
2204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2205 fi
2206fi
2207fi
2208fi
2209CC=$ac_cv_prog_CC
2210if test -n "$CC"; then
2211 echo "$as_me:$LINENO: result: $CC" >&5
2212echo "${ECHO_T}$CC" >&6
2213else
2214 echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6
2216fi
2217
2218fi
2219if test -z "$CC"; then
2220 if test -n "$ac_tool_prefix"; then
2221 for ac_prog in cl
2222 do
2223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2225echo "$as_me:$LINENO: checking for $ac_word" >&5
2226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2227if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232else
2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234for as_dir in $PATH
2235do
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2243 fi
2244done
2245done
2246
2247fi
2248fi
2249CC=$ac_cv_prog_CC
2250if test -n "$CC"; then
2251 echo "$as_me:$LINENO: result: $CC" >&5
2252echo "${ECHO_T}$CC" >&6
2253else
2254 echo "$as_me:$LINENO: result: no" >&5
2255echo "${ECHO_T}no" >&6
2256fi
2257
2258 test -n "$CC" && break
2259 done
2260fi
2261if test -z "$CC"; then
2262 ac_ct_CC=$CC
2263 for ac_prog in cl
2264do
2265 # Extract the first word of "$ac_prog", so it can be a program name with args.
2266set dummy $ac_prog; ac_word=$2
2267echo "$as_me:$LINENO: checking for $ac_word" >&5
2268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271else
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274else
2275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276for as_dir in $PATH
2277do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_ac_ct_CC="$ac_prog"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2285 fi
2286done
2287done
2288
2289fi
2290fi
2291ac_ct_CC=$ac_cv_prog_ac_ct_CC
2292if test -n "$ac_ct_CC"; then
2293 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2294echo "${ECHO_T}$ac_ct_CC" >&6
2295else
2296 echo "$as_me:$LINENO: result: no" >&5
2297echo "${ECHO_T}no" >&6
2298fi
2299
2300 test -n "$ac_ct_CC" && break
2301done
2302
2303 CC=$ac_ct_CC
2304fi
2305
2306fi
2307
2308
2309test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2310See \`config.log' for more details." >&5
2311echo "$as_me: error: no acceptable C compiler found in \$PATH
2312See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2314
2315# Provide some information about the compiler.
2316echo "$as_me:$LINENO:" \
2317 "checking for C compiler version" >&5
2318ac_compiler=`set X $ac_compile; echo $2`
2319{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2320 (eval $ac_compiler --version </dev/null >&5) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }
2324{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2325 (eval $ac_compiler -v </dev/null >&5) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2329{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2330 (eval $ac_compiler -V </dev/null >&5) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2334
2335cat >conftest.$ac_ext <<_ACEOF
2336/* confdefs.h. */
2337_ACEOF
2338cat confdefs.h >>conftest.$ac_ext
2339cat >>conftest.$ac_ext <<_ACEOF
2340/* end confdefs.h. */
2341
2342int
2343main ()
2344{
2345
2346 ;
2347 return 0;
2348}
2349_ACEOF
2350ac_clean_files_save=$ac_clean_files
2351ac_clean_files="$ac_clean_files a.out a.exe b.out"
2352# Try to create an executable without -o first, disregard a.out.
2353# It will help us diagnose broken compilers, and finding out an intuition
2354# of exeext.
2355echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2356echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2357ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2358if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2359 (eval $ac_link_default) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; then
2363 # Find the output, starting from the most likely. This scheme is
2364# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2365# resort.
2366
2367# Be careful to initialize this variable, since it used to be cached.
2368# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2369ac_cv_exeext=
2370# b.out is created by i960 compilers.
2371for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2372do
2373 test -f "$ac_file" || continue
2374 case $ac_file in
2375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2376 ;;
2377 conftest.$ac_ext )
2378 # This is the source file.
2379 ;;
2380 [ab].out )
2381 # We found the default executable, but exeext='' is most
2382 # certainly right.
2383 break;;
2384 *.* )
2385 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2386 # FIXME: I believe we export ac_cv_exeext for Libtool,
2387 # but it would be cool to find out if it's true. Does anybody
2388 # maintain Libtool? --akim.
2389 export ac_cv_exeext
2390 break;;
2391 * )
2392 break;;
2393 esac
2394done
2395else
2396 echo "$as_me: failed program was:" >&5
2397sed 's/^/| /' conftest.$ac_ext >&5
2398
2399{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2400See \`config.log' for more details." >&5
2401echo "$as_me: error: C compiler cannot create executables
2402See \`config.log' for more details." >&2;}
2403 { (exit 77); exit 77; }; }
2404fi
2405
2406ac_exeext=$ac_cv_exeext
2407echo "$as_me:$LINENO: result: $ac_file" >&5
2408echo "${ECHO_T}$ac_file" >&6
2409
2410# Check the compiler produces executables we can run. If not, either
2411# the compiler is broken, or we cross compile.
2412echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2413echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2414# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2415# If not cross compiling, check that we can run a simple program.
2416if test "$cross_compiling" != yes; then
2417 if { ac_try='./$ac_file'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 cross_compiling=no
2424 else
2425 if test "$cross_compiling" = maybe; then
2426 cross_compiling=yes
2427 else
2428 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2429If you meant to cross compile, use \`--host'.
2430See \`config.log' for more details." >&5
2431echo "$as_me: error: cannot run C compiled programs.
2432If you meant to cross compile, use \`--host'.
2433See \`config.log' for more details." >&2;}
2434 { (exit 1); exit 1; }; }
2435 fi
2436 fi
2437fi
2438echo "$as_me:$LINENO: result: yes" >&5
2439echo "${ECHO_T}yes" >&6
2440
2441rm -f a.out a.exe conftest$ac_cv_exeext b.out
2442ac_clean_files=$ac_clean_files_save
2443# Check the compiler produces executables we can run. If not, either
2444# the compiler is broken, or we cross compile.
2445echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2446echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2447echo "$as_me:$LINENO: result: $cross_compiling" >&5
2448echo "${ECHO_T}$cross_compiling" >&6
2449
2450echo "$as_me:$LINENO: checking for suffix of executables" >&5
2451echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2453 (eval $ac_link) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; then
2457 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2458# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2459# work properly (i.e., refer to `conftest.exe'), while it won't with
2460# `rm'.
2461for ac_file in conftest.exe conftest conftest.*; do
2462 test -f "$ac_file" || continue
2463 case $ac_file in
2464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2466 export ac_cv_exeext
2467 break;;
2468 * ) break;;
2469 esac
2470done
2471else
2472 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2473See \`config.log' for more details." >&5
2474echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2475See \`config.log' for more details." >&2;}
2476 { (exit 1); exit 1; }; }
2477fi
2478
2479rm -f conftest$ac_cv_exeext
2480echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2481echo "${ECHO_T}$ac_cv_exeext" >&6
2482
2483rm -f conftest.$ac_ext
2484EXEEXT=$ac_cv_exeext
2485ac_exeext=$EXEEXT
2486echo "$as_me:$LINENO: checking for suffix of object files" >&5
2487echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2488if test "${ac_cv_objext+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491 cat >conftest.$ac_ext <<_ACEOF
2492/* confdefs.h. */
2493_ACEOF
2494cat confdefs.h >>conftest.$ac_ext
2495cat >>conftest.$ac_ext <<_ACEOF
2496/* end confdefs.h. */
2497
2498int
2499main ()
2500{
2501
2502 ;
2503 return 0;
2504}
2505_ACEOF
2506rm -f conftest.o conftest.obj
2507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; then
2512 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2513 case $ac_file in
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2515 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2516 break;;
2517 esac
2518done
2519else
2520 echo "$as_me: failed program was:" >&5
2521sed 's/^/| /' conftest.$ac_ext >&5
2522
2523{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2524See \`config.log' for more details." >&5
2525echo "$as_me: error: cannot compute suffix of object files: cannot compile
2526See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }
2528fi
2529
2530rm -f conftest.$ac_cv_objext conftest.$ac_ext
2531fi
2532echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2533echo "${ECHO_T}$ac_cv_objext" >&6
2534OBJEXT=$ac_cv_objext
2535ac_objext=$OBJEXT
2536echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2538if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541 cat >conftest.$ac_ext <<_ACEOF
2542/* confdefs.h. */
2543_ACEOF
2544cat confdefs.h >>conftest.$ac_ext
2545cat >>conftest.$ac_ext <<_ACEOF
2546/* end confdefs.h. */
2547
2548int
2549main ()
2550{
2551#ifndef __GNUC__
2552 choke me
2553#endif
2554
2555 ;
2556 return 0;
2557}
2558_ACEOF
2559rm -f conftest.$ac_objext
2560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2562 ac_status=$?
2563 grep -v '^ *+' conftest.er1 >conftest.err
2564 rm -f conftest.er1
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
a31bd8a4 2568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; } &&
2574 { ac_try='test -s conftest.$ac_objext'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2580 ac_compiler_gnu=yes
2581else
2582 echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585ac_compiler_gnu=no
2586fi
2587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588ac_cv_c_compiler_gnu=$ac_compiler_gnu
2589
2590fi
2591echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2592echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2593GCC=`test $ac_compiler_gnu = yes && echo yes`
2594ac_test_CFLAGS=${CFLAGS+set}
2595ac_save_CFLAGS=$CFLAGS
2596CFLAGS="-g"
2597echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2598echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2599if test "${ac_cv_prog_cc_g+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601else
2602 cat >conftest.$ac_ext <<_ACEOF
2603/* confdefs.h. */
2604_ACEOF
2605cat confdefs.h >>conftest.$ac_ext
2606cat >>conftest.$ac_ext <<_ACEOF
2607/* end confdefs.h. */
2608
2609int
2610main ()
2611{
2612
2613 ;
2614 return 0;
2615}
2616_ACEOF
2617rm -f conftest.$ac_objext
2618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
a31bd8a4 2626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 ac_cv_prog_cc_g=yes
2639else
2640 echo "$as_me: failed program was:" >&5
2641sed 's/^/| /' conftest.$ac_ext >&5
2642
2643ac_cv_prog_cc_g=no
2644fi
2645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646fi
2647echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2648echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2649if test "$ac_test_CFLAGS" = set; then
2650 CFLAGS=$ac_save_CFLAGS
2651elif test $ac_cv_prog_cc_g = yes; then
2652 if test "$GCC" = yes; then
2653 CFLAGS="-g -O2"
2654 else
2655 CFLAGS="-g"
2656 fi
2657else
2658 if test "$GCC" = yes; then
2659 CFLAGS="-O2"
2660 else
2661 CFLAGS=
2662 fi
2663fi
2664echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2665echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2666if test "${ac_cv_prog_cc_stdc+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
2669 ac_cv_prog_cc_stdc=no
2670ac_save_CC=$CC
2671cat >conftest.$ac_ext <<_ACEOF
2672/* confdefs.h. */
2673_ACEOF
2674cat confdefs.h >>conftest.$ac_ext
2675cat >>conftest.$ac_ext <<_ACEOF
2676/* end confdefs.h. */
2677#include <stdarg.h>
2678#include <stdio.h>
2679#include <sys/types.h>
2680#include <sys/stat.h>
2681/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2682struct buf { int x; };
2683FILE * (*rcsopen) (struct buf *, struct stat *, int);
2684static char *e (p, i)
2685 char **p;
2686 int i;
2687{
2688 return p[i];
2689}
2690static char *f (char * (*g) (char **, int), char **p, ...)
2691{
2692 char *s;
2693 va_list v;
2694 va_start (v,p);
2695 s = g (p, va_arg (v,int));
2696 va_end (v);
2697 return s;
2698}
2699
2700/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2701 function prototypes and stuff, but not '\xHH' hex character constants.
2702 These don't provoke an error unfortunately, instead are silently treated
2703 as 'x'. The following induces an error, until -std1 is added to get
2704 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2705 array size at least. It's necessary to write '\x00'==0 to get something
2706 that's true only with -std1. */
2707int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2708
2709int test (int i, double x);
2710struct s1 {int (*f) (int a);};
2711struct s2 {int (*f) (double a);};
2712int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2713int argc;
2714char **argv;
2715int
2716main ()
2717{
2718return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2719 ;
2720 return 0;
2721}
2722_ACEOF
2723# Don't try gcc -ansi; that turns off useful extensions and
2724# breaks some systems' header files.
2725# AIX -qlanglvl=ansi
2726# Ultrix and OSF/1 -std1
2727# HP-UX 10.20 and later -Ae
2728# HP-UX older versions -Aa -D_HPUX_SOURCE
2729# SVR4 -Xc -D__EXTENSIONS__
2730for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2731do
2732 CC="$ac_save_CC $ac_arg"
2733 rm -f conftest.$ac_objext
2734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
a31bd8a4 2742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_cv_prog_cc_stdc=$ac_arg
2755break
2756else
2757 echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760fi
2761rm -f conftest.err conftest.$ac_objext
2762done
2763rm -f conftest.$ac_ext conftest.$ac_objext
2764CC=$ac_save_CC
2765
2766fi
2767
2768case "x$ac_cv_prog_cc_stdc" in
2769 x|xno)
2770 echo "$as_me:$LINENO: result: none needed" >&5
2771echo "${ECHO_T}none needed" >&6 ;;
2772 *)
2773 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2774echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2775 CC="$CC $ac_cv_prog_cc_stdc" ;;
2776esac
2777
2778# Some people use a C++ compiler to compile C. Since we use `exit',
2779# in C++ we need to declare it. In case someone uses the same compiler
2780# for both compiling C and C++ we need to have the C++ compiler decide
2781# the declaration of exit, since it's the most demanding environment.
2782cat >conftest.$ac_ext <<_ACEOF
2783#ifndef __cplusplus
2784 choke me
2785#endif
2786_ACEOF
2787rm -f conftest.$ac_objext
2788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
a31bd8a4 2796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 for ac_declaration in \
2809 '' \
2810 'extern "C" void std::exit (int) throw (); using std::exit;' \
2811 'extern "C" void std::exit (int); using std::exit;' \
2812 'extern "C" void exit (int) throw ();' \
2813 'extern "C" void exit (int);' \
2814 'void exit (int);'
2815do
2816 cat >conftest.$ac_ext <<_ACEOF
2817/* confdefs.h. */
2818_ACEOF
2819cat confdefs.h >>conftest.$ac_ext
2820cat >>conftest.$ac_ext <<_ACEOF
2821/* end confdefs.h. */
2822$ac_declaration
2823#include <stdlib.h>
2824int
2825main ()
2826{
2827exit (42);
2828 ;
2829 return 0;
2830}
2831_ACEOF
2832rm -f conftest.$ac_objext
2833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2834 (eval $ac_compile) 2>conftest.er1
2835 ac_status=$?
2836 grep -v '^ *+' conftest.er1 >conftest.err
2837 rm -f conftest.er1
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
a31bd8a4 2841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 :
2854else
2855 echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858continue
2859fi
2860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 cat >conftest.$ac_ext <<_ACEOF
2862/* confdefs.h. */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h. */
2867$ac_declaration
2868int
2869main ()
2870{
2871exit (42);
2872 ;
2873 return 0;
2874}
2875_ACEOF
2876rm -f conftest.$ac_objext
2877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>conftest.er1
2879 ac_status=$?
2880 grep -v '^ *+' conftest.er1 >conftest.err
2881 rm -f conftest.er1
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
a31bd8a4 2885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; } &&
2891 { ac_try='test -s conftest.$ac_objext'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2897 break
2898else
2899 echo "$as_me: failed program was:" >&5
2900sed 's/^/| /' conftest.$ac_ext >&5
2901
2902fi
2903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904done
2905rm -f conftest*
2906if test -n "$ac_declaration"; then
2907 echo '#ifdef __cplusplus' >>confdefs.h
2908 echo $ac_declaration >>confdefs.h
2909 echo '#endif' >>confdefs.h
2910fi
2911
2912else
2913 echo "$as_me: failed program was:" >&5
2914sed 's/^/| /' conftest.$ac_ext >&5
2915
2916fi
2917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918ac_ext=c
2919ac_cpp='$CPP $CPPFLAGS'
2920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ee9c684 2923
4ee9c684 2924
4ee9c684 2925
4ee9c684 2926
2927
90973b19 2928# Add -Wall if we are using GCC.
2929if test "x$GCC" = "xyes"; then
2930 CFLAGS="$CFLAGS -Wall"
4ee9c684 2931fi
2932
90973b19 2933# Find other programs we need.
2934if test -n "$ac_tool_prefix"; then
2935 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2936set dummy ${ac_tool_prefix}as; ac_word=$2
2937echo "$as_me:$LINENO: checking for $ac_word" >&5
2938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2939if test "${ac_cv_prog_AS+set}" = set; then
4ee9c684 2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941else
90973b19 2942 if test -n "$AS"; then
2943 ac_cv_prog_AS="$AS" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_AS="${ac_tool_prefix}as"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
4ee9c684 2955 fi
90973b19 2956done
2957done
4ee9c684 2958
90973b19 2959fi
2960fi
2961AS=$ac_cv_prog_AS
2962if test -n "$AS"; then
2963 echo "$as_me:$LINENO: result: $AS" >&5
2964echo "${ECHO_T}$AS" >&6
4ee9c684 2965else
90973b19 2966 echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
4ee9c684 2968fi
2969
2970fi
90973b19 2971if test -z "$ac_cv_prog_AS"; then
2972 ac_ct_AS=$AS
2973 # Extract the first word of "as", so it can be a program name with args.
2974set dummy as; ac_word=$2
2975echo "$as_me:$LINENO: checking for $ac_word" >&5
2976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980 if test -n "$ac_ct_AS"; then
2981 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_ac_ct_AS="as"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994done
2995done
4ee9c684 2996
90973b19 2997fi
2998fi
2999ac_ct_AS=$ac_cv_prog_ac_ct_AS
3000if test -n "$ac_ct_AS"; then
3001 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3002echo "${ECHO_T}$ac_ct_AS" >&6
4ee9c684 3003else
90973b19 3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
4ee9c684 3006fi
3007
90973b19 3008 AS=$ac_ct_AS
3009else
3010 AS="$ac_cv_prog_AS"
4ee9c684 3011fi
3012
4ee9c684 3013if test -n "$ac_tool_prefix"; then
90973b19 3014 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3015set dummy ${ac_tool_prefix}ar; ac_word=$2
4ee9c684 3016echo "$as_me:$LINENO: checking for $ac_word" >&5
3017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
90973b19 3018if test "${ac_cv_prog_AR+set}" = set; then
4ee9c684 3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
90973b19 3021 if test -n "$AR"; then
3022 ac_cv_prog_AR="$AR" # Let the user override the test.
4ee9c684 3023else
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 3031 ac_cv_prog_AR="${ac_tool_prefix}ar"
4ee9c684 3032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035done
3036done
3037
3038fi
3039fi
90973b19 3040AR=$ac_cv_prog_AR
3041if test -n "$AR"; then
3042 echo "$as_me:$LINENO: result: $AR" >&5
3043echo "${ECHO_T}$AR" >&6
4ee9c684 3044else
3045 echo "$as_me:$LINENO: result: no" >&5
3046echo "${ECHO_T}no" >&6
3047fi
3048
4ee9c684 3049fi
90973b19 3050if test -z "$ac_cv_prog_AR"; then
3051 ac_ct_AR=$AR
3052 # Extract the first word of "ar", so it can be a program name with args.
3053set dummy ar; ac_word=$2
4ee9c684 3054echo "$as_me:$LINENO: checking for $ac_word" >&5
3055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
90973b19 3056if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4ee9c684 3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
90973b19 3059 if test -n "$ac_ct_AR"; then
3060 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4ee9c684 3061else
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 3069 ac_cv_prog_ac_ct_AR="ar"
4ee9c684 3070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3072 fi
3073done
3074done
3075
3076fi
3077fi
90973b19 3078ac_ct_AR=$ac_cv_prog_ac_ct_AR
3079if test -n "$ac_ct_AR"; then
3080 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3081echo "${ECHO_T}$ac_ct_AR" >&6
4ee9c684 3082else
3083 echo "$as_me:$LINENO: result: no" >&5
3084echo "${ECHO_T}no" >&6
3085fi
3086
90973b19 3087 AR=$ac_ct_AR
3088else
3089 AR="$ac_cv_prog_AR"
4ee9c684 3090fi
3091
90973b19 3092if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3094set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3095echo "$as_me:$LINENO: checking for $ac_word" >&5
3096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3097if test "${ac_cv_prog_RANLIB+set}" = set; then
4ee9c684 3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
90973b19 3100 if test -n "$RANLIB"; then
3101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4ee9c684 3102else
90973b19 3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114done
3115done
4ee9c684 3116
4ee9c684 3117fi
90973b19 3118fi
3119RANLIB=$ac_cv_prog_RANLIB
3120if test -n "$RANLIB"; then
3121 echo "$as_me:$LINENO: result: $RANLIB" >&5
3122echo "${ECHO_T}$RANLIB" >&6
3123else
3124 echo "$as_me:$LINENO: result: no" >&5
3125echo "${ECHO_T}no" >&6
3126fi
4ee9c684 3127
3128fi
90973b19 3129if test -z "$ac_cv_prog_RANLIB"; then
3130 ac_ct_RANLIB=$RANLIB
3131 # Extract the first word of "ranlib", so it can be a program name with args.
3132set dummy ranlib; ac_word=$2
3133echo "$as_me:$LINENO: checking for $ac_word" >&5
3134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3135if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4ee9c684 3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137else
90973b19 3138 if test -n "$ac_ct_RANLIB"; then
3139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4ee9c684 3140else
90973b19 3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_ac_ct_RANLIB="ranlib"
3149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152done
3153done
4ee9c684 3154
90973b19 3155 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
4ee9c684 3156fi
4ee9c684 3157fi
90973b19 3158ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3159if test -n "$ac_ct_RANLIB"; then
3160 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3161echo "${ECHO_T}$ac_ct_RANLIB" >&6
4ee9c684 3162else
90973b19 3163 echo "$as_me:$LINENO: result: no" >&5
3164echo "${ECHO_T}no" >&6
4ee9c684 3165fi
3166
90973b19 3167 RANLIB=$ac_ct_RANLIB
3168else
3169 RANLIB="$ac_cv_prog_RANLIB"
4ee9c684 3170fi
90973b19 3171
3172echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3173echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3174set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3175if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4ee9c684 3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177else
90973b19 3178 cat >conftest.make <<\_ACEOF
3179all:
3180 @echo 'ac_maketemp="$(MAKE)"'
4ee9c684 3181_ACEOF
90973b19 3182# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3183eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3184if test -n "$ac_maketemp"; then
3185 eval ac_cv_prog_make_${ac_make}_set=yes
4ee9c684 3186else
90973b19 3187 eval ac_cv_prog_make_${ac_make}_set=no
4ee9c684 3188fi
90973b19 3189rm -f conftest.make
3190fi
3191if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3192 echo "$as_me:$LINENO: result: yes" >&5
3193echo "${ECHO_T}yes" >&6
3194 SET_MAKE=
4ee9c684 3195else
90973b19 3196 echo "$as_me:$LINENO: result: no" >&5
3197echo "${ECHO_T}no" >&6
3198 SET_MAKE="MAKE=${MAKE-make}"
4ee9c684 3199fi
4ee9c684 3200
90973b19 3201# Find a good install program. We prefer a C program (faster),
3202# so one script is as good as another. But avoid the broken or
3203# incompatible versions:
3204# SysV /etc/install, /usr/sbin/install
3205# SunOS /usr/etc/install
3206# IRIX /sbin/install
3207# AIX /bin/install
3208# AmigaOS /C/install, which installs bootblocks on floppy discs
3209# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3210# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3211# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3212# OS/2's system install, which has a completely different semantic
3213# ./install, which can be erroneously created by make from ./install.sh.
3214echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3215echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3216if test -z "$INSTALL"; then
3217if test "${ac_cv_path_install+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee9c684 3219else
90973b19 3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221for as_dir in $PATH
3222do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 # Account for people who put trailing slashes in PATH elements.
3226case $as_dir/ in
3227 ./ | .// | /cC/* | \
3228 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3229 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3230 /usr/ucb/* ) ;;
3231 *)
3232 # OSF1 and SCO ODT 3.0 have their own names for install.
3233 # Don't use installbsd from OSF since it installs stuff as root
3234 # by default.
3235 for ac_prog in ginstall scoinst install; do
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3238 if test $ac_prog = install &&
3239 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3240 # AIX install. It has an incompatible calling convention.
3241 :
3242 elif test $ac_prog = install &&
3243 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3244 # program-specific install script used by HP pwplus--don't use.
3245 :
3246 else
3247 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3248 break 3
3249 fi
3250 fi
3251 done
3252 done
3253 ;;
3254esac
4ee9c684 3255done
4ee9c684 3256
4ee9c684 3257
3258fi
90973b19 3259 if test "${ac_cv_path_install+set}" = set; then
3260 INSTALL=$ac_cv_path_install
4ee9c684 3261 else
90973b19 3262 # As a last resort, use the slow shell script. We don't cache a
3263 # path for INSTALL within a source directory, because that will
3264 # break other packages using the cache if that directory is
3265 # removed, or if the path is relative.
3266 INSTALL=$ac_install_sh
4ee9c684 3267 fi
4ee9c684 3268fi
90973b19 3269echo "$as_me:$LINENO: result: $INSTALL" >&5
3270echo "${ECHO_T}$INSTALL" >&6
4ee9c684 3271
90973b19 3272# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3273# It thinks the first close brace ends the variable substitution.
3274test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4ee9c684 3275
90973b19 3276test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4ee9c684 3277
90973b19 3278test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4ee9c684 3279
4ee9c684 3280
90973b19 3281# Configure libtool
3282#AC_MSG_NOTICE([====== Starting libtool configuration])
4ee9c684 3283
90973b19 3284# Check whether --enable-shared or --disable-shared was given.
3285if test "${enable_shared+set}" = set; then
3286 enableval="$enable_shared"
3287 p=${PACKAGE-default}
3288case $enableval in
3289yes) enable_shared=yes ;;
3290no) enable_shared=no ;;
3291*)
3292 enable_shared=no
3293 # Look at the argument we got. We use all the common list separators.
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3295 for pkg in $enableval; do
3296 if test "X$pkg" = "X$p"; then
3297 enable_shared=yes
4ee9c684 3298 fi
90973b19 3299 done
3300 IFS="$ac_save_ifs"
3301 ;;
3302esac
4ee9c684 3303else
90973b19 3304 enable_shared=yes
3305fi;
3306# Check whether --enable-static or --disable-static was given.
3307if test "${enable_static+set}" = set; then
3308 enableval="$enable_static"
3309 p=${PACKAGE-default}
3310case $enableval in
3311yes) enable_static=yes ;;
3312no) enable_static=no ;;
3313*)
3314 enable_static=no
3315 # Look at the argument we got. We use all the common list separators.
3316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3317 for pkg in $enableval; do
3318 if test "X$pkg" = "X$p"; then
3319 enable_static=yes
3320 fi
3321 done
3322 IFS="$ac_save_ifs"
3323 ;;
3324esac
3325else
3326 enable_static=yes
3327fi;
3328# Check whether --enable-fast-install or --disable-fast-install was given.
3329if test "${enable_fast_install+set}" = set; then
3330 enableval="$enable_fast_install"
3331 p=${PACKAGE-default}
3332case $enableval in
3333yes) enable_fast_install=yes ;;
3334no) enable_fast_install=no ;;
3335*)
3336 enable_fast_install=no
3337 # Look at the argument we got. We use all the common list separators.
3338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3339 for pkg in $enableval; do
3340 if test "X$pkg" = "X$p"; then
3341 enable_fast_install=yes
3342 fi
3343 done
3344 IFS="$ac_save_ifs"
3345 ;;
3346esac
3347else
3348 enable_fast_install=yes
3349fi;
4ee9c684 3350
90973b19 3351# Check whether --with-gnu-ld or --without-gnu-ld was given.
3352if test "${with_gnu_ld+set}" = set; then
3353 withval="$with_gnu_ld"
3354 test "$withval" = no || with_gnu_ld=yes
3355else
3356 with_gnu_ld=no
3357fi;
3358ac_prog=ld
3359if test "$GCC" = yes; then
3360 # Check if gcc -print-prog-name=ld gives a path.
3361 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3362echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3363 case $host in
3364 *-*-mingw*)
3365 # gcc leaves a trailing carriage return which upsets mingw
3366 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3367 *)
3368 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3369 esac
3370 case $ac_prog in
3371 # Accept absolute paths.
3372 [\\/]* | [A-Za-z]:[\\/]*)
3373 re_direlt='/[^/][^/]*/\.\./'
3374 # Canonicalize the path of ld
3375 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3376 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3377 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3378 done
3379 test -z "$LD" && LD="$ac_prog"
3380 ;;
3381 "")
3382 # If it fails, then pretend we aren't using GCC.
3383 ac_prog=ld
3384 ;;
3385 *)
3386 # If it is relative, then search for the first ld in PATH.
3387 with_gnu_ld=unknown
3388 ;;
3389 esac
3390elif test "$with_gnu_ld" = yes; then
3391 echo "$as_me:$LINENO: checking for GNU ld" >&5
3392echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3393else
3394 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3395echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3396fi
3397if test "${lt_cv_path_LD+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 if test -z "$LD"; then
3401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3402 for ac_dir in $PATH; do
3403 test -z "$ac_dir" && ac_dir=.
3404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3405 lt_cv_path_LD="$ac_dir/$ac_prog"
3406 # Check to see if the program is GNU ld. I'd rather use --version,
3407 # but apparently some GNU ld's only accept -v.
3408 # Break only if it was the GNU/non-GNU ld that we prefer.
3409 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3410 test "$with_gnu_ld" != no && break
3411 else
3412 test "$with_gnu_ld" != yes && break
3413 fi
3414 fi
3415 done
3416 IFS="$ac_save_ifs"
3417else
3418 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3419fi
3420fi
3421
3422LD="$lt_cv_path_LD"
3423if test -n "$LD"; then
3424 echo "$as_me:$LINENO: result: $LD" >&5
3425echo "${ECHO_T}$LD" >&6
3426else
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
3429fi
3430test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3431echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3432 { (exit 1); exit 1; }; }
3433echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3434echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3435if test "${lt_cv_prog_gnu_ld+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3439if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3440 lt_cv_prog_gnu_ld=yes
3441else
3442 lt_cv_prog_gnu_ld=no
3443fi
3444fi
3445echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3446echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3447with_gnu_ld=$lt_cv_prog_gnu_ld
3448
3449
3450echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3451echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3452if test "${lt_cv_ld_reload_flag+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455 lt_cv_ld_reload_flag='-r'
3456fi
3457echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3458echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3459reload_flag=$lt_cv_ld_reload_flag
3460test -n "$reload_flag" && reload_flag=" $reload_flag"
3461
3462echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3463echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3464if test "${lt_cv_path_NM+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3466else
3467 if test -n "$NM"; then
3468 # Let the user override the test.
3469 lt_cv_path_NM="$NM"
3470else
3471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3472 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3473 test -z "$ac_dir" && ac_dir=.
3474 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3475 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3476 # Check to see if the nm accepts a BSD-compat flag.
3477 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3478 # nm: unknown option "B" ignored
3479 # Tru64's nm complains that /dev/null is an invalid object file
3480 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3481 lt_cv_path_NM="$tmp_nm -B"
3482 break
3483 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3484 lt_cv_path_NM="$tmp_nm -p"
3485 break
3486 else
3487 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3488 continue # so that we can try to find one that supports BSD flags
3489 fi
3490 fi
3491 done
3492 IFS="$ac_save_ifs"
3493 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3494fi
3495fi
3496
3497NM="$lt_cv_path_NM"
3498echo "$as_me:$LINENO: result: $NM" >&5
3499echo "${ECHO_T}$NM" >&6
3500
3501echo "$as_me:$LINENO: checking whether ln -s works" >&5
3502echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3503LN_S=$as_ln_s
3504if test "$LN_S" = "ln -s"; then
3505 echo "$as_me:$LINENO: result: yes" >&5
3506echo "${ECHO_T}yes" >&6
3507else
3508 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3509echo "${ECHO_T}no, using $LN_S" >&6
3510fi
3511
3512echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3513echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3514if test "${lt_cv_deplibs_check_method+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517 lt_cv_file_magic_cmd='$MAGIC_CMD'
3518lt_cv_file_magic_test_file=
3519lt_cv_deplibs_check_method='unknown'
3520# Need to set the preceding variable on all platforms that support
3521# interlibrary dependencies.
3522# 'none' -- dependencies not supported.
3523# `unknown' -- same as none, but documents that we really don't know.
3524# 'pass_all' -- all dependencies passed with no checks.
3525# 'test_compile' -- check by making test program.
3526# 'file_magic [regex]' -- check by looking for files in library path
3527# which responds to the $file_magic_cmd with a given egrep regex.
3528# If you have `file' or equivalent on your system and you're not sure
3529# whether `pass_all' will *always* work, you probably want this one.
3530
3531case $host_os in
3532aix*)
3533 lt_cv_deplibs_check_method=pass_all
3534 ;;
3535
3536beos*)
3537 lt_cv_deplibs_check_method=pass_all
3538 ;;
3539
3540bsdi4*)
3541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3542 lt_cv_file_magic_cmd='/usr/bin/file -L'
3543 lt_cv_file_magic_test_file=/shlib/libc.so
3544 ;;
3545
3546cygwin* | mingw* |pw32*)
3547 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3548 lt_cv_file_magic_cmd='$OBJDUMP -f'
3549 ;;
3550
3551darwin* | rhapsody*)
3552 # this will be overwritten by pass_all, but leave it in just in case
3553 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3554 lt_cv_file_magic_cmd='/usr/bin/file -L'
3555 case "$host_os" in
3556 rhapsody* | darwin1.012)
3557 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3558 ;;
3559 *) # Darwin 1.3 on
3560 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3561 ;;
3562 esac
3563 lt_cv_deplibs_check_method=pass_all
3564 ;;
3565
3566freebsd* | kfreebsd*-gnu)
3567 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3568 case $host_cpu in
3569 i*86 )
3570 # Not sure whether the presence of OpenBSD here was a mistake.
3571 # Let's accept both of them until this is cleared up.
3572 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3573 lt_cv_file_magic_cmd=/usr/bin/file
3574 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3575 ;;
3576 esac
3577 else
3578 lt_cv_deplibs_check_method=pass_all
3579 fi
3580 ;;
3581
3582gnu*)
3583 lt_cv_deplibs_check_method=pass_all
3584 ;;
3585
3586hpux10.20*|hpux11*)
3587 case $host_cpu in
3588 hppa*)
3589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3590 lt_cv_file_magic_cmd=/usr/bin/file
3591 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3592 ;;
3593 ia64*)
3594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3595 lt_cv_file_magic_cmd=/usr/bin/file
3596 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3597 ;;
3598 esac
3599 ;;
3600
3601irix5* | irix6*)
3602 case $host_os in
3603 irix5*)
3604 # this will be overridden with pass_all, but let us keep it just in case
3605 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3606 ;;
3607 *)
3608 case $LD in
3609 *-32|*"-32 ") libmagic=32-bit;;
3610 *-n32|*"-n32 ") libmagic=N32;;
3611 *-64|*"-64 ") libmagic=64-bit;;
3612 *) libmagic=never-match;;
3613 esac
3614 # this will be overridden with pass_all, but let us keep it just in case
3615 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3616 ;;
3617 esac
3618 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3619 lt_cv_deplibs_check_method=pass_all
3620 ;;
3621
3622# This must be Linux ELF.
3623linux-gnu*)
3624 case $host_cpu in
3625 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3626 lt_cv_deplibs_check_method=pass_all ;;
3627 *)
3628 # glibc up to 2.1.1 does not perform some relocations on ARM
3629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3630 esac
3631 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3632 ;;
3633
3634netbsd* | knetbsd*-gnu)
3635 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3636 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3637 else
3638 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3639 fi
3640 ;;
3641
3642newsos6)
3643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3644 lt_cv_file_magic_cmd=/usr/bin/file
3645 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3646 ;;
3647
3648osf3* | osf4* | osf5*)
3649 # this will be overridden with pass_all, but let us keep it just in case
3650 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3651 lt_cv_file_magic_test_file=/shlib/libc.so
3652 lt_cv_deplibs_check_method=pass_all
3653 ;;
3654
3655sco3.2v5*)
3656 lt_cv_deplibs_check_method=pass_all
3657 ;;
3658
3659solaris*)
3660 lt_cv_deplibs_check_method=pass_all
3661 lt_cv_file_magic_test_file=/lib/libc.so
3662 ;;
3663
3664sysv5uw[78]* | sysv4*uw2*)
3665 lt_cv_deplibs_check_method=pass_all
3666 ;;
3667
3668sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3669 case $host_vendor in
3670 ncr)
3671 lt_cv_deplibs_check_method=pass_all
3672 ;;
3673 motorola)
3674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3676 ;;
3677 esac
3678 ;;
3679esac
3680
3681fi
3682echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3683echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3684file_magic_cmd=$lt_cv_file_magic_cmd
3685deplibs_check_method=$lt_cv_deplibs_check_method
3686
3687
3688
3689
3690
3691# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3692
3693# Only perform the check for file, if the check method requires it
3694case $deplibs_check_method in
3695file_magic*)
3696 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3697 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3698echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3699if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702 case $MAGIC_CMD in
3703 /*)
3704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3705 ;;
3706 ?:/*)
3707 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3708 ;;
3709 *)
3710 ac_save_MAGIC_CMD="$MAGIC_CMD"
3711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3712 ac_dummy="/usr/bin:$PATH"
3713 for ac_dir in $ac_dummy; do
3714 test -z "$ac_dir" && ac_dir=.
3715 if test -f $ac_dir/${ac_tool_prefix}file; then
3716 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3717 if test -n "$file_magic_test_file"; then
3718 case $deplibs_check_method in
3719 "file_magic "*)
3720 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3721 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3723 egrep "$file_magic_regex" > /dev/null; then
3724 :
3725 else
3726 cat <<EOF 1>&2
3727
3728*** Warning: the command libtool uses to detect shared libraries,
3729*** $file_magic_cmd, produces output that libtool cannot recognize.
3730*** The result is that libtool may fail to recognize shared libraries
3731*** as such. This will affect the creation of libtool libraries that
3732*** depend on shared libraries, but programs linked with such libtool
3733*** libraries will work regardless of this problem. Nevertheless, you
3734*** may want to report the problem to your system manager and/or to
3735*** bug-libtool@gnu.org
3736
3737EOF
3738 fi ;;
3739 esac
3740 fi
3741 break
3742 fi
3743 done
3744 IFS="$ac_save_ifs"
3745 MAGIC_CMD="$ac_save_MAGIC_CMD"
3746 ;;
3747esac
3748fi
3749
3750MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3751if test -n "$MAGIC_CMD"; then
3752 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3753echo "${ECHO_T}$MAGIC_CMD" >&6
3754else
3755 echo "$as_me:$LINENO: result: no" >&5
3756echo "${ECHO_T}no" >&6
3757fi
3758
3759if test -z "$lt_cv_path_MAGIC_CMD"; then
3760 if test -n "$ac_tool_prefix"; then
3761 echo "$as_me:$LINENO: checking for file" >&5
3762echo $ECHO_N "checking for file... $ECHO_C" >&6
3763if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765else
3766 case $MAGIC_CMD in
3767 /*)
3768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3769 ;;
3770 ?:/*)
3771 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3772 ;;
3773 *)
3774 ac_save_MAGIC_CMD="$MAGIC_CMD"
3775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3776 ac_dummy="/usr/bin:$PATH"
3777 for ac_dir in $ac_dummy; do
3778 test -z "$ac_dir" && ac_dir=.
3779 if test -f $ac_dir/file; then
3780 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3781 if test -n "$file_magic_test_file"; then
3782 case $deplibs_check_method in
3783 "file_magic "*)
3784 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3787 egrep "$file_magic_regex" > /dev/null; then
3788 :
3789 else
3790 cat <<EOF 1>&2
3791
3792*** Warning: the command libtool uses to detect shared libraries,
3793*** $file_magic_cmd, produces output that libtool cannot recognize.
3794*** The result is that libtool may fail to recognize shared libraries
3795*** as such. This will affect the creation of libtool libraries that
3796*** depend on shared libraries, but programs linked with such libtool
3797*** libraries will work regardless of this problem. Nevertheless, you
3798*** may want to report the problem to your system manager and/or to
3799*** bug-libtool@gnu.org
3800
3801EOF
3802 fi ;;
3803 esac
3804 fi
3805 break
3806 fi
3807 done
3808 IFS="$ac_save_ifs"
3809 MAGIC_CMD="$ac_save_MAGIC_CMD"
3810 ;;
3811esac
3812fi
4ee9c684 3813
90973b19 3814MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3815if test -n "$MAGIC_CMD"; then
3816 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3817echo "${ECHO_T}$MAGIC_CMD" >&6
4ee9c684 3818else
90973b19 3819 echo "$as_me:$LINENO: result: no" >&5
3820echo "${ECHO_T}no" >&6
3821fi
4ee9c684 3822
90973b19 3823 else
3824 MAGIC_CMD=:
3825 fi
4ee9c684 3826fi
4ee9c684 3827
90973b19 3828 fi
3829 ;;
3830esac
4ee9c684 3831
90973b19 3832if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3834set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3835echo "$as_me:$LINENO: checking for $ac_word" >&5
3836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3837if test "${ac_cv_prog_RANLIB+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee9c684 3839else
90973b19 3840 if test -n "$RANLIB"; then
3841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3842else
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH
3845do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854done
3855done
4ee9c684 3856
90973b19 3857fi
3858fi
3859RANLIB=$ac_cv_prog_RANLIB
3860if test -n "$RANLIB"; then
3861 echo "$as_me:$LINENO: result: $RANLIB" >&5
3862echo "${ECHO_T}$RANLIB" >&6
3863else
3864 echo "$as_me:$LINENO: result: no" >&5
3865echo "${ECHO_T}no" >&6
4ee9c684 3866fi
3867
90973b19 3868fi
3869if test -z "$ac_cv_prog_RANLIB"; then
3870 ac_ct_RANLIB=$RANLIB
3871 # Extract the first word of "ranlib", so it can be a program name with args.
3872set dummy ranlib; ac_word=$2
3873echo "$as_me:$LINENO: checking for $ac_word" >&5
3874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 if test -n "$ac_ct_RANLIB"; then
3879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3880else
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888 ac_cv_prog_ac_ct_RANLIB="ranlib"
3889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 break 2
3891 fi
3892done
3893done
4ee9c684 3894
90973b19 3895 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3896fi
3897fi
3898ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3899if test -n "$ac_ct_RANLIB"; then
3900 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3901echo "${ECHO_T}$ac_ct_RANLIB" >&6
4ee9c684 3902else
90973b19 3903 echo "$as_me:$LINENO: result: no" >&5
3904echo "${ECHO_T}no" >&6
4ee9c684 3905fi
4ee9c684 3906
90973b19 3907 RANLIB=$ac_ct_RANLIB
3908else
3909 RANLIB="$ac_cv_prog_RANLIB"
4ee9c684 3910fi
3911
90973b19 3912if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3914set dummy ${ac_tool_prefix}strip; ac_word=$2
3915echo "$as_me:$LINENO: checking for $ac_word" >&5
3916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917if test "${ac_cv_prog_STRIP+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee9c684 3919else
90973b19 3920 if test -n "$STRIP"; then
3921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934done
3935done
4ee9c684 3936
90973b19 3937fi
3938fi
3939STRIP=$ac_cv_prog_STRIP
3940if test -n "$STRIP"; then
3941 echo "$as_me:$LINENO: result: $STRIP" >&5
3942echo "${ECHO_T}$STRIP" >&6
4ee9c684 3943else
90973b19 3944 echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6
3946fi
4ee9c684 3947
4ee9c684 3948fi
90973b19 3949if test -z "$ac_cv_prog_STRIP"; then
3950 ac_ct_STRIP=$STRIP
3951 # Extract the first word of "strip", so it can be a program name with args.
3952set dummy strip; ac_word=$2
3953echo "$as_me:$LINENO: checking for $ac_word" >&5
3954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
3958 if test -n "$ac_ct_STRIP"; then
3959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3960else
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_prog_ac_ct_STRIP="strip"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972done
3973done
3974
3975 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4ee9c684 3976fi
3977fi
90973b19 3978ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3979if test -n "$ac_ct_STRIP"; then
3980 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3981echo "${ECHO_T}$ac_ct_STRIP" >&6
3982else
3983 echo "$as_me:$LINENO: result: no" >&5
3984echo "${ECHO_T}no" >&6
4ee9c684 3985fi
4ee9c684 3986
90973b19 3987 STRIP=$ac_ct_STRIP
3988else
3989 STRIP="$ac_cv_prog_STRIP"
4ee9c684 3990fi
3991
4ee9c684 3992
90973b19 3993# Check for any special flags to pass to ltconfig.
3994libtool_flags="--cache-file=$cache_file"
3995test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3996test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3997test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3998test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3999test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4ee9c684 4000
4001
90973b19 4002# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4003if test "${enable_libtool_lock+set}" = set; then
4004 enableval="$enable_libtool_lock"
4ee9c684 4005
90973b19 4006fi;
4007test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4008test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4ee9c684 4009
4010
90973b19 4011# Check whether --with-pic or --without-pic was given.
4012if test "${with_pic+set}" = set; then
4013 withval="$with_pic"
4014 pic_mode="$withval"
4ee9c684 4015else
90973b19 4016 pic_mode=default
4017fi;
4018test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4019test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4ee9c684 4020
90973b19 4021# Some flags need to be propagated to the compiler or linker for good
4022# libtool support.
4023case $host in
4024*-*-irix6*)
4025 # Find out which ABI we are using.
a31bd8a4 4026 echo '#line 4026 "configure"' > conftest.$ac_ext
90973b19 4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>&5
4ee9c684 4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 4031 (exit $ac_status); }; then
4032 if test "$lt_cv_prog_gnu_ld" = yes; then
4033 case `/usr/bin/file conftest.$ac_objext` in
4034 *32-bit*)
4035 LD="${LD-ld} -melf32bsmip"
4036 ;;
4037 *N32*)
4038 LD="${LD-ld} -melf32bmipn32"
4039 ;;
4040 *64-bit*)
4041 LD="${LD-ld} -melf64bmip"
4042 ;;
4043 esac
4044 else
4045 case `/usr/bin/file conftest.$ac_objext` in
4046 *32-bit*)
4047 LD="${LD-ld} -32"
4048 ;;
4049 *N32*)
4050 LD="${LD-ld} -n32"
4051 ;;
4052 *64-bit*)
4053 LD="${LD-ld} -64"
4054 ;;
4055 esac
4056 fi
4057 fi
4058 rm -rf conftest*
4059 ;;
4ee9c684 4060
90973b19 4061ia64-*-hpux*)
4062 # Find out which ABI we are using.
4063 echo 'int i;' > conftest.$ac_ext
4064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4065 (eval $ac_compile) 2>&5
4ee9c684 4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 4068 (exit $ac_status); }; then
4069 case "`/usr/bin/file conftest.o`" in
4070 *ELF-32*)
4071 HPUX_IA64_MODE="32"
4072 ;;
4073 *ELF-64*)
4074 HPUX_IA64_MODE="64"
4075 ;;
4076 esac
4077 fi
4078 rm -rf conftest*
4079 ;;
4ee9c684 4080
90973b19 4081x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4082 # Find out which ABI we are using.
4083 echo 'int i;' > conftest.$ac_ext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>&5
4ee9c684 4086 ac_status=$?
4ee9c684 4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 4088 (exit $ac_status); }; then
4089 case "`/usr/bin/file conftest.o`" in
4090 *32-bit*)
4091 case $host in
4092 x86_64-*linux*)
4093 LD="${LD-ld} -m elf_i386"
4094 ;;
4095 ppc64-*linux*|powerpc64-*linux*)
4096 LD="${LD-ld} -m elf32ppclinux"
4097 ;;
4098 s390x-*linux*)
4099 LD="${LD-ld} -m elf_s390"
4100 ;;
4101 sparc64-*linux*)
4102 LD="${LD-ld} -m elf32_sparc"
4103 ;;
4104 esac
4105 ;;
4106 *64-bit*)
4107 case $host in
4108 x86_64-*linux*)
4109 LD="${LD-ld} -m elf_x86_64"
4110 ;;
4111 ppc*-*linux*|powerpc*-*linux*)
4112 LD="${LD-ld} -m elf64ppc"
4113 ;;
4114 s390*-*linux*)
4115 LD="${LD-ld} -m elf64_s390"
4116 ;;
4117 sparc*-*linux*)
4118 LD="${LD-ld} -m elf64_sparc"
4119 ;;
4120 esac
4121 ;;
4122 esac
4ee9c684 4123 fi
90973b19 4124 rm -rf conftest*
4125 ;;
4ee9c684 4126
90973b19 4127*-*-sco3.2v5*)
4128 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4129 SAVE_CFLAGS="$CFLAGS"
4130 CFLAGS="$CFLAGS -belf"
4131 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4132echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4133if test "${lt_cv_cc_needs_belf+set}" = set; then
4ee9c684 4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4ee9c684 4136
4ee9c684 4137
90973b19 4138 ac_ext=c
4139ac_cpp='$CPP $CPPFLAGS'
4140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ee9c684 4143
90973b19 4144 cat >conftest.$ac_ext <<_ACEOF
4ee9c684 4145/* confdefs.h. */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
4149/* end confdefs.h. */
4ee9c684 4150
4151int
4152main ()
4153{
90973b19 4154
4ee9c684 4155 ;
4156 return 0;
4157}
4158_ACEOF
4159rm -f conftest.$ac_objext conftest$ac_exeext
4160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161 (eval $ac_link) 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
a31bd8a4 4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 (eval $ac_try) 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest$ac_exeext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
90973b19 4180 lt_cv_cc_needs_belf=yes
4ee9c684 4181else
4182 echo "$as_me: failed program was:" >&5
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
90973b19 4185lt_cv_cc_needs_belf=no
4ee9c684 4186fi
4187rm -f conftest.err conftest.$ac_objext \
4188 conftest$ac_exeext conftest.$ac_ext
90973b19 4189 ac_ext=c
4190ac_cpp='$CPP $CPPFLAGS'
4191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4ee9c684 4195fi
90973b19 4196echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4197echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4198 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4199 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4200 CFLAGS="$SAVE_CFLAGS"
4201 fi
4202 ;;
4203
4204
4205esac
4206
4207
4208# Save cache, so that ltconfig can load it
4209cat >confcache <<\_ACEOF
4210# This file is a shell script that caches the results of configure
4211# tests run on this system so they can be shared between configure
4212# scripts and configure runs, see configure's option --config-cache.
4213# It is not useful on other systems. If it contains results you don't
4214# want to keep, you may remove or edit it.
4215#
4216# config.status only pays attention to the cache file if you give it
4217# the --recheck option to rerun configure.
4218#
4219# `ac_cv_env_foo' variables (set or unset) will be overridden when
4220# loading this file, other *unset* `ac_cv_foo' will be assigned the
4221# following values.
4222
4ee9c684 4223_ACEOF
4224
90973b19 4225# The following way of writing the cache mishandles newlines in values,
4226# but we know of no workaround that is simple, portable, and efficient.
4227# So, don't put newlines in cache variables' values.
4228# Ultrix sh set writes to stderr and can't be redirected directly,
4229# and sets the high bit in the cache file unless we assign to the vars.
4230{
4231 (set) 2>&1 |
4232 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4233 *ac_space=\ *)
4234 # `set' does not quote correctly, so add quotes (double-quote
4235 # substitution turns \\\\ into \\, and sed turns \\ into \).
4236 sed -n \
4237 "s/'/'\\\\''/g;
4238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4239 ;;
4240 *)
4241 # `set' quotes correctly as required by POSIX, so do not add quotes.
4242 sed -n \
4243 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4244 ;;
4245 esac;
4246} |
4247 sed '
4248 t clear
4249 : clear
4250 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4251 t end
4252 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4253 : end' >>confcache
4254if diff $cache_file confcache >/dev/null 2>&1; then :; else
4255 if test -w $cache_file; then
4256 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4257 cat confcache >$cache_file
4258 else
4259 echo "not updating unwritable cache $cache_file"
4260 fi
4ee9c684 4261fi
90973b19 4262rm -f confcache
4ee9c684 4263
90973b19 4264# Actually configure libtool. ac_aux_dir is where install-sh is found.
4265AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4266MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4267LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4268AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4269objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4270deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4271${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4272$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4273|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4274echo "$as_me: error: libtool configure failed" >&2;}
4275 { (exit 1); exit 1; }; }
4276
4277# Reload cache, that may have been modified by ltconfig
4278if test -r "$cache_file"; then
4279 # Some versions of bash will fail to source /dev/null (special
4280 # files actually), so we avoid doing that.
4281 if test -f "$cache_file"; then
4282 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4283echo "$as_me: loading cache $cache_file" >&6;}
4284 case $cache_file in
4285 [\\/]* | ?:[\\/]* ) . $cache_file;;
4286 *) . ./$cache_file;;
4287 esac
4288 fi
4289else
4290 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4291echo "$as_me: creating cache $cache_file" >&6;}
4292 >$cache_file
4293fi
4ee9c684 4294
4ee9c684 4295
90973b19 4296# This can be used to rebuild libtool when needed
4297LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4ee9c684 4298
90973b19 4299# Always use our own libtool.
4300LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4ee9c684 4301
90973b19 4302# Redirect the config.log output again, so that the ltconfig log is not
4303# clobbered by the next message.
4304exec 5>>./config.log
4ee9c684 4305
4ee9c684 4306
4ee9c684 4307
4ee9c684 4308
4ee9c684 4309
4ee9c684 4310
4ee9c684 4311
4ee9c684 4312
90973b19 4313#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4314
4315# We need gfortran to compile parts of the library
4316# We can't use AC_PROG_F77 because it expects a fully working gfortran.
4317#AC_PROG_F77(gfortran)
4318F77="$GFORTRAN"
4319ac_ext=f
4320ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4321ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4323if test -n "$ac_tool_prefix"; then
4324 for ac_prog in gfortran
4325 do
4326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4327set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4328echo "$as_me:$LINENO: checking for $ac_word" >&5
4329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330if test "${ac_cv_prog_F77+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee9c684 4332else
90973b19 4333 if test -n "$F77"; then
4334 ac_cv_prog_F77="$F77" # Let the user override the test.
4335else
4336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337for as_dir in $PATH
4338do
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 break 2
4346 fi
4347done
4348done
4ee9c684 4349
4ee9c684 4350fi
4ee9c684 4351fi
90973b19 4352F77=$ac_cv_prog_F77
4353if test -n "$F77"; then
4354 echo "$as_me:$LINENO: result: $F77" >&5
4355echo "${ECHO_T}$F77" >&6
4356else
4357 echo "$as_me:$LINENO: result: no" >&5
4358echo "${ECHO_T}no" >&6
4ee9c684 4359fi
4ee9c684 4360
90973b19 4361 test -n "$F77" && break
4362 done
4363fi
4364if test -z "$F77"; then
4365 ac_ct_F77=$F77
4366 for ac_prog in gfortran
4367do
4368 # Extract the first word of "$ac_prog", so it can be a program name with args.
4369set dummy $ac_prog; ac_word=$2
4370echo "$as_me:$LINENO: checking for $ac_word" >&5
4371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4372if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375 if test -n "$ac_ct_F77"; then
4376 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4377else
4378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH
4380do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 ac_cv_prog_ac_ct_F77="$ac_prog"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4388 fi
4389done
4390done
4ee9c684 4391
4392fi
90973b19 4393fi
4394ac_ct_F77=$ac_cv_prog_ac_ct_F77
4395if test -n "$ac_ct_F77"; then
4396 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4397echo "${ECHO_T}$ac_ct_F77" >&6
4398else
4399 echo "$as_me:$LINENO: result: no" >&5
4400echo "${ECHO_T}no" >&6
4401fi
4402
4403 test -n "$ac_ct_F77" && break
4404done
4405
4406 F77=$ac_ct_F77
4407fi
4408
4409
4410# Provide some information about the compiler.
a31bd8a4 4411echo "$as_me:4411:" \
90973b19 4412 "checking for Fortran 77 compiler version" >&5
4413ac_compiler=`set X $ac_compile; echo $2`
4414{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4415 (eval $ac_compiler --version </dev/null >&5) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }
4419{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4420 (eval $ac_compiler -v </dev/null >&5) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }
4424{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4425 (eval $ac_compiler -V </dev/null >&5) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }
4429rm -f a.out
4ee9c684 4430
90973b19 4431# If we don't use `.F' as extension, the preprocessor is not run on the
4432# input file. (Note that this only needs to work for GNU compilers.)
4433ac_save_ext=$ac_ext
4434ac_ext=F
4435echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4436echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4437if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4ee9c684 4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439else
4440 cat >conftest.$ac_ext <<_ACEOF
90973b19 4441 program main
4442#ifndef __GNUC__
4443 choke me
4444#endif
4445
4446 end
4ee9c684 4447_ACEOF
4448rm -f conftest.$ac_objext
4449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
a31bd8a4 4457 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4ee9c684 4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; } &&
4463 { ac_try='test -s conftest.$ac_objext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
90973b19 4469 ac_compiler_gnu=yes
4ee9c684 4470else
4471 echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
90973b19 4474ac_compiler_gnu=no
4ee9c684 4475fi
4476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90973b19 4477ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4ee9c684 4478
4479fi
90973b19 4480echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4481echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4482ac_ext=$ac_save_ext
4483ac_test_FFLAGS=${FFLAGS+set}
4484ac_save_FFLAGS=$FFLAGS
4485FFLAGS=
4486echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4487echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4488if test "${ac_cv_prog_f77_g+set}" = set; then
4ee9c684 4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
90973b19 4491 FFLAGS=-g
4492cat >conftest.$ac_ext <<_ACEOF
4493 program main
4ee9c684 4494
90973b19 4495 end
4ee9c684 4496_ACEOF
4497rm -f conftest.$ac_objext
4498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>conftest.er1
4500 ac_status=$?
4501 grep -v '^ *+' conftest.er1 >conftest.err
4502 rm -f conftest.er1
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
a31bd8a4 4506 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4ee9c684 4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest.$ac_objext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
90973b19 4518 ac_cv_prog_f77_g=yes
4ee9c684 4519else
4520 echo "$as_me: failed program was:" >&5
4521sed 's/^/| /' conftest.$ac_ext >&5
4522
90973b19 4523ac_cv_prog_f77_g=no
4ee9c684 4524fi
4525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4526
4ee9c684 4527fi
90973b19 4528echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4529echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4530if test "$ac_test_FFLAGS" = set; then
4531 FFLAGS=$ac_save_FFLAGS
4532elif test $ac_cv_prog_f77_g = yes; then
4533 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4534 FFLAGS="-g -O2"
4535 else
4536 FFLAGS="-g"
4537 fi
4538else
4539 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4540 FFLAGS="-O2"
4541 else
4542 FFLAGS=
4543 fi
4ee9c684 4544fi
4545
90973b19 4546G77=`test $ac_compiler_gnu = yes && echo yes`
4547ac_ext=c
4548ac_cpp='$CPP $CPPFLAGS'
4549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ee9c684 4552
90973b19 4553FFLAGS="$FFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4ee9c684 4554
90973b19 4555ac_ext=c
4556ac_cpp='$CPP $CPPFLAGS'
4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4561echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4562# On Suns, sometimes $CPP names a directory.
4563if test -n "$CPP" && test -d "$CPP"; then
4564 CPP=
4ee9c684 4565fi
90973b19 4566if test -z "$CPP"; then
4567 if test "${ac_cv_prog_CPP+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee9c684 4569else
90973b19 4570 # Double quotes because CPP needs to be expanded
4571 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4572 do
4573 ac_preproc_ok=false
4574for ac_c_preproc_warn_flag in '' yes
4575do
4576 # Use a header file that comes with gcc, so configuring glibc
4577 # with a fresh cross-compiler works.
4578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4579 # <limits.h> exists even on freestanding compilers.
4580 # On the NeXT, cc -E runs the code through the compiler's parser,
4581 # not just through cpp. "Syntax error" is here to catch this case.
4ee9c684 4582 cat >conftest.$ac_ext <<_ACEOF
4583/* confdefs.h. */
4584_ACEOF
4585cat confdefs.h >>conftest.$ac_ext
4586cat >>conftest.$ac_ext <<_ACEOF
4587/* end confdefs.h. */
90973b19 4588#ifdef __STDC__
4589# include <limits.h>
4ee9c684 4590#else
90973b19 4591# include <assert.h>
4ee9c684 4592#endif
90973b19 4593 Syntax error
4ee9c684 4594_ACEOF
90973b19 4595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4ee9c684 4597 ac_status=$?
90973b19 4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4ee9c684 4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 4602 (exit $ac_status); } >/dev/null; then
4603 if test -s conftest.err; then
4604 ac_cpp_err=$ac_c_preproc_warn_flag
4605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4606 else
4607 ac_cpp_err=
4608 fi
4609else
4610 ac_cpp_err=yes
4611fi
4612if test -z "$ac_cpp_err"; then
4ee9c684 4613 :
4614else
90973b19 4615 echo "$as_me: failed program was:" >&5
4ee9c684 4616sed 's/^/| /' conftest.$ac_ext >&5
4617
90973b19 4618 # Broken: fails on valid input.
4619continue
4ee9c684 4620fi
90973b19 4621rm -f conftest.err conftest.$ac_ext
4ee9c684 4622
90973b19 4623 # OK, works on sane cases. Now check whether non-existent headers
4624 # can be detected and how.
4625 cat >conftest.$ac_ext <<_ACEOF
4ee9c684 4626/* confdefs.h. */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h. */
90973b19 4631#include <ac_nonexistent.h>
4ee9c684 4632_ACEOF
90973b19 4633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4ee9c684 4635 ac_status=$?
4636 grep -v '^ *+' conftest.er1 >conftest.err
4637 rm -f conftest.er1
4638 cat conftest.err >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 4640 (exit $ac_status); } >/dev/null; then
4641 if test -s conftest.err; then
4642 ac_cpp_err=$ac_c_preproc_warn_flag
4643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4644 else
4645 ac_cpp_err=
4646 fi
4647else
4648 ac_cpp_err=yes
4649fi
4650if test -z "$ac_cpp_err"; then
4651 # Broken: success on invalid input.
4652continue
4ee9c684 4653else
4654 echo "$as_me: failed program was:" >&5
4655sed 's/^/| /' conftest.$ac_ext >&5
4656
90973b19 4657 # Passes both tests.
4658ac_preproc_ok=:
4659break
4ee9c684 4660fi
90973b19 4661rm -f conftest.err conftest.$ac_ext
4ee9c684 4662
90973b19 4663done
4664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4665rm -f conftest.err conftest.$ac_ext
4666if $ac_preproc_ok; then
4667 break
4668fi
4669
4670 done
4671 ac_cv_prog_CPP=$CPP
4672
4673fi
4674 CPP=$ac_cv_prog_CPP
4675else
4676 ac_cv_prog_CPP=$CPP
4677fi
4678echo "$as_me:$LINENO: result: $CPP" >&5
4679echo "${ECHO_T}$CPP" >&6
4680ac_preproc_ok=false
4681for ac_c_preproc_warn_flag in '' yes
4682do
4683 # Use a header file that comes with gcc, so configuring glibc
4684 # with a fresh cross-compiler works.
4685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4686 # <limits.h> exists even on freestanding compilers.
4687 # On the NeXT, cc -E runs the code through the compiler's parser,
4688 # not just through cpp. "Syntax error" is here to catch this case.
4689 cat >conftest.$ac_ext <<_ACEOF
4ee9c684 4690/* confdefs.h. */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h. */
90973b19 4695#ifdef __STDC__
4696# include <limits.h>
4697#else
4698# include <assert.h>
4699#endif
4700 Syntax error
4ee9c684 4701_ACEOF
4702if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4704 ac_status=$?
4705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } >/dev/null; then
4710 if test -s conftest.err; then
4711 ac_cpp_err=$ac_c_preproc_warn_flag
4712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4713 else
4714 ac_cpp_err=
4715 fi
4716else
4717 ac_cpp_err=yes
4718fi
4719if test -z "$ac_cpp_err"; then
90973b19 4720 :
4ee9c684 4721else
4722 echo "$as_me: failed program was:" >&5
4723sed 's/^/| /' conftest.$ac_ext >&5
4724
90973b19 4725 # Broken: fails on valid input.
4726continue
4ee9c684 4727fi
4728rm -f conftest.err conftest.$ac_ext
4ee9c684 4729
90973b19 4730 # OK, works on sane cases. Now check whether non-existent headers
4731 # can be detected and how.
4732 cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
4738#include <ac_nonexistent.h>
4ee9c684 4739_ACEOF
90973b19 4740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4742 ac_status=$?
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } >/dev/null; then
4748 if test -s conftest.err; then
4749 ac_cpp_err=$ac_c_preproc_warn_flag
4750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4751 else
4752 ac_cpp_err=
4753 fi
4754else
4755 ac_cpp_err=yes
4756fi
4757if test -z "$ac_cpp_err"; then
4758 # Broken: success on invalid input.
4759continue
4760else
4761 echo "$as_me: failed program was:" >&5
4762sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 4763
90973b19 4764 # Passes both tests.
4765ac_preproc_ok=:
4766break
4ee9c684 4767fi
90973b19 4768rm -f conftest.err conftest.$ac_ext
4ee9c684 4769
4770done
90973b19 4771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4772rm -f conftest.err conftest.$ac_ext
4773if $ac_preproc_ok; then
4774 :
4775else
4776 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4777See \`config.log' for more details." >&5
4778echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4779See \`config.log' for more details." >&2;}
4780 { (exit 1); exit 1; }; }
4781fi
4ee9c684 4782
90973b19 4783ac_ext=c
4784ac_cpp='$CPP $CPPFLAGS'
4785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ee9c684 4788
4789
90973b19 4790echo "$as_me:$LINENO: checking for egrep" >&5
4791echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4792if test "${ac_cv_prog_egrep+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794else
4795 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4796 then ac_cv_prog_egrep='grep -E'
4797 else ac_cv_prog_egrep='egrep'
4798 fi
4799fi
4800echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4801echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4802 EGREP=$ac_cv_prog_egrep
4ee9c684 4803
4804
90973b19 4805echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4806echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4807if test "${ac_cv_header_stdc+set}" = set; then
4ee9c684 4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee9c684 4809else
90973b19 4810 cat >conftest.$ac_ext <<_ACEOF
4ee9c684 4811/* confdefs.h. */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h. */
90973b19 4816#include <stdlib.h>
4817#include <stdarg.h>
4818#include <string.h>
4819#include <float.h>
4820
4821int
4822main ()
4823{
4824
4825 ;
4826 return 0;
4827}
4ee9c684 4828_ACEOF
4829rm -f conftest.$ac_objext
4830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
a31bd8a4 4838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
90973b19 4850 ac_cv_header_stdc=yes
4ee9c684 4851else
4852 echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
90973b19 4855ac_cv_header_stdc=no
4ee9c684 4856fi
4857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 4858
90973b19 4859if test $ac_cv_header_stdc = yes; then
4860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4861 cat >conftest.$ac_ext <<_ACEOF
4ee9c684 4862/* confdefs.h. */
4863_ACEOF
4864cat confdefs.h >>conftest.$ac_ext
4865cat >>conftest.$ac_ext <<_ACEOF
4866/* end confdefs.h. */
90973b19 4867#include <string.h>
4868
4ee9c684 4869_ACEOF
90973b19 4870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871 $EGREP "memchr" >/dev/null 2>&1; then
4872 :
4ee9c684 4873else
90973b19 4874 ac_cv_header_stdc=no
4ee9c684 4875fi
90973b19 4876rm -f conftest*
4877
4878fi
4879
4880if test $ac_cv_header_stdc = yes; then
4881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4882 cat >conftest.$ac_ext <<_ACEOF
4883/* confdefs.h. */
4884_ACEOF
4885cat confdefs.h >>conftest.$ac_ext
4886cat >>conftest.$ac_ext <<_ACEOF
4887/* end confdefs.h. */
4888#include <stdlib.h>
4889
4890_ACEOF
4891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892 $EGREP "free" >/dev/null 2>&1; then
4893 :
4ee9c684 4894else
90973b19 4895 ac_cv_header_stdc=no
4896fi
4897rm -f conftest*
4898
4899fi
4900
4901if test $ac_cv_header_stdc = yes; then
4902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4903 if test "$cross_compiling" = yes; then
4904 :
4905else
4906 cat >conftest.$ac_ext <<_ACEOF
4907/* confdefs.h. */
4908_ACEOF
4909cat confdefs.h >>conftest.$ac_ext
4910cat >>conftest.$ac_ext <<_ACEOF
4911/* end confdefs.h. */
4912#include <ctype.h>
4913#if ((' ' & 0x0FF) == 0x020)
4914# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4915# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4916#else
4917# define ISLOWER(c) \
4918 (('a' <= (c) && (c) <= 'i') \
4919 || ('j' <= (c) && (c) <= 'r') \
4920 || ('s' <= (c) && (c) <= 'z'))
4921# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4922#endif
4923
4924#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4925int
4926main ()
4927{
4928 int i;
4929 for (i = 0; i < 256; i++)
4930 if (XOR (islower (i), ISLOWER (i))
4931 || toupper (i) != TOUPPER (i))
4932 exit(2);
4933 exit (0);
4934}
4935_ACEOF
4936rm -f conftest$ac_exeext
4937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 (eval $ac_try) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 :
4948else
4949 echo "$as_me: program exited with status $ac_status" >&5
4950echo "$as_me: failed program was:" >&5
4ee9c684 4951sed 's/^/| /' conftest.$ac_ext >&5
4952
90973b19 4953( exit $ac_status )
4954ac_cv_header_stdc=no
4ee9c684 4955fi
90973b19 4956rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4957fi
4958fi
4959fi
4960echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4961echo "${ECHO_T}$ac_cv_header_stdc" >&6
4962if test $ac_cv_header_stdc = yes; then
4ee9c684 4963
90973b19 4964cat >>confdefs.h <<\_ACEOF
4965#define STDC_HEADERS 1
4966_ACEOF
4967
4968fi
4969
4970# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4981 inttypes.h stdint.h unistd.h
4982do
4983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4ee9c684 4984echo "$as_me:$LINENO: checking for $ac_header" >&5
4985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4986if eval "test \"\${$as_ac_Header+set}\" = set"; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
90973b19 4989 cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
4995$ac_includes_default
4996
4997#include <$ac_header>
4998_ACEOF
4999rm -f conftest.$ac_objext
5000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001 (eval $ac_compile) 2>conftest.er1
5002 ac_status=$?
5003 grep -v '^ *+' conftest.er1 >conftest.err
5004 rm -f conftest.er1
5005 cat conftest.err >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } &&
a31bd8a4 5008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
90973b19 5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 eval "$as_ac_Header=yes"
5021else
5022 echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025eval "$as_ac_Header=no"
5026fi
5027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 5028fi
5029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4ee9c684 5031if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h <<_ACEOF
5033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5034_ACEOF
5035
5036fi
5037
5038done
5039
90973b19 5040
5041
5042
5043for ac_header in stdlib.h unistd.h
5044do
5045as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046if eval "test \"\${$as_ac_Header+set}\" = set"; then
5047 echo "$as_me:$LINENO: checking for $ac_header" >&5
5048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5049if eval "test \"\${$as_ac_Header+set}\" = set"; then
4ee9c684 5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051fi
90973b19 5052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5053echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4ee9c684 5054else
5055 # Is the header compilable?
90973b19 5056echo "$as_me:$LINENO: checking $ac_header usability" >&5
5057echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4ee9c684 5058cat >conftest.$ac_ext <<_ACEOF
5059/* confdefs.h. */
5060_ACEOF
5061cat confdefs.h >>conftest.$ac_ext
5062cat >>conftest.$ac_ext <<_ACEOF
5063/* end confdefs.h. */
5064$ac_includes_default
90973b19 5065#include <$ac_header>
4ee9c684 5066_ACEOF
5067rm -f conftest.$ac_objext
5068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5069 (eval $ac_compile) 2>conftest.er1
5070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
a31bd8a4 5076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 ac_header_compiler=yes
5089else
5090 echo "$as_me: failed program was:" >&5
5091sed 's/^/| /' conftest.$ac_ext >&5
5092
5093ac_header_compiler=no
5094fi
5095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5097echo "${ECHO_T}$ac_header_compiler" >&6
5098
5099# Is the header present?
90973b19 5100echo "$as_me:$LINENO: checking $ac_header presence" >&5
5101echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4ee9c684 5102cat >conftest.$ac_ext <<_ACEOF
5103/* confdefs.h. */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h. */
90973b19 5108#include <$ac_header>
4ee9c684 5109_ACEOF
5110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_c_preproc_warn_flag
5120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5121 else
5122 ac_cpp_err=
5123 fi
5124else
5125 ac_cpp_err=yes
5126fi
5127if test -z "$ac_cpp_err"; then
5128 ac_header_preproc=yes
5129else
5130 echo "$as_me: failed program was:" >&5
5131sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 ac_header_preproc=no
5134fi
5135rm -f conftest.err conftest.$ac_ext
5136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5137echo "${ECHO_T}$ac_header_preproc" >&6
5138
5139# So? What about this header?
5140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5141 yes:no: )
90973b19 5142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4ee9c684 5146 ac_header_preproc=yes
5147 ;;
5148 no:yes:* )
90973b19 5149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4ee9c684 5161 (
5162 cat <<\_ASBOX
5163## ------------------------------------------------------ ##
5164## Report this to the GNU Fortran Runtime Library lists. ##
5165## ------------------------------------------------------ ##
5166_ASBOX
5167 ) |
5168 sed "s/^/$as_me: WARNING: /" >&2
5169 ;;
5170esac
90973b19 5171echo "$as_me:$LINENO: checking for $ac_header" >&5
5172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5173if eval "test \"\${$as_ac_Header+set}\" = set"; then
4ee9c684 5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
90973b19 5176 eval "$as_ac_Header=\$ac_header_preproc"
4ee9c684 5177fi
90973b19 5178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5180
5181fi
5182if test `eval echo '${'$as_ac_Header'}'` = yes; then
5183 cat >>confdefs.h <<_ACEOF
5184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5185_ACEOF
4ee9c684 5186
90973b19 5187fi
4ee9c684 5188
90973b19 5189done
4ee9c684 5190
5191
90973b19 5192for ac_func in getpagesize
4ee9c684 5193do
5194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5195echo "$as_me:$LINENO: checking for $ac_func" >&5
5196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5197if eval "test \"\${$as_ac_var+set}\" = set"; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200 cat >conftest.$ac_ext <<_ACEOF
5201/* confdefs.h. */
5202_ACEOF
5203cat confdefs.h >>conftest.$ac_ext
5204cat >>conftest.$ac_ext <<_ACEOF
5205/* end confdefs.h. */
5206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5208#define $ac_func innocuous_$ac_func
5209
5210/* System header to define __stub macros and hopefully few prototypes,
5211 which can conflict with char $ac_func (); below.
5212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5213 <limits.h> exists even on freestanding compilers. */
5214
5215#ifdef __STDC__
5216# include <limits.h>
5217#else
5218# include <assert.h>
5219#endif
5220
5221#undef $ac_func
5222
5223/* Override any gcc2 internal prototype to avoid an error. */
5224#ifdef __cplusplus
5225extern "C"
5226{
5227#endif
5228/* We use char because int might match the return type of a gcc2
5229 builtin and then its argument prototype would still apply. */
5230char $ac_func ();
5231/* The GNU C library defines this for functions which it implements
5232 to always fail with ENOSYS. Some functions are actually named
5233 something starting with __ and the normal name is an alias. */
5234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5235choke me
5236#else
5237char (*f) () = $ac_func;
5238#endif
5239#ifdef __cplusplus
5240}
5241#endif
5242
5243int
5244main ()
5245{
5246return f != $ac_func;
5247 ;
5248 return 0;
5249}
5250_ACEOF
5251rm -f conftest.$ac_objext conftest$ac_exeext
5252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253 (eval $ac_link) 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
a31bd8a4 5260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 (eval $ac_try) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; } &&
5266 { ac_try='test -s conftest$ac_exeext'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 eval "$as_ac_var=yes"
5273else
5274 echo "$as_me: failed program was:" >&5
5275sed 's/^/| /' conftest.$ac_ext >&5
5276
5277eval "$as_ac_var=no"
5278fi
5279rm -f conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
5281fi
5282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5284if test `eval echo '${'$as_ac_var'}'` = yes; then
5285 cat >>confdefs.h <<_ACEOF
5286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5287_ACEOF
5288
5289fi
5290done
5291
90973b19 5292echo "$as_me:$LINENO: checking for working mmap" >&5
5293echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5294if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4ee9c684 5295 echo $ECHO_N "(cached) $ECHO_C" >&6
90973b19 5296else
5297 if test "$cross_compiling" = yes; then
5298 ac_cv_func_mmap_fixed_mapped=no
4ee9c684 5299else
5300 cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h. */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h. */
90973b19 5306$ac_includes_default
5307/* malloc might have been renamed as rpl_malloc. */
5308#undef malloc
5309
5310/* Thanks to Mike Haertel and Jim Avera for this test.
5311 Here is a matrix of mmap possibilities:
5312 mmap private not fixed
5313 mmap private fixed at somewhere currently unmapped
5314 mmap private fixed at somewhere already mapped
5315 mmap shared not fixed
5316 mmap shared fixed at somewhere currently unmapped
5317 mmap shared fixed at somewhere already mapped
5318 For private mappings, we should verify that changes cannot be read()
5319 back from the file, nor mmap's back from the file at a different
5320 address. (There have been systems where private was not correctly
5321 implemented like the infamous i386 svr4.0, and systems where the
5322 VM page cache was not coherent with the file system buffer cache
5323 like early versions of FreeBSD and possibly contemporary NetBSD.)
5324 For shared mappings, we should conversely verify that changes get
5325 propagated back to all the places they're supposed to be.
5326
5327 Grep wants private fixed already mapped.
5328 The main things grep needs to know about mmap are:
5329 * does it exist and is it safe to write into the mmap'd area
5330 * how to use it (BSD variants) */
5331
5332#include <fcntl.h>
5333#include <sys/mman.h>
5334
5335#if !STDC_HEADERS && !HAVE_STDLIB_H
5336char *malloc ();
5337#endif
5338
5339/* This mess was copied from the GNU getpagesize.h. */
5340#if !HAVE_GETPAGESIZE
5341/* Assume that all systems that can run configure have sys/param.h. */
5342# if !HAVE_SYS_PARAM_H
5343# define HAVE_SYS_PARAM_H 1
5344# endif
5345
5346# ifdef _SC_PAGESIZE
5347# define getpagesize() sysconf(_SC_PAGESIZE)
5348# else /* no _SC_PAGESIZE */
5349# if HAVE_SYS_PARAM_H
5350# include <sys/param.h>
5351# ifdef EXEC_PAGESIZE
5352# define getpagesize() EXEC_PAGESIZE
5353# else /* no EXEC_PAGESIZE */
5354# ifdef NBPG
5355# define getpagesize() NBPG * CLSIZE
5356# ifndef CLSIZE
5357# define CLSIZE 1
5358# endif /* no CLSIZE */
5359# else /* no NBPG */
5360# ifdef NBPC
5361# define getpagesize() NBPC
5362# else /* no NBPC */
5363# ifdef PAGESIZE
5364# define getpagesize() PAGESIZE
5365# endif /* PAGESIZE */
5366# endif /* no NBPC */
5367# endif /* no NBPG */
5368# endif /* no EXEC_PAGESIZE */
5369# else /* no HAVE_SYS_PARAM_H */
5370# define getpagesize() 8192 /* punt totally */
5371# endif /* no HAVE_SYS_PARAM_H */
5372# endif /* no _SC_PAGESIZE */
5373
5374#endif /* no HAVE_GETPAGESIZE */
4ee9c684 5375
5376int
5377main ()
5378{
90973b19 5379 char *data, *data2, *data3;
5380 int i, pagesize;
5381 int fd;
5382
5383 pagesize = getpagesize ();
5384
5385 /* First, make a file with some known garbage in it. */
5386 data = (char *) malloc (pagesize);
5387 if (!data)
5388 exit (1);
5389 for (i = 0; i < pagesize; ++i)
5390 *(data + i) = rand ();
5391 umask (0);
5392 fd = creat ("conftest.mmap", 0600);
5393 if (fd < 0)
5394 exit (1);
5395 if (write (fd, data, pagesize) != pagesize)
5396 exit (1);
5397 close (fd);
5398
5399 /* Next, try to mmap the file at a fixed address which already has
5400 something else allocated at it. If we can, also make sure that
5401 we see the same garbage. */
5402 fd = open ("conftest.mmap", O_RDWR);
5403 if (fd < 0)
5404 exit (1);
5405 data2 = (char *) malloc (2 * pagesize);
5406 if (!data2)
5407 exit (1);
5408 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5409 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5410 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5411 exit (1);
5412 for (i = 0; i < pagesize; ++i)
5413 if (*(data + i) != *(data2 + i))
5414 exit (1);
5415
5416 /* Finally, make sure that changes to the mapped area do not
5417 percolate back to the file as seen by read(). (This is a bug on
5418 some variants of i386 svr4.0.) */
5419 for (i = 0; i < pagesize; ++i)
5420 *(data2 + i) = *(data2 + i) + 1;
5421 data3 = (char *) malloc (pagesize);
5422 if (!data3)
5423 exit (1);
5424 if (read (fd, data3, pagesize) != pagesize)
5425 exit (1);
5426 for (i = 0; i < pagesize; ++i)
5427 if (*(data + i) != *(data3 + i))
5428 exit (1);
5429 close (fd);
5430 exit (0);
4ee9c684 5431}
5432_ACEOF
90973b19 5433rm -f conftest$ac_exeext
5434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435 (eval $ac_link) 2>&5
4ee9c684 5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 5438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4ee9c684 5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
90973b19 5444 ac_cv_func_mmap_fixed_mapped=yes
4ee9c684 5445else
90973b19 5446 echo "$as_me: program exited with status $ac_status" >&5
5447echo "$as_me: failed program was:" >&5
4ee9c684 5448sed 's/^/| /' conftest.$ac_ext >&5
5449
90973b19 5450( exit $ac_status )
5451ac_cv_func_mmap_fixed_mapped=no
4ee9c684 5452fi
90973b19 5453rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4ee9c684 5454fi
90973b19 5455fi
5456echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5457echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5458if test $ac_cv_func_mmap_fixed_mapped = yes; then
4ee9c684 5459
5460cat >>confdefs.h <<\_ACEOF
90973b19 5461#define HAVE_MMAP 1
4ee9c684 5462_ACEOF
5463
5464fi
90973b19 5465rm -f conftest.mmap
4ee9c684 5466
90973b19 5467echo "$as_me:$LINENO: checking for off_t" >&5
5468echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5469if test "${ac_cv_type_off_t+set}" = set; then
4ee9c684 5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
90973b19 5472 cat >conftest.$ac_ext <<_ACEOF
5473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h. */
5478$ac_includes_default
4ee9c684 5479int
5480main ()
5481{
90973b19 5482if ((off_t *) 0)
5483 return 0;
5484if (sizeof (off_t))
5485 return 0;
4ee9c684 5486 ;
5487 return 0;
5488}
5489_ACEOF
90973b19 5490rm -f conftest.$ac_objext
5491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492 (eval $ac_compile) 2>conftest.er1
4ee9c684 5493 ac_status=$?
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
a31bd8a4 5499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; } &&
90973b19 5505 { ac_try='test -s conftest.$ac_objext'
4ee9c684 5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
90973b19 5511 ac_cv_type_off_t=yes
4ee9c684 5512else
5513 echo "$as_me: failed program was:" >&5
5514sed 's/^/| /' conftest.$ac_ext >&5
5515
90973b19 5516ac_cv_type_off_t=no
4ee9c684 5517fi
90973b19 5518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 5519fi
90973b19 5520echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5521echo "${ECHO_T}$ac_cv_type_off_t" >&6
5522if test $ac_cv_type_off_t = yes; then
5523 :
5524else
5525
5526cat >>confdefs.h <<_ACEOF
5527#define off_t long
4ee9c684 5528_ACEOF
5529
5530fi
4ee9c684 5531
90973b19 5532
5533# check header files
5534echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5535echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5536if test "${ac_cv_header_stdc+set}" = set; then
4ee9c684 5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538else
5539 cat >conftest.$ac_ext <<_ACEOF
5540/* confdefs.h. */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
5544/* end confdefs.h. */
90973b19 5545#include <stdlib.h>
5546#include <stdarg.h>
5547#include <string.h>
5548#include <float.h>
5549
4ee9c684 5550int
5551main ()
5552{
90973b19 5553
4ee9c684 5554 ;
5555 return 0;
5556}
5557_ACEOF
5558rm -f conftest.$ac_objext
5559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560 (eval $ac_compile) 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } &&
a31bd8a4 5567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 5568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 (eval $ac_try) 2>&5
5570 ac_status=$?
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; } &&
5573 { ac_try='test -s conftest.$ac_objext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
90973b19 5579 ac_cv_header_stdc=yes
4ee9c684 5580else
5581 echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
90973b19 5584ac_cv_header_stdc=no
4ee9c684 5585fi
5586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90973b19 5587
5588if test $ac_cv_header_stdc = yes; then
5589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4ee9c684 5590 cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h. */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h. */
90973b19 5596#include <string.h>
4ee9c684 5597
4ee9c684 5598_ACEOF
90973b19 5599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5600 $EGREP "memchr" >/dev/null 2>&1; then
5601 :
4ee9c684 5602else
90973b19 5603 ac_cv_header_stdc=no
4ee9c684 5604fi
90973b19 5605rm -f conftest*
5606
4ee9c684 5607fi
4ee9c684 5608
90973b19 5609if test $ac_cv_header_stdc = yes; then
5610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5611 cat >conftest.$ac_ext <<_ACEOF
5612/* confdefs.h. */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h. */
5617#include <stdlib.h>
5618
4ee9c684 5619_ACEOF
90973b19 5620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5621 $EGREP "free" >/dev/null 2>&1; then
5622 :
5623else
5624 ac_cv_header_stdc=no
5625fi
5626rm -f conftest*
4ee9c684 5627
90973b19 5628fi
4ee9c684 5629
90973b19 5630if test $ac_cv_header_stdc = yes; then
5631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5632 if test "$cross_compiling" = yes; then
5633 :
4ee9c684 5634else
5635 cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h. */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h. */
90973b19 5641#include <ctype.h>
5642#if ((' ' & 0x0FF) == 0x020)
5643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4ee9c684 5645#else
90973b19 5646# define ISLOWER(c) \
5647 (('a' <= (c) && (c) <= 'i') \
5648 || ('j' <= (c) && (c) <= 'r') \
5649 || ('s' <= (c) && (c) <= 'z'))
5650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4ee9c684 5651#endif
5652
90973b19 5653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4ee9c684 5654int
5655main ()
5656{
90973b19 5657 int i;
5658 for (i = 0; i < 256; i++)
5659 if (XOR (islower (i), ISLOWER (i))
5660 || toupper (i) != TOUPPER (i))
5661 exit(2);
5662 exit (0);
4ee9c684 5663}
5664_ACEOF
90973b19 5665rm -f conftest$ac_exeext
4ee9c684 5666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
90973b19 5667 (eval $ac_link) 2>&5
4ee9c684 5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 5670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4ee9c684 5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
90973b19 5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 :
4ee9c684 5677else
90973b19 5678 echo "$as_me: program exited with status $ac_status" >&5
5679echo "$as_me: failed program was:" >&5
5680sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 5681
90973b19 5682( exit $ac_status )
5683ac_cv_header_stdc=no
4ee9c684 5684fi
90973b19 5685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4ee9c684 5686fi
5687fi
4ee9c684 5688fi
90973b19 5689echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5690echo "${ECHO_T}$ac_cv_header_stdc" >&6
5691if test $ac_cv_header_stdc = yes; then
4ee9c684 5692
90973b19 5693cat >>confdefs.h <<\_ACEOF
5694#define STDC_HEADERS 1
5695_ACEOF
4ee9c684 5696
5697fi
5698
4ee9c684 5699
5700
4ee9c684 5701
4ee9c684 5702
5703
5704
90973b19 5705for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
5706do
5707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5708if eval "test \"\${$as_ac_Header+set}\" = set"; then
5709 echo "$as_me:$LINENO: checking for $ac_header" >&5
5710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5711if eval "test \"\${$as_ac_Header+set}\" = set"; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5713fi
5714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4ee9c684 5716else
90973b19 5717 # Is the header compilable?
5718echo "$as_me:$LINENO: checking $ac_header usability" >&5
5719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5720cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h. */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h. */
5726$ac_includes_default
5727#include <$ac_header>
5728_ACEOF
5729rm -f conftest.$ac_objext
5730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731 (eval $ac_compile) 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
a31bd8a4 5738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
90973b19 5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; } &&
5744 { ac_try='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_header_compiler=yes
4ee9c684 5751else
90973b19 5752 echo "$as_me: failed program was:" >&5
5753sed 's/^/| /' conftest.$ac_ext >&5
5754
5755ac_header_compiler=no
4ee9c684 5756fi
90973b19 5757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5758echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5759echo "${ECHO_T}$ac_header_compiler" >&6
5760
5761# Is the header present?
5762echo "$as_me:$LINENO: checking $ac_header presence" >&5
5763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5764cat >conftest.$ac_ext <<_ACEOF
5765/* confdefs.h. */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h. */
5770#include <$ac_header>
5771_ACEOF
5772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } >/dev/null; then
5780 if test -s conftest.err; then
5781 ac_cpp_err=$ac_c_preproc_warn_flag
5782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5783 else
5784 ac_cpp_err=
5785 fi
4ee9c684 5786else
90973b19 5787 ac_cpp_err=yes
4ee9c684 5788fi
90973b19 5789if test -z "$ac_cpp_err"; then
5790 ac_header_preproc=yes
4ee9c684 5791else
90973b19 5792 echo "$as_me: failed program was:" >&5
5793sed 's/^/| /' conftest.$ac_ext >&5
5794
5795 ac_header_preproc=no
4ee9c684 5796fi
90973b19 5797rm -f conftest.err conftest.$ac_ext
5798echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5799echo "${ECHO_T}$ac_header_preproc" >&6
5800
5801# So? What about this header?
5802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5803 yes:no: )
5804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5807echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5808 ac_header_preproc=yes
5809 ;;
5810 no:yes:* )
5811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5812echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5814echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5816echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5818echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5820echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5822echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5823 (
5824 cat <<\_ASBOX
5825## ------------------------------------------------------ ##
5826## Report this to the GNU Fortran Runtime Library lists. ##
5827## ------------------------------------------------------ ##
5828_ASBOX
5829 ) |
5830 sed "s/^/$as_me: WARNING: /" >&2
5831 ;;
5832esac
5833echo "$as_me:$LINENO: checking for $ac_header" >&5
5834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5835if eval "test \"\${$as_ac_Header+set}\" = set"; then
4ee9c684 5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
90973b19 5838 eval "$as_ac_Header=\$ac_header_preproc"
4ee9c684 5839fi
90973b19 5840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4ee9c684 5842
90973b19 5843fi
5844if test `eval echo '${'$as_ac_Header'}'` = yes; then
5845 cat >>confdefs.h <<_ACEOF
5846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5847_ACEOF
4ee9c684 5848
4ee9c684 5849fi
4ee9c684 5850
90973b19 5851done
5852
5853
5854
5855
5856
5857
5858for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
5859do
5860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5861if eval "test \"\${$as_ac_Header+set}\" = set"; then
5862 echo "$as_me:$LINENO: checking for $ac_header" >&5
5863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5864if eval "test \"\${$as_ac_Header+set}\" = set"; then
4ee9c684 5865 echo $ECHO_N "(cached) $ECHO_C" >&6
90973b19 5866fi
5867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4ee9c684 5869else
90973b19 5870 # Is the header compilable?
5871echo "$as_me:$LINENO: checking $ac_header usability" >&5
5872echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5873cat >conftest.$ac_ext <<_ACEOF
5874/* confdefs.h. */
5875_ACEOF
5876cat confdefs.h >>conftest.$ac_ext
5877cat >>conftest.$ac_ext <<_ACEOF
5878/* end confdefs.h. */
5879$ac_includes_default
5880#include <$ac_header>
5881_ACEOF
5882rm -f conftest.$ac_objext
5883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
a31bd8a4 5891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
90973b19 5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; } &&
5897 { ac_try='test -s conftest.$ac_objext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 (eval $ac_try) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 ac_header_compiler=yes
4ee9c684 5904else
90973b19 5905 echo "$as_me: failed program was:" >&5
5906sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 5907
90973b19 5908ac_header_compiler=no
5909fi
5910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5911echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5912echo "${ECHO_T}$ac_header_compiler" >&6
4ee9c684 5913
90973b19 5914# Is the header present?
5915echo "$as_me:$LINENO: checking $ac_header presence" >&5
5916echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5917cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h. */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h. */
5923#include <$ac_header>
5924_ACEOF
5925if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } >/dev/null; then
5933 if test -s conftest.err; then
5934 ac_cpp_err=$ac_c_preproc_warn_flag
5935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5936 else
5937 ac_cpp_err=
5938 fi
4ee9c684 5939else
90973b19 5940 ac_cpp_err=yes
4ee9c684 5941fi
90973b19 5942if test -z "$ac_cpp_err"; then
5943 ac_header_preproc=yes
4ee9c684 5944else
90973b19 5945 echo "$as_me: failed program was:" >&5
5946sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 5947
90973b19 5948 ac_header_preproc=no
5949fi
5950rm -f conftest.err conftest.$ac_ext
5951echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5952echo "${ECHO_T}$ac_header_preproc" >&6
4ee9c684 5953
90973b19 5954# So? What about this header?
5955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5956 yes:no: )
5957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5958echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5960echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5961 ac_header_preproc=yes
4ee9c684 5962 ;;
90973b19 5963 no:yes:* )
5964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5965echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5967echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5969echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5971echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5973echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5975echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5976 (
5977 cat <<\_ASBOX
5978## ------------------------------------------------------ ##
5979## Report this to the GNU Fortran Runtime Library lists. ##
5980## ------------------------------------------------------ ##
5981_ASBOX
5982 ) |
5983 sed "s/^/$as_me: WARNING: /" >&2
4ee9c684 5984 ;;
90973b19 5985esac
5986echo "$as_me:$LINENO: checking for $ac_header" >&5
5987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5988if eval "test \"\${$as_ac_Header+set}\" = set"; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991 eval "$as_ac_Header=\$ac_header_preproc"
5992fi
5993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4ee9c684 5995
90973b19 5996fi
5997if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6000_ACEOF
4ee9c684 6001
90973b19 6002fi
4ee9c684 6003
90973b19 6004done
4ee9c684 6005
90973b19 6006if test "${ac_cv_header_complex_h+set}" = set; then
6007 echo "$as_me:$LINENO: checking for complex.h" >&5
6008echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6009if test "${ac_cv_header_complex_h+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011fi
6012echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6013echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6014else
6015 # Is the header compilable?
6016echo "$as_me:$LINENO: checking complex.h usability" >&5
6017echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6018cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h. */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h. */
6024$ac_includes_default
6025#include <complex.h>
6026_ACEOF
6027rm -f conftest.$ac_objext
6028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>conftest.er1
6030 ac_status=$?
6031 grep -v '^ *+' conftest.er1 >conftest.err
6032 rm -f conftest.er1
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
a31bd8a4 6036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
90973b19 6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 (eval $ac_try) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; } &&
6042 { ac_try='test -s conftest.$ac_objext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 (eval $ac_try) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 ac_header_compiler=yes
6049else
6050 echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 6052
90973b19 6053ac_header_compiler=no
6054fi
6055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6056echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6057echo "${ECHO_T}$ac_header_compiler" >&6
4ee9c684 6058
90973b19 6059# Is the header present?
6060echo "$as_me:$LINENO: checking complex.h presence" >&5
6061echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6062cat >conftest.$ac_ext <<_ACEOF
6063/* confdefs.h. */
6064_ACEOF
6065cat confdefs.h >>conftest.$ac_ext
6066cat >>conftest.$ac_ext <<_ACEOF
6067/* end confdefs.h. */
6068#include <complex.h>
6069_ACEOF
6070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } >/dev/null; then
6078 if test -s conftest.err; then
6079 ac_cpp_err=$ac_c_preproc_warn_flag
6080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4ee9c684 6081 else
90973b19 6082 ac_cpp_err=
4ee9c684 6083 fi
90973b19 6084else
6085 ac_cpp_err=yes
6086fi
6087if test -z "$ac_cpp_err"; then
6088 ac_header_preproc=yes
6089else
6090 echo "$as_me: failed program was:" >&5
6091sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 6092
90973b19 6093 ac_header_preproc=no
6094fi
6095rm -f conftest.err conftest.$ac_ext
6096echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6097echo "${ECHO_T}$ac_header_preproc" >&6
4ee9c684 6098
90973b19 6099# So? What about this header?
6100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6101 yes:no: )
6102 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6103echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6105echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6106 ac_header_preproc=yes
4ee9c684 6107 ;;
90973b19 6108 no:yes:* )
6109 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6110echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6111 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6112echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6114echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6115 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6116echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6118echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6120echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6121 (
6122 cat <<\_ASBOX
6123## ------------------------------------------------------ ##
6124## Report this to the GNU Fortran Runtime Library lists. ##
6125## ------------------------------------------------------ ##
6126_ASBOX
6127 ) |
6128 sed "s/^/$as_me: WARNING: /" >&2
4ee9c684 6129 ;;
4ee9c684 6130esac
90973b19 6131echo "$as_me:$LINENO: checking for complex.h" >&5
6132echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6133if test "${ac_cv_header_complex_h+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135else
6136 ac_cv_header_complex_h=$ac_header_preproc
6137fi
6138echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6139echo "${ECHO_T}$ac_cv_header_complex_h" >&6
4ee9c684 6140
6141fi
90973b19 6142if test $ac_cv_header_complex_h = yes; then
4ee9c684 6143
90973b19 6144cat >>confdefs.h <<\_ACEOF
6145#define HAVE_COMPLEX_H 1
6146_ACEOF
4ee9c684 6147
90973b19 6148fi
4ee9c684 6149
6150
4ee9c684 6151
90973b19 6152# Check for complex math functions
6153echo "$as_me:$LINENO: checking for csin in -lm" >&5
6154echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
6155if test "${ac_cv_lib_m_csin+set}" = set; then
4ee9c684 6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157else
90973b19 6158 ac_check_lib_save_LIBS=$LIBS
6159LIBS="-lm $LIBS"
6160cat >conftest.$ac_ext <<_ACEOF
6161/* confdefs.h. */
6162_ACEOF
6163cat confdefs.h >>conftest.$ac_ext
6164cat >>conftest.$ac_ext <<_ACEOF
6165/* end confdefs.h. */
4ee9c684 6166
90973b19 6167/* Override any gcc2 internal prototype to avoid an error. */
6168#ifdef __cplusplus
6169extern "C"
6170#endif
6171/* We use char because int might match the return type of a gcc2
6172 builtin and then its argument prototype would still apply. */
6173char csin ();
6174int
6175main ()
6176{
6177csin ();
6178 ;
6179 return 0;
6180}
6181_ACEOF
6182rm -f conftest.$ac_objext conftest$ac_exeext
6183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184 (eval $ac_link) 2>conftest.er1
6185 ac_status=$?
6186 grep -v '^ *+' conftest.er1 >conftest.err
6187 rm -f conftest.er1
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
a31bd8a4 6191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
90973b19 6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 (eval $ac_try) 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; } &&
6197 { ac_try='test -s conftest$ac_exeext'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 (eval $ac_try) 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6203 ac_cv_lib_m_csin=yes
6204else
6205 echo "$as_me: failed program was:" >&5
6206sed 's/^/| /' conftest.$ac_ext >&5
6207
6208ac_cv_lib_m_csin=no
6209fi
6210rm -f conftest.err conftest.$ac_objext \
6211 conftest$ac_exeext conftest.$ac_ext
6212LIBS=$ac_check_lib_save_LIBS
6213fi
6214echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
6215echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
6216if test $ac_cv_lib_m_csin = yes; then
6217 need_math="no"
6218else
6219 need_math="yes"
6220fi
6221
6222
6223# Check for complex math functions in -lmx also
6224echo "$as_me:$LINENO: checking for csin in -lmx" >&5
6225echo $ECHO_N "checking for csin in -lmx... $ECHO_C" >&6
6226if test "${ac_cv_lib_mx_csin+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228else
6229 ac_check_lib_save_LIBS=$LIBS
6230LIBS="-lmx $LIBS"
6231cat >conftest.$ac_ext <<_ACEOF
6232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h. */
6237
6238/* Override any gcc2 internal prototype to avoid an error. */
6239#ifdef __cplusplus
6240extern "C"
6241#endif
6242/* We use char because int might match the return type of a gcc2
6243 builtin and then its argument prototype would still apply. */
6244char csin ();
6245int
6246main ()
6247{
6248csin ();
6249 ;
6250 return 0;
6251}
6252_ACEOF
6253rm -f conftest.$ac_objext conftest$ac_exeext
6254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255 (eval $ac_link) 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
a31bd8a4 6262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
90973b19 6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest$ac_exeext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_lib_mx_csin=yes
6275else
6276 echo "$as_me: failed program was:" >&5
6277sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 6278
90973b19 6279ac_cv_lib_mx_csin=no
4ee9c684 6280fi
90973b19 6281rm -f conftest.err conftest.$ac_objext \
6282 conftest$ac_exeext conftest.$ac_ext
6283LIBS=$ac_check_lib_save_LIBS
6284fi
6285echo "$as_me:$LINENO: result: $ac_cv_lib_mx_csin" >&5
6286echo "${ECHO_T}$ac_cv_lib_mx_csin" >&6
6287if test $ac_cv_lib_mx_csin = yes; then
6288 need_math="no"
4ee9c684 6289else
90973b19 6290 need_math="yes"
4ee9c684 6291fi
6292
90973b19 6293
6294# Check for library functions.
6295
6296
6297for ac_func in getrusage times
6298do
6299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6300echo "$as_me:$LINENO: checking for $ac_func" >&5
6301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6302if eval "test \"\${$as_ac_var+set}\" = set"; then
4ee9c684 6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304else
90973b19 6305 cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
6311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6313#define $ac_func innocuous_$ac_func
4ee9c684 6314
90973b19 6315/* System header to define __stub macros and hopefully few prototypes,
6316 which can conflict with char $ac_func (); below.
6317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6318 <limits.h> exists even on freestanding compilers. */
4ee9c684 6319
90973b19 6320#ifdef __STDC__
6321# include <limits.h>
6322#else
6323# include <assert.h>
6324#endif
4ee9c684 6325
90973b19 6326#undef $ac_func
6327
6328/* Override any gcc2 internal prototype to avoid an error. */
6329#ifdef __cplusplus
6330extern "C"
6331{
6332#endif
6333/* We use char because int might match the return type of a gcc2
6334 builtin and then its argument prototype would still apply. */
6335char $ac_func ();
6336/* The GNU C library defines this for functions which it implements
6337 to always fail with ENOSYS. Some functions are actually named
6338 something starting with __ and the normal name is an alias. */
6339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6340choke me
6341#else
6342char (*f) () = $ac_func;
6343#endif
6344#ifdef __cplusplus
6345}
6346#endif
6347
6348int
6349main ()
6350{
6351return f != $ac_func;
6352 ;
6353 return 0;
6354}
6355_ACEOF
6356rm -f conftest.$ac_objext conftest$ac_exeext
6357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358 (eval $ac_link) 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
a31bd8a4 6365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
90973b19 6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest$ac_exeext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 (eval $ac_try) 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 eval "$as_ac_var=yes"
4ee9c684 6378else
90973b19 6379 echo "$as_me: failed program was:" >&5
6380sed 's/^/| /' conftest.$ac_ext >&5
6381
6382eval "$as_ac_var=no"
6383fi
6384rm -f conftest.err conftest.$ac_objext \
6385 conftest$ac_exeext conftest.$ac_ext
4ee9c684 6386fi
90973b19 6387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6388echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6389if test `eval echo '${'$as_ac_var'}'` = yes; then
6390 cat >>confdefs.h <<_ACEOF
6391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6392_ACEOF
4ee9c684 6393
4ee9c684 6394fi
90973b19 6395done
4ee9c684 6396
4ee9c684 6397
a31bd8a4 6398# Check for some C99 functions
6399echo "$as_me:$LINENO: checking for round in -lm" >&5
6400echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
6401if test "${ac_cv_lib_m_round+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404 ac_check_lib_save_LIBS=$LIBS
6405LIBS="-lm $LIBS"
6406cat >conftest.$ac_ext <<_ACEOF
6407/* confdefs.h. */
6408_ACEOF
6409cat confdefs.h >>conftest.$ac_ext
6410cat >>conftest.$ac_ext <<_ACEOF
6411/* end confdefs.h. */
6412
6413/* Override any gcc2 internal prototype to avoid an error. */
6414#ifdef __cplusplus
6415extern "C"
6416#endif
6417/* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6419char round ();
6420int
6421main ()
6422{
6423round ();
6424 ;
6425 return 0;
6426}
6427_ACEOF
6428rm -f conftest.$ac_objext conftest$ac_exeext
6429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; } &&
6443 { ac_try='test -s conftest$ac_exeext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 ac_cv_lib_m_round=yes
6450else
6451 echo "$as_me: failed program was:" >&5
6452sed 's/^/| /' conftest.$ac_ext >&5
6453
6454ac_cv_lib_m_round=no
6455fi
6456rm -f conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458LIBS=$ac_check_lib_save_LIBS
6459fi
6460echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
6461echo "${ECHO_T}$ac_cv_lib_m_round" >&6
6462if test $ac_cv_lib_m_round = yes; then
6463
6464cat >>confdefs.h <<\_ACEOF
6465#define HAVE_ROUND 1
6466_ACEOF
6467
6468fi
6469
6470echo "$as_me:$LINENO: checking for roundf in -lm" >&5
6471echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
6472if test "${ac_cv_lib_m_roundf+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475 ac_check_lib_save_LIBS=$LIBS
6476LIBS="-lm $LIBS"
6477cat >conftest.$ac_ext <<_ACEOF
6478/* confdefs.h. */
6479_ACEOF
6480cat confdefs.h >>conftest.$ac_ext
6481cat >>conftest.$ac_ext <<_ACEOF
6482/* end confdefs.h. */
6483
6484/* Override any gcc2 internal prototype to avoid an error. */
6485#ifdef __cplusplus
6486extern "C"
6487#endif
6488/* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6490char roundf ();
6491int
6492main ()
6493{
6494roundf ();
6495 ;
6496 return 0;
6497}
6498_ACEOF
6499rm -f conftest.$ac_objext conftest$ac_exeext
6500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6501 (eval $ac_link) 2>conftest.er1
6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest$ac_exeext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_cv_lib_m_roundf=yes
6521else
6522 echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
6524
6525ac_cv_lib_m_roundf=no
6526fi
6527rm -f conftest.err conftest.$ac_objext \
6528 conftest$ac_exeext conftest.$ac_ext
6529LIBS=$ac_check_lib_save_LIBS
6530fi
6531echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
6532echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
6533if test $ac_cv_lib_m_roundf = yes; then
6534
6535cat >>confdefs.h <<\_ACEOF
6536#define HAVE_ROUNDF 1
6537_ACEOF
6538
6539fi
6540
6541
90973b19 6542# Let the user override this
6543# Check whether --enable-cmath or --disable-cmath was given.
6544if test "${enable_cmath+set}" = set; then
6545 enableval="$enable_cmath"
6546 need_math=$enableval
6547fi;
6548if test "$need_math" = "yes"; then
6549 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
6550echo "$as_me: Including complex math functions in libgfor" >&6;};
6551 extra_math_obj='$(gfor_cmath_obj)'
6552fi
6553
6554MATH_OBJ="$extra_math_obj"
6555
6556
6557# The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
6558# for struct timezone, as you might think. We also need to check how
6559# to call gettimeofday if we have it.
6560echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6561echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6562if test "${ac_cv_header_time+set}" = set; then
4ee9c684 6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
90973b19 6565 cat >conftest.$ac_ext <<_ACEOF
6566/* confdefs.h. */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h. */
6571#include <sys/types.h>
6572#include <sys/time.h>
6573#include <time.h>
6574
6575int
6576main ()
6577{
6578if ((struct tm *) 0)
6579return 0;
6580 ;
6581 return 0;
6582}
6583_ACEOF
6584rm -f conftest.$ac_objext
6585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586 (eval $ac_compile) 2>conftest.er1
6587 ac_status=$?
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
a31bd8a4 6593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
90973b19 6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 (eval $ac_try) 2>&5
6596 ac_status=$?
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; } &&
6599 { ac_try='test -s conftest.$ac_objext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 ac_cv_header_time=yes
6606else
6607 echo "$as_me: failed program was:" >&5
6608sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 6609
90973b19 6610ac_cv_header_time=no
4ee9c684 6611fi
90973b19 6612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 6613fi
90973b19 6614echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6615echo "${ECHO_T}$ac_cv_header_time" >&6
6616if test $ac_cv_header_time = yes; then
4ee9c684 6617
90973b19 6618cat >>confdefs.h <<\_ACEOF
6619#define TIME_WITH_SYS_TIME 1
6620_ACEOF
4ee9c684 6621
4ee9c684 6622fi
6623
4ee9c684 6624
90973b19 6625
6626for ac_func in gettimeofday
6627do
6628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6629echo "$as_me:$LINENO: checking for $ac_func" >&5
6630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6631if eval "test \"\${$as_ac_var+set}\" = set"; then
4ee9c684 6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
90973b19 6634 cat >conftest.$ac_ext <<_ACEOF
6635/* confdefs.h. */
6636_ACEOF
6637cat confdefs.h >>conftest.$ac_ext
6638cat >>conftest.$ac_ext <<_ACEOF
6639/* end confdefs.h. */
6640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6642#define $ac_func innocuous_$ac_func
6643
6644/* System header to define __stub macros and hopefully few prototypes,
6645 which can conflict with char $ac_func (); below.
6646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6647 <limits.h> exists even on freestanding compilers. */
6648
6649#ifdef __STDC__
6650# include <limits.h>
6651#else
6652# include <assert.h>
6653#endif
6654
6655#undef $ac_func
6656
6657/* Override any gcc2 internal prototype to avoid an error. */
6658#ifdef __cplusplus
6659extern "C"
6660{
6661#endif
6662/* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6664char $ac_func ();
6665/* The GNU C library defines this for functions which it implements
6666 to always fail with ENOSYS. Some functions are actually named
6667 something starting with __ and the normal name is an alias. */
6668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6669choke me
6670#else
6671char (*f) () = $ac_func;
6672#endif
6673#ifdef __cplusplus
6674}
6675#endif
6676
6677int
6678main ()
6679{
6680return f != $ac_func;
6681 ;
6682 return 0;
6683}
6684_ACEOF
6685rm -f conftest.$ac_objext conftest$ac_exeext
6686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6687 (eval $ac_link) 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
a31bd8a4 6694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
90973b19 6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; } &&
6700 { ac_try='test -s conftest$ac_exeext'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 (eval $ac_try) 2>&5
6703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 eval "$as_ac_var=yes"
4ee9c684 6707else
90973b19 6708 echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 6710
90973b19 6711eval "$as_ac_var=no"
4ee9c684 6712fi
90973b19 6713rm -f conftest.err conftest.$ac_objext \
6714 conftest$ac_exeext conftest.$ac_ext
4ee9c684 6715fi
90973b19 6716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6718if test `eval echo '${'$as_ac_var'}'` = yes; then
6719 cat >>confdefs.h <<_ACEOF
6720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6721_ACEOF
4ee9c684 6722
6723fi
4ee9c684 6724done
6725
90973b19 6726 if test "$ac_cv_func_gettimeofday" = yes; then
6727 echo "$as_me:$LINENO: checking for struct timezone" >&5
6728echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
6729if test "${gfor_cv_struct_timezone+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732 cat >conftest.$ac_ext <<_ACEOF
6733/* confdefs.h. */
6734_ACEOF
6735cat confdefs.h >>conftest.$ac_ext
6736cat >>conftest.$ac_ext <<_ACEOF
6737/* end confdefs.h. */
6738#include <sys/time.h>
6739int
6740main ()
6741{
6742struct timezone tz;
6743 ;
6744 return 0;
6745}
6746_ACEOF
6747rm -f conftest.$ac_objext
6748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6749 (eval $ac_compile) 2>conftest.er1
6750 ac_status=$?
6751 grep -v '^ *+' conftest.er1 >conftest.err
6752 rm -f conftest.er1
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } &&
a31bd8a4 6756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
90973b19 6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; } &&
6762 { ac_try='test -s conftest.$ac_objext'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6768 gfor_cv_struct_timezone=yes
4ee9c684 6769else
90973b19 6770 echo "$as_me: failed program was:" >&5
6771sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 6772
90973b19 6773gfor_cv_struct_timezone=no
4ee9c684 6774fi
90973b19 6775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6776fi
6777echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
6778echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
6779 if test $gfor_cv_struct_timezone = yes; then
6780 if test "$cross_compiling" = yes; then
6781 gfor_have_struct_timezone=yes
4ee9c684 6782else
90973b19 6783 cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
4ee9c684 6789
90973b19 6790#ifdef TIME_WITH_SYS_TIME
6791#include <sys/time.h>
6792#include <time.h>
6793#else
6794#ifdef HAVE_SYS_TIME_H
6795#include <sys/time.h>
6796#else
6797#include <time.h>
6798#endif
6799#endif
6800main ()
6801{
6802 struct timeval time;
6803 struct timezone dummy;
6804 if (gettimeofday (&time, &dummy))
6805 exit (1);
6806 else
6807 exit (0);
6808}
6809_ACEOF
6810rm -f conftest$ac_exeext
6811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6812 (eval $ac_link) 2>&5
4ee9c684 6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 6815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
4ee9c684 6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 6820 (exit $ac_status); }; }; then
6821 gfor_have_struct_timezone=yes
4ee9c684 6822else
90973b19 6823 echo "$as_me: program exited with status $ac_status" >&5
6824echo "$as_me: failed program was:" >&5
6825sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 6826
90973b19 6827( exit $ac_status )
6828gfor_have_struct_timezone=no
6829fi
6830rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6831fi
6832 if test $gfor_have_struct_timezone = yes; then
4ee9c684 6833
90973b19 6834cat >>confdefs.h <<\_ACEOF
6835#define HAVE_TIMEZONE 1
6836_ACEOF
4ee9c684 6837
90973b19 6838 fi
6839 fi
6840
6841 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
6842echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
6843if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845else
6846 cat >conftest.$ac_ext <<_ACEOF
4ee9c684 6847/* confdefs.h. */
6848_ACEOF
6849cat confdefs.h >>conftest.$ac_ext
6850cat >>conftest.$ac_ext <<_ACEOF
6851/* end confdefs.h. */
6852
90973b19 6853#ifdef TIME_WITH_SYS_TIME
6854#include <sys/time.h>
6855#include <time.h>
6856#else
6857#ifdef HAVE_SYS_TIME_H
6858#include <sys/time.h>
6859#else
6860#include <time.h>
6861#endif
6862#endif
6863
4ee9c684 6864int
6865main ()
6866{
6867
90973b19 6868 struct timeval time;
6869#ifdef HAVE_TIMEZONE
6870 struct timezone dummy;
6871#define DUMMY &dummy
6872#else
6873#define DUMMY NULL
6874#endif
6875 gettimeofday (&time, DUMMY);
4ee9c684 6876 ;
6877 return 0;
6878}
6879_ACEOF
6880rm -f conftest.$ac_objext conftest$ac_exeext
6881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6882 (eval $ac_link) 2>conftest.er1
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
a31bd8a4 6889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4ee9c684 6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest$ac_exeext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
90973b19 6901 emacs_cv_gettimeofday_two_arguments=yes
4ee9c684 6902else
6903 echo "$as_me: failed program was:" >&5
6904sed 's/^/| /' conftest.$ac_ext >&5
6905
90973b19 6906emacs_cv_gettimeofday_two_arguments=no
4ee9c684 6907fi
6908rm -f conftest.err conftest.$ac_objext \
6909 conftest$ac_exeext conftest.$ac_ext
4ee9c684 6910fi
90973b19 6911echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
6912echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
6913 if test $emacs_cv_gettimeofday_two_arguments = no; then
4ee9c684 6914
90973b19 6915cat >>confdefs.h <<\_ACEOF
6916#define GETTIMEOFDAY_ONE_ARGUMENT 1
6917_ACEOF
4ee9c684 6918
90973b19 6919 fi
6920 fi
4ee9c684 6921
4ee9c684 6922cat >confcache <<\_ACEOF
6923# This file is a shell script that caches the results of configure
6924# tests run on this system so they can be shared between configure
6925# scripts and configure runs, see configure's option --config-cache.
6926# It is not useful on other systems. If it contains results you don't
6927# want to keep, you may remove or edit it.
6928#
6929# config.status only pays attention to the cache file if you give it
6930# the --recheck option to rerun configure.
6931#
6932# `ac_cv_env_foo' variables (set or unset) will be overridden when
6933# loading this file, other *unset* `ac_cv_foo' will be assigned the
6934# following values.
6935
6936_ACEOF
6937
6938# The following way of writing the cache mishandles newlines in values,
6939# but we know of no workaround that is simple, portable, and efficient.
6940# So, don't put newlines in cache variables' values.
6941# Ultrix sh set writes to stderr and can't be redirected directly,
6942# and sets the high bit in the cache file unless we assign to the vars.
6943{
6944 (set) 2>&1 |
6945 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6946 *ac_space=\ *)
6947 # `set' does not quote correctly, so add quotes (double-quote
6948 # substitution turns \\\\ into \\, and sed turns \\ into \).
6949 sed -n \
6950 "s/'/'\\\\''/g;
6951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6952 ;;
6953 *)
6954 # `set' quotes correctly as required by POSIX, so do not add quotes.
6955 sed -n \
6956 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6957 ;;
6958 esac;
6959} |
6960 sed '
6961 t clear
6962 : clear
6963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6964 t end
6965 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6966 : end' >>confcache
6967if diff $cache_file confcache >/dev/null 2>&1; then :; else
6968 if test -w $cache_file; then
6969 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6970 cat confcache >$cache_file
6971 else
6972 echo "not updating unwritable cache $cache_file"
6973 fi
6974fi
6975rm -f confcache
6976
90973b19 6977if test ${multilib} = yes; then
6978 multilib_arg="--enable-multilib"
4ee9c684 6979else
90973b19 6980 multilib_arg=
4ee9c684 6981fi
4ee9c684 6982
90973b19 6983# Write our Makefile.
4ee9c684 6984 ac_config_files="$ac_config_files Makefile"
90973b19 6985
4ee9c684 6986cat >confcache <<\_ACEOF
6987# This file is a shell script that caches the results of configure
6988# tests run on this system so they can be shared between configure
6989# scripts and configure runs, see configure's option --config-cache.
6990# It is not useful on other systems. If it contains results you don't
6991# want to keep, you may remove or edit it.
6992#
6993# config.status only pays attention to the cache file if you give it
6994# the --recheck option to rerun configure.
6995#
6996# `ac_cv_env_foo' variables (set or unset) will be overridden when
6997# loading this file, other *unset* `ac_cv_foo' will be assigned the
6998# following values.
6999
7000_ACEOF
7001
7002# The following way of writing the cache mishandles newlines in values,
7003# but we know of no workaround that is simple, portable, and efficient.
7004# So, don't put newlines in cache variables' values.
7005# Ultrix sh set writes to stderr and can't be redirected directly,
7006# and sets the high bit in the cache file unless we assign to the vars.
7007{
7008 (set) 2>&1 |
7009 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7010 *ac_space=\ *)
7011 # `set' does not quote correctly, so add quotes (double-quote
7012 # substitution turns \\\\ into \\, and sed turns \\ into \).
7013 sed -n \
7014 "s/'/'\\\\''/g;
7015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7016 ;;
7017 *)
7018 # `set' quotes correctly as required by POSIX, so do not add quotes.
7019 sed -n \
7020 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7021 ;;
7022 esac;
7023} |
7024 sed '
7025 t clear
7026 : clear
7027 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7028 t end
7029 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7030 : end' >>confcache
7031if diff $cache_file confcache >/dev/null 2>&1; then :; else
7032 if test -w $cache_file; then
7033 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7034 cat confcache >$cache_file
7035 else
7036 echo "not updating unwritable cache $cache_file"
7037 fi
7038fi
7039rm -f confcache
7040
7041test "x$prefix" = xNONE && prefix=$ac_default_prefix
7042# Let make expand exec_prefix.
7043test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7044
7045# VPATH may cause trouble with some makes, so we remove $(srcdir),
7046# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7047# trailing colons and then remove the whole line if VPATH becomes empty
7048# (actually we leave an empty line to preserve line numbers).
7049if test "x$srcdir" = x.; then
7050 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7051s/:*\$(srcdir):*/:/;
7052s/:*\${srcdir}:*/:/;
7053s/:*@srcdir@:*/:/;
7054s/^\([^=]*=[ ]*\):*/\1/;
7055s/:*$//;
7056s/^[^=]*=[ ]*$//;
7057}'
7058fi
7059
7060DEFS=-DHAVE_CONFIG_H
7061
7062ac_libobjs=
7063ac_ltlibobjs=
7064for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7065 # 1. Remove the extension, and $U if already installed.
7066 ac_i=`echo "$ac_i" |
7067 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7068 # 2. Add them.
7069 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7070 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7071done
7072LIBOBJS=$ac_libobjs
7073
7074LTLIBOBJS=$ac_ltlibobjs
7075
7076
7077if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7078 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7079Usually this means the macro was only invoked conditionally." >&5
7080echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7081Usually this means the macro was only invoked conditionally." >&2;}
7082 { (exit 1); exit 1; }; }
7083fi
4ee9c684 7084
7085: ${CONFIG_STATUS=./config.status}
7086ac_clean_files_save=$ac_clean_files
7087ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7088{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7089echo "$as_me: creating $CONFIG_STATUS" >&6;}
7090cat >$CONFIG_STATUS <<_ACEOF
7091#! $SHELL
7092# Generated by $as_me.
7093# Run this file to recreate the current configuration.
7094# Compiler output produced by configure, useful for debugging
7095# configure, is in config.log if it exists.
7096
7097debug=false
7098ac_cs_recheck=false
7099ac_cs_silent=false
7100SHELL=\${CONFIG_SHELL-$SHELL}
7101_ACEOF
7102
7103cat >>$CONFIG_STATUS <<\_ACEOF
7104## --------------------- ##
7105## M4sh Initialization. ##
7106## --------------------- ##
7107
7108# Be Bourne compatible
7109if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7110 emulate sh
7111 NULLCMD=:
7112 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7113 # is contrary to our usage. Disable this feature.
7114 alias -g '${1+"$@"}'='"$@"'
7115elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7116 set -o posix
7117fi
7118DUALCASE=1; export DUALCASE # for MKS sh
7119
7120# Support unset when possible.
7121if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7122 as_unset=unset
7123else
7124 as_unset=false
7125fi
7126
7127
7128# Work around bugs in pre-3.0 UWIN ksh.
7129$as_unset ENV MAIL MAILPATH
7130PS1='$ '
7131PS2='> '
7132PS4='+ '
7133
7134# NLS nuisances.
7135for as_var in \
7136 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7137 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7138 LC_TELEPHONE LC_TIME
7139do
7140 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7141 eval $as_var=C; export $as_var
7142 else
7143 $as_unset $as_var
7144 fi
7145done
7146
7147# Required to use basename.
7148if expr a : '\(a\)' >/dev/null 2>&1; then
7149 as_expr=expr
7150else
7151 as_expr=false
7152fi
7153
7154if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7155 as_basename=basename
7156else
7157 as_basename=false
7158fi
7159
7160
7161# Name of the executable.
7162as_me=`$as_basename "$0" ||
7163$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7164 X"$0" : 'X\(//\)$' \| \
7165 X"$0" : 'X\(/\)$' \| \
7166 . : '\(.\)' 2>/dev/null ||
7167echo X/"$0" |
7168 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7169 /^X\/\(\/\/\)$/{ s//\1/; q; }
7170 /^X\/\(\/\).*/{ s//\1/; q; }
7171 s/.*/./; q'`
7172
7173
7174# PATH needs CR, and LINENO needs CR and PATH.
7175# Avoid depending upon Character Ranges.
7176as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7177as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7178as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7179as_cr_digits='0123456789'
7180as_cr_alnum=$as_cr_Letters$as_cr_digits
7181
7182# The user is always right.
7183if test "${PATH_SEPARATOR+set}" != set; then
7184 echo "#! /bin/sh" >conf$$.sh
7185 echo "exit 0" >>conf$$.sh
7186 chmod +x conf$$.sh
7187 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7188 PATH_SEPARATOR=';'
7189 else
7190 PATH_SEPARATOR=:
7191 fi
7192 rm -f conf$$.sh
7193fi
7194
7195
7196 as_lineno_1=$LINENO
7197 as_lineno_2=$LINENO
7198 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7199 test "x$as_lineno_1" != "x$as_lineno_2" &&
7200 test "x$as_lineno_3" = "x$as_lineno_2" || {
7201 # Find who we are. Look in the path if we contain no path at all
7202 # relative or not.
7203 case $0 in
7204 *[\\/]* ) as_myself=$0 ;;
7205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7211done
7212
7213 ;;
7214 esac
7215 # We did not find ourselves, most probably we were run as `sh COMMAND'
7216 # in which case we are not to be found in the path.
7217 if test "x$as_myself" = x; then
7218 as_myself=$0
7219 fi
7220 if test ! -f "$as_myself"; then
7221 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7222echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7223 { (exit 1); exit 1; }; }
7224 fi
7225 case $CONFIG_SHELL in
7226 '')
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for as_base in sh bash ksh sh5; do
7233 case $as_dir in
7234 /*)
7235 if ("$as_dir/$as_base" -c '
7236 as_lineno_1=$LINENO
7237 as_lineno_2=$LINENO
7238 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7239 test "x$as_lineno_1" != "x$as_lineno_2" &&
7240 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7241 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7242 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7243 CONFIG_SHELL=$as_dir/$as_base
7244 export CONFIG_SHELL
7245 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7246 fi;;
7247 esac
7248 done
7249done
7250;;
7251 esac
7252
7253 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7254 # uniformly replaced by the line number. The first 'sed' inserts a
7255 # line-number line before each line; the second 'sed' does the real
7256 # work. The second script uses 'N' to pair each line-number line
7257 # with the numbered line, and appends trailing '-' during
7258 # substitution so that $LINENO is not a special case at line end.
7259 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7260 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7261 sed '=' <$as_myself |
7262 sed '
7263 N
7264 s,$,-,
7265 : loop
7266 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7267 t loop
7268 s,-$,,
7269 s,^['$as_cr_digits']*\n,,
7270 ' >$as_me.lineno &&
7271 chmod +x $as_me.lineno ||
7272 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7273echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7274 { (exit 1); exit 1; }; }
7275
7276 # Don't try to exec as it changes $[0], causing all sort of problems
7277 # (the dirname of $[0] is not the place where we might find the
7278 # original and so on. Autoconf is especially sensible to this).
7279 . ./$as_me.lineno
7280 # Exit status is that of the last command.
7281 exit
7282}
7283
7284
7285case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7286 *c*,-n*) ECHO_N= ECHO_C='
7287' ECHO_T=' ' ;;
7288 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7289 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7290esac
7291
7292if expr a : '\(a\)' >/dev/null 2>&1; then
7293 as_expr=expr
7294else
7295 as_expr=false
7296fi
7297
7298rm -f conf$$ conf$$.exe conf$$.file
7299echo >conf$$.file
7300if ln -s conf$$.file conf$$ 2>/dev/null; then
7301 # We could just check for DJGPP; but this test a) works b) is more generic
7302 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7303 if test -f conf$$.exe; then
7304 # Don't use ln at all; we don't have any links
7305 as_ln_s='cp -p'
7306 else
7307 as_ln_s='ln -s'
7308 fi
7309elif ln conf$$.file conf$$ 2>/dev/null; then
7310 as_ln_s=ln
7311else
7312 as_ln_s='cp -p'
7313fi
7314rm -f conf$$ conf$$.exe conf$$.file
7315
7316if mkdir -p . 2>/dev/null; then
7317 as_mkdir_p=:
7318else
7319 test -d ./-p && rmdir ./-p
7320 as_mkdir_p=false
7321fi
7322
7323as_executable_p="test -f"
7324
7325# Sed expression to map a string onto a valid CPP name.
7326as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7327
7328# Sed expression to map a string onto a valid variable name.
7329as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7330
7331
7332# IFS
7333# We need space, tab and new line, in precisely that order.
7334as_nl='
7335'
7336IFS=" $as_nl"
7337
7338# CDPATH.
7339$as_unset CDPATH
7340
7341exec 6>&1
7342
7343# Open the log real soon, to keep \$[0] and so on meaningful, and to
7344# report actual input values of CONFIG_FILES etc. instead of their
7345# values after options handling. Logging --version etc. is OK.
7346exec 5>>config.log
7347{
7348 echo
7349 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7350## Running $as_me. ##
7351_ASBOX
7352} >&5
7353cat >&5 <<_CSEOF
7354
7355This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
7356generated by GNU Autoconf 2.59. Invocation command line was
7357
7358 CONFIG_FILES = $CONFIG_FILES
7359 CONFIG_HEADERS = $CONFIG_HEADERS
7360 CONFIG_LINKS = $CONFIG_LINKS
7361 CONFIG_COMMANDS = $CONFIG_COMMANDS
7362 $ $0 $@
7363
7364_CSEOF
7365echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7366echo >&5
7367_ACEOF
7368
7369# Files that config.status was made for.
7370if test -n "$ac_config_files"; then
7371 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7372fi
7373
7374if test -n "$ac_config_headers"; then
7375 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7376fi
7377
7378if test -n "$ac_config_links"; then
7379 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7380fi
7381
7382if test -n "$ac_config_commands"; then
7383 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7384fi
7385
7386cat >>$CONFIG_STATUS <<\_ACEOF
7387
7388ac_cs_usage="\
7389\`$as_me' instantiates files from templates according to the
7390current configuration.
7391
7392Usage: $0 [OPTIONS] [FILE]...
7393
7394 -h, --help print this help, then exit
7395 -V, --version print version number, then exit
7396 -q, --quiet do not print progress messages
7397 -d, --debug don't remove temporary files
7398 --recheck update $as_me by reconfiguring in the same conditions
7399 --file=FILE[:TEMPLATE]
7400 instantiate the configuration file FILE
7401 --header=FILE[:TEMPLATE]
7402 instantiate the configuration header FILE
7403
7404Configuration files:
7405$config_files
7406
7407Configuration headers:
7408$config_headers
7409
7410Configuration commands:
7411$config_commands
7412
7413Report bugs to <bug-autoconf@gnu.org>."
7414_ACEOF
7415
7416cat >>$CONFIG_STATUS <<_ACEOF
7417ac_cs_version="\\
7418GNU Fortran Runtime Library config.status 0.2
7419configured by $0, generated by GNU Autoconf 2.59,
7420 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7421
7422Copyright (C) 2003 Free Software Foundation, Inc.
7423This config.status script is free software; the Free Software Foundation
7424gives unlimited permission to copy, distribute and modify it."
7425srcdir=$srcdir
7426INSTALL="$INSTALL"
7427_ACEOF
7428
7429cat >>$CONFIG_STATUS <<\_ACEOF
7430# If no file are specified by the user, then we need to provide default
7431# value. By we need to know if files were specified by the user.
7432ac_need_defaults=:
7433while test $# != 0
7434do
7435 case $1 in
7436 --*=*)
7437 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7438 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7439 ac_shift=:
7440 ;;
7441 -*)
7442 ac_option=$1
7443 ac_optarg=$2
7444 ac_shift=shift
7445 ;;
7446 *) # This is not an option, so the user has probably given explicit
7447 # arguments.
7448 ac_option=$1
7449 ac_need_defaults=false;;
7450 esac
7451
7452 case $ac_option in
7453 # Handling of the options.
7454_ACEOF
7455cat >>$CONFIG_STATUS <<\_ACEOF
7456 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7457 ac_cs_recheck=: ;;
7458 --version | --vers* | -V )
7459 echo "$ac_cs_version"; exit 0 ;;
7460 --he | --h)
7461 # Conflict between --help and --header
7462 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7463Try \`$0 --help' for more information." >&5
7464echo "$as_me: error: ambiguous option: $1
7465Try \`$0 --help' for more information." >&2;}
7466 { (exit 1); exit 1; }; };;
7467 --help | --hel | -h )
7468 echo "$ac_cs_usage"; exit 0 ;;
7469 --debug | --d* | -d )
7470 debug=: ;;
7471 --file | --fil | --fi | --f )
7472 $ac_shift
7473 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7474 ac_need_defaults=false;;
7475 --header | --heade | --head | --hea )
7476 $ac_shift
7477 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7478 ac_need_defaults=false;;
7479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7480 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7481 ac_cs_silent=: ;;
7482
7483 # This is an error.
7484 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7485Try \`$0 --help' for more information." >&5
7486echo "$as_me: error: unrecognized option: $1
7487Try \`$0 --help' for more information." >&2;}
7488 { (exit 1); exit 1; }; } ;;
7489
7490 *) ac_config_targets="$ac_config_targets $1" ;;
7491
7492 esac
7493 shift
7494done
7495
7496ac_configure_extra_args=
7497
7498if $ac_cs_silent; then
7499 exec 6>/dev/null
7500 ac_configure_extra_args="$ac_configure_extra_args --silent"
7501fi
7502
7503_ACEOF
7504cat >>$CONFIG_STATUS <<_ACEOF
7505if \$ac_cs_recheck; then
7506 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7507 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7508fi
7509
7510_ACEOF
7511
7512cat >>$CONFIG_STATUS <<_ACEOF
7513#
7514# INIT-COMMANDS section.
7515#
7516
90973b19 7517
7518srcdir="$srcdir"
7519host="$host"
7520target="$target"
7521with_multisubdir="$with_multisubdir"
7522with_multisrctop="$with_multisrctop"
7523with_target_subdir="$with_target_subdir"
7524ac_configure_args="${multilib_arg} ${ac_configure_args}"
7525multi_basedir="$multi_basedir"
7526CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7527CC="$CC"
4ee9c684 7528
7529_ACEOF
7530
7531
7532
7533cat >>$CONFIG_STATUS <<\_ACEOF
7534for ac_config_target in $ac_config_targets
7535do
7536 case "$ac_config_target" in
7537 # Handling of arguments.
7538 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
90973b19 7539 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4ee9c684 7540 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7541 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7542echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7543 { (exit 1); exit 1; }; };;
7544 esac
7545done
7546
7547# If the user did not use the arguments to specify the items to instantiate,
7548# then the envvar interface is used. Set only those that are not.
7549# We use the long form for the default assignment because of an extremely
7550# bizarre bug on SunOS 4.1.3.
7551if $ac_need_defaults; then
7552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7553 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7554 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7555fi
7556
7557# Have a temporary directory for convenience. Make it in the build tree
7558# simply because there is no reason to put it here, and in addition,
7559# creating and moving files from /tmp can sometimes cause problems.
7560# Create a temporary directory, and hook for its removal unless debugging.
7561$debug ||
7562{
7563 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7564 trap '{ (exit 1); exit 1; }' 1 2 13 15
7565}
7566
7567# Create a (secure) tmp directory for tmp files.
7568
7569{
7570 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7571 test -n "$tmp" && test -d "$tmp"
7572} ||
7573{
7574 tmp=./confstat$$-$RANDOM
7575 (umask 077 && mkdir $tmp)
7576} ||
7577{
7578 echo "$me: cannot create a temporary directory in ." >&2
7579 { (exit 1); exit 1; }
7580}
7581
7582_ACEOF
7583
7584cat >>$CONFIG_STATUS <<_ACEOF
7585
7586#
7587# CONFIG_FILES section.
7588#
7589
7590# No need to generate the scripts if there are no CONFIG_FILES.
7591# This happens for instance when ./config.status config.h
7592if test -n "\$CONFIG_FILES"; then
7593 # Protect against being on the right side of a sed subst in config.status.
7594 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7595 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7596s,@SHELL@,$SHELL,;t t
7597s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7598s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7599s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7600s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7601s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7602s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7603s,@exec_prefix@,$exec_prefix,;t t
7604s,@prefix@,$prefix,;t t
7605s,@program_transform_name@,$program_transform_name,;t t
7606s,@bindir@,$bindir,;t t
7607s,@sbindir@,$sbindir,;t t
7608s,@libexecdir@,$libexecdir,;t t
7609s,@datadir@,$datadir,;t t
7610s,@sysconfdir@,$sysconfdir,;t t
7611s,@sharedstatedir@,$sharedstatedir,;t t
7612s,@localstatedir@,$localstatedir,;t t
7613s,@libdir@,$libdir,;t t
7614s,@includedir@,$includedir,;t t
7615s,@oldincludedir@,$oldincludedir,;t t
7616s,@infodir@,$infodir,;t t
7617s,@mandir@,$mandir,;t t
7618s,@build_alias@,$build_alias,;t t
7619s,@host_alias@,$host_alias,;t t
7620s,@target_alias@,$target_alias,;t t
7621s,@DEFS@,$DEFS,;t t
7622s,@ECHO_C@,$ECHO_C,;t t
7623s,@ECHO_N@,$ECHO_N,;t t
7624s,@ECHO_T@,$ECHO_T,;t t
7625s,@LIBS@,$LIBS,;t t
90973b19 7626s,@libtool_VERSION@,$libtool_VERSION,;t t
7627s,@build@,$build,;t t
7628s,@build_cpu@,$build_cpu,;t t
7629s,@build_vendor@,$build_vendor,;t t
7630s,@build_os@,$build_os,;t t
7631s,@host@,$host,;t t
7632s,@host_cpu@,$host_cpu,;t t
7633s,@host_vendor@,$host_vendor,;t t
7634s,@host_os@,$host_os,;t t
7635s,@target@,$target,;t t
7636s,@target_cpu@,$target_cpu,;t t
7637s,@target_vendor@,$target_vendor,;t t
7638s,@target_os@,$target_os,;t t
4ee9c684 7639s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7640s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7641s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7642s,@CYGPATH_W@,$CYGPATH_W,;t t
7643s,@PACKAGE@,$PACKAGE,;t t
7644s,@VERSION@,$VERSION,;t t
7645s,@ACLOCAL@,$ACLOCAL,;t t
7646s,@AUTOCONF@,$AUTOCONF,;t t
7647s,@AUTOMAKE@,$AUTOMAKE,;t t
7648s,@AUTOHEADER@,$AUTOHEADER,;t t
7649s,@MAKEINFO@,$MAKEINFO,;t t
7650s,@AMTAR@,$AMTAR,;t t
7651s,@install_sh@,$install_sh,;t t
7652s,@STRIP@,$STRIP,;t t
7653s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7654s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7655s,@mkdir_p@,$mkdir_p,;t t
7656s,@AWK@,$AWK,;t t
7657s,@SET_MAKE@,$SET_MAKE,;t t
7658s,@am__leading_dot@,$am__leading_dot,;t t
7659s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7660s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7661s,@MAINT@,$MAINT,;t t
90973b19 7662s,@multi_basedir@,$multi_basedir,;t t
7663s,@gcc_version@,$gcc_version,;t t
7664s,@toolexecdir@,$toolexecdir,;t t
7665s,@toolexeclibdir@,$toolexeclibdir,;t t
4ee9c684 7666s,@CC@,$CC,;t t
4ee9c684 7667s,@ac_ct_CC@,$ac_ct_CC,;t t
7668s,@EXEEXT@,$EXEEXT,;t t
7669s,@OBJEXT@,$OBJEXT,;t t
90973b19 7670s,@CFLAGS@,$CFLAGS,;t t
7671s,@AS@,$AS,;t t
7672s,@ac_ct_AS@,$ac_ct_AS,;t t
7673s,@AR@,$AR,;t t
7674s,@ac_ct_AR@,$ac_ct_AR,;t t
7675s,@RANLIB@,$RANLIB,;t t
7676s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7677s,@LN_S@,$LN_S,;t t
7678s,@LIBTOOL@,$LIBTOOL,;t t
7679s,@enable_shared@,$enable_shared,;t t
7680s,@enable_static@,$enable_static,;t t
4ee9c684 7681s,@F77@,$F77,;t t
7682s,@FFLAGS@,$FFLAGS,;t t
90973b19 7683s,@LDFLAGS@,$LDFLAGS,;t t
4ee9c684 7684s,@ac_ct_F77@,$ac_ct_F77,;t t
7685s,@CPP@,$CPP,;t t
90973b19 7686s,@CPPFLAGS@,$CPPFLAGS,;t t
4ee9c684 7687s,@EGREP@,$EGREP,;t t
7688s,@MATH_OBJ@,$MATH_OBJ,;t t
4ee9c684 7689s,@LIBOBJS@,$LIBOBJS,;t t
7690s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7691CEOF
7692
7693_ACEOF
7694
7695 cat >>$CONFIG_STATUS <<\_ACEOF
7696 # Split the substitutions into bite-sized pieces for seds with
7697 # small command number limits, like on Digital OSF/1 and HP-UX.
7698 ac_max_sed_lines=48
7699 ac_sed_frag=1 # Number of current file.
7700 ac_beg=1 # First line for current file.
7701 ac_end=$ac_max_sed_lines # Line after last line for current file.
7702 ac_more_lines=:
7703 ac_sed_cmds=
7704 while $ac_more_lines; do
7705 if test $ac_beg -gt 1; then
7706 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7707 else
7708 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7709 fi
7710 if test ! -s $tmp/subs.frag; then
7711 ac_more_lines=false
7712 else
7713 # The purpose of the label and of the branching condition is to
7714 # speed up the sed processing (if there are no `@' at all, there
7715 # is no need to browse any of the substitutions).
7716 # These are the two extra sed commands mentioned above.
7717 (echo ':t
7718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7719 if test -z "$ac_sed_cmds"; then
7720 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7721 else
7722 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7723 fi
7724 ac_sed_frag=`expr $ac_sed_frag + 1`
7725 ac_beg=$ac_end
7726 ac_end=`expr $ac_end + $ac_max_sed_lines`
7727 fi
7728 done
7729 if test -z "$ac_sed_cmds"; then
7730 ac_sed_cmds=cat
7731 fi
7732fi # test -n "$CONFIG_FILES"
7733
7734_ACEOF
7735cat >>$CONFIG_STATUS <<\_ACEOF
7736for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7738 case $ac_file in
7739 - | *:- | *:-:* ) # input from stdin
7740 cat >$tmp/stdin
7741 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7742 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7743 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7744 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7745 * ) ac_file_in=$ac_file.in ;;
7746 esac
7747
7748 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7749 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7750$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7751 X"$ac_file" : 'X\(//\)[^/]' \| \
7752 X"$ac_file" : 'X\(//\)$' \| \
7753 X"$ac_file" : 'X\(/\)' \| \
7754 . : '\(.\)' 2>/dev/null ||
7755echo X"$ac_file" |
7756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7758 /^X\(\/\/\)$/{ s//\1/; q; }
7759 /^X\(\/\).*/{ s//\1/; q; }
7760 s/.*/./; q'`
7761 { if $as_mkdir_p; then
7762 mkdir -p "$ac_dir"
7763 else
7764 as_dir="$ac_dir"
7765 as_dirs=
7766 while test ! -d "$as_dir"; do
7767 as_dirs="$as_dir $as_dirs"
7768 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7770 X"$as_dir" : 'X\(//\)[^/]' \| \
7771 X"$as_dir" : 'X\(//\)$' \| \
7772 X"$as_dir" : 'X\(/\)' \| \
7773 . : '\(.\)' 2>/dev/null ||
7774echo X"$as_dir" |
7775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7777 /^X\(\/\/\)$/{ s//\1/; q; }
7778 /^X\(\/\).*/{ s//\1/; q; }
7779 s/.*/./; q'`
7780 done
7781 test ! -n "$as_dirs" || mkdir $as_dirs
7782 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7783echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7784 { (exit 1); exit 1; }; }; }
7785
7786 ac_builddir=.
7787
7788if test "$ac_dir" != .; then
7789 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7790 # A "../" for each directory in $ac_dir_suffix.
7791 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7792else
7793 ac_dir_suffix= ac_top_builddir=
7794fi
7795
7796case $srcdir in
7797 .) # No --srcdir option. We are building in place.
7798 ac_srcdir=.
7799 if test -z "$ac_top_builddir"; then
7800 ac_top_srcdir=.
7801 else
7802 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7803 fi ;;
7804 [\\/]* | ?:[\\/]* ) # Absolute path.
7805 ac_srcdir=$srcdir$ac_dir_suffix;
7806 ac_top_srcdir=$srcdir ;;
7807 *) # Relative path.
7808 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7809 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7810esac
7811
7812# Do not use `cd foo && pwd` to compute absolute paths, because
7813# the directories may not exist.
7814case `pwd` in
7815.) ac_abs_builddir="$ac_dir";;
7816*)
7817 case "$ac_dir" in
7818 .) ac_abs_builddir=`pwd`;;
7819 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7820 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7821 esac;;
7822esac
7823case $ac_abs_builddir in
7824.) ac_abs_top_builddir=${ac_top_builddir}.;;
7825*)
7826 case ${ac_top_builddir}. in
7827 .) ac_abs_top_builddir=$ac_abs_builddir;;
7828 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7829 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7830 esac;;
7831esac
7832case $ac_abs_builddir in
7833.) ac_abs_srcdir=$ac_srcdir;;
7834*)
7835 case $ac_srcdir in
7836 .) ac_abs_srcdir=$ac_abs_builddir;;
7837 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7838 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7839 esac;;
7840esac
7841case $ac_abs_builddir in
7842.) ac_abs_top_srcdir=$ac_top_srcdir;;
7843*)
7844 case $ac_top_srcdir in
7845 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7846 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7847 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7848 esac;;
7849esac
7850
7851
7852 case $INSTALL in
7853 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7854 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7855 esac
7856
7857 # Let's still pretend it is `configure' which instantiates (i.e., don't
7858 # use $as_me), people would be surprised to read:
7859 # /* config.h. Generated by config.status. */
7860 if test x"$ac_file" = x-; then
7861 configure_input=
7862 else
7863 configure_input="$ac_file. "
7864 fi
7865 configure_input=$configure_input"Generated from `echo $ac_file_in |
7866 sed 's,.*/,,'` by configure."
7867
7868 # First look for the input files in the build tree, otherwise in the
7869 # src tree.
7870 ac_file_inputs=`IFS=:
7871 for f in $ac_file_in; do
7872 case $f in
7873 -) echo $tmp/stdin ;;
7874 [\\/$]*)
7875 # Absolute (can't be DOS-style, as IFS=:)
7876 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7877echo "$as_me: error: cannot find input file: $f" >&2;}
7878 { (exit 1); exit 1; }; }
7879 echo "$f";;
7880 *) # Relative
7881 if test -f "$f"; then
7882 # Build tree
7883 echo "$f"
7884 elif test -f "$srcdir/$f"; then
7885 # Source tree
7886 echo "$srcdir/$f"
7887 else
7888 # /dev/null tree
7889 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7890echo "$as_me: error: cannot find input file: $f" >&2;}
7891 { (exit 1); exit 1; }; }
7892 fi;;
7893 esac
7894 done` || { (exit 1); exit 1; }
a31bd8a4 7895
7896 if test x"$ac_file" != x-; then
7897 { echo "$as_me:$LINENO: creating $ac_file" >&5
7898echo "$as_me: creating $ac_file" >&6;}
7899 rm -f "$ac_file"
7900 fi
4ee9c684 7901_ACEOF
7902cat >>$CONFIG_STATUS <<_ACEOF
7903 sed "$ac_vpsub
7904$extrasub
7905_ACEOF
7906cat >>$CONFIG_STATUS <<\_ACEOF
7907:t
7908/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7909s,@configure_input@,$configure_input,;t t
7910s,@srcdir@,$ac_srcdir,;t t
7911s,@abs_srcdir@,$ac_abs_srcdir,;t t
7912s,@top_srcdir@,$ac_top_srcdir,;t t
7913s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7914s,@builddir@,$ac_builddir,;t t
7915s,@abs_builddir@,$ac_abs_builddir,;t t
7916s,@top_builddir@,$ac_top_builddir,;t t
7917s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7918s,@INSTALL@,$ac_INSTALL,;t t
7919" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7920 rm -f $tmp/stdin
7921 if test x"$ac_file" != x-; then
7922 mv $tmp/out $ac_file
7923 else
7924 cat $tmp/out
7925 rm -f $tmp/out
7926 fi
7927
7928done
7929_ACEOF
7930cat >>$CONFIG_STATUS <<\_ACEOF
7931
7932#
7933# CONFIG_HEADER section.
7934#
7935
7936# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7937# NAME is the cpp macro being defined and VALUE is the value it is being given.
7938#
7939# ac_d sets the value in "#define NAME VALUE" lines.
7940ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7941ac_dB='[ ].*$,\1#\2'
7942ac_dC=' '
7943ac_dD=',;t'
7944# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7945ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7946ac_uB='$,\1#\2define\3'
7947ac_uC=' '
7948ac_uD=',;t'
7949
7950for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7951 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7952 case $ac_file in
7953 - | *:- | *:-:* ) # input from stdin
7954 cat >$tmp/stdin
7955 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7956 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7957 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7958 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7959 * ) ac_file_in=$ac_file.in ;;
7960 esac
7961
7962 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7963echo "$as_me: creating $ac_file" >&6;}
7964
7965 # First look for the input files in the build tree, otherwise in the
7966 # src tree.
7967 ac_file_inputs=`IFS=:
7968 for f in $ac_file_in; do
7969 case $f in
7970 -) echo $tmp/stdin ;;
7971 [\\/$]*)
7972 # Absolute (can't be DOS-style, as IFS=:)
7973 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7974echo "$as_me: error: cannot find input file: $f" >&2;}
7975 { (exit 1); exit 1; }; }
7976 # Do quote $f, to prevent DOS paths from being IFS'd.
7977 echo "$f";;
7978 *) # Relative
7979 if test -f "$f"; then
7980 # Build tree
7981 echo "$f"
7982 elif test -f "$srcdir/$f"; then
7983 # Source tree
7984 echo "$srcdir/$f"
7985 else
7986 # /dev/null tree
7987 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7988echo "$as_me: error: cannot find input file: $f" >&2;}
7989 { (exit 1); exit 1; }; }
7990 fi;;
7991 esac
7992 done` || { (exit 1); exit 1; }
7993 # Remove the trailing spaces.
7994 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7995
7996_ACEOF
7997
7998# Transform confdefs.h into two sed scripts, `conftest.defines' and
7999# `conftest.undefs', that substitutes the proper values into
8000# config.h.in to produce config.h. The first handles `#define'
8001# templates, and the second `#undef' templates.
8002# And first: Protect against being on the right side of a sed subst in
8003# config.status. Protect against being in an unquoted here document
8004# in config.status.
8005rm -f conftest.defines conftest.undefs
8006# Using a here document instead of a string reduces the quoting nightmare.
8007# Putting comments in sed scripts is not portable.
8008#
8009# `end' is used to avoid that the second main sed command (meant for
8010# 0-ary CPP macros) applies to n-ary macro definitions.
8011# See the Autoconf documentation for `clear'.
8012cat >confdef2sed.sed <<\_ACEOF
8013s/[\\&,]/\\&/g
8014s,[\\$`],\\&,g
8015t clear
8016: clear
8017s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8018t end
8019s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8020: end
8021_ACEOF
8022# If some macros were called several times there might be several times
8023# the same #defines, which is useless. Nevertheless, we may not want to
8024# sort them, since we want the *last* AC-DEFINE to be honored.
8025uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8026sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8027rm -f confdef2sed.sed
8028
8029# This sed command replaces #undef with comments. This is necessary, for
8030# example, in the case of _POSIX_SOURCE, which is predefined and required
8031# on some systems where configure will not decide to define it.
8032cat >>conftest.undefs <<\_ACEOF
8033s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8034_ACEOF
8035
8036# Break up conftest.defines because some shells have a limit on the size
8037# of here documents, and old seds have small limits too (100 cmds).
8038echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8039echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8040echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8041echo ' :' >>$CONFIG_STATUS
8042rm -f conftest.tail
8043while grep . conftest.defines >/dev/null
8044do
8045 # Write a limited-size here document to $tmp/defines.sed.
8046 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8047 # Speed up: don't consider the non `#define' lines.
8048 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8049 # Work around the forget-to-reset-the-flag bug.
8050 echo 't clr' >>$CONFIG_STATUS
8051 echo ': clr' >>$CONFIG_STATUS
8052 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8053 echo 'CEOF
8054 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8055 rm -f $tmp/in
8056 mv $tmp/out $tmp/in
8057' >>$CONFIG_STATUS
8058 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8059 rm -f conftest.defines
8060 mv conftest.tail conftest.defines
8061done
8062rm -f conftest.defines
8063echo ' fi # grep' >>$CONFIG_STATUS
8064echo >>$CONFIG_STATUS
8065
8066# Break up conftest.undefs because some shells have a limit on the size
8067# of here documents, and old seds have small limits too (100 cmds).
8068echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8069rm -f conftest.tail
8070while grep . conftest.undefs >/dev/null
8071do
8072 # Write a limited-size here document to $tmp/undefs.sed.
8073 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8074 # Speed up: don't consider the non `#undef'
8075 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8076 # Work around the forget-to-reset-the-flag bug.
8077 echo 't clr' >>$CONFIG_STATUS
8078 echo ': clr' >>$CONFIG_STATUS
8079 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8080 echo 'CEOF
8081 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8082 rm -f $tmp/in
8083 mv $tmp/out $tmp/in
8084' >>$CONFIG_STATUS
8085 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8086 rm -f conftest.undefs
8087 mv conftest.tail conftest.undefs
8088done
8089rm -f conftest.undefs
8090
8091cat >>$CONFIG_STATUS <<\_ACEOF
8092 # Let's still pretend it is `configure' which instantiates (i.e., don't
8093 # use $as_me), people would be surprised to read:
8094 # /* config.h. Generated by config.status. */
8095 if test x"$ac_file" = x-; then
8096 echo "/* Generated by configure. */" >$tmp/config.h
8097 else
8098 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8099 fi
8100 cat $tmp/in >>$tmp/config.h
8101 rm -f $tmp/in
8102 if test x"$ac_file" != x-; then
8103 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8104 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8105echo "$as_me: $ac_file is unchanged" >&6;}
8106 else
8107 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8108$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8109 X"$ac_file" : 'X\(//\)[^/]' \| \
8110 X"$ac_file" : 'X\(//\)$' \| \
8111 X"$ac_file" : 'X\(/\)' \| \
8112 . : '\(.\)' 2>/dev/null ||
8113echo X"$ac_file" |
8114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8116 /^X\(\/\/\)$/{ s//\1/; q; }
8117 /^X\(\/\).*/{ s//\1/; q; }
8118 s/.*/./; q'`
8119 { if $as_mkdir_p; then
8120 mkdir -p "$ac_dir"
8121 else
8122 as_dir="$ac_dir"
8123 as_dirs=
8124 while test ! -d "$as_dir"; do
8125 as_dirs="$as_dir $as_dirs"
8126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8128 X"$as_dir" : 'X\(//\)[^/]' \| \
8129 X"$as_dir" : 'X\(//\)$' \| \
8130 X"$as_dir" : 'X\(/\)' \| \
8131 . : '\(.\)' 2>/dev/null ||
8132echo X"$as_dir" |
8133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8135 /^X\(\/\/\)$/{ s//\1/; q; }
8136 /^X\(\/\).*/{ s//\1/; q; }
8137 s/.*/./; q'`
8138 done
8139 test ! -n "$as_dirs" || mkdir $as_dirs
8140 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8141echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8142 { (exit 1); exit 1; }; }; }
8143
8144 rm -f $ac_file
8145 mv $tmp/config.h $ac_file
8146 fi
8147 else
8148 cat $tmp/config.h
8149 rm -f $tmp/config.h
8150 fi
8151# Compute $ac_file's index in $config_headers.
8152_am_stamp_count=1
8153for _am_header in $config_headers :; do
8154 case $_am_header in
8155 $ac_file | $ac_file:* )
8156 break ;;
8157 * )
8158 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8159 esac
8160done
8161echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8162$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8163 X$ac_file : 'X\(//\)[^/]' \| \
8164 X$ac_file : 'X\(//\)$' \| \
8165 X$ac_file : 'X\(/\)' \| \
8166 . : '\(.\)' 2>/dev/null ||
8167echo X$ac_file |
8168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8170 /^X\(\/\/\)$/{ s//\1/; q; }
8171 /^X\(\/\).*/{ s//\1/; q; }
8172 s/.*/./; q'`/stamp-h$_am_stamp_count
8173done
8174_ACEOF
8175cat >>$CONFIG_STATUS <<\_ACEOF
8176
8177#
8178# CONFIG_COMMANDS section.
8179#
8180for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8181 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8182 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8183 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8184$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8185 X"$ac_dest" : 'X\(//\)[^/]' \| \
8186 X"$ac_dest" : 'X\(//\)$' \| \
8187 X"$ac_dest" : 'X\(/\)' \| \
8188 . : '\(.\)' 2>/dev/null ||
8189echo X"$ac_dest" |
8190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8192 /^X\(\/\/\)$/{ s//\1/; q; }
8193 /^X\(\/\).*/{ s//\1/; q; }
8194 s/.*/./; q'`
8195 { if $as_mkdir_p; then
8196 mkdir -p "$ac_dir"
8197 else
8198 as_dir="$ac_dir"
8199 as_dirs=
8200 while test ! -d "$as_dir"; do
8201 as_dirs="$as_dir $as_dirs"
8202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8203$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8204 X"$as_dir" : 'X\(//\)[^/]' \| \
8205 X"$as_dir" : 'X\(//\)$' \| \
8206 X"$as_dir" : 'X\(/\)' \| \
8207 . : '\(.\)' 2>/dev/null ||
8208echo X"$as_dir" |
8209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8211 /^X\(\/\/\)$/{ s//\1/; q; }
8212 /^X\(\/\).*/{ s//\1/; q; }
8213 s/.*/./; q'`
8214 done
8215 test ! -n "$as_dirs" || mkdir $as_dirs
8216 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8217echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8218 { (exit 1); exit 1; }; }; }
8219
8220 ac_builddir=.
8221
8222if test "$ac_dir" != .; then
8223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8224 # A "../" for each directory in $ac_dir_suffix.
8225 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8226else
8227 ac_dir_suffix= ac_top_builddir=
8228fi
8229
8230case $srcdir in
8231 .) # No --srcdir option. We are building in place.
8232 ac_srcdir=.
8233 if test -z "$ac_top_builddir"; then
8234 ac_top_srcdir=.
8235 else
8236 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8237 fi ;;
8238 [\\/]* | ?:[\\/]* ) # Absolute path.
8239 ac_srcdir=$srcdir$ac_dir_suffix;
8240 ac_top_srcdir=$srcdir ;;
8241 *) # Relative path.
8242 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8243 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8244esac
8245
8246# Do not use `cd foo && pwd` to compute absolute paths, because
8247# the directories may not exist.
8248case `pwd` in
8249.) ac_abs_builddir="$ac_dir";;
8250*)
8251 case "$ac_dir" in
8252 .) ac_abs_builddir=`pwd`;;
8253 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8254 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8255 esac;;
8256esac
8257case $ac_abs_builddir in
8258.) ac_abs_top_builddir=${ac_top_builddir}.;;
8259*)
8260 case ${ac_top_builddir}. in
8261 .) ac_abs_top_builddir=$ac_abs_builddir;;
8262 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8263 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8264 esac;;
8265esac
8266case $ac_abs_builddir in
8267.) ac_abs_srcdir=$ac_srcdir;;
8268*)
8269 case $ac_srcdir in
8270 .) ac_abs_srcdir=$ac_abs_builddir;;
8271 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8272 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8273 esac;;
8274esac
8275case $ac_abs_builddir in
8276.) ac_abs_top_srcdir=$ac_top_srcdir;;
8277*)
8278 case $ac_top_srcdir in
8279 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8280 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8281 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8282 esac;;
8283esac
8284
8285
8286 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8287echo "$as_me: executing $ac_dest commands" >&6;}
8288 case $ac_dest in
90973b19 8289 default-1 )
8290# Only add multilib support code if we just rebuilt the top-level
8291# Makefile.
8292case " $CONFIG_FILES " in
8293 *" Makefile "*)
8294 ac_file=Makefile . ${multi_basedir}/config-ml.in
8295 ;;
8296esac ;;
4ee9c684 8297 esac
8298done
8299_ACEOF
8300
8301cat >>$CONFIG_STATUS <<\_ACEOF
8302
8303{ (exit 0); exit 0; }
8304_ACEOF
8305chmod +x $CONFIG_STATUS
8306ac_clean_files=$ac_clean_files_save
8307
8308
8309# configure is writing to config.log, and then calls config.status.
8310# config.status does its own redirection, appending to config.log.
8311# Unfortunately, on DOS this fails, as config.log is still kept open
8312# by configure, so config.status won't be able to write to it; its
8313# output is simply discarded. So we exec the FD to /dev/null,
8314# effectively closing config.log, so it can be properly (re)opened and
8315# appended to by config.status. When coming back to configure, we
8316# need to make the FD available again.
8317if test "$no_create" != yes; then
8318 ac_cs_success=:
8319 ac_config_status_args=
8320 test "$silent" = yes &&
8321 ac_config_status_args="$ac_config_status_args --quiet"
8322 exec 5>/dev/null
8323 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8324 exec 5>>config.log
8325 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8326 # would make configure fail if this is the last instruction.
8327 $ac_cs_success || { (exit 1); exit 1; }
8328fi
8329