autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autoconf and 64-bit Systems


From: Eric Blake
Subject: Re: Autoconf and 64-bit Systems
Date: Tue, 3 Feb 2009 16:05:30 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Peter Breitenlohner <peb <at> mppmu.mpg.de> writes:

> > test "$libdir" = NONE && libdir='${prefix}/lib64'
> 
> Hi Eric, Tom,
> 
> both of you are wrong (at least for Autoconf 2.63).  It ought to be
> 
> test "$libdir" = '${exec_prefix}/lib' && libdir='${exec_prefix}/lib64'

Yes, thanks for the corrections.  For that matter, putting this in the manual 
would be nice.  Meanwhile, I noticed that the manual wasn't entirely accurate, 
and also that the pdf version could use some nicer line breaks.  So I'm 
committing this:


From: Eric Blake <address@hidden>
Date: Tue, 3 Feb 2009 09:01:52 -0700
Subject: [PATCH] Document lib64 in config.site.

* doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
Mention use of lib64.
* THANKS: Update.
Reported by Tom Browder, with help from Peter Breitenlohner.

Signed-off-by: Eric Blake <address@hidden>
---
 ChangeLog         |    8 ++++++++
 THANKS            |    1 +
 doc/autoconf.texi |   18 +++++++++++++++---
 3 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a706db2..7ae64b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-02-03  Eric Blake  <address@hidden>
+
+       Document lib64 in config.site.
+       * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
+       Mention use of lib64.
+       * THANKS: Update.
+       Reported by Tom Browder, with help from Peter Breitenlohner.
+
 2009-01-28  Eric Blake  <address@hidden>
 
        Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
diff --git a/THANKS b/THANKS
index 74895cf..a4d9c23 100644
--- a/THANKS
+++ b/THANKS
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 0d20f2a..4e487df 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -19737,12 +19737,12 @@ Site Defaults
 and @code{cache_file} have their default values (as set near the top of
 @command{configure}) before changing them.
 
-Here is a sample file @file{/usr/share/local/gnu/share/config.site}.  The
+Here is a sample file @file{/usr/share/local/@/gnu/share/@/config.site}.  The
 command @samp{configure --prefix=/usr/share/local/gnu} would read this
 file (if @code{CONFIG_SITE} is not set to a different file).
 
 @example
-# config.site for configure
+# /usr/share/local/gnu/share/config.site for configure
 #
 # Change some defaults.
 test "$prefix" = NONE && prefix=/usr/share/local/gnu
@@ -19770,7 +19770,7 @@ Site Defaults
 the locations recommended by @acronym{FHS}.
 
 @example
-# /usr/local/config.site for FHS defaults when installing below /usr,
+# /usr/share/config.site for FHS defaults when installing below /usr,
 # and the respective settings were not changed on the command line.
 if test "$prefix" = /usr; then
   test "$sysconfdir" = 'address@hidden@}/etc' && sysconfdir=/etc
@@ -19779,6 +19779,18 @@ Site Defaults
 fi
 @end example
 
address@hidden lib64
address@hidden 64-bit libraries
+Likewise, on platforms where 64-bit libraries are built by default, then
+installed in @file{/usr/local/@/lib64} instead of @file{/usr/local/@/lib},
+it is appropriate to install @file{/usr/local/@/share/config.site}:
+
address@hidden
+# /usr/local/share/config.site for platforms that prefer
+# the directory /usr/local/lib64 over /usr/local/lib.
+test "$libdir" = 'address@hidden@}/lib' && libdir='address@hidden@}/lib64'
address@hidden example
+
 
 @c ============================================== Running configure Scripts.
 
-- 
1.6.0.4








reply via email to

[Prev in Thread] Current Thread [Next in Thread]