2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for libenet 9-15-2008.
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.
573
PACKAGE_NAME='libenet'
574
PACKAGE_TARNAME='libenet'
575
PACKAGE_VERSION='9-15-2008'
576
PACKAGE_STRING='libenet 9-15-2008'
588
program_transform_name
630
INSTALL_STRIP_PROGRAM
661
ac_precious_vars='build_alias
672
# Initialize some variables set by options.
674
ac_init_version=false
675
# The variables have the same names as the options, with
676
# dashes changed to underlines.
684
program_transform_name=s,x,x,
692
# Installation directory options.
693
# These are left unexpanded so users can "make install exec_prefix=/foo"
694
# and all the variables that are supposed to be based on exec_prefix
695
# by default will actually change.
696
# Use braces instead of parens because sh, perl, etc. also accept them.
697
# (The list follows the same order as the GNU Coding Standards.)
698
bindir='${exec_prefix}/bin'
699
sbindir='${exec_prefix}/sbin'
700
libexecdir='${exec_prefix}/libexec'
701
datarootdir='${prefix}/share'
702
datadir='${datarootdir}'
703
sysconfdir='${prefix}/etc'
704
sharedstatedir='${prefix}/com'
705
localstatedir='${prefix}/var'
706
includedir='${prefix}/include'
707
oldincludedir='/usr/include'
708
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
709
infodir='${datarootdir}/info'
714
libdir='${exec_prefix}/lib'
715
localedir='${datarootdir}/locale'
716
mandir='${datarootdir}/man'
722
# If the previous option needs an argument, assign it.
723
if test -n "$ac_prev"; then
724
eval $ac_prev=\$ac_option
730
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
734
# Accept the important Cygnus configure options, so we can diagnose typos.
736
case $ac_dashdash$ac_option in
740
-bindir | --bindir | --bindi | --bind | --bin | --bi)
742
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
745
-build | --build | --buil | --bui | --bu)
746
ac_prev=build_alias ;;
747
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
748
build_alias=$ac_optarg ;;
750
-cache-file | --cache-file | --cache-fil | --cache-fi \
751
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
752
ac_prev=cache_file ;;
753
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
754
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
755
cache_file=$ac_optarg ;;
758
cache_file=config.cache ;;
760
-datadir | --datadir | --datadi | --datad)
762
-datadir=* | --datadir=* | --datadi=* | --datad=*)
763
datadir=$ac_optarg ;;
765
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
766
| --dataroo | --dataro | --datar)
767
ac_prev=datarootdir ;;
768
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
769
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
770
datarootdir=$ac_optarg ;;
772
-disable-* | --disable-*)
773
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
774
# Reject names that are not valid shell variable names.
775
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
776
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
777
{ (exit 1); exit 1; }; }
778
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
779
eval enable_$ac_feature=no ;;
781
-docdir | --docdir | --docdi | --doc | --do)
783
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
786
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
788
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
791
-enable-* | --enable-*)
792
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
793
# Reject names that are not valid shell variable names.
794
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
796
{ (exit 1); exit 1; }; }
797
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
798
eval enable_$ac_feature=\$ac_optarg ;;
800
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
801
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
802
| --exec | --exe | --ex)
803
ac_prev=exec_prefix ;;
804
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
805
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
806
| --exec=* | --exe=* | --ex=*)
807
exec_prefix=$ac_optarg ;;
809
-gas | --gas | --ga | --g)
810
# Obsolete; use --with-gas.
813
-help | --help | --hel | --he | -h)
815
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
816
ac_init_help=recursive ;;
817
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
818
ac_init_help=short ;;
820
-host | --host | --hos | --ho)
821
ac_prev=host_alias ;;
822
-host=* | --host=* | --hos=* | --ho=*)
823
host_alias=$ac_optarg ;;
825
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
827
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
829
htmldir=$ac_optarg ;;
831
-includedir | --includedir | --includedi | --included | --include \
832
| --includ | --inclu | --incl | --inc)
833
ac_prev=includedir ;;
834
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
835
| --includ=* | --inclu=* | --incl=* | --inc=*)
836
includedir=$ac_optarg ;;
838
-infodir | --infodir | --infodi | --infod | --info | --inf)
840
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
841
infodir=$ac_optarg ;;
843
-libdir | --libdir | --libdi | --libd)
845
-libdir=* | --libdir=* | --libdi=* | --libd=*)
848
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
849
| --libexe | --libex | --libe)
850
ac_prev=libexecdir ;;
851
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
852
| --libexe=* | --libex=* | --libe=*)
853
libexecdir=$ac_optarg ;;
855
-localedir | --localedir | --localedi | --localed | --locale)
857
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
858
localedir=$ac_optarg ;;
860
-localstatedir | --localstatedir | --localstatedi | --localstated \
861
| --localstate | --localstat | --localsta | --localst | --locals)
862
ac_prev=localstatedir ;;
863
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
864
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
865
localstatedir=$ac_optarg ;;
867
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
869
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
873
# Obsolete; use --without-fp.
876
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
877
| --no-cr | --no-c | -n)
880
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
881
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
884
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
885
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
886
| --oldin | --oldi | --old | --ol | --o)
887
ac_prev=oldincludedir ;;
888
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
889
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
890
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
891
oldincludedir=$ac_optarg ;;
893
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
895
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
898
-program-prefix | --program-prefix | --program-prefi | --program-pref \
899
| --program-pre | --program-pr | --program-p)
900
ac_prev=program_prefix ;;
901
-program-prefix=* | --program-prefix=* | --program-prefi=* \
902
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
903
program_prefix=$ac_optarg ;;
905
-program-suffix | --program-suffix | --program-suffi | --program-suff \
906
| --program-suf | --program-su | --program-s)
907
ac_prev=program_suffix ;;
908
-program-suffix=* | --program-suffix=* | --program-suffi=* \
909
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
910
program_suffix=$ac_optarg ;;
912
-program-transform-name | --program-transform-name \
913
| --program-transform-nam | --program-transform-na \
914
| --program-transform-n | --program-transform- \
915
| --program-transform | --program-transfor \
916
| --program-transfo | --program-transf \
917
| --program-trans | --program-tran \
918
| --progr-tra | --program-tr | --program-t)
919
ac_prev=program_transform_name ;;
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
program_transform_name=$ac_optarg ;;
929
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
931
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
934
-psdir | --psdir | --psdi | --psd | --ps)
936
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
939
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
940
| -silent | --silent | --silen | --sile | --sil)
943
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
945
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
947
sbindir=$ac_optarg ;;
949
-sharedstatedir | --sharedstatedir | --sharedstatedi \
950
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
951
| --sharedst | --shareds | --shared | --share | --shar \
953
ac_prev=sharedstatedir ;;
954
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
955
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
956
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
958
sharedstatedir=$ac_optarg ;;
960
-site | --site | --sit)
962
-site=* | --site=* | --sit=*)
965
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
967
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
970
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
971
| --syscon | --sysco | --sysc | --sys | --sy)
972
ac_prev=sysconfdir ;;
973
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
974
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
975
sysconfdir=$ac_optarg ;;
977
-target | --target | --targe | --targ | --tar | --ta | --t)
978
ac_prev=target_alias ;;
979
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
980
target_alias=$ac_optarg ;;
982
-v | -verbose | --verbose | --verbos | --verbo | --verb)
985
-version | --version | --versio | --versi | --vers | -V)
989
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
990
# Reject names that are not valid shell variable names.
991
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
992
{ echo "$as_me: error: invalid package name: $ac_package" >&2
993
{ (exit 1); exit 1; }; }
994
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
995
eval with_$ac_package=\$ac_optarg ;;
997
-without-* | --without-*)
998
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
999
# Reject names that are not valid shell variable names.
1000
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1002
{ (exit 1); exit 1; }; }
1003
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1004
eval with_$ac_package=no ;;
1007
# Obsolete; use --with-x.
1010
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1011
| --x-incl | --x-inc | --x-in | --x-i)
1012
ac_prev=x_includes ;;
1013
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1014
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1015
x_includes=$ac_optarg ;;
1017
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1018
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1019
ac_prev=x_libraries ;;
1020
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1021
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1022
x_libraries=$ac_optarg ;;
1024
-*) { echo "$as_me: error: unrecognized option: $ac_option
1025
Try \`$0 --help' for more information." >&2
1026
{ (exit 1); exit 1; }; }
1030
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1031
# Reject names that are not valid shell variable names.
1032
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1033
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1034
{ (exit 1); exit 1; }; }
1035
eval $ac_envvar=\$ac_optarg
1036
export $ac_envvar ;;
1039
# FIXME: should be removed in autoconf 3.0.
1040
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1041
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1043
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1049
if test -n "$ac_prev"; then
1050
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1051
{ echo "$as_me: error: missing argument to $ac_option" >&2
1052
{ (exit 1); exit 1; }; }
1055
# Be sure to have absolute directory names.
1056
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1057
datadir sysconfdir sharedstatedir localstatedir includedir \
1058
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1059
libdir localedir mandir
1061
eval ac_val=\$$ac_var
1063
[\\/$]* | ?:[\\/]* ) continue;;
1064
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1066
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1067
{ (exit 1); exit 1; }; }
1070
# There might be people who depend on the old broken behavior: `$host'
1071
# used to hold the argument of --host etc.
1072
# FIXME: To remove some day.
1075
target=$target_alias
1077
# FIXME: To remove some day.
1078
if test "x$host_alias" != x; then
1079
if test "x$build_alias" = x; then
1080
cross_compiling=maybe
1081
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1082
If a cross compiler is detected then cross compile mode will be used." >&2
1083
elif test "x$build_alias" != "x$host_alias"; then
1089
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1091
test "$silent" = yes && exec 6>/dev/null
1094
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1095
ac_ls_di=`ls -di .` &&
1096
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1097
{ echo "$as_me: error: Working directory cannot be determined" >&2
1098
{ (exit 1); exit 1; }; }
1099
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1100
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1101
{ (exit 1); exit 1; }; }
1104
# Find the source files, if location was not specified.
1105
if test -z "$srcdir"; then
1106
ac_srcdir_defaulted=yes
1107
# Try the directory containing this script, then the parent directory.
1108
ac_confdir=`$as_dirname -- "$0" ||
1109
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1110
X"$0" : 'X\(//\)[^/]' \| \
1111
X"$0" : 'X\(//\)$' \| \
1112
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1114
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1132
if test ! -r "$srcdir/$ac_unique_file"; then
1136
ac_srcdir_defaulted=no
1138
if test ! -r "$srcdir/$ac_unique_file"; then
1139
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1140
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1141
{ (exit 1); exit 1; }; }
1143
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1145
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1146
{ (exit 1); exit 1; }; }
1148
# When building in place, set srcdir=.
1149
if test "$ac_abs_confdir" = "$ac_pwd"; then
1152
# Remove unnecessary trailing slashes from srcdir.
1153
# Double slashes in file names in object file debugging info
1154
# mess up M-x gdb in Emacs.
1156
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1158
for ac_var in $ac_precious_vars; do
1159
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1160
eval ac_env_${ac_var}_value=\$${ac_var}
1161
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1162
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1166
# Report the --help message.
1168
if test "$ac_init_help" = "long"; then
1169
# Omit some internal or obsolete options to make the list less imposing.
1170
# This message is too long to be a string in the A/UX 3.1 sh.
1172
\`configure' configures libenet 9-15-2008 to adapt to many kinds of systems.
1174
Usage: $0 [OPTION]... [VAR=VALUE]...
1176
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1177
VAR=VALUE. See below for descriptions of some of the useful variables.
1179
Defaults for the options are specified in brackets.
1182
-h, --help display this help and exit
1183
--help=short display options specific to this package
1184
--help=recursive display the short help of all the included packages
1185
-V, --version display version information and exit
1186
-q, --quiet, --silent do not print \`checking...' messages
1187
--cache-file=FILE cache test results in FILE [disabled]
1188
-C, --config-cache alias for \`--cache-file=config.cache'
1189
-n, --no-create do not create output files
1190
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1192
Installation directories:
1193
--prefix=PREFIX install architecture-independent files in PREFIX
1194
[$ac_default_prefix]
1195
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1198
By default, \`make install' will install all the files in
1199
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1200
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1201
for instance \`--prefix=\$HOME'.
1203
For better control, use the options below.
1205
Fine tuning of the installation directories:
1206
--bindir=DIR user executables [EPREFIX/bin]
1207
--sbindir=DIR system admin executables [EPREFIX/sbin]
1208
--libexecdir=DIR program executables [EPREFIX/libexec]
1209
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1210
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1211
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1212
--libdir=DIR object code libraries [EPREFIX/lib]
1213
--includedir=DIR C header files [PREFIX/include]
1214
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1215
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1216
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1217
--infodir=DIR info documentation [DATAROOTDIR/info]
1218
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1219
--mandir=DIR man documentation [DATAROOTDIR/man]
1220
--docdir=DIR documentation root [DATAROOTDIR/doc/libenet]
1221
--htmldir=DIR html documentation [DOCDIR]
1222
--dvidir=DIR dvi documentation [DOCDIR]
1223
--pdfdir=DIR pdf documentation [DOCDIR]
1224
--psdir=DIR ps documentation [DOCDIR]
1230
--program-prefix=PREFIX prepend PREFIX to installed program names
1231
--program-suffix=SUFFIX append SUFFIX to installed program names
1232
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1236
if test -n "$ac_init_help"; then
1237
case $ac_init_help in
1238
short | recursive ) echo "Configuration of libenet 9-15-2008:";;
1243
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1244
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1245
--disable-dependency-tracking speeds up one-time build
1246
--enable-dependency-tracking do not reject slow dependency extractors
1247
--enable-crc32 enable CRC32 packet verification
1249
Some influential environment variables:
1250
CC C compiler command
1251
CFLAGS C compiler flags
1252
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1253
nonstandard directory <lib dir>
1254
LIBS libraries to pass to the linker, e.g. -l<library>
1255
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1256
you have headers in a nonstandard directory <include dir>
1259
Use these variables to override the choices made by `configure' or to help
1260
it to find libraries and programs with nonstandard names/locations.
1266
if test "$ac_init_help" = "recursive"; then
1267
# If there are subdirs, report their specific --help.
1268
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1269
test -d "$ac_dir" || continue
1273
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1275
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1276
# A ".." for each directory in $ac_dir_suffix.
1277
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1278
case $ac_top_builddir_sub in
1279
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1280
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1283
ac_abs_top_builddir=$ac_pwd
1284
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1285
# for backward compatibility:
1286
ac_top_builddir=$ac_top_build_prefix
1289
.) # We are building in place.
1291
ac_top_srcdir=$ac_top_builddir_sub
1292
ac_abs_top_srcdir=$ac_pwd ;;
1293
[\\/]* | ?:[\\/]* ) # Absolute name.
1294
ac_srcdir=$srcdir$ac_dir_suffix;
1295
ac_top_srcdir=$srcdir
1296
ac_abs_top_srcdir=$srcdir ;;
1298
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1299
ac_top_srcdir=$ac_top_build_prefix$srcdir
1300
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1302
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1304
cd "$ac_dir" || { ac_status=$?; continue; }
1305
# Check for guested configure.
1306
if test -f "$ac_srcdir/configure.gnu"; then
1308
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1309
elif test -f "$ac_srcdir/configure"; then
1311
$SHELL "$ac_srcdir/configure" --help=recursive
1313
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1315
cd "$ac_pwd" || { ac_status=$?; break; }
1319
test -n "$ac_init_help" && exit $ac_status
1320
if $ac_init_version; then
1322
libenet configure 9-15-2008
1323
generated by GNU Autoconf 2.61
1325
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1326
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1327
This configure script is free software; the Free Software Foundation
1328
gives unlimited permission to copy, distribute and modify it.
1332
cat >config.log <<_ACEOF
1333
This file contains any messages produced by compilers while
1334
running configure, to aid debugging if configure makes a mistake.
1336
It was created by libenet $as_me 9-15-2008, which was
1337
generated by GNU Autoconf 2.61. Invocation command line was
1349
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1350
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1351
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1352
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1353
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1355
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1356
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1358
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1359
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1360
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1361
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1362
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1363
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1364
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372
test -z "$as_dir" && as_dir=.
1373
echo "PATH: $as_dir"
1389
# Keep a trace of the command line.
1390
# Strip out --no-create and --no-recursion so they do not pile up.
1391
# Strip out --silent because we don't want to record it for future runs.
1392
# Also quote any args containing shell meta-characters.
1393
# Make two passes to allow for proper duplicate-argument suppression.
1397
ac_must_keep_next=false
1403
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1404
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1405
| -silent | --silent | --silen | --sile | --sil)
1408
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1411
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1413
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1414
if test $ac_must_keep_next = true; then
1415
ac_must_keep_next=false # Got value, back to normal.
1418
*=* | --config-cache | -C | -disable-* | --disable-* \
1419
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1420
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1421
| -with-* | --with-* | -without-* | --without-* | --x)
1422
case "$ac_configure_args0 " in
1423
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1426
-* ) ac_must_keep_next=true ;;
1429
ac_configure_args="$ac_configure_args '$ac_arg'"
1434
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1435
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1437
# When interrupted or exit'd, cleanup temporary files, and complete
1438
# config.log. We remove comments because anyway the quotes in there
1439
# would cause problems or look ugly.
1440
# WARNING: Use '\'' to represent an apostrophe within the trap.
1441
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1442
trap 'exit_status=$?
1443
# Save into config.log some information that might help in debugging.
1448
## ---------------- ##
1449
## Cache variables. ##
1450
## ---------------- ##
1453
# The following way of writing the cache mishandles newlines in values,
1455
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1456
eval ac_val=\$$ac_var
1460
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1461
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1464
_ | IFS | as_nl) ;; #(
1465
*) $as_unset $ac_var ;;
1470
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1471
*${as_nl}ac_space=\ *)
1473
"s/'\''/'\''\\\\'\'''\''/g;
1474
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1477
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1485
## ----------------- ##
1486
## Output variables. ##
1487
## ----------------- ##
1490
for ac_var in $ac_subst_vars
1492
eval ac_val=\$$ac_var
1494
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1496
echo "$ac_var='\''$ac_val'\''"
1500
if test -n "$ac_subst_files"; then
1502
## ------------------- ##
1503
## File substitutions. ##
1504
## ------------------- ##
1507
for ac_var in $ac_subst_files
1509
eval ac_val=\$$ac_var
1511
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1513
echo "$ac_var='\''$ac_val'\''"
1518
if test -s confdefs.h; then
1528
test "$ac_signal" != 0 &&
1529
echo "$as_me: caught signal $ac_signal"
1530
echo "$as_me: exit $exit_status"
1532
rm -f core *.core core.conftest.* &&
1533
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1536
for ac_signal in 1 2 13 15; do
1537
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1541
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1542
rm -f -r conftest* confdefs.h
1544
# Predefined preprocessor variables.
1546
cat >>confdefs.h <<_ACEOF
1547
#define PACKAGE_NAME "$PACKAGE_NAME"
1551
cat >>confdefs.h <<_ACEOF
1552
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1556
cat >>confdefs.h <<_ACEOF
1557
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1561
cat >>confdefs.h <<_ACEOF
1562
#define PACKAGE_STRING "$PACKAGE_STRING"
1566
cat >>confdefs.h <<_ACEOF
1567
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1571
# Let the site file select an alternate cache file if it wants to.
1572
# Prefer explicitly selected file to automatically selected ones.
1573
if test -n "$CONFIG_SITE"; then
1574
set x "$CONFIG_SITE"
1575
elif test "x$prefix" != xNONE; then
1576
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1578
set x "$ac_default_prefix/share/config.site" \
1579
"$ac_default_prefix/etc/config.site"
1584
if test -r "$ac_site_file"; then
1585
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1586
echo "$as_me: loading site script $ac_site_file" >&6;}
1587
sed 's/^/| /' "$ac_site_file" >&5
1592
if test -r "$cache_file"; then
1593
# Some versions of bash will fail to source /dev/null (special
1594
# files actually), so we avoid doing that.
1595
if test -f "$cache_file"; then
1596
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1597
echo "$as_me: loading cache $cache_file" >&6;}
1599
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1600
*) . "./$cache_file";;
1604
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1605
echo "$as_me: creating cache $cache_file" >&6;}
1609
# Check that the precious variables saved in the cache have kept the same
1611
ac_cache_corrupted=false
1612
for ac_var in $ac_precious_vars; do
1613
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1614
eval ac_new_set=\$ac_env_${ac_var}_set
1615
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1616
eval ac_new_val=\$ac_env_${ac_var}_value
1617
case $ac_old_set,$ac_new_set in
1619
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1620
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1621
ac_cache_corrupted=: ;;
1623
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1624
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1625
ac_cache_corrupted=: ;;
1628
if test "x$ac_old_val" != "x$ac_new_val"; then
1629
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1630
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1631
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1632
echo "$as_me: former value: $ac_old_val" >&2;}
1633
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1634
echo "$as_me: current value: $ac_new_val" >&2;}
1635
ac_cache_corrupted=:
1638
# Pass precious variables to config.status.
1639
if test "$ac_new_set" = set; then
1641
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1642
*) ac_arg=$ac_var=$ac_new_val ;;
1644
case " $ac_configure_args " in
1645
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1646
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1650
if $ac_cache_corrupted; then
1651
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1652
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1653
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1654
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1655
{ (exit 1); exit 1; }; }
1683
ac_cpp='$CPP $CPPFLAGS'
1684
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1685
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1686
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1689
am__api_version='1.10'
1692
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1693
if test -f "$ac_dir/install-sh"; then
1695
ac_install_sh="$ac_aux_dir/install-sh -c"
1697
elif test -f "$ac_dir/install.sh"; then
1699
ac_install_sh="$ac_aux_dir/install.sh -c"
1701
elif test -f "$ac_dir/shtool"; then
1703
ac_install_sh="$ac_aux_dir/shtool install -c"
1707
if test -z "$ac_aux_dir"; then
1708
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1709
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1710
{ (exit 1); exit 1; }; }
1713
# These three variables are undocumented and unsupported,
1714
# and are intended to be withdrawn in a future Autoconf release.
1715
# They can cause serious problems if a builder's source tree is in a directory
1716
# whose full name contains unusual characters.
1717
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1718
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1719
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1722
# Find a good install program. We prefer a C program (faster),
1723
# so one script is as good as another. But avoid the broken or
1724
# incompatible versions:
1725
# SysV /etc/install, /usr/sbin/install
1726
# SunOS /usr/etc/install
1727
# IRIX /sbin/install
1729
# AmigaOS /C/install, which installs bootblocks on floppy discs
1730
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1731
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1732
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1733
# OS/2's system install, which has a completely different semantic
1734
# ./install, which can be erroneously created by make from ./install.sh.
1735
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1736
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1737
if test -z "$INSTALL"; then
1738
if test "${ac_cv_path_install+set}" = set; then
1739
echo $ECHO_N "(cached) $ECHO_C" >&6
1741
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745
test -z "$as_dir" && as_dir=.
1746
# Account for people who put trailing slashes in PATH elements.
1748
./ | .// | /cC/* | \
1749
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1750
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1753
# OSF1 and SCO ODT 3.0 have their own names for install.
1754
# Don't use installbsd from OSF since it installs stuff as root
1756
for ac_prog in ginstall scoinst install; do
1757
for ac_exec_ext in '' $ac_executable_extensions; do
1758
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1759
if test $ac_prog = install &&
1760
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1761
# AIX install. It has an incompatible calling convention.
1763
elif test $ac_prog = install &&
1764
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1765
# program-specific install script used by HP pwplus--don't use.
1768
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1781
if test "${ac_cv_path_install+set}" = set; then
1782
INSTALL=$ac_cv_path_install
1784
# As a last resort, use the slow shell script. Don't cache a
1785
# value for INSTALL within a source directory, because that will
1786
# break other packages using the cache if that directory is
1787
# removed, or if the value is a relative name.
1788
INSTALL=$ac_install_sh
1791
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1792
echo "${ECHO_T}$INSTALL" >&6; }
1794
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1795
# It thinks the first close brace ends the variable substitution.
1796
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1798
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1800
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1802
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1803
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1806
echo timestamp > conftest.file
1807
# Do `set' in a subshell so we don't clobber the current shell's
1808
# arguments. Must try -L first in case configure is actually a
1809
# symlink; some systems play weird games with the mod time of symlinks
1810
# (eg FreeBSD returns the mod time of the symlink's containing
1813
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1814
if test "$*" = "X"; then
1816
set X `ls -t $srcdir/configure conftest.file`
1819
if test "$*" != "X $srcdir/configure conftest.file" \
1820
&& test "$*" != "X conftest.file $srcdir/configure"; then
1822
# If neither matched, then we have a broken ls. This can happen
1823
# if, for instance, CONFIG_SHELL is bash and it inherits a
1824
# broken ls alias from the environment. This has actually
1825
# happened. Such a system could not be considered "sane".
1826
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1827
alias in your environment" >&5
1828
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1829
alias in your environment" >&2;}
1830
{ (exit 1); exit 1; }; }
1833
test "$2" = conftest.file
1839
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1840
Check your system clock" >&5
1841
echo "$as_me: error: newly created file is older than distributed files!
1842
Check your system clock" >&2;}
1843
{ (exit 1); exit 1; }; }
1845
{ echo "$as_me:$LINENO: result: yes" >&5
1846
echo "${ECHO_T}yes" >&6; }
1847
test "$program_prefix" != NONE &&
1848
program_transform_name="s&^&$program_prefix&;$program_transform_name"
1849
# Use a double $ so make ignores it.
1850
test "$program_suffix" != NONE &&
1851
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1852
# Double any \ or $. echo might interpret backslashes.
1853
# By default was `s,x,x', remove it if useless.
1854
cat <<\_ACEOF >conftest.sed
1855
s/[\\$]/&&/g;s/;s,x,x,$//
1857
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1860
# expand $ac_aux_dir to an absolute path
1861
am_aux_dir=`cd $ac_aux_dir && pwd`
1863
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1864
# Use eval to expand $SHELL
1865
if eval "$MISSING --run true"; then
1866
am_missing_run="$MISSING --run "
1869
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1870
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1873
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1874
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1875
if test -z "$MKDIR_P"; then
1876
if test "${ac_cv_path_mkdir+set}" = set; then
1877
echo $ECHO_N "(cached) $ECHO_C" >&6
1879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1883
test -z "$as_dir" && as_dir=.
1884
for ac_prog in mkdir gmkdir; do
1885
for ac_exec_ext in '' $ac_executable_extensions; do
1886
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1887
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1888
'mkdir (GNU coreutils) '* | \
1889
'mkdir (coreutils) '* | \
1890
'mkdir (fileutils) '4.1*)
1891
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1901
if test "${ac_cv_path_mkdir+set}" = set; then
1902
MKDIR_P="$ac_cv_path_mkdir -p"
1904
# As a last resort, use the slow shell script. Don't cache a
1905
# value for MKDIR_P within a source directory, because that will
1906
# break other packages using the cache if that directory is
1907
# removed, or if the value is a relative name.
1908
test -d ./--version && rmdir ./--version
1909
MKDIR_P="$ac_install_sh -d"
1912
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1913
echo "${ECHO_T}$MKDIR_P" >&6; }
1917
[\\/$]* | ?:[\\/]*) ;;
1918
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1921
for ac_prog in gawk mawk nawk awk
1923
# Extract the first word of "$ac_prog", so it can be a program name with args.
1924
set dummy $ac_prog; ac_word=$2
1925
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1926
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1927
if test "${ac_cv_prog_AWK+set}" = set; then
1928
echo $ECHO_N "(cached) $ECHO_C" >&6
1930
if test -n "$AWK"; then
1931
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937
test -z "$as_dir" && as_dir=.
1938
for ac_exec_ext in '' $ac_executable_extensions; do
1939
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1940
ac_cv_prog_AWK="$ac_prog"
1941
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951
if test -n "$AWK"; then
1952
{ echo "$as_me:$LINENO: result: $AWK" >&5
1953
echo "${ECHO_T}$AWK" >&6; }
1955
{ echo "$as_me:$LINENO: result: no" >&5
1956
echo "${ECHO_T}no" >&6; }
1960
test -n "$AWK" && break
1963
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1964
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1965
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1966
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1967
echo $ECHO_N "(cached) $ECHO_C" >&6
1969
cat >conftest.make <<\_ACEOF
1972
@echo '@@@%%%=$(MAKE)=@@@%%%'
1974
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1975
case `${MAKE-make} -f conftest.make 2>/dev/null` in
1977
eval ac_cv_prog_make_${ac_make}_set=yes;;
1979
eval ac_cv_prog_make_${ac_make}_set=no;;
1983
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1984
{ echo "$as_me:$LINENO: result: yes" >&5
1985
echo "${ECHO_T}yes" >&6; }
1988
{ echo "$as_me:$LINENO: result: no" >&5
1989
echo "${ECHO_T}no" >&6; }
1990
SET_MAKE="MAKE=${MAKE-make}"
1993
rm -rf .tst 2>/dev/null
1994
mkdir .tst 2>/dev/null
1995
if test -d .tst; then
2000
rmdir .tst 2>/dev/null
2002
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2003
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2004
# is not polluted with repeated "-I."
2005
am__isrc=' -I$(srcdir)'
2006
# test to see if srcdir already configured
2007
if test -f $srcdir/config.status; then
2008
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2009
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2010
{ (exit 1); exit 1; }; }
2014
# test whether we have cygpath
2015
if test -z "$CYGPATH_W"; then
2016
if (cygpath --version) >/dev/null 2>/dev/null; then
2017
CYGPATH_W='cygpath -w'
2024
# Define the identity of the package.
2029
cat >>confdefs.h <<_ACEOF
2030
#define PACKAGE "$PACKAGE"
2034
cat >>confdefs.h <<_ACEOF
2035
#define VERSION "$VERSION"
2038
# Some tools Automake needs.
2040
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2043
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2046
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2049
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2052
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2054
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2056
# Installed binaries are usually stripped using `strip' when the user
2057
# run `make install-strip'. However `strip' might not be the right
2058
# tool to use in cross-compilation environments, therefore Automake
2059
# will honor the `STRIP' environment variable to overrule this program.
2060
if test "$cross_compiling" != no; then
2061
if test -n "$ac_tool_prefix"; then
2062
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2063
set dummy ${ac_tool_prefix}strip; ac_word=$2
2064
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2065
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2066
if test "${ac_cv_prog_STRIP+set}" = set; then
2067
echo $ECHO_N "(cached) $ECHO_C" >&6
2069
if test -n "$STRIP"; then
2070
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076
test -z "$as_dir" && as_dir=.
2077
for ac_exec_ext in '' $ac_executable_extensions; do
2078
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2079
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2080
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089
STRIP=$ac_cv_prog_STRIP
2090
if test -n "$STRIP"; then
2091
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2092
echo "${ECHO_T}$STRIP" >&6; }
2094
{ echo "$as_me:$LINENO: result: no" >&5
2095
echo "${ECHO_T}no" >&6; }
2100
if test -z "$ac_cv_prog_STRIP"; then
2102
# Extract the first word of "strip", so it can be a program name with args.
2103
set dummy strip; ac_word=$2
2104
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2105
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2106
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2107
echo $ECHO_N "(cached) $ECHO_C" >&6
2109
if test -n "$ac_ct_STRIP"; then
2110
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2112
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116
test -z "$as_dir" && as_dir=.
2117
for ac_exec_ext in '' $ac_executable_extensions; do
2118
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2119
ac_cv_prog_ac_ct_STRIP="strip"
2120
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2130
if test -n "$ac_ct_STRIP"; then
2131
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2132
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2134
{ echo "$as_me:$LINENO: result: no" >&5
2135
echo "${ECHO_T}no" >&6; }
2138
if test "x$ac_ct_STRIP" = x; then
2141
case $cross_compiling:$ac_tool_warned in
2143
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2144
whose name does not start with the host triplet. If you think this
2145
configuration is useful to you, please write to autoconf@gnu.org." >&5
2146
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2147
whose name does not start with the host triplet. If you think this
2148
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2149
ac_tool_warned=yes ;;
2154
STRIP="$ac_cv_prog_STRIP"
2158
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2160
# We need awk for the "check" target. The system "awk" is bad on
2162
# Always define AMTAR for backward compatibility.
2164
AMTAR=${AMTAR-"${am_missing_run}tar"}
2166
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2174
ac_cpp='$CPP $CPPFLAGS'
2175
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178
if test -n "$ac_tool_prefix"; then
2179
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2180
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2181
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2182
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183
if test "${ac_cv_prog_CC+set}" = set; then
2184
echo $ECHO_N "(cached) $ECHO_C" >&6
2186
if test -n "$CC"; then
2187
ac_cv_prog_CC="$CC" # Let the user override the test.
2189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193
test -z "$as_dir" && as_dir=.
2194
for ac_exec_ext in '' $ac_executable_extensions; do
2195
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2197
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207
if test -n "$CC"; then
2208
{ echo "$as_me:$LINENO: result: $CC" >&5
2209
echo "${ECHO_T}$CC" >&6; }
2211
{ echo "$as_me:$LINENO: result: no" >&5
2212
echo "${ECHO_T}no" >&6; }
2217
if test -z "$ac_cv_prog_CC"; then
2219
# Extract the first word of "gcc", so it can be a program name with args.
2220
set dummy gcc; ac_word=$2
2221
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2222
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2223
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2224
echo $ECHO_N "(cached) $ECHO_C" >&6
2226
if test -n "$ac_ct_CC"; then
2227
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2229
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233
test -z "$as_dir" && as_dir=.
2234
for ac_exec_ext in '' $ac_executable_extensions; do
2235
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2236
ac_cv_prog_ac_ct_CC="gcc"
2237
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2247
if test -n "$ac_ct_CC"; then
2248
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2249
echo "${ECHO_T}$ac_ct_CC" >&6; }
2251
{ echo "$as_me:$LINENO: result: no" >&5
2252
echo "${ECHO_T}no" >&6; }
2255
if test "x$ac_ct_CC" = x; then
2258
case $cross_compiling:$ac_tool_warned in
2260
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2261
whose name does not start with the host triplet. If you think this
2262
configuration is useful to you, please write to autoconf@gnu.org." >&5
2263
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2264
whose name does not start with the host triplet. If you think this
2265
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2266
ac_tool_warned=yes ;;
2274
if test -z "$CC"; then
2275
if test -n "$ac_tool_prefix"; then
2276
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2277
set dummy ${ac_tool_prefix}cc; ac_word=$2
2278
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2279
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280
if test "${ac_cv_prog_CC+set}" = set; then
2281
echo $ECHO_N "(cached) $ECHO_C" >&6
2283
if test -n "$CC"; then
2284
ac_cv_prog_CC="$CC" # Let the user override the test.
2286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290
test -z "$as_dir" && as_dir=.
2291
for ac_exec_ext in '' $ac_executable_extensions; do
2292
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293
ac_cv_prog_CC="${ac_tool_prefix}cc"
2294
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304
if test -n "$CC"; then
2305
{ echo "$as_me:$LINENO: result: $CC" >&5
2306
echo "${ECHO_T}$CC" >&6; }
2308
{ echo "$as_me:$LINENO: result: no" >&5
2309
echo "${ECHO_T}no" >&6; }
2315
if test -z "$CC"; then
2316
# Extract the first word of "cc", so it can be a program name with args.
2317
set dummy cc; ac_word=$2
2318
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2319
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320
if test "${ac_cv_prog_CC+set}" = set; then
2321
echo $ECHO_N "(cached) $ECHO_C" >&6
2323
if test -n "$CC"; then
2324
ac_cv_prog_CC="$CC" # Let the user override the test.
2327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331
test -z "$as_dir" && as_dir=.
2332
for ac_exec_ext in '' $ac_executable_extensions; do
2333
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2335
ac_prog_rejected=yes
2339
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346
if test $ac_prog_rejected = yes; then
2347
# We found a bogon in the path, so make sure we never use it.
2348
set dummy $ac_cv_prog_CC
2350
if test $# != 0; then
2351
# We chose a different compiler from the bogus one.
2352
# However, it has the same basename, so the bogon will be chosen
2353
# first if we set CC to just the basename; use the full file name.
2355
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2361
if test -n "$CC"; then
2362
{ echo "$as_me:$LINENO: result: $CC" >&5
2363
echo "${ECHO_T}$CC" >&6; }
2365
{ echo "$as_me:$LINENO: result: no" >&5
2366
echo "${ECHO_T}no" >&6; }
2371
if test -z "$CC"; then
2372
if test -n "$ac_tool_prefix"; then
2373
for ac_prog in cl.exe
2375
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2376
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2377
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2378
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379
if test "${ac_cv_prog_CC+set}" = set; then
2380
echo $ECHO_N "(cached) $ECHO_C" >&6
2382
if test -n "$CC"; then
2383
ac_cv_prog_CC="$CC" # Let the user override the test.
2385
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389
test -z "$as_dir" && as_dir=.
2390
for ac_exec_ext in '' $ac_executable_extensions; do
2391
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2393
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403
if test -n "$CC"; then
2404
{ echo "$as_me:$LINENO: result: $CC" >&5
2405
echo "${ECHO_T}$CC" >&6; }
2407
{ echo "$as_me:$LINENO: result: no" >&5
2408
echo "${ECHO_T}no" >&6; }
2412
test -n "$CC" && break
2415
if test -z "$CC"; then
2417
for ac_prog in cl.exe
2419
# Extract the first word of "$ac_prog", so it can be a program name with args.
2420
set dummy $ac_prog; ac_word=$2
2421
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2422
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2424
echo $ECHO_N "(cached) $ECHO_C" >&6
2426
if test -n "$ac_ct_CC"; then
2427
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433
test -z "$as_dir" && as_dir=.
2434
for ac_exec_ext in '' $ac_executable_extensions; do
2435
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436
ac_cv_prog_ac_ct_CC="$ac_prog"
2437
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2447
if test -n "$ac_ct_CC"; then
2448
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2449
echo "${ECHO_T}$ac_ct_CC" >&6; }
2451
{ echo "$as_me:$LINENO: result: no" >&5
2452
echo "${ECHO_T}no" >&6; }
2456
test -n "$ac_ct_CC" && break
2459
if test "x$ac_ct_CC" = x; then
2462
case $cross_compiling:$ac_tool_warned in
2464
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2465
whose name does not start with the host triplet. If you think this
2466
configuration is useful to you, please write to autoconf@gnu.org." >&5
2467
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2468
whose name does not start with the host triplet. If you think this
2469
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2470
ac_tool_warned=yes ;;
2479
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2480
See \`config.log' for more details." >&5
2481
echo "$as_me: error: no acceptable C compiler found in \$PATH
2482
See \`config.log' for more details." >&2;}
2483
{ (exit 1); exit 1; }; }
2485
# Provide some information about the compiler.
2486
echo "$as_me:$LINENO: checking for C compiler version" >&5
2487
ac_compiler=`set X $ac_compile; echo $2`
2488
{ (ac_try="$ac_compiler --version >&5"
2490
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491
*) ac_try_echo=$ac_try;;
2493
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494
(eval "$ac_compiler --version >&5") 2>&5
2496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497
(exit $ac_status); }
2498
{ (ac_try="$ac_compiler -v >&5"
2500
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501
*) ac_try_echo=$ac_try;;
2503
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504
(eval "$ac_compiler -v >&5") 2>&5
2506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507
(exit $ac_status); }
2508
{ (ac_try="$ac_compiler -V >&5"
2510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511
*) ac_try_echo=$ac_try;;
2513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514
(eval "$ac_compiler -V >&5") 2>&5
2516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517
(exit $ac_status); }
2519
cat >conftest.$ac_ext <<_ACEOF
2522
cat confdefs.h >>conftest.$ac_ext
2523
cat >>conftest.$ac_ext <<_ACEOF
2524
/* end confdefs.h. */
2534
ac_clean_files_save=$ac_clean_files
2535
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2536
# Try to create an executable without -o first, disregard a.out.
2537
# It will help us diagnose broken compilers, and finding out an intuition
2539
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2540
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2541
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2543
# List of possible output files, starting from the most likely.
2544
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2545
# only as a last resort. b.out is created by i960 compilers.
2546
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2548
# The IRIX 6 linker writes into existing files which may not be
2549
# executable, retaining their permissions. Remove them first so a
2550
# subsequent execution test works.
2552
for ac_file in $ac_files
2555
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2556
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2561
if { (ac_try="$ac_link_default"
2563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564
*) ac_try_echo=$ac_try;;
2566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567
(eval "$ac_link_default") 2>&5
2569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570
(exit $ac_status); }; then
2571
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2572
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2573
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2574
# so that the user can short-circuit this test for compilers unknown to
2576
for ac_file in $ac_files ''
2578
test -f "$ac_file" || continue
2580
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2583
# We found the default executable, but exeext='' is most
2587
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2589
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2591
# We set ac_cv_exeext here because the later test for it is not
2592
# safe: cross compilers may not add the suffix if given an `-o'
2593
# argument, so we may need to know it at that point already.
2594
# Even if this section looks crufty: it has the advantage of
2601
test "$ac_cv_exeext" = no && ac_cv_exeext=
2607
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2608
echo "${ECHO_T}$ac_file" >&6; }
2609
if test -z "$ac_file"; then
2610
echo "$as_me: failed program was:" >&5
2611
sed 's/^/| /' conftest.$ac_ext >&5
2613
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2614
See \`config.log' for more details." >&5
2615
echo "$as_me: error: C compiler cannot create executables
2616
See \`config.log' for more details." >&2;}
2617
{ (exit 77); exit 77; }; }
2620
ac_exeext=$ac_cv_exeext
2622
# Check that the compiler produces executables we can run. If not, either
2623
# the compiler is broken, or we cross compile.
2624
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2625
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2626
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2627
# If not cross compiling, check that we can run a simple program.
2628
if test "$cross_compiling" != yes; then
2629
if { ac_try='./$ac_file'
2630
{ (case "(($ac_try" in
2631
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632
*) ac_try_echo=$ac_try;;
2634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635
(eval "$ac_try") 2>&5
2637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638
(exit $ac_status); }; }; then
2641
if test "$cross_compiling" = maybe; then
2644
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2645
If you meant to cross compile, use \`--host'.
2646
See \`config.log' for more details." >&5
2647
echo "$as_me: error: cannot run C compiled programs.
2648
If you meant to cross compile, use \`--host'.
2649
See \`config.log' for more details." >&2;}
2650
{ (exit 1); exit 1; }; }
2654
{ echo "$as_me:$LINENO: result: yes" >&5
2655
echo "${ECHO_T}yes" >&6; }
2657
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2658
ac_clean_files=$ac_clean_files_save
2659
# Check that the compiler produces executables we can run. If not, either
2660
# the compiler is broken, or we cross compile.
2661
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2662
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2663
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2664
echo "${ECHO_T}$cross_compiling" >&6; }
2666
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2667
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2668
if { (ac_try="$ac_link"
2670
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671
*) ac_try_echo=$ac_try;;
2673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674
(eval "$ac_link") 2>&5
2676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677
(exit $ac_status); }; then
2678
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2679
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2680
# work properly (i.e., refer to `conftest.exe'), while it won't with
2682
for ac_file in conftest.exe conftest conftest.*; do
2683
test -f "$ac_file" || continue
2685
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2686
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2692
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2693
See \`config.log' for more details." >&5
2694
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2695
See \`config.log' for more details." >&2;}
2696
{ (exit 1); exit 1; }; }
2699
rm -f conftest$ac_cv_exeext
2700
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2701
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2703
rm -f conftest.$ac_ext
2704
EXEEXT=$ac_cv_exeext
2706
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2707
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2708
if test "${ac_cv_objext+set}" = set; then
2709
echo $ECHO_N "(cached) $ECHO_C" >&6
2711
cat >conftest.$ac_ext <<_ACEOF
2714
cat confdefs.h >>conftest.$ac_ext
2715
cat >>conftest.$ac_ext <<_ACEOF
2716
/* end confdefs.h. */
2726
rm -f conftest.o conftest.obj
2727
if { (ac_try="$ac_compile"
2729
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730
*) ac_try_echo=$ac_try;;
2732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733
(eval "$ac_compile") 2>&5
2735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736
(exit $ac_status); }; then
2737
for ac_file in conftest.o conftest.obj conftest.*; do
2738
test -f "$ac_file" || continue;
2740
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2741
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2746
echo "$as_me: failed program was:" >&5
2747
sed 's/^/| /' conftest.$ac_ext >&5
2749
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2750
See \`config.log' for more details." >&5
2751
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2752
See \`config.log' for more details." >&2;}
2753
{ (exit 1); exit 1; }; }
2756
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2758
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2759
echo "${ECHO_T}$ac_cv_objext" >&6; }
2760
OBJEXT=$ac_cv_objext
2762
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2763
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2764
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2765
echo $ECHO_N "(cached) $ECHO_C" >&6
2767
cat >conftest.$ac_ext <<_ACEOF
2770
cat confdefs.h >>conftest.$ac_ext
2771
cat >>conftest.$ac_ext <<_ACEOF
2772
/* end confdefs.h. */
2785
rm -f conftest.$ac_objext
2786
if { (ac_try="$ac_compile"
2788
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789
*) ac_try_echo=$ac_try;;
2791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792
(eval "$ac_compile") 2>conftest.er1
2794
grep -v '^ *+' conftest.er1 >conftest.err
2796
cat conftest.err >&5
2797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798
(exit $ac_status); } && {
2799
test -z "$ac_c_werror_flag" ||
2800
test ! -s conftest.err
2801
} && test -s conftest.$ac_objext; then
2804
echo "$as_me: failed program was:" >&5
2805
sed 's/^/| /' conftest.$ac_ext >&5
2810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2814
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2815
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2816
GCC=`test $ac_compiler_gnu = yes && echo yes`
2817
ac_test_CFLAGS=${CFLAGS+set}
2818
ac_save_CFLAGS=$CFLAGS
2819
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2820
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2821
if test "${ac_cv_prog_cc_g+set}" = set; then
2822
echo $ECHO_N "(cached) $ECHO_C" >&6
2824
ac_save_c_werror_flag=$ac_c_werror_flag
2825
ac_c_werror_flag=yes
2828
cat >conftest.$ac_ext <<_ACEOF
2831
cat confdefs.h >>conftest.$ac_ext
2832
cat >>conftest.$ac_ext <<_ACEOF
2833
/* end confdefs.h. */
2843
rm -f conftest.$ac_objext
2844
if { (ac_try="$ac_compile"
2846
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847
*) ac_try_echo=$ac_try;;
2849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850
(eval "$ac_compile") 2>conftest.er1
2852
grep -v '^ *+' conftest.er1 >conftest.err
2854
cat conftest.err >&5
2855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856
(exit $ac_status); } && {
2857
test -z "$ac_c_werror_flag" ||
2858
test ! -s conftest.err
2859
} && test -s conftest.$ac_objext; then
2862
echo "$as_me: failed program was:" >&5
2863
sed 's/^/| /' conftest.$ac_ext >&5
2866
cat >conftest.$ac_ext <<_ACEOF
2869
cat confdefs.h >>conftest.$ac_ext
2870
cat >>conftest.$ac_ext <<_ACEOF
2871
/* end confdefs.h. */
2881
rm -f conftest.$ac_objext
2882
if { (ac_try="$ac_compile"
2884
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885
*) ac_try_echo=$ac_try;;
2887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888
(eval "$ac_compile") 2>conftest.er1
2890
grep -v '^ *+' conftest.er1 >conftest.err
2892
cat conftest.err >&5
2893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894
(exit $ac_status); } && {
2895
test -z "$ac_c_werror_flag" ||
2896
test ! -s conftest.err
2897
} && test -s conftest.$ac_objext; then
2900
echo "$as_me: failed program was:" >&5
2901
sed 's/^/| /' conftest.$ac_ext >&5
2903
ac_c_werror_flag=$ac_save_c_werror_flag
2905
cat >conftest.$ac_ext <<_ACEOF
2908
cat confdefs.h >>conftest.$ac_ext
2909
cat >>conftest.$ac_ext <<_ACEOF
2910
/* end confdefs.h. */
2920
rm -f conftest.$ac_objext
2921
if { (ac_try="$ac_compile"
2923
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924
*) ac_try_echo=$ac_try;;
2926
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927
(eval "$ac_compile") 2>conftest.er1
2929
grep -v '^ *+' conftest.er1 >conftest.err
2931
cat conftest.err >&5
2932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933
(exit $ac_status); } && {
2934
test -z "$ac_c_werror_flag" ||
2935
test ! -s conftest.err
2936
} && test -s conftest.$ac_objext; then
2939
echo "$as_me: failed program was:" >&5
2940
sed 's/^/| /' conftest.$ac_ext >&5
2945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952
ac_c_werror_flag=$ac_save_c_werror_flag
2954
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2955
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2956
if test "$ac_test_CFLAGS" = set; then
2957
CFLAGS=$ac_save_CFLAGS
2958
elif test $ac_cv_prog_cc_g = yes; then
2959
if test "$GCC" = yes; then
2965
if test "$GCC" = yes; then
2971
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2972
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2973
if test "${ac_cv_prog_cc_c89+set}" = set; then
2974
echo $ECHO_N "(cached) $ECHO_C" >&6
2976
ac_cv_prog_cc_c89=no
2978
cat >conftest.$ac_ext <<_ACEOF
2981
cat confdefs.h >>conftest.$ac_ext
2982
cat >>conftest.$ac_ext <<_ACEOF
2983
/* end confdefs.h. */
2986
#include <sys/types.h>
2987
#include <sys/stat.h>
2988
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2989
struct buf { int x; };
2990
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2991
static char *e (p, i)
2997
static char *f (char * (*g) (char **, int), char **p, ...)
3002
s = g (p, va_arg (v,int));
3007
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3008
function prototypes and stuff, but not '\xHH' hex character constants.
3009
These don't provoke an error unfortunately, instead are silently treated
3010
as 'x'. The following induces an error, until -std is added to get
3011
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3012
array size at least. It's necessary to write '\x00'==0 to get something
3013
that's true only with -std. */
3014
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3016
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3017
inside strings and character constants. */
3019
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3021
int test (int i, double x);
3022
struct s1 {int (*f) (int a);};
3023
struct s2 {int (*f) (double a);};
3024
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3030
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3035
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3036
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3038
CC="$ac_save_CC $ac_arg"
3039
rm -f conftest.$ac_objext
3040
if { (ac_try="$ac_compile"
3042
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043
*) ac_try_echo=$ac_try;;
3045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046
(eval "$ac_compile") 2>conftest.er1
3048
grep -v '^ *+' conftest.er1 >conftest.err
3050
cat conftest.err >&5
3051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052
(exit $ac_status); } && {
3053
test -z "$ac_c_werror_flag" ||
3054
test ! -s conftest.err
3055
} && test -s conftest.$ac_objext; then
3056
ac_cv_prog_cc_c89=$ac_arg
3058
echo "$as_me: failed program was:" >&5
3059
sed 's/^/| /' conftest.$ac_ext >&5
3064
rm -f core conftest.err conftest.$ac_objext
3065
test "x$ac_cv_prog_cc_c89" != "xno" && break
3067
rm -f conftest.$ac_ext
3072
case "x$ac_cv_prog_cc_c89" in
3074
{ echo "$as_me:$LINENO: result: none needed" >&5
3075
echo "${ECHO_T}none needed" >&6; } ;;
3077
{ echo "$as_me:$LINENO: result: unsupported" >&5
3078
echo "${ECHO_T}unsupported" >&6; } ;;
3080
CC="$CC $ac_cv_prog_cc_c89"
3081
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3082
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3087
ac_cpp='$CPP $CPPFLAGS'
3088
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091
DEPDIR="${am__leading_dot}deps"
3093
ac_config_commands="$ac_config_commands depfiles"
3096
am_make=${MAKE-make}
3097
cat > confinc << 'END'
3102
# If we don't find an include directive, just comment out the code.
3103
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3104
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3108
# First try GNU make style include.
3109
echo "include confinc" > confmf
3110
# We grep out `Entering directory' and `Leaving directory'
3111
# messages which can occur if `w' ends up in MAKEFLAGS.
3112
# In particular we don't look at `^make:' because GNU make might
3113
# be invoked under some other name (usually "gmake"), in which
3114
# case it prints its new name instead of `make'.
3115
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3120
# Now try BSD make style include.
3121
if test "$am__include" = "#"; then
3122
echo '.include "confinc"' > confmf
3123
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3124
am__include=.include
3131
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3132
echo "${ECHO_T}$_am_result" >&6; }
3133
rm -f confinc confmf
3135
# Check whether --enable-dependency-tracking was given.
3136
if test "${enable_dependency_tracking+set}" = set; then
3137
enableval=$enable_dependency_tracking;
3140
if test "x$enable_dependency_tracking" != xno; then
3141
am_depcomp="$ac_aux_dir/depcomp"
3144
if test "x$enable_dependency_tracking" != xno; then
3154
depcc="$CC" am_compiler_list=
3156
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3157
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3158
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3159
echo $ECHO_N "(cached) $ECHO_C" >&6
3161
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3162
# We make a subdir and do the tests there. Otherwise we can end up
3163
# making bogus files that we don't know about and never remove. For
3164
# instance it was reported that on HP-UX the gcc test will end up
3165
# making a dummy file named `D' -- because `-MD' means `put the output
3168
# Copy depcomp to subdir because otherwise we won't find it if we're
3169
# using a relative directory.
3170
cp "$am_depcomp" conftest.dir
3172
# We will build objects and dependencies in a subdirectory because
3173
# it helps to detect inapplicable dependency modes. For instance
3174
# both Tru64's cc and ICC support -MD to output dependencies as a
3175
# side effect of compilation, but ICC will put the dependencies in
3176
# the current directory while Tru64 will put them in the object
3180
am_cv_CC_dependencies_compiler_type=none
3181
if test "$am_compiler_list" = ""; then
3182
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3184
for depmode in $am_compiler_list; do
3185
# Setup a source with many dependencies, because some compilers
3186
# like to wrap large dependency lists on column 80 (with \), and
3187
# we should not choose a depcomp mode which is confused by this.
3189
# We need to recreate these files for each test, as the compiler may
3190
# overwrite some of them when testing with obscure command lines.
3191
# This happens at least with the AIX C compiler.
3193
for i in 1 2 3 4 5 6; do
3194
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3195
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3196
# Solaris 8's {/usr,}/bin/sh.
3197
touch sub/conftst$i.h
3199
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3203
# after this tag, mechanisms are not by side-effect, so they'll
3204
# only be used when explicitly requested
3205
if test "x$enable_dependency_tracking" = xyes; then
3213
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3214
# mode. It turns out that the SunPro C++ compiler does not properly
3215
# handle `-M -o', and we need to detect this.
3216
if depmode=$depmode \
3217
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3218
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3219
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3220
>/dev/null 2>conftest.err &&
3221
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3222
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3223
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3224
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3225
# icc doesn't choke on unknown options, it will just issue warnings
3226
# or remarks (even with -Werror). So we grep stderr for any message
3227
# that says an option was ignored or not supported.
3228
# When given -MP, icc 7.0 and 7.1 complain thusly:
3229
# icc: Command line warning: ignoring option '-M'; no argument required
3230
# The diagnosis changed in icc 8.0:
3231
# icc: Command line remark: option '-MP' not supported
3232
if (grep 'ignoring option' conftest.err ||
3233
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3234
am_cv_CC_dependencies_compiler_type=$depmode
3243
am_cv_CC_dependencies_compiler_type=none
3247
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3248
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3249
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3252
test "x$enable_dependency_tracking" != xno \
3253
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3255
am__fastdepCC_FALSE='#'
3257
am__fastdepCC_TRUE='#'
3258
am__fastdepCC_FALSE=
3262
if test -n "$ac_tool_prefix"; then
3263
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3264
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3265
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3266
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3267
if test "${ac_cv_prog_RANLIB+set}" = set; then
3268
echo $ECHO_N "(cached) $ECHO_C" >&6
3270
if test -n "$RANLIB"; then
3271
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3273
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277
test -z "$as_dir" && as_dir=.
3278
for ac_exec_ext in '' $ac_executable_extensions; do
3279
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3281
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290
RANLIB=$ac_cv_prog_RANLIB
3291
if test -n "$RANLIB"; then
3292
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
3293
echo "${ECHO_T}$RANLIB" >&6; }
3295
{ echo "$as_me:$LINENO: result: no" >&5
3296
echo "${ECHO_T}no" >&6; }
3301
if test -z "$ac_cv_prog_RANLIB"; then
3302
ac_ct_RANLIB=$RANLIB
3303
# Extract the first word of "ranlib", so it can be a program name with args.
3304
set dummy ranlib; ac_word=$2
3305
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3307
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3308
echo $ECHO_N "(cached) $ECHO_C" >&6
3310
if test -n "$ac_ct_RANLIB"; then
3311
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317
test -z "$as_dir" && as_dir=.
3318
for ac_exec_ext in '' $ac_executable_extensions; do
3319
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320
ac_cv_prog_ac_ct_RANLIB="ranlib"
3321
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3331
if test -n "$ac_ct_RANLIB"; then
3332
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3333
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3335
{ echo "$as_me:$LINENO: result: no" >&5
3336
echo "${ECHO_T}no" >&6; }
3339
if test "x$ac_ct_RANLIB" = x; then
3342
case $cross_compiling:$ac_tool_warned in
3344
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3345
whose name does not start with the host triplet. If you think this
3346
configuration is useful to you, please write to autoconf@gnu.org." >&5
3347
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3348
whose name does not start with the host triplet. If you think this
3349
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3350
ac_tool_warned=yes ;;
3352
RANLIB=$ac_ct_RANLIB
3355
RANLIB="$ac_cv_prog_RANLIB"
3360
{ echo "$as_me:$LINENO: checking for gethostbyaddr_r" >&5
3361
echo $ECHO_N "checking for gethostbyaddr_r... $ECHO_C" >&6; }
3362
if test "${ac_cv_func_gethostbyaddr_r+set}" = set; then
3363
echo $ECHO_N "(cached) $ECHO_C" >&6
3365
cat >conftest.$ac_ext <<_ACEOF
3368
cat confdefs.h >>conftest.$ac_ext
3369
cat >>conftest.$ac_ext <<_ACEOF
3370
/* end confdefs.h. */
3371
/* Define gethostbyaddr_r to an innocuous variant, in case <limits.h> declares gethostbyaddr_r.
3372
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3373
#define gethostbyaddr_r innocuous_gethostbyaddr_r
3375
/* System header to define __stub macros and hopefully few prototypes,
3376
which can conflict with char gethostbyaddr_r (); below.
3377
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3378
<limits.h> exists even on freestanding compilers. */
3381
# include <limits.h>
3383
# include <assert.h>
3386
#undef gethostbyaddr_r
3388
/* Override any GCC internal prototype to avoid an error.
3389
Use char because int might match the return type of a GCC
3390
builtin and then its argument prototype would still apply. */
3394
char gethostbyaddr_r ();
3395
/* The GNU C library defines this for functions which it implements
3396
to always fail with ENOSYS. Some functions are actually named
3397
something starting with __ and the normal name is an alias. */
3398
#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
3405
return gethostbyaddr_r ();
3410
rm -f conftest.$ac_objext conftest$ac_exeext
3411
if { (ac_try="$ac_link"
3413
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414
*) ac_try_echo=$ac_try;;
3416
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417
(eval "$ac_link") 2>conftest.er1
3419
grep -v '^ *+' conftest.er1 >conftest.err
3421
cat conftest.err >&5
3422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423
(exit $ac_status); } && {
3424
test -z "$ac_c_werror_flag" ||
3425
test ! -s conftest.err
3426
} && test -s conftest$ac_exeext &&
3427
$as_test_x conftest$ac_exeext; then
3428
ac_cv_func_gethostbyaddr_r=yes
3430
echo "$as_me: failed program was:" >&5
3431
sed 's/^/| /' conftest.$ac_ext >&5
3433
ac_cv_func_gethostbyaddr_r=no
3436
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3437
conftest$ac_exeext conftest.$ac_ext
3439
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_r" >&5
3440
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_r" >&6; }
3441
if test $ac_cv_func_gethostbyaddr_r = yes; then
3442
cat >>confdefs.h <<\_ACEOF
3443
#define HAS_GETHOSTBYADDR_R 1
3448
{ echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
3449
echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
3450
if test "${ac_cv_func_gethostbyname_r+set}" = set; then
3451
echo $ECHO_N "(cached) $ECHO_C" >&6
3453
cat >conftest.$ac_ext <<_ACEOF
3456
cat confdefs.h >>conftest.$ac_ext
3457
cat >>conftest.$ac_ext <<_ACEOF
3458
/* end confdefs.h. */
3459
/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
3460
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3461
#define gethostbyname_r innocuous_gethostbyname_r
3463
/* System header to define __stub macros and hopefully few prototypes,
3464
which can conflict with char gethostbyname_r (); below.
3465
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3466
<limits.h> exists even on freestanding compilers. */
3469
# include <limits.h>
3471
# include <assert.h>
3474
#undef gethostbyname_r
3476
/* Override any GCC internal prototype to avoid an error.
3477
Use char because int might match the return type of a GCC
3478
builtin and then its argument prototype would still apply. */
3482
char gethostbyname_r ();
3483
/* The GNU C library defines this for functions which it implements
3484
to always fail with ENOSYS. Some functions are actually named
3485
something starting with __ and the normal name is an alias. */
3486
#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
3493
return gethostbyname_r ();
3498
rm -f conftest.$ac_objext conftest$ac_exeext
3499
if { (ac_try="$ac_link"
3501
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502
*) ac_try_echo=$ac_try;;
3504
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505
(eval "$ac_link") 2>conftest.er1
3507
grep -v '^ *+' conftest.er1 >conftest.err
3509
cat conftest.err >&5
3510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511
(exit $ac_status); } && {
3512
test -z "$ac_c_werror_flag" ||
3513
test ! -s conftest.err
3514
} && test -s conftest$ac_exeext &&
3515
$as_test_x conftest$ac_exeext; then
3516
ac_cv_func_gethostbyname_r=yes
3518
echo "$as_me: failed program was:" >&5
3519
sed 's/^/| /' conftest.$ac_ext >&5
3521
ac_cv_func_gethostbyname_r=no
3524
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3525
conftest$ac_exeext conftest.$ac_ext
3527
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
3528
echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
3529
if test $ac_cv_func_gethostbyname_r = yes; then
3530
cat >>confdefs.h <<\_ACEOF
3531
#define HAS_GETHOSTBYNAME_R 1
3536
{ echo "$as_me:$LINENO: checking for poll" >&5
3537
echo $ECHO_N "checking for poll... $ECHO_C" >&6; }
3538
if test "${ac_cv_func_poll+set}" = set; then
3539
echo $ECHO_N "(cached) $ECHO_C" >&6
3541
cat >conftest.$ac_ext <<_ACEOF
3544
cat confdefs.h >>conftest.$ac_ext
3545
cat >>conftest.$ac_ext <<_ACEOF
3546
/* end confdefs.h. */
3547
/* Define poll to an innocuous variant, in case <limits.h> declares poll.
3548
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3549
#define poll innocuous_poll
3551
/* System header to define __stub macros and hopefully few prototypes,
3552
which can conflict with char poll (); below.
3553
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3554
<limits.h> exists even on freestanding compilers. */
3557
# include <limits.h>
3559
# include <assert.h>
3564
/* Override any GCC internal prototype to avoid an error.
3565
Use char because int might match the return type of a GCC
3566
builtin and then its argument prototype would still apply. */
3571
/* The GNU C library defines this for functions which it implements
3572
to always fail with ENOSYS. Some functions are actually named
3573
something starting with __ and the normal name is an alias. */
3574
#if defined __stub_poll || defined __stub___poll
3586
rm -f conftest.$ac_objext conftest$ac_exeext
3587
if { (ac_try="$ac_link"
3589
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590
*) ac_try_echo=$ac_try;;
3592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593
(eval "$ac_link") 2>conftest.er1
3595
grep -v '^ *+' conftest.er1 >conftest.err
3597
cat conftest.err >&5
3598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599
(exit $ac_status); } && {
3600
test -z "$ac_c_werror_flag" ||
3601
test ! -s conftest.err
3602
} && test -s conftest$ac_exeext &&
3603
$as_test_x conftest$ac_exeext; then
3606
echo "$as_me: failed program was:" >&5
3607
sed 's/^/| /' conftest.$ac_ext >&5
3612
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3613
conftest$ac_exeext conftest.$ac_ext
3615
{ echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
3616
echo "${ECHO_T}$ac_cv_func_poll" >&6; }
3617
if test $ac_cv_func_poll = yes; then
3618
cat >>confdefs.h <<\_ACEOF
3624
{ echo "$as_me:$LINENO: checking for fcntl" >&5
3625
echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
3626
if test "${ac_cv_func_fcntl+set}" = set; then
3627
echo $ECHO_N "(cached) $ECHO_C" >&6
3629
cat >conftest.$ac_ext <<_ACEOF
3632
cat confdefs.h >>conftest.$ac_ext
3633
cat >>conftest.$ac_ext <<_ACEOF
3634
/* end confdefs.h. */
3635
/* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
3636
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3637
#define fcntl innocuous_fcntl
3639
/* System header to define __stub macros and hopefully few prototypes,
3640
which can conflict with char fcntl (); below.
3641
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3642
<limits.h> exists even on freestanding compilers. */
3645
# include <limits.h>
3647
# include <assert.h>
3652
/* Override any GCC internal prototype to avoid an error.
3653
Use char because int might match the return type of a GCC
3654
builtin and then its argument prototype would still apply. */
3659
/* The GNU C library defines this for functions which it implements
3660
to always fail with ENOSYS. Some functions are actually named
3661
something starting with __ and the normal name is an alias. */
3662
#if defined __stub_fcntl || defined __stub___fcntl
3674
rm -f conftest.$ac_objext conftest$ac_exeext
3675
if { (ac_try="$ac_link"
3677
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678
*) ac_try_echo=$ac_try;;
3680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681
(eval "$ac_link") 2>conftest.er1
3683
grep -v '^ *+' conftest.er1 >conftest.err
3685
cat conftest.err >&5
3686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687
(exit $ac_status); } && {
3688
test -z "$ac_c_werror_flag" ||
3689
test ! -s conftest.err
3690
} && test -s conftest$ac_exeext &&
3691
$as_test_x conftest$ac_exeext; then
3692
ac_cv_func_fcntl=yes
3694
echo "$as_me: failed program was:" >&5
3695
sed 's/^/| /' conftest.$ac_ext >&5
3700
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3701
conftest$ac_exeext conftest.$ac_ext
3703
{ echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5
3704
echo "${ECHO_T}$ac_cv_func_fcntl" >&6; }
3705
if test $ac_cv_func_fcntl = yes; then
3706
cat >>confdefs.h <<\_ACEOF
3712
{ echo "$as_me:$LINENO: checking for inet_pton" >&5
3713
echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
3714
if test "${ac_cv_func_inet_pton+set}" = set; then
3715
echo $ECHO_N "(cached) $ECHO_C" >&6
3717
cat >conftest.$ac_ext <<_ACEOF
3720
cat confdefs.h >>conftest.$ac_ext
3721
cat >>conftest.$ac_ext <<_ACEOF
3722
/* end confdefs.h. */
3723
/* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
3724
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3725
#define inet_pton innocuous_inet_pton
3727
/* System header to define __stub macros and hopefully few prototypes,
3728
which can conflict with char inet_pton (); below.
3729
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730
<limits.h> exists even on freestanding compilers. */
3733
# include <limits.h>
3735
# include <assert.h>
3740
/* Override any GCC internal prototype to avoid an error.
3741
Use char because int might match the return type of a GCC
3742
builtin and then its argument prototype would still apply. */
3747
/* The GNU C library defines this for functions which it implements
3748
to always fail with ENOSYS. Some functions are actually named
3749
something starting with __ and the normal name is an alias. */
3750
#if defined __stub_inet_pton || defined __stub___inet_pton
3757
return inet_pton ();
3762
rm -f conftest.$ac_objext conftest$ac_exeext
3763
if { (ac_try="$ac_link"
3765
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766
*) ac_try_echo=$ac_try;;
3768
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769
(eval "$ac_link") 2>conftest.er1
3771
grep -v '^ *+' conftest.er1 >conftest.err
3773
cat conftest.err >&5
3774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775
(exit $ac_status); } && {
3776
test -z "$ac_c_werror_flag" ||
3777
test ! -s conftest.err
3778
} && test -s conftest$ac_exeext &&
3779
$as_test_x conftest$ac_exeext; then
3780
ac_cv_func_inet_pton=yes
3782
echo "$as_me: failed program was:" >&5
3783
sed 's/^/| /' conftest.$ac_ext >&5
3785
ac_cv_func_inet_pton=no
3788
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3789
conftest$ac_exeext conftest.$ac_ext
3791
{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
3792
echo "${ECHO_T}$ac_cv_func_inet_pton" >&6; }
3793
if test $ac_cv_func_inet_pton = yes; then
3794
cat >>confdefs.h <<\_ACEOF
3795
#define HAS_INET_PTON 1
3800
{ echo "$as_me:$LINENO: checking for inet_ntop" >&5
3801
echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
3802
if test "${ac_cv_func_inet_ntop+set}" = set; then
3803
echo $ECHO_N "(cached) $ECHO_C" >&6
3805
cat >conftest.$ac_ext <<_ACEOF
3808
cat confdefs.h >>conftest.$ac_ext
3809
cat >>conftest.$ac_ext <<_ACEOF
3810
/* end confdefs.h. */
3811
/* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
3812
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3813
#define inet_ntop innocuous_inet_ntop
3815
/* System header to define __stub macros and hopefully few prototypes,
3816
which can conflict with char inet_ntop (); below.
3817
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818
<limits.h> exists even on freestanding compilers. */
3821
# include <limits.h>
3823
# include <assert.h>
3828
/* Override any GCC internal prototype to avoid an error.
3829
Use char because int might match the return type of a GCC
3830
builtin and then its argument prototype would still apply. */
3835
/* The GNU C library defines this for functions which it implements
3836
to always fail with ENOSYS. Some functions are actually named
3837
something starting with __ and the normal name is an alias. */
3838
#if defined __stub_inet_ntop || defined __stub___inet_ntop
3845
return inet_ntop ();
3850
rm -f conftest.$ac_objext conftest$ac_exeext
3851
if { (ac_try="$ac_link"
3853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854
*) ac_try_echo=$ac_try;;
3856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857
(eval "$ac_link") 2>conftest.er1
3859
grep -v '^ *+' conftest.er1 >conftest.err
3861
cat conftest.err >&5
3862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863
(exit $ac_status); } && {
3864
test -z "$ac_c_werror_flag" ||
3865
test ! -s conftest.err
3866
} && test -s conftest$ac_exeext &&
3867
$as_test_x conftest$ac_exeext; then
3868
ac_cv_func_inet_ntop=yes
3870
echo "$as_me: failed program was:" >&5
3871
sed 's/^/| /' conftest.$ac_ext >&5
3873
ac_cv_func_inet_ntop=no
3876
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3877
conftest$ac_exeext conftest.$ac_ext
3879
{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
3880
echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
3881
if test $ac_cv_func_inet_ntop = yes; then
3882
cat >>confdefs.h <<\_ACEOF
3883
#define HAS_INET_NTOP 1
3889
{ echo "$as_me:$LINENO: checking for struct msghdr.msg_flags" >&5
3890
echo $ECHO_N "checking for struct msghdr.msg_flags... $ECHO_C" >&6; }
3891
if test "${ac_cv_member_struct_msghdr_msg_flags+set}" = set; then
3892
echo $ECHO_N "(cached) $ECHO_C" >&6
3894
cat >conftest.$ac_ext <<_ACEOF
3897
cat confdefs.h >>conftest.$ac_ext
3898
cat >>conftest.$ac_ext <<_ACEOF
3899
/* end confdefs.h. */
3900
#include <sys/socket.h>
3905
static struct msghdr ac_aggr;
3906
if (ac_aggr.msg_flags)
3912
rm -f conftest.$ac_objext
3913
if { (ac_try="$ac_compile"
3915
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916
*) ac_try_echo=$ac_try;;
3918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919
(eval "$ac_compile") 2>conftest.er1
3921
grep -v '^ *+' conftest.er1 >conftest.err
3923
cat conftest.err >&5
3924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925
(exit $ac_status); } && {
3926
test -z "$ac_c_werror_flag" ||
3927
test ! -s conftest.err
3928
} && test -s conftest.$ac_objext; then
3929
ac_cv_member_struct_msghdr_msg_flags=yes
3931
echo "$as_me: failed program was:" >&5
3932
sed 's/^/| /' conftest.$ac_ext >&5
3934
cat >conftest.$ac_ext <<_ACEOF
3937
cat confdefs.h >>conftest.$ac_ext
3938
cat >>conftest.$ac_ext <<_ACEOF
3939
/* end confdefs.h. */
3940
#include <sys/socket.h>
3945
static struct msghdr ac_aggr;
3946
if (sizeof ac_aggr.msg_flags)
3952
rm -f conftest.$ac_objext
3953
if { (ac_try="$ac_compile"
3955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956
*) ac_try_echo=$ac_try;;
3958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959
(eval "$ac_compile") 2>conftest.er1
3961
grep -v '^ *+' conftest.er1 >conftest.err
3963
cat conftest.err >&5
3964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965
(exit $ac_status); } && {
3966
test -z "$ac_c_werror_flag" ||
3967
test ! -s conftest.err
3968
} && test -s conftest.$ac_objext; then
3969
ac_cv_member_struct_msghdr_msg_flags=yes
3971
echo "$as_me: failed program was:" >&5
3972
sed 's/^/| /' conftest.$ac_ext >&5
3974
ac_cv_member_struct_msghdr_msg_flags=no
3977
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_flags" >&5
3983
echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_flags" >&6; }
3984
if test $ac_cv_member_struct_msghdr_msg_flags = yes; then
3985
cat >>confdefs.h <<\_ACEOF
3986
#define HAS_MSGHDR_FLAGS 1
3992
{ echo "$as_me:$LINENO: checking for socklen_t" >&5
3993
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
3994
if test "${ac_cv_type_socklen_t+set}" = set; then
3995
echo $ECHO_N "(cached) $ECHO_C" >&6
3997
cat >conftest.$ac_ext <<_ACEOF
4000
cat confdefs.h >>conftest.$ac_ext
4001
cat >>conftest.$ac_ext <<_ACEOF
4002
/* end confdefs.h. */
4003
#include <sys/types.h>
4004
#include <sys/socket.h>
4007
typedef socklen_t ac__type_new_;
4011
if ((ac__type_new_ *) 0)
4013
if (sizeof (ac__type_new_))
4019
rm -f conftest.$ac_objext
4020
if { (ac_try="$ac_compile"
4022
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023
*) ac_try_echo=$ac_try;;
4025
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026
(eval "$ac_compile") 2>conftest.er1
4028
grep -v '^ *+' conftest.er1 >conftest.err
4030
cat conftest.err >&5
4031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032
(exit $ac_status); } && {
4033
test -z "$ac_c_werror_flag" ||
4034
test ! -s conftest.err
4035
} && test -s conftest.$ac_objext; then
4036
ac_cv_type_socklen_t=yes
4038
echo "$as_me: failed program was:" >&5
4039
sed 's/^/| /' conftest.$ac_ext >&5
4041
ac_cv_type_socklen_t=no
4044
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4047
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
4048
if test $ac_cv_type_socklen_t = yes; then
4049
cat >>confdefs.h <<\_ACEOF
4050
#define HAS_SOCKLEN_T 1
4057
ac_cpp='$CPP $CPPFLAGS'
4058
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4062
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4063
# On Suns, sometimes $CPP names a directory.
4064
if test -n "$CPP" && test -d "$CPP"; then
4067
if test -z "$CPP"; then
4068
if test "${ac_cv_prog_CPP+set}" = set; then
4069
echo $ECHO_N "(cached) $ECHO_C" >&6
4071
# Double quotes because CPP needs to be expanded
4072
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4075
for ac_c_preproc_warn_flag in '' yes
4077
# Use a header file that comes with gcc, so configuring glibc
4078
# with a fresh cross-compiler works.
4079
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4080
# <limits.h> exists even on freestanding compilers.
4081
# On the NeXT, cc -E runs the code through the compiler's parser,
4082
# not just through cpp. "Syntax error" is here to catch this case.
4083
cat >conftest.$ac_ext <<_ACEOF
4086
cat confdefs.h >>conftest.$ac_ext
4087
cat >>conftest.$ac_ext <<_ACEOF
4088
/* end confdefs.h. */
4090
# include <limits.h>
4092
# include <assert.h>
4096
if { (ac_try="$ac_cpp conftest.$ac_ext"
4098
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099
*) ac_try_echo=$ac_try;;
4101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4104
grep -v '^ *+' conftest.er1 >conftest.err
4106
cat conftest.err >&5
4107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108
(exit $ac_status); } >/dev/null && {
4109
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4110
test ! -s conftest.err
4114
echo "$as_me: failed program was:" >&5
4115
sed 's/^/| /' conftest.$ac_ext >&5
4117
# Broken: fails on valid input.
4121
rm -f conftest.err conftest.$ac_ext
4123
# OK, works on sane cases. Now check whether nonexistent headers
4124
# can be detected and how.
4125
cat >conftest.$ac_ext <<_ACEOF
4128
cat confdefs.h >>conftest.$ac_ext
4129
cat >>conftest.$ac_ext <<_ACEOF
4130
/* end confdefs.h. */
4131
#include <ac_nonexistent.h>
4133
if { (ac_try="$ac_cpp conftest.$ac_ext"
4135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136
*) ac_try_echo=$ac_try;;
4138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4141
grep -v '^ *+' conftest.er1 >conftest.err
4143
cat conftest.err >&5
4144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145
(exit $ac_status); } >/dev/null && {
4146
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4147
test ! -s conftest.err
4149
# Broken: success on invalid input.
4152
echo "$as_me: failed program was:" >&5
4153
sed 's/^/| /' conftest.$ac_ext >&5
4155
# Passes both tests.
4160
rm -f conftest.err conftest.$ac_ext
4163
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4164
rm -f conftest.err conftest.$ac_ext
4165
if $ac_preproc_ok; then
4177
{ echo "$as_me:$LINENO: result: $CPP" >&5
4178
echo "${ECHO_T}$CPP" >&6; }
4180
for ac_c_preproc_warn_flag in '' yes
4182
# Use a header file that comes with gcc, so configuring glibc
4183
# with a fresh cross-compiler works.
4184
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4185
# <limits.h> exists even on freestanding compilers.
4186
# On the NeXT, cc -E runs the code through the compiler's parser,
4187
# not just through cpp. "Syntax error" is here to catch this case.
4188
cat >conftest.$ac_ext <<_ACEOF
4191
cat confdefs.h >>conftest.$ac_ext
4192
cat >>conftest.$ac_ext <<_ACEOF
4193
/* end confdefs.h. */
4195
# include <limits.h>
4197
# include <assert.h>
4201
if { (ac_try="$ac_cpp conftest.$ac_ext"
4203
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204
*) ac_try_echo=$ac_try;;
4206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4209
grep -v '^ *+' conftest.er1 >conftest.err
4211
cat conftest.err >&5
4212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213
(exit $ac_status); } >/dev/null && {
4214
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4215
test ! -s conftest.err
4219
echo "$as_me: failed program was:" >&5
4220
sed 's/^/| /' conftest.$ac_ext >&5
4222
# Broken: fails on valid input.
4226
rm -f conftest.err conftest.$ac_ext
4228
# OK, works on sane cases. Now check whether nonexistent headers
4229
# can be detected and how.
4230
cat >conftest.$ac_ext <<_ACEOF
4233
cat confdefs.h >>conftest.$ac_ext
4234
cat >>conftest.$ac_ext <<_ACEOF
4235
/* end confdefs.h. */
4236
#include <ac_nonexistent.h>
4238
if { (ac_try="$ac_cpp conftest.$ac_ext"
4240
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241
*) ac_try_echo=$ac_try;;
4243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4246
grep -v '^ *+' conftest.er1 >conftest.err
4248
cat conftest.err >&5
4249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250
(exit $ac_status); } >/dev/null && {
4251
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4252
test ! -s conftest.err
4254
# Broken: success on invalid input.
4257
echo "$as_me: failed program was:" >&5
4258
sed 's/^/| /' conftest.$ac_ext >&5
4260
# Passes both tests.
4265
rm -f conftest.err conftest.$ac_ext
4268
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4269
rm -f conftest.err conftest.$ac_ext
4270
if $ac_preproc_ok; then
4273
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4274
See \`config.log' for more details." >&5
4275
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4276
See \`config.log' for more details." >&2;}
4277
{ (exit 1); exit 1; }; }
4281
ac_cpp='$CPP $CPPFLAGS'
4282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4288
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4289
if test "${ac_cv_path_GREP+set}" = set; then
4290
echo $ECHO_N "(cached) $ECHO_C" >&6
4292
# Extract the first word of "grep ggrep" to use in msg output
4293
if test -z "$GREP"; then
4294
set dummy grep ggrep; ac_prog_name=$2
4295
if test "${ac_cv_path_GREP+set}" = set; then
4296
echo $ECHO_N "(cached) $ECHO_C" >&6
4298
ac_path_GREP_found=false
4299
# Loop through the user's path and test for each of PROGNAME-LIST
4300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4304
test -z "$as_dir" && as_dir=.
4305
for ac_prog in grep ggrep; do
4306
for ac_exec_ext in '' $ac_executable_extensions; do
4307
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4308
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4309
# Check for GNU ac_path_GREP and select it if it is found.
4310
# Check for GNU $ac_path_GREP
4311
case `"$ac_path_GREP" --version 2>&1` in
4313
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4316
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4319
cat "conftest.in" "conftest.in" >"conftest.tmp"
4320
mv "conftest.tmp" "conftest.in"
4321
cp "conftest.in" "conftest.nl"
4322
echo 'GREP' >> "conftest.nl"
4323
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4324
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4325
ac_count=`expr $ac_count + 1`
4326
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4327
# Best one so far, save it but keep looking for a better one
4328
ac_cv_path_GREP="$ac_path_GREP"
4329
ac_path_GREP_max=$ac_count
4331
# 10*(2^10) chars as input seems more than enough
4332
test $ac_count -gt 10 && break
4334
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338
$ac_path_GREP_found && break 3
4348
GREP="$ac_cv_path_GREP"
4349
if test -z "$GREP"; then
4350
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4351
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4352
{ (exit 1); exit 1; }; }
4356
ac_cv_path_GREP=$GREP
4361
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4362
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4363
GREP="$ac_cv_path_GREP"
4366
{ echo "$as_me:$LINENO: checking for egrep" >&5
4367
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4368
if test "${ac_cv_path_EGREP+set}" = set; then
4369
echo $ECHO_N "(cached) $ECHO_C" >&6
4371
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4372
then ac_cv_path_EGREP="$GREP -E"
4374
# Extract the first word of "egrep" to use in msg output
4375
if test -z "$EGREP"; then
4376
set dummy egrep; ac_prog_name=$2
4377
if test "${ac_cv_path_EGREP+set}" = set; then
4378
echo $ECHO_N "(cached) $ECHO_C" >&6
4380
ac_path_EGREP_found=false
4381
# Loop through the user's path and test for each of PROGNAME-LIST
4382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386
test -z "$as_dir" && as_dir=.
4387
for ac_prog in egrep; do
4388
for ac_exec_ext in '' $ac_executable_extensions; do
4389
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4390
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4391
# Check for GNU ac_path_EGREP and select it if it is found.
4392
# Check for GNU $ac_path_EGREP
4393
case `"$ac_path_EGREP" --version 2>&1` in
4395
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4398
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4401
cat "conftest.in" "conftest.in" >"conftest.tmp"
4402
mv "conftest.tmp" "conftest.in"
4403
cp "conftest.in" "conftest.nl"
4404
echo 'EGREP' >> "conftest.nl"
4405
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4406
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4407
ac_count=`expr $ac_count + 1`
4408
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4409
# Best one so far, save it but keep looking for a better one
4410
ac_cv_path_EGREP="$ac_path_EGREP"
4411
ac_path_EGREP_max=$ac_count
4413
# 10*(2^10) chars as input seems more than enough
4414
test $ac_count -gt 10 && break
4416
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4420
$ac_path_EGREP_found && break 3
4430
EGREP="$ac_cv_path_EGREP"
4431
if test -z "$EGREP"; then
4432
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4433
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4434
{ (exit 1); exit 1; }; }
4438
ac_cv_path_EGREP=$EGREP
4444
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4445
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4446
EGREP="$ac_cv_path_EGREP"
4449
cat >conftest.$ac_ext <<_ACEOF
4452
cat confdefs.h >>conftest.$ac_ext
4453
cat >>conftest.$ac_ext <<_ACEOF
4454
/* end confdefs.h. */
4455
#include </usr/include/sys/socket.h>
4458
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4459
$EGREP "MSG_MAXIOVLEN" >/dev/null 2>&1; then
4460
cat >>confdefs.h <<\_ACEOF
4461
#define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN
4467
cat >conftest.$ac_ext <<_ACEOF
4470
cat confdefs.h >>conftest.$ac_ext
4471
cat >>conftest.$ac_ext <<_ACEOF
4472
/* end confdefs.h. */
4476
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4477
$EGREP "MSG_MAXIOVLEN" >/dev/null 2>&1; then
4478
cat >>confdefs.h <<\_ACEOF
4479
#define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN
4486
{ echo "$as_me:$LINENO: checking whether to use CRC32" >&5
4487
echo $ECHO_N "checking whether to use CRC32... $ECHO_C" >&6; }
4488
# Check whether --enable-crc32 was given.
4489
if test "${enable_crc32+set}" = set; then
4490
enableval=$enable_crc32; if test "$enableval" = yes; then
4491
{ echo "$as_me:$LINENO: result: yes" >&5
4492
echo "${ECHO_T}yes" >&6; }
4493
cat >>confdefs.h <<\_ACEOF
4498
{ echo "$as_me:$LINENO: result: no" >&5
4499
echo "${ECHO_T}no" >&6; }
4502
{ echo "$as_me:$LINENO: result: no" >&5
4503
echo "${ECHO_T}no" >&6; }
4507
ac_config_files="$ac_config_files Makefile include/Makefile include/enet/Makefile"
4509
cat >confcache <<\_ACEOF
4510
# This file is a shell script that caches the results of configure
4511
# tests run on this system so they can be shared between configure
4512
# scripts and configure runs, see configure's option --config-cache.
4513
# It is not useful on other systems. If it contains results you don't
4514
# want to keep, you may remove or edit it.
4516
# config.status only pays attention to the cache file if you give it
4517
# the --recheck option to rerun configure.
4519
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4520
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4525
# The following way of writing the cache mishandles newlines in values,
4526
# but we know of no workaround that is simple, portable, and efficient.
4527
# So, we kill variables containing newlines.
4528
# Ultrix sh set writes to stderr and can't be redirected directly,
4529
# and sets the high bit in the cache file unless we assign to the vars.
4531
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4532
eval ac_val=\$$ac_var
4536
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4537
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4540
_ | IFS | as_nl) ;; #(
4541
*) $as_unset $ac_var ;;
4547
case $as_nl`(ac_space=' '; set) 2>&1` in #(
4548
*${as_nl}ac_space=\ *)
4549
# `set' does not quote correctly, so add quotes (double-quote
4550
# substitution turns \\\\ into \\, and sed turns \\ into \).
4553
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4556
# `set' quotes correctly as required by POSIX, so do not add quotes.
4557
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4566
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4568
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4570
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4571
if test -w "$cache_file"; then
4572
test "x$cache_file" != "x/dev/null" &&
4573
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
4574
echo "$as_me: updating cache $cache_file" >&6;}
4575
cat confcache >$cache_file
4577
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4578
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4583
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4584
# Let make expand exec_prefix.
4585
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4587
# Transform confdefs.h into DEFS.
4588
# Protect against shell expansion while executing Makefile rules.
4589
# Protect against Makefile macro expansion.
4591
# If the first sed substitution is executed (which looks for macros that
4592
# take arguments), then branch to the quote section. Otherwise,
4593
# look for a macro that doesn't take arguments.
4597
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4599
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4603
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4616
DEFS=`sed -n "$ac_script" confdefs.h`
4621
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4622
# 1. Remove the extension, and $U if already installed.
4623
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4624
ac_i=`echo "$ac_i" | sed "$ac_script"`
4625
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4626
# will be set to the directory where LIBOBJS objects are built.
4627
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4628
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4632
LTLIBOBJS=$ac_ltlibobjs
4635
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4636
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4637
Usually this means the macro was only invoked conditionally." >&5
4638
echo "$as_me: error: conditional \"AMDEP\" was never defined.
4639
Usually this means the macro was only invoked conditionally." >&2;}
4640
{ (exit 1); exit 1; }; }
4642
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4643
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4644
Usually this means the macro was only invoked conditionally." >&5
4645
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4646
Usually this means the macro was only invoked conditionally." >&2;}
4647
{ (exit 1); exit 1; }; }
4650
: ${CONFIG_STATUS=./config.status}
4651
ac_clean_files_save=$ac_clean_files
4652
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4653
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4654
echo "$as_me: creating $CONFIG_STATUS" >&6;}
4655
cat >$CONFIG_STATUS <<_ACEOF
4657
# Generated by $as_me.
4658
# Run this file to recreate the current configuration.
4659
# Compiler output produced by configure, useful for debugging
4660
# configure, is in config.log if it exists.
4665
SHELL=\${CONFIG_SHELL-$SHELL}
4668
cat >>$CONFIG_STATUS <<\_ACEOF
4669
## --------------------- ##
4670
## M4sh Initialization. ##
4671
## --------------------- ##
4673
# Be more Bourne compatible
4674
DUALCASE=1; export DUALCASE # for MKS sh
4675
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4678
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4679
# is contrary to our usage. Disable this feature.
4680
alias -g '${1+"$@"}'='"$@"'
4681
setopt NO_GLOB_SUBST
4683
case `(set -o) 2>/dev/null` in
4684
*posix*) set -o posix ;;
4693
# Avoid depending upon Character Ranges.
4694
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4695
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4696
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4697
as_cr_digits='0123456789'
4698
as_cr_alnum=$as_cr_Letters$as_cr_digits
4700
# The user is always right.
4701
if test "${PATH_SEPARATOR+set}" != set; then
4702
echo "#! /bin/sh" >conf$$.sh
4703
echo "exit 0" >>conf$$.sh
4705
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4713
# Support unset when possible.
4714
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4722
# We need space, tab and new line, in precisely that order. Quoting is
4723
# there to prevent editors from complaining about space-tab.
4724
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4725
# splitting by setting IFS to empty value.)
4730
# Find who we are. Look in the path if we contain no directory separator.
4732
*[\\/]* ) as_myself=$0 ;;
4733
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737
test -z "$as_dir" && as_dir=.
4738
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4744
# We did not find ourselves, most probably we were run as `sh COMMAND'
4745
# in which case we are not to be found in the path.
4746
if test "x$as_myself" = x; then
4749
if test ! -f "$as_myself"; then
4750
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4751
{ (exit 1); exit 1; }
4754
# Work around bugs in pre-3.0 UWIN ksh.
4755
for as_var in ENV MAIL MAILPATH
4756
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4764
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4765
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4766
LC_TELEPHONE LC_TIME
4768
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4769
eval $as_var=C; export $as_var
4771
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4775
# Required to use basename.
4776
if expr a : '\(a\)' >/dev/null 2>&1 &&
4777
test "X`expr 00001 : '.*\(...\)'`" = X001; then
4783
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4784
as_basename=basename
4790
# Name of the executable.
4791
as_me=`$as_basename -- "$0" ||
4792
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4793
X"$0" : 'X\(//\)$' \| \
4794
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4796
sed '/^.*\/\([^/][^/]*\)\/*$/{
4817
test "x$as_lineno_1" != "x$as_lineno_2" &&
4818
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4820
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4821
# uniformly replaced by the line number. The first 'sed' inserts a
4822
# line-number line after each line using $LINENO; the second 'sed'
4823
# does the real work. The second script uses 'N' to pair each
4824
# line-number line with the line containing $LINENO, and appends
4825
# trailing '-' during substitution so that $LINENO is not a special
4827
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4828
# scripts with optimization help from Paolo Bonzini. Blame Lee
4829
# E. McMahon (1931-1989) for sed's syntax. :-)
4841
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4845
chmod +x "$as_me.lineno" ||
4846
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4847
{ (exit 1); exit 1; }; }
4849
# Don't try to exec as it changes $[0], causing all sort of problems
4850
# (the dirname of $[0] is not the place where we might find the
4851
# original and so on. Autoconf is especially sensitive to this).
4853
# Exit status is that of the last command.
4858
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4864
ECHO_C= ECHO_N= ECHO_T=
4867
case `echo 'x\c'` in
4868
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
4875
if expr a : '\(a\)' >/dev/null 2>&1 &&
4876
test "X`expr 00001 : '.*\(...\)'`" = X001; then
4882
rm -f conf$$ conf$$.exe conf$$.file
4883
if test -d conf$$.dir; then
4884
rm -f conf$$.dir/conf$$.file
4890
if ln -s conf$$.file conf$$ 2>/dev/null; then
4892
# ... but there are two gotchas:
4893
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4894
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4895
# In both cases, we have to default to `cp -p'.
4896
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4898
elif ln conf$$.file conf$$ 2>/dev/null; then
4903
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4904
rmdir conf$$.dir 2>/dev/null
4906
if mkdir -p . 2>/dev/null; then
4909
test -d ./-p && rmdir ./-p
4913
if test -x / >/dev/null 2>&1; then
4916
if ls -dL / >/dev/null 2>&1; then
4923
if test -d "$1"; then
4929
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4930
???[sx]*):;;*)false;;esac;fi
4934
as_executable_p=$as_test_x
4936
# Sed expression to map a string onto a valid CPP name.
4937
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4939
# Sed expression to map a string onto a valid variable name.
4940
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4945
# Save the log message, to keep $[0] and so on meaningful, and to
4946
# report actual input values of CONFIG_FILES etc. instead of their
4947
# values after options handling.
4949
This file was extended by libenet $as_me 9-15-2008, which was
4950
generated by GNU Autoconf 2.61. Invocation command line was
4952
CONFIG_FILES = $CONFIG_FILES
4953
CONFIG_HEADERS = $CONFIG_HEADERS
4954
CONFIG_LINKS = $CONFIG_LINKS
4955
CONFIG_COMMANDS = $CONFIG_COMMANDS
4958
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4963
cat >>$CONFIG_STATUS <<_ACEOF
4964
# Files that config.status was made for.
4965
config_files="$ac_config_files"
4966
config_commands="$ac_config_commands"
4970
cat >>$CONFIG_STATUS <<\_ACEOF
4972
\`$as_me' instantiates files from templates according to the
4973
current configuration.
4975
Usage: $0 [OPTIONS] [FILE]...
4977
-h, --help print this help, then exit
4978
-V, --version print version number and configuration settings, then exit
4979
-q, --quiet do not print progress messages
4980
-d, --debug don't remove temporary files
4981
--recheck update $as_me by reconfiguring in the same conditions
4982
--file=FILE[:TEMPLATE]
4983
instantiate the configuration file FILE
4985
Configuration files:
4988
Configuration commands:
4991
Report bugs to <bug-autoconf@gnu.org>."
4994
cat >>$CONFIG_STATUS <<_ACEOF
4996
libenet config.status 9-15-2008
4997
configured by $0, generated by GNU Autoconf 2.61,
4998
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5000
Copyright (C) 2006 Free Software Foundation, Inc.
5001
This config.status script is free software; the Free Software Foundation
5002
gives unlimited permission to copy, distribute and modify it."
5010
cat >>$CONFIG_STATUS <<\_ACEOF
5011
# If no file are specified by the user, then we need to provide default
5012
# value. By we need to know if files were specified by the user.
5018
ac_option=`expr "X$1" : 'X\([^=]*\)='`
5019
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5030
# Handling of the options.
5031
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5033
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5034
echo "$ac_cs_version"; exit ;;
5035
--debug | --debu | --deb | --de | --d | -d )
5037
--file | --fil | --fi | --f )
5039
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5040
ac_need_defaults=false;;
5041
--he | --h | --help | --hel | -h )
5042
echo "$ac_cs_usage"; exit ;;
5043
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
5044
| -silent | --silent | --silen | --sile | --sil | --si | --s)
5048
-*) { echo "$as_me: error: unrecognized option: $1
5049
Try \`$0 --help' for more information." >&2
5050
{ (exit 1); exit 1; }; } ;;
5052
*) ac_config_targets="$ac_config_targets $1"
5053
ac_need_defaults=false ;;
5059
ac_configure_extra_args=
5061
if $ac_cs_silent; then
5063
ac_configure_extra_args="$ac_configure_extra_args --silent"
5067
cat >>$CONFIG_STATUS <<_ACEOF
5068
if \$ac_cs_recheck; then
5069
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5072
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5076
cat >>$CONFIG_STATUS <<\_ACEOF
5080
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5081
## Running $as_me. ##
5087
cat >>$CONFIG_STATUS <<_ACEOF
5091
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5095
cat >>$CONFIG_STATUS <<\_ACEOF
5097
# Handling of arguments.
5098
for ac_config_target in $ac_config_targets
5100
case $ac_config_target in
5101
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5102
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5103
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
5104
"include/enet/Makefile") CONFIG_FILES="$CONFIG_FILES include/enet/Makefile" ;;
5106
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5107
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5108
{ (exit 1); exit 1; }; };;
5113
# If the user did not use the arguments to specify the items to instantiate,
5114
# then the envvar interface is used. Set only those that are not.
5115
# We use the long form for the default assignment because of an extremely
5116
# bizarre bug on SunOS 4.1.3.
5117
if $ac_need_defaults; then
5118
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5119
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5122
# Have a temporary directory for convenience. Make it in the build tree
5123
# simply because there is no reason against having it here, and in addition,
5124
# creating and moving files from /tmp can sometimes cause problems.
5125
# Hook for its removal unless debugging.
5126
# Note that there is a small window in which the directory will not be cleaned:
5127
# after its creation but before its name has been assigned to `$tmp'.
5131
trap 'exit_status=$?
5132
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5134
trap '{ (exit 1); exit 1; }' 1 2 13 15
5136
# Create a (secure) tmp directory for tmp files.
5139
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5140
test -n "$tmp" && test -d "$tmp"
5143
tmp=./conf$$-$RANDOM
5144
(umask 077 && mkdir "$tmp")
5147
echo "$me: cannot create a temporary directory in ." >&2
5148
{ (exit 1); exit 1; }
5152
# Set up the sed scripts for CONFIG_FILES section.
5155
# No need to generate the scripts if there are no CONFIG_FILES.
5156
# This happens for instance when ./config.status config.h
5157
if test -n "$CONFIG_FILES"; then
5164
for ac_last_try in false false false false false :; do
5165
cat >conf$$subs.sed <<_ACEOF
5166
SHELL!$SHELL$ac_delim
5167
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5168
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5169
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5170
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5171
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5172
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5173
exec_prefix!$exec_prefix$ac_delim
5174
prefix!$prefix$ac_delim
5175
program_transform_name!$program_transform_name$ac_delim
5176
bindir!$bindir$ac_delim
5177
sbindir!$sbindir$ac_delim
5178
libexecdir!$libexecdir$ac_delim
5179
datarootdir!$datarootdir$ac_delim
5180
datadir!$datadir$ac_delim
5181
sysconfdir!$sysconfdir$ac_delim
5182
sharedstatedir!$sharedstatedir$ac_delim
5183
localstatedir!$localstatedir$ac_delim
5184
includedir!$includedir$ac_delim
5185
oldincludedir!$oldincludedir$ac_delim
5186
docdir!$docdir$ac_delim
5187
infodir!$infodir$ac_delim
5188
htmldir!$htmldir$ac_delim
5189
dvidir!$dvidir$ac_delim
5190
pdfdir!$pdfdir$ac_delim
5191
psdir!$psdir$ac_delim
5192
libdir!$libdir$ac_delim
5193
localedir!$localedir$ac_delim
5194
mandir!$mandir$ac_delim
5196
ECHO_C!$ECHO_C$ac_delim
5197
ECHO_N!$ECHO_N$ac_delim
5198
ECHO_T!$ECHO_T$ac_delim
5200
build_alias!$build_alias$ac_delim
5201
host_alias!$host_alias$ac_delim
5202
target_alias!$target_alias$ac_delim
5203
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5204
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5205
INSTALL_DATA!$INSTALL_DATA$ac_delim
5206
am__isrc!$am__isrc$ac_delim
5207
CYGPATH_W!$CYGPATH_W$ac_delim
5208
PACKAGE!$PACKAGE$ac_delim
5209
VERSION!$VERSION$ac_delim
5210
ACLOCAL!$ACLOCAL$ac_delim
5211
AUTOCONF!$AUTOCONF$ac_delim
5212
AUTOMAKE!$AUTOMAKE$ac_delim
5213
AUTOHEADER!$AUTOHEADER$ac_delim
5214
MAKEINFO!$MAKEINFO$ac_delim
5215
install_sh!$install_sh$ac_delim
5216
STRIP!$STRIP$ac_delim
5217
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
5218
mkdir_p!$mkdir_p$ac_delim
5220
SET_MAKE!$SET_MAKE$ac_delim
5221
am__leading_dot!$am__leading_dot$ac_delim
5222
AMTAR!$AMTAR$ac_delim
5223
am__tar!$am__tar$ac_delim
5224
am__untar!$am__untar$ac_delim
5226
CFLAGS!$CFLAGS$ac_delim
5227
LDFLAGS!$LDFLAGS$ac_delim
5228
CPPFLAGS!$CPPFLAGS$ac_delim
5229
ac_ct_CC!$ac_ct_CC$ac_delim
5230
EXEEXT!$EXEEXT$ac_delim
5231
OBJEXT!$OBJEXT$ac_delim
5232
DEPDIR!$DEPDIR$ac_delim
5233
am__include!$am__include$ac_delim
5234
am__quote!$am__quote$ac_delim
5235
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
5236
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
5237
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
5238
CCDEPMODE!$CCDEPMODE$ac_delim
5239
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
5240
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
5241
RANLIB!$RANLIB$ac_delim
5244
EGREP!$EGREP$ac_delim
5245
LIBOBJS!$LIBOBJS$ac_delim
5246
LTLIBOBJS!$LTLIBOBJS$ac_delim
5249
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
5251
elif $ac_last_try; then
5252
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5253
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5254
{ (exit 1); exit 1; }; }
5256
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5260
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5261
if test -n "$ac_eof"; then
5262
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5263
ac_eof=`expr $ac_eof + 1`
5266
cat >>$CONFIG_STATUS <<_ACEOF
5267
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5268
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5271
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5272
s/^/s,@/; s/!/@,|#_!!_#|/
5275
s/'"$ac_delim"'$/,g/; t
5277
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5278
' >>$CONFIG_STATUS <conf$$subs.sed
5279
rm -f conf$$subs.sed
5280
cat >>$CONFIG_STATUS <<_ACEOF
5287
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5288
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5289
# trailing colons and then remove the whole line if VPATH becomes empty
5290
# (actually we leave an empty line to preserve line numbers).
5291
if test "x$srcdir" = x.; then
5292
ac_vpsub='/^[ ]*VPATH[ ]*=/{
5296
s/^\([^=]*=[ ]*\):*/\1/
5302
cat >>$CONFIG_STATUS <<\_ACEOF
5303
fi # test -n "$CONFIG_FILES"
5306
for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
5309
:[FHLC]) ac_mode=$ac_tag; continue;;
5311
case $ac_mode$ac_tag in
5313
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5314
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5315
{ (exit 1); exit 1; }; };;
5316
:[FH]-) ac_tag=-:-;;
5317
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5334
-) ac_f="$tmp/stdin";;
5335
*) # Look for the file first in the build tree, then in the source tree
5336
# (if the path is not absolute). The absolute path cannot be DOS-style,
5337
# because $ac_f cannot contain `:'.
5341
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5343
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5344
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5345
{ (exit 1); exit 1; }; };;
5347
ac_file_inputs="$ac_file_inputs $ac_f"
5350
# Let's still pretend it is `configure' which instantiates (i.e., don't
5351
# use $as_me), people would be surprised to read:
5352
# /* config.h. Generated by config.status. */
5353
configure_input="Generated from "`IFS=:
5354
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5355
if test x"$ac_file" != x-; then
5356
configure_input="$ac_file. $configure_input"
5357
{ echo "$as_me:$LINENO: creating $ac_file" >&5
5358
echo "$as_me: creating $ac_file" >&6;}
5362
*:-:* | *:-) cat >"$tmp/stdin";;
5367
ac_dir=`$as_dirname -- "$ac_file" ||
5368
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5369
X"$ac_file" : 'X\(//\)[^/]' \| \
5370
X"$ac_file" : 'X\(//\)$' \| \
5371
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5373
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5392
-*) as_dir=./$as_dir;;
5394
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5398
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5399
*) as_qdir=$as_dir;;
5401
as_dirs="'$as_qdir' $as_dirs"
5402
as_dir=`$as_dirname -- "$as_dir" ||
5403
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5404
X"$as_dir" : 'X\(//\)[^/]' \| \
5405
X"$as_dir" : 'X\(//\)$' \| \
5406
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5408
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5425
test -d "$as_dir" && break
5427
test -z "$as_dirs" || eval "mkdir $as_dirs"
5428
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5429
echo "$as_me: error: cannot create directory $as_dir" >&2;}
5430
{ (exit 1); exit 1; }; }; }
5434
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5436
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5437
# A ".." for each directory in $ac_dir_suffix.
5438
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5439
case $ac_top_builddir_sub in
5440
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5441
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5444
ac_abs_top_builddir=$ac_pwd
5445
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5446
# for backward compatibility:
5447
ac_top_builddir=$ac_top_build_prefix
5450
.) # We are building in place.
5452
ac_top_srcdir=$ac_top_builddir_sub
5453
ac_abs_top_srcdir=$ac_pwd ;;
5454
[\\/]* | ?:[\\/]* ) # Absolute name.
5455
ac_srcdir=$srcdir$ac_dir_suffix;
5456
ac_top_srcdir=$srcdir
5457
ac_abs_top_srcdir=$srcdir ;;
5459
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5460
ac_top_srcdir=$ac_top_build_prefix$srcdir
5461
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5463
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5473
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5474
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5478
[\\/$]* | ?:[\\/]* ) ;;
5479
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5483
cat >>$CONFIG_STATUS <<\_ACEOF
5484
# If the template does not know about datarootdir, expand it.
5485
# FIXME: This hack should be removed a few years after 2.60.
5486
ac_datarootdir_hack=; ac_datarootdir_seen=
5488
case `sed -n '/datarootdir/ {
5497
' $ac_file_inputs` in
5498
*datarootdir*) ac_datarootdir_seen=yes;;
5499
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5500
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5501
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5503
cat >>$CONFIG_STATUS <<_ACEOF
5504
ac_datarootdir_hack='
5505
s&@datadir@&$datadir&g
5506
s&@docdir@&$docdir&g
5507
s&@infodir@&$infodir&g
5508
s&@localedir@&$localedir&g
5509
s&@mandir@&$mandir&g
5510
s&\\\${datarootdir}&$datarootdir&g' ;;
5514
# Neutralize VPATH when `$srcdir' = `.'.
5515
# Shell code in configure.ac might set extrasub.
5516
# FIXME: do we really want to maintain this feature?
5517
cat >>$CONFIG_STATUS <<_ACEOF
5521
cat >>$CONFIG_STATUS <<\_ACEOF
5523
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5524
s&@configure_input@&$configure_input&;t t
5525
s&@top_builddir@&$ac_top_builddir_sub&;t t
5526
s&@srcdir@&$ac_srcdir&;t t
5527
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5528
s&@top_srcdir@&$ac_top_srcdir&;t t
5529
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5530
s&@builddir@&$ac_builddir&;t t
5531
s&@abs_builddir@&$ac_abs_builddir&;t t
5532
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5533
s&@INSTALL@&$ac_INSTALL&;t t
5534
s&@MKDIR_P@&$ac_MKDIR_P&;t t
5535
$ac_datarootdir_hack
5536
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5538
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5539
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5540
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5541
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5542
which seems to be undefined. Please make sure it is defined." >&5
5543
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5544
which seems to be undefined. Please make sure it is defined." >&2;}
5548
-) cat "$tmp/out"; rm -f "$tmp/out";;
5549
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5554
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
5555
echo "$as_me: executing $ac_file commands" >&6;}
5560
case $ac_file$ac_mode in
5561
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5562
# Strip MF so we end up with the name of the file.
5563
mf=`echo "$mf" | sed -e 's/:.*$//'`
5564
# Check whether this is an Automake generated Makefile or not.
5565
# We used to match only the files named `Makefile.in', but
5566
# some people rename them; so instead we look at the file content.
5567
# Grep'ing the first line is not enough: some people post-process
5568
# each Makefile.in and add a new line on top of each file to say so.
5569
# Grep'ing the whole file is not good either: AIX grep has a line
5570
# limit of 2048, but all sed's we know have understand at least 4000.
5571
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5572
dirpart=`$as_dirname -- "$mf" ||
5573
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5574
X"$mf" : 'X\(//\)[^/]' \| \
5575
X"$mf" : 'X\(//\)$' \| \
5576
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5578
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5598
# Extract the definition of DEPDIR, am__include, and am__quote
5599
# from the Makefile without running `make'.
5600
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5601
test -z "$DEPDIR" && continue
5602
am__include=`sed -n 's/^am__include = //p' < "$mf"`
5603
test -z "am__include" && continue
5604
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5605
# When using ansi2knr, U may be empty or an underscore; expand it
5606
U=`sed -n 's/^U = //p' < "$mf"`
5607
# Find all dependency output files, they are included files with
5608
# $(DEPDIR) in their names. We invoke sed twice because it is the
5609
# simplest approach to changing $(DEPDIR) to its actual value in the
5611
for file in `sed -n "
5612
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5613
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5614
# Make sure the directory exists.
5615
test -f "$dirpart/$file" && continue
5616
fdir=`$as_dirname -- "$file" ||
5617
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5618
X"$file" : 'X\(//\)[^/]' \| \
5619
X"$file" : 'X\(//\)$' \| \
5620
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5622
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5639
{ as_dir=$dirpart/$fdir
5641
-*) as_dir=./$as_dir;;
5643
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5647
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5648
*) as_qdir=$as_dir;;
5650
as_dirs="'$as_qdir' $as_dirs"
5651
as_dir=`$as_dirname -- "$as_dir" ||
5652
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5653
X"$as_dir" : 'X\(//\)[^/]' \| \
5654
X"$as_dir" : 'X\(//\)$' \| \
5655
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5657
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5674
test -d "$as_dir" && break
5676
test -z "$as_dirs" || eval "mkdir $as_dirs"
5677
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5678
echo "$as_me: error: cannot create directory $as_dir" >&2;}
5679
{ (exit 1); exit 1; }; }; }
5680
# echo "creating $dirpart/$file"
5681
echo '# dummy' > "$dirpart/$file"
5690
{ (exit 0); exit 0; }
5692
chmod +x $CONFIG_STATUS
5693
ac_clean_files=$ac_clean_files_save
5696
# configure is writing to config.log, and then calls config.status.
5697
# config.status does its own redirection, appending to config.log.
5698
# Unfortunately, on DOS this fails, as config.log is still kept open
5699
# by configure, so config.status won't be able to write to it; its
5700
# output is simply discarded. So we exec the FD to /dev/null,
5701
# effectively closing config.log, so it can be properly (re)opened and
5702
# appended to by config.status. When coming back to configure, we
5703
# need to make the FD available again.
5704
if test "$no_create" != yes; then
5706
ac_config_status_args=
5707
test "$silent" = yes &&
5708
ac_config_status_args="$ac_config_status_args --quiet"
5710
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5712
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
5713
# would make configure fail if this is the last instruction.
5714
$ac_cs_success || { (exit 1); exit 1; }