CHECK_YYUNPUT
+# add option to disable the evil rpath
+dnl Check whether to use rpath or not
+AC_ARG_ENABLE(rpath,
+ [ --disable-rpath disable hardcoded rpath (default=enabled)],
+ enable_rpath=$enableval, enable_rpath=yes)
+
# Checks for libraries.
AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl=pathname],
[enable SSL (will check /usr/local/ssl
AC_MSG_RESULT(found in $ssldir)
HAVE_SSL=yes
LDFLAGS="$LDFLAGS -L$ssldir/lib";
- RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
+ if test "x$enable_rpath" = xyes; then
+ RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
+ fi
AC_CHECK_LIB(crypto, HMAC_CTX_init,, [
AC_MSG_ERROR([OpenSSL found in $ssldir, but version 0.9.7 or higher is required])
])
else
AC_MSG_RESULT(found in $thedir)
LDFLAGS="$LDFLAGS -L$thedir/lib";
- RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
+ if test "x$enable_rpath" = xyes; then
+ RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
+ fi
fi
AC_SUBST(RUNTIME_PATH)
AC_SEARCH_LIBS(event_set, [event])
+8 October 2007: Wouter
+ - --disable-rpath option in configure for 64bit systems with
+ several dynamic lib dirs.
+
7 October 2007: Wouter
- fixup tests for no AD bit in non-DO queries.
- test that makes sure AD bit is not set on non-DO query.