1
AC_INIT(freerdp, m4_esyscmd([build-aux/git-version-gen .tarball-version]),
2
[freerdp-devel@lists.sourceforge.net])
4
AM_CONFIG_HEADER([config.h])
5
AC_CONFIG_SRCDIR([libfreerdp/freerdp.c])
9
if test "$GCC" = yes; then
10
CFLAGS="$CFLAGS -Wall"
13
AH_TEMPLATE(B_ENDIAN, [Big endian])
14
AH_TEMPLATE(L_ENDIAN, [Little endian])
15
AH_TEMPLATE(EGD_SOCKET, [EGD])
16
AH_TEMPLATE(HAVE_LIBSAMPLERATE, [Define if you have libsamplerate])
17
AH_TEMPLATE(IPv6, [IPv6])
18
AH_TEMPLATE(NEED_ALIGN, [Alignment])
19
AH_TEMPLATE(DISABLE_TLS, [Disable TLS encryption])
20
AH_TEMPLATE(WITH_SCARD, [Define if smartcard is enabled])
21
AH_TEMPLATE(WITH_DEBUG, [Turn on debugging messages])
22
AH_TEMPLATE(WITH_DEBUG_CHANNEL, [Turn on debugging messages])
23
AH_TEMPLATE(WITH_DEBUG_CLIPBOARD, [Turn on debugging messages])
24
AH_TEMPLATE(WITH_DEBUG_KBD, [Turn on debugging messages])
25
AH_TEMPLATE(WITH_DEBUG_RDP5, [Turn on debugging messages])
26
AH_TEMPLATE(WITH_DEBUG_SCARD, [Turn on debugging messages])
27
AH_TEMPLATE(WITH_DEBUG_SEAMLESS, [Turn on debugging messages])
28
AH_TEMPLATE(WITH_DEBUG_SERIAL, [Turn on debugging messages])
29
AH_TEMPLATE(WITH_DEBUG_SOUND, [Turn on debugging messages])
35
AC_C_BIGENDIAN([AC_DEFINE(B_ENDIAN)], [AC_DEFINE(L_ENDIAN)])
37
AC_PATH_PROG(PKG_CONFIG, pkg-config)
39
AC_SEARCH_LIBS(socket, socket)
40
AC_SEARCH_LIBS(inet_aton, resolv)
42
AC_CHECK_HEADERS(sys/select.h sys/modem.h sys/filio.h sys/strtio.h)
43
AC_CHECK_HEADERS(locale.h langinfo.h)
45
AC_CHECK_TOOL(STRIP, strip, :)
47
dnl Don't depend on pkg-config
48
m4_ifdef([PKG_CHECK_MODULES], [], [
49
m4_errprint([warning: pkg-config checks are not available])
50
m4_defun([PKG_CHECK_MODULES], [
51
AC_MSG_WARN([pkg-config not available, cannot check for $2])
58
dnl Define keymap path
59
KEYMAP_PATH="${datadir}/freerdp/keymaps"
62
dnl Define plugin path
63
PLUGIN_PATH='${libdir}/freerdp'
67
# Check Crypto libraries
70
[AS_HELP_STRING([--with-crypto=ARG],
71
[Choose the crypto library. Valid arguments are openssl, polarssl, no (default is openssl)])],
72
[with_crypto=$withval],
73
[with_crypto=openssl])
78
PKG_CHECK_MODULES(CRYPTO, [openssl >= 0.9.8a])
83
AC_CHECK_LIB(polarssl, ssl_init,
84
[CRYPTO_LIBS=-lpolarssl],
85
[AC_MSG_ERROR(PolarSSL library not found)])
86
AC_CHECK_HEADER(polarssl/ssl.h,
88
[AC_MSG_ERROR(PolarSSL development header not found)])
93
AC_MSG_WARN([Cryptographic disabled.])
97
AC_MSG_ERROR([Invalid --with-crypto argument $with_crypto.])
102
# Disable TLS encryption
106
[AS_HELP_STRING([--disable-tls], [disable TLS encryption])],
108
if test $enableval = "no";
114
AM_CONDITIONAL(ENABLE_TLS, true)
116
if test "$disable_tls" = "yes"; then
117
AC_DEFINE(DISABLE_TLS,1)
118
AM_CONDITIONAL(ENABLE_TLS, false)
124
AC_ARG_ENABLE(smartcard,
125
[ --enable-smartcard Enables smart-card support.
128
if test "$enableval" = no; then
133
AC_CHECK_HEADER(PCSC/pcsclite.h, [WITH_SCARD=1], [WITH_SCARD=0])
135
PCSCLITE_LIBS="-framework PCSC"
138
if test -n "$PKG_CONFIG"; then
139
PKG_CHECK_MODULES(PCSCLITE, libpcsclite, [WITH_SCARD=1], [WITH_SCARD=0])
144
if test x"$WITH_SCARD" = "x1"; then
146
CFLAGS="$CFLAGS $PCSCLITE_CFLAGS"
147
LIBS="$LIBS $PCSCLITE_LIBS"
148
AC_DEFINE(WITH_SCARD)
151
AC_MSG_CHECKING([for old version of PCSC])
155
#include <PCSC/wintypes.h>
156
#include <PCSC/winscard.h>
158
#include <winscard.h>
161
[SCardControl(NULL, NULL, 0, NULL, NULL);],
162
[AC_MSG_RESULT(yes) AC_DEFINE(WITH_PCSC120, 1, [old version of PCSC])],
173
AC_MSG_CHECKING([if architecture needs alignment])
177
int main(int argc, char **argv)
179
unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
180
signal(SIGBUS, exit);
181
signal(SIGABRT, exit);
182
signal(SIGSEGV, exit);
183
if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
190
AC_DEFINE(NEED_ALIGN)],
191
[AC_MSG_RESULT(assuming yes)
192
AC_DEFINE(NEED_ALIGN)])
198
AC_ARG_WITH(egd-socket,
199
[ --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH],
200
[EGD_SOCKET="$withval"],
201
[EGD_SOCKET="/var/run/egd-pool"]
203
AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET")
209
vncserverconfig=libvncserver-config
210
AC_ARG_WITH(libvncserver-config,
211
[ --with-libvncserver-config=CMD use CMD as libvncserver-config],
212
[vncserverconfig="$withval"]
214
AC_ARG_WITH(libvncserver,
215
[ --with-libvncserver make rdp2vnc],
217
VNCINC=`$vncserverconfig --cflags`
219
LDVNC=`$vncserverconfig --libs`
221
VNCLINK=`$vncserverconfig --link`
223
RDP2VNCTARGET="rdp2vnc"
224
AC_SUBST(RDP2VNCTARGET)
234
[ --with-sound select sound system ("oss", "sgi", "sun", "alsa" or "libao") ],
239
AC_CHECK_HEADER(sys/soundcard.h, [HAVE_OSS=1], [HAVE_OSS=0])
240
AC_CHECK_HEADER(dmedia/audio.h, [HAVE_SGI=1], [HAVE_SGI=0])
241
AC_CHECK_HEADER(sys/audioio.h, [HAVE_SUN=1], [HAVE_SUN=0])
243
AC_ARG_ENABLE(static-libsamplerate,
244
[ --enable-static-libsamplerate link libsamplerate statically],
245
[static_libsamplerate=yes],
246
[static_libsamplerate=no])
248
if test -n "$PKG_CONFIG"; then
249
PKG_CHECK_MODULES(LIBAO, ao, [HAVE_LIBAO=1], [HAVE_LIBAO=0])
250
PKG_CHECK_MODULES(ALSA, alsa, [HAVE_ALSA=1], [HAVE_ALSA=0])
251
AC_ARG_WITH(libsamplerate,
252
[ --without-libsamplerate disable libsamplerate support])
253
if test "x$with_libsamplerate" != "xno"; then
254
PKG_CHECK_MODULES(LIBSAMPLERATE, samplerate, [HAVE_LIBSAMPLERATE=1], [HAVE_LIBSAMPLERATE=0])
256
if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
257
AC_DEFINE(HAVE_LIBSAMPLERATE)
258
if test x"$static_libsamplerate" = "xyes"; then
259
_libsamplerate_libdir=`$PKG_CONFIG --errors-to-stdout --variable=libdir samplerate`
260
LIBSAMPLERATE_LIBS="$_libsamplerate_libdir""/libsamplerate.a"
262
LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS -lm"
266
AM_CONDITIONAL(WITH_RDPSND, [test "$sound" != "no"])
267
AM_CONDITIONAL(RDPSND_OSS, false)
268
AM_CONDITIONAL(RDPSND_SGI, false)
269
AM_CONDITIONAL(RDPSND_SUN, false)
270
AM_CONDITIONAL(RDPSND_ALSA, false)
271
AM_CONDITIONAL(RDPSND_LIBAO, false)
275
AM_CONDITIONAL(RDPSND_OSS, [test x"$HAVE_OSS" = "x1"])
276
AM_CONDITIONAL(RDPSND_SGI, [test x"$HAVE_SGI" = "x1"])
277
AM_CONDITIONAL(RDPSND_SUN, [test x"$HAVE_SUN" = "x1"])
278
AM_CONDITIONAL(RDPSND_ALSA, [test x"$HAVE_ALSA" = "x1"])
279
AM_CONDITIONAL(RDPSND_LIBAO, [test x"$HAVE_LIBAO" = "x1"])
283
if test x"$HAVE_OSS" = "x1"; then
284
AM_CONDITIONAL(RDPSND_OSS, true)
286
AC_MSG_ERROR([Selected sound system is not available.])
291
if test x"$HAVE_SGI" = "x1"; then
292
AM_CONDITIONAL(RDPSND_SGI, true)
294
AC_MSG_ERROR([Selected sound system is not available.])
299
if test x"$HAVE_SUN" = "x1"; then
300
AM_CONDITIONAL(RDPSND_SUN, true)
302
AC_MSG_ERROR([Selected sound system is not available.])
307
if test x"$HAVE_ALSA" = "x1"; then
308
AM_CONDITIONAL(RDPSND_ALSA, true)
310
AC_MSG_ERROR([Selected sound system is not available.])
315
if test x"$HAVE_LIBAO" = "x1"; then
316
AM_CONDITIONAL(RDPSND_LIBAO, true)
318
AC_MSG_ERROR([Selected sound system is not available.])
326
AC_MSG_WARN([sound support disabled])
327
AC_MSG_WARN([Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao])
335
AC_ARG_WITH([printer],
336
[AS_HELP_STRING([--with-printer=ARG],
337
[Choose the printer module. Valid arguments are cups, no (default is cups)])],
341
AM_CONDITIONAL(RDPDR_PRINTER_CUPS, false)
345
AC_CHECK_PROG(HAVE_CUPS, cups-config, 1, 0)
346
if test x"$HAVE_CUPS" = "x1"; then
347
CUPS_CFLAGS=`cups-config --cflags`
348
AC_SUBST(CUPS_CFLAGS)
349
CUPS_LIBS=`cups-config --libs`
351
AM_CONDITIONAL(RDPDR_PRINTER_CUPS, true)
353
AC_MSG_WARN([Printer support disabled. CUPS development package not found.])
359
AC_MSG_WARN([Printer support disabled.])
363
AC_MSG_ERROR([Invalid --with-printer argument $with_printer.])
367
# Checks for time zones
373
dnl Find out how to get the file descriptor associated with an open DIR*.
374
dnl From Jim Meyering
376
AC_DEFUN([UTILS_FUNC_DIRFD],
383
#else /* not HAVE_DIRENT_H */
384
# define dirent direct
386
# include <sys/ndir.h>
387
# endif /* HAVE_SYS_NDIR_H */
389
# include <sys/dir.h>
390
# endif /* HAVE_SYS_DIR_H */
393
# endif /* HAVE_NDIR_H */
394
#endif /* HAVE_DIRENT_H */
396
AC_CHECK_FUNCS(dirfd)
397
AC_CHECK_DECLS([dirfd], , , $dirfd_headers)
399
AC_CACHE_CHECK([whether dirfd is a macro],
400
jm_cv_func_dirfd_macro,
401
[AC_EGREP_CPP([dirent_header_defines_dirfd], [$dirfd_headers
403
dirent_header_defines_dirfd
405
jm_cv_func_dirfd_macro=yes,
406
jm_cv_func_dirfd_macro=no)])
408
# Use the replacement only if we have no function, macro,
409
# or declaration with that name.
410
if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
412
AC_REPLACE_FUNCS([dirfd])
414
[how to get the file descriptor associated with an open DIR*],
415
gl_cv_sys_dir_fd_member_name,
417
dirfd_save_CFLAGS=$CFLAGS
418
for ac_expr in d_fd dd_fd; do
420
CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
424
[DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;],
427
CFLAGS=$dirfd_save_CFLAGS
428
test "$dir_fd_found" = yes && break
430
test "$dir_fd_found" = yes || ac_expr=no_such_member
432
gl_cv_sys_dir_fd_member_name=$ac_expr
435
if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
436
AC_DEFINE_UNQUOTED(DIR_FD_MEMBER_NAME,
437
$gl_cv_sys_dir_fd_member_name,
438
[the name of the file descriptor member of DIR])
440
AH_VERBATIM(DIR_TO_FD,
441
[#ifdef DIR_FD_MEMBER_NAME
442
# define DIR_TO_FD(Dir_p) ((Dir_p)->DIR_FD_MEMBER_NAME)
444
# define DIR_TO_FD(Dir_p) -1
457
dnl This macros shamelessly stolen from
458
dnl http://gcc.gnu.org/ml/gcc-bugs/2001-06/msg01398.html.
459
dnl Written by Bruno Haible.
461
AC_DEFUN([UTILS_FUNC_ICONV],
463
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
464
dnl those with the standalone portable GNU libiconv installed).
466
AC_ARG_WITH([libiconv-prefix],
467
[ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [
468
for dir in `echo "$withval" | tr : ' '`; do
469
if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
470
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
473
AC_CHECK_HEADERS(iconv.h)
475
AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
476
am_cv_func_iconv="no, consider installing GNU libiconv"
478
AC_TRY_LINK([#include <stdlib.h>
480
[iconv_t cd = iconv_open("","");
481
iconv(cd,NULL,NULL,NULL,NULL);
483
am_cv_func_iconv=yes)
484
if test "$am_cv_func_iconv" != yes; then
487
AC_TRY_LINK([#include <stdlib.h>
489
[iconv_t cd = iconv_open("","");
490
iconv(cd,NULL,NULL,NULL,NULL);
493
am_cv_func_iconv=yes)
497
if test "$am_cv_func_iconv" = yes; then
498
AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
499
AC_MSG_CHECKING([for iconv declaration])
500
AC_CACHE_VAL(am_cv_proto_iconv, [
508
#if defined(__STDC__) || defined(__cplusplus)
509
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
513
], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
514
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
515
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
516
AC_MSG_RESULT([$]{ac_t:-
517
}[$]am_cv_proto_iconv)
518
AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
519
[Define as const if the declaration of iconv() needs const.])
522
if test "$am_cv_lib_iconv" = yes; then
529
[AS_HELP_STRING([--disable-iconv], [disable iconv support])],
531
if test $enableval != "no";
539
LIBS="$LIBS $LIBICONV"
545
dnl Check for socklen_t: historically on BSD it is an int, and in
546
dnl POSIX 1g it is a type of its own, but some platforms use different
547
dnl types for the argument to getsockopt, getpeername, etc. So we
548
dnl have to test to find something that will work.
549
AC_DEFUN([TYPE_SOCKLEN_T],
551
AC_CHECK_TYPE([socklen_t], ,[
552
AC_MSG_CHECKING([for socklen_t equivalent])
553
AC_CACHE_VAL([socklen_t_cv_equiv],
555
# Systems have either "struct sockaddr *" or
556
# "void *" as the second argument to getpeername
558
for arg2 in "struct sockaddr" void; do
559
for t in int size_t unsigned long "unsigned long"; do
561
#include <sys/types.h>
562
#include <sys/socket.h>
564
int getpeername (int, $arg2 *, $t *);
567
getpeername(0,0,&len);
569
socklen_t_cv_equiv="$t"
575
if test "x$socklen_t_cv_equiv" = x; then
576
AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
579
AC_MSG_RESULT($socklen_t_cv_equiv)
580
AC_DEFINE_UNQUOTED(socklen_t, $socklen_t_cv_equiv,
581
[type to use in place of socklen_t if not defined])],
582
[#include <sys/types.h>
583
#include <sys/socket.h>])
591
AC_CHECK_HEADERS(sys/vfs.h)
592
AC_CHECK_HEADERS(sys/statvfs.h)
593
AC_CHECK_HEADERS(sys/statfs.h)
594
AC_CHECK_HEADERS(sys/param.h)
599
# include <sys/param.h>
603
AC_CHECK_HEADERS(sys/mount.h,,,[$mount_includes])
605
#################################################
606
# these tests are taken from the GNU fileutils package
607
AC_CHECKING(how to get filesystem space usage)
610
# Test for statvfs64.
611
if test $space = no; then
613
AC_CACHE_CHECK([statvfs64 function (SVR4)], fu_cv_sys_stat_statvfs64,
615
#if defined(HAVE_UNISTD_H)
618
#include <sys/types.h>
619
#include <sys/statvfs.h>
622
struct statvfs64 fsd;
623
exit (statvfs64 (".", &fsd));
625
fu_cv_sys_stat_statvfs64=yes,
626
fu_cv_sys_stat_statvfs64=no,
627
fu_cv_sys_stat_statvfs64=cross)])
628
if test $fu_cv_sys_stat_statvfs64 = yes; then
630
AC_DEFINE(STAT_STATVFS64,1,[Whether statvfs64() is available])
634
# Perform only the link test since it seems there are no variants of the
635
# statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
636
# because that got a false positive on SCO OSR5. Adding the declaration
637
# of a `struct statvfs' causes this test to fail (as it should) on such
638
# systems. That system is reported to work fine with STAT_STATFS4 which
639
# is what it gets when this test fails.
640
if test $space = no; then
642
AC_CACHE_CHECK([statvfs function (SVR4)], fu_cv_sys_stat_statvfs,
643
[AC_TRY_LINK([#include <sys/types.h>
644
#include <sys/statvfs.h>],
645
[struct statvfs fsd; statvfs (0, &fsd);],
646
fu_cv_sys_stat_statvfs=yes,
647
fu_cv_sys_stat_statvfs=no)])
648
if test $fu_cv_sys_stat_statvfs = yes; then
650
AC_DEFINE(STAT_STATVFS,1,[Whether statvfs() is available])
654
if test $space = no; then
655
# DEC Alpha running OSF/1
656
AC_MSG_CHECKING([for 3-argument statfs function (DEC OSF/1)])
657
AC_CACHE_VAL(fu_cv_sys_stat_statfs3_osf1,
659
#include <sys/param.h>
660
#include <sys/types.h>
661
#include <sys/mount.h>
666
exit (statfs (".", &fsd, sizeof (struct statfs)));
668
fu_cv_sys_stat_statfs3_osf1=yes,
669
fu_cv_sys_stat_statfs3_osf1=no,
670
fu_cv_sys_stat_statfs3_osf1=no)])
673
#C_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
674
if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
676
AC_DEFINE(STAT_STATFS3_OSF1,1,[Whether statfs requires 3 arguments])
680
if test $space = no; then
682
AC_MSG_CHECKING([for two-argument statfs with statfs.bsize dnl
683
member (AIX, 4.3BSD)])
684
AC_CACHE_VAL(fu_cv_sys_stat_statfs2_bsize,
686
#ifdef HAVE_SYS_PARAM_H
687
#include <sys/param.h>
689
#ifdef HAVE_SYS_MOUNT_H
690
#include <sys/mount.h>
692
#ifdef HAVE_SYS_VFS_H
699
exit (statfs (".", &fsd));
701
fu_cv_sys_stat_statfs2_bsize=yes,
702
fu_cv_sys_stat_statfs2_bsize=no,
703
fu_cv_sys_stat_statfs2_bsize=no)])
704
AC_MSG_RESULT($fu_cv_sys_stat_statfs2_bsize)
705
if test $fu_cv_sys_stat_statfs2_bsize = yes; then
707
AC_DEFINE(STAT_STATFS2_BSIZE,1,[Whether statfs requires two arguments and struct statfs has bsize property])
711
if test $space = no; then
713
AC_MSG_CHECKING([for four-argument statfs (AIX-3.2.5, SVR3)])
714
AC_CACHE_VAL(fu_cv_sys_stat_statfs4,
715
[AC_TRY_RUN([#include <sys/types.h>
716
#include <sys/statfs.h>
720
exit (statfs (".", &fsd, sizeof fsd, 0));
722
fu_cv_sys_stat_statfs4=yes,
723
fu_cv_sys_stat_statfs4=no,
724
fu_cv_sys_stat_statfs4=no)])
725
AC_MSG_RESULT($fu_cv_sys_stat_statfs4)
726
if test $fu_cv_sys_stat_statfs4 = yes; then
728
AC_DEFINE(STAT_STATFS4,1,[Whether statfs requires 4 arguments])
732
if test $space = no; then
734
AC_MSG_CHECKING([for two-argument statfs with statfs.fsize dnl
735
member (4.4BSD and NetBSD)])
736
AC_CACHE_VAL(fu_cv_sys_stat_statfs2_fsize,
737
[AC_TRY_RUN([#include <sys/types.h>
738
#ifdef HAVE_SYS_PARAM_H
739
#include <sys/param.h>
741
#ifdef HAVE_SYS_MOUNT_H
742
#include <sys/mount.h>
748
exit (statfs (".", &fsd));
750
fu_cv_sys_stat_statfs2_fsize=yes,
751
fu_cv_sys_stat_statfs2_fsize=no,
752
fu_cv_sys_stat_statfs2_fsize=no)])
753
AC_MSG_RESULT($fu_cv_sys_stat_statfs2_fsize)
754
if test $fu_cv_sys_stat_statfs2_fsize = yes; then
756
AC_DEFINE(STAT_STATFS2_FSIZE,1,[Whether statfs requires 2 arguments and struct statfs has fsize])
760
if test $space = no; then
762
AC_MSG_CHECKING([for two-argument statfs with struct fs_data (Ultrix)])
763
AC_CACHE_VAL(fu_cv_sys_stat_fs_data,
764
[AC_TRY_RUN([#include <sys/types.h>
765
#ifdef HAVE_SYS_PARAM_H
766
#include <sys/param.h>
768
#ifdef HAVE_SYS_MOUNT_H
769
#include <sys/mount.h>
771
#ifdef HAVE_SYS_FS_TYPES_H
772
#include <sys/fs_types.h>
777
/* Ultrix's statfs returns 1 for success,
778
0 for not mounted, -1 for failure. */
779
exit (statfs (".", &fsd) != 1);
781
fu_cv_sys_stat_fs_data=yes,
782
fu_cv_sys_stat_fs_data=no,
783
fu_cv_sys_stat_fs_data=no)])
784
AC_MSG_RESULT($fu_cv_sys_stat_fs_data)
785
if test $fu_cv_sys_stat_fs_data = yes; then
787
AC_DEFINE(STAT_STATFS2_FS_DATA,1,[Whether statfs requires 2 arguments and struct fs_data is available])
793
#if HAVE_SYS_STATVFS_H
794
# include <sys/statvfs.h>
797
# include <sys/vfs.h>
799
#if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
800
# if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
801
/* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
802
# include <sys/param.h>
803
# include <sys/mount.h>
804
# elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
805
/* Ultrix 4.4 needs these for the declaration of struct statfs. */
806
# include <netinet/in.h>
807
# include <nfs/nfs_clnt.h>
808
# include <nfs/vfs.h>
813
AC_CHECK_MEMBERS([struct statfs.f_namemax],,,[$statxfs_includes])
814
AC_CHECK_MEMBERS([struct statvfs.f_namemax],,,[$statxfs_includes])
815
AC_CHECK_MEMBERS([struct statfs.f_namelen],,,[$statxfs_includes])
816
AC_CHECK_MEMBERS([struct statvfs.f_namelen],,,[$statxfs_includes])
826
AC_CHECK_HEADERS(mntent.h)
827
AC_CHECK_FUNCS(setmntent)
833
[AS_HELP_STRING([--disable-ipv6], [disable IPv6 support])],
835
if test $enableval != "no";
848
[ --with-debug enable protocol debugging output],
850
if test $withval != "no";
852
AC_DEFINE(WITH_DEBUG,1)
856
AC_ARG_WITH(debug-kbd,
857
[ --with-debug-kbd enable debugging of keyboard handling],
859
if test $withval != "no";
861
AC_DEFINE(WITH_DEBUG_KBD,1)
865
AC_ARG_WITH(debug-rdp5,
866
[ --with-debug-rdp5 enable debugging of RDP5 code],
868
if test $withval != "no";
870
AC_DEFINE(WITH_DEBUG_RDP5,1)
874
AC_ARG_WITH(debug-clipboard,
875
[ --with-debug-clipboard enable debugging of clipboard code],
877
if test $withval != "no";
879
AC_DEFINE(WITH_DEBUG_CLIPBOARD,1)
883
AC_ARG_WITH(debug-sound,
884
[ --with-debug-sound enable debugging of sound code],
886
if test $withval != "no";
888
AC_DEFINE(WITH_DEBUG_SOUND,1)
892
AC_ARG_WITH(debug-channel,
893
[ --with-debug-channel enable debugging of virtual channel code],
895
if test $withval != "no";
897
AC_DEFINE(WITH_DEBUG_CHANNEL,1)
901
AC_ARG_WITH(debug-seamless,
902
[ --with-debug-seamless enable debugging of SeamlessRDP code],
904
if test $withval != "no";
906
AC_DEFINE(WITH_DEBUG_SEAMLESS,1)
910
AC_ARG_WITH(debug-serial,
911
[ --with-debug-serial enable debugging of Serial code],
913
if test $withval != "no";
915
AC_DEFINE(WITH_DEBUG_SERIAL,1)
919
AC_ARG_WITH(debug-smartcard,
920
[ --with-debug-smartcard enable debugging of smart-card code],
922
if test $withval != "no";
924
if test x"$WITH_SCARD" = "x1"; then
925
AC_DEFINE(WITH_DEBUG_SCARD,1)
931
# target-specific stuff
933
# strip leading colon from rpath
934
rpath=`echo $rpath |sed 's/^://'`
938
LDFLAGS="$LDFLAGS -R$rpath"
941
LDFLAGS="$LDFLAGS -Wl,-rpath,$rpath"
944
CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
947
CFLAGS="$CFLAGS -D__SGI_IRIX__"
952
# Optional build targets
960
if test "$no_x" = "yes"; then
963
AC_CHECK_LIB(X11, XOpenDisplay, [X_LIBS="$X_LIBS -lX11"])
964
PKG_CHECK_MODULES(XCURSOR, [xcursor])
966
EXTRA_SUBDIRS="$EXTRA_SUBDIRS X11"
970
# DirectFB (optionally built when --with-dfb specified)
974
[AS_HELP_STRING([--with-dfb], [Build DirectFB UI])],
976
# Put dependency check here
977
EXTRA_SUBDIRS="$EXTRA_SUBDIRS dfb"
980
PKG_CHECK_MODULES(DFB, [directfb >= 1.0.0])
984
AC_SUBST(EXTRA_SUBDIRS)
993
libfreerdpkbd/Makefile
995
libfreerdpchanman/Makefile
998
channels/common/Makefile
999
channels/rdpsnd/Makefile
1000
channels/cliprdr/Makefile
1001
channels/rdpdr/Makefile
1002
channels/rdpdr/disk/Makefile
1003
channels/rdpdr/printer/Makefile
1009
echo "FreeRDP configure result:"
1011
echo "Cryptography : $with_crypto"
1012
if test "x$disable_tls" = "xyes"; then
1013
echo " (TLS disabled)"
1015
echo "Sound : $sound"
1016
echo "Printer : $printer"
1018
echo "DirectFB : $dfb"