diff options
author | Paul Smith <psmith@gnu.org> | 1999-12-08 20:13:50 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1999-12-08 20:13:50 +0000 |
commit | 1a35bfb45b3dfbd38c583247a90a21c3b10ccafa (patch) | |
tree | 7bf18f5dc4e35fc80b9c28e7e0b82d996065c510 /acinclude.m4 | |
parent | 4d5c556f00ae97b16696cc1ff779ac8e45d6fc27 (diff) | |
download | gunmake-1a35bfb45b3dfbd38c583247a90a21c3b10ccafa.tar.gz |
* Various changes and fixes. See ChangeLog.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 3f4f9ad..9b8255b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -101,7 +101,10 @@ dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME) AC_DEFUN(AC_SYS_LARGEFILE_FLAGS, [AC_CACHE_CHECK([for $1 value to request large file support], ac_cv_sys_largefile_$1, - [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || { + [if ($GETCONF LFS_$1) >conftest.1 2>conftest.2 && test ! -s conftest.2 + then + ac_cv_sys_largefile_$1=`cat conftest.1` + else ac_cv_sys_largefile_$1=no ifelse($1, CFLAGS, [case "$host_os" in @@ -127,7 +130,8 @@ changequote([, ])dnl AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no) CC="$ac_save_CC" fi]) - }])]) + fi + rm -f conftest*])]) dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL) |