[Top][All Lists]

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

how to install library in a specific directory?

From: bonami
Subject: how to install library in a specific directory?
Date: Wed, 22 Jul 2009 01:12:41 -0700 (PDT)

  I have two projects. One generates a shared library and the other uses it. 
The library is to be installed in /usr/local/lib/ezproject, while the
s name is ezcommon. I have problems in both the projects.
AC_INIT(ezcommon, 3.0)
libdir = $(exec_prefix)/lib/ezproject
includedir = $(prefix)/include/ezproject
  Problem is, if user configure --libdir=..., the user's definition will be 
ignored. How can I set libdir only when user does not assign it? (Since this 
dir name is not same as project name, I cannot use pkglib_.)
  The other question is how to check for this library in the other project, 
named ezcmd.
AC_CHECK_LIB([ezcommon], main,,AC_MSG_ERROR(...))
  This check will fail, since ezcommon is installed in /usr/local/lib/
ezproject by default. Should I add LDFLAGS=-Lezproject or sth.? And how? Or 
should I add this directory to system's link-search directory?

  Thank you very much.
View this message in context:
Sent from the Gnu - Automake - General mailing list archive at

reply via email to

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