Description of Problem: When using AM_MAINTAINER_MODE and setting CFLAGS env-variable at ./configure time, this value will be added endlessly to autogenerated reinvokations of ./configure. Version-Release number of selected component (if applicable): automake-1.5-1 autoconf-2.52-3 How Reproducible: everytime Steps to Reproduce: 1. cat <<EOF >configure.ac AC_INIT(foo, 0.0.1, x) AM_INIT_AUTOMAKE(foo, 0.0.1) AM_MAINTAINER_MODE AC_PROG_CC AC_CONFIG_FILES(Makefile) AC_OUTPUT EOF 2. echo 'AUTOMAKE_OPTIONS = foreign' >Makefile.am (not really necessarily, but makes life easier) 3. automake=automake autoreconf -i # workaround for bug #55870 4. CFLAGS='-g3' ./configure --enable-maintainer-mode 5. for i in 0 1 2 3; do touch configure.ac; make; done Actual Results: Each iteration at 5. adds a new 'CFLAGS=-g3' to the ./configure call; finally it shows | ... | /bin/sh ./config.status --recheck | running /bin/sh ./configure --enable-maintainer-mode CFLAGS=-g3 CFLAGS=-g3 CFLAGS=-g3 CFLAGS=-g3 --no-create --no-recursion | checking for a BSD compatible install... /usr/bin/install -c | ... Expected Results: Only a single 'CFLAGS=-g3' on the cmd-line.
Hmm, wrong bug# at 3; should be bug #56184.
Actually I can reproduce this with: % cat <<EOF >configure.ac AC_INIT(foo, 0.0.1, x) AM_INIT_AUTOMAKE(foo, 0.0.1) AC_PROG_CC AC_CONFIG_FILES(Makefile) AC_OUTPUT EOF % touch Makefile.am % autoreconf -i % CFLAGS='-g3' ./configure % touch configure.ac; make % touch configure.ac; make So I don't think it has anything to do with maintainer mode.
or instead of "touch configure.ac; make" just "./config.status --recheck". Looks like it may be an autoconf bug.
fixed by autoconf-2.53, AFAICT.