diff options
Diffstat (limited to 'gl/m4/lseek.m4')
-rw-r--r-- | gl/m4/lseek.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gl/m4/lseek.m4 b/gl/m4/lseek.m4 index f3084957c1..9bf4dc2d04 100644 --- a/gl/m4/lseek.m4 +++ b/gl/m4/lseek.m4 @@ -1,4 +1,4 @@ -# lseek.m4 serial 4 +# lseek.m4 serial 5 dnl Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -21,7 +21,8 @@ int main () }], [if test -s conftest$ac_exeext \ && ./conftest$ac_exeext < conftest.$ac_ext \ - && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then + && test 1 = "`echo hi \ + | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then gl_cv_func_lseek_pipe=yes else gl_cv_func_lseek_pipe=no |