This bug is still present after the AC_PROG_CC changes (that didn't touch the relevant code at all):
<-- snip --> $ autoconf --version autoconf (GNU Autoconf) 2.69.33-6cd96 ... $ gcc --version gcc (Debian 4.7.2-2) 4.7.2 ... $ cat configure.ac AC_INIT AC_PROG_CC $ autoconf $ CC="gcc -std=gnu99" ./configure checking for gcc... gcc -std=gnu99 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 gcc -std=gnu99 accepts -g... yes checking for gcc -std=gnu99 option to accept ISO C11... none needed $ grep ^CC config.log CC='gcc -std=gnu99' $ <-- snip --> cu Adrian On Thu, Sep 20, 2012 at 12:10:15PM +0300, Adrian Bunk wrote: > <-- snip --> > > $ autoconf --version > autoconf (GNU Autoconf) 2.69.22-787a > ... > $ gcc --version > gcc (Debian 4.7.1-9) 4.7.1 > ... > $ cat configure.ac > AC_INIT > > AC_PROG_CC_C99 > AC_PROG_CC_C11 > $ ./configure > checking for gcc... gcc > 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 gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking for gcc option to accept ISO C99... -std=gnu99 > checking for gcc -std=gnu99 option to accept ISO C11... none needed > $ > > <-- snip -->