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