[with_system_polarssl=no],
)
+ POLARSSL_SUBDIR=polarssl
+ POLARSSL_CFLAGS=-I\$\(top_srcdir\)/pdns/ext/$POLARSSL_SUBDIR/include/
+ POLARSSL_LIBS="-L\$(top_builddir)/pdns/ext/$POLARSSL_SUBDIR/library/ -lpolarssl"
+
AS_IF([test "x$with_system_polarssl" = "xyes"],[
- AC_CHECK_LIB([polarssl], [sha1_hmac],[
+ OLD_LIBS=$LIBS
+ LIBS=""
+ AC_SEARCH_LIBS([sha1_hmac], [mbedtls polarssl],[
+ POLARSSL_LIBS=$LIBS
AC_MSG_CHECKING([for PolarSSL version >= 1.1])
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM(
AC_MSG_RESULT([$have_system_polarssl])
],
[have_system_polarssl=no]
- )],
+ )
+ LIBS=$OLD_LIBS
+ ],
[have_system_polarssl=no]
)
- POLARSSL_SUBDIR=polarssl
- POLARSSL_CFLAGS=-I\$\(top_srcdir\)/pdns/ext/$POLARSSL_SUBDIR/include/
- POLARSSL_LIBS="-L\$(top_builddir)/pdns/ext/$POLARSSL_SUBDIR/library/ -lpolarssl"
-
AS_IF([test "x$have_system_polarssl" = "xyes"],[
POLARSSL_CFLAGS=
- POLARSSL_LIBS=-lpolarssl
POLARSSL_SUBDIR=
],[
AS_IF([test "x$with_system_polarssl" = "xyes"],[