3717
if test "${ac_cv_header_minix_config_h+set}" = set; then
3718
echo "$as_me:$LINENO: checking for minix/config.h" >&5
3719
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3720
if test "${ac_cv_header_minix_config_h+set}" = set; then
3721
echo $ECHO_N "(cached) $ECHO_C" >&6
3723
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3724
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3726
# Is the header compilable?
3727
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3728
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3729
cat >conftest.$ac_ext <<_ACEOF
3732
cat confdefs.h >>conftest.$ac_ext
3733
cat >>conftest.$ac_ext <<_ACEOF
3734
/* end confdefs.h. */
3735
$ac_includes_default
3736
#include <minix/config.h>
3738
rm -f conftest.$ac_objext
3739
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740
(eval $ac_compile) 2>conftest.er1
3742
grep -v '^ *+' conftest.er1 >conftest.err
3744
cat conftest.err >&5
3745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746
(exit $ac_status); } &&
3747
{ ac_try='test -z "$ac_c_werror_flag"
3748
|| test ! -s conftest.err'
3749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753
(exit $ac_status); }; } &&
3754
{ ac_try='test -s conftest.$ac_objext'
3755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759
(exit $ac_status); }; }; then
3760
ac_header_compiler=yes
3762
echo "$as_me: failed program was:" >&5
3763
sed 's/^/| /' conftest.$ac_ext >&5
3765
ac_header_compiler=no
3767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3768
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3769
echo "${ECHO_T}$ac_header_compiler" >&6
3771
# Is the header present?
3772
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3773
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3774
cat >conftest.$ac_ext <<_ACEOF
3777
cat confdefs.h >>conftest.$ac_ext
3778
cat >>conftest.$ac_ext <<_ACEOF
3779
/* end confdefs.h. */
3780
#include <minix/config.h>
3782
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3783
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3785
grep -v '^ *+' conftest.er1 >conftest.err
3787
cat conftest.err >&5
3788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789
(exit $ac_status); } >/dev/null; then
3790
if test -s conftest.err; then
3791
ac_cpp_err=$ac_c_preproc_warn_flag
3792
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3799
if test -z "$ac_cpp_err"; then
3800
ac_header_preproc=yes
3802
echo "$as_me: failed program was:" >&5
3803
sed 's/^/| /' conftest.$ac_ext >&5
3805
ac_header_preproc=no
3807
rm -f conftest.err conftest.$ac_ext
3808
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3809
echo "${ECHO_T}$ac_header_preproc" >&6
3811
# So? What about this header?
3812
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3814
{ echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3815
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3816
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3817
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3818
ac_header_preproc=yes
3821
{ echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3822
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3823
{ echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3824
echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3825
{ echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3826
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3827
{ echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3828
echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3829
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3830
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3831
{ echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3832
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3835
## ------------------------------------------- ##
3836
## Report this to john.boyer@abilitiessoft.com ##
3837
## ------------------------------------------- ##
3840
sed "s/^/$as_me: WARNING: /" >&2
3843
echo "$as_me:$LINENO: checking for minix/config.h" >&5
3844
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3845
if test "${ac_cv_header_minix_config_h+set}" = set; then
3846
echo $ECHO_N "(cached) $ECHO_C" >&6
3848
ac_cv_header_minix_config_h=$ac_header_preproc
3850
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3851
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3854
if test $ac_cv_header_minix_config_h = yes; then
3861
if test "$MINIX" = yes; then
3863
cat >>confdefs.h <<\_ACEOF
3864
#define _POSIX_SOURCE 1
3868
cat >>confdefs.h <<\_ACEOF
3869
#define _POSIX_1_SOURCE 2
3873
cat >>confdefs.h <<\_ACEOF
3882
cat >>confdefs.h <<\_ACEOF
3883
#define _XOPEN_SOURCE 500
3891
echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3892
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3893
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3894
echo $ECHO_N "(cached) $ECHO_C" >&6
3896
cat >conftest.$ac_ext <<_ACEOF
3899
cat confdefs.h >>conftest.$ac_ext
3900
cat >>conftest.$ac_ext <<_ACEOF
3901
/* end confdefs.h. */
3903
# define __EXTENSIONS__ 1
3904
$ac_includes_default
3913
rm -f conftest.$ac_objext
3914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3915
(eval $ac_compile) 2>conftest.er1
3917
grep -v '^ *+' conftest.er1 >conftest.err
3919
cat conftest.err >&5
3920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921
(exit $ac_status); } &&
3922
{ ac_try='test -z "$ac_c_werror_flag"
3923
|| test ! -s conftest.err'
3924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928
(exit $ac_status); }; } &&
3929
{ ac_try='test -s conftest.$ac_objext'
3930
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934
(exit $ac_status); }; }; then
3935
ac_cv_safe_to_define___extensions__=yes
3937
echo "$as_me: failed program was:" >&5
3938
sed 's/^/| /' conftest.$ac_ext >&5
3940
ac_cv_safe_to_define___extensions__=no
3942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3944
echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3945
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3946
test $ac_cv_safe_to_define___extensions__ = yes &&
3947
cat >>confdefs.h <<\_ACEOF
3948
#define __EXTENSIONS__ 1
3951
cat >>confdefs.h <<\_ACEOF
3952
#define _ALL_SOURCE 1
3955
cat >>confdefs.h <<\_ACEOF
3956
#define _GNU_SOURCE 1
3959
cat >>confdefs.h <<\_ACEOF
3960
#define _POSIX_PTHREAD_SEMANTICS 1
3963
cat >>confdefs.h <<\_ACEOF
3964
#define _TANDEM_SOURCE 1
3994
GNULIB_EUIDACCESS=0;
4001
GNULIB_GETDOMAINNAME=0;
4002
GNULIB_GETDTABLESIZE=0;
4003
GNULIB_GETHOSTNAME=0;
4004
GNULIB_GETLOGIN_R=0;
4005
GNULIB_GETPAGESIZE=0;
4006
GNULIB_GETUSERSHELL=0;
4013
GNULIB_READLINKAT=0;
4018
GNULIB_UNISTD_H_GETOPT=0;
4019
GNULIB_UNISTD_H_SIGPIPE=0;
4030
HAVE_GETDOMAINNAME=1;
4031
HAVE_GETDTABLESIZE=1;
4034
HAVE_GETUSERSHELL=1;
4043
HAVE_DECL_ENVIRON=1;
4044
HAVE_DECL_GETLOGIN_R=1;
4055
REPLACE_GETPAGESIZE=0;
4066
UNISTD_H_HAVE_WINSOCK2_H=0;
4067
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
4072
echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4073
echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4074
if test "${gl_cv_have_include_next+set}" = set; then
4075
echo $ECHO_N "(cached) $ECHO_C" >&6
4077
rm -rf conftestd1a conftestd1b conftestd2
4078
mkdir conftestd1a conftestd1b conftestd2
4079
cat <<EOF > conftestd1a/conftest.h
4080
#define DEFINED_IN_CONFTESTD1
4081
#include_next <conftest.h>
4082
#ifdef DEFINED_IN_CONFTESTD2
4085
#error "include_next doesn't work"
4088
cat <<EOF > conftestd1b/conftest.h
4089
#define DEFINED_IN_CONFTESTD1
4091
#include_next <conftest.h>
4092
#ifdef DEFINED_IN_CONFTESTD2
4095
#error "include_next doesn't work"
4098
cat <<EOF > conftestd2/conftest.h
4099
#ifndef DEFINED_IN_CONFTESTD1
4100
#error "include_next test doesn't work"
4102
#define DEFINED_IN_CONFTESTD2
4104
gl_save_CPPFLAGS="$CPPFLAGS"
4105
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
4106
cat >conftest.$ac_ext <<_ACEOF
4107
#include <conftest.h>
4109
rm -f conftest.$ac_objext
4110
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111
(eval $ac_compile) 2>conftest.er1
4113
grep -v '^ *+' conftest.er1 >conftest.err
4115
cat conftest.err >&5
4116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117
(exit $ac_status); } &&
4118
{ ac_try='test -z "$ac_c_werror_flag"
4119
|| test ! -s conftest.err'
4120
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124
(exit $ac_status); }; } &&
4125
{ ac_try='test -s conftest.$ac_objext'
4126
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130
(exit $ac_status); }; }; then
4131
gl_cv_have_include_next=yes
4133
echo "$as_me: failed program was:" >&5
4134
sed 's/^/| /' conftest.$ac_ext >&5
4136
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
4137
cat >conftest.$ac_ext <<_ACEOF
4138
#include <conftest.h>
4140
rm -f conftest.$ac_objext
4141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142
(eval $ac_compile) 2>conftest.er1
4144
grep -v '^ *+' conftest.er1 >conftest.err
4146
cat conftest.err >&5
4147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148
(exit $ac_status); } &&
4149
{ ac_try='test -z "$ac_c_werror_flag"
4150
|| test ! -s conftest.err'
4151
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155
(exit $ac_status); }; } &&
4156
{ ac_try='test -s conftest.$ac_objext'
4157
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161
(exit $ac_status); }; }; then
4162
gl_cv_have_include_next=buggy
4164
echo "$as_me: failed program was:" >&5
4165
sed 's/^/| /' conftest.$ac_ext >&5
4167
gl_cv_have_include_next=no
4169
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4173
CPPFLAGS="$gl_save_CPPFLAGS"
4174
rm -rf conftestd1a conftestd1b conftestd2
4177
echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4178
echo "${ECHO_T}$gl_cv_have_include_next" >&6
4179
PRAGMA_SYSTEM_HEADER=
4180
if test $gl_cv_have_include_next = yes; then
4181
INCLUDE_NEXT=include_next
4182
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
4183
if test -n "$GCC"; then
4184
PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
4187
if test $gl_cv_have_include_next = buggy; then
4188
INCLUDE_NEXT=include
4189
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
4191
INCLUDE_NEXT=include
4192
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
4204
for ac_header in $gl_header_list
4206
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4207
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4208
echo "$as_me:$LINENO: checking for $ac_header" >&5
4209
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4210
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4211
echo $ECHO_N "(cached) $ECHO_C" >&6
4213
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4214
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4216
# Is the header compilable?
4217
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4218
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4219
cat >conftest.$ac_ext <<_ACEOF
4222
cat confdefs.h >>conftest.$ac_ext
4223
cat >>conftest.$ac_ext <<_ACEOF
4224
/* end confdefs.h. */
4225
$ac_includes_default
4226
#include <$ac_header>
4228
rm -f conftest.$ac_objext
4229
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230
(eval $ac_compile) 2>conftest.er1
4232
grep -v '^ *+' conftest.er1 >conftest.err
4234
cat conftest.err >&5
4235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236
(exit $ac_status); } &&
4237
{ ac_try='test -z "$ac_c_werror_flag"
4238
|| test ! -s conftest.err'
4239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243
(exit $ac_status); }; } &&
4244
{ ac_try='test -s conftest.$ac_objext'
4245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249
(exit $ac_status); }; }; then
4250
ac_header_compiler=yes
4252
echo "$as_me: failed program was:" >&5
4253
sed 's/^/| /' conftest.$ac_ext >&5
4255
ac_header_compiler=no
4257
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4258
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4259
echo "${ECHO_T}$ac_header_compiler" >&6
4261
# Is the header present?
4262
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4263
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4264
cat >conftest.$ac_ext <<_ACEOF
4267
cat confdefs.h >>conftest.$ac_ext
4268
cat >>conftest.$ac_ext <<_ACEOF
4269
/* end confdefs.h. */
4270
#include <$ac_header>
4272
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4275
grep -v '^ *+' conftest.er1 >conftest.err
4277
cat conftest.err >&5
4278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279
(exit $ac_status); } >/dev/null; then
4280
if test -s conftest.err; then
4281
ac_cpp_err=$ac_c_preproc_warn_flag
4282
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4289
if test -z "$ac_cpp_err"; then
4290
ac_header_preproc=yes
4292
echo "$as_me: failed program was:" >&5
4293
sed 's/^/| /' conftest.$ac_ext >&5
4295
ac_header_preproc=no
4297
rm -f conftest.err conftest.$ac_ext
4298
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4299
echo "${ECHO_T}$ac_header_preproc" >&6
4301
# So? What about this header?
4302
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4304
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4305
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4306
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4307
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4308
ac_header_preproc=yes
4311
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4312
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4313
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4314
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4315
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4316
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4317
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4318
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4319
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4320
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4321
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4322
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4325
## ------------------------------------------- ##
4326
## Report this to john.boyer@abilitiessoft.com ##
4327
## ------------------------------------------- ##
4330
sed "s/^/$as_me: WARNING: /" >&2
4333
echo "$as_me:$LINENO: checking for $ac_header" >&5
4334
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4335
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4336
echo $ECHO_N "(cached) $ECHO_C" >&6
4338
eval "$as_ac_Header=\$ac_header_preproc"
4340
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4341
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4344
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4345
cat >>confdefs.h <<_ACEOF
4346
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4374
if test $gl_cv_have_include_next = yes; then
4375
gl_cv_next_getopt_h='<'getopt.h'>'
4377
echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
4378
echo $ECHO_N "checking absolute name of <getopt.h>... $ECHO_C" >&6
4379
if test "${gl_cv_next_getopt_h+set}" = set; then
4380
echo $ECHO_N "(cached) $ECHO_C" >&6
4383
if test $ac_cv_header_getopt_h = yes; then
4384
cat >conftest.$ac_ext <<_ACEOF
4387
cat confdefs.h >>conftest.$ac_ext
4388
cat >>conftest.$ac_ext <<_ACEOF
4389
/* end confdefs.h. */
4394
aix*) gl_absname_cpp="$ac_cpp -C" ;;
4395
*) gl_absname_cpp="$ac_cpp" ;;
4397
gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
4398
sed -n '\#/getopt.h#{
4399
s#.*"\(.*/getopt.h\)".*#\1#
4405
gl_cv_next_getopt_h='<'getopt.h'>'
4409
echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
4410
echo "${ECHO_T}$gl_cv_next_getopt_h" >&6
4412
NEXT_GETOPT_H=$gl_cv_next_getopt_h
4414
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
4415
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
4416
gl_next_as_first_directive='<'getopt.h'>'
4418
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
4419
gl_next_as_first_directive=$gl_cv_next_getopt_h
4421
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
4432
if test $ac_cv_header_getopt_h = yes; then
4441
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
4443
for ac_header in getopt.h
4445
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4446
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4447
echo "$as_me:$LINENO: checking for $ac_header" >&5
4448
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4449
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4450
echo $ECHO_N "(cached) $ECHO_C" >&6
4452
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4453
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4455
# Is the header compilable?
4456
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4457
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4458
cat >conftest.$ac_ext <<_ACEOF
4461
cat confdefs.h >>conftest.$ac_ext
4462
cat >>conftest.$ac_ext <<_ACEOF
4463
/* end confdefs.h. */
4464
$ac_includes_default
4465
#include <$ac_header>
4467
rm -f conftest.$ac_objext
4468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469
(eval $ac_compile) 2>conftest.er1
4471
grep -v '^ *+' conftest.er1 >conftest.err
4473
cat conftest.err >&5
4474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475
(exit $ac_status); } &&
4476
{ ac_try='test -z "$ac_c_werror_flag"
4477
|| test ! -s conftest.err'
4478
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482
(exit $ac_status); }; } &&
4483
{ ac_try='test -s conftest.$ac_objext'
4484
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488
(exit $ac_status); }; }; then
4489
ac_header_compiler=yes
4491
echo "$as_me: failed program was:" >&5
4492
sed 's/^/| /' conftest.$ac_ext >&5
4494
ac_header_compiler=no
4496
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4497
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4498
echo "${ECHO_T}$ac_header_compiler" >&6
4500
# Is the header present?
4501
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4502
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4503
cat >conftest.$ac_ext <<_ACEOF
4506
cat confdefs.h >>conftest.$ac_ext
4507
cat >>conftest.$ac_ext <<_ACEOF
4508
/* end confdefs.h. */
4509
#include <$ac_header>
4511
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4512
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4514
grep -v '^ *+' conftest.er1 >conftest.err
4516
cat conftest.err >&5
4517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518
(exit $ac_status); } >/dev/null; then
4519
if test -s conftest.err; then
4520
ac_cpp_err=$ac_c_preproc_warn_flag
4521
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4528
if test -z "$ac_cpp_err"; then
4529
ac_header_preproc=yes
4531
echo "$as_me: failed program was:" >&5
4532
sed 's/^/| /' conftest.$ac_ext >&5
4534
ac_header_preproc=no
4536
rm -f conftest.err conftest.$ac_ext
4537
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4538
echo "${ECHO_T}$ac_header_preproc" >&6
4540
# So? What about this header?
4541
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4543
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4544
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4545
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4546
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4547
ac_header_preproc=yes
4550
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4551
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4552
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4553
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4554
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4555
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4556
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4557
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4558
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4559
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4560
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4561
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4564
## ------------------------------------------- ##
4565
## Report this to john.boyer@abilitiessoft.com ##
4566
## ------------------------------------------- ##
4569
sed "s/^/$as_me: WARNING: /" >&2
4572
echo "$as_me:$LINENO: checking for $ac_header" >&5
4573
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4574
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575
echo $ECHO_N "(cached) $ECHO_C" >&6
4577
eval "$as_ac_Header=\$ac_header_preproc"
4579
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4580
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4583
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4584
cat >>confdefs.h <<_ACEOF
4585
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4589
gl_replace_getopt=yes
4596
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
4598
for ac_func in getopt_long_only
4600
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4601
echo "$as_me:$LINENO: checking for $ac_func" >&5
4602
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4603
if eval "test \"\${$as_ac_var+set}\" = set"; then
4604
echo $ECHO_N "(cached) $ECHO_C" >&6
4606
cat >conftest.$ac_ext <<_ACEOF
4609
cat confdefs.h >>conftest.$ac_ext
4610
cat >>conftest.$ac_ext <<_ACEOF
4611
/* end confdefs.h. */
4612
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4613
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4614
#define $ac_func innocuous_$ac_func
4616
/* System header to define __stub macros and hopefully few prototypes,
4617
which can conflict with char $ac_func (); below.
4618
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4619
<limits.h> exists even on freestanding compilers. */
4622
# include <limits.h>
4624
# include <assert.h>
4629
/* Override any gcc2 internal prototype to avoid an error. */
4634
/* We use char because int might match the return type of a gcc2
4635
builtin and then its argument prototype would still apply. */
4637
/* The GNU C library defines this for functions which it implements
4638
to always fail with ENOSYS. Some functions are actually named
4639
something starting with __ and the normal name is an alias. */
4640
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4643
char (*f) () = $ac_func;
4652
return f != $ac_func;
4657
rm -f conftest.$ac_objext conftest$ac_exeext
4658
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659
(eval $ac_link) 2>conftest.er1
4661
grep -v '^ *+' conftest.er1 >conftest.err
4663
cat conftest.err >&5
4664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665
(exit $ac_status); } &&
4666
{ ac_try='test -z "$ac_c_werror_flag"
4667
|| test ! -s conftest.err'
4668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672
(exit $ac_status); }; } &&
4673
{ ac_try='test -s conftest$ac_exeext'
4674
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678
(exit $ac_status); }; }; then
4679
eval "$as_ac_var=yes"
4681
echo "$as_me: failed program was:" >&5
4682
sed 's/^/| /' conftest.$ac_ext >&5
4684
eval "$as_ac_var=no"
4686
rm -f conftest.err conftest.$ac_objext \
4687
conftest$ac_exeext conftest.$ac_ext
4689
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4690
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4691
if test `eval echo '${'$as_ac_var'}'` = yes; then
4692
cat >>confdefs.h <<_ACEOF
4693
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4697
gl_replace_getopt=yes
4703
if false && test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
4704
echo "$as_me:$LINENO: checking whether optreset is declared" >&5
4705
echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
4706
if test "${ac_cv_have_decl_optreset+set}" = set; then
4707
echo $ECHO_N "(cached) $ECHO_C" >&6
4709
cat >conftest.$ac_ext <<_ACEOF
4712
cat confdefs.h >>conftest.$ac_ext
4713
cat >>conftest.$ac_ext <<_ACEOF
4714
/* end confdefs.h. */
4721
char *p = (char *) optreset;
4728
rm -f conftest.$ac_objext
4729
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730
(eval $ac_compile) 2>conftest.er1
4732
grep -v '^ *+' conftest.er1 >conftest.err
4734
cat conftest.err >&5
4735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736
(exit $ac_status); } &&
4737
{ ac_try='test -z "$ac_c_werror_flag"
4738
|| test ! -s conftest.err'
4739
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743
(exit $ac_status); }; } &&
4744
{ ac_try='test -s conftest.$ac_objext'
4745
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749
(exit $ac_status); }; }; then
4750
ac_cv_have_decl_optreset=yes
4752
echo "$as_me: failed program was:" >&5
4753
sed 's/^/| /' conftest.$ac_ext >&5
4755
ac_cv_have_decl_optreset=no
4757
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759
echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
4760
echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
4761
if test $ac_cv_have_decl_optreset = yes; then
4762
gl_replace_getopt=yes
4767
if test -z "$gl_replace_getopt"; then
4768
echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
4769
echo $ECHO_N "checking whether getopt is POSIX compatible... $ECHO_C" >&6
4770
if test "${gl_cv_func_getopt_posix+set}" = set; then
4771
echo $ECHO_N "(cached) $ECHO_C" >&6
4774
if test "$cross_compiling" = yes; then
4776
mingw*) gl_cv_func_getopt_posix="guessing no";;
4777
*) gl_cv_func_getopt_posix="guessing yes";;
4781
cat >conftest.$ac_ext <<_ACEOF
4784
cat confdefs.h >>conftest.$ac_ext
4785
cat >>conftest.$ac_ext <<_ACEOF
4786
/* end confdefs.h. */
4792
/* The glibc implementation of getopt supports setting optind = 0 as a means
4793
of clearing the internal state, but other implementations don't. */
4794
#if (__GLIBC__ >= 2)
4795
# define OPTIND_MIN 0
4797
# define OPTIND_MIN 1
4808
argv[argc++] = "program";
4809
argv[argc++] = "-a";
4810
argv[argc++] = "foo";
4811
argv[argc++] = "bar";
4812
optind = OPTIND_MIN;
4815
c = getopt (argc, argv, "ab");
4818
c = getopt (argc, argv, "ab");
4824
/* Some internal state exists at this point. */
4830
argv[argc++] = "program";
4831
argv[argc++] = "donald";
4832
argv[argc++] = "-p";
4833
argv[argc++] = "billy";
4834
argv[argc++] = "duck";
4835
argv[argc++] = "-a";
4836
argv[argc++] = "bar";
4837
optind = OPTIND_MIN;
4840
c = getopt (argc, argv, "+abp:q:");
4843
if (!(strcmp (argv[0], "program") == 0))
4845
if (!(strcmp (argv[1], "donald") == 0))
4847
if (!(strcmp (argv[2], "-p") == 0))
4849
if (!(strcmp (argv[3], "billy") == 0))
4851
if (!(strcmp (argv[4], "duck") == 0))
4853
if (!(strcmp (argv[5], "-a") == 0))
4855
if (!(strcmp (argv[6], "bar") == 0))
4865
rm -f conftest$ac_exeext
4866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4867
(eval $ac_link) 2>&5
4869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4871
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875
(exit $ac_status); }; }; then
4876
gl_cv_func_getopt_posix=yes
4878
echo "$as_me: program exited with status $ac_status" >&5
4879
echo "$as_me: failed program was:" >&5
4880
sed 's/^/| /' conftest.$ac_ext >&5
4883
gl_cv_func_getopt_posix=no
4885
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4889
echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
4890
echo "${ECHO_T}$gl_cv_func_getopt_posix" >&6
4891
case "$gl_cv_func_getopt_posix" in
4892
*no) gl_replace_getopt=yes ;;
4896
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
4897
echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
4898
echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
4899
if test "${gl_cv_func_getopt_gnu+set}" = set; then
4900
echo $ECHO_N "(cached) $ECHO_C" >&6
4902
if test "$cross_compiling" = yes; then
4904
*-gnu* | mingw*) gl_cv_func_getopt_gnu=no;;
4905
*) gl_cv_func_getopt_gnu=yes;;
4909
cat >conftest.$ac_ext <<_ACEOF
4912
cat confdefs.h >>conftest.$ac_ext
4913
cat >>conftest.$ac_ext <<_ACEOF
4914
/* end confdefs.h. */
4922
/* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
4923
and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
4924
OSF/1 5.1, Solaris 10. */
4927
myargv[0] = "conftest";
4931
if (getopt (2, myargv, "+a") != '?')
4934
/* This code succeeds on glibc 2.8, mingw,
4935
and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
4936
IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin. */
4938
char *argv[] = { "program", "-p", "foo", "bar" };
4941
if (getopt (4, argv, "p::") != 'p')
4945
if (getopt (4, argv, "p::") != -1)
4956
rm -f conftest$ac_exeext
4957
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958
(eval $ac_link) 2>&5
4960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4962
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966
(exit $ac_status); }; }; then
4967
gl_cv_func_getopt_gnu=yes
4969
echo "$as_me: program exited with status $ac_status" >&5
4970
echo "$as_me: failed program was:" >&5
4971
sed 's/^/| /' conftest.$ac_ext >&5
4974
gl_cv_func_getopt_gnu=no
4976
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4980
echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
4981
echo "${ECHO_T}$gl_cv_func_getopt_gnu" >&6
4982
if test "$gl_cv_func_getopt_gnu" = "no"; then
4983
gl_replace_getopt=yes
4988
echo "$as_me:$LINENO: checking whether getenv is declared" >&5
4989
echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
4990
if test "${ac_cv_have_decl_getenv+set}" = set; then
4991
echo $ECHO_N "(cached) $ECHO_C" >&6
4993
cat >conftest.$ac_ext <<_ACEOF
4996
cat confdefs.h >>conftest.$ac_ext
4997
cat >>conftest.$ac_ext <<_ACEOF
4998
/* end confdefs.h. */
4999
$ac_includes_default
5004
char *p = (char *) getenv;
5011
rm -f conftest.$ac_objext
5012
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013
(eval $ac_compile) 2>conftest.er1
5015
grep -v '^ *+' conftest.er1 >conftest.err
5017
cat conftest.err >&5
5018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019
(exit $ac_status); } &&
5020
{ ac_try='test -z "$ac_c_werror_flag"
5021
|| test ! -s conftest.err'
5022
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026
(exit $ac_status); }; } &&
5027
{ ac_try='test -s conftest.$ac_objext'
5028
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032
(exit $ac_status); }; }; then
5033
ac_cv_have_decl_getenv=yes
5035
echo "$as_me: failed program was:" >&5
5036
sed 's/^/| /' conftest.$ac_ext >&5
5038
ac_cv_have_decl_getenv=no
5040
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5042
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
5043
echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
5044
if test $ac_cv_have_decl_getenv = yes; then
5046
cat >>confdefs.h <<_ACEOF
5047
#define HAVE_DECL_GETENV 1
5052
cat >>confdefs.h <<_ACEOF
5053
#define HAVE_DECL_GETENV 0
5066
if test -n "$gl_replace_getopt"; then
5072
cat >>confdefs.h <<\_ACEOF
5073
#define __GETOPT_PREFIX rpl_
5078
GNULIB_UNISTD_H_GETOPT=1
5087
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
5097
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
5126
echo "$as_me:$LINENO: checking for wchar_t" >&5
5127
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
5128
if test "${gt_cv_c_wchar_t+set}" = set; then
5129
echo $ECHO_N "(cached) $ECHO_C" >&6
5131
cat >conftest.$ac_ext <<_ACEOF
5134
cat confdefs.h >>conftest.$ac_ext
5135
cat >>conftest.$ac_ext <<_ACEOF
5136
/* end confdefs.h. */
5138
wchar_t foo = (wchar_t)'\0';
5147
rm -f conftest.$ac_objext
5148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149
(eval $ac_compile) 2>conftest.er1
5151
grep -v '^ *+' conftest.er1 >conftest.err
5153
cat conftest.err >&5
5154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155
(exit $ac_status); } &&
5156
{ ac_try='test -z "$ac_c_werror_flag"
5157
|| test ! -s conftest.err'
5158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162
(exit $ac_status); }; } &&
5163
{ ac_try='test -s conftest.$ac_objext'
5164
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168
(exit $ac_status); }; }; then
5171
echo "$as_me: failed program was:" >&5
5172
sed 's/^/| /' conftest.$ac_ext >&5
5176
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5178
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5179
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
5180
if test $gt_cv_c_wchar_t = yes; then
5182
cat >>confdefs.h <<\_ACEOF
5183
#define HAVE_WCHAR_T 1
5204
GL_COND_LIBTOOL_TRUE=
5205
GL_COND_LIBTOOL_FALSE='#'
5207
GL_COND_LIBTOOL_TRUE='#'
5208
GL_COND_LIBTOOL_FALSE=
5211
gl_cond_libtool=true
5221
gl_source_base='gnulib'
5229
cat >>confdefs.h <<\_ACEOF
5230
#define GNULIB_GETOPT_GNU 1
5239
if test -n "$gl_replace_getopt"; then
5245
cat >>confdefs.h <<\_ACEOF
5246
#define __GETOPT_PREFIX rpl_
5251
GNULIB_UNISTD_H_GETOPT=1
5260
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
5270
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
5289
echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
5290
echo $ECHO_N "checking whether program_invocation_name is declared... $ECHO_C" >&6
5291
if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
5292
echo $ECHO_N "(cached) $ECHO_C" >&6
5294
cat >conftest.$ac_ext <<_ACEOF
5297
cat confdefs.h >>conftest.$ac_ext
5298
cat >>conftest.$ac_ext <<_ACEOF
5299
/* end confdefs.h. */
5305
#ifndef program_invocation_name
5306
char *p = (char *) program_invocation_name;
5313
rm -f conftest.$ac_objext
5314
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315
(eval $ac_compile) 2>conftest.er1
5317
grep -v '^ *+' conftest.er1 >conftest.err
5319
cat conftest.err >&5
5320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321
(exit $ac_status); } &&
5322
{ ac_try='test -z "$ac_c_werror_flag"
5323
|| test ! -s conftest.err'
5324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328
(exit $ac_status); }; } &&
5329
{ ac_try='test -s conftest.$ac_objext'
5330
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334
(exit $ac_status); }; }; then
5335
ac_cv_have_decl_program_invocation_name=yes
5337
echo "$as_me: failed program was:" >&5
5338
sed 's/^/| /' conftest.$ac_ext >&5
5340
ac_cv_have_decl_program_invocation_name=no
5342
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5344
echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
5345
echo "${ECHO_T}$ac_cv_have_decl_program_invocation_name" >&6
5346
if test $ac_cv_have_decl_program_invocation_name = yes; then
5348
cat >>confdefs.h <<_ACEOF
5349
#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
5354
cat >>confdefs.h <<_ACEOF
5355
#define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
5362
echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
5363
echo $ECHO_N "checking whether program_invocation_short_name is declared... $ECHO_C" >&6
5364
if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
5365
echo $ECHO_N "(cached) $ECHO_C" >&6
5367
cat >conftest.$ac_ext <<_ACEOF
5370
cat confdefs.h >>conftest.$ac_ext
5371
cat >>conftest.$ac_ext <<_ACEOF
5372
/* end confdefs.h. */
5378
#ifndef program_invocation_short_name
5379
char *p = (char *) program_invocation_short_name;
5386
rm -f conftest.$ac_objext
5387
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388
(eval $ac_compile) 2>conftest.er1
5390
grep -v '^ *+' conftest.er1 >conftest.err
5392
cat conftest.err >&5
5393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394
(exit $ac_status); } &&
5395
{ ac_try='test -z "$ac_c_werror_flag"
5396
|| test ! -s conftest.err'
5397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401
(exit $ac_status); }; } &&
5402
{ ac_try='test -s conftest.$ac_objext'
5403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407
(exit $ac_status); }; }; then
5408
ac_cv_have_decl_program_invocation_short_name=yes
5410
echo "$as_me: failed program was:" >&5
5411
sed 's/^/| /' conftest.$ac_ext >&5
5413
ac_cv_have_decl_program_invocation_short_name=no
5415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5417
echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
5418
echo "${ECHO_T}$ac_cv_have_decl_program_invocation_short_name" >&6
5419
if test $ac_cv_have_decl_program_invocation_short_name = yes; then
5421
cat >>confdefs.h <<_ACEOF
5422
#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
5427
cat >>confdefs.h <<_ACEOF
5428
#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
5437
NEXT_STDARG_H='<stdarg.h>';
5438
echo "$as_me:$LINENO: checking for va_copy" >&5
5439
echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
5440
if test "${gl_cv_func_va_copy+set}" = set; then
5441
echo $ECHO_N "(cached) $ECHO_C" >&6
5444
cat >conftest.$ac_ext <<_ACEOF
5447
cat confdefs.h >>conftest.$ac_ext
5448
cat >>conftest.$ac_ext <<_ACEOF
5449
/* end confdefs.h. */
5456
void (*func) (va_list, va_list) = va_copy;
5463
rm -f conftest.$ac_objext
5464
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5465
(eval $ac_compile) 2>conftest.er1
5467
grep -v '^ *+' conftest.er1 >conftest.err
5469
cat conftest.err >&5
5470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471
(exit $ac_status); } &&
5472
{ ac_try='test -z "$ac_c_werror_flag"
5473
|| test ! -s conftest.err'
5474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478
(exit $ac_status); }; } &&
5479
{ ac_try='test -s conftest.$ac_objext'
5480
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484
(exit $ac_status); }; }; then
5485
gl_cv_func_va_copy=yes
5487
echo "$as_me: failed program was:" >&5
5488
sed 's/^/| /' conftest.$ac_ext >&5
5490
gl_cv_func_va_copy=no
5492
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5495
echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
5496
echo "${ECHO_T}$gl_cv_func_va_copy" >&6
5497
if test $gl_cv_func_va_copy = no; then
5498
cat >conftest.$ac_ext <<_ACEOF
5501
cat confdefs.h >>conftest.$ac_ext
5502
cat >>conftest.$ac_ext <<_ACEOF
5503
/* end confdefs.h. */
5504
#if defined _AIX && !defined __GNUC__
5509
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5510
$EGREP "vaccine" >/dev/null 2>&1; then
5517
if test $gl_aixcc = yes; then
5531
if test $gl_cv_have_include_next = yes; then
5532
gl_cv_next_stdarg_h='<'stdarg.h'>'
5534
echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
5535
echo $ECHO_N "checking absolute name of <stdarg.h>... $ECHO_C" >&6
5536
if test "${gl_cv_next_stdarg_h+set}" = set; then
5537
echo $ECHO_N "(cached) $ECHO_C" >&6
5540
if test $ac_cv_header_stdarg_h = yes; then
5541
cat >conftest.$ac_ext <<_ACEOF
5544
cat confdefs.h >>conftest.$ac_ext
5545
cat >>conftest.$ac_ext <<_ACEOF
5546
/* end confdefs.h. */
5551
aix*) gl_absname_cpp="$ac_cpp -C" ;;
5552
*) gl_absname_cpp="$ac_cpp" ;;
5554
gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5555
sed -n '\#/stdarg.h#{
5556
s#.*"\(.*/stdarg.h\)".*#\1#
5562
gl_cv_next_stdarg_h='<'stdarg.h'>'
5566
echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
5567
echo "${ECHO_T}$gl_cv_next_stdarg_h" >&6
5569
NEXT_STDARG_H=$gl_cv_next_stdarg_h
5571
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5572
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5573
gl_next_as_first_directive='<'stdarg.h'>'
5575
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5576
gl_next_as_first_directive=$gl_cv_next_stdarg_h
5578
NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
5582
if test "$gl_cv_next_stdarg_h" = '""'; then
5583
gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
5584
NEXT_STDARG_H="$gl_cv_next_stdarg_h"
5588
saved_as_echo_n="$as_echo_n"
5590
if test "${gl_cv_func___va_copy+set}" = set; then
5591
echo $ECHO_N "(cached) $ECHO_C" >&6
5594
cat >conftest.$ac_ext <<_ACEOF
5597
cat confdefs.h >>conftest.$ac_ext
5598
cat >>conftest.$ac_ext <<_ACEOF
5599
/* end confdefs.h. */
5613
rm -f conftest.$ac_objext
5614
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615
(eval $ac_compile) 2>conftest.er1
5617
grep -v '^ *+' conftest.er1 >conftest.err
5619
cat conftest.err >&5
5620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621
(exit $ac_status); } &&
5622
{ ac_try='test -z "$ac_c_werror_flag"
5623
|| test ! -s conftest.err'
5624
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628
(exit $ac_status); }; } &&
5629
{ ac_try='test -s conftest.$ac_objext'
5630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634
(exit $ac_status); }; }; then
5635
gl_cv_func___va_copy=yes
5637
echo "$as_me: failed program was:" >&5
5638
sed 's/^/| /' conftest.$ac_ext >&5
5640
gl_cv_func___va_copy=no
5642
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5645
as_echo_n="$saved_as_echo_n"
5647
if test $gl_cv_func___va_copy = yes; then
5649
cat >>confdefs.h <<\_ACEOF
5650
#define va_copy __va_copy
5657
cat >>confdefs.h <<\_ACEOF
5658
#define va_copy gl_va_copy
5668
if test $gt_cv_c_wchar_t = no; then
5672
echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
5673
echo $ECHO_N "checking whether NULL can be used in arbitrary expressions... $ECHO_C" >&6
5674
if test "${gl_cv_decl_null_works+set}" = set; then
5675
echo $ECHO_N "(cached) $ECHO_C" >&6
5677
cat >conftest.$ac_ext <<_ACEOF
5680
cat confdefs.h >>conftest.$ac_ext
5681
cat >>conftest.$ac_ext <<_ACEOF
5682
/* end confdefs.h. */
5684
int test[2 * (sizeof NULL == sizeof (void *)) -1];
5694
rm -f conftest.$ac_objext
5695
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696
(eval $ac_compile) 2>conftest.er1
5698
grep -v '^ *+' conftest.er1 >conftest.err
5700
cat conftest.err >&5
5701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702
(exit $ac_status); } &&
5703
{ ac_try='test -z "$ac_c_werror_flag"
5704
|| test ! -s conftest.err'
5705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709
(exit $ac_status); }; } &&
5710
{ ac_try='test -s conftest.$ac_objext'
5711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715
(exit $ac_status); }; }; then
5716
gl_cv_decl_null_works=yes
5718
echo "$as_me: failed program was:" >&5
5719
sed 's/^/| /' conftest.$ac_ext >&5
5721
gl_cv_decl_null_works=no
5723
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5725
echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
5726
echo "${ECHO_T}$gl_cv_decl_null_works" >&6
5727
if test $gl_cv_decl_null_works = no; then
5731
if test -n "$STDDEF_H"; then
5744
if test $gl_cv_have_include_next = yes; then
5745
gl_cv_next_stddef_h='<'stddef.h'>'
5747
echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
5748
echo $ECHO_N "checking absolute name of <stddef.h>... $ECHO_C" >&6
5749
if test "${gl_cv_next_stddef_h+set}" = set; then
5750
echo $ECHO_N "(cached) $ECHO_C" >&6
5753
if test $ac_cv_header_stddef_h = yes; then
5754
cat >conftest.$ac_ext <<_ACEOF
5757
cat confdefs.h >>conftest.$ac_ext
5758
cat >>conftest.$ac_ext <<_ACEOF
5759
/* end confdefs.h. */
5764
aix*) gl_absname_cpp="$ac_cpp -C" ;;
5765
*) gl_absname_cpp="$ac_cpp" ;;
5767
gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5768
sed -n '\#/stddef.h#{
5769
s#.*"\(.*/stddef.h\)".*#\1#
5775
gl_cv_next_stddef_h='<'stddef.h'>'
5779
echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
5780
echo "${ECHO_T}$gl_cv_next_stddef_h" >&6
5782
NEXT_STDDEF_H=$gl_cv_next_stddef_h
5784
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5785
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5786
gl_next_as_first_directive='<'stddef.h'>'
5788
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5789
gl_next_as_first_directive=$gl_cv_next_stddef_h
5791
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
5812
if test $gl_cv_have_include_next = yes; then
5813
gl_cv_next_unistd_h='<'unistd.h'>'
5815
echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
5816
echo $ECHO_N "checking absolute name of <unistd.h>... $ECHO_C" >&6
5817
if test "${gl_cv_next_unistd_h+set}" = set; then
5818
echo $ECHO_N "(cached) $ECHO_C" >&6
5821
if test $ac_cv_header_unistd_h = yes; then
5822
cat >conftest.$ac_ext <<_ACEOF
5825
cat confdefs.h >>conftest.$ac_ext
5826
cat >>conftest.$ac_ext <<_ACEOF
5827
/* end confdefs.h. */
5832
aix*) gl_absname_cpp="$ac_cpp -C" ;;
5833
*) gl_absname_cpp="$ac_cpp" ;;
5835
gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5836
sed -n '\#/unistd.h#{
5837
s#.*"\(.*/unistd.h\)".*#\1#
5843
gl_cv_next_unistd_h='<'unistd.h'>'
5847
echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
5848
echo "${ECHO_T}$gl_cv_next_unistd_h" >&6
5850
NEXT_UNISTD_H=$gl_cv_next_unistd_h
5852
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5853
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5854
gl_next_as_first_directive='<'unistd.h'>'
5856
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5857
gl_next_as_first_directive=$gl_cv_next_unistd_h
5859
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
5871
if test $ac_cv_header_unistd_h = yes; then
5879
# Check whether --with-packager or --without-packager was given.
5880
if test "${with_packager+set}" = set; then
5881
withval="$with_packager"
5885
cat >>confdefs.h <<_ACEOF
5886
#define PACKAGE_PACKAGER "$withval"
5894
# Check whether --with-packager-version or --without-packager-version was given.
5895
if test "${with_packager_version+set}" = set; then
5896
withval="$with_packager_version"
5900
cat >>confdefs.h <<_ACEOF
5901
#define PACKAGE_PACKAGER_VERSION "$withval"
5909
# Check whether --with-packager-bug-reports or --without-packager-bug-reports was given.
5910
if test "${with_packager_bug_reports+set}" = set; then
5911
withval="$with_packager_bug_reports"
5915
cat >>confdefs.h <<_ACEOF
5916
#define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
5923
if test "X$with_packager" = "X" && \
5924
test "X$with_packager_version$with_packager_bug_reports" != "X"
5926
{ { echo "$as_me:$LINENO: error: The --with-packager-{bug-reports,version} options require --with-packager" >&5
5927
echo "$as_me: error: The --with-packager-{bug-reports,version} options require --with-packager" >&2;}
5928
{ (exit 1); exit 1; }; }
5951
gl_source_base='tests'
5961
# Checks for more programs.
5962
# Find a good install program. We prefer a C program (faster),
5963
# so one script is as good as another. But avoid the broken or
5964
# incompatible versions:
5965
# SysV /etc/install, /usr/sbin/install
5966
# SunOS /usr/etc/install
5967
# IRIX /sbin/install
5969
# AmigaOS /C/install, which installs bootblocks on floppy discs
5970
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5971
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5972
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5973
# OS/2's system install, which has a completely different semantic
5974
# ./install, which can be erroneously created by make from ./install.sh.
5975
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5976
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5977
if test -z "$INSTALL"; then
5978
if test "${ac_cv_path_install+set}" = set; then
5979
echo $ECHO_N "(cached) $ECHO_C" >&6
5981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985
test -z "$as_dir" && as_dir=.
5986
# Account for people who put trailing slashes in PATH elements.
5988
./ | .// | /cC/* | \
5989
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5990
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5993
# OSF1 and SCO ODT 3.0 have their own names for install.
5994
# Don't use installbsd from OSF since it installs stuff as root
5996
for ac_prog in ginstall scoinst install; do
5997
for ac_exec_ext in '' $ac_executable_extensions; do
5998
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5999
if test $ac_prog = install &&
6000
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6001
# AIX install. It has an incompatible calling convention.
6003
elif test $ac_prog = install &&
6004
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6005
# program-specific install script used by HP pwplus--don't use.
6008
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6020
if test "${ac_cv_path_install+set}" = set; then
6021
INSTALL=$ac_cv_path_install
6023
# As a last resort, use the slow shell script. We don't cache a
6024
# path for INSTALL within a source directory, because that will
6025
# break other packages using the cache if that directory is
6026
# removed, or if the path is relative.
6027
INSTALL=$ac_install_sh
6030
echo "$as_me:$LINENO: result: $INSTALL" >&5
6031
echo "${ECHO_T}$INSTALL" >&6
6033
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6034
# It thinks the first close brace ends the variable substitution.
6035
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6037
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6039
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6041
echo "$as_me:$LINENO: checking whether ln -s works" >&5
6042
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6044
if test "$LN_S" = "ln -s"; then
6045
echo "$as_me:$LINENO: result: yes" >&5
6046
echo "${ECHO_T}yes" >&6
6048
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6049
echo "${ECHO_T}no, using $LN_S" >&6
6052
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6053
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6054
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6055
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6056
echo $ECHO_N "(cached) $ECHO_C" >&6
6058
cat >conftest.make <<\_ACEOF
6060
@echo 'ac_maketemp="$(MAKE)"'
6062
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6063
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6064
if test -n "$ac_maketemp"; then
6065
eval ac_cv_prog_make_${ac_make}_set=yes
6067
eval ac_cv_prog_make_${ac_make}_set=no
6071
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6072
echo "$as_me:$LINENO: result: yes" >&5
6073
echo "${ECHO_T}yes" >&6
6076
echo "$as_me:$LINENO: result: no" >&5
6077
echo "${ECHO_T}no" >&6
6078
SET_MAKE="MAKE=${MAKE-make}"
6082
# Checks for libraries.
6084
# Checks for header files.
6085
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6086
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6087
if test "${ac_cv_header_stdc+set}" = set; then
6088
echo $ECHO_N "(cached) $ECHO_C" >&6
6090
cat >conftest.$ac_ext <<_ACEOF
6093
cat confdefs.h >>conftest.$ac_ext
6094
cat >>conftest.$ac_ext <<_ACEOF
6095
/* end confdefs.h. */
6109
rm -f conftest.$ac_objext
6110
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6111
(eval $ac_compile) 2>conftest.er1
6113
grep -v '^ *+' conftest.er1 >conftest.err
6115
cat conftest.err >&5
6116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117
(exit $ac_status); } &&
6118
{ ac_try='test -z "$ac_c_werror_flag"
6119
|| test ! -s conftest.err'
6120
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124
(exit $ac_status); }; } &&
6125
{ ac_try='test -s conftest.$ac_objext'
6126
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130
(exit $ac_status); }; }; then
6131
ac_cv_header_stdc=yes
6133
echo "$as_me: failed program was:" >&5
6134
sed 's/^/| /' conftest.$ac_ext >&5
6136
ac_cv_header_stdc=no
6138
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6140
if test $ac_cv_header_stdc = yes; then
6141
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6142
cat >conftest.$ac_ext <<_ACEOF
6145
cat confdefs.h >>conftest.$ac_ext
6146
cat >>conftest.$ac_ext <<_ACEOF
6147
/* end confdefs.h. */
6151
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152
$EGREP "memchr" >/dev/null 2>&1; then
6155
ac_cv_header_stdc=no
6161
if test $ac_cv_header_stdc = yes; then
6162
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6163
cat >conftest.$ac_ext <<_ACEOF
6166
cat confdefs.h >>conftest.$ac_ext
6167
cat >>conftest.$ac_ext <<_ACEOF
6168
/* end confdefs.h. */
6172
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6173
$EGREP "free" >/dev/null 2>&1; then
6176
ac_cv_header_stdc=no
6182
if test $ac_cv_header_stdc = yes; then
6183
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6184
if test "$cross_compiling" = yes; then
6187
cat >conftest.$ac_ext <<_ACEOF
6190
cat confdefs.h >>conftest.$ac_ext
6191
cat >>conftest.$ac_ext <<_ACEOF
6192
/* end confdefs.h. */
6194
#if ((' ' & 0x0FF) == 0x020)
6195
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6196
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6198
# define ISLOWER(c) \
6199
(('a' <= (c) && (c) <= 'i') \
6200
|| ('j' <= (c) && (c) <= 'r') \
6201
|| ('s' <= (c) && (c) <= 'z'))
6202
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6205
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6210
for (i = 0; i < 256; i++)
6211
if (XOR (islower (i), ISLOWER (i))
6212
|| toupper (i) != TOUPPER (i))
6217
rm -f conftest$ac_exeext
6218
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219
(eval $ac_link) 2>&5
6221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227
(exit $ac_status); }; }; then
6230
echo "$as_me: program exited with status $ac_status" >&5
6231
echo "$as_me: failed program was:" >&5
6232
sed 's/^/| /' conftest.$ac_ext >&5
6235
ac_cv_header_stdc=no
6237
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6241
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6242
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6243
if test $ac_cv_header_stdc = yes; then
6245
cat >>confdefs.h <<\_ACEOF
6246
#define STDC_HEADERS 1
3675
6254
for ac_header in stddef.h stdlib.h string.h
3677
6256
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21123
23737
s,@host_cpu@,$host_cpu,;t t
21124
23738
s,@host_vendor@,$host_vendor,;t t
21125
23739
s,@host_os@,$host_os,;t t
23741
s,@EGREP@,$EGREP,;t t
23742
s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
23743
s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
23744
s,@GNULIB_CHOWN@,$GNULIB_CHOWN,;t t
23745
s,@GNULIB_CLOSE@,$GNULIB_CLOSE,;t t
23746
s,@GNULIB_DUP2@,$GNULIB_DUP2,;t t
23747
s,@GNULIB_DUP3@,$GNULIB_DUP3,;t t
23748
s,@GNULIB_ENVIRON@,$GNULIB_ENVIRON,;t t
23749
s,@GNULIB_EUIDACCESS@,$GNULIB_EUIDACCESS,;t t
23750
s,@GNULIB_FACCESSAT@,$GNULIB_FACCESSAT,;t t
23751
s,@GNULIB_FCHDIR@,$GNULIB_FCHDIR,;t t
23752
s,@GNULIB_FCHOWNAT@,$GNULIB_FCHOWNAT,;t t
23753
s,@GNULIB_FSYNC@,$GNULIB_FSYNC,;t t
23754
s,@GNULIB_FTRUNCATE@,$GNULIB_FTRUNCATE,;t t
23755
s,@GNULIB_GETCWD@,$GNULIB_GETCWD,;t t
23756
s,@GNULIB_GETDOMAINNAME@,$GNULIB_GETDOMAINNAME,;t t
23757
s,@GNULIB_GETDTABLESIZE@,$GNULIB_GETDTABLESIZE,;t t
23758
s,@GNULIB_GETHOSTNAME@,$GNULIB_GETHOSTNAME,;t t
23759
s,@GNULIB_GETLOGIN_R@,$GNULIB_GETLOGIN_R,;t t
23760
s,@GNULIB_GETPAGESIZE@,$GNULIB_GETPAGESIZE,;t t
23761
s,@GNULIB_GETUSERSHELL@,$GNULIB_GETUSERSHELL,;t t
23762
s,@GNULIB_LCHOWN@,$GNULIB_LCHOWN,;t t
23763
s,@GNULIB_LINK@,$GNULIB_LINK,;t t
23764
s,@GNULIB_LINKAT@,$GNULIB_LINKAT,;t t
23765
s,@GNULIB_LSEEK@,$GNULIB_LSEEK,;t t
23766
s,@GNULIB_PIPE2@,$GNULIB_PIPE2,;t t
23767
s,@GNULIB_READLINK@,$GNULIB_READLINK,;t t
23768
s,@GNULIB_READLINKAT@,$GNULIB_READLINKAT,;t t
23769
s,@GNULIB_RMDIR@,$GNULIB_RMDIR,;t t
23770
s,@GNULIB_SLEEP@,$GNULIB_SLEEP,;t t
23771
s,@GNULIB_SYMLINK@,$GNULIB_SYMLINK,;t t
23772
s,@GNULIB_SYMLINKAT@,$GNULIB_SYMLINKAT,;t t
23773
s,@GNULIB_UNISTD_H_GETOPT@,$GNULIB_UNISTD_H_GETOPT,;t t
23774
s,@GNULIB_UNISTD_H_SIGPIPE@,$GNULIB_UNISTD_H_SIGPIPE,;t t
23775
s,@GNULIB_UNLINK@,$GNULIB_UNLINK,;t t
23776
s,@GNULIB_UNLINKAT@,$GNULIB_UNLINKAT,;t t
23777
s,@GNULIB_WRITE@,$GNULIB_WRITE,;t t
23778
s,@HAVE_DUP2@,$HAVE_DUP2,;t t
23779
s,@HAVE_DUP3@,$HAVE_DUP3,;t t
23780
s,@HAVE_EUIDACCESS@,$HAVE_EUIDACCESS,;t t
23781
s,@HAVE_FACCESSAT@,$HAVE_FACCESSAT,;t t
23782
s,@HAVE_FCHOWNAT@,$HAVE_FCHOWNAT,;t t
23783
s,@HAVE_FSYNC@,$HAVE_FSYNC,;t t
23784
s,@HAVE_FTRUNCATE@,$HAVE_FTRUNCATE,;t t
23785
s,@HAVE_GETDOMAINNAME@,$HAVE_GETDOMAINNAME,;t t
23786
s,@HAVE_GETDTABLESIZE@,$HAVE_GETDTABLESIZE,;t t
23787
s,@HAVE_GETHOSTNAME@,$HAVE_GETHOSTNAME,;t t
23788
s,@HAVE_GETPAGESIZE@,$HAVE_GETPAGESIZE,;t t
23789
s,@HAVE_GETUSERSHELL@,$HAVE_GETUSERSHELL,;t t
23790
s,@HAVE_LINK@,$HAVE_LINK,;t t
23791
s,@HAVE_LINKAT@,$HAVE_LINKAT,;t t
23792
s,@HAVE_PIPE2@,$HAVE_PIPE2,;t t
23793
s,@HAVE_READLINK@,$HAVE_READLINK,;t t
23794
s,@HAVE_READLINKAT@,$HAVE_READLINKAT,;t t
23795
s,@HAVE_SLEEP@,$HAVE_SLEEP,;t t
23796
s,@HAVE_SYMLINK@,$HAVE_SYMLINK,;t t
23797
s,@HAVE_SYMLINKAT@,$HAVE_SYMLINKAT,;t t
23798
s,@HAVE_DECL_ENVIRON@,$HAVE_DECL_ENVIRON,;t t
23799
s,@HAVE_DECL_GETLOGIN_R@,$HAVE_DECL_GETLOGIN_R,;t t
23800
s,@HAVE_OS_H@,$HAVE_OS_H,;t t
23801
s,@HAVE_SYS_PARAM_H@,$HAVE_SYS_PARAM_H,;t t
23802
s,@HAVE_UNLINKAT@,$HAVE_UNLINKAT,;t t
23803
s,@REPLACE_CHOWN@,$REPLACE_CHOWN,;t t
23804
s,@REPLACE_CLOSE@,$REPLACE_CLOSE,;t t
23805
s,@REPLACE_DUP@,$REPLACE_DUP,;t t
23806
s,@REPLACE_DUP2@,$REPLACE_DUP2,;t t
23807
s,@REPLACE_FCHDIR@,$REPLACE_FCHDIR,;t t
23808
s,@REPLACE_FCHOWNAT@,$REPLACE_FCHOWNAT,;t t
23809
s,@REPLACE_GETCWD@,$REPLACE_GETCWD,;t t
23810
s,@REPLACE_GETPAGESIZE@,$REPLACE_GETPAGESIZE,;t t
23811
s,@REPLACE_LCHOWN@,$REPLACE_LCHOWN,;t t
23812
s,@REPLACE_LINK@,$REPLACE_LINK,;t t
23813
s,@REPLACE_LINKAT@,$REPLACE_LINKAT,;t t
23814
s,@REPLACE_LSEEK@,$REPLACE_LSEEK,;t t
23815
s,@REPLACE_READLINK@,$REPLACE_READLINK,;t t
23816
s,@REPLACE_RMDIR@,$REPLACE_RMDIR,;t t
23817
s,@REPLACE_SYMLINK@,$REPLACE_SYMLINK,;t t
23818
s,@REPLACE_UNLINK@,$REPLACE_UNLINK,;t t
23819
s,@REPLACE_UNLINKAT@,$REPLACE_UNLINKAT,;t t
23820
s,@REPLACE_WRITE@,$REPLACE_WRITE,;t t
23821
s,@UNISTD_H_HAVE_WINSOCK2_H@,$UNISTD_H_HAVE_WINSOCK2_H,;t t
23822
s,@UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@,$UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS,;t t
23823
s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
23824
s,@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@,$INCLUDE_NEXT_AS_FIRST_DIRECTIVE,;t t
23825
s,@PRAGMA_SYSTEM_HEADER@,$PRAGMA_SYSTEM_HEADER,;t t
23826
s,@NEXT_GETOPT_H@,$NEXT_GETOPT_H,;t t
23827
s,@NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@,$NEXT_AS_FIRST_DIRECTIVE_GETOPT_H,;t t
23828
s,@HAVE_GETOPT_H@,$HAVE_GETOPT_H,;t t
23829
s,@GETOPT_H@,$GETOPT_H,;t t
23830
s,@LIBINTL@,$LIBINTL,;t t
23831
s,@LTLIBINTL@,$LTLIBINTL,;t t
23832
s,@STDARG_H@,$STDARG_H,;t t
23833
s,@NEXT_STDARG_H@,$NEXT_STDARG_H,;t t
23834
s,@NEXT_AS_FIRST_DIRECTIVE_STDARG_H@,$NEXT_AS_FIRST_DIRECTIVE_STDARG_H,;t t
23835
s,@REPLACE_NULL@,$REPLACE_NULL,;t t
23836
s,@HAVE_WCHAR_T@,$HAVE_WCHAR_T,;t t
23837
s,@STDDEF_H@,$STDDEF_H,;t t
23838
s,@NEXT_STDDEF_H@,$NEXT_STDDEF_H,;t t
23839
s,@NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@,$NEXT_AS_FIRST_DIRECTIVE_STDDEF_H,;t t
23840
s,@NEXT_UNISTD_H@,$NEXT_UNISTD_H,;t t
23841
s,@NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@,$NEXT_AS_FIRST_DIRECTIVE_UNISTD_H,;t t
23842
s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
23843
s,@LN_S@,$LN_S,;t t
23844
s,@LIBOBJS@,$LIBOBJS,;t t
23845
s,@LIBLOUIS_CURRENT@,$LIBLOUIS_CURRENT,;t t
23846
s,@LIBLOUIS_REVISION@,$LIBLOUIS_REVISION,;t t
23847
s,@LIBLOUIS_AGE@,$LIBLOUIS_AGE,;t t
21126
23848
s,@SED@,$SED,;t t
21127
23849
s,@ECHO@,$ECHO,;t t
21128
23850
s,@AR@,$AR,;t t
21129
23851
s,@ac_ct_AR@,$ac_ct_AR,;t t
21130
s,@RANLIB@,$RANLIB,;t t
21131
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21132
23852
s,@DLLTOOL@,$DLLTOOL,;t t
21133
23853
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21134
23854
s,@AS@,$AS,;t t