From: Victor Julien Date: Wed, 17 Feb 2016 09:25:02 +0000 (+0100) Subject: configure: OS X fixes X-Git-Tag: suricata-3.0.1RC1~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9858ae41bed1cbd62a65657b441e233752159595;p=thirdparty%2Fsuricata.git configure: OS X fixes Remove unnecessary -lpthread from tests. Make linker warnings non-fatal with -Werror. --- diff --git a/configure.ac b/configure.ac index 662342245f..118486fa2e 100644 --- a/configure.ac +++ b/configure.ac @@ -57,7 +57,7 @@ case "$compiler" in clang) - CLANG_CFLAGS="-Wextra -Werror-implicit-function-declaration" + CLANG_CFLAGS="-Wextra -Werror-implicit-function-declaration -Wno-error=unused-command-line-argument" AC_MSG_CHECKING([clang __sync_bool_compare_and_swap support]) AC_TRY_COMPILE([#include ], [ unsigned int i = 0; (void)__sync_bool_compare_and_swap(&i, 1, 1);], @@ -470,7 +470,7 @@ LDFLAGS="${LDFLAGS} -L${with_libpcre_libraries}" fi PCRE="" - AC_CHECK_LIB(pcre, pcre_get_substring,, PCRE="no",-lpthread) + AC_CHECK_LIB(pcre, pcre_get_substring,, PCRE="no") if test "$PCRE" = "no"; then echo echo " ERROR! pcre library not found, go get it" @@ -997,7 +997,7 @@ AC_CHECK_HEADERS([pcap.h pcap/pcap.h pcap/bpf.h]) LIBPCAP="" - AC_CHECK_LIB(pcap, pcap_open_live,, LIBPCAP="no", [-lpthread]) + AC_CHECK_LIB(pcap, pcap_open_live,, LIBPCAP="no") if test "$LIBPCAP" = "no"; then echo echo " ERROR! libpcap library not found, go get it"