bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in AC_LIBOBJ, and autoconf 2.59


From: Tim Van Holder
Subject: Re: Bug in AC_LIBOBJ, and autoconf 2.59
Date: Fri, 30 Jan 2004 09:17:20 +0100

> This will produce the following code:
> 
> ,----
> | case $LIBOBJS in
> |     "qux.$ac_objext"   | \
> |   *" qux.$ac_objext"   | \
> |     "qux.$ac_objext "* | \
> |   *" qux.$ac_objext "* ) ;;
> |   *) LIBOBJS="$LIBOBJS qux.$ac_objext" ;;
> | esac
> `----
> 
> Which in turn can produce the following:
> 
> ,----
> | ./configure: line 1221: syntax error near unexpected token `"*'
> | ./configure: line 1221: `  *" qux.$ac_objext "*'
> `----
> 
> What is the point of the spaces? They don't seem to serve any useful
> purpose; and infact seem to be invalid shell script code.

The shell code seems valid enough to me...
The spaces are very relevant though - those first 4 lines try to
determine whether or not the object file hasn't already been added
to the list (which is space-separated).
Without them, qux.o wouldn't be added to a list that already had
fooqux.o or qux.other.o in it.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]