5316
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5317
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5318
if test "${ac_cv_header_time+set}" = set; then
5319
echo $ECHO_N "(cached) $ECHO_C" >&6
5155
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5156
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5158
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5159
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5160
$as_echo_n "(cached) " >&6
5321
cat >conftest.$ac_ext <<_ACEOF
5324
cat confdefs.h >>conftest.$ac_ext
5325
cat >>conftest.$ac_ext <<_ACEOF
5162
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326
5163
/* end confdefs.h. */
5327
5164
#include <sys/types.h>
5328
#include <sys/time.h>
5334
if ((struct tm *) 0)
5340
rm -f conftest.$ac_objext
5341
if { (ac_try="$ac_compile"
5343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344
*) ac_try_echo=$ac_try;;
5346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347
(eval "$ac_compile") 2>conftest.er1
5349
grep -v '^ *+' conftest.er1 >conftest.err
5351
cat conftest.err >&5
5352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353
(exit $ac_status); } && {
5354
test -z "$ac_cxx_werror_flag" ||
5355
test ! -s conftest.err
5356
} && test -s conftest.$ac_objext; then
5357
ac_cv_header_time=yes
5359
echo "$as_me: failed program was:" >&5
5360
sed 's/^/| /' conftest.$ac_ext >&5
5362
ac_cv_header_time=no
5365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5368
echo "${ECHO_T}$ac_cv_header_time" >&6; }
5369
if test $ac_cv_header_time = yes; then
5371
cat >>confdefs.h <<\_ACEOF
5372
#define TIME_WITH_SYS_TIME 1
5176
if ac_fn_cxx_try_compile "$LINENO"; then :
5177
eval "$as_ac_Header=yes"
5179
eval "$as_ac_Header=no"
5181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183
eval ac_res=\$$as_ac_Header
5184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5185
$as_echo "$ac_res" >&6; }
5186
eval as_val=\$$as_ac_Header
5187
if test "x$as_val" = x""yes; then :
5188
cat >>confdefs.h <<_ACEOF
5189
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5192
ac_header_dirent=$ac_hdr; break
5196
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5197
if test $ac_header_dirent = dirent.h; then
5198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5199
$as_echo_n "checking for library containing opendir... " >&6; }
5200
if test "${ac_cv_search_opendir+set}" = set; then :
5201
$as_echo_n "(cached) " >&6
5203
ac_func_search_save_LIBS=$LIBS
5204
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205
/* end confdefs.h. */
5207
/* Override any GCC internal prototype to avoid an error.
5208
Use char because int might match the return type of a GCC
5209
builtin and then its argument prototype would still apply. */
5222
for ac_lib in '' dir; do
5223
if test -z "$ac_lib"; then
5224
ac_res="none required"
5227
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5229
if ac_fn_cxx_try_link "$LINENO"; then :
5230
ac_cv_search_opendir=$ac_res
5232
rm -f core conftest.err conftest.$ac_objext \
5234
if test "${ac_cv_search_opendir+set}" = set; then :
5238
if test "${ac_cv_search_opendir+set}" = set; then :
5241
ac_cv_search_opendir=no
5244
LIBS=$ac_func_search_save_LIBS
5246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5247
$as_echo "$ac_cv_search_opendir" >&6; }
5248
ac_res=$ac_cv_search_opendir
5249
if test "$ac_res" != no; then :
5250
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5256
$as_echo_n "checking for library containing opendir... " >&6; }
5257
if test "${ac_cv_search_opendir+set}" = set; then :
5258
$as_echo_n "(cached) " >&6
5260
ac_func_search_save_LIBS=$LIBS
5261
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262
/* end confdefs.h. */
5264
/* Override any GCC internal prototype to avoid an error.
5265
Use char because int might match the return type of a GCC
5266
builtin and then its argument prototype would still apply. */
5279
for ac_lib in '' x; do
5280
if test -z "$ac_lib"; then
5281
ac_res="none required"
5284
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5286
if ac_fn_cxx_try_link "$LINENO"; then :
5287
ac_cv_search_opendir=$ac_res
5289
rm -f core conftest.err conftest.$ac_objext \
5291
if test "${ac_cv_search_opendir+set}" = set; then :
5295
if test "${ac_cv_search_opendir+set}" = set; then :
5298
ac_cv_search_opendir=no
5301
LIBS=$ac_func_search_save_LIBS
5303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5304
$as_echo "$ac_cv_search_opendir" >&6; }
5305
ac_res=$ac_cv_search_opendir
5306
if test "$ac_res" != no; then :
5307
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5314
$as_echo_n "checking whether closedir returns void... " >&6; }
5315
if test "${ac_cv_func_closedir_void+set}" = set; then :
5316
$as_echo_n "(cached) " >&6
5318
if test "$cross_compiling" = yes; then :
5319
ac_cv_func_closedir_void=yes
5321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322
/* end confdefs.h. */
5323
$ac_includes_default
5324
#include <$ac_header_dirent>
5332
return closedir (opendir (".")) != 0;
5337
if ac_fn_cxx_try_run "$LINENO"; then :
5338
ac_cv_func_closedir_void=no
5340
ac_cv_func_closedir_void=yes
5342
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5343
conftest.$ac_objext conftest.beam conftest.$ac_ext
5347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5348
$as_echo "$ac_cv_func_closedir_void" >&6; }
5349
if test $ac_cv_func_closedir_void = yes; then
5351
$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
5356
$as_echo_n "checking for error_at_line... " >&6; }
5357
if test "${ac_cv_lib_error_at_line+set}" = set; then :
5358
$as_echo_n "(cached) " >&6
5360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361
/* end confdefs.h. */
5366
error_at_line (0, 0, "", 0, "an error occurred");
5371
if ac_fn_cxx_try_link "$LINENO"; then :
5372
ac_cv_lib_error_at_line=yes
5374
ac_cv_lib_error_at_line=no
5376
rm -f core conftest.err conftest.$ac_objext \
5377
conftest$ac_exeext conftest.$ac_ext
5379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
5380
$as_echo "$ac_cv_lib_error_at_line" >&6; }
5381
if test $ac_cv_lib_error_at_line = no; then
5382
case " $LIBOBJS " in
5383
*" error.$ac_objext "* ) ;;
5384
*) LIBOBJS="$LIBOBJS error.$ac_objext"
5390
for ac_header in vfork.h
5392
ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5393
if test "x$ac_cv_header_vfork_h" = x""yes; then :
5394
cat >>confdefs.h <<_ACEOF
5395
#define HAVE_VFORK_H 1
5402
for ac_func in fork vfork
5404
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5405
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5406
eval as_val=\$$as_ac_var
5407
if test "x$as_val" = x""yes; then :
5408
cat >>confdefs.h <<_ACEOF
5409
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5415
if test "x$ac_cv_func_fork" = xyes; then
5416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5417
$as_echo_n "checking for working fork... " >&6; }
5418
if test "${ac_cv_func_fork_works+set}" = set; then :
5419
$as_echo_n "(cached) " >&6
5421
if test "$cross_compiling" = yes; then :
5422
ac_cv_func_fork_works=cross
5424
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425
/* end confdefs.h. */
5426
$ac_includes_default
5431
/* By Ruediger Kuhlmann. */
5438
if ac_fn_cxx_try_run "$LINENO"; then :
5439
ac_cv_func_fork_works=yes
5441
ac_cv_func_fork_works=no
5443
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5444
conftest.$ac_objext conftest.beam conftest.$ac_ext
5448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5449
$as_echo "$ac_cv_func_fork_works" >&6; }
5452
ac_cv_func_fork_works=$ac_cv_func_fork
5454
if test "x$ac_cv_func_fork_works" = xcross; then
5456
*-*-amigaos* | *-*-msdosdjgpp*)
5457
# Override, as these systems have only a dummy fork() stub
5458
ac_cv_func_fork_works=no
5461
ac_cv_func_fork_works=yes
5464
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5465
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5467
ac_cv_func_vfork_works=$ac_cv_func_vfork
5468
if test "x$ac_cv_func_vfork" = xyes; then
5469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5470
$as_echo_n "checking for working vfork... " >&6; }
5471
if test "${ac_cv_func_vfork_works+set}" = set; then :
5472
$as_echo_n "(cached) " >&6
5474
if test "$cross_compiling" = yes; then :
5475
ac_cv_func_vfork_works=cross
5477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478
/* end confdefs.h. */
5479
/* Thanks to Paul Eggert for this test. */
5480
$ac_includes_default
5481
#include <sys/wait.h>
5485
/* On some sparc systems, changes by the child to local and incoming
5486
argument registers are propagated back to the parent. The compiler
5487
is told about this with #include <vfork.h>, but some compilers
5488
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5489
static variable whose address is put into a register that is
5490
clobbered by the vfork. */
5493
sparc_address_test (int arg)
5495
sparc_address_test (arg) int arg;
5516
pid_t parent = getpid ();
5519
sparc_address_test (0);
5524
/* Here is another test for sparc vfork register problems. This
5525
test uses lots of local variables, at least as many local
5526
variables as main has allocated so far including compiler
5527
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5528
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5529
reuse the register of parent for one of the local variables,
5530
since it will think that parent can't possibly be used any more
5531
in this routine. Assigning to the local variable will thus
5532
munge parent in the parent process. */
5534
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5535
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5536
/* Convince the compiler that p..p7 are live; otherwise, it might
5537
use the same hardware register for all 8 local variables. */
5538
if (p != p1 || p != p2 || p != p3 || p != p4
5539
|| p != p5 || p != p6 || p != p7)
5542
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5543
from child file descriptors. If the child closes a descriptor
5544
before it execs or exits, this munges the parent's descriptor
5545
as well. Test for this by closing stdout in the child. */
5546
_exit(close(fileno(stdout)) != 0);
5551
while (wait(&status) != child)
5554
/* Was there some problem with vforking? */
5557
/* Did the child fail? (This shouldn't happen.) */
5560
/* Did the vfork/compiler bug occur? */
5561
|| parent != getpid()
5563
/* Did the file descriptor bug occur? */
5564
|| fstat(fileno(stdout), &st) != 0
5569
if ac_fn_cxx_try_run "$LINENO"; then :
5570
ac_cv_func_vfork_works=yes
5572
ac_cv_func_vfork_works=no
5574
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5575
conftest.$ac_objext conftest.beam conftest.$ac_ext
5579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5580
$as_echo "$ac_cv_func_vfork_works" >&6; }
5583
if test "x$ac_cv_func_fork_works" = xcross; then
5584
ac_cv_func_vfork_works=$ac_cv_func_vfork
5585
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5586
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5589
if test "x$ac_cv_func_vfork_works" = xyes; then
5591
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5595
$as_echo "#define vfork fork" >>confdefs.h
5598
if test "x$ac_cv_func_fork_works" = xyes; then
5600
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5604
for ac_header in stdlib.h
5606
ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5607
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
5608
cat >>confdefs.h <<_ACEOF
5609
#define HAVE_STDLIB_H 1
5616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5617
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5618
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
5619
$as_echo_n "(cached) " >&6
5621
if test "$cross_compiling" = yes; then :
5622
ac_cv_func_malloc_0_nonnull=no
5624
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625
/* end confdefs.h. */
5626
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
5627
# include <stdlib.h>
5635
return ! malloc (0);
5640
if ac_fn_cxx_try_run "$LINENO"; then :
5641
ac_cv_func_malloc_0_nonnull=yes
5643
ac_cv_func_malloc_0_nonnull=no
5645
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5646
conftest.$ac_objext conftest.beam conftest.$ac_ext
5650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5651
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5652
if test $ac_cv_func_malloc_0_nonnull = yes; then :
5654
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5657
$as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5659
case " $LIBOBJS " in
5660
*" malloc.$ac_objext "* ) ;;
5661
*) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5666
$as_echo "#define malloc rpl_malloc" >>confdefs.h
5671
for ac_header in stdlib.h
5673
ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5674
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
5675
cat >>confdefs.h <<_ACEOF
5676
#define HAVE_STDLIB_H 1
5683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5684
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5685
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
5686
$as_echo_n "(cached) " >&6
5688
if test "$cross_compiling" = yes; then :
5689
ac_cv_func_realloc_0_nonnull=no
5691
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692
/* end confdefs.h. */
5693
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
5694
# include <stdlib.h>
5702
return ! realloc (0, 0);
5707
if ac_fn_cxx_try_run "$LINENO"; then :
5708
ac_cv_func_realloc_0_nonnull=yes
5710
ac_cv_func_realloc_0_nonnull=no
5712
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5713
conftest.$ac_objext conftest.beam conftest.$ac_ext
5717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5718
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5719
if test $ac_cv_func_realloc_0_nonnull = yes; then :
5721
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5724
$as_echo "#define HAVE_REALLOC 0" >>confdefs.h
5726
case " $LIBOBJS " in
5727
*" realloc.$ac_objext "* ) ;;
5728
*) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5733
$as_echo "#define realloc rpl_realloc" >>confdefs.h
5738
for ac_header in sys/select.h sys/socket.h
5740
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5741
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5742
eval as_val=\$$as_ac_Header
5743
if test "x$as_val" = x""yes; then :
5744
cat >>confdefs.h <<_ACEOF
5745
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
5753
$as_echo_n "checking types of arguments for select... " >&6; }
5754
if test "${ac_cv_func_select_args+set}" = set; then :
5755
$as_echo_n "(cached) " >&6
5757
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5758
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
5759
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
5760
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761
/* end confdefs.h. */
5762
$ac_includes_default
5763
#ifdef HAVE_SYS_SELECT_H
5764
# include <sys/select.h>
5766
#ifdef HAVE_SYS_SOCKET_H
5767
# include <sys/socket.h>
5773
extern int select ($ac_arg1,
5774
$ac_arg234, $ac_arg234, $ac_arg234,
5780
if ac_fn_cxx_try_compile "$LINENO"; then :
5781
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787
# Provide a safe default value.
5788
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
5791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
5792
$as_echo "$ac_cv_func_select_args" >&6; }
5793
ac_save_IFS=$IFS; IFS=','
5794
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5798
cat >>confdefs.h <<_ACEOF
5799
#define SELECT_TYPE_ARG1 $1
5803
cat >>confdefs.h <<_ACEOF
5804
#define SELECT_TYPE_ARG234 ($2)
5808
cat >>confdefs.h <<_ACEOF
5809
#define SELECT_TYPE_ARG5 ($3)
5814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5815
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5816
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5817
$as_echo_n "(cached) " >&6
5819
rm -f conftest.sym conftest.file
5821
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5822
if test "$cross_compiling" = yes; then :
5823
ac_cv_func_lstat_dereferences_slashed_symlink=no
5825
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826
/* end confdefs.h. */
5827
$ac_includes_default
5832
/* Linux will dereference the symlink and fail, as required by POSIX.
5833
That is better in the sense that it means we will not
5834
have to compile and use the lstat wrapper. */
5835
return lstat ("conftest.sym/", &sbuf) == 0;
5840
if ac_fn_cxx_try_run "$LINENO"; then :
5841
ac_cv_func_lstat_dereferences_slashed_symlink=yes
5843
ac_cv_func_lstat_dereferences_slashed_symlink=no
5845
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5846
conftest.$ac_objext conftest.beam conftest.$ac_ext
5850
# If the `ln -s' command failed, then we probably don't even
5851
# have an lstat function.
5852
ac_cv_func_lstat_dereferences_slashed_symlink=no
5854
rm -f conftest.sym conftest.file
5857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5858
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5860
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5862
cat >>confdefs.h <<_ACEOF
5863
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5867
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5868
case " $LIBOBJS " in
5869
*" lstat.$ac_objext "* ) ;;
5870
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
5877
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
5878
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
5879
$as_echo_n "(cached) " >&6
5881
if test "$cross_compiling" = yes; then :
5882
ac_cv_func_stat_empty_string_bug=yes
5884
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885
/* end confdefs.h. */
5886
$ac_includes_default
5891
return stat ("", &sbuf) == 0;
5896
if ac_fn_cxx_try_run "$LINENO"; then :
5897
ac_cv_func_stat_empty_string_bug=no
5899
ac_cv_func_stat_empty_string_bug=yes
5901
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5902
conftest.$ac_objext conftest.beam conftest.$ac_ext
5906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
5907
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
5908
if test $ac_cv_func_stat_empty_string_bug = yes; then
5909
case " $LIBOBJS " in
5910
*" stat.$ac_objext "* ) ;;
5911
*) LIBOBJS="$LIBOBJS stat.$ac_objext"
5916
cat >>confdefs.h <<_ACEOF
5917
#define HAVE_STAT_EMPTY_STRING_BUG 1
5379
5923
for ac_func in basename
5381
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5382
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5383
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5384
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5385
echo $ECHO_N "(cached) $ECHO_C" >&6
5387
cat >conftest.$ac_ext <<_ACEOF
5390
cat confdefs.h >>conftest.$ac_ext
5391
cat >>conftest.$ac_ext <<_ACEOF
5392
/* end confdefs.h. */
5393
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5394
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5395
#define $ac_func innocuous_$ac_func
5397
/* System header to define __stub macros and hopefully few prototypes,
5398
which can conflict with char $ac_func (); below.
5399
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400
<limits.h> exists even on freestanding compilers. */
5403
# include <limits.h>
5405
# include <assert.h>
5410
/* Override any GCC internal prototype to avoid an error.
5411
Use char because int might match the return type of a GCC
5412
builtin and then its argument prototype would still apply. */
5417
/* The GNU C library defines this for functions which it implements
5418
to always fail with ENOSYS. Some functions are actually named
5419
something starting with __ and the normal name is an alias. */
5420
#if defined __stub_$ac_func || defined __stub___$ac_func
5432
rm -f conftest.$ac_objext conftest$ac_exeext
5433
if { (ac_try="$ac_link"
5435
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436
*) ac_try_echo=$ac_try;;
5438
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439
(eval "$ac_link") 2>conftest.er1
5441
grep -v '^ *+' conftest.er1 >conftest.err
5443
cat conftest.err >&5
5444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445
(exit $ac_status); } && {
5446
test -z "$ac_cxx_werror_flag" ||
5447
test ! -s conftest.err
5448
} && test -s conftest$ac_exeext &&
5449
$as_test_x conftest$ac_exeext; then
5450
eval "$as_ac_var=yes"
5452
echo "$as_me: failed program was:" >&5
5453
sed 's/^/| /' conftest.$ac_ext >&5
5455
eval "$as_ac_var=no"
5458
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5459
conftest$ac_exeext conftest.$ac_ext
5461
ac_res=`eval echo '${'$as_ac_var'}'`
5462
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5463
echo "${ECHO_T}$ac_res" >&6; }
5464
if test `eval echo '${'$as_ac_var'}'` = yes; then
5925
ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
5926
if test "x$ac_cv_func_basename" = x""yes; then :
5465
5927
cat >>confdefs.h <<_ACEOF
5466
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5928
#define HAVE_BASENAME 1
5470
{ echo "$as_me:$LINENO: checking for basename in -lgen" >&5
5471
echo $ECHO_N "checking for basename in -lgen... $ECHO_C" >&6; }
5472
if test "${ac_cv_lib_gen_basename+set}" = set; then
5473
echo $ECHO_N "(cached) $ECHO_C" >&6
5932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
5933
$as_echo_n "checking for basename in -lgen... " >&6; }
5934
if test "${ac_cv_lib_gen_basename+set}" = set; then :
5935
$as_echo_n "(cached) " >&6
5475
5937
ac_check_lib_save_LIBS=$LIBS
5476
5938
LIBS="-lgen $LIBS"
5477
cat >conftest.$ac_ext <<_ACEOF
5480
cat confdefs.h >>conftest.$ac_ext
5481
cat >>conftest.$ac_ext <<_ACEOF
5939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482
5940
/* end confdefs.h. */
5484
5942
/* Override any GCC internal prototype to avoid an error.
9029
{ echo "$as_me:$LINENO: checking whether to have RANDR (The X Resize and Rotate Extension) support" >&5
9030
echo $ECHO_N "checking whether to have RANDR (The X Resize and Rotate Extension) support... $ECHO_C" >&6; }
8139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build support for the Xinerama extension" >&5
8140
$as_echo_n "checking whether to build support for the Xinerama extension... " >&6; }
8141
# Check whether --enable-xinerama was given.
8142
if test "${enable_xinerama+set}" = set; then :
8143
enableval=$enable_xinerama;
8148
if test "x$enableval" = "xyes"; then
8149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8150
$as_echo "yes" >&6; }
8151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5
8152
$as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
8153
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then :
8154
$as_echo_n "(cached) " >&6
8156
ac_check_lib_save_LIBS=$LIBS
8157
LIBS="-lXinerama $LIBS"
8158
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159
/* end confdefs.h. */
8161
/* Override any GCC internal prototype to avoid an error.
8162
Use char because int might match the return type of a GCC
8163
builtin and then its argument prototype would still apply. */
8167
char XineramaQueryScreens ();
8171
return XineramaQueryScreens ();
8176
if ac_fn_cxx_try_link "$LINENO"; then :
8177
ac_cv_lib_Xinerama_XineramaQueryScreens=yes
8179
ac_cv_lib_Xinerama_XineramaQueryScreens=no
8181
rm -f core conftest.err conftest.$ac_objext \
8182
conftest$ac_exeext conftest.$ac_ext
8183
LIBS=$ac_check_lib_save_LIBS
8185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
8186
$as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
8187
if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = x""yes; then :
8188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xinerama.h" >&5
8189
$as_echo_n "checking for X11/extensions/Xinerama.h... " >&6; }
8190
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191
/* end confdefs.h. */
8192
#include <X11/Xlib.h>
8193
#include <X11/Xutil.h>
8194
#include <X11/extensions/Xinerama.h>
8199
XineramaQueryScreens(0, 0)
8204
if ac_fn_cxx_try_compile "$LINENO"; then :
8205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8206
$as_echo "yes" >&6; }
8208
$as_echo "#define XINERAMA 1" >>confdefs.h
8210
LIBS="$LIBS -lXinerama"
8212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213
$as_echo "no" >&6; }
8215
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220
$as_echo "no" >&6; }
8221
CONFIGOPTS="$CONFIGOPTS --disable-xinerama"
8225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build support for the XShape extension" >&5
8226
$as_echo_n "checking whether to build support for the XShape extension... " >&6; }
8227
# Check whether --enable-shape was given.
8228
if test "${enable_shape+set}" = set; then :
8229
enableval=$enable_shape;
8234
if test "x$enableval" = "xyes"; then
8235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8236
$as_echo "yes" >&6; }
8237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineShape in -lXext" >&5
8238
$as_echo_n "checking for XShapeCombineShape in -lXext... " >&6; }
8239
if test "${ac_cv_lib_Xext_XShapeCombineShape+set}" = set; then :
8240
$as_echo_n "(cached) " >&6
8242
ac_check_lib_save_LIBS=$LIBS
8244
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245
/* end confdefs.h. */
8247
/* Override any GCC internal prototype to avoid an error.
8248
Use char because int might match the return type of a GCC
8249
builtin and then its argument prototype would still apply. */
8253
char XShapeCombineShape ();
8257
return XShapeCombineShape ();
8262
if ac_fn_cxx_try_link "$LINENO"; then :
8263
ac_cv_lib_Xext_XShapeCombineShape=yes
8265
ac_cv_lib_Xext_XShapeCombineShape=no
8267
rm -f core conftest.err conftest.$ac_objext \
8268
conftest$ac_exeext conftest.$ac_ext
8269
LIBS=$ac_check_lib_save_LIBS
8271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5
8272
$as_echo "$ac_cv_lib_Xext_XShapeCombineShape" >&6; }
8273
if test "x$ac_cv_lib_Xext_XShapeCombineShape" = x""yes; then :
8274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/shape.h" >&5
8275
$as_echo_n "checking for X11/extensions/shape.h... " >&6; }
8276
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277
/* end confdefs.h. */
8278
#include <X11/Xlib.h>
8279
#include <X11/Xutil.h>
8280
#include <X11/extensions/shape.h>
8290
if ac_fn_cxx_try_compile "$LINENO"; then :
8291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8292
$as_echo "yes" >&6; }
8294
$as_echo "#define SHAPE 1" >>confdefs.h
8297
FEATURES="$FEATURES XShape"
8299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300
$as_echo "no" >&6; }
8302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307
$as_echo "no" >&6; }
8308
CONFIGOPTS="$CONFIGOPTS --disable-shape"
8314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build support for the Xrandr (X resize and rotate) extension" >&5
8315
$as_echo_n "checking whether to build support for the Xrandr (X resize and rotate) extension... " >&6; }
9031
8316
# Check whether --enable-randr was given.
9032
if test "${enable_randr+set}" = set; then
9033
enableval=$enable_randr; if test x$enableval = "xyes"; then
9034
{ echo "$as_me:$LINENO: result: yes" >&5
9035
echo "${ECHO_T}yes" >&6; }
9036
{ echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
9037
echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6; }
9038
if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
9039
echo $ECHO_N "(cached) $ECHO_C" >&6
9041
ac_check_lib_save_LIBS=$LIBS
9042
LIBS="-lXrandr $LIBS"
9043
cat >conftest.$ac_ext <<_ACEOF
9046
cat confdefs.h >>conftest.$ac_ext
9047
cat >>conftest.$ac_ext <<_ACEOF
9048
/* end confdefs.h. */
9050
/* Override any GCC internal prototype to avoid an error.
9051
Use char because int might match the return type of a GCC
9052
builtin and then its argument prototype would still apply. */
9056
char XRRQueryExtension ();
9060
return XRRQueryExtension ();
9065
rm -f conftest.$ac_objext conftest$ac_exeext
9066
if { (ac_try="$ac_link"
9068
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069
*) ac_try_echo=$ac_try;;
9071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072
(eval "$ac_link") 2>conftest.er1
9074
grep -v '^ *+' conftest.er1 >conftest.err
9076
cat conftest.err >&5
9077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078
(exit $ac_status); } && {
9079
test -z "$ac_cxx_werror_flag" ||
9080
test ! -s conftest.err
9081
} && test -s conftest$ac_exeext &&
9082
$as_test_x conftest$ac_exeext; then
9083
ac_cv_lib_Xrandr_XRRQueryExtension=yes
9085
echo "$as_me: failed program was:" >&5
9086
sed 's/^/| /' conftest.$ac_ext >&5
9088
ac_cv_lib_Xrandr_XRRQueryExtension=no
9091
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9092
conftest$ac_exeext conftest.$ac_ext
9093
LIBS=$ac_check_lib_save_LIBS
9095
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
9096
echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
9097
if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
9099
cat >>confdefs.h <<\_ACEOF
9100
#define HAVE_RANDR 1
9103
LIBS="$LIBS -lXrandr"
9107
{ echo "$as_me:$LINENO: result: no" >&5
9108
echo "${ECHO_T}no" >&6; }
9111
{ echo "$as_me:$LINENO: result: yes" >&5
9112
echo "${ECHO_T}yes" >&6; }
9113
{ echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
9114
echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6; }
9115
if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
9116
echo $ECHO_N "(cached) $ECHO_C" >&6
9118
ac_check_lib_save_LIBS=$LIBS
9119
LIBS="-lXrandr $LIBS"
9120
cat >conftest.$ac_ext <<_ACEOF
9123
cat confdefs.h >>conftest.$ac_ext
9124
cat >>conftest.$ac_ext <<_ACEOF
9125
/* end confdefs.h. */
9127
/* Override any GCC internal prototype to avoid an error.
9128
Use char because int might match the return type of a GCC
9129
builtin and then its argument prototype would still apply. */
9133
char XRRQueryExtension ();
9137
return XRRQueryExtension ();
9142
rm -f conftest.$ac_objext conftest$ac_exeext
9143
if { (ac_try="$ac_link"
9145
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146
*) ac_try_echo=$ac_try;;
9148
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149
(eval "$ac_link") 2>conftest.er1
9151
grep -v '^ *+' conftest.er1 >conftest.err
9153
cat conftest.err >&5
9154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155
(exit $ac_status); } && {
9156
test -z "$ac_cxx_werror_flag" ||
9157
test ! -s conftest.err
9158
} && test -s conftest$ac_exeext &&
9159
$as_test_x conftest$ac_exeext; then
9160
ac_cv_lib_Xrandr_XRRQueryExtension=yes
9162
echo "$as_me: failed program was:" >&5
9163
sed 's/^/| /' conftest.$ac_ext >&5
9165
ac_cv_lib_Xrandr_XRRQueryExtension=no
9168
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9169
conftest$ac_exeext conftest.$ac_ext
9170
LIBS=$ac_check_lib_save_LIBS
9172
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
9173
echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
9174
if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
9176
cat >>confdefs.h <<\_ACEOF
9177
#define HAVE_RANDR 1
9180
LIBS="$LIBS -lXrandr"
9187
{ echo "$as_me:$LINENO: checking whether to have RANDR 1.2 support" >&5
9188
echo $ECHO_N "checking whether to have RANDR 1.2 support... $ECHO_C" >&6; }
8317
if test "${enable_randr+set}" = set; then :
8318
enableval=$enable_randr;
8323
if test "x$enableval" = "xyes"; then
8324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8325
$as_echo "yes" >&6; }
8326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
8327
$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
8328
if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
8329
$as_echo_n "(cached) " >&6
8331
ac_check_lib_save_LIBS=$LIBS
8332
LIBS="-lXrandr $LIBS"
8333
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334
/* end confdefs.h. */
8336
/* Override any GCC internal prototype to avoid an error.
8337
Use char because int might match the return type of a GCC
8338
builtin and then its argument prototype would still apply. */
8342
char XRRQueryExtension ();
8346
return XRRQueryExtension ();
8351
if ac_fn_cxx_try_link "$LINENO"; then :
8352
ac_cv_lib_Xrandr_XRRQueryExtension=yes
8354
ac_cv_lib_Xrandr_XRRQueryExtension=no
8356
rm -f core conftest.err conftest.$ac_objext \
8357
conftest$ac_exeext conftest.$ac_ext
8358
LIBS=$ac_check_lib_save_LIBS
8360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
8361
$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
8362
if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
8363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xrandr.h" >&5
8364
$as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; }
8365
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366
/* end confdefs.h. */
8367
#include <X11/Xlib.h>
8368
#include <X11/Xutil.h>
8369
#include <X11/extensions/Xrandr.h>
8374
XRRQueryExtension(0, 0, 0)
8379
if ac_fn_cxx_try_compile "$LINENO"; then :
8380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8381
$as_echo "yes" >&6; }
8383
$as_echo "#define HAVE_RANDR 1" >>confdefs.h
8385
LIBS="$LIBS -lXrandr"
8387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388
$as_echo "no" >&6; }
8390
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395
$as_echo "no" >&6; }
8396
CONFIGOPTS="$CONFIGOPTS --disable-randr"
8400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to have RANDR 1.2 support" >&5
8401
$as_echo_n "checking whether to have RANDR 1.2 support... " >&6; }
9189
8402
# Check whether --enable-randr1.2 was given.
9190
if test "${enable_randr1_2+set}" = set; then
9191
enableval=$enable_randr1_2; if test x$enableval = "xyes"; then
9192
{ echo "$as_me:$LINENO: result: yes" >&5
9193
echo "${ECHO_T}yes" >&6; }
9194
{ echo "$as_me:$LINENO: checking for XRRUpdateConfiguration in -lXrandr" >&5
9195
echo $ECHO_N "checking for XRRUpdateConfiguration in -lXrandr... $ECHO_C" >&6; }
9196
if test "${ac_cv_lib_Xrandr_XRRUpdateConfiguration+set}" = set; then
9197
echo $ECHO_N "(cached) $ECHO_C" >&6
9199
ac_check_lib_save_LIBS=$LIBS
9200
LIBS="-lXrandr $LIBS"
9201
cat >conftest.$ac_ext <<_ACEOF
9204
cat confdefs.h >>conftest.$ac_ext
9205
cat >>conftest.$ac_ext <<_ACEOF
9206
/* end confdefs.h. */
9208
/* Override any GCC internal prototype to avoid an error.
9209
Use char because int might match the return type of a GCC
9210
builtin and then its argument prototype would still apply. */
9214
char XRRUpdateConfiguration ();
9218
return XRRUpdateConfiguration ();
9223
rm -f conftest.$ac_objext conftest$ac_exeext
9224
if { (ac_try="$ac_link"
9226
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227
*) ac_try_echo=$ac_try;;
9229
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230
(eval "$ac_link") 2>conftest.er1
9232
grep -v '^ *+' conftest.er1 >conftest.err
9234
cat conftest.err >&5
9235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236
(exit $ac_status); } && {
9237
test -z "$ac_cxx_werror_flag" ||
9238
test ! -s conftest.err
9239
} && test -s conftest$ac_exeext &&
9240
$as_test_x conftest$ac_exeext; then
9241
ac_cv_lib_Xrandr_XRRUpdateConfiguration=yes
9243
echo "$as_me: failed program was:" >&5
9244
sed 's/^/| /' conftest.$ac_ext >&5
9246
ac_cv_lib_Xrandr_XRRUpdateConfiguration=no
9249
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9250
conftest$ac_exeext conftest.$ac_ext
9251
LIBS=$ac_check_lib_save_LIBS
9253
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&5
9254
echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&6; }
9255
if test $ac_cv_lib_Xrandr_XRRUpdateConfiguration = yes; then
9257
cat >>confdefs.h <<\_ACEOF
9258
#define HAVE_RANDR1_2 1
9264
{ echo "$as_me:$LINENO: result: no" >&5
9265
echo "${ECHO_T}no" >&6; }
9268
{ echo "$as_me:$LINENO: result: yes" >&5
9269
echo "${ECHO_T}yes" >&6; }
9270
{ echo "$as_me:$LINENO: checking for XRRUpdateConfiguration in -lXrandr" >&5
9271
echo $ECHO_N "checking for XRRUpdateConfiguration in -lXrandr... $ECHO_C" >&6; }
9272
if test "${ac_cv_lib_Xrandr_XRRUpdateConfiguration+set}" = set; then
9273
echo $ECHO_N "(cached) $ECHO_C" >&6
9275
ac_check_lib_save_LIBS=$LIBS
9276
LIBS="-lXrandr $LIBS"
9277
cat >conftest.$ac_ext <<_ACEOF
9280
cat confdefs.h >>conftest.$ac_ext
9281
cat >>conftest.$ac_ext <<_ACEOF
9282
/* end confdefs.h. */
9284
/* Override any GCC internal prototype to avoid an error.
9285
Use char because int might match the return type of a GCC
9286
builtin and then its argument prototype would still apply. */
9290
char XRRUpdateConfiguration ();
9294
return XRRUpdateConfiguration ();
9299
rm -f conftest.$ac_objext conftest$ac_exeext
9300
if { (ac_try="$ac_link"
9302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303
*) ac_try_echo=$ac_try;;
9305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306
(eval "$ac_link") 2>conftest.er1
9308
grep -v '^ *+' conftest.er1 >conftest.err
9310
cat conftest.err >&5
9311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312
(exit $ac_status); } && {
9313
test -z "$ac_cxx_werror_flag" ||
9314
test ! -s conftest.err
9315
} && test -s conftest$ac_exeext &&
9316
$as_test_x conftest$ac_exeext; then
9317
ac_cv_lib_Xrandr_XRRUpdateConfiguration=yes
9319
echo "$as_me: failed program was:" >&5
9320
sed 's/^/| /' conftest.$ac_ext >&5
9322
ac_cv_lib_Xrandr_XRRUpdateConfiguration=no
9325
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9326
conftest$ac_exeext conftest.$ac_ext
9327
LIBS=$ac_check_lib_save_LIBS
9329
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&5
9330
echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&6; }
9331
if test $ac_cv_lib_Xrandr_XRRUpdateConfiguration = yes; then
9333
cat >>confdefs.h <<\_ACEOF
9334
#define HAVE_RANDR1_2 1
9344
{ echo "$as_me:$LINENO: checking whether to build support for the Xinerama extension" >&5
9345
echo $ECHO_N "checking whether to build support for the Xinerama extension... $ECHO_C" >&6; }
9346
# Check whether --enable-xinerama was given.
9347
if test "${enable_xinerama+set}" = set; then
9348
enableval=$enable_xinerama; if test x$enableval = "xyes"; then
9349
{ echo "$as_me:$LINENO: result: yes" >&5
9350
echo "${ECHO_T}yes" >&6; }
9351
{ echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
9352
echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
9353
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
9354
echo $ECHO_N "(cached) $ECHO_C" >&6
9356
ac_check_lib_save_LIBS=$LIBS
9357
LIBS="-lXinerama $LIBS"
9358
cat >conftest.$ac_ext <<_ACEOF
9361
cat confdefs.h >>conftest.$ac_ext
9362
cat >>conftest.$ac_ext <<_ACEOF
9363
/* end confdefs.h. */
9365
/* Override any GCC internal prototype to avoid an error.
9366
Use char because int might match the return type of a GCC
9367
builtin and then its argument prototype would still apply. */
9371
char XineramaQueryScreens ();
9375
return XineramaQueryScreens ();
9380
rm -f conftest.$ac_objext conftest$ac_exeext
9381
if { (ac_try="$ac_link"
9383
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384
*) ac_try_echo=$ac_try;;
9386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387
(eval "$ac_link") 2>conftest.er1
9389
grep -v '^ *+' conftest.er1 >conftest.err
9391
cat conftest.err >&5
9392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393
(exit $ac_status); } && {
9394
test -z "$ac_cxx_werror_flag" ||
9395
test ! -s conftest.err
9396
} && test -s conftest$ac_exeext &&
9397
$as_test_x conftest$ac_exeext; then
9398
ac_cv_lib_Xinerama_XineramaQueryScreens=yes
9400
echo "$as_me: failed program was:" >&5
9401
sed 's/^/| /' conftest.$ac_ext >&5
9403
ac_cv_lib_Xinerama_XineramaQueryScreens=no
9406
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9407
conftest$ac_exeext conftest.$ac_ext
9408
LIBS=$ac_check_lib_save_LIBS
9410
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
9411
echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
9412
if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
9414
cat >>confdefs.h <<\_ACEOF
9418
LIBS="$LIBS -lXinerama"
9422
{ echo "$as_me:$LINENO: result: no" >&5
9423
echo "${ECHO_T}no" >&6; }
9426
{ echo "$as_me:$LINENO: result: yes" >&5
9427
echo "${ECHO_T}yes" >&6; }
9428
{ echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
9429
echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
9430
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
9431
echo $ECHO_N "(cached) $ECHO_C" >&6
9433
ac_check_lib_save_LIBS=$LIBS
9434
LIBS="-lXinerama $LIBS"
9435
cat >conftest.$ac_ext <<_ACEOF
9438
cat confdefs.h >>conftest.$ac_ext
9439
cat >>conftest.$ac_ext <<_ACEOF
9440
/* end confdefs.h. */
9442
/* Override any GCC internal prototype to avoid an error.
9443
Use char because int might match the return type of a GCC
9444
builtin and then its argument prototype would still apply. */
9448
char XineramaQueryScreens ();
9452
return XineramaQueryScreens ();
9457
rm -f conftest.$ac_objext conftest$ac_exeext
9458
if { (ac_try="$ac_link"
9460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461
*) ac_try_echo=$ac_try;;
9463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464
(eval "$ac_link") 2>conftest.er1
9466
grep -v '^ *+' conftest.er1 >conftest.err
9468
cat conftest.err >&5
9469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470
(exit $ac_status); } && {
9471
test -z "$ac_cxx_werror_flag" ||
9472
test ! -s conftest.err
9473
} && test -s conftest$ac_exeext &&
9474
$as_test_x conftest$ac_exeext; then
9475
ac_cv_lib_Xinerama_XineramaQueryScreens=yes
9477
echo "$as_me: failed program was:" >&5
9478
sed 's/^/| /' conftest.$ac_ext >&5
9480
ac_cv_lib_Xinerama_XineramaQueryScreens=no
9483
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9484
conftest$ac_exeext conftest.$ac_ext
9485
LIBS=$ac_check_lib_save_LIBS
9487
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
9488
echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
9489
if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
9491
cat >>confdefs.h <<\_ACEOF
9495
LIBS="$LIBS -lXinerama"
8403
if test "${enable_randr1_2+set}" = set; then :
8404
enableval=$enable_randr1_2;
8409
if test "x$enableval" = "xyes"; then
8410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8411
$as_echo "yes" >&6; }
8412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
8413
$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
8414
if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
8415
$as_echo_n "(cached) " >&6
8417
ac_check_lib_save_LIBS=$LIBS
8418
LIBS="-lXrandr $LIBS"
8419
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420
/* end confdefs.h. */
8422
/* Override any GCC internal prototype to avoid an error.
8423
Use char because int might match the return type of a GCC
8424
builtin and then its argument prototype would still apply. */
8428
char XRRQueryExtension ();
8432
return XRRQueryExtension ();
8437
if ac_fn_cxx_try_link "$LINENO"; then :
8438
ac_cv_lib_Xrandr_XRRQueryExtension=yes
8440
ac_cv_lib_Xrandr_XRRQueryExtension=no
8442
rm -f core conftest.err conftest.$ac_objext \
8443
conftest$ac_exeext conftest.$ac_ext
8444
LIBS=$ac_check_lib_save_LIBS
8446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
8447
$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
8448
if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
8449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xrandr.h" >&5
8450
$as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; }
8451
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452
/* end confdefs.h. */
8453
#include <X11/Xlib.h>
8454
#include <X11/Xutil.h>
8455
#include <X11/extensions/Xrandr.h>
8460
XRRUpdateConfiguration(0)
8465
if ac_fn_cxx_try_compile "$LINENO"; then :
8466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8467
$as_echo "yes" >&6; }
8469
$as_echo "#define HAVE_RANDR1_2 1" >>confdefs.h
8471
LIBS="$LIBS -lXrandr"
8473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474
$as_echo "no" >&6; }
8476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481
$as_echo "no" >&6; }
8482
CONFIGOPTS="$CONFIGOPTS --disable-randr1.2"
8488
# AC_MSG_CHECKING([whether to have RANDR 1.2 support])
8491
# [ --enable-randr1.2 RANDR 1.2 support ([default=yes])],
8492
# if test x$enableval = "xyes"; then
8493
# AC_MSG_RESULT([yes])
8494
# AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration,
8495
# AC_DEFINE(HAVE_RANDR1_2, 1, "randr 1.2 support"))
8497
# AC_MSG_RESULT([no])
8499
# AC_MSG_RESULT([yes])
8500
# AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration,
8501
# AC_DEFINE(HAVE_RANDR1_2, 1, "randr 1.2 support"))
9503
8507
# Check whether --with-menu was given.
9504
if test "${with_menu+set}" = set; then
8508
if test "${with_menu+set}" = set; then :
9505
8509
withval=$with_menu; DEFAULT_MENU=$with_menu
9507
8511
DEFAULT_MENU=\$\(prefix\)/share/fluxbox/menu
11223
10173
exec 5>>config.log
11224
10174
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
11225
10175
# would make configure fail if this is the last instruction.
11226
$ac_cs_success || { (exit 1); exit 1; }
11231
for ac_func in gettimeofday
11233
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11234
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11235
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11236
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11237
echo $ECHO_N "(cached) $ECHO_C" >&6
11239
cat >conftest.$ac_ext <<_ACEOF
11242
cat confdefs.h >>conftest.$ac_ext
11243
cat >>conftest.$ac_ext <<_ACEOF
11244
/* end confdefs.h. */
11245
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11246
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11247
#define $ac_func innocuous_$ac_func
11249
/* System header to define __stub macros and hopefully few prototypes,
11250
which can conflict with char $ac_func (); below.
11251
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11252
<limits.h> exists even on freestanding compilers. */
11255
# include <limits.h>
11257
# include <assert.h>
11262
/* Override any GCC internal prototype to avoid an error.
11263
Use char because int might match the return type of a GCC
11264
builtin and then its argument prototype would still apply. */
11269
/* The GNU C library defines this for functions which it implements
11270
to always fail with ENOSYS. Some functions are actually named
11271
something starting with __ and the normal name is an alias. */
11272
#if defined __stub_$ac_func || defined __stub___$ac_func
11279
return $ac_func ();
11284
rm -f conftest.$ac_objext conftest$ac_exeext
11285
if { (ac_try="$ac_link"
11286
case "(($ac_try" in
11287
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288
*) ac_try_echo=$ac_try;;
11290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291
(eval "$ac_link") 2>conftest.er1
11293
grep -v '^ *+' conftest.er1 >conftest.err
11295
cat conftest.err >&5
11296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297
(exit $ac_status); } && {
11298
test -z "$ac_cxx_werror_flag" ||
11299
test ! -s conftest.err
11300
} && test -s conftest$ac_exeext &&
11301
$as_test_x conftest$ac_exeext; then
11302
eval "$as_ac_var=yes"
11304
echo "$as_me: failed program was:" >&5
11305
sed 's/^/| /' conftest.$ac_ext >&5
11307
eval "$as_ac_var=no"
11310
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11311
conftest$ac_exeext conftest.$ac_ext
11313
ac_res=`eval echo '${'$as_ac_var'}'`
11314
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11315
echo "${ECHO_T}$ac_res" >&6; }
11316
if test `eval echo '${'$as_ac_var'}'` = yes; then
11317
cat >>confdefs.h <<_ACEOF
11318
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11325
for ac_func in memset
11327
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11328
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11329
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11330
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11331
echo $ECHO_N "(cached) $ECHO_C" >&6
11333
cat >conftest.$ac_ext <<_ACEOF
11336
cat confdefs.h >>conftest.$ac_ext
11337
cat >>conftest.$ac_ext <<_ACEOF
11338
/* end confdefs.h. */
11339
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11340
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11341
#define $ac_func innocuous_$ac_func
11343
/* System header to define __stub macros and hopefully few prototypes,
11344
which can conflict with char $ac_func (); below.
11345
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11346
<limits.h> exists even on freestanding compilers. */
11349
# include <limits.h>
11351
# include <assert.h>
11356
/* Override any GCC internal prototype to avoid an error.
11357
Use char because int might match the return type of a GCC
11358
builtin and then its argument prototype would still apply. */
11363
/* The GNU C library defines this for functions which it implements
11364
to always fail with ENOSYS. Some functions are actually named
11365
something starting with __ and the normal name is an alias. */
11366
#if defined __stub_$ac_func || defined __stub___$ac_func
11373
return $ac_func ();
11378
rm -f conftest.$ac_objext conftest$ac_exeext
11379
if { (ac_try="$ac_link"
11380
case "(($ac_try" in
11381
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382
*) ac_try_echo=$ac_try;;
11384
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385
(eval "$ac_link") 2>conftest.er1
11387
grep -v '^ *+' conftest.er1 >conftest.err
11389
cat conftest.err >&5
11390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391
(exit $ac_status); } && {
11392
test -z "$ac_cxx_werror_flag" ||
11393
test ! -s conftest.err
11394
} && test -s conftest$ac_exeext &&
11395
$as_test_x conftest$ac_exeext; then
11396
eval "$as_ac_var=yes"
11398
echo "$as_me: failed program was:" >&5
11399
sed 's/^/| /' conftest.$ac_ext >&5
11401
eval "$as_ac_var=no"
11404
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11405
conftest$ac_exeext conftest.$ac_ext
11407
ac_res=`eval echo '${'$as_ac_var'}'`
11408
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11409
echo "${ECHO_T}$ac_res" >&6; }
11410
if test `eval echo '${'$as_ac_var'}'` = yes; then
11411
cat >>confdefs.h <<_ACEOF
11412
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11419
for ac_func in mkdir
11421
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11422
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11423
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11424
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11425
echo $ECHO_N "(cached) $ECHO_C" >&6
11427
cat >conftest.$ac_ext <<_ACEOF
11430
cat confdefs.h >>conftest.$ac_ext
11431
cat >>conftest.$ac_ext <<_ACEOF
11432
/* end confdefs.h. */
11433
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11434
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11435
#define $ac_func innocuous_$ac_func
11437
/* System header to define __stub macros and hopefully few prototypes,
11438
which can conflict with char $ac_func (); below.
11439
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11440
<limits.h> exists even on freestanding compilers. */
11443
# include <limits.h>
11445
# include <assert.h>
11450
/* Override any GCC internal prototype to avoid an error.
11451
Use char because int might match the return type of a GCC
11452
builtin and then its argument prototype would still apply. */
11457
/* The GNU C library defines this for functions which it implements
11458
to always fail with ENOSYS. Some functions are actually named
11459
something starting with __ and the normal name is an alias. */
11460
#if defined __stub_$ac_func || defined __stub___$ac_func
11467
return $ac_func ();
11472
rm -f conftest.$ac_objext conftest$ac_exeext
11473
if { (ac_try="$ac_link"
11474
case "(($ac_try" in
11475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476
*) ac_try_echo=$ac_try;;
11478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479
(eval "$ac_link") 2>conftest.er1
11481
grep -v '^ *+' conftest.er1 >conftest.err
11483
cat conftest.err >&5
11484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485
(exit $ac_status); } && {
11486
test -z "$ac_cxx_werror_flag" ||
11487
test ! -s conftest.err
11488
} && test -s conftest$ac_exeext &&
11489
$as_test_x conftest$ac_exeext; then
11490
eval "$as_ac_var=yes"
11492
echo "$as_me: failed program was:" >&5
11493
sed 's/^/| /' conftest.$ac_ext >&5
11495
eval "$as_ac_var=no"
11498
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11499
conftest$ac_exeext conftest.$ac_ext
11501
ac_res=`eval echo '${'$as_ac_var'}'`
11502
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11503
echo "${ECHO_T}$ac_res" >&6; }
11504
if test `eval echo '${'$as_ac_var'}'` = yes; then
11505
cat >>confdefs.h <<_ACEOF
11506
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11513
for ac_func in nl_langinfo
11515
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11516
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11517
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11518
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11519
echo $ECHO_N "(cached) $ECHO_C" >&6
11521
cat >conftest.$ac_ext <<_ACEOF
11524
cat confdefs.h >>conftest.$ac_ext
11525
cat >>conftest.$ac_ext <<_ACEOF
11526
/* end confdefs.h. */
11527
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11528
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11529
#define $ac_func innocuous_$ac_func
11531
/* System header to define __stub macros and hopefully few prototypes,
11532
which can conflict with char $ac_func (); below.
11533
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11534
<limits.h> exists even on freestanding compilers. */
11537
# include <limits.h>
11539
# include <assert.h>
11544
/* Override any GCC internal prototype to avoid an error.
11545
Use char because int might match the return type of a GCC
11546
builtin and then its argument prototype would still apply. */
11551
/* The GNU C library defines this for functions which it implements
11552
to always fail with ENOSYS. Some functions are actually named
11553
something starting with __ and the normal name is an alias. */
11554
#if defined __stub_$ac_func || defined __stub___$ac_func
11561
return $ac_func ();
11566
rm -f conftest.$ac_objext conftest$ac_exeext
11567
if { (ac_try="$ac_link"
11568
case "(($ac_try" in
11569
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570
*) ac_try_echo=$ac_try;;
11572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573
(eval "$ac_link") 2>conftest.er1
11575
grep -v '^ *+' conftest.er1 >conftest.err
11577
cat conftest.err >&5
11578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579
(exit $ac_status); } && {
11580
test -z "$ac_cxx_werror_flag" ||
11581
test ! -s conftest.err
11582
} && test -s conftest$ac_exeext &&
11583
$as_test_x conftest$ac_exeext; then
11584
eval "$as_ac_var=yes"
11586
echo "$as_me: failed program was:" >&5
11587
sed 's/^/| /' conftest.$ac_ext >&5
11589
eval "$as_ac_var=no"
11592
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11593
conftest$ac_exeext conftest.$ac_ext
11595
ac_res=`eval echo '${'$as_ac_var'}'`
11596
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11597
echo "${ECHO_T}$ac_res" >&6; }
11598
if test `eval echo '${'$as_ac_var'}'` = yes; then
11599
cat >>confdefs.h <<_ACEOF
11600
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11607
for ac_func in putenv
11609
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11611
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11612
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11613
echo $ECHO_N "(cached) $ECHO_C" >&6
11615
cat >conftest.$ac_ext <<_ACEOF
11618
cat confdefs.h >>conftest.$ac_ext
11619
cat >>conftest.$ac_ext <<_ACEOF
11620
/* end confdefs.h. */
11621
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11623
#define $ac_func innocuous_$ac_func
11625
/* System header to define __stub macros and hopefully few prototypes,
11626
which can conflict with char $ac_func (); below.
11627
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628
<limits.h> exists even on freestanding compilers. */
11631
# include <limits.h>
11633
# include <assert.h>
11638
/* Override any GCC internal prototype to avoid an error.
11639
Use char because int might match the return type of a GCC
11640
builtin and then its argument prototype would still apply. */
11645
/* The GNU C library defines this for functions which it implements
11646
to always fail with ENOSYS. Some functions are actually named
11647
something starting with __ and the normal name is an alias. */
11648
#if defined __stub_$ac_func || defined __stub___$ac_func
11655
return $ac_func ();
11660
rm -f conftest.$ac_objext conftest$ac_exeext
11661
if { (ac_try="$ac_link"
11662
case "(($ac_try" in
11663
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664
*) ac_try_echo=$ac_try;;
11666
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667
(eval "$ac_link") 2>conftest.er1
11669
grep -v '^ *+' conftest.er1 >conftest.err
11671
cat conftest.err >&5
11672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673
(exit $ac_status); } && {
11674
test -z "$ac_cxx_werror_flag" ||
11675
test ! -s conftest.err
11676
} && test -s conftest$ac_exeext &&
11677
$as_test_x conftest$ac_exeext; then
11678
eval "$as_ac_var=yes"
11680
echo "$as_me: failed program was:" >&5
11681
sed 's/^/| /' conftest.$ac_ext >&5
11683
eval "$as_ac_var=no"
11686
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11687
conftest$ac_exeext conftest.$ac_ext
11689
ac_res=`eval echo '${'$as_ac_var'}'`
11690
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11691
echo "${ECHO_T}$ac_res" >&6; }
11692
if test `eval echo '${'$as_ac_var'}'` = yes; then
11693
cat >>confdefs.h <<_ACEOF
11694
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11701
for ac_func in regcomp
11703
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11704
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11705
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11706
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11707
echo $ECHO_N "(cached) $ECHO_C" >&6
11709
cat >conftest.$ac_ext <<_ACEOF
11712
cat confdefs.h >>conftest.$ac_ext
11713
cat >>conftest.$ac_ext <<_ACEOF
11714
/* end confdefs.h. */
11715
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11716
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11717
#define $ac_func innocuous_$ac_func
11719
/* System header to define __stub macros and hopefully few prototypes,
11720
which can conflict with char $ac_func (); below.
11721
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11722
<limits.h> exists even on freestanding compilers. */
11725
# include <limits.h>
11727
# include <assert.h>
11732
/* Override any GCC internal prototype to avoid an error.
11733
Use char because int might match the return type of a GCC
11734
builtin and then its argument prototype would still apply. */
11739
/* The GNU C library defines this for functions which it implements
11740
to always fail with ENOSYS. Some functions are actually named
11741
something starting with __ and the normal name is an alias. */
11742
#if defined __stub_$ac_func || defined __stub___$ac_func
11749
return $ac_func ();
11754
rm -f conftest.$ac_objext conftest$ac_exeext
11755
if { (ac_try="$ac_link"
11756
case "(($ac_try" in
11757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758
*) ac_try_echo=$ac_try;;
11760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761
(eval "$ac_link") 2>conftest.er1
11763
grep -v '^ *+' conftest.er1 >conftest.err
11765
cat conftest.err >&5
11766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767
(exit $ac_status); } && {
11768
test -z "$ac_cxx_werror_flag" ||
11769
test ! -s conftest.err
11770
} && test -s conftest$ac_exeext &&
11771
$as_test_x conftest$ac_exeext; then
11772
eval "$as_ac_var=yes"
11774
echo "$as_me: failed program was:" >&5
11775
sed 's/^/| /' conftest.$ac_ext >&5
11777
eval "$as_ac_var=no"
11780
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11781
conftest$ac_exeext conftest.$ac_ext
11783
ac_res=`eval echo '${'$as_ac_var'}'`
11784
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11785
echo "${ECHO_T}$ac_res" >&6; }
11786
if test `eval echo '${'$as_ac_var'}'` = yes; then
11787
cat >>confdefs.h <<_ACEOF
11788
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11795
for ac_func in select
11797
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11798
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11799
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11800
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11801
echo $ECHO_N "(cached) $ECHO_C" >&6
11803
cat >conftest.$ac_ext <<_ACEOF
11806
cat confdefs.h >>conftest.$ac_ext
11807
cat >>conftest.$ac_ext <<_ACEOF
11808
/* end confdefs.h. */
11809
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11810
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11811
#define $ac_func innocuous_$ac_func
11813
/* System header to define __stub macros and hopefully few prototypes,
11814
which can conflict with char $ac_func (); below.
11815
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816
<limits.h> exists even on freestanding compilers. */
11819
# include <limits.h>
11821
# include <assert.h>
11826
/* Override any GCC internal prototype to avoid an error.
11827
Use char because int might match the return type of a GCC
11828
builtin and then its argument prototype would still apply. */
11833
/* The GNU C library defines this for functions which it implements
11834
to always fail with ENOSYS. Some functions are actually named
11835
something starting with __ and the normal name is an alias. */
11836
#if defined __stub_$ac_func || defined __stub___$ac_func
11843
return $ac_func ();
11848
rm -f conftest.$ac_objext conftest$ac_exeext
11849
if { (ac_try="$ac_link"
11850
case "(($ac_try" in
11851
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852
*) ac_try_echo=$ac_try;;
11854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855
(eval "$ac_link") 2>conftest.er1
11857
grep -v '^ *+' conftest.er1 >conftest.err
11859
cat conftest.err >&5
11860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861
(exit $ac_status); } && {
11862
test -z "$ac_cxx_werror_flag" ||
11863
test ! -s conftest.err
11864
} && test -s conftest$ac_exeext &&
11865
$as_test_x conftest$ac_exeext; then
11866
eval "$as_ac_var=yes"
11868
echo "$as_me: failed program was:" >&5
11869
sed 's/^/| /' conftest.$ac_ext >&5
11871
eval "$as_ac_var=no"
11874
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11875
conftest$ac_exeext conftest.$ac_ext
11877
ac_res=`eval echo '${'$as_ac_var'}'`
11878
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11879
echo "${ECHO_T}$ac_res" >&6; }
11880
if test `eval echo '${'$as_ac_var'}'` = yes; then
11881
cat >>confdefs.h <<_ACEOF
11882
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11889
for ac_func in setenv
11891
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11893
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11894
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11895
echo $ECHO_N "(cached) $ECHO_C" >&6
11897
cat >conftest.$ac_ext <<_ACEOF
11900
cat confdefs.h >>conftest.$ac_ext
11901
cat >>conftest.$ac_ext <<_ACEOF
11902
/* end confdefs.h. */
11903
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11905
#define $ac_func innocuous_$ac_func
11907
/* System header to define __stub macros and hopefully few prototypes,
11908
which can conflict with char $ac_func (); below.
11909
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910
<limits.h> exists even on freestanding compilers. */
11913
# include <limits.h>
11915
# include <assert.h>
11920
/* Override any GCC internal prototype to avoid an error.
11921
Use char because int might match the return type of a GCC
11922
builtin and then its argument prototype would still apply. */
11927
/* The GNU C library defines this for functions which it implements
11928
to always fail with ENOSYS. Some functions are actually named
11929
something starting with __ and the normal name is an alias. */
11930
#if defined __stub_$ac_func || defined __stub___$ac_func
11937
return $ac_func ();
11942
rm -f conftest.$ac_objext conftest$ac_exeext
11943
if { (ac_try="$ac_link"
11944
case "(($ac_try" in
11945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946
*) ac_try_echo=$ac_try;;
11948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949
(eval "$ac_link") 2>conftest.er1
11951
grep -v '^ *+' conftest.er1 >conftest.err
11953
cat conftest.err >&5
11954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955
(exit $ac_status); } && {
11956
test -z "$ac_cxx_werror_flag" ||
11957
test ! -s conftest.err
11958
} && test -s conftest$ac_exeext &&
11959
$as_test_x conftest$ac_exeext; then
11960
eval "$as_ac_var=yes"
11962
echo "$as_me: failed program was:" >&5
11963
sed 's/^/| /' conftest.$ac_ext >&5
11965
eval "$as_ac_var=no"
11968
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11969
conftest$ac_exeext conftest.$ac_ext
11971
ac_res=`eval echo '${'$as_ac_var'}'`
11972
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11973
echo "${ECHO_T}$ac_res" >&6; }
11974
if test `eval echo '${'$as_ac_var'}'` = yes; then
11975
cat >>confdefs.h <<_ACEOF
11976
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11983
for ac_func in sqrt
11985
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11986
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11987
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11988
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11989
echo $ECHO_N "(cached) $ECHO_C" >&6
11991
cat >conftest.$ac_ext <<_ACEOF
11994
cat confdefs.h >>conftest.$ac_ext
11995
cat >>conftest.$ac_ext <<_ACEOF
11996
/* end confdefs.h. */
11997
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11998
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11999
#define $ac_func innocuous_$ac_func
12001
/* System header to define __stub macros and hopefully few prototypes,
12002
which can conflict with char $ac_func (); below.
12003
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12004
<limits.h> exists even on freestanding compilers. */
12007
# include <limits.h>
12009
# include <assert.h>
12014
/* Override any GCC internal prototype to avoid an error.
12015
Use char because int might match the return type of a GCC
12016
builtin and then its argument prototype would still apply. */
12021
/* The GNU C library defines this for functions which it implements
12022
to always fail with ENOSYS. Some functions are actually named
12023
something starting with __ and the normal name is an alias. */
12024
#if defined __stub_$ac_func || defined __stub___$ac_func
12031
return $ac_func ();
12036
rm -f conftest.$ac_objext conftest$ac_exeext
12037
if { (ac_try="$ac_link"
12038
case "(($ac_try" in
12039
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040
*) ac_try_echo=$ac_try;;
12042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043
(eval "$ac_link") 2>conftest.er1
12045
grep -v '^ *+' conftest.er1 >conftest.err
12047
cat conftest.err >&5
12048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049
(exit $ac_status); } && {
12050
test -z "$ac_cxx_werror_flag" ||
12051
test ! -s conftest.err
12052
} && test -s conftest$ac_exeext &&
12053
$as_test_x conftest$ac_exeext; then
12054
eval "$as_ac_var=yes"
12056
echo "$as_me: failed program was:" >&5
12057
sed 's/^/| /' conftest.$ac_ext >&5
12059
eval "$as_ac_var=no"
12062
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12063
conftest$ac_exeext conftest.$ac_ext
12065
ac_res=`eval echo '${'$as_ac_var'}'`
12066
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12067
echo "${ECHO_T}$ac_res" >&6; }
12068
if test `eval echo '${'$as_ac_var'}'` = yes; then
12069
cat >>confdefs.h <<_ACEOF
12070
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12077
for ac_func in strcasecmp
12079
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12080
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12081
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12082
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12083
echo $ECHO_N "(cached) $ECHO_C" >&6
12085
cat >conftest.$ac_ext <<_ACEOF
12088
cat confdefs.h >>conftest.$ac_ext
12089
cat >>conftest.$ac_ext <<_ACEOF
12090
/* end confdefs.h. */
12091
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12092
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12093
#define $ac_func innocuous_$ac_func
12095
/* System header to define __stub macros and hopefully few prototypes,
12096
which can conflict with char $ac_func (); below.
12097
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12098
<limits.h> exists even on freestanding compilers. */
12101
# include <limits.h>
12103
# include <assert.h>
12108
/* Override any GCC internal prototype to avoid an error.
12109
Use char because int might match the return type of a GCC
12110
builtin and then its argument prototype would still apply. */
12115
/* The GNU C library defines this for functions which it implements
12116
to always fail with ENOSYS. Some functions are actually named
12117
something starting with __ and the normal name is an alias. */
12118
#if defined __stub_$ac_func || defined __stub___$ac_func
12125
return $ac_func ();
12130
rm -f conftest.$ac_objext conftest$ac_exeext
12131
if { (ac_try="$ac_link"
12132
case "(($ac_try" in
12133
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134
*) ac_try_echo=$ac_try;;
12136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137
(eval "$ac_link") 2>conftest.er1
12139
grep -v '^ *+' conftest.er1 >conftest.err
12141
cat conftest.err >&5
12142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143
(exit $ac_status); } && {
12144
test -z "$ac_cxx_werror_flag" ||
12145
test ! -s conftest.err
12146
} && test -s conftest$ac_exeext &&
12147
$as_test_x conftest$ac_exeext; then
12148
eval "$as_ac_var=yes"
12150
echo "$as_me: failed program was:" >&5
12151
sed 's/^/| /' conftest.$ac_ext >&5
12153
eval "$as_ac_var=no"
12156
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12157
conftest$ac_exeext conftest.$ac_ext
12159
ac_res=`eval echo '${'$as_ac_var'}'`
12160
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12161
echo "${ECHO_T}$ac_res" >&6; }
12162
if test `eval echo '${'$as_ac_var'}'` = yes; then
12163
cat >>confdefs.h <<_ACEOF
12164
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12171
for ac_func in strchr
12173
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12174
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12175
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12176
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12177
echo $ECHO_N "(cached) $ECHO_C" >&6
12179
cat >conftest.$ac_ext <<_ACEOF
12182
cat confdefs.h >>conftest.$ac_ext
12183
cat >>conftest.$ac_ext <<_ACEOF
12184
/* end confdefs.h. */
12185
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12186
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12187
#define $ac_func innocuous_$ac_func
12189
/* System header to define __stub macros and hopefully few prototypes,
12190
which can conflict with char $ac_func (); below.
12191
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12192
<limits.h> exists even on freestanding compilers. */
12195
# include <limits.h>
12197
# include <assert.h>
12202
/* Override any GCC internal prototype to avoid an error.
12203
Use char because int might match the return type of a GCC
12204
builtin and then its argument prototype would still apply. */
12209
/* The GNU C library defines this for functions which it implements
12210
to always fail with ENOSYS. Some functions are actually named
12211
something starting with __ and the normal name is an alias. */
12212
#if defined __stub_$ac_func || defined __stub___$ac_func
12219
return $ac_func ();
12224
rm -f conftest.$ac_objext conftest$ac_exeext
12225
if { (ac_try="$ac_link"
12226
case "(($ac_try" in
12227
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228
*) ac_try_echo=$ac_try;;
12230
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231
(eval "$ac_link") 2>conftest.er1
12233
grep -v '^ *+' conftest.er1 >conftest.err
12235
cat conftest.err >&5
12236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237
(exit $ac_status); } && {
12238
test -z "$ac_cxx_werror_flag" ||
12239
test ! -s conftest.err
12240
} && test -s conftest$ac_exeext &&
12241
$as_test_x conftest$ac_exeext; then
12242
eval "$as_ac_var=yes"
12244
echo "$as_me: failed program was:" >&5
12245
sed 's/^/| /' conftest.$ac_ext >&5
12247
eval "$as_ac_var=no"
12250
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12251
conftest$ac_exeext conftest.$ac_ext
12253
ac_res=`eval echo '${'$as_ac_var'}'`
12254
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12255
echo "${ECHO_T}$ac_res" >&6; }
12256
if test `eval echo '${'$as_ac_var'}'` = yes; then
12257
cat >>confdefs.h <<_ACEOF
12258
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265
for ac_func in strstr
12267
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12268
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12269
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12270
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12271
echo $ECHO_N "(cached) $ECHO_C" >&6
12273
cat >conftest.$ac_ext <<_ACEOF
12276
cat confdefs.h >>conftest.$ac_ext
12277
cat >>conftest.$ac_ext <<_ACEOF
12278
/* end confdefs.h. */
12279
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12280
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12281
#define $ac_func innocuous_$ac_func
12283
/* System header to define __stub macros and hopefully few prototypes,
12284
which can conflict with char $ac_func (); below.
12285
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12286
<limits.h> exists even on freestanding compilers. */
12289
# include <limits.h>
12291
# include <assert.h>
12296
/* Override any GCC internal prototype to avoid an error.
12297
Use char because int might match the return type of a GCC
12298
builtin and then its argument prototype would still apply. */
12303
/* The GNU C library defines this for functions which it implements
12304
to always fail with ENOSYS. Some functions are actually named
12305
something starting with __ and the normal name is an alias. */
12306
#if defined __stub_$ac_func || defined __stub___$ac_func
12313
return $ac_func ();
12318
rm -f conftest.$ac_objext conftest$ac_exeext
12319
if { (ac_try="$ac_link"
12320
case "(($ac_try" in
12321
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322
*) ac_try_echo=$ac_try;;
12324
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325
(eval "$ac_link") 2>conftest.er1
12327
grep -v '^ *+' conftest.er1 >conftest.err
12329
cat conftest.err >&5
12330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331
(exit $ac_status); } && {
12332
test -z "$ac_cxx_werror_flag" ||
12333
test ! -s conftest.err
12334
} && test -s conftest$ac_exeext &&
12335
$as_test_x conftest$ac_exeext; then
12336
eval "$as_ac_var=yes"
12338
echo "$as_me: failed program was:" >&5
12339
sed 's/^/| /' conftest.$ac_ext >&5
12341
eval "$as_ac_var=no"
12344
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12345
conftest$ac_exeext conftest.$ac_ext
12347
ac_res=`eval echo '${'$as_ac_var'}'`
12348
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12349
echo "${ECHO_T}$ac_res" >&6; }
12350
if test `eval echo '${'$as_ac_var'}'` = yes; then
12351
cat >>confdefs.h <<_ACEOF
12352
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12359
for ac_func in strtol
12361
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12362
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12363
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12364
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12365
echo $ECHO_N "(cached) $ECHO_C" >&6
12367
cat >conftest.$ac_ext <<_ACEOF
12370
cat confdefs.h >>conftest.$ac_ext
12371
cat >>conftest.$ac_ext <<_ACEOF
12372
/* end confdefs.h. */
12373
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12374
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12375
#define $ac_func innocuous_$ac_func
12377
/* System header to define __stub macros and hopefully few prototypes,
12378
which can conflict with char $ac_func (); below.
12379
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12380
<limits.h> exists even on freestanding compilers. */
12383
# include <limits.h>
12385
# include <assert.h>
12390
/* Override any GCC internal prototype to avoid an error.
12391
Use char because int might match the return type of a GCC
12392
builtin and then its argument prototype would still apply. */
12397
/* The GNU C library defines this for functions which it implements
12398
to always fail with ENOSYS. Some functions are actually named
12399
something starting with __ and the normal name is an alias. */
12400
#if defined __stub_$ac_func || defined __stub___$ac_func
12407
return $ac_func ();
12412
rm -f conftest.$ac_objext conftest$ac_exeext
12413
if { (ac_try="$ac_link"
12414
case "(($ac_try" in
12415
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416
*) ac_try_echo=$ac_try;;
12418
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419
(eval "$ac_link") 2>conftest.er1
12421
grep -v '^ *+' conftest.er1 >conftest.err
12423
cat conftest.err >&5
12424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425
(exit $ac_status); } && {
12426
test -z "$ac_cxx_werror_flag" ||
12427
test ! -s conftest.err
12428
} && test -s conftest$ac_exeext &&
12429
$as_test_x conftest$ac_exeext; then
12430
eval "$as_ac_var=yes"
12432
echo "$as_me: failed program was:" >&5
12433
sed 's/^/| /' conftest.$ac_ext >&5
12435
eval "$as_ac_var=no"
12438
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12439
conftest$ac_exeext conftest.$ac_ext
12441
ac_res=`eval echo '${'$as_ac_var'}'`
12442
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12443
echo "${ECHO_T}$ac_res" >&6; }
12444
if test `eval echo '${'$as_ac_var'}'` = yes; then
12445
cat >>confdefs.h <<_ACEOF
12446
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12453
for ac_func in strtoul
12455
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12456
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12457
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12458
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12459
echo $ECHO_N "(cached) $ECHO_C" >&6
12461
cat >conftest.$ac_ext <<_ACEOF
12464
cat confdefs.h >>conftest.$ac_ext
12465
cat >>conftest.$ac_ext <<_ACEOF
12466
/* end confdefs.h. */
12467
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12468
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12469
#define $ac_func innocuous_$ac_func
12471
/* System header to define __stub macros and hopefully few prototypes,
12472
which can conflict with char $ac_func (); below.
12473
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12474
<limits.h> exists even on freestanding compilers. */
12477
# include <limits.h>
12479
# include <assert.h>
12484
/* Override any GCC internal prototype to avoid an error.
12485
Use char because int might match the return type of a GCC
12486
builtin and then its argument prototype would still apply. */
12491
/* The GNU C library defines this for functions which it implements
12492
to always fail with ENOSYS. Some functions are actually named
12493
something starting with __ and the normal name is an alias. */
12494
#if defined __stub_$ac_func || defined __stub___$ac_func
12501
return $ac_func ();
12506
rm -f conftest.$ac_objext conftest$ac_exeext
12507
if { (ac_try="$ac_link"
12508
case "(($ac_try" in
12509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510
*) ac_try_echo=$ac_try;;
12512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513
(eval "$ac_link") 2>conftest.er1
12515
grep -v '^ *+' conftest.er1 >conftest.err
12517
cat conftest.err >&5
12518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519
(exit $ac_status); } && {
12520
test -z "$ac_cxx_werror_flag" ||
12521
test ! -s conftest.err
12522
} && test -s conftest$ac_exeext &&
12523
$as_test_x conftest$ac_exeext; then
12524
eval "$as_ac_var=yes"
12526
echo "$as_me: failed program was:" >&5
12527
sed 's/^/| /' conftest.$ac_ext >&5
12529
eval "$as_ac_var=no"
12532
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12533
conftest$ac_exeext conftest.$ac_ext
12535
ac_res=`eval echo '${'$as_ac_var'}'`
12536
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12537
echo "${ECHO_T}$ac_res" >&6; }
12538
if test `eval echo '${'$as_ac_var'}'` = yes; then
12539
cat >>confdefs.h <<_ACEOF
12540
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12547
for ac_header in langinfo.h
12549
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12550
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12551
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12552
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12553
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12554
echo $ECHO_N "(cached) $ECHO_C" >&6
12556
ac_res=`eval echo '${'$as_ac_Header'}'`
12557
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12558
echo "${ECHO_T}$ac_res" >&6; }
12560
# Is the header compilable?
12561
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12562
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12563
cat >conftest.$ac_ext <<_ACEOF
12566
cat confdefs.h >>conftest.$ac_ext
12567
cat >>conftest.$ac_ext <<_ACEOF
12568
/* end confdefs.h. */
12569
$ac_includes_default
12570
#include <$ac_header>
12572
rm -f conftest.$ac_objext
12573
if { (ac_try="$ac_compile"
12574
case "(($ac_try" in
12575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576
*) ac_try_echo=$ac_try;;
12578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579
(eval "$ac_compile") 2>conftest.er1
12581
grep -v '^ *+' conftest.er1 >conftest.err
12583
cat conftest.err >&5
12584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585
(exit $ac_status); } && {
12586
test -z "$ac_cxx_werror_flag" ||
12587
test ! -s conftest.err
12588
} && test -s conftest.$ac_objext; then
12589
ac_header_compiler=yes
12591
echo "$as_me: failed program was:" >&5
12592
sed 's/^/| /' conftest.$ac_ext >&5
12594
ac_header_compiler=no
12597
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12598
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12599
echo "${ECHO_T}$ac_header_compiler" >&6; }
12601
# Is the header present?
12602
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12603
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12604
cat >conftest.$ac_ext <<_ACEOF
12607
cat confdefs.h >>conftest.$ac_ext
12608
cat >>conftest.$ac_ext <<_ACEOF
12609
/* end confdefs.h. */
12610
#include <$ac_header>
12612
if { (ac_try="$ac_cpp conftest.$ac_ext"
12613
case "(($ac_try" in
12614
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615
*) ac_try_echo=$ac_try;;
12617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12620
grep -v '^ *+' conftest.er1 >conftest.err
12622
cat conftest.err >&5
12623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624
(exit $ac_status); } >/dev/null && {
12625
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12626
test ! -s conftest.err
12628
ac_header_preproc=yes
12630
echo "$as_me: failed program was:" >&5
12631
sed 's/^/| /' conftest.$ac_ext >&5
12633
ac_header_preproc=no
12636
rm -f conftest.err conftest.$ac_ext
12637
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12638
echo "${ECHO_T}$ac_header_preproc" >&6; }
12640
# So? What about this header?
12641
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12643
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12644
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12645
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12646
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12647
ac_header_preproc=yes
12650
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12651
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12652
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12653
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12654
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12655
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12656
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12657
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12658
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12659
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12660
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12661
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12665
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12666
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12667
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12668
echo $ECHO_N "(cached) $ECHO_C" >&6
12670
eval "$as_ac_Header=\$ac_header_preproc"
12672
ac_res=`eval echo '${'$as_ac_Header'}'`
12673
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12674
echo "${ECHO_T}$ac_res" >&6; }
12677
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12678
cat >>confdefs.h <<_ACEOF
12679
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12686
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12687
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12688
if test "${ac_cv_c_const+set}" = set; then
12689
echo $ECHO_N "(cached) $ECHO_C" >&6
12691
cat >conftest.$ac_ext <<_ACEOF
12694
cat confdefs.h >>conftest.$ac_ext
12695
cat >>conftest.$ac_ext <<_ACEOF
12696
/* end confdefs.h. */
12701
/* FIXME: Include the comments suggested by Paul. */
12702
#ifndef __cplusplus
12703
/* Ultrix mips cc rejects this. */
12704
typedef int charset[2];
12706
/* SunOS 4.1.1 cc rejects this. */
12707
char const *const *pcpcc;
12709
/* NEC SVR4.0.2 mips cc rejects this. */
12710
struct point {int x, y;};
12711
static struct point const zero = {0,0};
12712
/* AIX XL C 1.02.0.0 rejects this.
12713
It does not let you subtract one const X* pointer from another in
12714
an arm of an if-expression whose if-part is not a constant
12716
const char *g = "string";
12717
pcpcc = &g + (g ? g-g : 0);
12718
/* HPUX 7.0 cc rejects these. */
12720
ppc = (char**) pcpcc;
12721
pcpcc = (char const *const *) ppc;
12722
{ /* SCO 3.2v4 cc rejects this. */
12724
char const *s = 0 ? (char *) 0 : (char const *) 0;
12729
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12730
int x[] = {25, 17};
12731
const int *foo = &x[0];
12734
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12735
typedef const int *iptr;
12739
{ /* AIX XL C 1.02.0.0 rejects this saying
12740
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12741
struct s { int j; const int *ap[3]; };
12742
struct s *b; b->j = 5;
12744
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12745
const int foo = 10;
12746
if (!foo) return 0;
12748
return !cs[0] && !zero.x;
12755
rm -f conftest.$ac_objext
12756
if { (ac_try="$ac_compile"
12757
case "(($ac_try" in
12758
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759
*) ac_try_echo=$ac_try;;
12761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762
(eval "$ac_compile") 2>conftest.er1
12764
grep -v '^ *+' conftest.er1 >conftest.err
12766
cat conftest.err >&5
12767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768
(exit $ac_status); } && {
12769
test -z "$ac_cxx_werror_flag" ||
12770
test ! -s conftest.err
12771
} && test -s conftest.$ac_objext; then
12774
echo "$as_me: failed program was:" >&5
12775
sed 's/^/| /' conftest.$ac_ext >&5
12780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12782
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12783
echo "${ECHO_T}$ac_cv_c_const" >&6; }
12784
if test $ac_cv_c_const = no; then
12786
cat >>confdefs.h <<\_ACEOF
12792
{ echo "$as_me:$LINENO: checking for inline" >&5
12793
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
12794
if test "${ac_cv_c_inline+set}" = set; then
12795
echo $ECHO_N "(cached) $ECHO_C" >&6
12798
for ac_kw in inline __inline__ __inline; do
12799
cat >conftest.$ac_ext <<_ACEOF
12802
cat confdefs.h >>conftest.$ac_ext
12803
cat >>conftest.$ac_ext <<_ACEOF
12804
/* end confdefs.h. */
12805
#ifndef __cplusplus
12807
static $ac_kw foo_t static_foo () {return 0; }
12808
$ac_kw foo_t foo () {return 0; }
12812
rm -f conftest.$ac_objext
12813
if { (ac_try="$ac_compile"
12814
case "(($ac_try" in
12815
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816
*) ac_try_echo=$ac_try;;
12818
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819
(eval "$ac_compile") 2>conftest.er1
12821
grep -v '^ *+' conftest.er1 >conftest.err
12823
cat conftest.err >&5
12824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825
(exit $ac_status); } && {
12826
test -z "$ac_cxx_werror_flag" ||
12827
test ! -s conftest.err
12828
} && test -s conftest.$ac_objext; then
12829
ac_cv_c_inline=$ac_kw
12831
echo "$as_me: failed program was:" >&5
12832
sed 's/^/| /' conftest.$ac_ext >&5
12837
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838
test "$ac_cv_c_inline" != no && break
12842
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12843
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
12846
case $ac_cv_c_inline in
12849
case $ac_cv_c_inline in
12851
*) ac_val=$ac_cv_c_inline;;
12853
cat >>confdefs.h <<_ACEOF
12854
#ifndef __cplusplus
12855
#define inline $ac_val
12866
ac_header_dirent=no
12867
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12868
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12869
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
12870
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
12871
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12872
echo $ECHO_N "(cached) $ECHO_C" >&6
12874
cat >conftest.$ac_ext <<_ACEOF
12877
cat confdefs.h >>conftest.$ac_ext
12878
cat >>conftest.$ac_ext <<_ACEOF
12879
/* end confdefs.h. */
12880
#include <sys/types.h>
12892
rm -f conftest.$ac_objext
12893
if { (ac_try="$ac_compile"
12894
case "(($ac_try" in
12895
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896
*) ac_try_echo=$ac_try;;
12898
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899
(eval "$ac_compile") 2>conftest.er1
12901
grep -v '^ *+' conftest.er1 >conftest.err
12903
cat conftest.err >&5
12904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905
(exit $ac_status); } && {
12906
test -z "$ac_cxx_werror_flag" ||
12907
test ! -s conftest.err
12908
} && test -s conftest.$ac_objext; then
12909
eval "$as_ac_Header=yes"
12911
echo "$as_me: failed program was:" >&5
12912
sed 's/^/| /' conftest.$ac_ext >&5
12914
eval "$as_ac_Header=no"
12917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919
ac_res=`eval echo '${'$as_ac_Header'}'`
12920
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12921
echo "${ECHO_T}$ac_res" >&6; }
12922
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12923
cat >>confdefs.h <<_ACEOF
12924
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12927
ac_header_dirent=$ac_hdr; break
12931
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12932
if test $ac_header_dirent = dirent.h; then
12933
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
12934
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12935
if test "${ac_cv_search_opendir+set}" = set; then
12936
echo $ECHO_N "(cached) $ECHO_C" >&6
12938
ac_func_search_save_LIBS=$LIBS
12939
cat >conftest.$ac_ext <<_ACEOF
12942
cat confdefs.h >>conftest.$ac_ext
12943
cat >>conftest.$ac_ext <<_ACEOF
12944
/* end confdefs.h. */
12946
/* Override any GCC internal prototype to avoid an error.
12947
Use char because int might match the return type of a GCC
12948
builtin and then its argument prototype would still apply. */
12961
for ac_lib in '' dir; do
12962
if test -z "$ac_lib"; then
12963
ac_res="none required"
12966
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12968
rm -f conftest.$ac_objext conftest$ac_exeext
12969
if { (ac_try="$ac_link"
12970
case "(($ac_try" in
12971
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972
*) ac_try_echo=$ac_try;;
12974
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975
(eval "$ac_link") 2>conftest.er1
12977
grep -v '^ *+' conftest.er1 >conftest.err
12979
cat conftest.err >&5
12980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981
(exit $ac_status); } && {
12982
test -z "$ac_cxx_werror_flag" ||
12983
test ! -s conftest.err
12984
} && test -s conftest$ac_exeext &&
12985
$as_test_x conftest$ac_exeext; then
12986
ac_cv_search_opendir=$ac_res
12988
echo "$as_me: failed program was:" >&5
12989
sed 's/^/| /' conftest.$ac_ext >&5
12994
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12996
if test "${ac_cv_search_opendir+set}" = set; then
13000
if test "${ac_cv_search_opendir+set}" = set; then
13003
ac_cv_search_opendir=no
13005
rm conftest.$ac_ext
13006
LIBS=$ac_func_search_save_LIBS
13008
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13009
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13010
ac_res=$ac_cv_search_opendir
13011
if test "$ac_res" != no; then
13012
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13017
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
13018
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13019
if test "${ac_cv_search_opendir+set}" = set; then
13020
echo $ECHO_N "(cached) $ECHO_C" >&6
13022
ac_func_search_save_LIBS=$LIBS
13023
cat >conftest.$ac_ext <<_ACEOF
13026
cat confdefs.h >>conftest.$ac_ext
13027
cat >>conftest.$ac_ext <<_ACEOF
13028
/* end confdefs.h. */
13030
/* Override any GCC internal prototype to avoid an error.
13031
Use char because int might match the return type of a GCC
13032
builtin and then its argument prototype would still apply. */
13045
for ac_lib in '' x; do
13046
if test -z "$ac_lib"; then
13047
ac_res="none required"
13050
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13052
rm -f conftest.$ac_objext conftest$ac_exeext
13053
if { (ac_try="$ac_link"
13054
case "(($ac_try" in
13055
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056
*) ac_try_echo=$ac_try;;
13058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059
(eval "$ac_link") 2>conftest.er1
13061
grep -v '^ *+' conftest.er1 >conftest.err
13063
cat conftest.err >&5
13064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065
(exit $ac_status); } && {
13066
test -z "$ac_cxx_werror_flag" ||
13067
test ! -s conftest.err
13068
} && test -s conftest$ac_exeext &&
13069
$as_test_x conftest$ac_exeext; then
13070
ac_cv_search_opendir=$ac_res
13072
echo "$as_me: failed program was:" >&5
13073
sed 's/^/| /' conftest.$ac_ext >&5
13078
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13080
if test "${ac_cv_search_opendir+set}" = set; then
13084
if test "${ac_cv_search_opendir+set}" = set; then
13087
ac_cv_search_opendir=no
13089
rm conftest.$ac_ext
13090
LIBS=$ac_func_search_save_LIBS
13092
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13093
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13094
ac_res=$ac_cv_search_opendir
13095
if test "$ac_res" != no; then
13096
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13102
{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
13103
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
13104
if test "${ac_cv_func_closedir_void+set}" = set; then
13105
echo $ECHO_N "(cached) $ECHO_C" >&6
13107
if test "$cross_compiling" = yes; then
13108
ac_cv_func_closedir_void=yes
13110
cat >conftest.$ac_ext <<_ACEOF
13113
cat confdefs.h >>conftest.$ac_ext
13114
cat >>conftest.$ac_ext <<_ACEOF
13115
/* end confdefs.h. */
13116
$ac_includes_default
13117
#include <$ac_header_dirent>
13118
#ifndef __cplusplus
13125
return closedir (opendir (".")) != 0;
13130
rm -f conftest$ac_exeext
13131
if { (ac_try="$ac_link"
13132
case "(($ac_try" in
13133
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134
*) ac_try_echo=$ac_try;;
13136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137
(eval "$ac_link") 2>&5
13139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13141
{ (case "(($ac_try" in
13142
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143
*) ac_try_echo=$ac_try;;
13145
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146
(eval "$ac_try") 2>&5
13148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149
(exit $ac_status); }; }; then
13150
ac_cv_func_closedir_void=no
13152
echo "$as_me: program exited with status $ac_status" >&5
13153
echo "$as_me: failed program was:" >&5
13154
sed 's/^/| /' conftest.$ac_ext >&5
13156
( exit $ac_status )
13157
ac_cv_func_closedir_void=yes
13159
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13164
{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
13165
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
13166
if test $ac_cv_func_closedir_void = yes; then
13168
cat >>confdefs.h <<\_ACEOF
13169
#define CLOSEDIR_VOID 1
13174
{ echo "$as_me:$LINENO: checking for error_at_line" >&5
13175
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
13176
if test "${ac_cv_lib_error_at_line+set}" = set; then
13177
echo $ECHO_N "(cached) $ECHO_C" >&6
13179
cat >conftest.$ac_ext <<_ACEOF
13182
cat confdefs.h >>conftest.$ac_ext
13183
cat >>conftest.$ac_ext <<_ACEOF
13184
/* end confdefs.h. */
13189
error_at_line (0, 0, "", 0, "an error occurred");
13194
rm -f conftest.$ac_objext conftest$ac_exeext
13195
if { (ac_try="$ac_link"
13196
case "(($ac_try" in
13197
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198
*) ac_try_echo=$ac_try;;
13200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201
(eval "$ac_link") 2>conftest.er1
13203
grep -v '^ *+' conftest.er1 >conftest.err
13205
cat conftest.err >&5
13206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207
(exit $ac_status); } && {
13208
test -z "$ac_cxx_werror_flag" ||
13209
test ! -s conftest.err
13210
} && test -s conftest$ac_exeext &&
13211
$as_test_x conftest$ac_exeext; then
13212
ac_cv_lib_error_at_line=yes
13214
echo "$as_me: failed program was:" >&5
13215
sed 's/^/| /' conftest.$ac_ext >&5
13217
ac_cv_lib_error_at_line=no
13220
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13221
conftest$ac_exeext conftest.$ac_ext
13223
{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
13224
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
13225
if test $ac_cv_lib_error_at_line = no; then
13226
case " $LIBOBJS " in
13227
*" error.$ac_objext "* ) ;;
13228
*) LIBOBJS="$LIBOBJS error.$ac_objext"
13234
{ echo "$as_me:$LINENO: checking for pid_t" >&5
13235
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13236
if test "${ac_cv_type_pid_t+set}" = set; then
13237
echo $ECHO_N "(cached) $ECHO_C" >&6
13239
cat >conftest.$ac_ext <<_ACEOF
13242
cat confdefs.h >>conftest.$ac_ext
13243
cat >>conftest.$ac_ext <<_ACEOF
13244
/* end confdefs.h. */
13245
$ac_includes_default
13246
typedef pid_t ac__type_new_;
13250
if ((ac__type_new_ *) 0)
13252
if (sizeof (ac__type_new_))
13258
rm -f conftest.$ac_objext
13259
if { (ac_try="$ac_compile"
13260
case "(($ac_try" in
13261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262
*) ac_try_echo=$ac_try;;
13264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265
(eval "$ac_compile") 2>conftest.er1
13267
grep -v '^ *+' conftest.er1 >conftest.err
13269
cat conftest.err >&5
13270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271
(exit $ac_status); } && {
13272
test -z "$ac_cxx_werror_flag" ||
13273
test ! -s conftest.err
13274
} && test -s conftest.$ac_objext; then
13275
ac_cv_type_pid_t=yes
13277
echo "$as_me: failed program was:" >&5
13278
sed 's/^/| /' conftest.$ac_ext >&5
13280
ac_cv_type_pid_t=no
13283
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13286
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13287
if test $ac_cv_type_pid_t = yes; then
13291
cat >>confdefs.h <<_ACEOF
13298
for ac_header in vfork.h
13300
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13301
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13302
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13303
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13304
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13305
echo $ECHO_N "(cached) $ECHO_C" >&6
13307
ac_res=`eval echo '${'$as_ac_Header'}'`
13308
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13309
echo "${ECHO_T}$ac_res" >&6; }
13311
# Is the header compilable?
13312
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13313
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13314
cat >conftest.$ac_ext <<_ACEOF
13317
cat confdefs.h >>conftest.$ac_ext
13318
cat >>conftest.$ac_ext <<_ACEOF
13319
/* end confdefs.h. */
13320
$ac_includes_default
13321
#include <$ac_header>
13323
rm -f conftest.$ac_objext
13324
if { (ac_try="$ac_compile"
13325
case "(($ac_try" in
13326
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327
*) ac_try_echo=$ac_try;;
13329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330
(eval "$ac_compile") 2>conftest.er1
13332
grep -v '^ *+' conftest.er1 >conftest.err
13334
cat conftest.err >&5
13335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336
(exit $ac_status); } && {
13337
test -z "$ac_cxx_werror_flag" ||
13338
test ! -s conftest.err
13339
} && test -s conftest.$ac_objext; then
13340
ac_header_compiler=yes
13342
echo "$as_me: failed program was:" >&5
13343
sed 's/^/| /' conftest.$ac_ext >&5
13345
ac_header_compiler=no
13348
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13350
echo "${ECHO_T}$ac_header_compiler" >&6; }
13352
# Is the header present?
13353
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13354
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13355
cat >conftest.$ac_ext <<_ACEOF
13358
cat confdefs.h >>conftest.$ac_ext
13359
cat >>conftest.$ac_ext <<_ACEOF
13360
/* end confdefs.h. */
13361
#include <$ac_header>
13363
if { (ac_try="$ac_cpp conftest.$ac_ext"
13364
case "(($ac_try" in
13365
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366
*) ac_try_echo=$ac_try;;
13368
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13371
grep -v '^ *+' conftest.er1 >conftest.err
13373
cat conftest.err >&5
13374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375
(exit $ac_status); } >/dev/null && {
13376
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13377
test ! -s conftest.err
13379
ac_header_preproc=yes
13381
echo "$as_me: failed program was:" >&5
13382
sed 's/^/| /' conftest.$ac_ext >&5
13384
ac_header_preproc=no
13387
rm -f conftest.err conftest.$ac_ext
13388
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13389
echo "${ECHO_T}$ac_header_preproc" >&6; }
13391
# So? What about this header?
13392
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
13394
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13395
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13396
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13397
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13398
ac_header_preproc=yes
13401
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13402
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13403
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13404
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13405
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13406
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13407
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13408
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13409
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13410
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13411
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13412
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13416
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13417
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13418
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13419
echo $ECHO_N "(cached) $ECHO_C" >&6
13421
eval "$as_ac_Header=\$ac_header_preproc"
13423
ac_res=`eval echo '${'$as_ac_Header'}'`
13424
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13425
echo "${ECHO_T}$ac_res" >&6; }
13428
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13429
cat >>confdefs.h <<_ACEOF
13430
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13439
for ac_func in fork vfork
13441
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13442
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13443
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13444
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13445
echo $ECHO_N "(cached) $ECHO_C" >&6
13447
cat >conftest.$ac_ext <<_ACEOF
13450
cat confdefs.h >>conftest.$ac_ext
13451
cat >>conftest.$ac_ext <<_ACEOF
13452
/* end confdefs.h. */
13453
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13454
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13455
#define $ac_func innocuous_$ac_func
13457
/* System header to define __stub macros and hopefully few prototypes,
13458
which can conflict with char $ac_func (); below.
13459
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13460
<limits.h> exists even on freestanding compilers. */
13463
# include <limits.h>
13465
# include <assert.h>
13470
/* Override any GCC internal prototype to avoid an error.
13471
Use char because int might match the return type of a GCC
13472
builtin and then its argument prototype would still apply. */
13477
/* The GNU C library defines this for functions which it implements
13478
to always fail with ENOSYS. Some functions are actually named
13479
something starting with __ and the normal name is an alias. */
13480
#if defined __stub_$ac_func || defined __stub___$ac_func
13487
return $ac_func ();
13492
rm -f conftest.$ac_objext conftest$ac_exeext
13493
if { (ac_try="$ac_link"
13494
case "(($ac_try" in
13495
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496
*) ac_try_echo=$ac_try;;
13498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499
(eval "$ac_link") 2>conftest.er1
13501
grep -v '^ *+' conftest.er1 >conftest.err
13503
cat conftest.err >&5
13504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505
(exit $ac_status); } && {
13506
test -z "$ac_cxx_werror_flag" ||
13507
test ! -s conftest.err
13508
} && test -s conftest$ac_exeext &&
13509
$as_test_x conftest$ac_exeext; then
13510
eval "$as_ac_var=yes"
13512
echo "$as_me: failed program was:" >&5
13513
sed 's/^/| /' conftest.$ac_ext >&5
13515
eval "$as_ac_var=no"
13518
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13519
conftest$ac_exeext conftest.$ac_ext
13521
ac_res=`eval echo '${'$as_ac_var'}'`
13522
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13523
echo "${ECHO_T}$ac_res" >&6; }
13524
if test `eval echo '${'$as_ac_var'}'` = yes; then
13525
cat >>confdefs.h <<_ACEOF
13526
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13532
if test "x$ac_cv_func_fork" = xyes; then
13533
{ echo "$as_me:$LINENO: checking for working fork" >&5
13534
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
13535
if test "${ac_cv_func_fork_works+set}" = set; then
13536
echo $ECHO_N "(cached) $ECHO_C" >&6
13538
if test "$cross_compiling" = yes; then
13539
ac_cv_func_fork_works=cross
13541
cat >conftest.$ac_ext <<_ACEOF
13544
cat confdefs.h >>conftest.$ac_ext
13545
cat >>conftest.$ac_ext <<_ACEOF
13546
/* end confdefs.h. */
13547
$ac_includes_default
13552
/* By Ruediger Kuhlmann. */
13553
return fork () < 0;
13559
rm -f conftest$ac_exeext
13560
if { (ac_try="$ac_link"
13561
case "(($ac_try" in
13562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563
*) ac_try_echo=$ac_try;;
13565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566
(eval "$ac_link") 2>&5
13568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13570
{ (case "(($ac_try" in
13571
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572
*) ac_try_echo=$ac_try;;
13574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575
(eval "$ac_try") 2>&5
13577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578
(exit $ac_status); }; }; then
13579
ac_cv_func_fork_works=yes
13581
echo "$as_me: program exited with status $ac_status" >&5
13582
echo "$as_me: failed program was:" >&5
13583
sed 's/^/| /' conftest.$ac_ext >&5
13585
( exit $ac_status )
13586
ac_cv_func_fork_works=no
13588
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13593
{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
13594
echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
13597
ac_cv_func_fork_works=$ac_cv_func_fork
13599
if test "x$ac_cv_func_fork_works" = xcross; then
13601
*-*-amigaos* | *-*-msdosdjgpp*)
13602
# Override, as these systems have only a dummy fork() stub
13603
ac_cv_func_fork_works=no
13606
ac_cv_func_fork_works=yes
13609
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13610
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13612
ac_cv_func_vfork_works=$ac_cv_func_vfork
13613
if test "x$ac_cv_func_vfork" = xyes; then
13614
{ echo "$as_me:$LINENO: checking for working vfork" >&5
13615
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
13616
if test "${ac_cv_func_vfork_works+set}" = set; then
13617
echo $ECHO_N "(cached) $ECHO_C" >&6
13619
if test "$cross_compiling" = yes; then
13620
ac_cv_func_vfork_works=cross
13622
cat >conftest.$ac_ext <<_ACEOF
13625
cat confdefs.h >>conftest.$ac_ext
13626
cat >>conftest.$ac_ext <<_ACEOF
13627
/* end confdefs.h. */
13628
/* Thanks to Paul Eggert for this test. */
13629
$ac_includes_default
13630
#include <sys/wait.h>
13631
#ifdef HAVE_VFORK_H
13632
# include <vfork.h>
13634
/* On some sparc systems, changes by the child to local and incoming
13635
argument registers are propagated back to the parent. The compiler
13636
is told about this with #include <vfork.h>, but some compilers
13637
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13638
static variable whose address is put into a register that is
13639
clobbered by the vfork. */
13642
sparc_address_test (int arg)
13644
sparc_address_test (arg) int arg;
13647
static pid_t child;
13665
pid_t parent = getpid ();
13668
sparc_address_test (0);
13673
/* Here is another test for sparc vfork register problems. This
13674
test uses lots of local variables, at least as many local
13675
variables as main has allocated so far including compiler
13676
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13677
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13678
reuse the register of parent for one of the local variables,
13679
since it will think that parent can't possibly be used any more
13680
in this routine. Assigning to the local variable will thus
13681
munge parent in the parent process. */
13683
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13684
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13685
/* Convince the compiler that p..p7 are live; otherwise, it might
13686
use the same hardware register for all 8 local variables. */
13687
if (p != p1 || p != p2 || p != p3 || p != p4
13688
|| p != p5 || p != p6 || p != p7)
13691
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13692
from child file descriptors. If the child closes a descriptor
13693
before it execs or exits, this munges the parent's descriptor
13694
as well. Test for this by closing stdout in the child. */
13695
_exit(close(fileno(stdout)) != 0);
13700
while (wait(&status) != child)
13703
/* Was there some problem with vforking? */
13706
/* Did the child fail? (This shouldn't happen.) */
13709
/* Did the vfork/compiler bug occur? */
13710
|| parent != getpid()
13712
/* Did the file descriptor bug occur? */
13713
|| fstat(fileno(stdout), &st) != 0
13718
rm -f conftest$ac_exeext
13719
if { (ac_try="$ac_link"
13720
case "(($ac_try" in
13721
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722
*) ac_try_echo=$ac_try;;
13724
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725
(eval "$ac_link") 2>&5
13727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13729
{ (case "(($ac_try" in
13730
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731
*) ac_try_echo=$ac_try;;
13733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734
(eval "$ac_try") 2>&5
13736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737
(exit $ac_status); }; }; then
13738
ac_cv_func_vfork_works=yes
13740
echo "$as_me: program exited with status $ac_status" >&5
13741
echo "$as_me: failed program was:" >&5
13742
sed 's/^/| /' conftest.$ac_ext >&5
13744
( exit $ac_status )
13745
ac_cv_func_vfork_works=no
13747
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13752
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13753
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
13756
if test "x$ac_cv_func_fork_works" = xcross; then
13757
ac_cv_func_vfork_works=$ac_cv_func_vfork
13758
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13759
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13762
if test "x$ac_cv_func_vfork_works" = xyes; then
13764
cat >>confdefs.h <<\_ACEOF
13765
#define HAVE_WORKING_VFORK 1
13770
cat >>confdefs.h <<\_ACEOF
13775
if test "x$ac_cv_func_fork_works" = xyes; then
13777
cat >>confdefs.h <<\_ACEOF
13778
#define HAVE_WORKING_FORK 1
13784
for ac_header in stdlib.h
13786
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13787
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13788
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13789
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13790
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13791
echo $ECHO_N "(cached) $ECHO_C" >&6
13793
ac_res=`eval echo '${'$as_ac_Header'}'`
13794
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13795
echo "${ECHO_T}$ac_res" >&6; }
13797
# Is the header compilable?
13798
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13799
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13800
cat >conftest.$ac_ext <<_ACEOF
13803
cat confdefs.h >>conftest.$ac_ext
13804
cat >>conftest.$ac_ext <<_ACEOF
13805
/* end confdefs.h. */
13806
$ac_includes_default
13807
#include <$ac_header>
13809
rm -f conftest.$ac_objext
13810
if { (ac_try="$ac_compile"
13811
case "(($ac_try" in
13812
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813
*) ac_try_echo=$ac_try;;
13815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816
(eval "$ac_compile") 2>conftest.er1
13818
grep -v '^ *+' conftest.er1 >conftest.err
13820
cat conftest.err >&5
13821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822
(exit $ac_status); } && {
13823
test -z "$ac_cxx_werror_flag" ||
13824
test ! -s conftest.err
13825
} && test -s conftest.$ac_objext; then
13826
ac_header_compiler=yes
13828
echo "$as_me: failed program was:" >&5
13829
sed 's/^/| /' conftest.$ac_ext >&5
13831
ac_header_compiler=no
13834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13835
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13836
echo "${ECHO_T}$ac_header_compiler" >&6; }
13838
# Is the header present?
13839
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13840
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13841
cat >conftest.$ac_ext <<_ACEOF
13844
cat confdefs.h >>conftest.$ac_ext
13845
cat >>conftest.$ac_ext <<_ACEOF
13846
/* end confdefs.h. */
13847
#include <$ac_header>
13849
if { (ac_try="$ac_cpp conftest.$ac_ext"
13850
case "(($ac_try" in
13851
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852
*) ac_try_echo=$ac_try;;
13854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13857
grep -v '^ *+' conftest.er1 >conftest.err
13859
cat conftest.err >&5
13860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861
(exit $ac_status); } >/dev/null && {
13862
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13863
test ! -s conftest.err
13865
ac_header_preproc=yes
13867
echo "$as_me: failed program was:" >&5
13868
sed 's/^/| /' conftest.$ac_ext >&5
13870
ac_header_preproc=no
13873
rm -f conftest.err conftest.$ac_ext
13874
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13875
echo "${ECHO_T}$ac_header_preproc" >&6; }
13877
# So? What about this header?
13878
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
13880
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13881
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13882
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13883
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13884
ac_header_preproc=yes
13887
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13888
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13889
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13890
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13891
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13892
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13893
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13894
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13895
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13896
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13897
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13898
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13902
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13903
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13904
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13905
echo $ECHO_N "(cached) $ECHO_C" >&6
13907
eval "$as_ac_Header=\$ac_header_preproc"
13909
ac_res=`eval echo '${'$as_ac_Header'}'`
13910
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13911
echo "${ECHO_T}$ac_res" >&6; }
13914
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13915
cat >>confdefs.h <<_ACEOF
13916
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13923
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13924
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
13925
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13926
echo $ECHO_N "(cached) $ECHO_C" >&6
13928
if test "$cross_compiling" = yes; then
13929
ac_cv_func_malloc_0_nonnull=no
13931
cat >conftest.$ac_ext <<_ACEOF
13934
cat confdefs.h >>conftest.$ac_ext
13935
cat >>conftest.$ac_ext <<_ACEOF
13936
/* end confdefs.h. */
13937
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13938
# include <stdlib.h>
13946
return ! malloc (0);
13951
rm -f conftest$ac_exeext
13952
if { (ac_try="$ac_link"
13953
case "(($ac_try" in
13954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955
*) ac_try_echo=$ac_try;;
13957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958
(eval "$ac_link") 2>&5
13960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13962
{ (case "(($ac_try" in
13963
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964
*) ac_try_echo=$ac_try;;
13966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967
(eval "$ac_try") 2>&5
13969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970
(exit $ac_status); }; }; then
13971
ac_cv_func_malloc_0_nonnull=yes
13973
echo "$as_me: program exited with status $ac_status" >&5
13974
echo "$as_me: failed program was:" >&5
13975
sed 's/^/| /' conftest.$ac_ext >&5
13977
( exit $ac_status )
13978
ac_cv_func_malloc_0_nonnull=no
13980
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13985
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13986
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
13987
if test $ac_cv_func_malloc_0_nonnull = yes; then
13989
cat >>confdefs.h <<\_ACEOF
13990
#define HAVE_MALLOC 1
13994
cat >>confdefs.h <<\_ACEOF
13995
#define HAVE_MALLOC 0
13998
case " $LIBOBJS " in
13999
*" malloc.$ac_objext "* ) ;;
14000
*) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14005
cat >>confdefs.h <<\_ACEOF
14006
#define malloc rpl_malloc
14014
for ac_header in stdlib.h
14016
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14017
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14018
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14019
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14020
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14021
echo $ECHO_N "(cached) $ECHO_C" >&6
14023
ac_res=`eval echo '${'$as_ac_Header'}'`
14024
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14025
echo "${ECHO_T}$ac_res" >&6; }
14027
# Is the header compilable?
14028
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14029
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14030
cat >conftest.$ac_ext <<_ACEOF
14033
cat confdefs.h >>conftest.$ac_ext
14034
cat >>conftest.$ac_ext <<_ACEOF
14035
/* end confdefs.h. */
14036
$ac_includes_default
14037
#include <$ac_header>
14039
rm -f conftest.$ac_objext
14040
if { (ac_try="$ac_compile"
14041
case "(($ac_try" in
14042
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043
*) ac_try_echo=$ac_try;;
14045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046
(eval "$ac_compile") 2>conftest.er1
14048
grep -v '^ *+' conftest.er1 >conftest.err
14050
cat conftest.err >&5
14051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052
(exit $ac_status); } && {
14053
test -z "$ac_cxx_werror_flag" ||
14054
test ! -s conftest.err
14055
} && test -s conftest.$ac_objext; then
14056
ac_header_compiler=yes
14058
echo "$as_me: failed program was:" >&5
14059
sed 's/^/| /' conftest.$ac_ext >&5
14061
ac_header_compiler=no
14064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14065
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14066
echo "${ECHO_T}$ac_header_compiler" >&6; }
14068
# Is the header present?
14069
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14070
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14071
cat >conftest.$ac_ext <<_ACEOF
14074
cat confdefs.h >>conftest.$ac_ext
14075
cat >>conftest.$ac_ext <<_ACEOF
14076
/* end confdefs.h. */
14077
#include <$ac_header>
14079
if { (ac_try="$ac_cpp conftest.$ac_ext"
14080
case "(($ac_try" in
14081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082
*) ac_try_echo=$ac_try;;
14084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14087
grep -v '^ *+' conftest.er1 >conftest.err
14089
cat conftest.err >&5
14090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091
(exit $ac_status); } >/dev/null && {
14092
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14093
test ! -s conftest.err
14095
ac_header_preproc=yes
14097
echo "$as_me: failed program was:" >&5
14098
sed 's/^/| /' conftest.$ac_ext >&5
14100
ac_header_preproc=no
14103
rm -f conftest.err conftest.$ac_ext
14104
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14105
echo "${ECHO_T}$ac_header_preproc" >&6; }
14107
# So? What about this header?
14108
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14110
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14111
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14112
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14113
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14114
ac_header_preproc=yes
14117
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14118
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14119
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14120
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14121
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14122
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14123
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14124
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14125
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14126
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14127
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14128
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14132
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14133
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14134
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14135
echo $ECHO_N "(cached) $ECHO_C" >&6
14137
eval "$as_ac_Header=\$ac_header_preproc"
14139
ac_res=`eval echo '${'$as_ac_Header'}'`
14140
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14141
echo "${ECHO_T}$ac_res" >&6; }
14144
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14145
cat >>confdefs.h <<_ACEOF
14146
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14153
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14154
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
14155
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14156
echo $ECHO_N "(cached) $ECHO_C" >&6
14158
if test "$cross_compiling" = yes; then
14159
ac_cv_func_realloc_0_nonnull=no
14161
cat >conftest.$ac_ext <<_ACEOF
14164
cat confdefs.h >>conftest.$ac_ext
14165
cat >>conftest.$ac_ext <<_ACEOF
14166
/* end confdefs.h. */
14167
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14168
# include <stdlib.h>
14176
return ! realloc (0, 0);
14181
rm -f conftest$ac_exeext
14182
if { (ac_try="$ac_link"
14183
case "(($ac_try" in
14184
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185
*) ac_try_echo=$ac_try;;
14187
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188
(eval "$ac_link") 2>&5
14190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14192
{ (case "(($ac_try" in
14193
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194
*) ac_try_echo=$ac_try;;
14196
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197
(eval "$ac_try") 2>&5
14199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200
(exit $ac_status); }; }; then
14201
ac_cv_func_realloc_0_nonnull=yes
14203
echo "$as_me: program exited with status $ac_status" >&5
14204
echo "$as_me: failed program was:" >&5
14205
sed 's/^/| /' conftest.$ac_ext >&5
14207
( exit $ac_status )
14208
ac_cv_func_realloc_0_nonnull=no
14210
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14215
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14216
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
14217
if test $ac_cv_func_realloc_0_nonnull = yes; then
14219
cat >>confdefs.h <<\_ACEOF
14220
#define HAVE_REALLOC 1
14224
cat >>confdefs.h <<\_ACEOF
14225
#define HAVE_REALLOC 0
14228
case " $LIBOBJS " in
14229
*" realloc.$ac_objext "* ) ;;
14230
*) LIBOBJS="$LIBOBJS realloc.$ac_objext"
14235
cat >>confdefs.h <<\_ACEOF
14236
#define realloc rpl_realloc
14245
for ac_header in sys/select.h sys/socket.h
14247
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14248
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14249
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14250
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14251
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14252
echo $ECHO_N "(cached) $ECHO_C" >&6
14254
ac_res=`eval echo '${'$as_ac_Header'}'`
14255
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14256
echo "${ECHO_T}$ac_res" >&6; }
14258
# Is the header compilable?
14259
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14260
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14261
cat >conftest.$ac_ext <<_ACEOF
14264
cat confdefs.h >>conftest.$ac_ext
14265
cat >>conftest.$ac_ext <<_ACEOF
14266
/* end confdefs.h. */
14267
$ac_includes_default
14268
#include <$ac_header>
14270
rm -f conftest.$ac_objext
14271
if { (ac_try="$ac_compile"
14272
case "(($ac_try" in
14273
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274
*) ac_try_echo=$ac_try;;
14276
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277
(eval "$ac_compile") 2>conftest.er1
14279
grep -v '^ *+' conftest.er1 >conftest.err
14281
cat conftest.err >&5
14282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283
(exit $ac_status); } && {
14284
test -z "$ac_cxx_werror_flag" ||
14285
test ! -s conftest.err
14286
} && test -s conftest.$ac_objext; then
14287
ac_header_compiler=yes
14289
echo "$as_me: failed program was:" >&5
14290
sed 's/^/| /' conftest.$ac_ext >&5
14292
ac_header_compiler=no
14295
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14296
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14297
echo "${ECHO_T}$ac_header_compiler" >&6; }
14299
# Is the header present?
14300
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14301
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14302
cat >conftest.$ac_ext <<_ACEOF
14305
cat confdefs.h >>conftest.$ac_ext
14306
cat >>conftest.$ac_ext <<_ACEOF
14307
/* end confdefs.h. */
14308
#include <$ac_header>
14310
if { (ac_try="$ac_cpp conftest.$ac_ext"
14311
case "(($ac_try" in
14312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313
*) ac_try_echo=$ac_try;;
14315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14318
grep -v '^ *+' conftest.er1 >conftest.err
14320
cat conftest.err >&5
14321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322
(exit $ac_status); } >/dev/null && {
14323
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14324
test ! -s conftest.err
14326
ac_header_preproc=yes
14328
echo "$as_me: failed program was:" >&5
14329
sed 's/^/| /' conftest.$ac_ext >&5
14331
ac_header_preproc=no
14334
rm -f conftest.err conftest.$ac_ext
14335
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14336
echo "${ECHO_T}$ac_header_preproc" >&6; }
14338
# So? What about this header?
14339
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14341
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14342
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14343
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14344
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14345
ac_header_preproc=yes
14348
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14349
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14350
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14351
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14352
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14353
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14354
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14355
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14356
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14357
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14358
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14359
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14363
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14364
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14365
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14366
echo $ECHO_N "(cached) $ECHO_C" >&6
14368
eval "$as_ac_Header=\$ac_header_preproc"
14370
ac_res=`eval echo '${'$as_ac_Header'}'`
14371
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14372
echo "${ECHO_T}$ac_res" >&6; }
14375
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14376
cat >>confdefs.h <<_ACEOF
14377
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14384
{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
14385
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
14386
if test "${ac_cv_func_select_args+set}" = set; then
14387
echo $ECHO_N "(cached) $ECHO_C" >&6
14389
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14390
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14391
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14392
cat >conftest.$ac_ext <<_ACEOF
14395
cat confdefs.h >>conftest.$ac_ext
14396
cat >>conftest.$ac_ext <<_ACEOF
14397
/* end confdefs.h. */
14398
$ac_includes_default
14399
#ifdef HAVE_SYS_SELECT_H
14400
# include <sys/select.h>
14402
#ifdef HAVE_SYS_SOCKET_H
14403
# include <sys/socket.h>
14409
extern int select ($ac_arg1,
14410
$ac_arg234, $ac_arg234, $ac_arg234,
14416
rm -f conftest.$ac_objext
14417
if { (ac_try="$ac_compile"
14418
case "(($ac_try" in
14419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420
*) ac_try_echo=$ac_try;;
14422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423
(eval "$ac_compile") 2>conftest.er1
14425
grep -v '^ *+' conftest.er1 >conftest.err
14427
cat conftest.err >&5
14428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429
(exit $ac_status); } && {
14430
test -z "$ac_cxx_werror_flag" ||
14431
test ! -s conftest.err
14432
} && test -s conftest.$ac_objext; then
14433
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14435
echo "$as_me: failed program was:" >&5
14436
sed 's/^/| /' conftest.$ac_ext >&5
14441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14445
# Provide a safe default value.
14446
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14449
{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14450
echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
14451
ac_save_IFS=$IFS; IFS=','
14452
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14456
cat >>confdefs.h <<_ACEOF
14457
#define SELECT_TYPE_ARG1 $1
14461
cat >>confdefs.h <<_ACEOF
14462
#define SELECT_TYPE_ARG234 ($2)
14466
cat >>confdefs.h <<_ACEOF
14467
#define SELECT_TYPE_ARG5 ($3)
14472
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14473
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
14474
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14475
echo $ECHO_N "(cached) $ECHO_C" >&6
14477
rm -f conftest.sym conftest.file
14478
echo >conftest.file
14479
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14480
if test "$cross_compiling" = yes; then
14481
ac_cv_func_lstat_dereferences_slashed_symlink=no
14483
cat >conftest.$ac_ext <<_ACEOF
14486
cat confdefs.h >>conftest.$ac_ext
14487
cat >>conftest.$ac_ext <<_ACEOF
14488
/* end confdefs.h. */
14489
$ac_includes_default
14494
/* Linux will dereference the symlink and fail.
14495
That is better in the sense that it means we will not
14496
have to compile and use the lstat wrapper. */
14497
return lstat ("conftest.sym/", &sbuf) == 0;
14502
rm -f conftest$ac_exeext
14503
if { (ac_try="$ac_link"
14504
case "(($ac_try" in
14505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506
*) ac_try_echo=$ac_try;;
14508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509
(eval "$ac_link") 2>&5
14511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14513
{ (case "(($ac_try" in
14514
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515
*) ac_try_echo=$ac_try;;
14517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518
(eval "$ac_try") 2>&5
14520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521
(exit $ac_status); }; }; then
14522
ac_cv_func_lstat_dereferences_slashed_symlink=yes
14524
echo "$as_me: program exited with status $ac_status" >&5
14525
echo "$as_me: failed program was:" >&5
14526
sed 's/^/| /' conftest.$ac_ext >&5
14528
( exit $ac_status )
14529
ac_cv_func_lstat_dereferences_slashed_symlink=no
14531
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14536
# If the `ln -s' command failed, then we probably don't even
14537
# have an lstat function.
14538
ac_cv_func_lstat_dereferences_slashed_symlink=no
14540
rm -f conftest.sym conftest.file
14543
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14544
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14546
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14548
cat >>confdefs.h <<_ACEOF
14549
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14553
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14554
case " $LIBOBJS " in
14555
*" lstat.$ac_objext "* ) ;;
14556
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14562
{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14563
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14564
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14565
echo $ECHO_N "(cached) $ECHO_C" >&6
14567
if test "$cross_compiling" = yes; then
14568
ac_cv_func_stat_empty_string_bug=yes
14570
cat >conftest.$ac_ext <<_ACEOF
14573
cat confdefs.h >>conftest.$ac_ext
14574
cat >>conftest.$ac_ext <<_ACEOF
14575
/* end confdefs.h. */
14576
$ac_includes_default
14581
return stat ("", &sbuf) == 0;
14586
rm -f conftest$ac_exeext
14587
if { (ac_try="$ac_link"
14588
case "(($ac_try" in
14589
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590
*) ac_try_echo=$ac_try;;
14592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593
(eval "$ac_link") 2>&5
14595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14597
{ (case "(($ac_try" in
14598
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599
*) ac_try_echo=$ac_try;;
14601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602
(eval "$ac_try") 2>&5
14604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605
(exit $ac_status); }; }; then
14606
ac_cv_func_stat_empty_string_bug=no
14608
echo "$as_me: program exited with status $ac_status" >&5
14609
echo "$as_me: failed program was:" >&5
14610
sed 's/^/| /' conftest.$ac_ext >&5
14612
( exit $ac_status )
14613
ac_cv_func_stat_empty_string_bug=yes
14615
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14620
{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14621
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14622
if test $ac_cv_func_stat_empty_string_bug = yes; then
14623
case " $LIBOBJS " in
14624
*" stat.$ac_objext "* ) ;;
14625
*) LIBOBJS="$LIBOBJS stat.$ac_objext"
14630
cat >>confdefs.h <<_ACEOF
14631
#define HAVE_STAT_EMPTY_STRING_BUG 1
14637
for ac_func in strftime
14639
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14640
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14641
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14642
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14643
echo $ECHO_N "(cached) $ECHO_C" >&6
14645
cat >conftest.$ac_ext <<_ACEOF
14648
cat confdefs.h >>conftest.$ac_ext
14649
cat >>conftest.$ac_ext <<_ACEOF
14650
/* end confdefs.h. */
14651
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14652
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14653
#define $ac_func innocuous_$ac_func
14655
/* System header to define __stub macros and hopefully few prototypes,
14656
which can conflict with char $ac_func (); below.
14657
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14658
<limits.h> exists even on freestanding compilers. */
14661
# include <limits.h>
14663
# include <assert.h>
14668
/* Override any GCC internal prototype to avoid an error.
14669
Use char because int might match the return type of a GCC
14670
builtin and then its argument prototype would still apply. */
14675
/* The GNU C library defines this for functions which it implements
14676
to always fail with ENOSYS. Some functions are actually named
14677
something starting with __ and the normal name is an alias. */
14678
#if defined __stub_$ac_func || defined __stub___$ac_func
14685
return $ac_func ();
14690
rm -f conftest.$ac_objext conftest$ac_exeext
14691
if { (ac_try="$ac_link"
14692
case "(($ac_try" in
14693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694
*) ac_try_echo=$ac_try;;
14696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697
(eval "$ac_link") 2>conftest.er1
14699
grep -v '^ *+' conftest.er1 >conftest.err
14701
cat conftest.err >&5
14702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703
(exit $ac_status); } && {
14704
test -z "$ac_cxx_werror_flag" ||
14705
test ! -s conftest.err
14706
} && test -s conftest$ac_exeext &&
14707
$as_test_x conftest$ac_exeext; then
14708
eval "$as_ac_var=yes"
14710
echo "$as_me: failed program was:" >&5
14711
sed 's/^/| /' conftest.$ac_ext >&5
14713
eval "$as_ac_var=no"
14716
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14717
conftest$ac_exeext conftest.$ac_ext
14719
ac_res=`eval echo '${'$as_ac_var'}'`
14720
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14721
echo "${ECHO_T}$ac_res" >&6; }
14722
if test `eval echo '${'$as_ac_var'}'` = yes; then
14723
cat >>confdefs.h <<_ACEOF
14724
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14728
# strftime is in -lintl on SCO UNIX.
14729
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14730
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14731
if test "${ac_cv_lib_intl_strftime+set}" = set; then
14732
echo $ECHO_N "(cached) $ECHO_C" >&6
14734
ac_check_lib_save_LIBS=$LIBS
14735
LIBS="-lintl $LIBS"
14736
cat >conftest.$ac_ext <<_ACEOF
14739
cat confdefs.h >>conftest.$ac_ext
14740
cat >>conftest.$ac_ext <<_ACEOF
14741
/* end confdefs.h. */
14743
/* Override any GCC internal prototype to avoid an error.
14744
Use char because int might match the return type of a GCC
14745
builtin and then its argument prototype would still apply. */
14753
return strftime ();
14758
rm -f conftest.$ac_objext conftest$ac_exeext
14759
if { (ac_try="$ac_link"
14760
case "(($ac_try" in
14761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762
*) ac_try_echo=$ac_try;;
14764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765
(eval "$ac_link") 2>conftest.er1
14767
grep -v '^ *+' conftest.er1 >conftest.err
14769
cat conftest.err >&5
14770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771
(exit $ac_status); } && {
14772
test -z "$ac_cxx_werror_flag" ||
14773
test ! -s conftest.err
14774
} && test -s conftest$ac_exeext &&
14775
$as_test_x conftest$ac_exeext; then
14776
ac_cv_lib_intl_strftime=yes
14778
echo "$as_me: failed program was:" >&5
14779
sed 's/^/| /' conftest.$ac_ext >&5
14781
ac_cv_lib_intl_strftime=no
14784
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14785
conftest$ac_exeext conftest.$ac_ext
14786
LIBS=$ac_check_lib_save_LIBS
14788
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14789
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14790
if test $ac_cv_lib_intl_strftime = yes; then
14791
cat >>confdefs.h <<\_ACEOF
14792
#define HAVE_STRFTIME 1
14795
LIBS="-lintl $LIBS"
14806
ac_header_dirent=no
14807
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14808
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14809
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14810
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14811
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14812
echo $ECHO_N "(cached) $ECHO_C" >&6
14814
cat >conftest.$ac_ext <<_ACEOF
14817
cat confdefs.h >>conftest.$ac_ext
14818
cat >>conftest.$ac_ext <<_ACEOF
14819
/* end confdefs.h. */
14820
#include <sys/types.h>
14832
rm -f conftest.$ac_objext
14833
if { (ac_try="$ac_compile"
14834
case "(($ac_try" in
14835
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836
*) ac_try_echo=$ac_try;;
14838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839
(eval "$ac_compile") 2>conftest.er1
14841
grep -v '^ *+' conftest.er1 >conftest.err
14843
cat conftest.err >&5
14844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845
(exit $ac_status); } && {
14846
test -z "$ac_cxx_werror_flag" ||
14847
test ! -s conftest.err
14848
} && test -s conftest.$ac_objext; then
14849
eval "$as_ac_Header=yes"
14851
echo "$as_me: failed program was:" >&5
14852
sed 's/^/| /' conftest.$ac_ext >&5
14854
eval "$as_ac_Header=no"
14857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14859
ac_res=`eval echo '${'$as_ac_Header'}'`
14860
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14861
echo "${ECHO_T}$ac_res" >&6; }
14862
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14863
cat >>confdefs.h <<_ACEOF
14864
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14867
ac_header_dirent=$ac_hdr; break
14871
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14872
if test $ac_header_dirent = dirent.h; then
14873
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
14874
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14875
if test "${ac_cv_search_opendir+set}" = set; then
14876
echo $ECHO_N "(cached) $ECHO_C" >&6
14878
ac_func_search_save_LIBS=$LIBS
14879
cat >conftest.$ac_ext <<_ACEOF
14882
cat confdefs.h >>conftest.$ac_ext
14883
cat >>conftest.$ac_ext <<_ACEOF
14884
/* end confdefs.h. */
14886
/* Override any GCC internal prototype to avoid an error.
14887
Use char because int might match the return type of a GCC
14888
builtin and then its argument prototype would still apply. */
14901
for ac_lib in '' dir; do
14902
if test -z "$ac_lib"; then
14903
ac_res="none required"
14906
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14908
rm -f conftest.$ac_objext conftest$ac_exeext
14909
if { (ac_try="$ac_link"
14910
case "(($ac_try" in
14911
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912
*) ac_try_echo=$ac_try;;
14914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915
(eval "$ac_link") 2>conftest.er1
14917
grep -v '^ *+' conftest.er1 >conftest.err
14919
cat conftest.err >&5
14920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921
(exit $ac_status); } && {
14922
test -z "$ac_cxx_werror_flag" ||
14923
test ! -s conftest.err
14924
} && test -s conftest$ac_exeext &&
14925
$as_test_x conftest$ac_exeext; then
14926
ac_cv_search_opendir=$ac_res
14928
echo "$as_me: failed program was:" >&5
14929
sed 's/^/| /' conftest.$ac_ext >&5
14934
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14936
if test "${ac_cv_search_opendir+set}" = set; then
14940
if test "${ac_cv_search_opendir+set}" = set; then
14943
ac_cv_search_opendir=no
14945
rm conftest.$ac_ext
14946
LIBS=$ac_func_search_save_LIBS
14948
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14949
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14950
ac_res=$ac_cv_search_opendir
14951
if test "$ac_res" != no; then
14952
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14957
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
14958
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14959
if test "${ac_cv_search_opendir+set}" = set; then
14960
echo $ECHO_N "(cached) $ECHO_C" >&6
14962
ac_func_search_save_LIBS=$LIBS
14963
cat >conftest.$ac_ext <<_ACEOF
14966
cat confdefs.h >>conftest.$ac_ext
14967
cat >>conftest.$ac_ext <<_ACEOF
14968
/* end confdefs.h. */
14970
/* Override any GCC internal prototype to avoid an error.
14971
Use char because int might match the return type of a GCC
14972
builtin and then its argument prototype would still apply. */
14985
for ac_lib in '' x; do
14986
if test -z "$ac_lib"; then
14987
ac_res="none required"
14990
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14992
rm -f conftest.$ac_objext conftest$ac_exeext
14993
if { (ac_try="$ac_link"
14994
case "(($ac_try" in
14995
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996
*) ac_try_echo=$ac_try;;
14998
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999
(eval "$ac_link") 2>conftest.er1
15001
grep -v '^ *+' conftest.er1 >conftest.err
15003
cat conftest.err >&5
15004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005
(exit $ac_status); } && {
15006
test -z "$ac_cxx_werror_flag" ||
15007
test ! -s conftest.err
15008
} && test -s conftest$ac_exeext &&
15009
$as_test_x conftest$ac_exeext; then
15010
ac_cv_search_opendir=$ac_res
15012
echo "$as_me: failed program was:" >&5
15013
sed 's/^/| /' conftest.$ac_ext >&5
15018
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15020
if test "${ac_cv_search_opendir+set}" = set; then
15024
if test "${ac_cv_search_opendir+set}" = set; then
15027
ac_cv_search_opendir=no
15029
rm conftest.$ac_ext
15030
LIBS=$ac_func_search_save_LIBS
15032
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15033
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15034
ac_res=$ac_cv_search_opendir
15035
if test "$ac_res" != no; then
15036
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15042
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
15043
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
15044
if test "${ac_cv_header_stdbool_h+set}" = set; then
15045
echo $ECHO_N "(cached) $ECHO_C" >&6
15047
cat >conftest.$ac_ext <<_ACEOF
15050
cat confdefs.h >>conftest.$ac_ext
15051
cat >>conftest.$ac_ext <<_ACEOF
15052
/* end confdefs.h. */
15054
#include <stdbool.h>
15056
"error: bool is not defined"
15059
"error: false is not defined"
15062
"error: false is not 0"
15065
"error: true is not defined"
15068
"error: true is not 1"
15070
#ifndef __bool_true_false_are_defined
15071
"error: __bool_true_false_are_defined is not defined"
15074
struct s { _Bool s: 1; _Bool t; } s;
15076
char a[true == 1 ? 1 : -1];
15077
char b[false == 0 ? 1 : -1];
15078
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15079
char d[(bool) 0.5 == true ? 1 : -1];
15081
char f[(_Bool) 0.0 == false ? 1 : -1];
15083
char h[sizeof (_Bool)];
15084
char i[sizeof s.t];
15085
enum { j = false, k = true, l = false * true, m = true * 256 };
15087
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15088
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15089
# if defined __xlc__ || defined __GNUC__
15090
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
15091
reported by James Lemley on 2005-10-05; see
15092
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
15093
This test is not quite right, since xlc is allowed to
15094
reject this program, as the initializer for xlcbug is
15095
not one of the forms that C requires support for.
15096
However, doing the test right would require a runtime
15097
test, and that would make cross-compilation harder.
15098
Let us hope that IBM fixes the xlc bug, and also adds
15099
support for this kind of constant expression. In the
15100
meantime, this test will reject xlc, which is OK, since
15101
our stdbool.h substitute should suffice. We also test
15102
this with GCC, where it should work, to detect more
15103
quickly whether someone messes up the test in the
15105
char digs[] = "0123456789";
15106
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
15108
/* Catch a bug in an HP-UX C compiler. See
15109
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15110
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15121
/* Refer to every declared value, to avoid compiler optimizations. */
15122
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15123
+ !m + !n + !o + !p + !q + !pq);
15129
rm -f conftest.$ac_objext
15130
if { (ac_try="$ac_compile"
15131
case "(($ac_try" in
15132
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133
*) ac_try_echo=$ac_try;;
15135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136
(eval "$ac_compile") 2>conftest.er1
15138
grep -v '^ *+' conftest.er1 >conftest.err
15140
cat conftest.err >&5
15141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142
(exit $ac_status); } && {
15143
test -z "$ac_cxx_werror_flag" ||
15144
test ! -s conftest.err
15145
} && test -s conftest.$ac_objext; then
15146
ac_cv_header_stdbool_h=yes
15148
echo "$as_me: failed program was:" >&5
15149
sed 's/^/| /' conftest.$ac_ext >&5
15151
ac_cv_header_stdbool_h=no
15154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
15157
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
15158
{ echo "$as_me:$LINENO: checking for _Bool" >&5
15159
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
15160
if test "${ac_cv_type__Bool+set}" = set; then
15161
echo $ECHO_N "(cached) $ECHO_C" >&6
15163
cat >conftest.$ac_ext <<_ACEOF
15166
cat confdefs.h >>conftest.$ac_ext
15167
cat >>conftest.$ac_ext <<_ACEOF
15168
/* end confdefs.h. */
15169
$ac_includes_default
15170
typedef _Bool ac__type_new_;
15174
if ((ac__type_new_ *) 0)
15176
if (sizeof (ac__type_new_))
15182
rm -f conftest.$ac_objext
15183
if { (ac_try="$ac_compile"
15184
case "(($ac_try" in
15185
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186
*) ac_try_echo=$ac_try;;
15188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189
(eval "$ac_compile") 2>conftest.er1
15191
grep -v '^ *+' conftest.er1 >conftest.err
15193
cat conftest.err >&5
15194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195
(exit $ac_status); } && {
15196
test -z "$ac_cxx_werror_flag" ||
15197
test ! -s conftest.err
15198
} && test -s conftest.$ac_objext; then
15199
ac_cv_type__Bool=yes
15201
echo "$as_me: failed program was:" >&5
15202
sed 's/^/| /' conftest.$ac_ext >&5
15204
ac_cv_type__Bool=no
15207
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
15210
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
15211
if test $ac_cv_type__Bool = yes; then
15213
cat >>confdefs.h <<_ACEOF
15214
#define HAVE__BOOL 1
15220
if test $ac_cv_header_stdbool_h = yes; then
15222
cat >>confdefs.h <<\_ACEOF
15223
#define HAVE_STDBOOL_H 1
15228
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15229
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15230
if test "${ac_cv_header_sys_wait_h+set}" = set; then
15231
echo $ECHO_N "(cached) $ECHO_C" >&6
15233
cat >conftest.$ac_ext <<_ACEOF
15236
cat confdefs.h >>conftest.$ac_ext
15237
cat >>conftest.$ac_ext <<_ACEOF
15238
/* end confdefs.h. */
15239
#include <sys/types.h>
15240
#include <sys/wait.h>
15241
#ifndef WEXITSTATUS
15242
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15245
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15253
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15258
rm -f conftest.$ac_objext
15259
if { (ac_try="$ac_compile"
15260
case "(($ac_try" in
15261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262
*) ac_try_echo=$ac_try;;
15264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265
(eval "$ac_compile") 2>conftest.er1
15267
grep -v '^ *+' conftest.er1 >conftest.err
15269
cat conftest.err >&5
15270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271
(exit $ac_status); } && {
15272
test -z "$ac_cxx_werror_flag" ||
15273
test ! -s conftest.err
15274
} && test -s conftest.$ac_objext; then
15275
ac_cv_header_sys_wait_h=yes
15277
echo "$as_me: failed program was:" >&5
15278
sed 's/^/| /' conftest.$ac_ext >&5
15280
ac_cv_header_sys_wait_h=no
15283
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15286
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15287
if test $ac_cv_header_sys_wait_h = yes; then
15289
cat >>confdefs.h <<\_ACEOF
15290
#define HAVE_SYS_WAIT_H 1
15295
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15296
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
15297
if test "${ac_cv_struct_tm+set}" = set; then
15298
echo $ECHO_N "(cached) $ECHO_C" >&6
15300
cat >conftest.$ac_ext <<_ACEOF
15303
cat confdefs.h >>conftest.$ac_ext
15304
cat >>conftest.$ac_ext <<_ACEOF
15305
/* end confdefs.h. */
15306
#include <sys/types.h>
15313
int *p = &tm.tm_sec;
15319
rm -f conftest.$ac_objext
15320
if { (ac_try="$ac_compile"
15321
case "(($ac_try" in
15322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323
*) ac_try_echo=$ac_try;;
15325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326
(eval "$ac_compile") 2>conftest.er1
15328
grep -v '^ *+' conftest.er1 >conftest.err
15330
cat conftest.err >&5
15331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332
(exit $ac_status); } && {
15333
test -z "$ac_cxx_werror_flag" ||
15334
test ! -s conftest.err
15335
} && test -s conftest.$ac_objext; then
15336
ac_cv_struct_tm=time.h
15338
echo "$as_me: failed program was:" >&5
15339
sed 's/^/| /' conftest.$ac_ext >&5
15341
ac_cv_struct_tm=sys/time.h
15344
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15346
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15347
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
15348
if test $ac_cv_struct_tm = sys/time.h; then
15350
cat >>confdefs.h <<\_ACEOF
15351
#define TM_IN_SYS_TIME 1
15356
{ echo "$as_me:$LINENO: checking for pid_t" >&5
15357
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
15358
if test "${ac_cv_type_pid_t+set}" = set; then
15359
echo $ECHO_N "(cached) $ECHO_C" >&6
15361
cat >conftest.$ac_ext <<_ACEOF
15364
cat confdefs.h >>conftest.$ac_ext
15365
cat >>conftest.$ac_ext <<_ACEOF
15366
/* end confdefs.h. */
15367
$ac_includes_default
15368
typedef pid_t ac__type_new_;
15372
if ((ac__type_new_ *) 0)
15374
if (sizeof (ac__type_new_))
15380
rm -f conftest.$ac_objext
15381
if { (ac_try="$ac_compile"
15382
case "(($ac_try" in
15383
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384
*) ac_try_echo=$ac_try;;
15386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387
(eval "$ac_compile") 2>conftest.er1
15389
grep -v '^ *+' conftest.er1 >conftest.err
15391
cat conftest.err >&5
15392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393
(exit $ac_status); } && {
15394
test -z "$ac_cxx_werror_flag" ||
15395
test ! -s conftest.err
15396
} && test -s conftest.$ac_objext; then
15397
ac_cv_type_pid_t=yes
15399
echo "$as_me: failed program was:" >&5
15400
sed 's/^/| /' conftest.$ac_ext >&5
15402
ac_cv_type_pid_t=no
15405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15408
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
15409
if test $ac_cv_type_pid_t = yes; then
15413
cat >>confdefs.h <<_ACEOF
15419
{ echo "$as_me:$LINENO: checking for size_t" >&5
15420
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15421
if test "${ac_cv_type_size_t+set}" = set; then
15422
echo $ECHO_N "(cached) $ECHO_C" >&6
15424
cat >conftest.$ac_ext <<_ACEOF
15427
cat confdefs.h >>conftest.$ac_ext
15428
cat >>conftest.$ac_ext <<_ACEOF
15429
/* end confdefs.h. */
15430
$ac_includes_default
15431
typedef size_t ac__type_new_;
15435
if ((ac__type_new_ *) 0)
15437
if (sizeof (ac__type_new_))
15443
rm -f conftest.$ac_objext
15444
if { (ac_try="$ac_compile"
15445
case "(($ac_try" in
15446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447
*) ac_try_echo=$ac_try;;
15449
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450
(eval "$ac_compile") 2>conftest.er1
15452
grep -v '^ *+' conftest.er1 >conftest.err
15454
cat conftest.err >&5
15455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456
(exit $ac_status); } && {
15457
test -z "$ac_cxx_werror_flag" ||
15458
test ! -s conftest.err
15459
} && test -s conftest.$ac_objext; then
15460
ac_cv_type_size_t=yes
15462
echo "$as_me: failed program was:" >&5
15463
sed 's/^/| /' conftest.$ac_ext >&5
15465
ac_cv_type_size_t=no
15468
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15471
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15472
if test $ac_cv_type_size_t = yes; then
15476
cat >>confdefs.h <<_ACEOF
15477
#define size_t unsigned int
10176
$ac_cs_success || as_fn_exit $?
10178
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10179
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10180
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
10186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE version $VERSION configured successfully." >&5
10187
$as_echo " $PACKAGE version $VERSION configured successfully." >&6; }
10188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
10190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$prefix' for installation." >&5
10191
$as_echo "Using '$prefix' for installation." >&6; }
10192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$DEFAULT_MENU' for location menu file." >&5
10193
$as_echo "Using '$DEFAULT_MENU' for location menu file." >&6; }
10194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$DEFAULT_STYLE' by default style." >&5
10195
$as_echo "Using '$DEFAULT_STYLE' by default style." >&6; }
10196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$DEFAULT_KEYS' for location keys file." >&5
10197
$as_echo "Using '$DEFAULT_KEYS' for location keys file." >&6; }
10198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$DEFAULT_INIT' for location init file." >&5
10199
$as_echo "Using '$DEFAULT_INIT' for location init file." >&6; }
10200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$LOCALE_PATH' for nls files." >&5
10201
$as_echo "Using '$LOCALE_PATH' for nls files." >&6; }
10202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using '$CXX' for C++ compiler." >&5
10203
$as_echo "Using '$CXX' for C++ compiler." >&6; }
10204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building with '$CXXFLAGS' for C++ compiler flags." >&5
10205
$as_echo "Building with '$CXXFLAGS' for C++ compiler flags." >&6; }
10206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building with '$LIBS' for linker flags." >&5
10207
$as_echo "Building with '$LIBS' for linker flags." >&6; }
10208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
10210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Now build $PACKAGE with 'make'" >&5
10211
$as_echo "Now build $PACKAGE with 'make'" >&6; }
10212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5