diff options
author | runge <runge> | 2006-03-28 05:43:04 +0000 |
---|---|---|
committer | runge <runge> | 2006-03-28 05:43:04 +0000 |
commit | 5920dc18d75a53690ed8690867f501c51595daf1 (patch) | |
tree | 4f2eb03ac80b27ba03dedaa1a4b32640703b3d02 /configure.ac | |
parent | 10c61b53c275f125432fa20d8348aafcfed2bf93 (diff) | |
download | libtdevnc-5920dc18d75a53690ed8690867f501c51595daf1.tar.gz libtdevnc-5920dc18d75a53690ed8690867f501c51595daf1.zip |
SSL patch for Java viewer. https support for x11vnc.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac index 877b386..49d2b1b 100644 --- a/configure.ac +++ b/configure.ac @@ -184,30 +184,36 @@ if test "$X_CFLAGS" != "-DX_DISPLAY_MISSING"; then if test -z "$HAVE_LIBC_CRYPT"; then AC_CHECK_LIB(crypt, crypt, X_PRELIBS="$X_PRELIBS -lcrypt" - [AC_DEFINE(HAVE_LIBCRYPT)], , - $X_LIBS $X_PRELIBS -lcrypt $X_EXTRA_LIBS) + [AC_DEFINE(HAVE_LIBCRYPT)], ,) fi fi - AH_TEMPLATE(HAVE_LIBSSL, [openssl libssl library present]) - AC_ARG_WITH(ssl, - [ --without-ssl disable support for openssl libssl],,) - if test "x$with_ssl" != "xno"; then - AC_CHECK_LIB(ssl, SSL_library_init, - X_PRELIBS="$X_PRELIBS -lssl" - [AC_DEFINE(HAVE_LIBSSL) HAVE_LIBSSL="true"], , - $X_LIBS $X_PRELIBS -lssl $X_EXTRA_LIBS) - fi + + # some OS's need both -lssl and -lcrypto on link line: AH_TEMPLATE(HAVE_LIBCRYPTO, [openssl libcrypto library present]) AC_ARG_WITH(crypto, [ --without-crypto disable support for openssl libcrypto],,) - # some OS's need both -lssl and -lcrypto - if test "x$HAVE_LIBSSL" = "xtrue"; then - AC_CHECK_LIB(crypto, RAND_load_file, - X_PRELIBS="$X_PRELIBS -lcrypto" - [AC_DEFINE(HAVE_LIBSSL) HAVE_LIBSSL="true"], , - $X_LIBS $X_PRELIBS -lcrypto $X_EXTRA_LIBS) + + AH_TEMPLATE(HAVE_LIBSSL, [openssl libssl library present]) + AC_ARG_WITH(ssl, + [ --without-ssl disable support for openssl libssl],,) + + if test "x$with_crypto" != "xno" -a "x$with_ssl" != "xno"; then + AC_CHECK_LIB(crypto, RAND_file_name, + [AC_DEFINE(HAVE_LIBCRYPTO) HAVE_LIBCRYPTO="true"], ,) fi + if test "x$with_ssl" != "xno"; then + if test "x$HAVE_LIBCRYPTO" = "xtrue"; then + AC_CHECK_LIB(ssl, SSL_library_init, + X_PRELIBS="$X_PRELIBS -lssl -lcrypto" + [AC_DEFINE(HAVE_LIBSSL) HAVE_LIBSSL="true"], , + -lcrypto) + else + AC_CHECK_LIB(ssl, SSL_library_init, + X_PRELIBS="$X_PRELIBS -lssl" + [AC_DEFINE(HAVE_LIBSSL) HAVE_LIBSSL="true"], ,) + fi + fi X_LIBS="$X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS" fi @@ -452,6 +458,7 @@ AC_CONFIG_FILES([Makefile examples/Makefile vncterm/Makefile classes/Makefile + classes/ssl/Makefile libvncclient/Makefile client_examples/Makefile test/Makefile |