Propagate the information on whether we have the GNU version of ln
to all programs by making it available as a constant.
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
-DENABLE_SPLIT_QUERY="$(ENABLE_SPLIT_QUERY)" \
-DENABLE_RESTRICTED_COMMANDS="$(ENABLE_RESTRICTED_COMMANDS)" \
-DENABLE_MOND="$(ENABLE_MOND)" \
+ -DHAS_GNU_LN="$(HAS_GNU_LN)" \
-DMAN_PAGES="$$(for i in $(notdir $(man_MANS)); do \
echo -n "$$i" | sed -re 's/^(.*)\.([0-9]+)$$/("\1",\2):/g'; \
done)" \
UPGRADE_QUEUE_DRAIN_TIMEOUT = _constants.UPGRADE_QUEUE_DRAIN_TIMEOUT
UPGRADE_QUEUE_POLL_INTERVAL = _constants.UPGRADE_QUEUE_POLL_INTERVAL
+# other constants
+
+HAS_GNU_LN = _constants.HAS_GNU_LN
+
# Do not re-export imported modules
del re, _vcsversion, _constants, socket, pathutils, compat
enableMond :: Bool
enableMond = ENABLE_MOND
+hasGnuLn :: Bool
+hasGnuLn = HAS_GNU_LN
+
-- Write dictionary with man page name as the key and the section
-- number as the value
manPages :: [(String, Int)]
lvmStripecount :: Int
lvmStripecount = AutoConf.lvmStripecount
+hasGnuLn :: Bool
+hasGnuLn = AutoConf.hasGnuLn
+
-- * 'autoconf' constants for Python only ('lib/pathutils.py')
-- ** Build-time constants