From d44a5a2e6aa9ca67431e4c8058f30600e1b8497f Mon Sep 17 00:00:00 2001 From: Kaito Udagawa Date: Sat, 26 Nov 2016 20:18:54 +0900 Subject: [PATCH] Recover to link with libexpat and lib curl AC_CHECK_LIB adds the -l to LIBS and defines HAVE_ when the third argument is empty. This change recovers that behavior and now links with expat and curl correctly. --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 593d087..b41c5e4 100644 --- a/configure.ac +++ b/configure.ac @@ -127,8 +127,8 @@ AC_ARG_WITH([expat], have_expat=no AS_IF([test "x$with_expat" != xno], [AC_CHECK_HEADER([expat.h], - [AC_CHECK_LIB([expat], [XML_ParserCreate], - [have_expat=yes])]) + [AC_CHECK_LIB([expat], [XML_ParserCreate])]) + have_expat=${ac_cv_lib_expat_XML_ParserCreate-no} AS_IF([test "x$with_expat" != xcheck && test "x$have_expat" = xno], [AC_MSG_FAILURE([--with-expat was given but test for expat failed])])]) @@ -146,8 +146,8 @@ AC_ARG_WITH([curl], have_curl=no AS_IF([test "x$with_curl" != xno], [AC_CHECK_HEADER([curl/curl.h], - [AC_CHECK_LIB([curl], [curl_global_init], - [have_curl=yes])]) + [AC_CHECK_LIB([curl], [curl_global_init],,)],) + have_curl=${ac_cv_lib_curl_curl_global_init-no} AS_IF([test "x$with_curl" != xcheck && test "x$have_curl" = xno], [AC_MSG_FAILURE([--with-curl was given but test for curl failed])])])