From: Doug MacEachern Date: Sat, 9 May 2009 01:54:51 +0000 (-0700) Subject: configure.in: Add hint for building solaris 64-bit binary. X-Git-Tag: collectd-4.5.4~2 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=78097289fe1ff3a436d876494271cc82b7a6594c configure.in: Add hint for building solaris 64-bit binary. Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- 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