2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
exec 7<&0 </dev/null 6>&1
555
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556
# so uname gets run too.
557
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562
ac_default_prefix=/usr/local
564
ac_config_libobj_dir=.
570
SHELL=${CONFIG_SHELL-/bin/sh}
572
# Identity of this package.
579
ac_unique_file="fnmatch.c"
580
# Factoring default headers for most tests.
581
ac_includes_default="\
583
#ifdef HAVE_SYS_TYPES_H
584
# include <sys/types.h>
586
#ifdef HAVE_SYS_STAT_H
587
# include <sys/stat.h>
593
# ifdef HAVE_STDLIB_H
598
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603
#ifdef HAVE_STRINGS_H
604
# include <strings.h>
606
#ifdef HAVE_INTTYPES_H
607
# include <inttypes.h>
625
program_transform_name
669
ac_precious_vars='build_alias
680
# Initialize some variables set by options.
682
ac_init_version=false
683
# The variables have the same names as the options, with
684
# dashes changed to underlines.
692
program_transform_name=s,x,x,
700
# Installation directory options.
701
# These are left unexpanded so users can "make install exec_prefix=/foo"
702
# and all the variables that are supposed to be based on exec_prefix
703
# by default will actually change.
704
# Use braces instead of parens because sh, perl, etc. also accept them.
705
# (The list follows the same order as the GNU Coding Standards.)
706
bindir='${exec_prefix}/bin'
707
sbindir='${exec_prefix}/sbin'
708
libexecdir='${exec_prefix}/libexec'
709
datarootdir='${prefix}/share'
710
datadir='${datarootdir}'
711
sysconfdir='${prefix}/etc'
712
sharedstatedir='${prefix}/com'
713
localstatedir='${prefix}/var'
714
includedir='${prefix}/include'
715
oldincludedir='/usr/include'
716
docdir='${datarootdir}/doc/${PACKAGE}'
717
infodir='${datarootdir}/info'
722
libdir='${exec_prefix}/lib'
723
localedir='${datarootdir}/locale'
724
mandir='${datarootdir}/man'
730
# If the previous option needs an argument, assign it.
731
if test -n "$ac_prev"; then
732
eval $ac_prev=\$ac_option
738
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
742
# Accept the important Cygnus configure options, so we can diagnose typos.
744
case $ac_dashdash$ac_option in
748
-bindir | --bindir | --bindi | --bind | --bin | --bi)
750
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
753
-build | --build | --buil | --bui | --bu)
754
ac_prev=build_alias ;;
755
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
756
build_alias=$ac_optarg ;;
758
-cache-file | --cache-file | --cache-fil | --cache-fi \
759
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760
ac_prev=cache_file ;;
761
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763
cache_file=$ac_optarg ;;
766
cache_file=config.cache ;;
768
-datadir | --datadir | --datadi | --datad)
770
-datadir=* | --datadir=* | --datadi=* | --datad=*)
771
datadir=$ac_optarg ;;
773
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774
| --dataroo | --dataro | --datar)
775
ac_prev=datarootdir ;;
776
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778
datarootdir=$ac_optarg ;;
780
-disable-* | --disable-*)
781
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782
# Reject names that are not valid shell variable names.
783
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
784
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
785
{ (exit 1); exit 1; }; }
786
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
787
eval enable_$ac_feature=no ;;
789
-docdir | --docdir | --docdi | --doc | --do)
791
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
794
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
796
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
799
-enable-* | --enable-*)
800
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
801
# Reject names that are not valid shell variable names.
802
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
804
{ (exit 1); exit 1; }; }
805
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
806
eval enable_$ac_feature=\$ac_optarg ;;
808
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
809
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
810
| --exec | --exe | --ex)
811
ac_prev=exec_prefix ;;
812
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
813
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
814
| --exec=* | --exe=* | --ex=*)
815
exec_prefix=$ac_optarg ;;
817
-gas | --gas | --ga | --g)
818
# Obsolete; use --with-gas.
821
-help | --help | --hel | --he | -h)
823
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
824
ac_init_help=recursive ;;
825
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
826
ac_init_help=short ;;
828
-host | --host | --hos | --ho)
829
ac_prev=host_alias ;;
830
-host=* | --host=* | --hos=* | --ho=*)
831
host_alias=$ac_optarg ;;
833
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
835
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
837
htmldir=$ac_optarg ;;
839
-includedir | --includedir | --includedi | --included | --include \
840
| --includ | --inclu | --incl | --inc)
841
ac_prev=includedir ;;
842
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
843
| --includ=* | --inclu=* | --incl=* | --inc=*)
844
includedir=$ac_optarg ;;
846
-infodir | --infodir | --infodi | --infod | --info | --inf)
848
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
849
infodir=$ac_optarg ;;
851
-libdir | --libdir | --libdi | --libd)
853
-libdir=* | --libdir=* | --libdi=* | --libd=*)
856
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
857
| --libexe | --libex | --libe)
858
ac_prev=libexecdir ;;
859
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
860
| --libexe=* | --libex=* | --libe=*)
861
libexecdir=$ac_optarg ;;
863
-localedir | --localedir | --localedi | --localed | --locale)
865
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
866
localedir=$ac_optarg ;;
868
-localstatedir | --localstatedir | --localstatedi | --localstated \
869
| --localstate | --localstat | --localsta | --localst | --locals)
870
ac_prev=localstatedir ;;
871
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
872
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
873
localstatedir=$ac_optarg ;;
875
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
877
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
881
# Obsolete; use --without-fp.
884
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
885
| --no-cr | --no-c | -n)
888
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
889
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
892
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
893
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
894
| --oldin | --oldi | --old | --ol | --o)
895
ac_prev=oldincludedir ;;
896
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
897
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
898
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
899
oldincludedir=$ac_optarg ;;
901
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
903
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
906
-program-prefix | --program-prefix | --program-prefi | --program-pref \
907
| --program-pre | --program-pr | --program-p)
908
ac_prev=program_prefix ;;
909
-program-prefix=* | --program-prefix=* | --program-prefi=* \
910
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
911
program_prefix=$ac_optarg ;;
913
-program-suffix | --program-suffix | --program-suffi | --program-suff \
914
| --program-suf | --program-su | --program-s)
915
ac_prev=program_suffix ;;
916
-program-suffix=* | --program-suffix=* | --program-suffi=* \
917
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
918
program_suffix=$ac_optarg ;;
920
-program-transform-name | --program-transform-name \
921
| --program-transform-nam | --program-transform-na \
922
| --program-transform-n | --program-transform- \
923
| --program-transform | --program-transfor \
924
| --program-transfo | --program-transf \
925
| --program-trans | --program-tran \
926
| --progr-tra | --program-tr | --program-t)
927
ac_prev=program_transform_name ;;
928
-program-transform-name=* | --program-transform-name=* \
929
| --program-transform-nam=* | --program-transform-na=* \
930
| --program-transform-n=* | --program-transform-=* \
931
| --program-transform=* | --program-transfor=* \
932
| --program-transfo=* | --program-transf=* \
933
| --program-trans=* | --program-tran=* \
934
| --progr-tra=* | --program-tr=* | --program-t=*)
935
program_transform_name=$ac_optarg ;;
937
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
939
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
942
-psdir | --psdir | --psdi | --psd | --ps)
944
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
947
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
948
| -silent | --silent | --silen | --sile | --sil)
951
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
953
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
955
sbindir=$ac_optarg ;;
957
-sharedstatedir | --sharedstatedir | --sharedstatedi \
958
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
959
| --sharedst | --shareds | --shared | --share | --shar \
961
ac_prev=sharedstatedir ;;
962
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
963
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
964
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
966
sharedstatedir=$ac_optarg ;;
968
-site | --site | --sit)
970
-site=* | --site=* | --sit=*)
973
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
975
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
978
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
979
| --syscon | --sysco | --sysc | --sys | --sy)
980
ac_prev=sysconfdir ;;
981
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
982
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
983
sysconfdir=$ac_optarg ;;
985
-target | --target | --targe | --targ | --tar | --ta | --t)
986
ac_prev=target_alias ;;
987
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
988
target_alias=$ac_optarg ;;
990
-v | -verbose | --verbose | --verbos | --verbo | --verb)
993
-version | --version | --versio | --versi | --vers | -V)
997
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
998
# Reject names that are not valid shell variable names.
999
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1001
{ (exit 1); exit 1; }; }
1002
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1003
eval with_$ac_package=\$ac_optarg ;;
1005
-without-* | --without-*)
1006
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007
# Reject names that are not valid shell variable names.
1008
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1010
{ (exit 1); exit 1; }; }
1011
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1012
eval with_$ac_package=no ;;
1015
# Obsolete; use --with-x.
1018
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1019
| --x-incl | --x-inc | --x-in | --x-i)
1020
ac_prev=x_includes ;;
1021
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1022
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1023
x_includes=$ac_optarg ;;
1025
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1026
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1027
ac_prev=x_libraries ;;
1028
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1029
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1030
x_libraries=$ac_optarg ;;
1032
-*) { echo "$as_me: error: unrecognized option: $ac_option
1033
Try \`$0 --help' for more information." >&2
1034
{ (exit 1); exit 1; }; }
1038
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1039
# Reject names that are not valid shell variable names.
1040
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1041
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1042
{ (exit 1); exit 1; }; }
1043
eval $ac_envvar=\$ac_optarg
1044
export $ac_envvar ;;
1047
# FIXME: should be removed in autoconf 3.0.
1048
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1049
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1051
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1057
if test -n "$ac_prev"; then
1058
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1059
{ echo "$as_me: error: missing argument to $ac_option" >&2
1060
{ (exit 1); exit 1; }; }
1063
# Be sure to have absolute directory names.
1064
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1065
datadir sysconfdir sharedstatedir localstatedir includedir \
1066
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1067
libdir localedir mandir
1069
eval ac_val=\$$ac_var
1071
[\\/$]* | ?:[\\/]* ) continue;;
1072
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1074
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1075
{ (exit 1); exit 1; }; }
1078
# There might be people who depend on the old broken behavior: `$host'
1079
# used to hold the argument of --host etc.
1080
# FIXME: To remove some day.
1083
target=$target_alias
1085
# FIXME: To remove some day.
1086
if test "x$host_alias" != x; then
1087
if test "x$build_alias" = x; then
1088
cross_compiling=maybe
1089
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1090
If a cross compiler is detected then cross compile mode will be used." >&2
1091
elif test "x$build_alias" != "x$host_alias"; then
1097
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1099
test "$silent" = yes && exec 6>/dev/null
1102
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1103
ac_ls_di=`ls -di .` &&
1104
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1105
{ echo "$as_me: error: Working directory cannot be determined" >&2
1106
{ (exit 1); exit 1; }; }
1107
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1108
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1109
{ (exit 1); exit 1; }; }
1112
# Find the source files, if location was not specified.
1113
if test -z "$srcdir"; then
1114
ac_srcdir_defaulted=yes
1115
# Try the directory containing this script, then the parent directory.
1116
ac_confdir=`$as_dirname -- "$0" ||
1117
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1118
X"$0" : 'X\(//\)[^/]' \| \
1119
X"$0" : 'X\(//\)$' \| \
1120
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1122
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1140
if test ! -r "$srcdir/$ac_unique_file"; then
1144
ac_srcdir_defaulted=no
1146
if test ! -r "$srcdir/$ac_unique_file"; then
1147
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1148
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1149
{ (exit 1); exit 1; }; }
1151
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1153
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1154
{ (exit 1); exit 1; }; }
1156
# When building in place, set srcdir=.
1157
if test "$ac_abs_confdir" = "$ac_pwd"; then
1160
# Remove unnecessary trailing slashes from srcdir.
1161
# Double slashes in file names in object file debugging info
1162
# mess up M-x gdb in Emacs.
1164
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1166
for ac_var in $ac_precious_vars; do
1167
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1168
eval ac_env_${ac_var}_value=\$${ac_var}
1169
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1170
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1174
# Report the --help message.
1176
if test "$ac_init_help" = "long"; then
1177
# Omit some internal or obsolete options to make the list less imposing.
1178
# This message is too long to be a string in the A/UX 3.1 sh.
1180
\`configure' configures this package to adapt to many kinds of systems.
1182
Usage: $0 [OPTION]... [VAR=VALUE]...
1184
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1185
VAR=VALUE. See below for descriptions of some of the useful variables.
1187
Defaults for the options are specified in brackets.
1190
-h, --help display this help and exit
1191
--help=short display options specific to this package
1192
--help=recursive display the short help of all the included packages
1193
-V, --version display version information and exit
1194
-q, --quiet, --silent do not print \`checking...' messages
1195
--cache-file=FILE cache test results in FILE [disabled]
1196
-C, --config-cache alias for \`--cache-file=config.cache'
1197
-n, --no-create do not create output files
1198
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1200
Installation directories:
1201
--prefix=PREFIX install architecture-independent files in PREFIX
1202
[$ac_default_prefix]
1203
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1206
By default, \`make install' will install all the files in
1207
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1208
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1209
for instance \`--prefix=\$HOME'.
1211
For better control, use the options below.
1213
Fine tuning of the installation directories:
1214
--bindir=DIR user executables [EPREFIX/bin]
1215
--sbindir=DIR system admin executables [EPREFIX/sbin]
1216
--libexecdir=DIR program executables [EPREFIX/libexec]
1217
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1218
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1219
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1220
--libdir=DIR object code libraries [EPREFIX/lib]
1221
--includedir=DIR C header files [PREFIX/include]
1222
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1223
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1224
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1225
--infodir=DIR info documentation [DATAROOTDIR/info]
1226
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1227
--mandir=DIR man documentation [DATAROOTDIR/man]
1228
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1229
--htmldir=DIR html documentation [DOCDIR]
1230
--dvidir=DIR dvi documentation [DOCDIR]
1231
--pdfdir=DIR pdf documentation [DOCDIR]
1232
--psdir=DIR ps documentation [DOCDIR]
1239
if test -n "$ac_init_help"; then
1243
Some influential environment variables:
1244
CC C compiler command
1245
CFLAGS C compiler flags
1246
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1247
nonstandard directory <lib dir>
1248
LIBS libraries to pass to the linker, e.g. -l<library>
1249
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1250
you have headers in a nonstandard directory <include dir>
1253
Use these variables to override the choices made by `configure' or to help
1254
it to find libraries and programs with nonstandard names/locations.
1260
if test "$ac_init_help" = "recursive"; then
1261
# If there are subdirs, report their specific --help.
1262
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1263
test -d "$ac_dir" || continue
1267
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1269
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1270
# A ".." for each directory in $ac_dir_suffix.
1271
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1272
case $ac_top_builddir_sub in
1273
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1274
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1277
ac_abs_top_builddir=$ac_pwd
1278
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1279
# for backward compatibility:
1280
ac_top_builddir=$ac_top_build_prefix
1283
.) # We are building in place.
1285
ac_top_srcdir=$ac_top_builddir_sub
1286
ac_abs_top_srcdir=$ac_pwd ;;
1287
[\\/]* | ?:[\\/]* ) # Absolute name.
1288
ac_srcdir=$srcdir$ac_dir_suffix;
1289
ac_top_srcdir=$srcdir
1290
ac_abs_top_srcdir=$srcdir ;;
1292
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1293
ac_top_srcdir=$ac_top_build_prefix$srcdir
1294
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1296
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1298
cd "$ac_dir" || { ac_status=$?; continue; }
1299
# Check for guested configure.
1300
if test -f "$ac_srcdir/configure.gnu"; then
1302
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1303
elif test -f "$ac_srcdir/configure"; then
1305
$SHELL "$ac_srcdir/configure" --help=recursive
1307
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1309
cd "$ac_pwd" || { ac_status=$?; break; }
1313
test -n "$ac_init_help" && exit $ac_status
1314
if $ac_init_version; then
1317
generated by GNU Autoconf 2.61
1319
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1320
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1321
This configure script is free software; the Free Software Foundation
1322
gives unlimited permission to copy, distribute and modify it.
1326
cat >config.log <<_ACEOF
1327
This file contains any messages produced by compilers while
1328
running configure, to aid debugging if configure makes a mistake.
1330
It was created by $as_me, which was
1331
generated by GNU Autoconf 2.61. Invocation command line was
1343
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1344
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1345
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1346
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1347
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1349
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1350
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1352
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1353
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1354
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1355
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1356
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1357
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1358
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366
test -z "$as_dir" && as_dir=.
1367
echo "PATH: $as_dir"
1383
# Keep a trace of the command line.
1384
# Strip out --no-create and --no-recursion so they do not pile up.
1385
# Strip out --silent because we don't want to record it for future runs.
1386
# Also quote any args containing shell meta-characters.
1387
# Make two passes to allow for proper duplicate-argument suppression.
1391
ac_must_keep_next=false
1397
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1398
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399
| -silent | --silent | --silen | --sile | --sil)
1402
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1405
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1407
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1408
if test $ac_must_keep_next = true; then
1409
ac_must_keep_next=false # Got value, back to normal.
1412
*=* | --config-cache | -C | -disable-* | --disable-* \
1413
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1414
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1415
| -with-* | --with-* | -without-* | --without-* | --x)
1416
case "$ac_configure_args0 " in
1417
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1420
-* ) ac_must_keep_next=true ;;
1423
ac_configure_args="$ac_configure_args '$ac_arg'"
1428
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1429
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1431
# When interrupted or exit'd, cleanup temporary files, and complete
1432
# config.log. We remove comments because anyway the quotes in there
1433
# would cause problems or look ugly.
1434
# WARNING: Use '\'' to represent an apostrophe within the trap.
1435
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1436
trap 'exit_status=$?
1437
# Save into config.log some information that might help in debugging.
1442
## ---------------- ##
1443
## Cache variables. ##
1444
## ---------------- ##
1447
# The following way of writing the cache mishandles newlines in values,
1449
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1450
eval ac_val=\$$ac_var
1454
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1455
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1458
_ | IFS | as_nl) ;; #(
1459
*) $as_unset $ac_var ;;
1464
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1465
*${as_nl}ac_space=\ *)
1467
"s/'\''/'\''\\\\'\'''\''/g;
1468
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1471
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1479
## ----------------- ##
1480
## Output variables. ##
1481
## ----------------- ##
1484
for ac_var in $ac_subst_vars
1486
eval ac_val=\$$ac_var
1488
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1490
echo "$ac_var='\''$ac_val'\''"
1494
if test -n "$ac_subst_files"; then
1496
## ------------------- ##
1497
## File substitutions. ##
1498
## ------------------- ##
1501
for ac_var in $ac_subst_files
1503
eval ac_val=\$$ac_var
1505
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1507
echo "$ac_var='\''$ac_val'\''"
1512
if test -s confdefs.h; then
1522
test "$ac_signal" != 0 &&
1523
echo "$as_me: caught signal $ac_signal"
1524
echo "$as_me: exit $exit_status"
1526
rm -f core *.core core.conftest.* &&
1527
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1530
for ac_signal in 1 2 13 15; do
1531
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1535
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1536
rm -f -r conftest* confdefs.h
1538
# Predefined preprocessor variables.
1540
cat >>confdefs.h <<_ACEOF
1541
#define PACKAGE_NAME "$PACKAGE_NAME"
1545
cat >>confdefs.h <<_ACEOF
1546
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1550
cat >>confdefs.h <<_ACEOF
1551
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1555
cat >>confdefs.h <<_ACEOF
1556
#define PACKAGE_STRING "$PACKAGE_STRING"
1560
cat >>confdefs.h <<_ACEOF
1561
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1565
# Let the site file select an alternate cache file if it wants to.
1566
# Prefer explicitly selected file to automatically selected ones.
1567
if test -n "$CONFIG_SITE"; then
1568
set x "$CONFIG_SITE"
1569
elif test "x$prefix" != xNONE; then
1570
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1572
set x "$ac_default_prefix/share/config.site" \
1573
"$ac_default_prefix/etc/config.site"
1578
if test -r "$ac_site_file"; then
1579
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1580
echo "$as_me: loading site script $ac_site_file" >&6;}
1581
sed 's/^/| /' "$ac_site_file" >&5
1586
if test -r "$cache_file"; then
1587
# Some versions of bash will fail to source /dev/null (special
1588
# files actually), so we avoid doing that.
1589
if test -f "$cache_file"; then
1590
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1591
echo "$as_me: loading cache $cache_file" >&6;}
1593
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1594
*) . "./$cache_file";;
1598
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1599
echo "$as_me: creating cache $cache_file" >&6;}
1603
# Check that the precious variables saved in the cache have kept the same
1605
ac_cache_corrupted=false
1606
for ac_var in $ac_precious_vars; do
1607
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1608
eval ac_new_set=\$ac_env_${ac_var}_set
1609
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1610
eval ac_new_val=\$ac_env_${ac_var}_value
1611
case $ac_old_set,$ac_new_set in
1613
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1614
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1615
ac_cache_corrupted=: ;;
1617
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1618
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1619
ac_cache_corrupted=: ;;
1622
if test "x$ac_old_val" != "x$ac_new_val"; then
1623
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1624
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1625
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1626
echo "$as_me: former value: $ac_old_val" >&2;}
1627
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1628
echo "$as_me: current value: $ac_new_val" >&2;}
1629
ac_cache_corrupted=:
1632
# Pass precious variables to config.status.
1633
if test "$ac_new_set" = set; then
1635
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1636
*) ac_arg=$ac_var=$ac_new_val ;;
1638
case " $ac_configure_args " in
1639
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1640
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1644
if $ac_cache_corrupted; then
1645
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1646
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1647
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1648
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1649
{ (exit 1); exit 1; }; }
1669
ac_cpp='$CPP $CPPFLAGS'
1670
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1671
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1672
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1675
ac_cpp='$CPP $CPPFLAGS'
1676
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1677
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1678
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1679
if test -n "$ac_tool_prefix"; then
1680
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1681
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1682
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1683
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1684
if test "${ac_cv_prog_CC+set}" = set; then
1685
echo $ECHO_N "(cached) $ECHO_C" >&6
1687
if test -n "$CC"; then
1688
ac_cv_prog_CC="$CC" # Let the user override the test.
1690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694
test -z "$as_dir" && as_dir=.
1695
for ac_exec_ext in '' $ac_executable_extensions; do
1696
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1697
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1698
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708
if test -n "$CC"; then
1709
{ echo "$as_me:$LINENO: result: $CC" >&5
1710
echo "${ECHO_T}$CC" >&6; }
1712
{ echo "$as_me:$LINENO: result: no" >&5
1713
echo "${ECHO_T}no" >&6; }
1718
if test -z "$ac_cv_prog_CC"; then
1720
# Extract the first word of "gcc", so it can be a program name with args.
1721
set dummy gcc; ac_word=$2
1722
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1723
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1724
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1725
echo $ECHO_N "(cached) $ECHO_C" >&6
1727
if test -n "$ac_ct_CC"; then
1728
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1730
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734
test -z "$as_dir" && as_dir=.
1735
for ac_exec_ext in '' $ac_executable_extensions; do
1736
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1737
ac_cv_prog_ac_ct_CC="gcc"
1738
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1748
if test -n "$ac_ct_CC"; then
1749
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1750
echo "${ECHO_T}$ac_ct_CC" >&6; }
1752
{ echo "$as_me:$LINENO: result: no" >&5
1753
echo "${ECHO_T}no" >&6; }
1756
if test "x$ac_ct_CC" = x; then
1759
case $cross_compiling:$ac_tool_warned in
1761
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1762
whose name does not start with the host triplet. If you think this
1763
configuration is useful to you, please write to autoconf@gnu.org." >&5
1764
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1765
whose name does not start with the host triplet. If you think this
1766
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1767
ac_tool_warned=yes ;;
1775
if test -z "$CC"; then
1776
if test -n "$ac_tool_prefix"; then
1777
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1778
set dummy ${ac_tool_prefix}cc; ac_word=$2
1779
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1780
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1781
if test "${ac_cv_prog_CC+set}" = set; then
1782
echo $ECHO_N "(cached) $ECHO_C" >&6
1784
if test -n "$CC"; then
1785
ac_cv_prog_CC="$CC" # Let the user override the test.
1787
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791
test -z "$as_dir" && as_dir=.
1792
for ac_exec_ext in '' $ac_executable_extensions; do
1793
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1794
ac_cv_prog_CC="${ac_tool_prefix}cc"
1795
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805
if test -n "$CC"; then
1806
{ echo "$as_me:$LINENO: result: $CC" >&5
1807
echo "${ECHO_T}$CC" >&6; }
1809
{ echo "$as_me:$LINENO: result: no" >&5
1810
echo "${ECHO_T}no" >&6; }
1816
if test -z "$CC"; then
1817
# Extract the first word of "cc", so it can be a program name with args.
1818
set dummy cc; ac_word=$2
1819
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1820
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1821
if test "${ac_cv_prog_CC+set}" = set; then
1822
echo $ECHO_N "(cached) $ECHO_C" >&6
1824
if test -n "$CC"; then
1825
ac_cv_prog_CC="$CC" # Let the user override the test.
1828
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832
test -z "$as_dir" && as_dir=.
1833
for ac_exec_ext in '' $ac_executable_extensions; do
1834
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1835
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1836
ac_prog_rejected=yes
1840
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847
if test $ac_prog_rejected = yes; then
1848
# We found a bogon in the path, so make sure we never use it.
1849
set dummy $ac_cv_prog_CC
1851
if test $# != 0; then
1852
# We chose a different compiler from the bogus one.
1853
# However, it has the same basename, so the bogon will be chosen
1854
# first if we set CC to just the basename; use the full file name.
1856
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1862
if test -n "$CC"; then
1863
{ echo "$as_me:$LINENO: result: $CC" >&5
1864
echo "${ECHO_T}$CC" >&6; }
1866
{ echo "$as_me:$LINENO: result: no" >&5
1867
echo "${ECHO_T}no" >&6; }
1872
if test -z "$CC"; then
1873
if test -n "$ac_tool_prefix"; then
1874
for ac_prog in cl.exe
1876
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1877
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1878
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1879
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1880
if test "${ac_cv_prog_CC+set}" = set; then
1881
echo $ECHO_N "(cached) $ECHO_C" >&6
1883
if test -n "$CC"; then
1884
ac_cv_prog_CC="$CC" # Let the user override the test.
1886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890
test -z "$as_dir" && as_dir=.
1891
for ac_exec_ext in '' $ac_executable_extensions; do
1892
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1894
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904
if test -n "$CC"; then
1905
{ echo "$as_me:$LINENO: result: $CC" >&5
1906
echo "${ECHO_T}$CC" >&6; }
1908
{ echo "$as_me:$LINENO: result: no" >&5
1909
echo "${ECHO_T}no" >&6; }
1913
test -n "$CC" && break
1916
if test -z "$CC"; then
1918
for ac_prog in cl.exe
1920
# Extract the first word of "$ac_prog", so it can be a program name with args.
1921
set dummy $ac_prog; ac_word=$2
1922
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1924
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925
echo $ECHO_N "(cached) $ECHO_C" >&6
1927
if test -n "$ac_ct_CC"; then
1928
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934
test -z "$as_dir" && as_dir=.
1935
for ac_exec_ext in '' $ac_executable_extensions; do
1936
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1937
ac_cv_prog_ac_ct_CC="$ac_prog"
1938
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948
if test -n "$ac_ct_CC"; then
1949
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950
echo "${ECHO_T}$ac_ct_CC" >&6; }
1952
{ echo "$as_me:$LINENO: result: no" >&5
1953
echo "${ECHO_T}no" >&6; }
1957
test -n "$ac_ct_CC" && break
1960
if test "x$ac_ct_CC" = x; then
1963
case $cross_compiling:$ac_tool_warned in
1965
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1966
whose name does not start with the host triplet. If you think this
1967
configuration is useful to you, please write to autoconf@gnu.org." >&5
1968
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1969
whose name does not start with the host triplet. If you think this
1970
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1971
ac_tool_warned=yes ;;
1980
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1981
See \`config.log' for more details." >&5
1982
echo "$as_me: error: no acceptable C compiler found in \$PATH
1983
See \`config.log' for more details." >&2;}
1984
{ (exit 1); exit 1; }; }
1986
# Provide some information about the compiler.
1987
echo "$as_me:$LINENO: checking for C compiler version" >&5
1988
ac_compiler=`set X $ac_compile; echo $2`
1989
{ (ac_try="$ac_compiler --version >&5"
1991
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992
*) ac_try_echo=$ac_try;;
1994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1995
(eval "$ac_compiler --version >&5") 2>&5
1997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998
(exit $ac_status); }
1999
{ (ac_try="$ac_compiler -v >&5"
2001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002
*) ac_try_echo=$ac_try;;
2004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2005
(eval "$ac_compiler -v >&5") 2>&5
2007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008
(exit $ac_status); }
2009
{ (ac_try="$ac_compiler -V >&5"
2011
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012
*) ac_try_echo=$ac_try;;
2014
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2015
(eval "$ac_compiler -V >&5") 2>&5
2017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018
(exit $ac_status); }
2020
cat >conftest.$ac_ext <<_ACEOF
2023
cat confdefs.h >>conftest.$ac_ext
2024
cat >>conftest.$ac_ext <<_ACEOF
2025
/* end confdefs.h. */
2035
ac_clean_files_save=$ac_clean_files
2036
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2037
# Try to create an executable without -o first, disregard a.out.
2038
# It will help us diagnose broken compilers, and finding out an intuition
2040
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2041
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2042
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2044
# List of possible output files, starting from the most likely.
2045
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2046
# only as a last resort. b.out is created by i960 compilers.
2047
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2049
# The IRIX 6 linker writes into existing files which may not be
2050
# executable, retaining their permissions. Remove them first so a
2051
# subsequent execution test works.
2053
for ac_file in $ac_files
2056
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2057
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2062
if { (ac_try="$ac_link_default"
2064
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065
*) ac_try_echo=$ac_try;;
2067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2068
(eval "$ac_link_default") 2>&5
2070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071
(exit $ac_status); }; then
2072
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2073
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2074
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2075
# so that the user can short-circuit this test for compilers unknown to
2077
for ac_file in $ac_files ''
2079
test -f "$ac_file" || continue
2081
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2084
# We found the default executable, but exeext='' is most
2088
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2090
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2092
# We set ac_cv_exeext here because the later test for it is not
2093
# safe: cross compilers may not add the suffix if given an `-o'
2094
# argument, so we may need to know it at that point already.
2095
# Even if this section looks crufty: it has the advantage of
2102
test "$ac_cv_exeext" = no && ac_cv_exeext=
2108
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2109
echo "${ECHO_T}$ac_file" >&6; }
2110
if test -z "$ac_file"; then
2111
echo "$as_me: failed program was:" >&5
2112
sed 's/^/| /' conftest.$ac_ext >&5
2114
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2115
See \`config.log' for more details." >&5
2116
echo "$as_me: error: C compiler cannot create executables
2117
See \`config.log' for more details." >&2;}
2118
{ (exit 77); exit 77; }; }
2121
ac_exeext=$ac_cv_exeext
2123
# Check that the compiler produces executables we can run. If not, either
2124
# the compiler is broken, or we cross compile.
2125
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2126
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2127
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2128
# If not cross compiling, check that we can run a simple program.
2129
if test "$cross_compiling" != yes; then
2130
if { ac_try='./$ac_file'
2131
{ (case "(($ac_try" in
2132
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133
*) ac_try_echo=$ac_try;;
2135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136
(eval "$ac_try") 2>&5
2138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139
(exit $ac_status); }; }; then
2142
if test "$cross_compiling" = maybe; then
2145
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2146
If you meant to cross compile, use \`--host'.
2147
See \`config.log' for more details." >&5
2148
echo "$as_me: error: cannot run C compiled programs.
2149
If you meant to cross compile, use \`--host'.
2150
See \`config.log' for more details." >&2;}
2151
{ (exit 1); exit 1; }; }
2155
{ echo "$as_me:$LINENO: result: yes" >&5
2156
echo "${ECHO_T}yes" >&6; }
2158
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2159
ac_clean_files=$ac_clean_files_save
2160
# Check that the compiler produces executables we can run. If not, either
2161
# the compiler is broken, or we cross compile.
2162
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2163
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2164
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2165
echo "${ECHO_T}$cross_compiling" >&6; }
2167
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2168
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2169
if { (ac_try="$ac_link"
2171
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172
*) ac_try_echo=$ac_try;;
2174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2175
(eval "$ac_link") 2>&5
2177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178
(exit $ac_status); }; then
2179
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2180
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2181
# work properly (i.e., refer to `conftest.exe'), while it won't with
2183
for ac_file in conftest.exe conftest conftest.*; do
2184
test -f "$ac_file" || continue
2186
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2187
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2194
See \`config.log' for more details." >&5
2195
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2196
See \`config.log' for more details." >&2;}
2197
{ (exit 1); exit 1; }; }
2200
rm -f conftest$ac_cv_exeext
2201
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2202
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2204
rm -f conftest.$ac_ext
2205
EXEEXT=$ac_cv_exeext
2207
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2208
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2209
if test "${ac_cv_objext+set}" = set; then
2210
echo $ECHO_N "(cached) $ECHO_C" >&6
2212
cat >conftest.$ac_ext <<_ACEOF
2215
cat confdefs.h >>conftest.$ac_ext
2216
cat >>conftest.$ac_ext <<_ACEOF
2217
/* end confdefs.h. */
2227
rm -f conftest.o conftest.obj
2228
if { (ac_try="$ac_compile"
2230
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231
*) ac_try_echo=$ac_try;;
2233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2234
(eval "$ac_compile") 2>&5
2236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237
(exit $ac_status); }; then
2238
for ac_file in conftest.o conftest.obj conftest.*; do
2239
test -f "$ac_file" || continue;
2241
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2242
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2247
echo "$as_me: failed program was:" >&5
2248
sed 's/^/| /' conftest.$ac_ext >&5
2250
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2251
See \`config.log' for more details." >&5
2252
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2253
See \`config.log' for more details." >&2;}
2254
{ (exit 1); exit 1; }; }
2257
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2259
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2260
echo "${ECHO_T}$ac_cv_objext" >&6; }
2261
OBJEXT=$ac_cv_objext
2263
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2264
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2265
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2266
echo $ECHO_N "(cached) $ECHO_C" >&6
2268
cat >conftest.$ac_ext <<_ACEOF
2271
cat confdefs.h >>conftest.$ac_ext
2272
cat >>conftest.$ac_ext <<_ACEOF
2273
/* end confdefs.h. */
2286
rm -f conftest.$ac_objext
2287
if { (ac_try="$ac_compile"
2289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290
*) ac_try_echo=$ac_try;;
2292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2293
(eval "$ac_compile") 2>conftest.er1
2295
grep -v '^ *+' conftest.er1 >conftest.err
2297
cat conftest.err >&5
2298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299
(exit $ac_status); } && {
2300
test -z "$ac_c_werror_flag" ||
2301
test ! -s conftest.err
2302
} && test -s conftest.$ac_objext; then
2305
echo "$as_me: failed program was:" >&5
2306
sed 's/^/| /' conftest.$ac_ext >&5
2311
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2315
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2316
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2317
GCC=`test $ac_compiler_gnu = yes && echo yes`
2318
ac_test_CFLAGS=${CFLAGS+set}
2319
ac_save_CFLAGS=$CFLAGS
2320
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2321
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2322
if test "${ac_cv_prog_cc_g+set}" = set; then
2323
echo $ECHO_N "(cached) $ECHO_C" >&6
2325
ac_save_c_werror_flag=$ac_c_werror_flag
2326
ac_c_werror_flag=yes
2329
cat >conftest.$ac_ext <<_ACEOF
2332
cat confdefs.h >>conftest.$ac_ext
2333
cat >>conftest.$ac_ext <<_ACEOF
2334
/* end confdefs.h. */
2344
rm -f conftest.$ac_objext
2345
if { (ac_try="$ac_compile"
2347
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348
*) ac_try_echo=$ac_try;;
2350
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351
(eval "$ac_compile") 2>conftest.er1
2353
grep -v '^ *+' conftest.er1 >conftest.err
2355
cat conftest.err >&5
2356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357
(exit $ac_status); } && {
2358
test -z "$ac_c_werror_flag" ||
2359
test ! -s conftest.err
2360
} && test -s conftest.$ac_objext; then
2363
echo "$as_me: failed program was:" >&5
2364
sed 's/^/| /' conftest.$ac_ext >&5
2367
cat >conftest.$ac_ext <<_ACEOF
2370
cat confdefs.h >>conftest.$ac_ext
2371
cat >>conftest.$ac_ext <<_ACEOF
2372
/* end confdefs.h. */
2382
rm -f conftest.$ac_objext
2383
if { (ac_try="$ac_compile"
2385
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386
*) ac_try_echo=$ac_try;;
2388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389
(eval "$ac_compile") 2>conftest.er1
2391
grep -v '^ *+' conftest.er1 >conftest.err
2393
cat conftest.err >&5
2394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395
(exit $ac_status); } && {
2396
test -z "$ac_c_werror_flag" ||
2397
test ! -s conftest.err
2398
} && test -s conftest.$ac_objext; then
2401
echo "$as_me: failed program was:" >&5
2402
sed 's/^/| /' conftest.$ac_ext >&5
2404
ac_c_werror_flag=$ac_save_c_werror_flag
2406
cat >conftest.$ac_ext <<_ACEOF
2409
cat confdefs.h >>conftest.$ac_ext
2410
cat >>conftest.$ac_ext <<_ACEOF
2411
/* end confdefs.h. */
2421
rm -f conftest.$ac_objext
2422
if { (ac_try="$ac_compile"
2424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425
*) ac_try_echo=$ac_try;;
2427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428
(eval "$ac_compile") 2>conftest.er1
2430
grep -v '^ *+' conftest.er1 >conftest.err
2432
cat conftest.err >&5
2433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434
(exit $ac_status); } && {
2435
test -z "$ac_c_werror_flag" ||
2436
test ! -s conftest.err
2437
} && test -s conftest.$ac_objext; then
2440
echo "$as_me: failed program was:" >&5
2441
sed 's/^/| /' conftest.$ac_ext >&5
2446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453
ac_c_werror_flag=$ac_save_c_werror_flag
2455
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2456
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2457
if test "$ac_test_CFLAGS" = set; then
2458
CFLAGS=$ac_save_CFLAGS
2459
elif test $ac_cv_prog_cc_g = yes; then
2460
if test "$GCC" = yes; then
2466
if test "$GCC" = yes; then
2472
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2473
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2474
if test "${ac_cv_prog_cc_c89+set}" = set; then
2475
echo $ECHO_N "(cached) $ECHO_C" >&6
2477
ac_cv_prog_cc_c89=no
2479
cat >conftest.$ac_ext <<_ACEOF
2482
cat confdefs.h >>conftest.$ac_ext
2483
cat >>conftest.$ac_ext <<_ACEOF
2484
/* end confdefs.h. */
2487
#include <sys/types.h>
2488
#include <sys/stat.h>
2489
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2490
struct buf { int x; };
2491
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2492
static char *e (p, i)
2498
static char *f (char * (*g) (char **, int), char **p, ...)
2503
s = g (p, va_arg (v,int));
2508
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2509
function prototypes and stuff, but not '\xHH' hex character constants.
2510
These don't provoke an error unfortunately, instead are silently treated
2511
as 'x'. The following induces an error, until -std is added to get
2512
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2513
array size at least. It's necessary to write '\x00'==0 to get something
2514
that's true only with -std. */
2515
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2517
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2518
inside strings and character constants. */
2520
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2522
int test (int i, double x);
2523
struct s1 {int (*f) (int a);};
2524
struct s2 {int (*f) (double a);};
2525
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2531
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2536
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2537
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2539
CC="$ac_save_CC $ac_arg"
2540
rm -f conftest.$ac_objext
2541
if { (ac_try="$ac_compile"
2543
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544
*) ac_try_echo=$ac_try;;
2546
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547
(eval "$ac_compile") 2>conftest.er1
2549
grep -v '^ *+' conftest.er1 >conftest.err
2551
cat conftest.err >&5
2552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553
(exit $ac_status); } && {
2554
test -z "$ac_c_werror_flag" ||
2555
test ! -s conftest.err
2556
} && test -s conftest.$ac_objext; then
2557
ac_cv_prog_cc_c89=$ac_arg
2559
echo "$as_me: failed program was:" >&5
2560
sed 's/^/| /' conftest.$ac_ext >&5
2565
rm -f core conftest.err conftest.$ac_objext
2566
test "x$ac_cv_prog_cc_c89" != "xno" && break
2568
rm -f conftest.$ac_ext
2573
case "x$ac_cv_prog_cc_c89" in
2575
{ echo "$as_me:$LINENO: result: none needed" >&5
2576
echo "${ECHO_T}none needed" >&6; } ;;
2578
{ echo "$as_me:$LINENO: result: unsupported" >&5
2579
echo "${ECHO_T}unsupported" >&6; } ;;
2581
CC="$CC $ac_cv_prog_cc_c89"
2582
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2583
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2588
ac_cpp='$CPP $CPPFLAGS'
2589
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593
# Extract the first word of "ar", so it can be a program name with args.
2594
set dummy ar; ac_word=$2
2595
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2596
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597
if test "${ac_cv_prog_AR+set}" = set; then
2598
echo $ECHO_N "(cached) $ECHO_C" >&6
2600
if test -n "$AR"; then
2601
ac_cv_prog_AR="$AR" # Let the user override the test.
2603
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607
test -z "$as_dir" && as_dir=.
2608
for ac_exec_ext in '' $ac_executable_extensions; do
2609
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2622
if test -n "$AR"; then
2623
{ echo "$as_me:$LINENO: result: $AR" >&5
2624
echo "${ECHO_T}$AR" >&6; }
2626
{ echo "$as_me:$LINENO: result: no" >&5
2627
echo "${ECHO_T}no" >&6; }
2631
if test -n "$ac_tool_prefix"; then
2632
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2633
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2634
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636
if test "${ac_cv_prog_RANLIB+set}" = set; then
2637
echo $ECHO_N "(cached) $ECHO_C" >&6
2639
if test -n "$RANLIB"; then
2640
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2642
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646
test -z "$as_dir" && as_dir=.
2647
for ac_exec_ext in '' $ac_executable_extensions; do
2648
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2650
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659
RANLIB=$ac_cv_prog_RANLIB
2660
if test -n "$RANLIB"; then
2661
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
2662
echo "${ECHO_T}$RANLIB" >&6; }
2664
{ echo "$as_me:$LINENO: result: no" >&5
2665
echo "${ECHO_T}no" >&6; }
2670
if test -z "$ac_cv_prog_RANLIB"; then
2671
ac_ct_RANLIB=$RANLIB
2672
# Extract the first word of "ranlib", so it can be a program name with args.
2673
set dummy ranlib; ac_word=$2
2674
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2675
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2676
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2677
echo $ECHO_N "(cached) $ECHO_C" >&6
2679
if test -n "$ac_ct_RANLIB"; then
2680
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686
test -z "$as_dir" && as_dir=.
2687
for ac_exec_ext in '' $ac_executable_extensions; do
2688
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689
ac_cv_prog_ac_ct_RANLIB="ranlib"
2690
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2700
if test -n "$ac_ct_RANLIB"; then
2701
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2702
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2704
{ echo "$as_me:$LINENO: result: no" >&5
2705
echo "${ECHO_T}no" >&6; }
2708
if test "x$ac_ct_RANLIB" = x; then
2711
case $cross_compiling:$ac_tool_warned in
2713
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2714
whose name does not start with the host triplet. If you think this
2715
configuration is useful to you, please write to autoconf@gnu.org." >&5
2716
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2717
whose name does not start with the host triplet. If you think this
2718
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2719
ac_tool_warned=yes ;;
2721
RANLIB=$ac_ct_RANLIB
2724
RANLIB="$ac_cv_prog_RANLIB"
2728
ac_cpp='$CPP $CPPFLAGS'
2729
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2733
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2734
# On Suns, sometimes $CPP names a directory.
2735
if test -n "$CPP" && test -d "$CPP"; then
2738
if test -z "$CPP"; then
2739
if test "${ac_cv_prog_CPP+set}" = set; then
2740
echo $ECHO_N "(cached) $ECHO_C" >&6
2742
# Double quotes because CPP needs to be expanded
2743
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2746
for ac_c_preproc_warn_flag in '' yes
2748
# Use a header file that comes with gcc, so configuring glibc
2749
# with a fresh cross-compiler works.
2750
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2751
# <limits.h> exists even on freestanding compilers.
2752
# On the NeXT, cc -E runs the code through the compiler's parser,
2753
# not just through cpp. "Syntax error" is here to catch this case.
2754
cat >conftest.$ac_ext <<_ACEOF
2757
cat confdefs.h >>conftest.$ac_ext
2758
cat >>conftest.$ac_ext <<_ACEOF
2759
/* end confdefs.h. */
2761
# include <limits.h>
2763
# include <assert.h>
2767
if { (ac_try="$ac_cpp conftest.$ac_ext"
2769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770
*) ac_try_echo=$ac_try;;
2772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2775
grep -v '^ *+' conftest.er1 >conftest.err
2777
cat conftest.err >&5
2778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779
(exit $ac_status); } >/dev/null && {
2780
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2781
test ! -s conftest.err
2785
echo "$as_me: failed program was:" >&5
2786
sed 's/^/| /' conftest.$ac_ext >&5
2788
# Broken: fails on valid input.
2792
rm -f conftest.err conftest.$ac_ext
2794
# OK, works on sane cases. Now check whether nonexistent headers
2795
# can be detected and how.
2796
cat >conftest.$ac_ext <<_ACEOF
2799
cat confdefs.h >>conftest.$ac_ext
2800
cat >>conftest.$ac_ext <<_ACEOF
2801
/* end confdefs.h. */
2802
#include <ac_nonexistent.h>
2804
if { (ac_try="$ac_cpp conftest.$ac_ext"
2806
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807
*) ac_try_echo=$ac_try;;
2809
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2812
grep -v '^ *+' conftest.er1 >conftest.err
2814
cat conftest.err >&5
2815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816
(exit $ac_status); } >/dev/null && {
2817
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2818
test ! -s conftest.err
2820
# Broken: success on invalid input.
2823
echo "$as_me: failed program was:" >&5
2824
sed 's/^/| /' conftest.$ac_ext >&5
2826
# Passes both tests.
2831
rm -f conftest.err conftest.$ac_ext
2834
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2835
rm -f conftest.err conftest.$ac_ext
2836
if $ac_preproc_ok; then
2848
{ echo "$as_me:$LINENO: result: $CPP" >&5
2849
echo "${ECHO_T}$CPP" >&6; }
2851
for ac_c_preproc_warn_flag in '' yes
2853
# Use a header file that comes with gcc, so configuring glibc
2854
# with a fresh cross-compiler works.
2855
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2856
# <limits.h> exists even on freestanding compilers.
2857
# On the NeXT, cc -E runs the code through the compiler's parser,
2858
# not just through cpp. "Syntax error" is here to catch this case.
2859
cat >conftest.$ac_ext <<_ACEOF
2862
cat confdefs.h >>conftest.$ac_ext
2863
cat >>conftest.$ac_ext <<_ACEOF
2864
/* end confdefs.h. */
2866
# include <limits.h>
2868
# include <assert.h>
2872
if { (ac_try="$ac_cpp conftest.$ac_ext"
2874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875
*) ac_try_echo=$ac_try;;
2877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2880
grep -v '^ *+' conftest.er1 >conftest.err
2882
cat conftest.err >&5
2883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884
(exit $ac_status); } >/dev/null && {
2885
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2886
test ! -s conftest.err
2890
echo "$as_me: failed program was:" >&5
2891
sed 's/^/| /' conftest.$ac_ext >&5
2893
# Broken: fails on valid input.
2897
rm -f conftest.err conftest.$ac_ext
2899
# OK, works on sane cases. Now check whether nonexistent headers
2900
# can be detected and how.
2901
cat >conftest.$ac_ext <<_ACEOF
2904
cat confdefs.h >>conftest.$ac_ext
2905
cat >>conftest.$ac_ext <<_ACEOF
2906
/* end confdefs.h. */
2907
#include <ac_nonexistent.h>
2909
if { (ac_try="$ac_cpp conftest.$ac_ext"
2911
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912
*) ac_try_echo=$ac_try;;
2914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2917
grep -v '^ *+' conftest.er1 >conftest.err
2919
cat conftest.err >&5
2920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921
(exit $ac_status); } >/dev/null && {
2922
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2923
test ! -s conftest.err
2925
# Broken: success on invalid input.
2928
echo "$as_me: failed program was:" >&5
2929
sed 's/^/| /' conftest.$ac_ext >&5
2931
# Passes both tests.
2936
rm -f conftest.err conftest.$ac_ext
2939
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2940
rm -f conftest.err conftest.$ac_ext
2941
if $ac_preproc_ok; then
2944
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2945
See \`config.log' for more details." >&5
2946
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2947
See \`config.log' for more details." >&2;}
2948
{ (exit 1); exit 1; }; }
2952
ac_cpp='$CPP $CPPFLAGS'
2953
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2959
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2960
if test "${ac_cv_path_GREP+set}" = set; then
2961
echo $ECHO_N "(cached) $ECHO_C" >&6
2963
# Extract the first word of "grep ggrep" to use in msg output
2964
if test -z "$GREP"; then
2965
set dummy grep ggrep; ac_prog_name=$2
2966
if test "${ac_cv_path_GREP+set}" = set; then
2967
echo $ECHO_N "(cached) $ECHO_C" >&6
2969
ac_path_GREP_found=false
2970
# Loop through the user's path and test for each of PROGNAME-LIST
2971
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2975
test -z "$as_dir" && as_dir=.
2976
for ac_prog in grep ggrep; do
2977
for ac_exec_ext in '' $ac_executable_extensions; do
2978
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2979
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2980
# Check for GNU ac_path_GREP and select it if it is found.
2981
# Check for GNU $ac_path_GREP
2982
case `"$ac_path_GREP" --version 2>&1` in
2984
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2987
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2990
cat "conftest.in" "conftest.in" >"conftest.tmp"
2991
mv "conftest.tmp" "conftest.in"
2992
cp "conftest.in" "conftest.nl"
2993
echo 'GREP' >> "conftest.nl"
2994
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2995
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2996
ac_count=`expr $ac_count + 1`
2997
if test $ac_count -gt ${ac_path_GREP_max-0}; then
2998
# Best one so far, save it but keep looking for a better one
2999
ac_cv_path_GREP="$ac_path_GREP"
3000
ac_path_GREP_max=$ac_count
3002
# 10*(2^10) chars as input seems more than enough
3003
test $ac_count -gt 10 && break
3005
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3009
$ac_path_GREP_found && break 3
3019
GREP="$ac_cv_path_GREP"
3020
if test -z "$GREP"; then
3021
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3022
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3023
{ (exit 1); exit 1; }; }
3027
ac_cv_path_GREP=$GREP
3032
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3033
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3034
GREP="$ac_cv_path_GREP"
3037
{ echo "$as_me:$LINENO: checking for egrep" >&5
3038
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3039
if test "${ac_cv_path_EGREP+set}" = set; then
3040
echo $ECHO_N "(cached) $ECHO_C" >&6
3042
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3043
then ac_cv_path_EGREP="$GREP -E"
3045
# Extract the first word of "egrep" to use in msg output
3046
if test -z "$EGREP"; then
3047
set dummy egrep; ac_prog_name=$2
3048
if test "${ac_cv_path_EGREP+set}" = set; then
3049
echo $ECHO_N "(cached) $ECHO_C" >&6
3051
ac_path_EGREP_found=false
3052
# Loop through the user's path and test for each of PROGNAME-LIST
3053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3057
test -z "$as_dir" && as_dir=.
3058
for ac_prog in egrep; do
3059
for ac_exec_ext in '' $ac_executable_extensions; do
3060
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3061
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3062
# Check for GNU ac_path_EGREP and select it if it is found.
3063
# Check for GNU $ac_path_EGREP
3064
case `"$ac_path_EGREP" --version 2>&1` in
3066
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3069
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3072
cat "conftest.in" "conftest.in" >"conftest.tmp"
3073
mv "conftest.tmp" "conftest.in"
3074
cp "conftest.in" "conftest.nl"
3075
echo 'EGREP' >> "conftest.nl"
3076
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3077
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3078
ac_count=`expr $ac_count + 1`
3079
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3080
# Best one so far, save it but keep looking for a better one
3081
ac_cv_path_EGREP="$ac_path_EGREP"
3082
ac_path_EGREP_max=$ac_count
3084
# 10*(2^10) chars as input seems more than enough
3085
test $ac_count -gt 10 && break
3087
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3091
$ac_path_EGREP_found && break 3
3101
EGREP="$ac_cv_path_EGREP"
3102
if test -z "$EGREP"; then
3103
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3104
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3105
{ (exit 1); exit 1; }; }
3109
ac_cv_path_EGREP=$EGREP
3115
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3116
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3117
EGREP="$ac_cv_path_EGREP"
3121
{ echo "$as_me:$LINENO: checking for AIX" >&5
3122
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3123
cat >conftest.$ac_ext <<_ACEOF
3126
cat confdefs.h >>conftest.$ac_ext
3127
cat >>conftest.$ac_ext <<_ACEOF
3128
/* end confdefs.h. */
3134
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135
$EGREP "yes" >/dev/null 2>&1; then
3136
{ echo "$as_me:$LINENO: result: yes" >&5
3137
echo "${ECHO_T}yes" >&6; }
3138
cat >>confdefs.h <<\_ACEOF
3139
#define _ALL_SOURCE 1
3143
{ echo "$as_me:$LINENO: result: no" >&5
3144
echo "${ECHO_T}no" >&6; }
3149
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3150
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3151
if test "${ac_cv_header_stdc+set}" = set; then
3152
echo $ECHO_N "(cached) $ECHO_C" >&6
3154
cat >conftest.$ac_ext <<_ACEOF
3157
cat confdefs.h >>conftest.$ac_ext
3158
cat >>conftest.$ac_ext <<_ACEOF
3159
/* end confdefs.h. */
3173
rm -f conftest.$ac_objext
3174
if { (ac_try="$ac_compile"
3176
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177
*) ac_try_echo=$ac_try;;
3179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180
(eval "$ac_compile") 2>conftest.er1
3182
grep -v '^ *+' conftest.er1 >conftest.err
3184
cat conftest.err >&5
3185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186
(exit $ac_status); } && {
3187
test -z "$ac_c_werror_flag" ||
3188
test ! -s conftest.err
3189
} && test -s conftest.$ac_objext; then
3190
ac_cv_header_stdc=yes
3192
echo "$as_me: failed program was:" >&5
3193
sed 's/^/| /' conftest.$ac_ext >&5
3195
ac_cv_header_stdc=no
3198
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200
if test $ac_cv_header_stdc = yes; then
3201
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3202
cat >conftest.$ac_ext <<_ACEOF
3205
cat confdefs.h >>conftest.$ac_ext
3206
cat >>conftest.$ac_ext <<_ACEOF
3207
/* end confdefs.h. */
3211
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212
$EGREP "memchr" >/dev/null 2>&1; then
3215
ac_cv_header_stdc=no
3221
if test $ac_cv_header_stdc = yes; then
3222
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3223
cat >conftest.$ac_ext <<_ACEOF
3226
cat confdefs.h >>conftest.$ac_ext
3227
cat >>conftest.$ac_ext <<_ACEOF
3228
/* end confdefs.h. */
3232
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3233
$EGREP "free" >/dev/null 2>&1; then
3236
ac_cv_header_stdc=no
3242
if test $ac_cv_header_stdc = yes; then
3243
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3244
if test "$cross_compiling" = yes; then
3247
cat >conftest.$ac_ext <<_ACEOF
3250
cat confdefs.h >>conftest.$ac_ext
3251
cat >>conftest.$ac_ext <<_ACEOF
3252
/* end confdefs.h. */
3255
#if ((' ' & 0x0FF) == 0x020)
3256
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3257
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3259
# define ISLOWER(c) \
3260
(('a' <= (c) && (c) <= 'i') \
3261
|| ('j' <= (c) && (c) <= 'r') \
3262
|| ('s' <= (c) && (c) <= 'z'))
3263
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3266
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3271
for (i = 0; i < 256; i++)
3272
if (XOR (islower (i), ISLOWER (i))
3273
|| toupper (i) != TOUPPER (i))
3278
rm -f conftest$ac_exeext
3279
if { (ac_try="$ac_link"
3281
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282
*) ac_try_echo=$ac_try;;
3284
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285
(eval "$ac_link") 2>&5
3287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3289
{ (case "(($ac_try" in
3290
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291
*) ac_try_echo=$ac_try;;
3293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294
(eval "$ac_try") 2>&5
3296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297
(exit $ac_status); }; }; then
3300
echo "$as_me: program exited with status $ac_status" >&5
3301
echo "$as_me: failed program was:" >&5
3302
sed 's/^/| /' conftest.$ac_ext >&5
3305
ac_cv_header_stdc=no
3307
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3313
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3314
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3315
if test $ac_cv_header_stdc = yes; then
3317
cat >>confdefs.h <<\_ACEOF
3318
#define STDC_HEADERS 1
3323
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3333
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3334
inttypes.h stdint.h unistd.h
3336
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3337
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3338
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3339
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3340
echo $ECHO_N "(cached) $ECHO_C" >&6
3342
cat >conftest.$ac_ext <<_ACEOF
3345
cat confdefs.h >>conftest.$ac_ext
3346
cat >>conftest.$ac_ext <<_ACEOF
3347
/* end confdefs.h. */
3348
$ac_includes_default
3350
#include <$ac_header>
3352
rm -f conftest.$ac_objext
3353
if { (ac_try="$ac_compile"
3355
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356
*) ac_try_echo=$ac_try;;
3358
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359
(eval "$ac_compile") 2>conftest.er1
3361
grep -v '^ *+' conftest.er1 >conftest.err
3363
cat conftest.err >&5
3364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365
(exit $ac_status); } && {
3366
test -z "$ac_c_werror_flag" ||
3367
test ! -s conftest.err
3368
} && test -s conftest.$ac_objext; then
3369
eval "$as_ac_Header=yes"
3371
echo "$as_me: failed program was:" >&5
3372
sed 's/^/| /' conftest.$ac_ext >&5
3374
eval "$as_ac_Header=no"
3377
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379
ac_res=`eval echo '${'$as_ac_Header'}'`
3380
{ echo "$as_me:$LINENO: result: $ac_res" >&5
3381
echo "${ECHO_T}$ac_res" >&6; }
3382
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3383
cat >>confdefs.h <<_ACEOF
3384
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3392
if test "${ac_cv_header_minix_config_h+set}" = set; then
3393
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
3394
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3395
if test "${ac_cv_header_minix_config_h+set}" = set; then
3396
echo $ECHO_N "(cached) $ECHO_C" >&6
3398
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3399
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3401
# Is the header compilable?
3402
{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3403
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3404
cat >conftest.$ac_ext <<_ACEOF
3407
cat confdefs.h >>conftest.$ac_ext
3408
cat >>conftest.$ac_ext <<_ACEOF
3409
/* end confdefs.h. */
3410
$ac_includes_default
3411
#include <minix/config.h>
3413
rm -f conftest.$ac_objext
3414
if { (ac_try="$ac_compile"
3416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417
*) ac_try_echo=$ac_try;;
3419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420
(eval "$ac_compile") 2>conftest.er1
3422
grep -v '^ *+' conftest.er1 >conftest.err
3424
cat conftest.err >&5
3425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426
(exit $ac_status); } && {
3427
test -z "$ac_c_werror_flag" ||
3428
test ! -s conftest.err
3429
} && test -s conftest.$ac_objext; then
3430
ac_header_compiler=yes
3432
echo "$as_me: failed program was:" >&5
3433
sed 's/^/| /' conftest.$ac_ext >&5
3435
ac_header_compiler=no
3438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3440
echo "${ECHO_T}$ac_header_compiler" >&6; }
3442
# Is the header present?
3443
{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3444
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3445
cat >conftest.$ac_ext <<_ACEOF
3448
cat confdefs.h >>conftest.$ac_ext
3449
cat >>conftest.$ac_ext <<_ACEOF
3450
/* end confdefs.h. */
3451
#include <minix/config.h>
3453
if { (ac_try="$ac_cpp conftest.$ac_ext"
3455
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456
*) ac_try_echo=$ac_try;;
3458
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3461
grep -v '^ *+' conftest.er1 >conftest.err
3463
cat conftest.err >&5
3464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465
(exit $ac_status); } >/dev/null && {
3466
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3467
test ! -s conftest.err
3469
ac_header_preproc=yes
3471
echo "$as_me: failed program was:" >&5
3472
sed 's/^/| /' conftest.$ac_ext >&5
3474
ac_header_preproc=no
3477
rm -f conftest.err conftest.$ac_ext
3478
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3479
echo "${ECHO_T}$ac_header_preproc" >&6; }
3481
# So? What about this header?
3482
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3484
{ echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3485
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3486
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3487
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3488
ac_header_preproc=yes
3491
{ echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3492
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3493
{ echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3494
echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3495
{ echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3496
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3497
{ echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3498
echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3499
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3500
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3501
{ echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3502
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3506
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
3507
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3508
if test "${ac_cv_header_minix_config_h+set}" = set; then
3509
echo $ECHO_N "(cached) $ECHO_C" >&6
3511
ac_cv_header_minix_config_h=$ac_header_preproc
3513
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3514
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3517
if test $ac_cv_header_minix_config_h = yes; then
3524
if test "$MINIX" = yes; then
3526
cat >>confdefs.h <<\_ACEOF
3527
#define _POSIX_SOURCE 1
3531
cat >>confdefs.h <<\_ACEOF
3532
#define _POSIX_1_SOURCE 2
3536
cat >>confdefs.h <<\_ACEOF
3542
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3543
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3544
if test "${ac_cv_search_strerror+set}" = set; then
3545
echo $ECHO_N "(cached) $ECHO_C" >&6
3547
ac_func_search_save_LIBS=$LIBS
3548
cat >conftest.$ac_ext <<_ACEOF
3551
cat confdefs.h >>conftest.$ac_ext
3552
cat >>conftest.$ac_ext <<_ACEOF
3553
/* end confdefs.h. */
3555
/* Override any GCC internal prototype to avoid an error.
3556
Use char because int might match the return type of a GCC
3557
builtin and then its argument prototype would still apply. */
3570
for ac_lib in '' cposix; do
3571
if test -z "$ac_lib"; then
3572
ac_res="none required"
3575
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3577
rm -f conftest.$ac_objext conftest$ac_exeext
3578
if { (ac_try="$ac_link"
3580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581
*) ac_try_echo=$ac_try;;
3583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584
(eval "$ac_link") 2>conftest.er1
3586
grep -v '^ *+' conftest.er1 >conftest.err
3588
cat conftest.err >&5
3589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590
(exit $ac_status); } && {
3591
test -z "$ac_c_werror_flag" ||
3592
test ! -s conftest.err
3593
} && test -s conftest$ac_exeext &&
3594
$as_test_x conftest$ac_exeext; then
3595
ac_cv_search_strerror=$ac_res
3597
echo "$as_me: failed program was:" >&5
3598
sed 's/^/| /' conftest.$ac_ext >&5
3603
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3605
if test "${ac_cv_search_strerror+set}" = set; then
3609
if test "${ac_cv_search_strerror+set}" = set; then
3612
ac_cv_search_strerror=no
3615
LIBS=$ac_func_search_save_LIBS
3617
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3618
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3619
ac_res=$ac_cv_search_strerror
3620
if test "$ac_res" != no; then
3621
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3625
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3626
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3627
if test "${ac_cv_c_const+set}" = set; then
3628
echo $ECHO_N "(cached) $ECHO_C" >&6
3630
cat >conftest.$ac_ext <<_ACEOF
3633
cat confdefs.h >>conftest.$ac_ext
3634
cat >>conftest.$ac_ext <<_ACEOF
3635
/* end confdefs.h. */
3640
/* FIXME: Include the comments suggested by Paul. */
3642
/* Ultrix mips cc rejects this. */
3643
typedef int charset[2];
3645
/* SunOS 4.1.1 cc rejects this. */
3646
char const *const *pcpcc;
3648
/* NEC SVR4.0.2 mips cc rejects this. */
3649
struct point {int x, y;};
3650
static struct point const zero = {0,0};
3651
/* AIX XL C 1.02.0.0 rejects this.
3652
It does not let you subtract one const X* pointer from another in
3653
an arm of an if-expression whose if-part is not a constant
3655
const char *g = "string";
3656
pcpcc = &g + (g ? g-g : 0);
3657
/* HPUX 7.0 cc rejects these. */
3659
ppc = (char**) pcpcc;
3660
pcpcc = (char const *const *) ppc;
3661
{ /* SCO 3.2v4 cc rejects this. */
3663
char const *s = 0 ? (char *) 0 : (char const *) 0;
3668
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3670
const int *foo = &x[0];
3673
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3674
typedef const int *iptr;
3678
{ /* AIX XL C 1.02.0.0 rejects this saying
3679
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3680
struct s { int j; const int *ap[3]; };
3681
struct s *b; b->j = 5;
3683
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3687
return !cs[0] && !zero.x;
3694
rm -f conftest.$ac_objext
3695
if { (ac_try="$ac_compile"
3697
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698
*) ac_try_echo=$ac_try;;
3700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701
(eval "$ac_compile") 2>conftest.er1
3703
grep -v '^ *+' conftest.er1 >conftest.err
3705
cat conftest.err >&5
3706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707
(exit $ac_status); } && {
3708
test -z "$ac_c_werror_flag" ||
3709
test ! -s conftest.err
3710
} && test -s conftest.$ac_objext; then
3713
echo "$as_me: failed program was:" >&5
3714
sed 's/^/| /' conftest.$ac_ext >&5
3719
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3722
echo "${ECHO_T}$ac_cv_c_const" >&6; }
3723
if test $ac_cv_c_const = no; then
3725
cat >>confdefs.h <<\_ACEOF
3731
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3732
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3733
if test "${ac_cv_header_stdc+set}" = set; then
3734
echo $ECHO_N "(cached) $ECHO_C" >&6
3736
cat >conftest.$ac_ext <<_ACEOF
3739
cat confdefs.h >>conftest.$ac_ext
3740
cat >>conftest.$ac_ext <<_ACEOF
3741
/* end confdefs.h. */
3755
rm -f conftest.$ac_objext
3756
if { (ac_try="$ac_compile"
3758
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759
*) ac_try_echo=$ac_try;;
3761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762
(eval "$ac_compile") 2>conftest.er1
3764
grep -v '^ *+' conftest.er1 >conftest.err
3766
cat conftest.err >&5
3767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768
(exit $ac_status); } && {
3769
test -z "$ac_c_werror_flag" ||
3770
test ! -s conftest.err
3771
} && test -s conftest.$ac_objext; then
3772
ac_cv_header_stdc=yes
3774
echo "$as_me: failed program was:" >&5
3775
sed 's/^/| /' conftest.$ac_ext >&5
3777
ac_cv_header_stdc=no
3780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782
if test $ac_cv_header_stdc = yes; then
3783
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3784
cat >conftest.$ac_ext <<_ACEOF
3787
cat confdefs.h >>conftest.$ac_ext
3788
cat >>conftest.$ac_ext <<_ACEOF
3789
/* end confdefs.h. */
3793
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3794
$EGREP "memchr" >/dev/null 2>&1; then
3797
ac_cv_header_stdc=no
3803
if test $ac_cv_header_stdc = yes; then
3804
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3805
cat >conftest.$ac_ext <<_ACEOF
3808
cat confdefs.h >>conftest.$ac_ext
3809
cat >>conftest.$ac_ext <<_ACEOF
3810
/* end confdefs.h. */
3814
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3815
$EGREP "free" >/dev/null 2>&1; then
3818
ac_cv_header_stdc=no
3824
if test $ac_cv_header_stdc = yes; then
3825
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3826
if test "$cross_compiling" = yes; then
3829
cat >conftest.$ac_ext <<_ACEOF
3832
cat confdefs.h >>conftest.$ac_ext
3833
cat >>conftest.$ac_ext <<_ACEOF
3834
/* end confdefs.h. */
3837
#if ((' ' & 0x0FF) == 0x020)
3838
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3839
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3841
# define ISLOWER(c) \
3842
(('a' <= (c) && (c) <= 'i') \
3843
|| ('j' <= (c) && (c) <= 'r') \
3844
|| ('s' <= (c) && (c) <= 'z'))
3845
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3848
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3853
for (i = 0; i < 256; i++)
3854
if (XOR (islower (i), ISLOWER (i))
3855
|| toupper (i) != TOUPPER (i))
3860
rm -f conftest$ac_exeext
3861
if { (ac_try="$ac_link"
3863
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864
*) ac_try_echo=$ac_try;;
3866
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867
(eval "$ac_link") 2>&5
3869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3871
{ (case "(($ac_try" in
3872
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873
*) ac_try_echo=$ac_try;;
3875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876
(eval "$ac_try") 2>&5
3878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879
(exit $ac_status); }; }; then
3882
echo "$as_me: program exited with status $ac_status" >&5
3883
echo "$as_me: failed program was:" >&5
3884
sed 's/^/| /' conftest.$ac_ext >&5
3887
ac_cv_header_stdc=no
3889
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3895
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3896
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3897
if test $ac_cv_header_stdc = yes; then
3899
cat >>confdefs.h <<\_ACEOF
3900
#define STDC_HEADERS 1
3908
for ac_header in memory.h unistd.h string.h
3910
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3911
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3912
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3913
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3914
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3915
echo $ECHO_N "(cached) $ECHO_C" >&6
3917
ac_res=`eval echo '${'$as_ac_Header'}'`
3918
{ echo "$as_me:$LINENO: result: $ac_res" >&5
3919
echo "${ECHO_T}$ac_res" >&6; }
3921
# Is the header compilable?
3922
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
3923
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3924
cat >conftest.$ac_ext <<_ACEOF
3927
cat confdefs.h >>conftest.$ac_ext
3928
cat >>conftest.$ac_ext <<_ACEOF
3929
/* end confdefs.h. */
3930
$ac_includes_default
3931
#include <$ac_header>
3933
rm -f conftest.$ac_objext
3934
if { (ac_try="$ac_compile"
3936
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937
*) ac_try_echo=$ac_try;;
3939
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940
(eval "$ac_compile") 2>conftest.er1
3942
grep -v '^ *+' conftest.er1 >conftest.err
3944
cat conftest.err >&5
3945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946
(exit $ac_status); } && {
3947
test -z "$ac_c_werror_flag" ||
3948
test ! -s conftest.err
3949
} && test -s conftest.$ac_objext; then
3950
ac_header_compiler=yes
3952
echo "$as_me: failed program was:" >&5
3953
sed 's/^/| /' conftest.$ac_ext >&5
3955
ac_header_compiler=no
3958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3960
echo "${ECHO_T}$ac_header_compiler" >&6; }
3962
# Is the header present?
3963
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
3964
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3965
cat >conftest.$ac_ext <<_ACEOF
3968
cat confdefs.h >>conftest.$ac_ext
3969
cat >>conftest.$ac_ext <<_ACEOF
3970
/* end confdefs.h. */
3971
#include <$ac_header>
3973
if { (ac_try="$ac_cpp conftest.$ac_ext"
3975
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976
*) ac_try_echo=$ac_try;;
3978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3981
grep -v '^ *+' conftest.er1 >conftest.err
3983
cat conftest.err >&5
3984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985
(exit $ac_status); } >/dev/null && {
3986
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3987
test ! -s conftest.err
3989
ac_header_preproc=yes
3991
echo "$as_me: failed program was:" >&5
3992
sed 's/^/| /' conftest.$ac_ext >&5
3994
ac_header_preproc=no
3997
rm -f conftest.err conftest.$ac_ext
3998
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3999
echo "${ECHO_T}$ac_header_preproc" >&6; }
4001
# So? What about this header?
4002
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4004
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4005
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4006
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4007
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4008
ac_header_preproc=yes
4011
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4012
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4013
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4014
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4015
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4016
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4017
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4018
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4019
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4020
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4021
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4022
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4026
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4027
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4028
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4029
echo $ECHO_N "(cached) $ECHO_C" >&6
4031
eval "$as_ac_Header=\$ac_header_preproc"
4033
ac_res=`eval echo '${'$as_ac_Header'}'`
4034
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4035
echo "${ECHO_T}$ac_res" >&6; }
4038
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4039
cat >>confdefs.h <<_ACEOF
4040
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4053
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4054
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4055
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4056
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4057
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4058
echo $ECHO_N "(cached) $ECHO_C" >&6
4060
cat >conftest.$ac_ext <<_ACEOF
4063
cat confdefs.h >>conftest.$ac_ext
4064
cat >>conftest.$ac_ext <<_ACEOF
4065
/* end confdefs.h. */
4066
#include <sys/types.h>
4078
rm -f conftest.$ac_objext
4079
if { (ac_try="$ac_compile"
4081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082
*) ac_try_echo=$ac_try;;
4084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085
(eval "$ac_compile") 2>conftest.er1
4087
grep -v '^ *+' conftest.er1 >conftest.err
4089
cat conftest.err >&5
4090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091
(exit $ac_status); } && {
4092
test -z "$ac_c_werror_flag" ||
4093
test ! -s conftest.err
4094
} && test -s conftest.$ac_objext; then
4095
eval "$as_ac_Header=yes"
4097
echo "$as_me: failed program was:" >&5
4098
sed 's/^/| /' conftest.$ac_ext >&5
4100
eval "$as_ac_Header=no"
4103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105
ac_res=`eval echo '${'$as_ac_Header'}'`
4106
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4107
echo "${ECHO_T}$ac_res" >&6; }
4108
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4109
cat >>confdefs.h <<_ACEOF
4110
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4113
ac_header_dirent=$ac_hdr; break
4117
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4118
if test $ac_header_dirent = dirent.h; then
4119
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
4120
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4121
if test "${ac_cv_search_opendir+set}" = set; then
4122
echo $ECHO_N "(cached) $ECHO_C" >&6
4124
ac_func_search_save_LIBS=$LIBS
4125
cat >conftest.$ac_ext <<_ACEOF
4128
cat confdefs.h >>conftest.$ac_ext
4129
cat >>conftest.$ac_ext <<_ACEOF
4130
/* end confdefs.h. */
4132
/* Override any GCC internal prototype to avoid an error.
4133
Use char because int might match the return type of a GCC
4134
builtin and then its argument prototype would still apply. */
4147
for ac_lib in '' dir; do
4148
if test -z "$ac_lib"; then
4149
ac_res="none required"
4152
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4154
rm -f conftest.$ac_objext conftest$ac_exeext
4155
if { (ac_try="$ac_link"
4157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158
*) ac_try_echo=$ac_try;;
4160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161
(eval "$ac_link") 2>conftest.er1
4163
grep -v '^ *+' conftest.er1 >conftest.err
4165
cat conftest.err >&5
4166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167
(exit $ac_status); } && {
4168
test -z "$ac_c_werror_flag" ||
4169
test ! -s conftest.err
4170
} && test -s conftest$ac_exeext &&
4171
$as_test_x conftest$ac_exeext; then
4172
ac_cv_search_opendir=$ac_res
4174
echo "$as_me: failed program was:" >&5
4175
sed 's/^/| /' conftest.$ac_ext >&5
4180
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4182
if test "${ac_cv_search_opendir+set}" = set; then
4186
if test "${ac_cv_search_opendir+set}" = set; then
4189
ac_cv_search_opendir=no
4192
LIBS=$ac_func_search_save_LIBS
4194
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4195
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4196
ac_res=$ac_cv_search_opendir
4197
if test "$ac_res" != no; then
4198
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4203
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
4204
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4205
if test "${ac_cv_search_opendir+set}" = set; then
4206
echo $ECHO_N "(cached) $ECHO_C" >&6
4208
ac_func_search_save_LIBS=$LIBS
4209
cat >conftest.$ac_ext <<_ACEOF
4212
cat confdefs.h >>conftest.$ac_ext
4213
cat >>conftest.$ac_ext <<_ACEOF
4214
/* end confdefs.h. */
4216
/* Override any GCC internal prototype to avoid an error.
4217
Use char because int might match the return type of a GCC
4218
builtin and then its argument prototype would still apply. */
4231
for ac_lib in '' x; do
4232
if test -z "$ac_lib"; then
4233
ac_res="none required"
4236
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4238
rm -f conftest.$ac_objext conftest$ac_exeext
4239
if { (ac_try="$ac_link"
4241
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242
*) ac_try_echo=$ac_try;;
4244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245
(eval "$ac_link") 2>conftest.er1
4247
grep -v '^ *+' conftest.er1 >conftest.err
4249
cat conftest.err >&5
4250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251
(exit $ac_status); } && {
4252
test -z "$ac_c_werror_flag" ||
4253
test ! -s conftest.err
4254
} && test -s conftest$ac_exeext &&
4255
$as_test_x conftest$ac_exeext; then
4256
ac_cv_search_opendir=$ac_res
4258
echo "$as_me: failed program was:" >&5
4259
sed 's/^/| /' conftest.$ac_ext >&5
4264
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4266
if test "${ac_cv_search_opendir+set}" = set; then
4270
if test "${ac_cv_search_opendir+set}" = set; then
4273
ac_cv_search_opendir=no
4276
LIBS=$ac_func_search_save_LIBS
4278
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4279
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4280
ac_res=$ac_cv_search_opendir
4281
if test "$ac_res" != no; then
4282
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4288
{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
4289
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
4290
if test "${ac_cv_func_closedir_void+set}" = set; then
4291
echo $ECHO_N "(cached) $ECHO_C" >&6
4293
if test "$cross_compiling" = yes; then
4294
ac_cv_func_closedir_void=yes
4296
cat >conftest.$ac_ext <<_ACEOF
4299
cat confdefs.h >>conftest.$ac_ext
4300
cat >>conftest.$ac_ext <<_ACEOF
4301
/* end confdefs.h. */
4302
$ac_includes_default
4303
#include <$ac_header_dirent>
4311
return closedir (opendir (".")) != 0;
4316
rm -f conftest$ac_exeext
4317
if { (ac_try="$ac_link"
4319
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320
*) ac_try_echo=$ac_try;;
4322
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323
(eval "$ac_link") 2>&5
4325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327
{ (case "(($ac_try" in
4328
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329
*) ac_try_echo=$ac_try;;
4331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332
(eval "$ac_try") 2>&5
4334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335
(exit $ac_status); }; }; then
4336
ac_cv_func_closedir_void=no
4338
echo "$as_me: program exited with status $ac_status" >&5
4339
echo "$as_me: failed program was:" >&5
4340
sed 's/^/| /' conftest.$ac_ext >&5
4343
ac_cv_func_closedir_void=yes
4345
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350
{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
4351
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
4352
if test $ac_cv_func_closedir_void = yes; then
4354
cat >>confdefs.h <<\_ACEOF
4355
#define CLOSEDIR_VOID 1
4360
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4361
# for constant arguments. Useless!
4362
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
4363
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
4364
if test "${ac_cv_working_alloca_h+set}" = set; then
4365
echo $ECHO_N "(cached) $ECHO_C" >&6
4367
cat >conftest.$ac_ext <<_ACEOF
4370
cat confdefs.h >>conftest.$ac_ext
4371
cat >>conftest.$ac_ext <<_ACEOF
4372
/* end confdefs.h. */
4377
char *p = (char *) alloca (2 * sizeof (int));
4383
rm -f conftest.$ac_objext conftest$ac_exeext
4384
if { (ac_try="$ac_link"
4386
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387
*) ac_try_echo=$ac_try;;
4389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390
(eval "$ac_link") 2>conftest.er1
4392
grep -v '^ *+' conftest.er1 >conftest.err
4394
cat conftest.err >&5
4395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396
(exit $ac_status); } && {
4397
test -z "$ac_c_werror_flag" ||
4398
test ! -s conftest.err
4399
} && test -s conftest$ac_exeext &&
4400
$as_test_x conftest$ac_exeext; then
4401
ac_cv_working_alloca_h=yes
4403
echo "$as_me: failed program was:" >&5
4404
sed 's/^/| /' conftest.$ac_ext >&5
4406
ac_cv_working_alloca_h=no
4409
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4410
conftest$ac_exeext conftest.$ac_ext
4412
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4413
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
4414
if test $ac_cv_working_alloca_h = yes; then
4416
cat >>confdefs.h <<\_ACEOF
4417
#define HAVE_ALLOCA_H 1
4422
{ echo "$as_me:$LINENO: checking for alloca" >&5
4423
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
4424
if test "${ac_cv_func_alloca_works+set}" = set; then
4425
echo $ECHO_N "(cached) $ECHO_C" >&6
4427
cat >conftest.$ac_ext <<_ACEOF
4430
cat confdefs.h >>conftest.$ac_ext
4431
cat >>conftest.$ac_ext <<_ACEOF
4432
/* end confdefs.h. */
4434
# define alloca __builtin_alloca
4437
# include <malloc.h>
4438
# define alloca _alloca
4440
# ifdef HAVE_ALLOCA_H
4441
# include <alloca.h>
4446
# ifndef alloca /* predefined by HP cc +Olibcalls */
4457
char *p = (char *) alloca (1);
4463
rm -f conftest.$ac_objext conftest$ac_exeext
4464
if { (ac_try="$ac_link"
4466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467
*) ac_try_echo=$ac_try;;
4469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470
(eval "$ac_link") 2>conftest.er1
4472
grep -v '^ *+' conftest.er1 >conftest.err
4474
cat conftest.err >&5
4475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476
(exit $ac_status); } && {
4477
test -z "$ac_c_werror_flag" ||
4478
test ! -s conftest.err
4479
} && test -s conftest$ac_exeext &&
4480
$as_test_x conftest$ac_exeext; then
4481
ac_cv_func_alloca_works=yes
4483
echo "$as_me: failed program was:" >&5
4484
sed 's/^/| /' conftest.$ac_ext >&5
4486
ac_cv_func_alloca_works=no
4489
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4490
conftest$ac_exeext conftest.$ac_ext
4492
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4493
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
4495
if test $ac_cv_func_alloca_works = yes; then
4497
cat >>confdefs.h <<\_ACEOF
4498
#define HAVE_ALLOCA 1
4502
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
4503
# that cause trouble. Some versions do not even contain alloca or
4504
# contain a buggy version. If you still want to use their alloca,
4505
# use ar to extract alloca.o from them instead of compiling alloca.c.
4507
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4509
cat >>confdefs.h <<\_ACEOF
4514
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4515
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
4516
if test "${ac_cv_os_cray+set}" = set; then
4517
echo $ECHO_N "(cached) $ECHO_C" >&6
4519
cat >conftest.$ac_ext <<_ACEOF
4522
cat confdefs.h >>conftest.$ac_ext
4523
cat >>conftest.$ac_ext <<_ACEOF
4524
/* end confdefs.h. */
4525
#if defined CRAY && ! defined CRAY2
4532
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533
$EGREP "webecray" >/dev/null 2>&1; then
4541
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4542
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
4543
if test $ac_cv_os_cray = yes; then
4544
for ac_func in _getb67 GETB67 getb67; do
4545
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4546
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4547
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4548
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4549
echo $ECHO_N "(cached) $ECHO_C" >&6
4551
cat >conftest.$ac_ext <<_ACEOF
4554
cat confdefs.h >>conftest.$ac_ext
4555
cat >>conftest.$ac_ext <<_ACEOF
4556
/* end confdefs.h. */
4557
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4558
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4559
#define $ac_func innocuous_$ac_func
4561
/* System header to define __stub macros and hopefully few prototypes,
4562
which can conflict with char $ac_func (); below.
4563
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4564
<limits.h> exists even on freestanding compilers. */
4567
# include <limits.h>
4569
# include <assert.h>
4574
/* Override any GCC internal prototype to avoid an error.
4575
Use char because int might match the return type of a GCC
4576
builtin and then its argument prototype would still apply. */
4581
/* The GNU C library defines this for functions which it implements
4582
to always fail with ENOSYS. Some functions are actually named
4583
something starting with __ and the normal name is an alias. */
4584
#if defined __stub_$ac_func || defined __stub___$ac_func
4596
rm -f conftest.$ac_objext conftest$ac_exeext
4597
if { (ac_try="$ac_link"
4599
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600
*) ac_try_echo=$ac_try;;
4602
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603
(eval "$ac_link") 2>conftest.er1
4605
grep -v '^ *+' conftest.er1 >conftest.err
4607
cat conftest.err >&5
4608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609
(exit $ac_status); } && {
4610
test -z "$ac_c_werror_flag" ||
4611
test ! -s conftest.err
4612
} && test -s conftest$ac_exeext &&
4613
$as_test_x conftest$ac_exeext; then
4614
eval "$as_ac_var=yes"
4616
echo "$as_me: failed program was:" >&5
4617
sed 's/^/| /' conftest.$ac_ext >&5
4619
eval "$as_ac_var=no"
4622
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4623
conftest$ac_exeext conftest.$ac_ext
4625
ac_res=`eval echo '${'$as_ac_var'}'`
4626
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4627
echo "${ECHO_T}$ac_res" >&6; }
4628
if test `eval echo '${'$as_ac_var'}'` = yes; then
4630
cat >>confdefs.h <<_ACEOF
4631
#define CRAY_STACKSEG_END $ac_func
4640
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4641
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
4642
if test "${ac_cv_c_stack_direction+set}" = set; then
4643
echo $ECHO_N "(cached) $ECHO_C" >&6
4645
if test "$cross_compiling" = yes; then
4646
ac_cv_c_stack_direction=0
4648
cat >conftest.$ac_ext <<_ACEOF
4651
cat confdefs.h >>conftest.$ac_ext
4652
cat >>conftest.$ac_ext <<_ACEOF
4653
/* end confdefs.h. */
4654
$ac_includes_default
4656
find_stack_direction ()
4658
static char *addr = 0;
4663
return find_stack_direction ();
4666
return (&dummy > addr) ? 1 : -1;
4672
return find_stack_direction () < 0;
4675
rm -f conftest$ac_exeext
4676
if { (ac_try="$ac_link"
4678
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679
*) ac_try_echo=$ac_try;;
4681
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682
(eval "$ac_link") 2>&5
4684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4686
{ (case "(($ac_try" in
4687
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688
*) ac_try_echo=$ac_try;;
4690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691
(eval "$ac_try") 2>&5
4693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694
(exit $ac_status); }; }; then
4695
ac_cv_c_stack_direction=1
4697
echo "$as_me: program exited with status $ac_status" >&5
4698
echo "$as_me: failed program was:" >&5
4699
sed 's/^/| /' conftest.$ac_ext >&5
4702
ac_cv_c_stack_direction=-1
4704
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4709
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4710
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
4712
cat >>confdefs.h <<_ACEOF
4713
#define STACK_DIRECTION $ac_cv_c_stack_direction
4719
{ echo "$as_me:$LINENO: checking for working strcoll" >&5
4720
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
4721
if test "${ac_cv_func_strcoll_works+set}" = set; then
4722
echo $ECHO_N "(cached) $ECHO_C" >&6
4724
if test "$cross_compiling" = yes; then
4725
ac_cv_func_strcoll_works=no
4727
cat >conftest.$ac_ext <<_ACEOF
4730
cat confdefs.h >>conftest.$ac_ext
4731
cat >>conftest.$ac_ext <<_ACEOF
4732
/* end confdefs.h. */
4733
$ac_includes_default
4737
return (strcoll ("abc", "def") >= 0 ||
4738
strcoll ("ABC", "DEF") >= 0 ||
4739
strcoll ("123", "456") >= 0)
4744
rm -f conftest$ac_exeext
4745
if { (ac_try="$ac_link"
4747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748
*) ac_try_echo=$ac_try;;
4750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751
(eval "$ac_link") 2>&5
4753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4755
{ (case "(($ac_try" in
4756
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757
*) ac_try_echo=$ac_try;;
4759
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760
(eval "$ac_try") 2>&5
4762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763
(exit $ac_status); }; }; then
4764
ac_cv_func_strcoll_works=yes
4766
echo "$as_me: program exited with status $ac_status" >&5
4767
echo "$as_me: failed program was:" >&5
4768
sed 's/^/| /' conftest.$ac_ext >&5
4771
ac_cv_func_strcoll_works=no
4773
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4778
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4779
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
4780
if test $ac_cv_func_strcoll_works = yes; then
4782
cat >>confdefs.h <<\_ACEOF
4783
#define HAVE_STRCOLL 1
4788
ac_config_files="$ac_config_files Makefile"
4790
cat >confcache <<\_ACEOF
4791
# This file is a shell script that caches the results of configure
4792
# tests run on this system so they can be shared between configure
4793
# scripts and configure runs, see configure's option --config-cache.
4794
# It is not useful on other systems. If it contains results you don't
4795
# want to keep, you may remove or edit it.
4797
# config.status only pays attention to the cache file if you give it
4798
# the --recheck option to rerun configure.
4800
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4801
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4806
# The following way of writing the cache mishandles newlines in values,
4807
# but we know of no workaround that is simple, portable, and efficient.
4808
# So, we kill variables containing newlines.
4809
# Ultrix sh set writes to stderr and can't be redirected directly,
4810
# and sets the high bit in the cache file unless we assign to the vars.
4812
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4813
eval ac_val=\$$ac_var
4817
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4818
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4821
_ | IFS | as_nl) ;; #(
4822
*) $as_unset $ac_var ;;
4828
case $as_nl`(ac_space=' '; set) 2>&1` in #(
4829
*${as_nl}ac_space=\ *)
4830
# `set' does not quote correctly, so add quotes (double-quote
4831
# substitution turns \\\\ into \\, and sed turns \\ into \).
4834
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4837
# `set' quotes correctly as required by POSIX, so do not add quotes.
4838
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4847
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4849
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4851
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4852
if test -w "$cache_file"; then
4853
test "x$cache_file" != "x/dev/null" &&
4854
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
4855
echo "$as_me: updating cache $cache_file" >&6;}
4856
cat confcache >$cache_file
4858
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4859
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4864
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4865
# Let make expand exec_prefix.
4866
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4868
# Transform confdefs.h into DEFS.
4869
# Protect against shell expansion while executing Makefile rules.
4870
# Protect against Makefile macro expansion.
4872
# If the first sed substitution is executed (which looks for macros that
4873
# take arguments), then branch to the quote section. Otherwise,
4874
# look for a macro that doesn't take arguments.
4878
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4880
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4884
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4897
DEFS=`sed -n "$ac_script" confdefs.h`
4902
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4903
# 1. Remove the extension, and $U if already installed.
4904
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4905
ac_i=`echo "$ac_i" | sed "$ac_script"`
4906
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4907
# will be set to the directory where LIBOBJS objects are built.
4908
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4909
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4913
LTLIBOBJS=$ac_ltlibobjs
4917
: ${CONFIG_STATUS=./config.status}
4918
ac_clean_files_save=$ac_clean_files
4919
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4920
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4921
echo "$as_me: creating $CONFIG_STATUS" >&6;}
4922
cat >$CONFIG_STATUS <<_ACEOF
4924
# Generated by $as_me.
4925
# Run this file to recreate the current configuration.
4926
# Compiler output produced by configure, useful for debugging
4927
# configure, is in config.log if it exists.
4932
SHELL=\${CONFIG_SHELL-$SHELL}
4935
cat >>$CONFIG_STATUS <<\_ACEOF
4936
## --------------------- ##
4937
## M4sh Initialization. ##
4938
## --------------------- ##
4940
# Be more Bourne compatible
4941
DUALCASE=1; export DUALCASE # for MKS sh
4942
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4945
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4946
# is contrary to our usage. Disable this feature.
4947
alias -g '${1+"$@"}'='"$@"'
4948
setopt NO_GLOB_SUBST
4950
case `(set -o) 2>/dev/null` in
4951
*posix*) set -o posix ;;
4960
# Avoid depending upon Character Ranges.
4961
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4962
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4963
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4964
as_cr_digits='0123456789'
4965
as_cr_alnum=$as_cr_Letters$as_cr_digits
4967
# The user is always right.
4968
if test "${PATH_SEPARATOR+set}" != set; then
4969
echo "#! /bin/sh" >conf$$.sh
4970
echo "exit 0" >>conf$$.sh
4972
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4980
# Support unset when possible.
4981
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4989
# We need space, tab and new line, in precisely that order. Quoting is
4990
# there to prevent editors from complaining about space-tab.
4991
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4992
# splitting by setting IFS to empty value.)
4997
# Find who we are. Look in the path if we contain no directory separator.
4999
*[\\/]* ) as_myself=$0 ;;
5000
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004
test -z "$as_dir" && as_dir=.
5005
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5011
# We did not find ourselves, most probably we were run as `sh COMMAND'
5012
# in which case we are not to be found in the path.
5013
if test "x$as_myself" = x; then
5016
if test ! -f "$as_myself"; then
5017
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5018
{ (exit 1); exit 1; }
5021
# Work around bugs in pre-3.0 UWIN ksh.
5022
for as_var in ENV MAIL MAILPATH
5023
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5031
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5032
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5033
LC_TELEPHONE LC_TIME
5035
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5036
eval $as_var=C; export $as_var
5038
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5042
# Required to use basename.
5043
if expr a : '\(a\)' >/dev/null 2>&1 &&
5044
test "X`expr 00001 : '.*\(...\)'`" = X001; then
5050
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5051
as_basename=basename
5057
# Name of the executable.
5058
as_me=`$as_basename -- "$0" ||
5059
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5060
X"$0" : 'X\(//\)$' \| \
5061
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5063
sed '/^.*\/\([^/][^/]*\)\/*$/{
5084
test "x$as_lineno_1" != "x$as_lineno_2" &&
5085
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5087
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5088
# uniformly replaced by the line number. The first 'sed' inserts a
5089
# line-number line after each line using $LINENO; the second 'sed'
5090
# does the real work. The second script uses 'N' to pair each
5091
# line-number line with the line containing $LINENO, and appends
5092
# trailing '-' during substitution so that $LINENO is not a special
5094
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5095
# scripts with optimization help from Paolo Bonzini. Blame Lee
5096
# E. McMahon (1931-1989) for sed's syntax. :-)
5108
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5112
chmod +x "$as_me.lineno" ||
5113
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5114
{ (exit 1); exit 1; }; }
5116
# Don't try to exec as it changes $[0], causing all sort of problems
5117
# (the dirname of $[0] is not the place where we might find the
5118
# original and so on. Autoconf is especially sensitive to this).
5120
# Exit status is that of the last command.
5125
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5131
ECHO_C= ECHO_N= ECHO_T=
5134
case `echo 'x\c'` in
5135
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
5142
if expr a : '\(a\)' >/dev/null 2>&1 &&
5143
test "X`expr 00001 : '.*\(...\)'`" = X001; then
5149
rm -f conf$$ conf$$.exe conf$$.file
5150
if test -d conf$$.dir; then
5151
rm -f conf$$.dir/conf$$.file
5157
if ln -s conf$$.file conf$$ 2>/dev/null; then
5159
# ... but there are two gotchas:
5160
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5161
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5162
# In both cases, we have to default to `cp -p'.
5163
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5165
elif ln conf$$.file conf$$ 2>/dev/null; then
5170
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5171
rmdir conf$$.dir 2>/dev/null
5173
if mkdir -p . 2>/dev/null; then
5176
test -d ./-p && rmdir ./-p
5180
if test -x / >/dev/null 2>&1; then
5183
if ls -dL / >/dev/null 2>&1; then
5190
if test -d "$1"; then
5196
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5197
???[sx]*):;;*)false;;esac;fi
5201
as_executable_p=$as_test_x
5203
# Sed expression to map a string onto a valid CPP name.
5204
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5206
# Sed expression to map a string onto a valid variable name.
5207
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5212
# Save the log message, to keep $[0] and so on meaningful, and to
5213
# report actual input values of CONFIG_FILES etc. instead of their
5214
# values after options handling.
5216
This file was extended by $as_me, which was
5217
generated by GNU Autoconf 2.61. Invocation command line was
5219
CONFIG_FILES = $CONFIG_FILES
5220
CONFIG_HEADERS = $CONFIG_HEADERS
5221
CONFIG_LINKS = $CONFIG_LINKS
5222
CONFIG_COMMANDS = $CONFIG_COMMANDS
5225
on `(hostname || uname -n) 2>/dev/null | sed 1q`
5230
cat >>$CONFIG_STATUS <<_ACEOF
5231
# Files that config.status was made for.
5232
config_files="$ac_config_files"
5236
cat >>$CONFIG_STATUS <<\_ACEOF
5238
\`$as_me' instantiates files from templates according to the
5239
current configuration.
5241
Usage: $0 [OPTIONS] [FILE]...
5243
-h, --help print this help, then exit
5244
-V, --version print version number and configuration settings, then exit
5245
-q, --quiet do not print progress messages
5246
-d, --debug don't remove temporary files
5247
--recheck update $as_me by reconfiguring in the same conditions
5248
--file=FILE[:TEMPLATE]
5249
instantiate the configuration file FILE
5251
Configuration files:
5254
Report bugs to <bug-autoconf@gnu.org>."
5257
cat >>$CONFIG_STATUS <<_ACEOF
5260
configured by $0, generated by GNU Autoconf 2.61,
5261
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5263
Copyright (C) 2006 Free Software Foundation, Inc.
5264
This config.status script is free software; the Free Software Foundation
5265
gives unlimited permission to copy, distribute and modify it."
5271
cat >>$CONFIG_STATUS <<\_ACEOF
5272
# If no file are specified by the user, then we need to provide default
5273
# value. By we need to know if files were specified by the user.
5279
ac_option=`expr "X$1" : 'X\([^=]*\)='`
5280
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5291
# Handling of the options.
5292
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5294
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5295
echo "$ac_cs_version"; exit ;;
5296
--debug | --debu | --deb | --de | --d | -d )
5298
--file | --fil | --fi | --f )
5300
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5301
ac_need_defaults=false;;
5302
--he | --h | --help | --hel | -h )
5303
echo "$ac_cs_usage"; exit ;;
5304
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
5305
| -silent | --silent | --silen | --sile | --sil | --si | --s)
5309
-*) { echo "$as_me: error: unrecognized option: $1
5310
Try \`$0 --help' for more information." >&2
5311
{ (exit 1); exit 1; }; } ;;
5313
*) ac_config_targets="$ac_config_targets $1"
5314
ac_need_defaults=false ;;
5320
ac_configure_extra_args=
5322
if $ac_cs_silent; then
5324
ac_configure_extra_args="$ac_configure_extra_args --silent"
5328
cat >>$CONFIG_STATUS <<_ACEOF
5329
if \$ac_cs_recheck; then
5330
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5333
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5337
cat >>$CONFIG_STATUS <<\_ACEOF
5341
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5342
## Running $as_me. ##
5348
cat >>$CONFIG_STATUS <<_ACEOF
5351
cat >>$CONFIG_STATUS <<\_ACEOF
5353
# Handling of arguments.
5354
for ac_config_target in $ac_config_targets
5356
case $ac_config_target in
5357
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5359
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5360
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5361
{ (exit 1); exit 1; }; };;
5366
# If the user did not use the arguments to specify the items to instantiate,
5367
# then the envvar interface is used. Set only those that are not.
5368
# We use the long form for the default assignment because of an extremely
5369
# bizarre bug on SunOS 4.1.3.
5370
if $ac_need_defaults; then
5371
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5374
# Have a temporary directory for convenience. Make it in the build tree
5375
# simply because there is no reason against having it here, and in addition,
5376
# creating and moving files from /tmp can sometimes cause problems.
5377
# Hook for its removal unless debugging.
5378
# Note that there is a small window in which the directory will not be cleaned:
5379
# after its creation but before its name has been assigned to `$tmp'.
5383
trap 'exit_status=$?
5384
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5386
trap '{ (exit 1); exit 1; }' 1 2 13 15
5388
# Create a (secure) tmp directory for tmp files.
5391
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5392
test -n "$tmp" && test -d "$tmp"
5395
tmp=./conf$$-$RANDOM
5396
(umask 077 && mkdir "$tmp")
5399
echo "$me: cannot create a temporary directory in ." >&2
5400
{ (exit 1); exit 1; }
5404
# Set up the sed scripts for CONFIG_FILES section.
5407
# No need to generate the scripts if there are no CONFIG_FILES.
5408
# This happens for instance when ./config.status config.h
5409
if test -n "$CONFIG_FILES"; then
5416
for ac_last_try in false false false false false :; do
5417
cat >conf$$subs.sed <<_ACEOF
5418
SHELL!$SHELL$ac_delim
5419
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5420
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5421
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5422
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5423
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5424
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5425
exec_prefix!$exec_prefix$ac_delim
5426
prefix!$prefix$ac_delim
5427
program_transform_name!$program_transform_name$ac_delim
5428
bindir!$bindir$ac_delim
5429
sbindir!$sbindir$ac_delim
5430
libexecdir!$libexecdir$ac_delim
5431
datarootdir!$datarootdir$ac_delim
5432
datadir!$datadir$ac_delim
5433
sysconfdir!$sysconfdir$ac_delim
5434
sharedstatedir!$sharedstatedir$ac_delim
5435
localstatedir!$localstatedir$ac_delim
5436
includedir!$includedir$ac_delim
5437
oldincludedir!$oldincludedir$ac_delim
5438
docdir!$docdir$ac_delim
5439
infodir!$infodir$ac_delim
5440
htmldir!$htmldir$ac_delim
5441
dvidir!$dvidir$ac_delim
5442
pdfdir!$pdfdir$ac_delim
5443
psdir!$psdir$ac_delim
5444
libdir!$libdir$ac_delim
5445
localedir!$localedir$ac_delim
5446
mandir!$mandir$ac_delim
5448
ECHO_C!$ECHO_C$ac_delim
5449
ECHO_N!$ECHO_N$ac_delim
5450
ECHO_T!$ECHO_T$ac_delim
5452
build_alias!$build_alias$ac_delim
5453
host_alias!$host_alias$ac_delim
5454
target_alias!$target_alias$ac_delim
5456
CFLAGS!$CFLAGS$ac_delim
5457
LDFLAGS!$LDFLAGS$ac_delim
5458
CPPFLAGS!$CPPFLAGS$ac_delim
5459
ac_ct_CC!$ac_ct_CC$ac_delim
5460
EXEEXT!$EXEEXT$ac_delim
5461
OBJEXT!$OBJEXT$ac_delim
5463
RANLIB!$RANLIB$ac_delim
5466
EGREP!$EGREP$ac_delim
5467
ALLOCA!$ALLOCA$ac_delim
5468
LIBOBJS!$LIBOBJS$ac_delim
5469
LTLIBOBJS!$LTLIBOBJS$ac_delim
5472
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
5474
elif $ac_last_try; then
5475
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5476
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5477
{ (exit 1); exit 1; }; }
5479
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5483
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5484
if test -n "$ac_eof"; then
5485
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5486
ac_eof=`expr $ac_eof + 1`
5489
cat >>$CONFIG_STATUS <<_ACEOF
5490
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5491
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5494
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5495
s/^/s,@/; s/!/@,|#_!!_#|/
5498
s/'"$ac_delim"'$/,g/; t
5500
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5501
' >>$CONFIG_STATUS <conf$$subs.sed
5502
rm -f conf$$subs.sed
5503
cat >>$CONFIG_STATUS <<_ACEOF
5510
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5511
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5512
# trailing colons and then remove the whole line if VPATH becomes empty
5513
# (actually we leave an empty line to preserve line numbers).
5514
if test "x$srcdir" = x.; then
5515
ac_vpsub='/^[ ]*VPATH[ ]*=/{
5519
s/^\([^=]*=[ ]*\):*/\1/
5525
cat >>$CONFIG_STATUS <<\_ACEOF
5526
fi # test -n "$CONFIG_FILES"
5529
for ac_tag in :F $CONFIG_FILES
5532
:[FHLC]) ac_mode=$ac_tag; continue;;
5534
case $ac_mode$ac_tag in
5536
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5537
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5538
{ (exit 1); exit 1; }; };;
5539
:[FH]-) ac_tag=-:-;;
5540
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5557
-) ac_f="$tmp/stdin";;
5558
*) # Look for the file first in the build tree, then in the source tree
5559
# (if the path is not absolute). The absolute path cannot be DOS-style,
5560
# because $ac_f cannot contain `:'.
5564
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5566
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5567
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5568
{ (exit 1); exit 1; }; };;
5570
ac_file_inputs="$ac_file_inputs $ac_f"
5573
# Let's still pretend it is `configure' which instantiates (i.e., don't
5574
# use $as_me), people would be surprised to read:
5575
# /* config.h. Generated by config.status. */
5576
configure_input="Generated from "`IFS=:
5577
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5578
if test x"$ac_file" != x-; then
5579
configure_input="$ac_file. $configure_input"
5580
{ echo "$as_me:$LINENO: creating $ac_file" >&5
5581
echo "$as_me: creating $ac_file" >&6;}
5585
*:-:* | *:-) cat >"$tmp/stdin";;
5590
ac_dir=`$as_dirname -- "$ac_file" ||
5591
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5592
X"$ac_file" : 'X\(//\)[^/]' \| \
5593
X"$ac_file" : 'X\(//\)$' \| \
5594
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5596
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5615
-*) as_dir=./$as_dir;;
5617
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5621
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5622
*) as_qdir=$as_dir;;
5624
as_dirs="'$as_qdir' $as_dirs"
5625
as_dir=`$as_dirname -- "$as_dir" ||
5626
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5627
X"$as_dir" : 'X\(//\)[^/]' \| \
5628
X"$as_dir" : 'X\(//\)$' \| \
5629
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5631
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5648
test -d "$as_dir" && break
5650
test -z "$as_dirs" || eval "mkdir $as_dirs"
5651
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5652
echo "$as_me: error: cannot create directory $as_dir" >&2;}
5653
{ (exit 1); exit 1; }; }; }
5657
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5659
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5660
# A ".." for each directory in $ac_dir_suffix.
5661
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5662
case $ac_top_builddir_sub in
5663
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5664
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5667
ac_abs_top_builddir=$ac_pwd
5668
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5669
# for backward compatibility:
5670
ac_top_builddir=$ac_top_build_prefix
5673
.) # We are building in place.
5675
ac_top_srcdir=$ac_top_builddir_sub
5676
ac_abs_top_srcdir=$ac_pwd ;;
5677
[\\/]* | ?:[\\/]* ) # Absolute name.
5678
ac_srcdir=$srcdir$ac_dir_suffix;
5679
ac_top_srcdir=$srcdir
5680
ac_abs_top_srcdir=$srcdir ;;
5682
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5683
ac_top_srcdir=$ac_top_build_prefix$srcdir
5684
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5686
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5697
cat >>$CONFIG_STATUS <<\_ACEOF
5698
# If the template does not know about datarootdir, expand it.
5699
# FIXME: This hack should be removed a few years after 2.60.
5700
ac_datarootdir_hack=; ac_datarootdir_seen=
5702
case `sed -n '/datarootdir/ {
5711
' $ac_file_inputs` in
5712
*datarootdir*) ac_datarootdir_seen=yes;;
5713
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5714
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5715
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5717
cat >>$CONFIG_STATUS <<_ACEOF
5718
ac_datarootdir_hack='
5719
s&@datadir@&$datadir&g
5720
s&@docdir@&$docdir&g
5721
s&@infodir@&$infodir&g
5722
s&@localedir@&$localedir&g
5723
s&@mandir@&$mandir&g
5724
s&\\\${datarootdir}&$datarootdir&g' ;;
5728
# Neutralize VPATH when `$srcdir' = `.'.
5729
# Shell code in configure.ac might set extrasub.
5730
# FIXME: do we really want to maintain this feature?
5731
cat >>$CONFIG_STATUS <<_ACEOF
5735
cat >>$CONFIG_STATUS <<\_ACEOF
5737
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5738
s&@configure_input@&$configure_input&;t t
5739
s&@top_builddir@&$ac_top_builddir_sub&;t t
5740
s&@srcdir@&$ac_srcdir&;t t
5741
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5742
s&@top_srcdir@&$ac_top_srcdir&;t t
5743
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5744
s&@builddir@&$ac_builddir&;t t
5745
s&@abs_builddir@&$ac_abs_builddir&;t t
5746
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5747
$ac_datarootdir_hack
5748
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5750
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5751
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5752
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5753
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5754
which seems to be undefined. Please make sure it is defined." >&5
5755
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5756
which seems to be undefined. Please make sure it is defined." >&2;}
5760
-) cat "$tmp/out"; rm -f "$tmp/out";;
5761
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5772
{ (exit 0); exit 0; }
5774
chmod +x $CONFIG_STATUS
5775
ac_clean_files=$ac_clean_files_save
5778
# configure is writing to config.log, and then calls config.status.
5779
# config.status does its own redirection, appending to config.log.
5780
# Unfortunately, on DOS this fails, as config.log is still kept open
5781
# by configure, so config.status won't be able to write to it; its
5782
# output is simply discarded. So we exec the FD to /dev/null,
5783
# effectively closing config.log, so it can be properly (re)opened and
5784
# appended to by config.status. When coming back to configure, we
5785
# need to make the FD available again.
5786
if test "$no_create" != yes; then
5788
ac_config_status_args=
5789
test "$silent" = yes &&
5790
ac_config_status_args="$ac_config_status_args --quiet"
5792
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5794
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
5795
# would make configure fail if this is the last instruction.
5796
$ac_cs_success || { (exit 1); exit 1; }