From a54cecfc8e8fb501d783806b1b603c7b283e00a1 Mon Sep 17 00:00:00 2001 From: Tomas Carnecky Date: Fri, 30 Apr 2010 21:00:24 +0200 Subject: [PATCH] Add support for the Solaris platform Like on Mac OS X, the linker doesn't automatically resolve dependencies. Signed-off-by: Tomas Carnecky --- configure | 28 +++++++++++++++++++--------- lib/Makefile.local | 2 +- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/configure b/configure index fd189093..40538e14 100755 --- a/configure +++ b/configure @@ -258,15 +258,26 @@ else have_emacs=0 fi -printf "Checking for Mac OS X (for shared library)... " +printf "Checking which platform we are on... " if [ `uname` = "Darwin" ] ; then - printf "Yes.\n" - mac_os_x=1 + printf "Mac OS X.\n" + platform=MACOSX linker_resolves_library_dependencies=0 -else - printf "No.\n" - mac_os_x=0 +elif [ `uname` = "SunOS" ] ; then + printf "Solaris.\n" + platform=SOLARIS + linker_resolves_library_dependencies=0 +elif [ `uname` = "Linux" ] ; then + printf "Linux\n" + platform=LINUX linker_resolves_library_dependencies=1 +else + printf "Unknown.\n" + cat <