autoconf-archive-maintainers | |
[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Howto use autoconf-archive
From: |
Peter Johansson |
Subject: |
Re: Howto use autoconf-archive |
Date: |
Tue, 20 Apr 2010 16:40:20 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 |
Hi Gordon,
On 4/20/10 2:35 PM, Gordon wrote:
Hello,
how do I actually use the macros contained in autoconv-archive in my own
project?
I'm using Ubuntu 8.04, and I installed the packages autoconf 2.61-4 and
autoconf-archive 20070512-1. In my own configure.ac file, I'd like to
use AX_LIB_POSTGRESQL, for example. I run libtoolize --force&& aclocal
&& autoconf&& autoheader&& automake --add-missing&& configure. And I get
./configure: line 19787: AX_LIB_POSTGRESQL: command not found
What is the recommended, most portable way to use these macros in
autoconf-archive? Do I just copy the contents of ax_lib_postgresql.m4
into my own configure.ac? Or can autoconf be told that the macros in
autoconv-archive are available for use?
Here is what I do:
I add a line in main Makefile.am
ACLOCAL_AMFLAGS = -I m4
and in configure.ac a line
AC_CONFIG_MACRO_DIR([m4])
then I copy needed macro files into directory `m4' and issue
autoreconf -ivf
It is also possible to let aclocal do the copying of files into `m4' but
based on your email it seems you aclocal doesn't know where
autoconf-archive macros are installed. Please refer to the Automake
manual on how to modify the search path of aclocal:
http://sources.redhat.com/automake/automake.html#Macro-Search-Path
Cheers,
Peter