On 02/04/2018 04:58 PM, aotto wrote: > the following line create a BUG in autoconf >> # if 'CFLAGS' is NOT set, than macro 'AC_PROG_CC' set 'CFLAGS=-g -O2' > in seems that a M4-MACRO in COMMENT is a problem. >
> > # if 'CFLAGS' is NOT set, than macro 'AC_PROG_CC' set 'CFLAGS=-g -O2' > CFLAGS="-Wall -Wcast-align" > CXXFLAGS="" > #> autoconf > configure.ac:79: error: possibly undefined macro: AC_PROG_CC > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. You are correct that autoconf's detection of unexpanded macros is unaware of comment syntax. Would you like to prepare a patch to the post-processing pass that looks for unexpanded macros to first filter out all comment lines? -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature