Brandon Invergo
2013-08-20 20:11:15 UTC
Hi all,
In the default example configure.ac file that I provide with GNU
pyconfigure, I include the Python-related Autoconf macros (contained in
the 'm4' directory) via the AC_CONFIG_MACRO_DIR macro. In all of my
testing, this has worked fine for me; the macros get included by aclocal
into aclocal.m4 without a problem.
A minimal pyconfigure configure.ac file might look like this:
AC_INIT([foo], [1.5], [bug-***@gnu.org])
AC_CONFIG_MACRO_DIR([m4])
PC_INIT([2.7], [3.3.2])
AC_CONFIG_FILES([Makefile setup.py])
AC_OUTPUT
Currently a user is finding that autoreconf on his system is not calling
aclocal and thus the macros are never included. Instead, he must use
m4_include. He's using Autoconf 2.69 and Automake 1.11.6.
My question comes in two parts: why might autoreconf not be calling
aclocal? Browsing the code, it looks like the only case is if
aclocal.m4 already exists and was not created by aclocal. Is there any
other possibility? The second question is, ultimately, which is
preferable: AC_CONFIG_MACRO_DIR or m4_include? My gut says
AC_CONFIG_MACRO_DIR, but perhaps I've missed some recommendations about
it.
I understand that I may be lacking some salient information regarding
the user's setup. I've still got some questions out to him. If I learn
anything else that's relevant, I'll add it here.
Thanks for your help!
Regards,
Brandon
In the default example configure.ac file that I provide with GNU
pyconfigure, I include the Python-related Autoconf macros (contained in
the 'm4' directory) via the AC_CONFIG_MACRO_DIR macro. In all of my
testing, this has worked fine for me; the macros get included by aclocal
into aclocal.m4 without a problem.
A minimal pyconfigure configure.ac file might look like this:
AC_INIT([foo], [1.5], [bug-***@gnu.org])
AC_CONFIG_MACRO_DIR([m4])
PC_INIT([2.7], [3.3.2])
AC_CONFIG_FILES([Makefile setup.py])
AC_OUTPUT
Currently a user is finding that autoreconf on his system is not calling
aclocal and thus the macros are never included. Instead, he must use
m4_include. He's using Autoconf 2.69 and Automake 1.11.6.
My question comes in two parts: why might autoreconf not be calling
aclocal? Browsing the code, it looks like the only case is if
aclocal.m4 already exists and was not created by aclocal. Is there any
other possibility? The second question is, ultimately, which is
preferable: AC_CONFIG_MACRO_DIR or m4_include? My gut says
AC_CONFIG_MACRO_DIR, but perhaps I've missed some recommendations about
it.
I understand that I may be lacking some salient information regarding
the user's setup. I've still got some questions out to him. If I learn
anything else that's relevant, I'll add it here.
Thanks for your help!
Regards,
Brandon
--
Brandon Invergo
http://brandon.invergo.net
Brandon Invergo
http://brandon.invergo.net