summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* getloadavg: clean out old Emacs and Autoconf cruftPaul Eggert2012-07-101-0/+2
| | | | | | | | See Glenn Morris in <http://bugs.gnu.org/11905>. * lib/getloadavg.c: Include <config.h>, <stdbool.h> always. Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix. (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook. * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
* getopt: Simplify after Emacs changed.Bruno Haible2012-07-091-11/+4
| | | | | * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE. (gl_GETOPT_IFELSE): Remove macro.
* getloadavg, getopt: fix commentary re configure.inPaul Eggert2012-07-091-3/+0
| | | | | | | | | | Autoconf is deprecating the name 'configure.in', so change it to to the new name 'configure.ac' in a couple of places. * lib/getloadavg.c: configure.in -> configure.ac, in comment. * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER) (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in. Emacs has renamed it to configure.ac, and it no longer refers to these macros anyway.
* canonicalize[-lgpl]: handle "guessing" values when cross-buildingLudovic Courtès2012-07-081-8/+20
| | | | | | | * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE) (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works matches "*yes" instead of just "yes". Regression introduced in commit e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
* canonicalize: make the right guess when cross-compiling to GNULudovic Courtès2012-07-081-5/+5
| | | | | | * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to determine whether cross-compiling to glibc systems, so as to include GNU/Hurd.
* sys_time: allow too-wide tv_secPaul Eggert2012-07-061-2/+6
| | | | | | | | | * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct timeval even if tv_sec is wider than time_t. This allows OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c, as without this patch gnulib replaces struct timeval and OpenBSD futimes therefore has a type mismatch. * doc/posix-headers/sys_time.texi: Mention this.
* pthread: check for both pthread_create and pthread_joinPaul Eggert2012-07-051-7/+32
| | | | | | | | * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but alter the check so that it tests for both pthread_create and pthread_join. This should be more portable to hosts like OSF/1 5.1. Suggested by Bruno Haible and Richard Yao in <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
* pthread: check for pthread_create, not pthread_joinPaul Eggert2012-07-041-26/+7
| | | | | | | | * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not pthread_join. On FreeBSD 9, pthread_create is in libpthread but pthread_join in libc. I hope this removes the need for all the OSF/1 5.1 pthread_join business. Reported by Richard Yao in <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
* parse-datetime: fix failure to diagnose invalid inputJim Meyering2012-07-041-1/+2
| | | | | | | | | | | | date -d "$(printf '\xb0')" would print 00:00:00 with today's date rather than diagnosing the invalid input. Now it reports this: date: invalid date '\260' * lib/parse-datetime.y (to_uchar): Define. (yylex): Don't sign-extend "other" bytes. * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline". Thanks to Bruno Haible for the patch to this file. * tests/test-parse-datetime.c (main): Add a test to trigger the bug. Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
* fsusage: avoid needless check on GNU/LinuxPaul Eggert2012-07-021-26/+27
| | | | | * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check on GNU/Linux systems, since it can't possibly work.
* log10f: Fix possible configuration problem.Bruno Haible2012-06-281-2/+2
| | | | | | * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not $LOGF_LIBM. Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
* remove: No longer override on all platforms. Fixes bug from 2012-03-20.Bruno Haible2012-06-281-2/+2
| | | | | | * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes, not gl_cv_func_unlink_works. Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
* root-uid: new modulePaul Eggert2012-06-261-1/+8
| | | | | | | | | | | | | | | | | | | | | This is for portability to Tandem's NonStop Kernel. * lib/root-uid.h, modules/root-uid: New files. * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c: * lib/write-any-file.c, tests/test-sethostname2.c: Include "root-uid.h". * lib/euidaccess.c (euidaccess): * lib/pt_chown.c (main): * lib/unlinkdir.c (cannot_unlink_dir): * lib/write-any-file.c (can_write_any_file): * m4/mknod.m4 (gl_FUNC_MKNOD): * tests/test-sethostname2.c (geteuid, main): Don't assume ROOT_UID == 0. * modules/euidaccess (Depends-on): * modules/pt_chown (Depends-on): * modules/sethostname-tests (Depends-on): * modules/unlinkdir (Depends-on): * modules/write-any-file (Depends-on): Add root-uid.
* getopt-posix: No longer guarantee that option processing is resettable.Bruno Haible2012-06-261-113/+108
| | | | | | | | | | * doc/posix-functions/getopt.texi: Drop description of problem with internal state. Fix info about mingw and msvc9. * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable option processing by getopt(). Run three test programs instead of one. Simplify cross-compilation guess. * NEWS: Mention the change. Reported by Rich Felker <dalias@aerifal.cx>.
* ptsname_r: Fix test failures on IRIX, Solaris.Bruno Haible2012-06-241-2/+35
| | | | | | | | | | * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO accordingly. * lib/ptsname_r.c: Include <fcntl.h>. (__ptsname_r): When isatty returned false, then on IRIX, Solaris set errno if fd is invalid. * tests/test-isatty.c (main): Update comments.
* time: fix obsolete commentPaul Eggert2012-06-231-2/+2
| | | | | * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete reference to HAVE_STRUCT_TIMESPEC in comment.
* getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.Bruno Haible2012-06-231-1/+43
| | | | | | | * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but does not handle abbreviated long options with equivalent disambiguations, set gl_replace_getopt to yes. * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
* time_r: fix typo that always overrode localtime_r declPaul Eggert2012-06-221-1/+1
| | | | | | * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>, not in a standard include.
* Write "Mac OS X" instead of "MacOS X".Bruno Haible2012-06-2252-167/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * README: Write "Mac OS X" instead of "MacOS X". * build-aux/bootstrap: Likewise. * build-aux/install-reloc: Likewise. * lib/acl-internal.h: Likewise. * lib/acl_entries.c: Likewise. * lib/argp-ba.c: Likewise. * lib/argp-pv.c: Likewise. * lib/config.charset: Likewise. * lib/copy-acl.c: Likewise. * lib/csharpexec.c: Likewise. * lib/euidaccess.c: Likewise. * lib/fbufmode.c: Likewise. * lib/fflush.c: Likewise. * lib/file-has-acl.c: Likewise. * lib/filemode.h: Likewise. * lib/fpurge.c: Likewise. * lib/freadable.c: Likewise. * lib/freadahead.c: Likewise. * lib/freading.c: Likewise. * lib/freadptr.c: Likewise. * lib/freadseek.c: Likewise. * lib/fseeko.c: Likewise. * lib/fseterr.c: Likewise. * lib/fsusage.c: Likewise. * lib/fwritable.c: Likewise. * lib/fwriting.c: Likewise. * lib/get-rusage-as.c: Likewise. * lib/get-rusage-data.c: Likewise. * lib/getdomainname.c: Likewise. * lib/idpriv-drop.c: Likewise. * lib/idpriv-droptemp.c: Likewise. * lib/localcharset.c: Likewise. * lib/locale.in.h: Likewise. * lib/localename.c: Likewise. * lib/mbsrtowcs-state.c: Likewise. * lib/nproc.c: Likewise. * lib/passfd.c: Likewise. * lib/posix_openpt.c: Likewise. * lib/printf-parse.c: Likewise. * lib/progreloc.c: Likewise. * lib/safe-read.h: Likewise. * lib/safe-write.h: Likewise. * lib/sched.in.h: Likewise. * lib/set-mode-acl.c: Likewise. * lib/signal.in.h: Likewise. * lib/stdint.in.h: Likewise. * lib/stdio-impl.h: Likewise. * lib/stdlib.in.h: Likewise. * lib/strtod.c: Likewise. * lib/sys_select.in.h: Likewise. * lib/tcgetsid.c: Likewise. * lib/unistd.in.h: Likewise. * lib/unlockpt.c: Likewise. * lib/vasnprintf.c: Likewise. * lib/vma-iter.c: Likewise. * lib/wcsrtombs-state.c: Likewise. * m4/acl.m4: Likewise. * m4/acosl.m4: Likewise. * m4/asinl.m4: Likewise. * m4/atanl.m4: Likewise. * m4/c-stack.m4: Likewise. * m4/cosl.m4: Likewise. * m4/expl.m4: Likewise. * m4/extensions.m4: Likewise. * m4/fdatasync.m4: Likewise. * m4/fmal.m4: Likewise. * m4/frexp.m4: Likewise. * m4/frexpf.m4: Likewise. * m4/frexpl.m4: Likewise. * m4/fsusage.m4: Likewise. * m4/getdomainname.m4: Likewise. * m4/getloadavg.m4: Likewise. * m4/getopt.m4: Likewise. * m4/gettext.m4: Likewise. * m4/gnulib-common.m4: Likewise. * m4/intdiv0.m4: Likewise. * m4/intlmacosx.m4: Likewise. * m4/largefile.m4: Likewise. * m4/ldexpl.m4: Likewise. * m4/link-follow.m4: Likewise. * m4/locale-ar.m4: Likewise. * m4/locale-fr.m4: Likewise. * m4/locale-ja.m4: Likewise. * m4/locale-tr.m4: Likewise. * m4/locale-zh.m4: Likewise. * m4/locale_h.m4: Likewise. * m4/lock.m4: Likewise. * m4/logl.m4: Likewise. * m4/mathfunc.m4: Likewise. * m4/minus-zero.m4: Likewise. * m4/mktime.m4: Likewise. * m4/mmap-anon.m4: Likewise. * m4/multiarch.m4: Likewise. * m4/nanosleep.m4: Likewise. * m4/nocrash.m4: Likewise. * m4/poll.m4: Likewise. * m4/printf-frexpl.m4: Likewise. * m4/printf.m4: Likewise. * m4/signbit.m4: Likewise. * m4/sinl.m4: Likewise. * m4/sqrtl.m4: Likewise. * m4/strerror_r.m4: Likewise. * m4/tanl.m4: Likewise. * m4/threadlib.m4: Likewise. * m4/ttyname_r.m4: Likewise. * m4/unlink.m4: Likewise. * m4/visibility.m4: Likewise. * m4/wcwidth.m4: Likewise. * tests/minus-zero.h: Likewise. * tests/test-alloca-opt.c: Likewise. * tests/test-copy-acl.sh: Likewise. * tests/test-copy-file.sh: Likewise. * tests/test-fdatasync.c: Likewise. * tests/test-file-has-acl.sh: Likewise. * tests/test-flock.c: Likewise. * tests/test-fsync.c: Likewise. * tests/test-localename.c: Likewise. * tests/test-malloca.c: Likewise. * tests/test-nonblocking-pipe.h: Likewise. * tests/test-nonblocking-socket.h: Likewise. * tests/test-openpty.c: Likewise. * tests/test-posix_openpt.c: Likewise. * tests/test-ptsname.c: Likewise. * tests/test-ptsname_r.c: Likewise. * tests/test-sameacls.c: Likewise. * tests/test-select.h: Likewise. * tests/test-set-mode-acl.sh: Likewise. * tests/test-snprintf-posix.h: Likewise. * tests/test-sprintf-posix.h: Likewise. * tests/test-strtod.c: Likewise. * tests/test-time.c: Likewise. * tests/test-vasnprintf-posix.c: Likewise. * tests/test-vasprintf-posix.c: Likewise. * doc/acl-resources.txt: Likewise. * doc/**/*.texi: Likewise. Reported by Max Horn <max@quendi.de>.
* nonblocking: Avoid compilation error on mingw64.Bruno Haible2012-06-211-1/+3
| | | | | | | | | | * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf, fscanf. * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR. * modules/vfscanf (configure.ac): Likewise. * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function definition only if stdio.h has prepared it. Reported by Daniel P. Berrange <berrange@redhat.com>.
* mktime: fix integer overflow in 'configure'-time testPaul Eggert2012-06-211-11/+14
| | | | | | | | * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior after integer overflow. Problem reported by Rich Felker in <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>. Also, don't look for further instances of a bug if we've already found one instance; this helps 'configure' run faster.
* fdopen: Allow implementations that don't reject invalid fd arguments.Bruno Haible2012-06-201-4/+2
| | | | | | * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...) succeeds. Reported by Rich Felker <dalias@aerifal.cx>.
* stdioext: Add support for musl libc.Bruno Haible2012-06-195-2/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists. * lib/fbufmode.c (fbufmode): Add conditional code for musl. * m4/fseterr.m4: New file. * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that function exists. * modules/fseterr (Files): Add m4/fseterr.m4. (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if __fseterr does not exist. (Makefile.am): Remove fseterr.c from lib_SOURCES. * lib/freadable.h: Update comment. * lib/fwritable.h: Update comment. * lib/freading.h: Update comment. * lib/fwriting.h: Update comment. * m4/freadahead.m4: New file. * lib/freadahead.h (freadahead): Define as an alias of __freadahead if that function exists. * modules/freadahead (Files): Add m4/freadahead.m4. (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if __freadahead does not exist. (Makefile.am): Remove freadahead.c from lib_SOURCES. * m4/freadptr.m4: New file. * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that function exists. * modules/freadptr (Files): Add m4/freadptr.m4. (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if __freadptr does not exist. (Makefile.am): Remove freadptr.c from lib_SOURCES. * m4/freadseek.m4: New file. * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function exists. * modules/freadseek (Files): Add m4/freadseek.m4. (configure.ac): Invoke gl_FUNC_FREADSEEK. * lib/fpurge.c (fpurge): Update comment. Reported by and with help from Rich Felker <dalias@aerifal.cx>.
* *printf-posix: Put more info into config.log.Bruno Haible2012-06-191-2/+3
| | | | | * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and exit code into config.log.
* getopt-gnu: Fix exit code overflow in autoconf test.Bruno Haible2012-06-191-5/+5
| | | | | * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values, to keep them below < 128.
* error, strerror-override: Support mingw64 from Fedora 17.Paolo Bonzini2012-06-031-0/+3
| | | | | | | | | * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to EINPROGRESS. * lib/strerror-override.h (strerror_override): Test it. * lib/strerror-override.c (strerror_override): Likewise. * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
* error, strerror-override: Support new errno values from POSIX:2008.Bruno Haible2012-06-031-1/+7
| | | | | | | | | | | | | | | * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and ENOTRECOVERABLE. * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all platforms. * lib/strerror-override.c (strerror_override): Conditionalize the EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD. * lib/strerror-override.h (strerror_override): Declare also if GNULIB_defined_EOWNERDEAD is defined. * tests/test-errno.c (e130, e131): New variables. * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD, ENOTRECOVERABLE. Reported by Paolo Bonzini.
* maint: fix typos in comments and ChangeLogJim Meyering2012-05-291-4/+4
| | | | | | | | | | | Culprits identified and fixed mostly automatically using these commands: git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \ 's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/' using http://github.com/lyda/misspell-check * ChangeLog: Fix typos. * doc/solaris-versions: Likewise. * lib/regexec.c (re_search_stub): Likewise. * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
* manywarnings: remove duplicate -Wmultichar entryPaul Eggert2012-05-271-2/+1
| | | | | | * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate entry for -Wmultichar. -Wno-multichar is in the GCC 4.7.0 manual, so keep the entry marked as documented.
* gc: fix libgcrypt detection on older machines.Simon Josefsson2012-05-211-3/+11
| | | | | | * m4/gc.m4: Reject libgcrypt earlier than 1.4.4. Collapse copyright years because the file has been distributed every year since it was created.
* fsusage: fix block size returned on older Linux 2.6Pádraig Brady2012-05-161-0/+31
| | | | | | | | | * lib/fsusage.c: Fall back to (struct statfs).f_frsize which is available since Linux 2.6. * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define when the member is available so it can be used as a fallback. * doc/posix-functions/statvfs.texi: Mention the hang issue on Linux < 2.6.36.
* fsusage: check for GNU/Linux statvfs problem dynamicallyPaul Eggert2012-05-111-8/+0
| | | | | | | | | | | | Problem reported by Nikolaus Rath in <http://bugs.gnu.org/11406>. * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]: Define STAT_STATFS2_BSIZE too, since in this case the code now checks dynamically whether statvfs is reliable, falling back on Linux-style statfs otherwise. (statvfs_works): New function, for dynamically testing statvfs. (get_fs_usage) [STAT_STATVFS]: Use it. * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for statvfs on GNU/Linux hosts, since it's now done dynamically.
* _Noreturn: port config.h to gcc -WundefPaul Eggert2012-05-101-1/+2
| | | | | | * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is defined before using it, for gcc -Wundef. Reported by Akim Demaille in <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
* warnings.m4: provide a means to specify the program to compile.Akim Demaille2012-05-081-14/+33
| | | | | | | | | | | * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from (gl_WARN_ADD): here. Use gl_AS_VAR_APPEND. Support an argument to specify the program to compile. (gl_WARN_ADD): Accept an argument to specify the program to compile. AC_SUBST the WARN_CFLAGS when they are used. * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS, leave this to gl_WARN_ADD.
* nanosleep: Fix typo in comment.Jim Meyering2012-05-051-1/+1
|
* nanosleep: Avoid guessing wrong when cross-compiling to Linux.Bruno Haible2012-05-051-19/+36
| | | | | | * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When cross-compiling, set gl_cv_func_nanosleep to either 'guessing no' or 'guessing no (mishandles large arguments)'.
* link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.Bruno Haible2012-05-051-6/+15
| | | | | | * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform, set gl_cv_func_link_follows_symlink to "guessing no".
* tzset: Avoid guessing wrong when cross-compiling to glibc systems.Bruno Haible2012-05-052-11/+20
| | | | | | | * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to "guessing no". * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
* d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.Bruno Haible2012-05-051-7/+16
| | | | | | * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform, set gl_cv_struct_dirent_d_ino to "guessing yes".
* fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.Bruno Haible2012-05-051-6/+16
| | | | | | * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to "guessing yes".
* signbit: Avoid "guessing no" when cross-compiling to glibc systems.Bruno Haible2012-05-051-77/+96
| | | | | | * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross- compiling to a glibc system, set gl_cv_func_signbit and gl_cv_func_signbit_gcc to "guessing yes".
* strerror: Avoid "guessing no" when cross-compiling to glibc systems.Bruno Haible2012-05-051-15/+33
| | | | | | | | * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When cross-compiling to a glibc platform, set gl_cv_func_working_strerror to "guessing yes". (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
* canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.Bruno Haible2012-05-051-8/+19
| | | | | | * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require AC_CANONICAL_HOST. When cross-compiling to a glibc system, set gl_cv_func_realpath_works to "guessing yes".
* gettimeofday: Avoid bad guess when cross-compiling to glibc systems.Bruno Haible2012-05-051-9/+18
| | | | | * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
* Tweak last commit.Bruno Haible2012-05-052-2/+3
| | | | | * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments. * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
* unistd_h: make it easier to avoid sys_types_hPaul Eggert2012-05-043-10/+22
| | | | | | | | | | | | | This is useful for Emacs, which has its own method of porting to Windows, and which therefore does not need the sys_types_h module. * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains code moved here from gl_SYS_TYPES_H. * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of using the code directly. * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not gl_SYS_TYPES_H. * modules/sys_types (Files): * modules/unistd (Files): Add m4/off_t.m4.
* lstat: Avoid "guessing no" when cross-compiling to glibc systems.Bruno Haible2012-05-044-27/+37
| | | | | | | | | | * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross- compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to "guessing yes" or "guessing no". (gl_FUNC_LSTAT): Update. * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update. * m4/openat.m4 (gl_FUNC_OPENAT): Update. * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
* *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.Bruno Haible2012-05-043-5/+95
| | | | | | | | * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70. * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70. * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When cross-compiling, choose the first alternative on glibc systems. * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
* getgroups: Avoid "guessing no" when cross-compiling to glibc systems.Bruno Haible2012-05-041-28/+87
| | | | | * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70. (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
* chown: Avoid "guessing no" when cross-compiling to glibc systems.Bruno Haible2012-05-041-1/+51
| | | | * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.