X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=012b716fe826a3e5e5d63709ac3181c5d1743080;hp=2e7e6387183291968815b3bc20b89ac1ed7d32be;hb=61041fcbfedb13bacd16cd11a9bd0fb5446b7abb;hpb=6b497d719313abe2e8adcd431778869df206e5be diff --git a/configure.ac b/configure.ac index 2e7e638..012b716 100644 --- a/configure.ac +++ b/configure.ac @@ -23,6 +23,7 @@ AC_CONFIG_HEADERS([config.h]) AC_CONFIG_SRCDIR([src/tlsproxy.c]) AM_INIT_AUTOMAKE([foreign -Wall -Werror]) +LT_INIT([disable-static]) AC_PROG_CC @@ -43,6 +44,8 @@ if test "x$GCC" = xyes; then LDFLAGS="-fPIE -pie -Wl,-z,relro -Wl,-z,now $LDFLAGS" fi +AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([dlsym() is required])]) + AC_CHECK_LIB([gnutls], [gnutls_certificate_verify_peers2], [], [AC_MSG_ERROR([GnuTLS is required])]) dnl Check for additional GnuTLS functions. @@ -61,5 +64,5 @@ AC_ARG_ENABLE([ipv6], AC_DEFINE([USE_IPV4_ONLY], 1, [Define to not use IPv6.]) fi]) -AC_CONFIG_FILES([Makefile man/Makefile src/Makefile tests/Makefile]) +AC_CONFIG_FILES([Makefile man/Makefile src/Makefile lib/Makefile tests/Makefile]) AC_OUTPUT