aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autogen/Makefile.in33
-rw-r--r--autogen/aclocal.m41
-rwxr-xr-xautogen/configure472
3 files changed, 311 insertions, 195 deletions
diff --git a/autogen/Makefile.in b/autogen/Makefile.in
index 41763bc9ba3..d3151304c5f 100644
--- a/autogen/Makefile.in
+++ b/autogen/Makefile.in
@@ -24,7 +24,7 @@
24# the same distribution terms as the rest of that program. 24# the same distribution terms as the rest of that program.
25# 25#
26# Generated by gnulib-tool. 26# Generated by gnulib-tool.
27# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt careadlinkat crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink socklen stdarg stdio strftime strtoumax symlink sys_stat 27# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt careadlinkat crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dup2 filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink socklen stdarg stdio strftime strtoumax symlink sys_stat
28 28
29VPATH = @srcdir@ 29VPATH = @srcdir@
30pkgdatadir = $(datadir)/@PACKAGE@ 30pkgdatadir = $(datadir)/@PACKAGE@
@@ -52,9 +52,10 @@ subdir = lib
52ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 52ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
53am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \ 53am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
54 $(top_srcdir)/m4/alloca.m4 $(top_srcdir)/m4/c-strtod.m4 \ 54 $(top_srcdir)/m4/alloca.m4 $(top_srcdir)/m4/c-strtod.m4 \
55 $(top_srcdir)/m4/extensions.m4 $(top_srcdir)/m4/filemode.m4 \ 55 $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/extensions.m4 \
56 $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getopt.m4 \ 56 $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/getloadavg.m4 \
57 $(top_srcdir)/m4/gl-comp.m4 $(top_srcdir)/m4/gnulib-common.m4 \ 57 $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/gl-comp.m4 \
58 $(top_srcdir)/m4/gnulib-common.m4 \
58 $(top_srcdir)/m4/include_next.m4 $(top_srcdir)/m4/inttypes.m4 \ 59 $(top_srcdir)/m4/include_next.m4 $(top_srcdir)/m4/inttypes.m4 \
59 $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/lstat.m4 \ 60 $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/lstat.m4 \
60 $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/mktime.m4 \ 61 $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/mktime.m4 \
@@ -738,14 +739,14 @@ BUILT_SOURCES = $(ALLOCA_H) arg-nonnull.h c++defs.h $(GETOPT_H) \
738 stdio.h stdlib.h sys/stat.h time.h unistd.h warn-on-use.h 739 stdio.h stdlib.h sys/stat.h time.h unistd.h warn-on-use.h
739EXTRA_DIST = alloca.in.h allocator.h $(top_srcdir)/./arg-nonnull.h \ 740EXTRA_DIST = alloca.in.h allocator.h $(top_srcdir)/./arg-nonnull.h \
740 $(top_srcdir)/./c++defs.h careadlinkat.h md5.h sha1.h sha256.h \ 741 $(top_srcdir)/./c++defs.h careadlinkat.h md5.h sha1.h sha256.h \
741 sha512.h dosname.h ftoastr.c ftoastr.h filemode.h getloadavg.c \ 742 sha512.h dosname.h ftoastr.c ftoastr.h dup2.c filemode.h \
742 getopt.c getopt.in.h getopt1.c getopt_int.h ignore-value.h \ 743 getloadavg.c getopt.c getopt.in.h getopt1.c getopt_int.h \
743 intprops.h inttypes.in.h lstat.c mktime-internal.h mktime.c \ 744 ignore-value.h intprops.h inttypes.in.h lstat.c \
744 readlink.c stat.c stdarg.in.h stdbool.in.h stddef.in.h \ 745 mktime-internal.h mktime.c readlink.c stat.c stdarg.in.h \
745 stdint.in.h stdio.in.h stdlib.in.h strftime.h strtol.c \ 746 stdbool.in.h stddef.in.h stdint.in.h stdio.in.h stdlib.in.h \
746 strtoul.c strtoull.c strtoimax.c strtoumax.c symlink.c \ 747 strftime.h strtol.c strtoul.c strtoull.c strtoimax.c \
747 sys_stat.in.h time.in.h time_r.c u64.h unistd.in.h verify.h \ 748 strtoumax.c symlink.c sys_stat.in.h time.in.h time_r.c u64.h \
748 $(top_srcdir)/./warn-on-use.h 749 unistd.in.h verify.h $(top_srcdir)/./warn-on-use.h
749MOSTLYCLEANDIRS = sys 750MOSTLYCLEANDIRS = sys
750MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t arg-nonnull.h \ 751MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t arg-nonnull.h \
751 arg-nonnull.h-t c++defs.h c++defs.h-t getopt.h getopt.h-t \ 752 arg-nonnull.h-t c++defs.h c++defs.h-t getopt.h getopt.h-t \
@@ -759,9 +760,10 @@ libgnu_a_SOURCES = allocator.c careadlinkat.c md5.c sha1.c sha256.c \
759 sha512.c dtoastr.c filemode.c $(am__append_1) strftime.c 760 sha512.c dtoastr.c filemode.c $(am__append_1) strftime.c
760libgnu_a_LIBADD = $(gl_LIBOBJS) 761libgnu_a_LIBADD = $(gl_LIBOBJS)
761libgnu_a_DEPENDENCIES = $(gl_LIBOBJS) 762libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
762EXTRA_libgnu_a_SOURCES = ftoastr.c getloadavg.c getopt.c getopt1.c \ 763EXTRA_libgnu_a_SOURCES = ftoastr.c dup2.c getloadavg.c getopt.c \
763 lstat.c mktime.c readlink.c stat.c strtol.c strtoul.c \ 764 getopt1.c lstat.c mktime.c readlink.c stat.c strtol.c \
764 strtoull.c strtoimax.c strtoumax.c symlink.c time_r.c 765 strtoul.c strtoull.c strtoimax.c strtoumax.c symlink.c \
766 time_r.c
765ARG_NONNULL_H = arg-nonnull.h 767ARG_NONNULL_H = arg-nonnull.h
766CXXDEFS_H = c++defs.h 768CXXDEFS_H = c++defs.h
767WARN_ON_USE_H = warn-on-use.h 769WARN_ON_USE_H = warn-on-use.h
@@ -817,6 +819,7 @@ distclean-compile:
817@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/allocator.Po@am__quote@ 819@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/allocator.Po@am__quote@
818@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/careadlinkat.Po@am__quote@ 820@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/careadlinkat.Po@am__quote@
819@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dtoastr.Po@am__quote@ 821@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dtoastr.Po@am__quote@
822@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dup2.Po@am__quote@
820@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filemode.Po@am__quote@ 823@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filemode.Po@am__quote@
821@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftoastr.Po@am__quote@ 824@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftoastr.Po@am__quote@
822@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getloadavg.Po@am__quote@ 825@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getloadavg.Po@am__quote@
diff --git a/autogen/aclocal.m4 b/autogen/aclocal.m4
index 08bef24413f..8c0a25eba14 100644
--- a/autogen/aclocal.m4
+++ b/autogen/aclocal.m4
@@ -987,6 +987,7 @@ AC_SUBST([am__untar])
987m4_include([m4/00gnulib.m4]) 987m4_include([m4/00gnulib.m4])
988m4_include([m4/alloca.m4]) 988m4_include([m4/alloca.m4])
989m4_include([m4/c-strtod.m4]) 989m4_include([m4/c-strtod.m4])
990m4_include([m4/dup2.m4])
990m4_include([m4/extensions.m4]) 991m4_include([m4/extensions.m4])
991m4_include([m4/filemode.m4]) 992m4_include([m4/filemode.m4])
992m4_include([m4/getloadavg.m4]) 993m4_include([m4/getloadavg.m4])
diff --git a/autogen/configure b/autogen/configure
index f3337ddbe31..e1a4f947fa1 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -894,6 +894,72 @@ PRAGMA_COLUMNS
894PRAGMA_SYSTEM_HEADER 894PRAGMA_SYSTEM_HEADER
895INCLUDE_NEXT_AS_FIRST_DIRECTIVE 895INCLUDE_NEXT_AS_FIRST_DIRECTIVE
896INCLUDE_NEXT 896INCLUDE_NEXT
897GETLOADAVG_LIBS
898REPLACE_WCTOMB
899REPLACE_UNSETENV
900REPLACE_STRTOD
901REPLACE_SETENV
902REPLACE_REALPATH
903REPLACE_REALLOC
904REPLACE_PUTENV
905REPLACE_MKSTEMP
906REPLACE_MBTOWC
907REPLACE_MALLOC
908REPLACE_CANONICALIZE_FILE_NAME
909REPLACE_CALLOC
910HAVE_DECL_UNSETENV
911HAVE_UNLOCKPT
912HAVE_SYS_LOADAVG_H
913HAVE_STRUCT_RANDOM_DATA
914HAVE_STRTOULL
915HAVE_STRTOLL
916HAVE_STRTOD
917HAVE_DECL_SETENV
918HAVE_SETENV
919HAVE_RPMATCH
920HAVE_REALPATH
921HAVE_RANDOM_R
922HAVE_RANDOM_H
923HAVE_PTSNAME
924HAVE_MKSTEMPS
925HAVE_MKSTEMP
926HAVE_MKOSTEMPS
927HAVE_MKOSTEMP
928HAVE_MKDTEMP
929HAVE_GRANTPT
930HAVE_GETSUBOPT
931HAVE_DECL_GETLOADAVG
932HAVE_CANONICALIZE_FILE_NAME
933HAVE_ATOLL
934HAVE__EXIT
935GNULIB_WCTOMB
936GNULIB_UNSETENV
937GNULIB_UNLOCKPT
938GNULIB_SYSTEM_POSIX
939GNULIB_STRTOULL
940GNULIB_STRTOLL
941GNULIB_STRTOD
942GNULIB_SETENV
943GNULIB_RPMATCH
944GNULIB_REALPATH
945GNULIB_REALLOC_POSIX
946GNULIB_RANDOM_R
947GNULIB_PUTENV
948GNULIB_PTSNAME
949GNULIB_MKSTEMPS
950GNULIB_MKSTEMP
951GNULIB_MKOSTEMPS
952GNULIB_MKOSTEMP
953GNULIB_MKDTEMP
954GNULIB_MBTOWC
955GNULIB_MALLOC_POSIX
956GNULIB_GRANTPT
957GNULIB_GETSUBOPT
958GNULIB_GETLOADAVG
959GNULIB_CANONICALIZE_FILE_NAME
960GNULIB_CALLOC_POSIX
961GNULIB_ATOLL
962GNULIB__EXIT
897UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 963UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
898UNISTD_H_HAVE_WINSOCK2_H 964UNISTD_H_HAVE_WINSOCK2_H
899REPLACE_WRITE 965REPLACE_WRITE
@@ -1004,72 +1070,6 @@ GNULIB_DUP3
1004GNULIB_DUP2 1070GNULIB_DUP2
1005GNULIB_CLOSE 1071GNULIB_CLOSE
1006GNULIB_CHOWN 1072GNULIB_CHOWN
1007GETLOADAVG_LIBS
1008REPLACE_WCTOMB
1009REPLACE_UNSETENV
1010REPLACE_STRTOD
1011REPLACE_SETENV
1012REPLACE_REALPATH
1013REPLACE_REALLOC
1014REPLACE_PUTENV
1015REPLACE_MKSTEMP
1016REPLACE_MBTOWC
1017REPLACE_MALLOC
1018REPLACE_CANONICALIZE_FILE_NAME
1019REPLACE_CALLOC
1020HAVE_DECL_UNSETENV
1021HAVE_UNLOCKPT
1022HAVE_SYS_LOADAVG_H
1023HAVE_STRUCT_RANDOM_DATA
1024HAVE_STRTOULL
1025HAVE_STRTOLL
1026HAVE_STRTOD
1027HAVE_DECL_SETENV
1028HAVE_SETENV
1029HAVE_RPMATCH
1030HAVE_REALPATH
1031HAVE_RANDOM_R
1032HAVE_RANDOM_H
1033HAVE_PTSNAME
1034HAVE_MKSTEMPS
1035HAVE_MKSTEMP
1036HAVE_MKOSTEMPS
1037HAVE_MKOSTEMP
1038HAVE_MKDTEMP
1039HAVE_GRANTPT
1040HAVE_GETSUBOPT
1041HAVE_DECL_GETLOADAVG
1042HAVE_CANONICALIZE_FILE_NAME
1043HAVE_ATOLL
1044HAVE__EXIT
1045GNULIB_WCTOMB
1046GNULIB_UNSETENV
1047GNULIB_UNLOCKPT
1048GNULIB_SYSTEM_POSIX
1049GNULIB_STRTOULL
1050GNULIB_STRTOLL
1051GNULIB_STRTOD
1052GNULIB_SETENV
1053GNULIB_RPMATCH
1054GNULIB_REALPATH
1055GNULIB_REALLOC_POSIX
1056GNULIB_RANDOM_R
1057GNULIB_PUTENV
1058GNULIB_PTSNAME
1059GNULIB_MKSTEMPS
1060GNULIB_MKSTEMP
1061GNULIB_MKOSTEMPS
1062GNULIB_MKOSTEMP
1063GNULIB_MKDTEMP
1064GNULIB_MBTOWC
1065GNULIB_MALLOC_POSIX
1066GNULIB_GRANTPT
1067GNULIB_GETSUBOPT
1068GNULIB_GETLOADAVG
1069GNULIB_CANONICALIZE_FILE_NAME
1070GNULIB_CALLOC_POSIX
1071GNULIB_ATOLL
1072GNULIB__EXIT
1073GL_GENERATE_ALLOCA_H_FALSE 1073GL_GENERATE_ALLOCA_H_FALSE
1074GL_GENERATE_ALLOCA_H_TRUE 1074GL_GENERATE_ALLOCA_H_TRUE
1075ALLOCA_H 1075ALLOCA_H
@@ -3083,6 +3083,7 @@ as_fn_append ac_header_list " stdlib.h"
3083as_fn_append ac_header_list " unistd.h" 3083as_fn_append ac_header_list " unistd.h"
3084as_fn_append ac_header_list " sys/param.h" 3084as_fn_append ac_header_list " sys/param.h"
3085as_fn_append ac_func_list " readlinkat" 3085as_fn_append ac_func_list " readlinkat"
3086as_fn_append ac_func_list " dup2"
3086gl_getopt_required=GNU 3087gl_getopt_required=GNU
3087as_fn_append ac_header_list " getopt.h" 3088as_fn_append ac_header_list " getopt.h"
3088as_fn_append ac_header_list " wchar.h" 3089as_fn_append ac_header_list " wchar.h"
@@ -6549,6 +6550,7 @@ esac
6549 # Code from module crypto/sha512: 6550 # Code from module crypto/sha512:
6550 # Code from module dosname: 6551 # Code from module dosname:
6551 # Code from module dtoastr: 6552 # Code from module dtoastr:
6553 # Code from module dup2:
6552 # Code from module extensions: 6554 # Code from module extensions:
6553 6555
6554 # Code from module filemode: 6556 # Code from module filemode:
@@ -13586,7 +13588,7 @@ esac
13586 13588
13587 13589
13588 13590
13589for ac_func in gethostname getdomainname dup2 \ 13591for ac_func in gethostname getdomainname \
13590rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 13592rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13591random lrand48 logb frexp fmod rint cbrt ftime setsid \ 13593random lrand48 logb frexp fmod rint cbrt ftime setsid \
13592strerror fpathconf select euidaccess getpagesize tzset setlocale \ 13594strerror fpathconf select euidaccess getpagesize tzset setlocale \
@@ -14292,119 +14294,6 @@ $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
14292 14294
14293 fi 14295 fi
14294 14296
14295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
14296$as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
14297if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
14299else
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301/* end confdefs.h. */
14302
14303#include <sys/types.h>
14304#include <sys/stat.h>
14305int
14306main ()
14307{
14308struct stat s; s.st_dm_mode;
14309 ;
14310 return 0;
14311}
14312_ACEOF
14313if ac_fn_c_try_compile "$LINENO"; then :
14314 ac_cv_struct_st_dm_mode=yes
14315else
14316 ac_cv_struct_st_dm_mode=no
14317fi
14318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319fi
14320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
14321$as_echo "$ac_cv_struct_st_dm_mode" >&6; }
14322
14323 if test $ac_cv_struct_st_dm_mode = yes; then
14324
14325$as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
14326
14327 fi
14328
14329
14330ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
14331if test "x$ac_cv_have_decl_strmode" = x""yes; then :
14332 ac_have_decl=1
14333else
14334 ac_have_decl=0
14335fi
14336
14337cat >>confdefs.h <<_ACEOF
14338#define HAVE_DECL_STRMODE $ac_have_decl
14339_ACEOF
14340
14341
14342 GNULIB__EXIT=0;
14343 GNULIB_ATOLL=0;
14344 GNULIB_CALLOC_POSIX=0;
14345 GNULIB_CANONICALIZE_FILE_NAME=0;
14346 GNULIB_GETLOADAVG=0;
14347 GNULIB_GETSUBOPT=0;
14348 GNULIB_GRANTPT=0;
14349 GNULIB_MALLOC_POSIX=0;
14350 GNULIB_MBTOWC=0;
14351 GNULIB_MKDTEMP=0;
14352 GNULIB_MKOSTEMP=0;
14353 GNULIB_MKOSTEMPS=0;
14354 GNULIB_MKSTEMP=0;
14355 GNULIB_MKSTEMPS=0;
14356 GNULIB_PTSNAME=0;
14357 GNULIB_PUTENV=0;
14358 GNULIB_RANDOM_R=0;
14359 GNULIB_REALLOC_POSIX=0;
14360 GNULIB_REALPATH=0;
14361 GNULIB_RPMATCH=0;
14362 GNULIB_SETENV=0;
14363 GNULIB_STRTOD=0;
14364 GNULIB_STRTOLL=0;
14365 GNULIB_STRTOULL=0;
14366 GNULIB_SYSTEM_POSIX=0;
14367 GNULIB_UNLOCKPT=0;
14368 GNULIB_UNSETENV=0;
14369 GNULIB_WCTOMB=0;
14370 HAVE__EXIT=1;
14371 HAVE_ATOLL=1;
14372 HAVE_CANONICALIZE_FILE_NAME=1;
14373 HAVE_DECL_GETLOADAVG=1;
14374 HAVE_GETSUBOPT=1;
14375 HAVE_GRANTPT=1;
14376 HAVE_MKDTEMP=1;
14377 HAVE_MKOSTEMP=1;
14378 HAVE_MKOSTEMPS=1;
14379 HAVE_MKSTEMP=1;
14380 HAVE_MKSTEMPS=1;
14381 HAVE_PTSNAME=1;
14382 HAVE_RANDOM_H=1;
14383 HAVE_RANDOM_R=1;
14384 HAVE_REALPATH=1;
14385 HAVE_RPMATCH=1;
14386 HAVE_SETENV=1;
14387 HAVE_DECL_SETENV=1;
14388 HAVE_STRTOD=1;
14389 HAVE_STRTOLL=1;
14390 HAVE_STRTOULL=1;
14391 HAVE_STRUCT_RANDOM_DATA=1;
14392 HAVE_SYS_LOADAVG_H=0;
14393 HAVE_UNLOCKPT=1;
14394 HAVE_DECL_UNSETENV=1;
14395 REPLACE_CALLOC=0;
14396 REPLACE_CANONICALIZE_FILE_NAME=0;
14397 REPLACE_MALLOC=0;
14398 REPLACE_MBTOWC=0;
14399 REPLACE_MKSTEMP=0;
14400 REPLACE_PUTENV=0;
14401 REPLACE_REALLOC=0;
14402 REPLACE_REALPATH=0;
14403 REPLACE_SETENV=0;
14404 REPLACE_STRTOD=0;
14405 REPLACE_UNSETENV=0;
14406 REPLACE_WCTOMB=0;
14407
14408 14297
14409 GNULIB_CHOWN=0; 14298 GNULIB_CHOWN=0;
14410 GNULIB_CLOSE=0; 14299 GNULIB_CLOSE=0;
@@ -14520,6 +14409,121 @@ _ACEOF
14520 14409
14521 14410
14522 14411
14412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
14413$as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
14414if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
14415 $as_echo_n "(cached) " >&6
14416else
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418/* end confdefs.h. */
14419
14420#include <sys/types.h>
14421#include <sys/stat.h>
14422int
14423main ()
14424{
14425struct stat s; s.st_dm_mode;
14426 ;
14427 return 0;
14428}
14429_ACEOF
14430if ac_fn_c_try_compile "$LINENO"; then :
14431 ac_cv_struct_st_dm_mode=yes
14432else
14433 ac_cv_struct_st_dm_mode=no
14434fi
14435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14436fi
14437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
14438$as_echo "$ac_cv_struct_st_dm_mode" >&6; }
14439
14440 if test $ac_cv_struct_st_dm_mode = yes; then
14441
14442$as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
14443
14444 fi
14445
14446
14447ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
14448if test "x$ac_cv_have_decl_strmode" = x""yes; then :
14449 ac_have_decl=1
14450else
14451 ac_have_decl=0
14452fi
14453
14454cat >>confdefs.h <<_ACEOF
14455#define HAVE_DECL_STRMODE $ac_have_decl
14456_ACEOF
14457
14458
14459 GNULIB__EXIT=0;
14460 GNULIB_ATOLL=0;
14461 GNULIB_CALLOC_POSIX=0;
14462 GNULIB_CANONICALIZE_FILE_NAME=0;
14463 GNULIB_GETLOADAVG=0;
14464 GNULIB_GETSUBOPT=0;
14465 GNULIB_GRANTPT=0;
14466 GNULIB_MALLOC_POSIX=0;
14467 GNULIB_MBTOWC=0;
14468 GNULIB_MKDTEMP=0;
14469 GNULIB_MKOSTEMP=0;
14470 GNULIB_MKOSTEMPS=0;
14471 GNULIB_MKSTEMP=0;
14472 GNULIB_MKSTEMPS=0;
14473 GNULIB_PTSNAME=0;
14474 GNULIB_PUTENV=0;
14475 GNULIB_RANDOM_R=0;
14476 GNULIB_REALLOC_POSIX=0;
14477 GNULIB_REALPATH=0;
14478 GNULIB_RPMATCH=0;
14479 GNULIB_SETENV=0;
14480 GNULIB_STRTOD=0;
14481 GNULIB_STRTOLL=0;
14482 GNULIB_STRTOULL=0;
14483 GNULIB_SYSTEM_POSIX=0;
14484 GNULIB_UNLOCKPT=0;
14485 GNULIB_UNSETENV=0;
14486 GNULIB_WCTOMB=0;
14487 HAVE__EXIT=1;
14488 HAVE_ATOLL=1;
14489 HAVE_CANONICALIZE_FILE_NAME=1;
14490 HAVE_DECL_GETLOADAVG=1;
14491 HAVE_GETSUBOPT=1;
14492 HAVE_GRANTPT=1;
14493 HAVE_MKDTEMP=1;
14494 HAVE_MKOSTEMP=1;
14495 HAVE_MKOSTEMPS=1;
14496 HAVE_MKSTEMP=1;
14497 HAVE_MKSTEMPS=1;
14498 HAVE_PTSNAME=1;
14499 HAVE_RANDOM_H=1;
14500 HAVE_RANDOM_R=1;
14501 HAVE_REALPATH=1;
14502 HAVE_RPMATCH=1;
14503 HAVE_SETENV=1;
14504 HAVE_DECL_SETENV=1;
14505 HAVE_STRTOD=1;
14506 HAVE_STRTOLL=1;
14507 HAVE_STRTOULL=1;
14508 HAVE_STRUCT_RANDOM_DATA=1;
14509 HAVE_SYS_LOADAVG_H=0;
14510 HAVE_UNLOCKPT=1;
14511 HAVE_DECL_UNSETENV=1;
14512 REPLACE_CALLOC=0;
14513 REPLACE_CANONICALIZE_FILE_NAME=0;
14514 REPLACE_MALLOC=0;
14515 REPLACE_MBTOWC=0;
14516 REPLACE_MKSTEMP=0;
14517 REPLACE_PUTENV=0;
14518 REPLACE_REALLOC=0;
14519 REPLACE_REALPATH=0;
14520 REPLACE_SETENV=0;
14521 REPLACE_STRTOD=0;
14522 REPLACE_UNSETENV=0;
14523 REPLACE_WCTOMB=0;
14524
14525
14526
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14524$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } 14528$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14525if test "${gl_cv_have_include_next+set}" = set; then : 14529if test "${gl_cv_have_include_next+set}" = set; then :
@@ -16760,6 +16764,114 @@ fi
16760 16764
16761 16765
16762 16766
16767$as_echo "#define HAVE_DUP2 1" >>confdefs.h
16768
16769
16770 if test $HAVE_DUP2 = 1; then
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
16772$as_echo_n "checking whether dup2 works... " >&6; }
16773if test "${gl_cv_func_dup2_works+set}" = set; then :
16774 $as_echo_n "(cached) " >&6
16775else
16776 if test "$cross_compiling" = yes; then :
16777 case "$host_os" in
16778 mingw*) # on this platform, dup2 always returns 0 for success
16779 gl_cv_func_dup2_works=no;;
16780 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
16781 gl_cv_func_dup2_works=no;;
16782 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
16783 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
16784 gl_cv_func_dup2_works=no;;
16785 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
16786 gl_cv_func_dup2_works=no;;
16787 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
16788 gl_cv_func_dup2_works=no;;
16789 *) gl_cv_func_dup2_works=yes;;
16790 esac
16791else
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793/* end confdefs.h. */
16794
16795 #include <unistd.h>
16796#include <fcntl.h>
16797#include <errno.h>
16798int
16799main ()
16800{
16801int result = 0;
16802#ifdef FD_CLOEXEC
16803 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
16804 result |= 1;
16805#endif
16806 if (dup2 (1, 1) == 0)
16807 result |= 2;
16808#ifdef FD_CLOEXEC
16809 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
16810 result |= 4;
16811#endif
16812 close (0);
16813 if (dup2 (0, 0) != -1)
16814 result |= 8;
16815 /* Many gnulib modules require POSIX conformance of EBADF. */
16816 if (dup2 (2, 1000000) == -1 && errno != EBADF)
16817 result |= 16;
16818 return result;
16819
16820 ;
16821 return 0;
16822}
16823
16824_ACEOF
16825if ac_fn_c_try_run "$LINENO"; then :
16826 gl_cv_func_dup2_works=yes
16827else
16828 gl_cv_func_dup2_works=no
16829fi
16830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16831 conftest.$ac_objext conftest.beam conftest.$ac_ext
16832fi
16833
16834
16835fi
16836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
16837$as_echo "$gl_cv_func_dup2_works" >&6; }
16838 if test "$gl_cv_func_dup2_works" = no; then
16839
16840
16841
16842 if test $ac_cv_func_dup2 = yes; then
16843 REPLACE_DUP2=1
16844 fi
16845
16846
16847
16848
16849
16850
16851
16852
16853 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
16854
16855
16856 fi
16857 fi
16858
16859
16860
16861
16862
16863
16864 GNULIB_DUP2=1
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16763 16875
16764# Persuade glibc <stdlib.h> to declare getloadavg(). 16876# Persuade glibc <stdlib.h> to declare getloadavg().
16765 16877