Index: trunk/psLib/configure.ac
===================================================================
--- trunk/psLib/configure.ac	(revision 12498)
+++ trunk/psLib/configure.ac	(revision 12502)
@@ -84,4 +84,7 @@
 dnl check the systems endianness
 AC_C_BIGENDIAN
+
+dnl set NO_STRCASESTR if we can't find strcasestr
+AC_CHECK_FUNC([strcasestr], [], [AC_SUBST(NO_STRCASESTR, [1])])
 
 AC_PREFIX_DEFAULT([/usr/local])
@@ -409,51 +412,4 @@
 LDFLAGS=${TMP_LDFLAGS}
 CPPFLAGS=${TMP_CPPFLAGS}
-
-dnl ------- openssl ---------
-
-dnl save LIBS/CFLAGS/LDFLAGS
-TMP_LIBS=${LIBS}
-TMP_CFLAGS=${CFLAGS}
-TMP_LDFLAGS=${LDFLAGS}
-TMP_CPPFLAGS=${CPPFLAGS}
-
-AC_ARG_WITH(ssl,
-[AS_HELP_STRING(--with-ssl=DIR,Specify location of SSL.)],
-[SSL_CFLAGS="-I$withval/include"
- SSL_LDFLAGS="-L$withval/lib"])
-AC_ARG_WITH(ssl-include,
-[AS_HELP_STRING(--with-ssl-include=DIR,Specify SSL include directory.)],
-[SSL_CFLAGS="-I$withval"])
-AC_ARG_WITH(ssl-lib,
-[AS_HELP_STRING(--with-ssl-lib=DIR,Specify SSL library directory.)],
-[SSL_LDFLAGS="-L$withval"])
-
-CFLAGS="${CFLAGS} ${SSL_CFLAGS}"
-CPPFLAGS=${CFLAGS}
-LDFLAGS="${LDFLAGS} ${SSL_LIBS}"
-
-AC_CHECK_HEADERS([openssl/md5.h],[],
-	[AC_CHECK_HEADERS([sys/md5.h],[],
-		[AC_MSG_ERROR([SSL headers not found.  Obtain it at http://www.openssl.org/ or use --with-ssl to specify location.])]
-	)]
-)
-AC_CHECK_LIB(crypto,MD5,[],
-  [AC_MSG_ERROR([SSL library not found.  Obtain it at http://www.openssl.org/ or use --with-ssl to specify location.])]
-)
-
-PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${SSL_CFLAGS}"
-PSLIB_LIBS="${PSLIB_LIBS=} ${SSL_LDFLAGS=} ${LIBS}"
-
-AC_SUBST([SSL_CFLAGS])
-AC_SUBST([SSL_LDFLAGS])
-
-dnl restore the CFLAGS/LDFLAGS
-LIBS=${TMP_LIBS}
-CFLAGS=${TMP_CFLAGS}
-LDFLAGS=${TMP_LDFLAGS}
-CPPFLAGS=${TMP_CPPFLAGS}
-
-dnl set NO_STRCASESTR if we can't find strcasestr
-AC_CHECK_FUNC([strcasestr], [], [AC_SUBST(NO_STRCASESTR, [1])])
 
 dnl ------- enable -Werror after all of the probes have run ---------
