2008-08-03 11:30:03 +04:00
|
|
|
# Process this file with autoconf to produce a configure script
|
|
|
|
|
|
|
|
AC_PREREQ(2.59)
|
|
|
|
AC_INIT([xrdp], [0.5.0], [xrdp-devel@lists.sourceforge.net])
|
2008-11-03 00:27:42 +03:00
|
|
|
AM_CONFIG_HEADER(config_ac.h:config_ac-h.in)
|
2008-08-03 11:30:03 +04:00
|
|
|
AM_INIT_AUTOMAKE([1.6 foreign])
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_C_CONST
|
|
|
|
AC_PROG_LIBTOOL
|
2008-08-09 12:35:05 +04:00
|
|
|
AC_ARG_ENABLE(nopam, AS_HELP_STRING([--enable-nopam],
|
|
|
|
[Build no PAM support (default: no)]),
|
|
|
|
[nopam=true], [nopam=false])
|
|
|
|
AM_CONDITIONAL(SESMAN_NOPAM, [test x$nopam = xtrue])
|
|
|
|
AC_ARG_ENABLE(kerberos, AS_HELP_STRING([--enable-kerberos],
|
|
|
|
[Build kerberos support (default: no)]),
|
|
|
|
[kerberos=true], [kerberos=false])
|
|
|
|
AM_CONDITIONAL(SESMAN_KERBEROS, [test x$kerberos = xtrue])
|
|
|
|
AC_ARG_ENABLE(pamuserpass, AS_HELP_STRING([--enable-pamuserpass],
|
|
|
|
[Build pam userpass support (default: no)]),
|
|
|
|
[pamuserpass=true], [pamuserpass=false])
|
|
|
|
AM_CONDITIONAL(SESMAN_PAMUSERPASS, [test x$pamuserpass = xtrue])
|
2010-03-18 01:06:50 +03:00
|
|
|
AC_ARG_ENABLE(xrdpdebug, AS_HELP_STRING([--enable-xrdpdebug],
|
|
|
|
[Build debug (default: no)]),
|
|
|
|
[xrdpdebug=true], [xrdpdebug=false])
|
|
|
|
AM_CONDITIONAL(XRDP_DEBUG, [test x$xrdpdebug = xtrue])
|
2009-10-09 22:20:56 +04:00
|
|
|
|
|
|
|
# checking for openssl
|
2009-10-15 23:22:57 +04:00
|
|
|
AC_CHECK_HEADER([openssl/rc4.h], [],
|
|
|
|
[AC_MSG_ERROR([please install libssl-dev or openssl-devel])],
|
|
|
|
[#include <stdlib.h>])
|
2009-10-09 22:20:56 +04:00
|
|
|
|
|
|
|
# checking if pam should be autodetected.
|
|
|
|
if test -z "$enable_nopam"
|
|
|
|
then
|
|
|
|
if test -z "$enable_kerberos"
|
|
|
|
then
|
2009-10-15 23:22:57 +04:00
|
|
|
AC_CHECK_HEADER([security/pam_appl.h], [],
|
|
|
|
[AC_MSG_ERROR([please install libpam0g-dev or pam-devel])])
|
2009-10-09 22:20:56 +04:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2009-10-11 09:09:42 +04:00
|
|
|
# checking for Xlib, Xfixes
|
2009-10-11 09:33:30 +04:00
|
|
|
AC_CHECK_HEADER([X11/Xlib.h], [],
|
|
|
|
[AC_MSG_ERROR([please install libx11-dev])])
|
|
|
|
AC_CHECK_HEADER([X11/extensions/Xfixes.h], [],
|
2009-10-11 09:23:30 +04:00
|
|
|
[AC_MSG_ERROR([please install libx11-dev and libxfixes-dev])],
|
2009-10-11 09:33:30 +04:00
|
|
|
[#include <X11/Xlib.h>])
|
2009-10-09 22:20:56 +04:00
|
|
|
|
2009-07-23 08:22:43 +04:00
|
|
|
libdir="${libdir}/xrdp";
|
2008-08-17 11:13:41 +04:00
|
|
|
if test "x${prefix}" = "xNONE" ; then
|
2009-05-19 08:23:49 +04:00
|
|
|
sysconfdir="/etc";
|
|
|
|
localstatedir="/var";
|
2008-08-12 09:19:59 +04:00
|
|
|
fi
|
2008-08-03 11:30:03 +04:00
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
common/Makefile
|
|
|
|
vnc/Makefile
|
|
|
|
rdp/Makefile
|
|
|
|
libxrdp/Makefile
|
|
|
|
xup/Makefile
|
|
|
|
mc/Makefile
|
|
|
|
xrdp/Makefile
|
|
|
|
sesman/Makefile
|
|
|
|
sesman/libscp/Makefile
|
2008-08-10 22:01:51 +04:00
|
|
|
sesman/tools/Makefile
|
2008-11-25 07:14:37 +03:00
|
|
|
sesman/sessvc/Makefile
|
2009-04-19 21:16:46 +04:00
|
|
|
sesman/chansrv/Makefile
|
2008-08-17 07:13:40 +04:00
|
|
|
keygen/Makefile
|
|
|
|
docs/Makefile
|
|
|
|
docs/man/Makefile
|
2008-08-17 11:13:41 +04:00
|
|
|
instfiles/Makefile
|
|
|
|
instfiles/pam.d/Makefile
|
2009-08-12 06:49:53 +04:00
|
|
|
genkeymap/Makefile
|
2008-08-03 11:30:03 +04:00
|
|
|
])
|
|
|
|
# fontdump/Makefile
|
|
|
|
# xrdp/cursors/Makefile
|
|
|
|
# Xserver/hw/rdp/Makefile
|
|
|
|
AC_OUTPUT
|
2008-08-09 12:35:05 +04:00
|
|
|
|
|
|
|
# example of how to check for a struct in a header
|
|
|
|
#AC_CHECK_MEMBER([struct in6_addr.s6_addr],
|
|
|
|
# [],
|
|
|
|
# [AC_DEFINE(NO_ARPA_INET_H_IP6, 1, [for IPv6])],
|
|
|
|
# [#include <arpa/inet.h>])
|