[PATCH 3/3] configure: optimize uname finding a bit

Felipe Contreras felipe.contreras at gmail.com
Sat Jun 5 04:05:15 PDT 2010


Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
 configure |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index ff775f0..3b4df37 100755
--- a/configure
+++ b/configure
@@ -198,15 +198,16 @@ errors=0
 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
-- 
1.7.0.1



More information about the notmuch mailing list