[PATCH] rename configure.in to configure.ac
Allan McRae
allan@archlinux.org
Wed Oct 16 03:31:00 GMT 2013
On 06/09/13 16:53, Russ Allbery wrote:
> Mike Frysinger <vapier@gentoo.org> writes:
>
>> Autoconf has been deprecating configure.in for quite a long time.
>> Rename all our configure.in and preconfigure.in files to .ac.
>
> This is almost certainly perfectly fine, and I haven't looked at context,
> but I wanted to make sure that someone had noticed it:
>
>> diff --git a/configure b/configure
>> index 2122583..e9c2827 100755
>> --- a/configure
>> +++ b/configure
>> @@ -5171,7 +5171,7 @@ $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
>> if ${libc_cv_autoconf_works+:} false; then :
>> $as_echo_n "(cached) " >&6
>> else
>> - if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
>> + if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
>> libc_cv_autoconf_works=yes
>> else
>> libc_cv_autoconf_works=no
>> @@ -8801,7 +8801,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
>> ac_sub_configure=$ac_srcdir/configure.gnu
>> elif test -f "$ac_srcdir/configure"; then
>> ac_sub_configure=$ac_srcdir/configure
>> - elif test -f "$ac_srcdir/configure.in"; then
>> + elif test -f "$ac_srcdir/configure.ac"; then
>> # This should be Cygnus configure.
>> ac_sub_configure=$ac_aux_dir/configure
>> else
>
> I believe the renaming of configure.in to configure.ac is specific to
> Autoconf. Cygnus configure is a different (and older) beast; if anyone is
> actually still using Cygnus configure, those files would still be named
> configure.in, not configure.ac.
>
Correct. In fact, rerunning autoconf changes thus line back to using
configure.in.
Patch is good for me with that change.
Allan
More information about the Libc-alpha
mailing list