From c504d90c1159bd0fadd37bb3098ecf8622d0b13c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 12 Jan 2009 16:30:32 +0000 Subject: * Support i686-linux builds directly on x86_64-linux Nix installations. This is implemented using the personality() syscall, which causes uname to return "i686" in child processes. --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fdf898640a8b..44c22c19b050 100644 --- a/configure.ac +++ b/configure.ac @@ -100,12 +100,17 @@ AC_CHECK_HEADERS([sys/mount.h], [], [], ]) -# Check for +# Check for . AC_LANG_PUSH(C++) AC_CHECK_HEADERS([locale], [], [], []) AC_LANG_POP(C++) +# Check whether we have the personality() syscall, which allows us to +# do i686-linux builds on x86_64-linux machines. +AC_CHECK_HEADERS([sys/personality.h]) + + AC_DEFUN([NEED_PROG], [ AC_PATH_PROG($1, $2) -- cgit 1.4.1