~ryanaxp/posixrdp/devel

1 by Ryan Rafferty
initial import from the CVS repository on sourceforge.net
1
# Process this file with autoconf to produce a configure script
2
3
AC_PREREQ(2.59)
4
AC_INIT([xrdp], [0.5.0], [xrdp-devel@lists.sourceforge.net])
5
AM_CONFIG_HEADER(config_ac.h:config_ac-h.in)
6
AM_INIT_AUTOMAKE([1.6 foreign])
7
AC_PROG_CC
8
AC_C_CONST
9
AC_PROG_LIBTOOL
10
AC_ARG_ENABLE(nopam, AS_HELP_STRING([--enable-nopam],
11
              [Build no PAM support (default: no)]),
12
              [nopam=true], [nopam=false])
13
AM_CONDITIONAL(SESMAN_NOPAM, [test x$nopam = xtrue])
14
AC_ARG_ENABLE(kerberos, AS_HELP_STRING([--enable-kerberos],
15
              [Build kerberos support (default: no)]),
16
              [kerberos=true], [kerberos=false])
17
AM_CONDITIONAL(SESMAN_KERBEROS, [test x$kerberos = xtrue])
18
AC_ARG_ENABLE(pamuserpass, AS_HELP_STRING([--enable-pamuserpass],
19
              [Build pam userpass support (default: no)]),
20
              [pamuserpass=true], [pamuserpass=false])
21
AM_CONDITIONAL(SESMAN_PAMUSERPASS, [test x$pamuserpass = xtrue])
22
596 by Ryan Rafferty
progress
23
AC_ARG_ENABLE(pulse, AS_HELP_STRING([--enable-pulse],
24
              [Build with PulseAudio support (default: yes)]),
25
              [pulse=true], [pulse=false])
26
	      if test "${enable_pulse}" != "no"
27
		then
28
		PKG_CHECK_MODULES(PULSE, libpulse >= 0.9.11,
29
		  [
30
#			XRDP_ADD_PLUGIN([pulse])
31
#			XRDP_ADD_CFLAGS([pulse],[${PULSE_CFLAGS}])
32
#			XRDP_ADD_LDFLAGS([pulse],[${PULSE_LIBS}])
33
		  ]
34
			)
35
		fi
36
AM_CONDITIONAL(SESMAN_PULSE, [test x$pulse = xtrue])
37
1234 by Ryan Rafferty
modified to compile on OpenSolaris 2009-06
38
AC_ARG_ENABLE(nl, AS_HELP_STRING([--enable-nl],
39
              [Build with netlink support (default: yes)]),
40
              [nl=true], [nl=false])
41
	      if test "${enable_nl}" != "no"
42
		then
1236 by Ryan Rafferty
removed "#include <sys/types32.h>" from common/thread_calls.h
43
		PKG_CHECK_MODULES(NETLINK, libnl-1 >= 0.9.11,
1234 by Ryan Rafferty
modified to compile on OpenSolaris 2009-06
44
		  [
45
#			XRDP_ADD_PLUGIN([nl])
46
#			XRDP_ADD_CFLAGS([nl],[${NETLINK_CFLAGS}])
47
#			XRDP_ADD_LDFLAGS([nl],[${NETLINK_LIBS}])
48
		  ]
49
			)
50
		fi
51
AM_CONDITIONAL(SESMAN_NETLINK, [test x$nl = xtrue])
52
1 by Ryan Rafferty
initial import from the CVS repository on sourceforge.net
53
# checking for openssl
54
AC_CHECK_HEADER([openssl/rc4.h], [],
55
  [AC_MSG_ERROR([please install libssl-dev or openssl-devel])],
56
  [#include <stdlib.h>])
57
58
# checking if pam should be autodetected.
59
if test -z "$enable_nopam"
60
then
61
  if test -z "$enable_kerberos"
62
  then
63
    AC_CHECK_HEADER([security/pam_appl.h], [],
64
      [AC_MSG_ERROR([please install libpam0g-dev or pam-devel])])
65
  fi
66
fi
67
68
# checking for Xlib, Xfixes
69
AC_CHECK_HEADER([X11/Xlib.h], [],
70
  [AC_MSG_ERROR([please install libx11-dev])])
71
AC_CHECK_HEADER([X11/extensions/Xfixes.h], [],
72
  [AC_MSG_ERROR([please install libx11-dev and libxfixes-dev])],
73
  [#include <X11/Xlib.h>])
74
75
libdir="${libdir}/xrdp";
76
if test "x${prefix}" = "xNONE" ; then
77
sysconfdir="/etc";
78
localstatedir="/var";
79
fi
80
AC_CONFIG_FILES([Makefile
81
                 common/Makefile
82
                 vnc/Makefile
83
                 rdp/Makefile
84
                 libxrdp/Makefile
85
                 xup/Makefile
86
                 mc/Makefile
87
                 xrdp/Makefile
88
                 sesman/Makefile
89
                 sesman/libscp/Makefile
90
                 sesman/tools/Makefile
91
                 sesman/sessvc/Makefile
92
                 sesman/chansrv/Makefile
1489 by Ryan Rafferty
testing
93
                 sesman/dynamic/Makefile
1 by Ryan Rafferty
initial import from the CVS repository on sourceforge.net
94
                 keygen/Makefile
95
                 docs/Makefile
96
                 docs/man/Makefile
97
                 instfiles/Makefile
98
                 instfiles/pam.d/Makefile
99
                 genkeymap/Makefile
100
])
101
#                 fontdump/Makefile
102
#                 xrdp/cursors/Makefile
103
#                 Xserver/hw/rdp/Makefile
104
AC_OUTPUT
105
106
# example of how to check for a struct in a header
107
#AC_CHECK_MEMBER([struct in6_addr.s6_addr],
108
#                [],
92.1.1 by Ryan Rafferty
reverted to 86.1.2 (which is the most recent working version; subsequent versions appear not to mount drives)
109
#                [AC_DEFINE(NO_ARPA_INET_H_IP6, 1, [for IPv6])],
1 by Ryan Rafferty
initial import from the CVS repository on sourceforge.net
110
#                [#include <arpa/inet.h>])