[Libdlo] Subject: [PATCH] Install the libraries in libdir.

Quentin Stafford-Fraser quentin at pobox.com
Mon May 25 06:11:06 PDT 2009


When I do a build from the git source, using the usual:

   aclocal
   ./autogen.sh
   ./configure
   make
   sudo make install

then the libdlo library gets installed in /usr/local, when I'd like  
it, of course, in /usr/local/lib.

I'm a long way from being an expert on autoconf, but it seems, on my  
system at least, that the library ought to be installed in '$(libdir)'  
rather than the current '$(exec_prefix)/$(libdir_name)', because  
libdir_name never gets defined.  Is it a standard that I don't know  
how to use?

It's highly possible that I, or my system, are misunderstanding or  
doing something wrong, but if not, here's a patch to put things in / 
usr/local/lib.

Q

Signed-off-by: Quentin Stafford-Fraser <quentin at pobox.com>
---
  configure.ac    |    4 ++--
  src/Makefile.am |    2 +-
  2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index fcd1524..98dd3e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,7 +57,7 @@ AC_MSG_RESULT([
  	
  	prefix:			${prefix}
  	exec_prefix:		${exec_prefix}
-	libdir_name:		${libdir_name}
+	libdir:			${libdir}
  	mandir:			${mandir}
  	includedir:		${includedir}
  						
@@ -67,4 +67,4 @@ AC_MSG_RESULT([
  								
  	xsltproc:		${XSLTPROC}
  ])
-											
\ No newline at end of file
+											
diff --git a/src/Makefile.am b/src/Makefile.am
index ec67a1c..9f14ed5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,5 +1,5 @@

-rootlibdir = $(exec_prefix)/$(libdir_name)
+rootlibdir = $(libdir)
  rootlib_LTLIBRARIES = \
  	libdlo.la

-- 
1.6.0.4



More information about the Libdlo mailing list