Susan Dittmar <[EMAIL PROTECTED]> 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,[EMAIL PROTECTED])
> 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 ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>


Reply via email to