From 78097289fe1ff3a436d876494271cc82b7a6594c Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 8 May 2009 18:54:51 -0700 Subject: [PATCH] configure.in: Add hint for building solaris 64-bit binary. Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- configure.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 292bae44..e377fe99 100644 --- a/configure.in +++ b/configure.in @@ -259,7 +259,14 @@ AC_CHECK_HEADERS(sys/swap.h vm/anon.h, [], [have_sys_swap_h="no"], if test "x$have_sys_swap_h$ac_system" = "xnoSolaris" then - AC_MSG_NOTICE([Solaris detected and sys/swap.h not found: Try building a 64bit binary.]) + hint_64="" + if test "x$GCC" = "xyes" + then + hint_64="CC='gcc -m64'" + else + hint_64="CC='cc -xarch=v9'" + fi + AC_MSG_NOTICE([Solaris detected and sys/swap.h not usable. Try building a 64-bit binary ($hint_64 ./configure).]) fi # For load module -- 2.30.2