-if test $libgmp = none; then
- AC_MSG_ERROR(libgmp is not installed. Please grab it from your
- nearest GNU mirror and install it (see README))
+
+dnl From the autoconf manual
+AC_CHECK_FUNCS(syslog)
+if test $ac_cv_func_syslog = no; then
+ # syslog is not in the default libraries. See if it's in some other.
+ for lib in bsd socket inet; do
+ AC_CHECK_LIB($lib, syslog, [AC_DEFINE(HAVE_SYSLOG)
+ LIBS="$LIBS $lib"; break])
+ done
+fi
+
+AC_CHECK_LIB(dl, dlopen, [
+ LIBS="$LIBS -ldl"
+])
+
+
+dnl Crypto stuff
+
+libcrypto=none
+AC_CHECK_LIB(crypto, SHA1_version, [
+ libcrypto=yes
+])
+
+if test $libcrypto = none; then
+ AC_MSG_ERROR(It seems like OpenSSL is not installed on this system.)