# Check whether --with-ldns was given.
if test "${with_ldns+set}" = set; then :
withval=$with_ldns; specialldnsdir="$withval"
- if test "$withval" != ""; then
- CPPFLAGS="-I$withval/include $CPPFLAGS"
- LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
+ if test "$withval" != "yes"; then
+ if test "$withval" != ""; then
+ CPPFLAGS="-I$withval/include $CPPFLAGS"
+ LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
if test "x$enable_rpath" = xyes; then
if echo "$withval/lib" | grep "^/" >/dev/null; then
fi
fi
- fi
- ldnsdir="$withval"
+ fi
+ ldnsdir="$withval"
+ fi
fi
-a $ac_cv_func_ldns_key_EVP_load_gost_id = yes; then
:
else
- use_ldns_builtin="yes"
+ as_fn_error "No ldns library found (or not recent); install or update ldns library, use --with-ldns=path or --with-ldns-builtin" "$LINENO" 5
fi
fi
AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATH],
[specify prefix of path of ldns library to use]),
[ specialldnsdir="$withval"
- if test "$withval" != ""; then
- CPPFLAGS="-I$withval/include $CPPFLAGS"
- LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
- ACX_RUNTIME_PATH_ADD([$withval/lib])
+ if test "$withval" != "yes"; then
+ if test "$withval" != ""; then
+ CPPFLAGS="-I$withval/include $CPPFLAGS"
+ LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
+ ACX_RUNTIME_PATH_ADD([$withval/lib])
+ fi
+ ldnsdir="$withval"
+ AC_SUBST(ldnsdir)
fi
- ldnsdir="$withval"
- AC_SUBST(ldnsdir)
])
AC_ARG_WITH(ldns-builtin, AC_HELP_STRING([--with-ldns-builtin],
dnl ldns was found
:
else
- use_ldns_builtin="yes"
+ AC_MSG_ERROR([No ldns library found (or not recent); install or update ldns library, use --with-ldns=path or --with-ldns-builtin])
fi
fi