diff options
author | nia <nia@pkgsrc.org> | 2022-05-21 11:24:28 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2022-05-21 11:24:28 +0000 |
commit | 5ac75106b1be9ff438affcfa816613d60646c53e (patch) | |
tree | 76132b2c18b25e3e68d827ef29ab83ebe6d80910 /doc/guide | |
parent | a25315723f2b5c187e9e1f34d768eb3646c12b73 (diff) | |
download | pkgsrc-5ac75106b1be9ff438affcfa816613d60646c53e.tar.gz |
Update state of the art on autoconf
Diffstat (limited to 'doc/guide')
-rw-r--r-- | doc/guide/files/fixes.xml | 38 |
1 files changed, 12 insertions, 26 deletions
diff --git a/doc/guide/files/fixes.xml b/doc/guide/files/fixes.xml index d28c8af777a..515ebe691de 100644 --- a/doc/guide/files/fixes.xml +++ b/doc/guide/files/fixes.xml @@ -1,4 +1,4 @@ -<!-- $NetBSD: fixes.xml,v 1.172 2022/05/21 11:20:48 nia Exp $ --> +<!-- $NetBSD: fixes.xml,v 1.173 2022/05/21 11:24:28 nia Exp $ --> <chapter id="fixes"> <?dbhtml filename="fixes.html"?> <title>Making your package work</title> @@ -1349,39 +1349,25 @@ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} ${SOMELIB:.a=.la} ${PREFIX}/lib <title>GNU Autoconf/Automake</title> <para>If a package needs GNU autoconf or automake to be executed - to regenerate the configure script and Makefile.in makefile - templates, then they should be executed in a pre-configure - target.</para> - - <para>For packages that need only autoconf:</para> + to regenerate the + <filename>configure</filename> + script and <filename>Makefile.in</filename> makefile + templates from <filename>configure.ac</filename> and + <filename>Makefile.am</filename>, + then they should be executed in a pre-configure target:</para> <programlisting> -AUTOCONF_REQD= 2.50 # if default version is not good enough -USE_TOOLS+= autoconf # use "autoconf213" for autoconf-2.13 +USE_TOOLS+= autoconf automake autoreconf +GNU_CONFIGURE= yes ... pre-configure: - cd ${WRKSRC} && autoconf - -... -</programlisting> - - <para>and for packages that need automake and autoconf:</para> - -<programlisting> -AUTOMAKE_REQD= 1.7.1 # if default version is not good enough -USE_TOOLS+= automake # use "automake14" for automake-1.4 -... - -pre-configure: - set -e; cd ${WRKSRC}; \ - aclocal; autoheader; automake -a --foreign -i; autoconf - + set -e; cd ${WRKSRC} && autoreconf -fi ... </programlisting> - <para>Packages which use GNU Automake will almost certainly - require GNU Make.</para> + <para>Packages which use GNU Automake will sometimes + require GNU Make, but not always.</para> <para>There are times when the configure process makes additional changes to the generated files, which then causes |