Tweak for no-libio-install

Alexandre Oliva oliva@lsd.ic.unicamp.br
Sat Apr 1 00:00:00 GMT 2000


On Feb 23, 2000, Chip Salzenberg <chip@valinux.com> wrote:

>     for f in $(MACRO); do something; done
> When $(MACRO) is empty, this expands to:
>     for f in ; do something; done
> This is a Bourne shell syntax error.  (Or at least bash thinks so.)

Yup.  The portable construct, used in automake, is:

list='$(MACRO)'; for f in $$list; do \

-- 
Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaraná
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me



More information about the Libstdc++ mailing list