On Mon, Jul 25, 2005 at 07:38:11PM -0400, Lois Bennett wrote:

> The spec file for samba assumes that the default for using LDAP in 
> building samba is 'no' but the samba configure has 'yes' or 'auto' as 
> the default.

I always prefer an explicit setting for all cases and a comparison
against "yes". The option could have any value, so treating anything
not equal to "yes" as "no" is a bit more predictable.

%if "%{with_ldap}" == "yes"
        --with-ldap=yes
%else
        --with-ldap=no
%endif


-- 
                                Michael van Elst
Internet: [EMAIL PROTECTED]
                                "A potential Snark may lurk in every tree."
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to