Mon Feb 6 21:42:27 2006 Michael Jennings (mej)

Add macro definitions for systems that don't yet define them (like
SuSE?)
----------------------------------------------------------------------


SVN revision: 20322
This commit is contained in:
Michael Jennings 2006-02-07 02:42:59 +00:00
parent 9ee597181a
commit bc226f4226
1 changed files with 16 additions and 2 deletions

View File

@ -1,5 +1,19 @@
# Conditional build stuff; see /usr/lib/rpm/macros. bcond_without
# defaults to WITH, and vice versa. Yes, it's ass-backward. Blame PLD.
# Conditional build stuff; from rpm 4.4 /usr/lib/rpm/macros.
# bcond_without defaults to WITH, and vice versa. Yes, it's
# ass-backward. Blame PLD.
%if %{!?with:1}0
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%endif
%if %{!?without:1}0
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
%endif
%if %{!?bcond_with:1}0
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%endif
%if %{!?bcond_without:1}0
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
%endif
%bcond_without module_loader_edb
%bcond_without module_saver_edb
%bcond_with module_engine_cairo_x11