From: Jelte Jansen Date: Mon, 12 Dec 2005 14:27:30 +0000 (+0000) Subject: added --with-ssl option to drill configuration (needed on for instance solaris on... X-Git-Tag: release-1.1.0~526 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=016844abe60f0a08038fda11e3f188229a892691;p=thirdparty%2Fldns.git added --with-ssl option to drill configuration (needed on for instance solaris on sparc) --- diff --git a/drill/configure.ac b/drill/configure.ac index 46039cac..ea4d7685 100644 --- a/drill/configure.ac +++ b/drill/configure.ac @@ -19,6 +19,42 @@ AC_CHECK_HEADERS(sys/param.h sys/mount.h,,, [AC_INCLUDES_DEFAULT] ] ]) +AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl=pathname], + [enable SSL (will check /usr/local/ssl + /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr)]),[ + ],[ + withval="yes" + ]) + if test x_$withval != x_no; then + AC_MSG_CHECKING(for SSL) + if test x_$withval = x_ -o x_$withval = x_yes; then + withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" + fi + for dir in $withval; do + ssldir="$dir" + if test -f "$dir/include/openssl/ssl.h"; then + found_ssl="yes"; + AC_DEFINE_UNQUOTED([HAVE_SSL], [], [Define if you have the SSL libraries installed.]) + CPPFLAGS="$CPPFLAGS -I$ssldir/include"; + break; + fi + done + if test x_$found_ssl != x_yes; then + AC_MSG_ERROR(Cannot find the SSL libraries in $withval) + else + AC_MSG_RESULT(found in $ssldir) + HAVE_SSL=yes + LDFLAGS="$LDFLAGS -L$ssldir/lib"; +# CPPFLAGS="$CPPFLAGS -DHAVE_SSL -I$ssldir/include"; + AC_CHECK_LIB(crypto, HMAC_CTX_init,, [ + AC_MSG_ERROR([OpenSSL found in $ssldir, but version 0.9.7 or higher is required]) + ]) + fi + AC_SUBST(HAVE_SSL) + fi + + + # check for ldns AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATH specify prefix of path of ldns library to use])