2008-08-03 11:30:03 +04:00
|
|
|
|
# Process this file with autoconf to produce a configure script
|
|
|
|
|
|
2022-11-03 17:52:48 +03:00
|
|
|
|
AC_PREREQ([2.69])
|
2024-02-08 16:06:24 +03:00
|
|
|
|
AC_INIT([xrdp], [0.10.80], [xrdp-devel@googlegroups.com])
|
2024-02-21 13:09:34 +03:00
|
|
|
|
AC_DEFINE([VERSION_YEAR], 2024, [Copyright year])
|
2013-06-12 12:08:42 +04:00
|
|
|
|
AC_CONFIG_HEADERS(config_ac.h:config_ac-h.in)
|
2016-02-12 10:40:27 +03:00
|
|
|
|
AM_INIT_AUTOMAKE([1.7.2 foreign])
|
2016-02-10 11:16:06 +03:00
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2023-06-29 17:05:25 +03:00
|
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
2008-08-03 11:30:03 +04:00
|
|
|
|
AC_PROG_CC
|
2022-05-19 06:10:05 +03:00
|
|
|
|
AC_PROG_CXX
|
2008-08-03 11:30:03 +04:00
|
|
|
|
AC_C_CONST
|
2022-11-03 17:52:48 +03:00
|
|
|
|
LT_INIT
|
2017-01-01 11:54:19 +03:00
|
|
|
|
|
2014-10-28 01:44:17 +03:00
|
|
|
|
PKG_PROG_PKG_CONFIG
|
2017-01-01 11:54:19 +03:00
|
|
|
|
if test "x$PKG_CONFIG" = "x"; then
|
|
|
|
|
AC_MSG_ERROR([please install pkg-config])
|
|
|
|
|
fi
|
2015-03-12 14:22:35 +03:00
|
|
|
|
|
2016-12-17 00:49:33 +03:00
|
|
|
|
AC_CONFIG_SUBDIRS([libpainter librfxcodec])
|
2016-12-12 10:09:15 +03:00
|
|
|
|
|
2016-02-12 09:15:22 +03:00
|
|
|
|
# Use silent rules by default if supported by Automake
|
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
|
2015-03-12 14:22:35 +03:00
|
|
|
|
case $host_os in
|
|
|
|
|
*linux*)
|
|
|
|
|
linux=yes
|
|
|
|
|
;;
|
2017-01-27 04:02:41 +03:00
|
|
|
|
*kfreebsd*)
|
|
|
|
|
linux=yes # only used in instfiles/ so that’s ok for us for now
|
|
|
|
|
;;
|
2015-03-12 14:22:35 +03:00
|
|
|
|
*freebsd*)
|
|
|
|
|
freebsd=yes
|
|
|
|
|
;;
|
|
|
|
|
*netbsd*)
|
|
|
|
|
netbsd=yes
|
|
|
|
|
;;
|
|
|
|
|
*openbsd*)
|
|
|
|
|
openbsd=yes
|
|
|
|
|
;;
|
2018-01-30 12:00:24 +03:00
|
|
|
|
*darwin*)
|
|
|
|
|
macos=yes
|
|
|
|
|
;;
|
2015-03-12 14:22:35 +03:00
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
AM_CONDITIONAL(LINUX, [test "x$linux" = xyes])
|
|
|
|
|
AM_CONDITIONAL(FREEBSD, [test "x$freebsd" = xyes])
|
|
|
|
|
AM_CONDITIONAL(OPENBSD, [test "x$openbsd" = xyes])
|
|
|
|
|
AM_CONDITIONAL(NETBSD, [test "x$netbsd" = xyes])
|
2018-01-30 12:00:24 +03:00
|
|
|
|
AM_CONDITIONAL(MACOS, [test "x$macos" = xyes])
|
2015-03-12 14:22:35 +03:00
|
|
|
|
|
2022-02-14 12:11:51 +03:00
|
|
|
|
AC_CHECK_SIZEOF([int])
|
|
|
|
|
AC_CHECK_SIZEOF([long])
|
|
|
|
|
AC_CHECK_SIZEOF([void *])
|
|
|
|
|
|
2022-05-17 14:15:53 +03:00
|
|
|
|
# runstatedir not available for autoconf <= 2.69
|
|
|
|
|
if test "x$runstatedir" = "x" ; then
|
|
|
|
|
runstatedir='${localstatedir}/run'
|
|
|
|
|
fi
|
|
|
|
|
|
2017-03-15 07:45:50 +03:00
|
|
|
|
AC_ARG_WITH([socketdir],
|
|
|
|
|
[AS_HELP_STRING([--with-socketdir=DIR],
|
2022-03-19 14:29:28 +03:00
|
|
|
|
[Use directory for UNIX sockets for XRDP sessions (default: RUNSTATEDIR/xrdp)])],
|
|
|
|
|
[], [with_socketdir="$runstatedir/xrdp"])
|
2017-03-15 07:45:50 +03:00
|
|
|
|
AC_SUBST([socketdir], [$with_socketdir])
|
|
|
|
|
|
2012-05-26 21:15:45 +04:00
|
|
|
|
AC_ARG_WITH([systemdsystemunitdir],
|
2018-05-24 08:09:45 +03:00
|
|
|
|
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files, no to disable]),
|
2017-01-18 05:53:27 +03:00
|
|
|
|
[], [
|
|
|
|
|
if test "x$linux" = xyes; then
|
|
|
|
|
with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
|
|
|
|
|
fi
|
|
|
|
|
])
|
|
|
|
|
|
2012-05-26 21:15:45 +04:00
|
|
|
|
if test "x$with_systemdsystemunitdir" != xno; then
|
|
|
|
|
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
|
|
|
|
fi
|
|
|
|
|
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
|
|
|
|
|
|
2021-04-20 17:50:21 +03:00
|
|
|
|
AC_ARG_ENABLE(tests,
|
2022-11-03 17:52:48 +03:00
|
|
|
|
AS_HELP_STRING([--enable-tests],
|
2021-04-20 17:50:21 +03:00
|
|
|
|
[Ensure dependencies for the tests are installed]),
|
|
|
|
|
[ensure_tests_deps=yes], [])
|
2020-12-15 13:55:26 +03:00
|
|
|
|
AC_ARG_ENABLE(pam, AS_HELP_STRING([--enable-pam],
|
2014-10-28 01:32:56 +03:00
|
|
|
|
[Build PAM support (default: yes)]),
|
|
|
|
|
[], [enable_pam=yes])
|
|
|
|
|
AM_CONDITIONAL(SESMAN_NOPAM, [test x$enable_pam != xyes])
|
2017-09-22 02:13:05 +03:00
|
|
|
|
AC_ARG_ENABLE(vsock, AS_HELP_STRING([--enable-vsock],
|
|
|
|
|
[Build AF_VSOCK support (default: no)]),
|
|
|
|
|
[], [enable_vsock=no])
|
2015-03-10 07:36:52 +03:00
|
|
|
|
AC_ARG_ENABLE(ipv6, AS_HELP_STRING([--enable-ipv6],
|
|
|
|
|
[Build IPv6 support (default: no, experimental)]),
|
|
|
|
|
[], [enable_ipv6=no])
|
2015-07-01 07:19:38 +03:00
|
|
|
|
AC_ARG_ENABLE(ipv6only, AS_HELP_STRING([--enable-ipv6only],
|
|
|
|
|
[Build IPv6-only (default: no)]),
|
|
|
|
|
[], [enable_ipv6only=no])
|
2008-08-09 12:35:05 +04:00
|
|
|
|
AC_ARG_ENABLE(kerberos, AS_HELP_STRING([--enable-kerberos],
|
2020-12-15 13:55:26 +03:00
|
|
|
|
[Build kerberos support (prefer --enable-pam if available) (default: no)]),
|
2014-10-28 01:22:22 +03:00
|
|
|
|
[], [enable_kerberos=no])
|
2014-11-21 16:22:15 +03:00
|
|
|
|
AC_ARG_ENABLE(bsd, AS_HELP_STRING([--enable-bsd],
|
|
|
|
|
[Build BSD auth support (default: no)]),
|
|
|
|
|
[bsd=true], [bsd=false])
|
|
|
|
|
AM_CONDITIONAL(SESMAN_BSD, [test x$bsd = xtrue])
|
2014-10-28 01:22:22 +03:00
|
|
|
|
AM_CONDITIONAL(SESMAN_KERBEROS, [test x$enable_kerberos = xyes])
|
2008-08-09 12:35:05 +04:00
|
|
|
|
AC_ARG_ENABLE(pamuserpass, AS_HELP_STRING([--enable-pamuserpass],
|
2020-12-15 13:55:26 +03:00
|
|
|
|
[Build PAM userpass support (default: no)]),
|
2014-10-28 01:22:22 +03:00
|
|
|
|
[], [enable_pamuserpass=no])
|
|
|
|
|
AM_CONDITIONAL(SESMAN_PAMUSERPASS, [test x$enable_pamuserpass = xyes])
|
2016-12-31 07:00:46 +03:00
|
|
|
|
AC_ARG_ENABLE(pam-config, AS_HELP_STRING([--enable-pam-config=CONF],
|
2018-03-24 17:50:17 +03:00
|
|
|
|
[Select PAM config to install: arch, debian, redhat, suse, freebsd, macos, unix
|
2016-12-31 07:00:46 +03:00
|
|
|
|
(default: autodetect)]))
|
|
|
|
|
|
2021-05-19 13:19:43 +03:00
|
|
|
|
# Development options. devel_all is first as this provides a default for
|
|
|
|
|
# the others
|
|
|
|
|
AC_ARG_ENABLE(devel_all, AS_HELP_STRING([--enable-devel-all],
|
|
|
|
|
[Enable all development options (default: no)]),
|
|
|
|
|
[devel_all=$enableval], [devel_all=no])
|
|
|
|
|
AC_ARG_ENABLE(devel_debug, AS_HELP_STRING([--enable-devel-debug],
|
|
|
|
|
[Build exes with no optimisation and debugging symbols (default: no)]),
|
|
|
|
|
[devel_debug=$enableval], [devel_debug=$devel_all])
|
|
|
|
|
AM_CONDITIONAL(DEVEL_DEBUG, [test x$devel_debug = xyes ])
|
|
|
|
|
AC_ARG_ENABLE(devel_logging, AS_HELP_STRING([--enable-devel-logging],
|
|
|
|
|
[Enable development logging (default: no)]),
|
|
|
|
|
[devel_logging=$enableval], [devel_logging=$devel_all])
|
2021-05-19 13:34:41 +03:00
|
|
|
|
AC_ARG_ENABLE(devel_streamcheck, AS_HELP_STRING([--enable-devel-streamcheck],
|
|
|
|
|
[Add range-check/abort to stream primitives (default: no)]),
|
|
|
|
|
[devel_streamcheck=$enableval], [devel_streamcheck=$devel_all])
|
2021-05-19 13:19:43 +03:00
|
|
|
|
|
2013-05-03 13:07:02 +04:00
|
|
|
|
AC_ARG_ENABLE(neutrinordp, AS_HELP_STRING([--enable-neutrinordp],
|
|
|
|
|
[Build neutrinordp module (default: no)]),
|
2014-10-28 01:22:22 +03:00
|
|
|
|
[], [enable_neutrinordp=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_NEUTRINORDP, [test x$enable_neutrinordp = xyes])
|
2022-05-19 06:10:05 +03:00
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ulalaca, AS_HELP_STRING([--enable-ulalaca],
|
2022-05-27 19:40:21 +03:00
|
|
|
|
[Build ulalaca module (experimental) (default: no)]),
|
2022-05-19 06:10:05 +03:00
|
|
|
|
[], [enable_ulalaca=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_ULALACA, [test x$enable_ulalaca = xyes])
|
|
|
|
|
|
2012-04-08 09:41:46 +04:00
|
|
|
|
AC_ARG_ENABLE(jpeg, AS_HELP_STRING([--enable-jpeg],
|
|
|
|
|
[Build jpeg module (default: no)]),
|
2014-10-28 01:22:22 +03:00
|
|
|
|
[], [enable_jpeg=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_JPEG, [test x$enable_jpeg = xyes])
|
2013-09-16 22:14:48 +04:00
|
|
|
|
AC_ARG_ENABLE(tjpeg, AS_HELP_STRING([--enable-tjpeg],
|
2014-03-25 04:55:04 +04:00
|
|
|
|
[Build turbo jpeg module (default: no)]),
|
2014-10-28 01:22:22 +03:00
|
|
|
|
[], [enable_tjpeg=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_TJPEG, [test x$enable_tjpeg = xyes])
|
2012-11-03 10:10:36 +04:00
|
|
|
|
AC_ARG_ENABLE(fuse, AS_HELP_STRING([--enable-fuse],
|
|
|
|
|
[Build fuse(clipboard file / drive redir) (default: no)]),
|
2014-10-28 01:22:22 +03:00
|
|
|
|
[], [enable_fuse=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_FUSE, [test x$enable_fuse = xyes])
|
2012-11-11 05:53:08 +04:00
|
|
|
|
AC_ARG_ENABLE(xrdpvr, AS_HELP_STRING([--enable-xrdpvr],
|
|
|
|
|
[Build xrdpvr module (default: no)]),
|
2014-10-28 01:22:22 +03:00
|
|
|
|
[], [enable_xrdpvr=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_XRDPVR, [test x$enable_xrdpvr = xyes])
|
2017-07-28 08:02:04 +03:00
|
|
|
|
AC_ARG_ENABLE(fdkaac, AS_HELP_STRING([--enable-fdkaac],
|
|
|
|
|
[Build aac(audio codec) (default: no)]),
|
|
|
|
|
[], [enable_fdkaac=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_FDK_AAC, [test x$enable_fdkaac = xyes])
|
2015-01-10 10:31:28 +03:00
|
|
|
|
AC_ARG_ENABLE(opus, AS_HELP_STRING([--enable-opus],
|
|
|
|
|
[Build opus(audio codec) (default: no)]),
|
|
|
|
|
[], [enable_opus=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_OPUS, [test x$enable_opus = xyes])
|
2016-07-14 03:44:07 +03:00
|
|
|
|
AC_ARG_ENABLE(mp3lame, AS_HELP_STRING([--enable-mp3lame],
|
|
|
|
|
[Build lame mp3(audio codec) (default: no)]),
|
|
|
|
|
[], [enable_mp3lame=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_MP3LAME, [test x$enable_mp3lame = xyes])
|
2024-03-25 13:35:58 +03:00
|
|
|
|
AC_ARG_ENABLE(ibus, AS_HELP_STRING([--enable-ibus],
|
|
|
|
|
[Allow unicode input via IBus) (default: no)]),
|
|
|
|
|
[], [enable_ibus=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_IBUS, [test x$enable_ibus = xyes])
|
2016-08-09 06:02:10 +03:00
|
|
|
|
AC_ARG_ENABLE(pixman, AS_HELP_STRING([--enable-pixman],
|
|
|
|
|
[Use pixman library (default: no)]),
|
2016-08-12 08:18:26 +03:00
|
|
|
|
[], [enable_pixman=no])
|
2016-08-09 06:02:10 +03:00
|
|
|
|
AM_CONDITIONAL(XRDP_PIXMAN, [test x$enable_pixman = xyes])
|
2024-05-11 09:56:07 +03:00
|
|
|
|
AC_ARG_ENABLE(x264, AS_HELP_STRING([--enable-x264],
|
|
|
|
|
[Use x264 library (default: no)]),
|
|
|
|
|
[], [enable_x264=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_X264, [test x$enable_x264 = xyes])
|
2017-02-26 22:26:56 +03:00
|
|
|
|
AC_ARG_ENABLE(painter, AS_HELP_STRING([--disable-painter],
|
2017-05-16 11:27:30 +03:00
|
|
|
|
[Do not use included painter library (default: no)]),
|
2017-02-26 22:26:56 +03:00
|
|
|
|
[], [enable_painter=yes])
|
2016-12-16 08:17:50 +03:00
|
|
|
|
AM_CONDITIONAL(XRDP_PAINTER, [test x$enable_painter = xyes])
|
2017-02-26 22:26:56 +03:00
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(rfxcodec, AS_HELP_STRING([--disable-rfxcodec],
|
2017-05-16 11:27:30 +03:00
|
|
|
|
[Do not use included librfxcodec library (default: no)]),
|
2017-02-26 22:26:56 +03:00
|
|
|
|
[], [enable_rfxcodec=yes])
|
|
|
|
|
AM_CONDITIONAL(XRDP_RFXCODEC, [test x$enable_rfxcodec = xyes])
|
2009-10-09 22:20:56 +04:00
|
|
|
|
|
2019-10-23 08:48:15 +03:00
|
|
|
|
AC_ARG_ENABLE(rdpsndaudin, AS_HELP_STRING([--enable-rdpsndaudin],
|
|
|
|
|
[Use rdpsnd audio in (default: no)]),
|
|
|
|
|
[], [enable_rdpsndaudin=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_RDPSNDAUDIN, [test x$enable_rdpsndaudin = xyes])
|
|
|
|
|
|
2023-06-29 18:45:50 +03:00
|
|
|
|
AC_ARG_ENABLE(utmp, AS_HELP_STRING([--enable-utmp],
|
|
|
|
|
[Update utmp (default: no)]),
|
|
|
|
|
[], [enable_utmp=no])
|
|
|
|
|
AM_CONDITIONAL(XRDP_UTMP, [test x$enable_utmp = xyes])
|
|
|
|
|
|
2022-11-03 17:52:48 +03:00
|
|
|
|
AC_ARG_WITH(imlib2, AS_HELP_STRING([--with-imlib2=ARG], [imlib2 library to use for non-BMP backgrounds (ARG=yes/no/<abs-path>)]),,)
|
2021-06-30 15:48:00 +03:00
|
|
|
|
|
2022-11-03 17:52:48 +03:00
|
|
|
|
AC_ARG_WITH(freetype2, AS_HELP_STRING([--with-freetype2=ARG], [freetype2 library to use for rendering fonts (ARG=yes/no/<abs-path>)]),,)
|
2022-08-10 16:54:51 +03:00
|
|
|
|
|
2021-06-04 16:43:18 +03:00
|
|
|
|
# Obsolete options
|
|
|
|
|
AC_ARG_ENABLE(xrdpdebug, AS_HELP_STRING([--enable-xrdpdebug],
|
|
|
|
|
[This option is no longer supported - use --enable-devel-all]))
|
|
|
|
|
|
|
|
|
|
if test "x$enable_xrdpdebug" != x; then
|
|
|
|
|
AC_MSG_ERROR([--enable-xrdpdebug must be replaced with one or more --enable-devel-* options])
|
|
|
|
|
fi
|
|
|
|
|
|
2020-07-22 06:03:09 +03:00
|
|
|
|
# configure compiler options and CFLAGS
|
|
|
|
|
AX_GCC_FUNC_ATTRIBUTE([format])
|
|
|
|
|
AX_TYPE_SOCKLEN_T
|
|
|
|
|
AX_CFLAGS_WARN_ALL
|
|
|
|
|
AX_APPEND_COMPILE_FLAGS([-Wwrite-strings])
|
2023-10-20 18:14:47 +03:00
|
|
|
|
AX_APPEND_COMPILE_FLAGS([-Wmissing-prototypes], ,[-Werror])
|
2020-07-22 06:03:09 +03:00
|
|
|
|
|
|
|
|
|
AM_COND_IF([LINUX],
|
|
|
|
|
[AX_APPEND_COMPILE_FLAGS([-Werror])]) # bsd has warnings that have not been fixed yet
|
|
|
|
|
|
2021-05-19 13:19:43 +03:00
|
|
|
|
AM_COND_IF([DEVEL_DEBUG],
|
2020-07-22 06:03:09 +03:00
|
|
|
|
[AX_APPEND_COMPILE_FLAGS([-g -O0])],
|
|
|
|
|
[AX_APPEND_COMPILE_FLAGS([-O2])])
|
|
|
|
|
|
2022-12-15 18:06:55 +03:00
|
|
|
|
# Function setusercontext() is in BSD -lutil but N/A on Solaris or GNU systems
|
|
|
|
|
AC_SEARCH_LIBS([setusercontext], [util])
|
|
|
|
|
|
|
|
|
|
# Define HAVE_XXXXX macros for some system functions
|
2024-01-09 14:47:49 +03:00
|
|
|
|
AC_CHECK_FUNCS([setusercontext getgrouplist clearenv])
|
2023-10-03 12:34:41 +03:00
|
|
|
|
|
|
|
|
|
# The type used by getgrouplist() is the same type used by getgroups()
|
|
|
|
|
AC_TYPE_GETGROUPS
|
2022-12-15 18:06:55 +03:00
|
|
|
|
|
2016-12-20 21:38:04 +03:00
|
|
|
|
# Don't fail without working nasm if rfxcodec is not enabled
|
|
|
|
|
if test "x$enable_rfxcodec" != xyes; then
|
|
|
|
|
with_simd=no
|
|
|
|
|
export with_simd
|
|
|
|
|
fi
|
|
|
|
|
|
2016-11-30 03:25:37 +03:00
|
|
|
|
# Check if -ldl is needed to use dlopen()
|
|
|
|
|
DLOPEN_LIBS=
|
|
|
|
|
AC_CHECK_FUNC(dlopen, [],
|
|
|
|
|
[AC_CHECK_LIB(dl, dlopen, [DLOPEN_LIBS=-ldl])])
|
|
|
|
|
AC_SUBST(DLOPEN_LIBS)
|
|
|
|
|
|
2009-10-09 22:20:56 +04:00
|
|
|
|
# checking for openssl
|
2016-12-25 09:30:44 +03:00
|
|
|
|
PKG_CHECK_MODULES([OPENSSL], [openssl >= 0.9.8], [],
|
2016-11-30 04:00:09 +03:00
|
|
|
|
[AC_MSG_ERROR([please install libssl-dev or openssl-devel])])
|
2009-10-09 22:20:56 +04:00
|
|
|
|
|
2017-01-15 11:42:35 +03:00
|
|
|
|
# look for openssl binary
|
|
|
|
|
OPENSSL_BIN=`$PKG_CONFIG --variable=exec_prefix openssl`/bin
|
|
|
|
|
AC_PATH_PROGS([OPENSSL], [openssl], [:], [$OPENSSL_BIN:$PATH])
|
|
|
|
|
|
2020-12-15 13:55:26 +03:00
|
|
|
|
# checking for PAM variation
|
2015-03-10 12:01:20 +03:00
|
|
|
|
# Linux-PAM is used in Linux systems
|
|
|
|
|
# OpenPAM is used by FreeBSD, NetBSD, DragonFly BSD and OS X
|
|
|
|
|
# OpenBSD uses BSD Authentication rather than both PAMs
|
|
|
|
|
AC_CHECK_HEADER([security/_pam_types.h],
|
|
|
|
|
[AC_DEFINE([HAVE__PAM_TYPES_H], 1, [Using Linux-PAM], [])])
|
|
|
|
|
AC_CHECK_HEADER([security/pam_constants.h],
|
|
|
|
|
[AC_DEFINE([HAVE_PAM_CONSTANTS_H], 1, [Using OpenPAM], [])])
|
|
|
|
|
|
2021-06-30 15:48:00 +03:00
|
|
|
|
# Find imlib2
|
|
|
|
|
case "$with_imlib2" in
|
2021-08-09 13:59:33 +03:00
|
|
|
|
'' | no) AC_MSG_NOTICE([imlib2 will not be supported])
|
2021-06-30 15:48:00 +03:00
|
|
|
|
use_imlib2=no
|
|
|
|
|
;;
|
|
|
|
|
yes)
|
2022-01-12 14:41:26 +03:00
|
|
|
|
PKG_CHECK_MODULES([IMLIB2], [imlib2 >= 1.4.5],
|
2021-06-30 15:48:00 +03:00
|
|
|
|
[use_imlib2=yes],
|
|
|
|
|
[AC_MSG_ERROR([please install libimlib2-dev or imlib2-devel])])
|
|
|
|
|
;;
|
2021-08-09 13:59:33 +03:00
|
|
|
|
/*) AC_MSG_CHECKING([for imlib2 in $with_imlib2])
|
2021-06-30 15:48:00 +03:00
|
|
|
|
if test -d $with_imlib2/lib; then
|
2021-08-09 13:59:33 +03:00
|
|
|
|
IMLIB2_LIBS="-L$with_imlib2/lib -lImlib2"
|
2021-06-30 15:48:00 +03:00
|
|
|
|
elif test -d $with_imlib2/lib64; then
|
2021-08-09 13:59:33 +03:00
|
|
|
|
IMLIB2_LIBS="-L$with_imlib2/lib64 -lImlib2"
|
2021-06-30 15:48:00 +03:00
|
|
|
|
else
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
AC_MSG_ERROR([Can't find libImlib2 in $with_imlib2])
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test -f $with_imlib2/include/Imlib2.h; then
|
|
|
|
|
IMLIB2_CFLAGS="-I $with_imlib2/include"
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
AC_MSG_ERROR([Can't find $with_imlib2/include/Imlib2.h])
|
|
|
|
|
fi
|
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
|
AC_SUBST([IMLIB2_LIBS])
|
|
|
|
|
AC_SUBST([IMLIB2_CFLAGS])
|
|
|
|
|
use_imlib2=yes
|
2021-08-09 13:59:33 +03:00
|
|
|
|
;;
|
|
|
|
|
*) AC_MSG_ERROR([--with-imlib2 needs yes/no or absolute path])
|
2021-06-30 15:48:00 +03:00
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
if test x$use_imlib2 = xyes; then
|
|
|
|
|
AC_DEFINE([USE_IMLIB2],1, [Compile with imlib2 support])
|
|
|
|
|
fi
|
|
|
|
|
|
2022-08-10 16:54:51 +03:00
|
|
|
|
# Find freetype2
|
2022-11-14 22:51:05 +03:00
|
|
|
|
#
|
|
|
|
|
# The modversion used by pkgcheck does not correspond to the
|
|
|
|
|
# freetype2 release. See docs/VERSIONS.TXT in the freetype2
|
|
|
|
|
# source for a table of correspondences. If you change one
|
|
|
|
|
# of the below defines, change both.
|
|
|
|
|
m4_define([FT2_REQUIRED_VERSION], [2_8_0])
|
|
|
|
|
m4_define([FT2_REQUIRED_MODVERSION], [20.0.14])
|
2022-08-10 16:54:51 +03:00
|
|
|
|
case "$with_freetype2" in
|
|
|
|
|
'' | no) AC_MSG_NOTICE([freetype2 will not be supported])
|
|
|
|
|
use_freetype2=no
|
|
|
|
|
;;
|
|
|
|
|
yes)
|
2022-11-14 22:51:05 +03:00
|
|
|
|
PKG_CHECK_MODULES([FREETYPE2], [freetype2 >= FT2_REQUIRED_MODVERSION],
|
2022-08-10 16:54:51 +03:00
|
|
|
|
[use_freetype2=yes],
|
2022-11-14 22:51:05 +03:00
|
|
|
|
[AC_MSG_ERROR([please install version FT2_REQUIRED_VERSION or later of libfreetype6-dev or freetype-devel])])
|
2022-08-10 16:54:51 +03:00
|
|
|
|
;;
|
|
|
|
|
/*) AC_MSG_CHECKING([for freetype2 in $with_freetype2])
|
|
|
|
|
if test -d $with_freetype2/lib; then
|
|
|
|
|
FREETYPE2_LIBS="-L$with_freetype2/lib -llibfreetype"
|
|
|
|
|
elif test -d $with_freetype2/lib64; then
|
|
|
|
|
FREETYPE2_LIBS="-L$with_freetype2/lib64 -llibfreetype"
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
AC_MSG_ERROR([Can't find libfreetype in $with_freetype2])
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test -f $with_freetype2/include/freetype2/ft2build.h; then
|
|
|
|
|
FREETYPE2_CFLAGS="-I $with_freetype2/include/freetype2"
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
AC_MSG_ERROR([Can't find $with_freetype2/include/freetype2/ft2build.h])
|
|
|
|
|
fi
|
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
|
AC_SUBST([FREETYPE2_LIBS])
|
|
|
|
|
AC_SUBST([FREETYPE2_CFLAGS])
|
|
|
|
|
use_freetype2=yes
|
|
|
|
|
;;
|
|
|
|
|
*) AC_MSG_ERROR([--with-freetype2 needs yes/no or absolute path])
|
|
|
|
|
esac
|
|
|
|
|
AM_CONDITIONAL([USE_FREETYPE2], [test "x$use_freetype2" = xyes])
|
|
|
|
|
|
2020-12-15 13:55:26 +03:00
|
|
|
|
# Check only one auth mechanism is specified, and give it a name
|
|
|
|
|
auth_cnt=0
|
|
|
|
|
auth_mech="Builtin"
|
2023-03-20 17:59:05 +03:00
|
|
|
|
AUTHMOD_OBJ=verify_user.lo
|
2022-12-02 20:02:46 +03:00
|
|
|
|
AUTHMOD_LIB=-lcrypt
|
2020-12-15 13:55:26 +03:00
|
|
|
|
if test x$enable_pam = xyes
|
|
|
|
|
then
|
|
|
|
|
auth_cnt=`expr $auth_cnt + 1`
|
|
|
|
|
auth_mech="PAM"
|
2023-03-20 17:59:05 +03:00
|
|
|
|
AUTHMOD_OBJ=verify_user_pam.lo
|
2022-12-02 20:02:46 +03:00
|
|
|
|
AUTHMOD_LIB=-lpam
|
2020-12-15 13:55:26 +03:00
|
|
|
|
fi
|
|
|
|
|
if test x$bsd = xtrue
|
|
|
|
|
then
|
|
|
|
|
auth_cnt=`expr $auth_cnt + 1`
|
|
|
|
|
auth_mech="BSD"
|
2023-03-20 17:59:05 +03:00
|
|
|
|
AUTHMOD_OBJ=verify_user_bsd.lo
|
2022-12-02 20:02:46 +03:00
|
|
|
|
AUTHMOD_LIB=
|
2020-12-15 13:55:26 +03:00
|
|
|
|
fi
|
|
|
|
|
if test x$enable_kerberos = xyes
|
|
|
|
|
then
|
|
|
|
|
auth_cnt=`expr $auth_cnt + 1`
|
|
|
|
|
auth_mech="Kerberos"
|
2023-03-20 17:59:05 +03:00
|
|
|
|
AUTHMOD_OBJ=verify_user_kerberos.lo
|
2022-12-02 20:02:46 +03:00
|
|
|
|
AUTHMOD_LIB=-lkrb5
|
2020-12-15 13:55:26 +03:00
|
|
|
|
fi
|
|
|
|
|
if test x$enable_pamuserpass = xyes
|
|
|
|
|
then
|
|
|
|
|
auth_cnt=`expr $auth_cnt + 1`
|
|
|
|
|
auth_mech="PAM userpass"
|
2023-03-20 17:59:05 +03:00
|
|
|
|
AUTHMOD_OBJ=verify_user_pam_userpass.lo
|
2022-12-02 20:02:46 +03:00
|
|
|
|
AUTHMOD_LIB="-lpam -lpam_userpass"
|
2020-12-15 13:55:26 +03:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test $auth_cnt -gt 1
|
|
|
|
|
then
|
|
|
|
|
AC_MSG_ERROR([--enable-pam, --enable-bsd, --enable-pamuserpass and --enable-kerberos are mutually exclusive])
|
|
|
|
|
fi
|
|
|
|
|
|
2022-12-02 20:02:46 +03:00
|
|
|
|
AC_SUBST([AUTHMOD_OBJ])
|
|
|
|
|
AC_SUBST([AUTHMOD_LIB])
|
|
|
|
|
|
2009-10-09 22:20:56 +04:00
|
|
|
|
# checking if pam should be autodetected.
|
2014-10-28 01:32:56 +03:00
|
|
|
|
if test "x$enable_pam" = "xyes"
|
2009-10-09 22:20:56 +04:00
|
|
|
|
then
|
2020-12-15 13:55:26 +03:00
|
|
|
|
if test -z "$enable_bsd"
|
2009-10-09 22:20:56 +04:00
|
|
|
|
then
|
2020-12-15 13:55:26 +03: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
|
2016-12-31 07:00:46 +03:00
|
|
|
|
if test "x$enable_pam_config" = "x"; then
|
|
|
|
|
PAM_RULES="auto"
|
|
|
|
|
else
|
|
|
|
|
pam_config_file="$srcdir/instfiles/pam.d/xrdp-sesman.$enable_pam_config"
|
|
|
|
|
if test -f "$pam_config_file"; then
|
|
|
|
|
PAM_RULES="$enable_pam_config"
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_ERROR([PAM file "$pam_config_file" is not available])
|
|
|
|
|
fi
|
|
|
|
|
fi
|
2009-10-09 22:20:56 +04:00
|
|
|
|
fi
|
|
|
|
|
|
2016-12-31 07:00:46 +03:00
|
|
|
|
AC_SUBST(PAM_RULES)
|
|
|
|
|
|
2021-05-19 13:19:43 +03:00
|
|
|
|
# Add define for development options to config_ac.h
|
|
|
|
|
AC_DEFINE([CONFIG_AC_H],1, [Allow sources to check config_ac.h is included])
|
|
|
|
|
if test x$devel_logging = xyes
|
|
|
|
|
then
|
|
|
|
|
AC_DEFINE([USE_DEVEL_LOGGING],1,[Enable development logging])
|
|
|
|
|
fi
|
|
|
|
|
|
2021-05-19 13:34:41 +03:00
|
|
|
|
if test x$devel_streamcheck = xyes
|
|
|
|
|
then
|
|
|
|
|
AC_DEFINE([USE_DEVEL_STREAMCHECK],1,[Enable development stream checking])
|
|
|
|
|
fi
|
|
|
|
|
|
2017-09-22 02:13:05 +03:00
|
|
|
|
if test "x$enable_vsock" = "xyes"
|
|
|
|
|
then
|
|
|
|
|
enable_vsock=yes
|
2023-09-24 07:24:57 +03:00
|
|
|
|
if test "x$freebsd" = "xyes"
|
|
|
|
|
then
|
2023-09-24 22:52:11 +03:00
|
|
|
|
# Determine if we have AF_HYPERV defined (FreeBSD 13+)
|
|
|
|
|
AC_CHECK_DECL([AF_HYPERV], [AC_DEFINE([XRDP_ENABLE_VSOCK], 1, [Enable AF_HYPERV])], [], [#include <sys/socket.h>])
|
2023-09-24 07:24:57 +03:00
|
|
|
|
else
|
|
|
|
|
AC_CHECK_HEADERS([linux/socket.h linux/vm_sockets.h],
|
|
|
|
|
[AC_DEFINE([XRDP_ENABLE_VSOCK], 1, [Enable AF_VSOCK])],
|
|
|
|
|
[],
|
|
|
|
|
[#include <sys/socket.h>])
|
|
|
|
|
fi
|
2017-09-22 02:13:05 +03:00
|
|
|
|
fi
|
|
|
|
|
|
2015-07-01 07:19:38 +03:00
|
|
|
|
if test "x$enable_ipv6only" = "xyes"
|
|
|
|
|
then
|
|
|
|
|
enable_ipv6=yes
|
|
|
|
|
AC_DEFINE([XRDP_ENABLE_IPV6ONLY],1,[Enable IPv6 only])
|
|
|
|
|
fi
|
|
|
|
|
|
2015-03-10 07:36:52 +03:00
|
|
|
|
if test "x$enable_ipv6" = "xyes"
|
|
|
|
|
then
|
|
|
|
|
AC_DEFINE([XRDP_ENABLE_IPV6],1,[Enable IPv6])
|
|
|
|
|
fi
|
|
|
|
|
|
2013-05-03 13:07:02 +04:00
|
|
|
|
AS_IF( [test "x$enable_neutrinordp" = "xyes"] , [PKG_CHECK_MODULES(FREERDP, freerdp >= 1.0.0)] )
|
|
|
|
|
|
2012-08-02 21:48:59 +04:00
|
|
|
|
# checking for libjpeg
|
2014-10-28 01:22:22 +03:00
|
|
|
|
if test "x$enable_jpeg" = "xyes"
|
2012-04-08 09:41:46 +04:00
|
|
|
|
then
|
|
|
|
|
AC_CHECK_HEADER([jpeglib.h], [],
|
|
|
|
|
[AC_MSG_ERROR([please install libjpeg-dev or libjpeg-devel])])
|
|
|
|
|
fi
|
|
|
|
|
|
2012-11-03 10:10:36 +04:00
|
|
|
|
# checking for fuse
|
2014-10-28 01:22:22 +03:00
|
|
|
|
if test "x$enable_fuse" = "xyes"
|
2012-11-03 10:10:36 +04:00
|
|
|
|
then
|
2015-03-18 05:40:15 +03:00
|
|
|
|
PKG_CHECK_MODULES([FUSE], [fuse >= 2.6], [],
|
|
|
|
|
[AC_MSG_ERROR([please install libfuse-dev or fuse-devel])])
|
2012-11-03 10:10:36 +04:00
|
|
|
|
fi
|
|
|
|
|
|
2017-07-28 08:02:04 +03:00
|
|
|
|
# checking for fdk aac
|
|
|
|
|
if test "x$enable_fdkaac" = "xyes"
|
|
|
|
|
then
|
2017-08-02 02:33:58 +03:00
|
|
|
|
PKG_CHECK_MODULES([FDKAAC], [fdk-aac >= 0.1.0], [],
|
2017-07-28 10:36:04 +03:00
|
|
|
|
[AC_MSG_ERROR([please install libfdk-aac-dev or fdk-aac-devel])])
|
2017-07-28 08:02:04 +03:00
|
|
|
|
fi
|
|
|
|
|
|
2015-01-10 10:31:28 +03:00
|
|
|
|
# checking for opus
|
|
|
|
|
if test "x$enable_opus" = "xyes"
|
|
|
|
|
then
|
|
|
|
|
AC_CHECK_HEADER([opus/opus.h], [],
|
|
|
|
|
[AC_MSG_ERROR([please install libopus-dev or opus-devel])])
|
|
|
|
|
fi
|
|
|
|
|
|
2016-07-14 03:44:07 +03:00
|
|
|
|
# checking for lame mp3
|
|
|
|
|
if test "x$enable_mp3lame" = "xyes"
|
|
|
|
|
then
|
|
|
|
|
AC_CHECK_HEADER([lame/lame.h], [],
|
|
|
|
|
[AC_MSG_ERROR([please install libmp3lame-dev or lamemp3-devel])])
|
|
|
|
|
fi
|
|
|
|
|
|
2024-03-25 13:35:58 +03:00
|
|
|
|
# checking for ibus includes
|
|
|
|
|
if test "x$enable_ibus" = "xyes"
|
|
|
|
|
then
|
|
|
|
|
PKG_CHECK_MODULES([IBUS], [ibus-1.0 >= 1.5], [],
|
|
|
|
|
[AC_MSG_ERROR([please install libibus-1.0-dev or ibus-devel])])
|
2024-04-16 11:21:49 +03:00
|
|
|
|
|
|
|
|
|
# ibus uses dbus which depends on glib
|
|
|
|
|
PKG_CHECK_MODULES([GLIB2], [glib-2.0 >= 2.56], [],
|
|
|
|
|
[AC_MSG_ERROR([please install libglib2.0-dev or glib2.0-devel])])
|
2024-03-25 13:35:58 +03:00
|
|
|
|
fi
|
|
|
|
|
|
2016-12-04 23:01:35 +03:00
|
|
|
|
AS_IF( [test "x$enable_pixman" = "xyes"] , [PKG_CHECK_MODULES(PIXMAN, pixman-1 >= 0.1.0)] )
|
2016-08-09 06:02:10 +03:00
|
|
|
|
|
2024-05-11 09:56:07 +03:00
|
|
|
|
AS_IF( [test "x$enable_x264" = "xyes"] , [PKG_CHECK_MODULES(XRDP_X264, x264 >= 0.3.0)] )
|
|
|
|
|
|
2014-03-24 04:45:40 +04:00
|
|
|
|
# checking for TurboJPEG
|
2014-10-28 01:22:22 +03:00
|
|
|
|
if test "x$enable_tjpeg" = "xyes"
|
2014-03-24 23:03:17 +04:00
|
|
|
|
then
|
2014-03-24 04:45:40 +04:00
|
|
|
|
if test ! -z "$TURBOJPEG_PATH"
|
|
|
|
|
then
|
|
|
|
|
# env var TURBOJPEG_PATH has been defined, use that
|
|
|
|
|
AC_CHECK_HEADER([$TURBOJPEG_PATH/include/turbojpeg.h], [],
|
|
|
|
|
[AC_MSG_ERROR([could not find TurboJPEG in dir specified by env variable TURBOJPEG_PATH ($TURBOJPEG_PATH)])])
|
|
|
|
|
|
|
|
|
|
AC_SUBST(TurboJpegIncDir, ["-I$TURBOJPEG_PATH/include"])
|
|
|
|
|
AC_SUBST(TurboJpegLibDir, ["-L$TURBOJPEG_PATH/lib -Wl,-rpath -Wl,$TURBOJPEG_PATH/lib"])
|
|
|
|
|
elif test -e /opt/libjpeg-turbo/lib64
|
|
|
|
|
then
|
|
|
|
|
# TurboJPEG has been installed to /opt on a 64 bit m/c
|
|
|
|
|
AC_SUBST(TurboJpegIncDir, ["-I/opt/libjpeg-turbo/include"])
|
|
|
|
|
AC_SUBST(TurboJpegLibDir, ["-L/opt/libjpeg-turbo/lib64 -Wl,-rpath -Wl,/opt/libjpeg-turbo/lib64"])
|
|
|
|
|
elif test -e /opt/libjpeg-turbo/lib32
|
|
|
|
|
then
|
|
|
|
|
# TurboJPEG has been installed to /opt on a 32 bit m/c
|
|
|
|
|
AC_SUBST(TurboJpegIncDir, ["-I/opt/libjpeg-turbo/include"])
|
|
|
|
|
AC_SUBST(TurboJpegLibDir, ["-L/opt/libjpeg-turbo/lib32 -Wl,-rpath -Wl,/opt/libjpeg-turbo/lib32"])
|
|
|
|
|
else
|
|
|
|
|
# check in default location
|
|
|
|
|
AC_CHECK_HEADER([/usr/include/turbojpeg.h], [],
|
|
|
|
|
[AC_MSG_ERROR([please install TurboJPEG ])])
|
|
|
|
|
AC_SUBST(TurboJpegIncDir, [""])
|
|
|
|
|
AC_SUBST(TurboJpegLibDir, [""])
|
|
|
|
|
fi
|
2014-03-24 23:03:17 +04:00
|
|
|
|
fi
|
2014-03-24 04:45:40 +04:00
|
|
|
|
|
2016-01-30 22:42:39 +03:00
|
|
|
|
AC_PATH_XTRA
|
|
|
|
|
if test "x$no_x" == "xyes"; then
|
|
|
|
|
AC_MSG_ERROR([please install libx11-dev or libX11-devel])
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
save_CFLAGS="$CFLAGS"
|
|
|
|
|
CFLAGS="$CFLAGS $X_CFLAGS"
|
|
|
|
|
|
|
|
|
|
# checking for Xfixes
|
2009-10-11 09:33:30 +04:00
|
|
|
|
AC_CHECK_HEADER([X11/extensions/Xfixes.h], [],
|
2016-12-31 11:51:13 +03:00
|
|
|
|
[AC_MSG_ERROR([please install libxfixes-dev or libXfixes-devel])],
|
2009-10-11 09:33:30 +04:00
|
|
|
|
[#include <X11/Xlib.h>])
|
2016-01-30 22:42:39 +03:00
|
|
|
|
|
|
|
|
|
# checking for Xrandr
|
2014-03-18 00:12:46 +04:00
|
|
|
|
AC_CHECK_HEADER([X11/extensions/Xrandr.h], [],
|
|
|
|
|
[AC_MSG_ERROR([please install libxrandr-dev or libXrandr-devel])],
|
|
|
|
|
[#include <X11/Xlib.h>])
|
2009-10-09 22:20:56 +04:00
|
|
|
|
|
2024-05-23 21:12:44 +03:00
|
|
|
|
# checking for XKB
|
|
|
|
|
AC_CHECK_HEADER([X11/extensions/XKBrules.h], [],
|
|
|
|
|
[AC_MSG_ERROR([please install libxkbfile-dev or libxkbfile-devel])],
|
|
|
|
|
[#include <X11/Xlib.h>
|
|
|
|
|
#include <X11/XKBlib.h>
|
|
|
|
|
#include <stdio.h>])
|
|
|
|
|
|
2023-06-29 18:45:50 +03:00
|
|
|
|
if test "x$enable_utmp" = "xyes"
|
|
|
|
|
then
|
|
|
|
|
AC_CHECK_HEADERS(utmp.h utmpx.h)
|
2023-06-29 19:27:06 +03:00
|
|
|
|
|
|
|
|
|
# Test for non-standard extensions in struct utmpx
|
|
|
|
|
AXRDP_CHECK_UTMPX_MEMBER_EXISTS([ut_host], [HAVE_UTMPX_UT_HOST])
|
|
|
|
|
AXRDP_CHECK_UTMPX_MEMBER_EXISTS([ut_exit], [HAVE_UTMPX_UT_EXIT])
|
2023-06-29 18:45:50 +03:00
|
|
|
|
fi
|
2017-09-26 22:06:44 +03:00
|
|
|
|
|
2016-01-30 22:42:39 +03:00
|
|
|
|
CFLAGS="$save_CFLAGS"
|
|
|
|
|
|
2023-02-04 23:14:22 +03:00
|
|
|
|
# perform unit tests if libcheck and libmocka found
|
|
|
|
|
perform_unit_tests=yes; # Assume packages will be found
|
2021-04-20 17:50:21 +03:00
|
|
|
|
if test "x$ensure_tests_deps" == "xyes"; then
|
|
|
|
|
PKG_CHECK_MODULES([CHECK], [check >= 0.10.0],
|
2023-02-04 23:14:22 +03:00
|
|
|
|
[],
|
2021-04-20 17:50:21 +03:00
|
|
|
|
[AC_MSG_ERROR([please install check, the unit test framework])])
|
2023-02-04 23:14:22 +03:00
|
|
|
|
# Check if cmocka is available - needed for unit testing
|
|
|
|
|
PKG_CHECK_MODULES([CMOCKA], [cmocka],
|
|
|
|
|
[],
|
|
|
|
|
[AC_MSG_ERROR([please install cmocka, the mocking framework])])
|
2021-04-20 17:50:21 +03:00
|
|
|
|
else
|
|
|
|
|
PKG_CHECK_MODULES([CHECK], [check >= 0.10.0],
|
2023-02-04 23:14:22 +03:00
|
|
|
|
[],
|
|
|
|
|
[perform_unit_tests=no])
|
|
|
|
|
PKG_CHECK_MODULES([CMOCKA], [cmocka],
|
|
|
|
|
[],
|
2021-04-20 17:50:21 +03:00
|
|
|
|
[perform_unit_tests=no])
|
|
|
|
|
fi
|
2021-04-20 16:57:51 +03:00
|
|
|
|
|
|
|
|
|
if test "x$perform_unit_tests" == "xyes"; then
|
|
|
|
|
AC_MSG_NOTICE([libcheck found, unit tests will be performed])
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_NOTICE([libcheck not found, unit tests will be skipped])
|
|
|
|
|
fi
|
|
|
|
|
# -- end perform unit tests
|
2021-03-29 00:55:19 +03:00
|
|
|
|
|
2016-02-10 21:24:09 +03:00
|
|
|
|
AC_SUBST([moduledir], '${libdir}/xrdp')
|
|
|
|
|
|
2016-12-25 01:48:02 +03:00
|
|
|
|
AC_ARG_ENABLE([strict-locations],
|
|
|
|
|
[AS_HELP_STRING([--enable-strict-locations],
|
|
|
|
|
[Use standard Autoconf install directories unless overridden
|
2018-05-10 12:28:34 +03:00
|
|
|
|
(default: use /etc and /var)])],
|
|
|
|
|
[], [enable_strict_locations=no])
|
2016-12-25 01:48:02 +03:00
|
|
|
|
|
|
|
|
|
if test "x$enable_strict_locations" != "xyes"; then
|
|
|
|
|
sysconfdir="/etc";
|
|
|
|
|
localstatedir="/var";
|
2008-08-12 09:19:59 +04:00
|
|
|
|
fi
|
2016-11-17 22:57:10 +03:00
|
|
|
|
|
2023-02-21 04:50:46 +03:00
|
|
|
|
AC_ARG_WITH([pamconfdir],
|
|
|
|
|
[AS_HELP_STRING([--with-pamconfdir=DIR],
|
|
|
|
|
[Use directory for pam.d config (default: /etc/pam.d)])],
|
|
|
|
|
[], [with_pamconfdir="$sysconfdir/pam.d"])
|
|
|
|
|
AC_SUBST([pamconfdir], [$with_pamconfdir])
|
|
|
|
|
|
2016-11-21 08:58:31 +03:00
|
|
|
|
PKG_INSTALLDIR
|
2016-11-17 22:57:10 +03:00
|
|
|
|
|
2023-09-19 11:19:17 +03:00
|
|
|
|
AC_CHECK_HEADERS([sys/prctl.h uchar.h])
|
2016-11-29 11:42:48 +03:00
|
|
|
|
|
2016-11-18 03:35:33 +03:00
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
|
common/Makefile
|
|
|
|
|
docs/Makefile
|
|
|
|
|
docs/man/Makefile
|
2022-08-10 16:54:51 +03:00
|
|
|
|
fontutils/Makefile
|
2016-11-18 03:35:33 +03:00
|
|
|
|
genkeymap/Makefile
|
|
|
|
|
instfiles/default/Makefile
|
|
|
|
|
instfiles/init.d/Makefile
|
|
|
|
|
instfiles/Makefile
|
|
|
|
|
instfiles/pam.d/Makefile
|
|
|
|
|
instfiles/pulse/Makefile
|
|
|
|
|
instfiles/rc.d/Makefile
|
|
|
|
|
keygen/Makefile
|
2022-11-20 05:43:00 +03:00
|
|
|
|
waitforx/Makefile
|
2022-02-14 12:13:30 +03:00
|
|
|
|
libipm/Makefile
|
2016-11-18 03:35:33 +03:00
|
|
|
|
libxrdp/Makefile
|
|
|
|
|
Makefile
|
|
|
|
|
mc/Makefile
|
|
|
|
|
neutrinordp/Makefile
|
2022-05-19 06:10:05 +03:00
|
|
|
|
ulalaca/Makefile
|
2016-11-18 03:35:33 +03:00
|
|
|
|
pkgconfig/Makefile
|
|
|
|
|
pkgconfig/xrdp.pc
|
2016-11-18 03:04:35 +03:00
|
|
|
|
pkgconfig/xrdp-uninstalled.pc
|
2023-03-20 17:59:05 +03:00
|
|
|
|
sesman/libsesman/Makefile
|
2016-11-18 03:35:33 +03:00
|
|
|
|
sesman/chansrv/Makefile
|
|
|
|
|
sesman/Makefile
|
2023-03-23 15:51:24 +03:00
|
|
|
|
sesman/sesexec/Makefile
|
2016-11-18 03:35:33 +03:00
|
|
|
|
sesman/tools/Makefile
|
2021-02-27 23:58:05 +03:00
|
|
|
|
tests/Makefile
|
2021-03-29 00:55:19 +03:00
|
|
|
|
tests/common/Makefile
|
2022-03-01 17:33:35 +03:00
|
|
|
|
tests/libipm/Makefile
|
2021-06-27 05:37:58 +03:00
|
|
|
|
tests/libxrdp/Makefile
|
2021-02-27 23:58:05 +03:00
|
|
|
|
tests/memtest/Makefile
|
2021-07-07 13:36:29 +03:00
|
|
|
|
tests/xrdp/Makefile
|
2021-03-26 04:31:54 +03:00
|
|
|
|
tools/Makefile
|
|
|
|
|
tools/devel/Makefile
|
|
|
|
|
tools/devel/tcp_proxy/Makefile
|
2024-03-01 17:40:35 +03:00
|
|
|
|
tools/chkpriv/Makefile
|
2016-11-18 03:35:33 +03:00
|
|
|
|
vnc/Makefile
|
|
|
|
|
xrdpapi/Makefile
|
|
|
|
|
xrdp/Makefile
|
|
|
|
|
xrdpvr/Makefile
|
|
|
|
|
xup/Makefile
|
2023-04-03 10:43:45 +03:00
|
|
|
|
third_party/Makefile
|
2023-04-03 09:50:03 +03:00
|
|
|
|
third_party/tomlc99/Makefile
|
2016-11-17 22:57:10 +03:00
|
|
|
|
])
|
2008-08-09 12:35:05 +04:00
|
|
|
|
|
2021-03-29 00:55:19 +03:00
|
|
|
|
AC_REQUIRE_AUX_FILE([tap-driver.sh])
|
2016-11-18 03:35:33 +03:00
|
|
|
|
AC_OUTPUT
|
2018-05-01 02:27:03 +03:00
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
echo "xrdp will be compiled with:"
|
|
|
|
|
echo ""
|
2021-05-19 13:19:43 +03:00
|
|
|
|
echo " mp3lame $enable_mp3lame"
|
|
|
|
|
echo " opus $enable_opus"
|
|
|
|
|
echo " fdkaac $enable_fdkaac"
|
|
|
|
|
echo " jpeg $enable_jpeg"
|
|
|
|
|
echo " turbo jpeg $enable_tjpeg"
|
|
|
|
|
echo " rfxcodec $enable_rfxcodec"
|
2024-05-11 09:56:07 +03:00
|
|
|
|
echo " x264 $enable_x264"
|
2021-05-19 13:19:43 +03:00
|
|
|
|
echo " painter $enable_painter"
|
|
|
|
|
echo " pixman $enable_pixman"
|
|
|
|
|
echo " fuse $enable_fuse"
|
|
|
|
|
echo " ipv6 $enable_ipv6"
|
|
|
|
|
echo " ipv6only $enable_ipv6only"
|
|
|
|
|
echo " vsock $enable_vsock"
|
2024-03-25 13:35:58 +03:00
|
|
|
|
echo " ibus $enable_ibus"
|
2021-05-19 13:19:43 +03:00
|
|
|
|
echo " auth mechanism $auth_mech"
|
|
|
|
|
echo " rdpsndaudin $enable_rdpsndaudin"
|
2023-06-29 18:45:50 +03:00
|
|
|
|
echo " utmp support $enable_utmp"
|
2023-06-29 19:27:06 +03:00
|
|
|
|
if test x$enable_utmp = xyes; then
|
|
|
|
|
echo " utmpx.ut_host $ac_cv_utmpx_has_ut_host"
|
|
|
|
|
echo " utmpx.ut_exit $ac_cv_utmpx_has_ut_exit"
|
|
|
|
|
fi
|
|
|
|
|
|
2021-05-19 13:19:43 +03:00
|
|
|
|
echo
|
2022-08-10 16:54:51 +03:00
|
|
|
|
echo " with imlib2 $use_imlib2"
|
|
|
|
|
echo " with freetype2 $use_freetype2"
|
|
|
|
|
|
2021-06-30 15:48:00 +03:00
|
|
|
|
echo
|
2021-05-19 13:19:43 +03:00
|
|
|
|
echo " development logging $devel_logging"
|
2021-05-19 13:34:41 +03:00
|
|
|
|
echo " development streamcheck $devel_streamcheck"
|
2018-05-01 02:27:03 +03:00
|
|
|
|
echo ""
|
|
|
|
|
echo " strict_locations $enable_strict_locations"
|
|
|
|
|
echo " prefix $prefix"
|
|
|
|
|
echo " exec_prefix $exec_prefix"
|
|
|
|
|
echo " libdir $libdir"
|
|
|
|
|
echo " bindir $bindir"
|
|
|
|
|
echo " sysconfdir $sysconfdir"
|
2023-02-21 04:50:46 +03:00
|
|
|
|
echo " pamconfdir $pamconfdir"
|
2022-03-19 14:29:28 +03:00
|
|
|
|
echo " localstatedir $localstatedir"
|
|
|
|
|
echo " runstatedir $runstatedir"
|
|
|
|
|
echo " socketdir $socketdir"
|
2020-09-08 20:16:09 +03:00
|
|
|
|
echo ""
|
2021-04-20 17:50:21 +03:00
|
|
|
|
echo " unit tests performable $perform_unit_tests"
|
2021-04-20 16:57:51 +03:00
|
|
|
|
echo ""
|
2020-09-08 20:16:09 +03:00
|
|
|
|
echo " CFLAGS = $CFLAGS"
|
|
|
|
|
echo " LDFLAGS = $LDFLAGS"
|
2018-06-26 11:26:32 +03:00
|
|
|
|
|
2018-06-26 11:57:07 +03:00
|
|
|
|
# xrdp_configure_options.h will be written to the build directory, not the source directory
|
|
|
|
|
echo '#define XRDP_CONFIGURE_OPTIONS \' > ./xrdp_configure_options.h
|
|
|
|
|
./config.status --config | xargs -n 1 | sed -e 's/^/" /' -e 's/$/\\n" \\/' >> ./xrdp_configure_options.h
|
|
|
|
|
echo '""' >> ./xrdp_configure_options.h
|