]> sjero.net Git - wget/blobdiff - configure.in
[svn] Applied Christian Fraenkel's patch "custom certificate patch for wget-1.7+dev;
[wget] / configure.in
index c70eb4e6190de95dc2e23f2cb01cab03d3cc97e3..a715746e83ed73711467507cf3c4739fc5158721 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)
@@ -136,6 +139,10 @@ AC_TYPE_PID_T
 dnl #### This generates a warning.  What do I do to shut it up?
 AC_C_BIGENDIAN
 
+# Check size of long.
+AC_CHECK_SIZEOF(long)
+AC_CHECK_SIZEOF(long long)
+
 dnl
 dnl Checks for headers
 dnl
@@ -156,9 +163,10 @@ 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 vsnprintf select signal symlink access isatty)
+AC_CHECK_FUNCS(strerror snprintf vsnprintf select signal symlink access isatty)
 AC_CHECK_FUNCS(uname gethostname)
 
 AC_CHECK_FUNCS(gethostbyname, [], [
@@ -178,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 no it pt_BR"
+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
@@ -204,6 +227,7 @@ esac
 dnl
 dnl Create output
 dnl
-AC_OUTPUT([Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in],
+AC_OUTPUT([Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in
+           windows/Makefile],
 [WGET_PROCESS_PO
 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])