autoconf
[Top][All Lists]
Advanced

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

Re: ac_unique_file in autoconf version 2.13


From: Russ Allbery
Subject: Re: ac_unique_file in autoconf version 2.13
Date: Thu, 03 Apr 2003 11:04:36 -0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Portable Code, sparc-sun-solaris2.6)

Susan Dittmar <address@hidden> writes:

> I am trying to compile a little library. I want it to install to
> /usr/local/lib/pkg/library.lo, so I wrote 
>                ^^^
> AC_INIT(pkg,0.1,address@hidden)
> in the configure.in (to have pkglibdir defined accordingly).
> But that means that later on configure checks for a file named
> 'pkg' to make sure it really found the sourcedir
> (ac_unique_file=pkg in configure).

AC_INIT doesn't have anything to do with where the package installs.  That
argument of AC_INIT should be the name of some file in your source tree so
that Autoconf can be sure that it found the right directory.

What you want to do is not really best handled by Autoconf, in my opinion.
I would deal with this in the installation rule in your Makefile; rather
than installing the library into $(libdir), install into $(libdir)/pkg.

-- 
Russ Allbery (address@hidden)             <http://www.eyrie.org/~eagle/>




reply via email to

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