From: Felipe Contreras <felipe.contreras@gmail.com>
To: notmuch@notmuchmail.org
Subject: [PATCH 3/3] configure: optimize uname finding a bit
Date: Sat, 5 Jun 2010 14:05:15 +0300 [thread overview]
Message-ID: <1275735915-22650-4-git-send-email-felipe.contreras@gmail.com> (raw)
In-Reply-To: <1275735915-22650-1-git-send-email-felipe.contreras@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@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
next prev parent reply other threads:[~2010-06-05 11:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-05 11:05 [PATCH 0/3] build fixes Felipe Contreras
2010-06-05 11:05 ` [PATCH 1/3] configure: check platform beforehand Felipe Contreras
2010-06-05 11:05 ` [PATCH 2/3] build: fix DSO dependencies Felipe Contreras
2010-10-29 21:37 ` Carl Worth
2010-10-29 23:17 ` Felipe Contreras
2010-11-01 19:58 ` Jed Brown
2010-06-05 11:05 ` Felipe Contreras [this message]
2010-06-14 14:17 ` [PATCH 0/3] build fixes Felipe Contreras
2010-06-15 19:34 ` Dirk Hohndel
2010-07-17 12:58 ` Felipe Contreras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1275735915-22650-4-git-send-email-felipe.contreras@gmail.com \
--to=felipe.contreras@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).