diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-04-04 14:02:57 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-04-04 14:02:57 +0000 |
commit | 118077bd7b0758db852e6e4c5f973255e817668f (patch) | |
tree | 25f3d71e5284507246b8e6fcf9602deb84f4be06 /infrastructure/m4/ax_check_syscall_lseek.m4 | |
parent | 2e2a7ed73051d13908f2c2c7179eb5bd8368c76c (diff) |
Blind fix for autoconf problems introduced by earlier attempt to support
cross-compiling.
Diffstat (limited to 'infrastructure/m4/ax_check_syscall_lseek.m4')
-rw-r--r-- | infrastructure/m4/ax_check_syscall_lseek.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/infrastructure/m4/ax_check_syscall_lseek.m4 b/infrastructure/m4/ax_check_syscall_lseek.m4 index 6c26e025..9fd04c81 100644 --- a/infrastructure/m4/ax_check_syscall_lseek.m4 +++ b/infrastructure/m4/ax_check_syscall_lseek.m4 @@ -17,7 +17,7 @@ AC_DEFUN([AX_CHECK_SYSCALL_LSEEK], [ if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then AC_CACHE_CHECK([[whether syscall lseek requires dummy parameter]], [box_cv_have_lseek_dummy_param], [AC_TRY_RUN( - [AC_LANG_PROGRAM([[ + [ $ac_includes_default #include <fcntl.h> #include <sys/syscall.h> @@ -28,7 +28,8 @@ AC_DEFUN([AX_CHECK_SYSCALL_LSEEK], [ #undef syscall #define syscall __syscall #endif - ]], [[ + int main() + { int fh = creat("lseektest", 0600); int res = 0; if(fh>=0) @@ -49,7 +50,8 @@ AC_DEFUN([AX_CHECK_SYSCALL_LSEEK], [ } unlink("lseektest"); return res!=-1; - ]])], + } + ], [box_cv_have_lseek_dummy_param=yes], [box_cv_have_lseek_dummy_param=no], [box_cv_have_lseek_dummy_param=no # assume not for cross-compiling] |