autoconf
[Top][All Lists]
Advanced

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

Re: AC_PATH_PROG or m4 bug


From: Roman Rybalko
Subject: Re: AC_PATH_PROG or m4 bug
Date: Tue, 28 Aug 2007 11:14:28 +0400
User-agent: Thunderbird 2.0.0.6 (X11/20070728)

> M4 1.4.4 and earlier have known bugs that interfere with correct autoconf
> operation.  We recommend upgrading to M4 1.4.5 or later (M4 is currently
> at 1.4.10).  While you are at it, you may also want to look at upgrading
> to autoconf 2.61, although for this issue, the out-of-date m4 is most
> likely the culprit.
>
I've tested on m4 1.4.8 - the same.
> Always quote nested macro invocations.
>
>   
>> 2) [CHECK_KRB(5)] instead of CHECK_KRB(5) (in all cases)
>>     
>
> That's the only part that needs to be fixed.
>   
OK.
But without quoting it works in most cases. AFAIN, m4 do not require this.
The bug appears only in above mentioned example.
Even if you remove
        if test -z "$KRB[$1]_CONFIG" ; then
                AC_MSG_FAILURE(Kerberos [$1] not found)
        fi
        KRB5_CFLAGS=`$KRB[$1]_CONFIG --cflags`
        KRB5_LIBS=`$KRB[$1]_CONFIG --libs`
        CFLAGS="$CFLAGS $KRB[$1]_CFLAGS"
        LIBS="$LIBS $KRB[$1]_LIBS"
from macro all became to work fine.



reply via email to

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