summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-11-26 16:20:59 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-11-26 16:20:59 +0900
commitbebd602ba7ee686b7eb7a176e71efa1c0621108f (patch)
tree45f1386aa1b765a255b4225f476382b6feacb120 /configure.ac
parent9df50804d47b5e503d9ea4a84d469fe9dd87cddf (diff)
Fix bug that HAVE_LIBEXPAT is not defined
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 41cac35e..aedf9df6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -331,8 +331,9 @@ fi
have_libexpat=no
if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
PKG_CHECK_MODULES([EXPAT],[expat],[have_libexpat=yes],[have_libexpat=no])
- if test "x$have_libexpat" != "xyes" &&
- test "x$with_libexpat_requested" = "xyes"; then
+ if test "x$have_libexpat" = "xyes"; then
+ AC_DEFINE([HAVE_LIBEXPAT], [1], [Define to 1 if you have libexpat.])
+ elif test "x$with_libexpat_requested" = "xyes"; then
ARIA2_DEP_NOT_MET([libexpat])
fi
fi