diff options
author | runge <runge> | 2006-03-05 00:35:33 +0000 |
---|---|---|
committer | runge <runge> | 2006-03-05 00:35:33 +0000 |
commit | a9a9c812f7feb5bfb1d017575762c6a6390227b9 (patch) | |
tree | 1f1e013d1c905b0e705ec245aa9fec1df6cb1c30 /configure.ac | |
parent | b03a920cb996bf61af2d9351d2fe497ea3c0c99e (diff) | |
download | libtdevnc-a9a9c812f7feb5bfb1d017575762c6a6390227b9.tar.gz libtdevnc-a9a9c812f7feb5bfb1d017575762c6a6390227b9.zip |
x11vnc: -unixpw on *bsd, hpux and tru64. -unixpw_nis mode. stunnel and gui tweaks.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a1918df..4c29696 100644 --- a/configure.ac +++ b/configure.ac @@ -175,6 +175,21 @@ if test "$X_CFLAGS" != "-DX_DISPLAY_MISSING"; then esac fi + # only x11vnc uses crypt() + AH_TEMPLATE(HAVE_LIBCRYPT, [libcrypt library present]) + AC_ARG_WITH(crypt, + [ --without-crypt disable support for libcrypt],,) + if test "x$with_crypt" != "xno"; then + AC_CHECK_FUNCS([crypt], HAVE_LIBC_CRYPT="true") + 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) + fi + fi + + X_LIBS="$X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS" fi fi @@ -345,7 +360,7 @@ AC_SUBST(WSOCKLIB) # Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h syslog.h unistd.h pwd.h sys/wait.h utmpx.h termios.h sys/ioctl.h]) +AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h syslog.h unistd.h pwd.h sys/wait.h utmpx.h termios.h sys/ioctl.h sys/stropts.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST |