# EXPAT:
# Apache requires an Expat package and includes James Clark's Expat
# package (expat-lite) with the distribution. This determines
-# whether you want to include the system's Expat library ('yes'),
-# expat-lite ('no') or prefer the system Expat if available but choose
-# expat-lite if not ('default'). Note that if set to 'yes' and
+# whether you want to include the bundled expat-lite library ('yes'),
+# the system expat ('no') or prefer the system Expat if available but
+# choose expat-lite if not ('default'). Note that if set to 'no' and
# libexpat.a cannot be found, the build will fail.
#
fi
####################################################################
-## Add in the Expat library. Choose whether we want the system's
-## version ('yes'), our version (expat-lite) ('no') or for Configure
+## Add in the Expat(-lite) library. Choose whether we want the expat-lite
+## version ('yes'), the system's expat ('no') or for Configure
## to choose for us ('default' - system is prefered if available).
##
-if ./helpers/TestCompile lib expat && [ "x$RULE_EXPAT" != "xno" ]; then
+if ./helpers/TestCompile lib expat && [ "x$RULE_EXPAT" != "xyes" ]; then
echo " + using system Expat"
LIBS="$LIBS -lexpat"
else
- if [ "x$RULE_EXPAT" = "xyes" ]; then
- echo "ERROR: RULE_EXPAT set to \"yes\" but is not available."
+ if [ "x$RULE_EXPAT" = "xno" ]; then
+ echo "ERROR: RULE_EXPAT set to \"no\" but system expat is not available."
exit 1
fi
if [ ! -d ./lib/expat-lite/ ]; then