]> sjero.net Git - wget/blobdiff - configure.in
[svn] Committed C. Frankel's SSL patch.
[wget] / configure.in
index 474e5d576bc94122c946d205488d6952acf07068..2b76a49edd191d2a38cb86cdf4c4cf20ac464cff 100644 (file)
@@ -45,6 +45,9 @@ AC_ARG_WITH(socks,
 [  --with-socks            use the socks library],
 [AC_DEFINE(HAVE_SOCKS)])
 
+AC_ARG_WITH(ssl,
+[  --with-ssl              use the openssl library])
+
 AC_ARG_ENABLE(opie,
 [  --disable-opie          disable support for opie or s/key FTP login],
 USE_OPIE=$enableval, USE_OPIE=yes)
@@ -160,6 +163,7 @@ dnl
 dnl Checks for library functions.
 dnl
 AC_FUNC_ALLOCA
+AC_FUNC_MMAP
 AC_CHECK_FUNCS(strdup strstr strcasecmp strncasecmp)
 AC_CHECK_FUNCS(gettimeofday mktime strptime)
 AC_CHECK_FUNCS(strerror snprintf vsnprintf select signal symlink access isatty)
@@ -182,12 +186,27 @@ then
   AC_CHECK_LIB(socks, Rconnect)
 fi
 
+dnl check for ssl libraries
+if test "x${with_ssl}" = xyes
+then
+  ssl_lose=no
+  AC_CHECK_LIB(ssl,SSL_new,,ssl_lose=yes,-lcrypto)
+  AC_CHECK_LIB(crypto,main,,ssl_lose=yes)
+  if test "$ssl_lose" = no
+  then
+    AC_DEFINE(HAVE_SSL)
+    SSL_OBJ='gen_sslfunc$o'
+    AC_SUBST(SSL_OBJ)
+  fi
+fi
+
+dnl
 dnl Set of available languages.
 dnl
-dnl #### This kind of sucks.  Shouldn't the configure process
-dnl determine this automagically by scanning `.po' files in `po/'
-dnl subdirectory?
-ALL_LINGUAS="cs de hr it no pl pt_BR ru"
+ALL_LINGUAS=`(cd ${srcdir}/po && ls *.po | sed -e 's/\.po$//')`
+
+dnl Original from autoconf, I think.
+dnl ALL_LINGUAS="cs de hr it no pl pt_BR ru"
 
 dnl internationalization macros
 WGET_WITH_NLS