From f502fd1fe44145dff90e866692ef7b2cea3397c0 Mon Sep 17 00:00:00 2001 From: Markus Kohlhase Date: Sun, 26 Feb 2012 12:48:30 +0100 Subject: [PATCH] added missing newline character to fix configuring errors --- configure.ac | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index f843de5..97444e5 100644 --- a/configure.ac +++ b/configure.ac @@ -8,14 +8,14 @@ AM_PROG_CC_C_O AC_CHECK_HEADER(openssl/ssl.h, [], [AC_MSG_ERROR([couldn't find openssl headers, openssl required])]) PKG_CHECK_MODULES([check], [check >= 0.9.4], [], [AC_MSG_WARN([libcheck not found; unit tests will not be compilable])]) -AC_ARG_WITH([libxml2], +AC_ARG_WITH([libxml2], [AS_HELP_STRING([--with-libxml2], [use libxml2 for XML parsing])], [with_libxml2=check], [with_libxml2=no]) if test "x$with_libxml2" != xno; then PKG_CHECK_MODULES([libxml2], [libxml-2.0 >= 2.7], - [with_libxml2=yes], + [with_libxml2=yes], [AC_MSG_ERROR([couldn't find libxml2])]) else AC_CHECK_HEADER(expat.h, [], [AC_MSG_ERROR([couldn't find expat headers; expat required])]) @@ -35,10 +35,13 @@ fi AC_MSG_NOTICE([libstrophe will use the $with_parser XML parser]) AC_SEARCH_LIBS([socket], [socket]) -AC_LINK_IFELSE([AC_LANG_CALL([#include ], [res_query])], [], [LIBS="$LIBS -lresolv"])AC_CHECK_HEADERS([arpa/nameser_compat.h]) + +AC_LINK_IFELSE([AC_LANG_CALL([#include ], [res_query])], [],[LIBS="$LIBS -lresolv"]) + +AC_CHECK_HEADERS([arpa/nameser_compat.h]) AM_CONDITIONAL([PARSER_EXPAT], [test x$with_parser != xlibxml2]) -AC_SUBST(PARSER_NAME) +AC_SUBST(PARSER_NAME) AC_SUBST(PARSER_CFLAGS) AC_SUBST(PARSER_LIBS) AC_CONFIG_FILES([Makefile])