1 Return-Path: <felipe.contreras@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 06131418C37
\r
6 for <notmuch@notmuchmail.org>; Sat, 5 Jun 2010 04:05:39 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
\r
13 DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001]
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id 1vESaeVQFyLY for <notmuch@notmuchmail.org>;
\r
18 Sat, 5 Jun 2010 04:05:27 -0700 (PDT)
\r
19 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com
\r
21 by olra.theworths.org (Postfix) with ESMTP id DBDD74196F0
\r
22 for <notmuch@notmuchmail.org>; Sat, 5 Jun 2010 04:05:26 -0700 (PDT)
\r
23 Received: by bwz12 with SMTP id 12so685083bwz.26
\r
24 for <notmuch@notmuchmail.org>; Sat, 05 Jun 2010 04:05:26 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=domainkey-signature:received:received:from:to:cc:subject:date
\r
27 :message-id:x-mailer:in-reply-to:references;
\r
28 bh=/VsOeoaFF37vXtgQK3jqp4xHSUUE5rMtNQsbVWpchdI=;
\r
29 b=bGIwxujQvk+rLDrtOK5J8jRDYyfNaI8U42UTJkgHSQYNVhqetyVlIyoYGepva2Df+c
\r
30 58E2bLAU9bM3q/tIEDNftzfxq8ExAyRd2Roc5J/8F7pCVIpRPLlSt3+IEeco7MucZHTt
\r
31 rf8ldmyqwd3P9U2s074hhACQ2chXdQMV+6JUk=
\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
33 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
34 b=maAPKdcIk5f+IwLiv56Yyd9y3xVILVGR7DFECcoMVGe503CALKva4USyBNrqD2V8yr
\r
35 iea2JY35GJ7cighQjyQ0Uo7sKE7hZzOkYLkSqmevbx5F6zyfWO3kqs+fvGynuQ3UMZ/x
\r
36 MY7l7sqcGfBPPbijtTsS7Kf4spX+xFfLqWiDQ=
\r
37 Received: by 10.204.3.69 with SMTP id 5mr4859445bkm.190.1275735926067;
\r
38 Sat, 05 Jun 2010 04:05:26 -0700 (PDT)
\r
39 Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80])
\r
40 by mx.google.com with ESMTPS id
\r
41 v14sm9550136bkz.20.2010.06.05.04.05.25
\r
42 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
43 Sat, 05 Jun 2010 04:05:25 -0700 (PDT)
\r
44 From: Felipe Contreras <felipe.contreras@gmail.com>
\r
45 To: notmuch@notmuchmail.org
\r
46 Subject: [PATCH 1/3] configure: check platform beforehand
\r
47 Date: Sat, 5 Jun 2010 14:05:13 +0300
\r
48 Message-Id: <1275735915-22650-2-git-send-email-felipe.contreras@gmail.com>
\r
49 X-Mailer: git-send-email 1.7.1
\r
50 In-Reply-To: <1275735915-22650-1-git-send-email-felipe.contreras@gmail.com>
\r
51 References: <1275735915-22650-1-git-send-email-felipe.contreras@gmail.com>
\r
52 X-BeenThere: notmuch@notmuchmail.org
\r
53 X-Mailman-Version: 2.1.13
\r
55 List-Id: "Use and development of the notmuch mail system."
\r
56 <notmuch.notmuchmail.org>
\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
60 List-Post: <mailto:notmuch@notmuchmail.org>
\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
64 X-List-Received-Date: Sat, 05 Jun 2010 11:05:39 -0000
\r
66 Will be needed in next patches.
\r
68 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
\r
70 configure | 62 ++++++++++++++++++++++++++++++------------------------------
\r
71 1 files changed, 31 insertions(+), 31 deletions(-)
\r
73 diff --git a/configure b/configure
\r
74 index c86a227..1eb4785 100755
\r
77 @@ -195,6 +195,37 @@ EOF
\r
81 +libdir_in_ldconfig=0
\r
83 +printf "Checking which platform we are on... "
\r
84 +if [ `uname` = "Darwin" ] ; then
\r
85 + printf "Mac OS X.\n"
\r
87 + linker_resolves_library_dependencies=0
\r
88 +elif [ `uname` = "SunOS" ] ; then
\r
89 + printf "Solaris.\n"
\r
91 + linker_resolves_library_dependencies=0
\r
92 +elif [ `uname` = "Linux" ] ; then
\r
95 + linker_resolves_library_dependencies=1
\r
96 + ldconfig_paths=$(/sbin/ldconfig -N -X -v 2>/dev/null | sed -n -e 's,^\(/.*\):\( (.*)\)\?$,\1,p')
\r
97 + for path in $ldconfig_paths; do
\r
98 + echo "Checking $path compared to $libdir_expanded"
\r
99 + if [ "$path" = "$libdir_expanded" ]; then
\r
100 + libdir_in_ldconfig=1
\r
104 + printf "Unknown.\n"
\r
107 +*** Warning: Unknown platform. Notmuch might or might not build correctly.
\r
112 if pkg-config --version > /dev/null 2>&1; then
\r
115 @@ -272,37 +303,6 @@ else
\r
119 -libdir_in_ldconfig=0
\r
121 -printf "Checking which platform we are on... "
\r
122 -if [ `uname` = "Darwin" ] ; then
\r
123 - printf "Mac OS X.\n"
\r
125 - linker_resolves_library_dependencies=0
\r
126 -elif [ `uname` = "SunOS" ] ; then
\r
127 - printf "Solaris.\n"
\r
129 - linker_resolves_library_dependencies=0
\r
130 -elif [ `uname` = "Linux" ] ; then
\r
133 - linker_resolves_library_dependencies=1
\r
134 - ldconfig_paths=$(/sbin/ldconfig -N -X -v 2>/dev/null | sed -n -e 's,^\(/.*\):\( (.*)\)\?$,\1,p')
\r
135 - for path in $ldconfig_paths; do
\r
136 - echo "Checking $path compared to $libdir_expanded"
\r
137 - if [ "$path" = "$libdir_expanded" ]; then
\r
138 - libdir_in_ldconfig=1
\r
142 - printf "Unknown.\n"
\r
145 -*** Warning: Unknown platform. Notmuch might or might not build correctly.
\r
150 if [ $errors -gt 0 ]; then
\r