On 11/20/2011 08:29 AM, Andreas Schwab wrote: > Should autoconf be more robust against IFS clobbering? > > $ printf '%s\n' AC_INIT "IFS=' '" AC_OUTPUT > configure.ac > $ autoconf > $ ./configure > ./configure: line 1669: BASHOPTS: command not found > [...]
No. That's a bug in configure.ac for changing IFS in a non-portable manner. Configure scripts already sanitize IFS up front to space-tab-newline; and it is expected that any configure.ac that changes IFS will reset it before expanding any further macros. There's no way that autoconf can protect itself against buggy configure.ac that fail to follow the rule about sane use of IFS, other than to document "don't do that". -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature