Subject: bug#19311: closed (Re: bug#19311: [FYI] {minor} Expose automake bug#19311)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 20 Feb 2022 19:10:02 +0000

Your bug report

#19311: AC_PROG_CC can force wrong $ac_aux_dir definition in automake 1.14

which was filed against the automake package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
19311: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19311
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#19311: [FYI] {minor} Expose automake bug#19311
From: Mike Frysinger <[email-masked]>
To: [email-masked]
Date: Sun, 20 Feb 2022 14:09:24 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

On 17 Dec 2014 17:13, Stefano Lattarini wrote:
> AC_PROG_CC called before AC_CONFIG_AUX_DIR can silently force wrong
> $ac_aux_dir definition.

looks like this was merged to fix this bug but forgot to close the report
-mike

Subject: regression: 1.14 may use ac_aux_dir before defined (again)
From: Jan Engelhardt <[email-masked]>
To: [email-masked]
Date: Mon, 8 Dec 2014 18:15:26 +0100 (CET)
List-Id: <debbugs-submit.debbugs.gnu.org>

When AC_SYSTEM_EXTENSIONS precedes AM_INIT_AUTOMAKE, it used to throw an 
error - which has been fixed in
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15981 .

I have here another instance of what appears to be a similar issue. This 
one is also a regression (used to work in 1.13.4), and the regression is 
still present in {automake 1.14.1 + patch from #15981}. The problem 
originates in libmemcached/configure.ac, and I have produced the 
following reduced testcase that exhibits the issue:

$ cat <<EOF >configure.ac
AC_INIT([foo], [0])
AC_PROG_CC([cc gcc clang])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.11 subdir-objects foreign])
AC_OUTPUT([Makefile])
EOF
$ echo '' >Makefile.am
$ md m4
$ autoreconf -fi
configure.ac:2: installing 'build-aux/compile'
configure.ac:5: installing 'build-aux/install-sh'
configure.ac:5: installing 'build-aux/missing'
$ ./configure
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.."
"./../.."

With automake-1.13.4, configure would succeed through to the end 
("config.status: creating Makefile").