From 9d9668e3e7b0e4ed5e054125841dd729a46abd79 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Sat, 5 Jun 2010 14:05:15 +0300 Subject: [PATCH] configure: optimize uname finding a bit Signed-off-by: Felipe Contreras --- configure | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure b/configure index c86a227c..7e8cd163 100755 --- a/configure +++ b/configure @@ -275,15 +275,16 @@ fi libdir_in_ldconfig=0 printf "Checking which platform we are on... " -if [ `uname` = "Darwin" ] ; then +uname=`uname` +if [ $uname = "Darwin" ] ; then printf "Mac OS X.\n" platform=MACOSX linker_resolves_library_dependencies=0 -elif [ `uname` = "SunOS" ] ; then +elif [ $uname = "SunOS" ] ; then printf "Solaris.\n" platform=SOLARIS linker_resolves_library_dependencies=0 -elif [ `uname` = "Linux" ] ; then +elif [ $uname = "Linux" ] ; then printf "Linux\n" platform=LINUX linker_resolves_library_dependencies=1 -- 2.43.0