From 97df7c47294bb4237c4f0104a4f70cf7f505c8b8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 6 May 2000 14:01:39 +0000 Subject: [PATCH] (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to be 500, instead of _GNU_SOURCE to be 1, to work around glibc 2.1.3 bug. This avoids a clash when files like regex.c define _GNU_SOURCE. --- m4/largefile.m4 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/m4/largefile.m4 b/m4/largefile.m4 index 515625d..bf3b965 100644 --- a/m4/largefile.m4 +++ b/m4/largefile.m4 @@ -1,4 +1,4 @@ -#serial 10 +#serial 11 dnl By default, many hosts won't let programs access large files; dnl one must use special compiler options to get large-file access to work. @@ -107,14 +107,6 @@ AC_DEFUN(AC_SYS_LARGEFILE, [ hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)] ac_cv_sys_file_offset_bits=64 ;; esac]) - AC_SYS_LARGEFILE_MACRO_VALUE(_GNU_SOURCE, - ac_cv_sys_gnu_source, - [Define to make ftello visible on some hosts (e.g. glibc 2.1.3).], - [AC_TRY_COMPILE([#include ], [return !ftello;], , - [AC_TRY_COMPILE([#define _GNU_SOURCE 1 -#include ], - [return !ftello;], - ac_cv_sys_gnu_source=1)])]) AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, ac_cv_sys_largefile_source, [Define to make ftello visible on some hosts (e.g. HP-UX 10.20).], @@ -130,5 +122,13 @@ AC_DEFUN(AC_SYS_LARGEFILE, [ aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)] ac_cv_sys_large_files=1 ;; esac]) + AC_SYS_LARGEFILE_MACRO_VALUE(_XOPEN_SOURCE, + ac_cv_sys_xopen_source, + [Define to make ftello visible on some hosts (e.g. glibc 2.1.3).], + [AC_TRY_COMPILE([#include ], [return !ftello;], , + [AC_TRY_COMPILE([#define _XOPEN_SOURCE 500 +#include ], + [return !ftello;], + ac_cv_sys_xopen_source=500)])]) fi ]) -- 2.7.4