1 |
AC_INIT(rdesktop, 1.4.0) |
AC_INIT(rdesktop, 1.5.0) |
2 |
|
|
3 |
AC_CONFIG_SRCDIR([rdesktop.c]) |
AC_CONFIG_SRCDIR([rdesktop.c]) |
4 |
|
|
22 |
AC_CHECK_HEADER(sys/strtio.h, AC_DEFINE(HAVE_SYS_STRTIO_H)) |
AC_CHECK_HEADER(sys/strtio.h, AC_DEFINE(HAVE_SYS_STRTIO_H)) |
23 |
AC_CHECK_HEADER(locale.h, AC_DEFINE(HAVE_LOCALE_H)) |
AC_CHECK_HEADER(locale.h, AC_DEFINE(HAVE_LOCALE_H)) |
24 |
AC_CHECK_HEADER(langinfo.h, AC_DEFINE(HAVE_LANGINFO_H)) |
AC_CHECK_HEADER(langinfo.h, AC_DEFINE(HAVE_LANGINFO_H)) |
25 |
AC_CHECK_HEADER(iconv.h, AC_DEFINE(HAVE_ICONV_H)) |
|
26 |
AC_CHECK_HEADER(unistd.h, AC_DEFINE(HAVE_UNISTD_H)) |
AC_CHECK_TOOL(STRIP, strip, :) |
27 |
|
|
28 |
rpath="" |
rpath="" |
29 |
|
|
151 |
|
|
152 |
sound="yes" |
sound="yes" |
153 |
AC_ARG_WITH(sound, |
AC_ARG_WITH(sound, |
154 |
[ --with-sound select sound system ("oss", "sgi", "sun" or "libao") ], |
[ --with-sound select sound system ("oss", "sgi", "sun", "alsa" or "libao") ], |
155 |
[ |
[ |
156 |
sound="$withval" |
sound="$withval" |
157 |
]) |
]) |
177 |
SOUNDOBJ="rdpsnd.o rdpsnd_libao.o" |
SOUNDOBJ="rdpsnd.o rdpsnd_libao.o" |
178 |
LDFLAGS="$LDFLAGS -lao" |
LDFLAGS="$LDFLAGS -lao" |
179 |
AC_DEFINE(WITH_RDPSND) |
AC_DEFINE(WITH_RDPSND) |
180 |
|
elif test "$sound" = alsa; then |
181 |
|
SOUNDOBJ="rdpsnd.o rdpsnd_alsa.o" |
182 |
|
LDFLAGS="$LDFLAGS -lasound" |
183 |
|
AC_DEFINE(WITH_RDPSND) |
184 |
else |
else |
185 |
AC_MSG_WARN([sound support disabled]) |
AC_MSG_WARN([sound support disabled]) |
186 |
AC_MSG_WARN([Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun) and libao]) |
AC_MSG_WARN([Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao]) |
187 |
fi |
fi |
188 |
AC_SUBST(SOUNDOBJ) |
AC_SUBST(SOUNDOBJ) |
189 |
|
|
290 |
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi |
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi |
291 |
done |
done |
292 |
]) |
]) |
293 |
|
AC_CHECK_HEADER(iconv.h, AC_DEFINE(HAVE_ICONV_H)) |
294 |
|
|
295 |
AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ |
AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ |
296 |
am_cv_func_iconv="no, consider installing GNU libiconv" |
am_cv_func_iconv="no, consider installing GNU libiconv" |
402 |
AC_CHECK_HEADERS(sys/statvfs.h) |
AC_CHECK_HEADERS(sys/statvfs.h) |
403 |
AC_CHECK_HEADERS(sys/statfs.h) |
AC_CHECK_HEADERS(sys/statfs.h) |
404 |
AC_CHECK_HEADERS(sys/param.h) |
AC_CHECK_HEADERS(sys/param.h) |
405 |
AC_CHECK_HEADERS(sys/mount.h) |
|
406 |
|
mount_includes="\ |
407 |
|
$ac_includes_default |
408 |
|
#if HAVE_SYS_PARAM_H |
409 |
|
# include <sys/param.h> |
410 |
|
#endif |
411 |
|
" |
412 |
|
|
413 |
|
AC_CHECK_HEADERS(sys/mount.h,,,[$mount_includes]) |
414 |
|
|
415 |
################################################# |
################################################# |
416 |
# these tests are taken from the GNU fileutils package |
# these tests are taken from the GNU fileutils package |
625 |
AC_CHECK_MEMBERS([struct statfs.f_namelen],,,[$statxfs_includes]) |
AC_CHECK_MEMBERS([struct statfs.f_namelen],,,[$statxfs_includes]) |
626 |
AC_CHECK_MEMBERS([struct statvfs.f_namelen],,,[$statxfs_includes]) |
AC_CHECK_MEMBERS([struct statvfs.f_namelen],,,[$statxfs_includes]) |
627 |
|
|
628 |
|
# |
629 |
|
# Large file support |
630 |
|
# |
631 |
|
AC_SYS_LARGEFILE |
632 |
|
|
633 |
|
# |
634 |
# mntent |
# mntent |
635 |
# |
# |
636 |
AC_CHECK_HEADER(mntent.h, AC_DEFINE(HAVE_MNTENT_H)) |
AC_CHECK_HEADER(mntent.h, AC_DEFINE(HAVE_MNTENT_H)) |
641 |
# |
# |
642 |
AC_ARG_WITH(ipv6, |
AC_ARG_WITH(ipv6, |
643 |
[ --with-ipv6 enable IPv6-support], |
[ --with-ipv6 enable IPv6-support], |
644 |
[ AC_DEFINE(IPv6) ]) |
[ |
645 |
|
if test $withval != "no"; |
646 |
|
then |
647 |
|
AC_DEFINE(IPv6,1) |
648 |
|
fi |
649 |
|
]) |
650 |
|
|
651 |
|
|
652 |
# |
# |
654 |
# |
# |
655 |
AC_ARG_WITH(debug, |
AC_ARG_WITH(debug, |
656 |
[ --with-debug enable protocol debugging output], |
[ --with-debug enable protocol debugging output], |
657 |
[ AC_DEFINE(WITH_DEBUG) ]) |
[ |
658 |
|
if test $withval != "no"; |
659 |
|
then |
660 |
|
AC_DEFINE(WITH_DEBUG,1) |
661 |
|
fi |
662 |
|
]) |
663 |
|
|
664 |
AC_ARG_WITH(debug-kbd, |
AC_ARG_WITH(debug-kbd, |
665 |
[ --with-debug-kbd enable debugging of keyboard handling], |
[ --with-debug-kbd enable debugging of keyboard handling], |
666 |
[ AC_DEFINE(WITH_DEBUG_KBD) ]) |
[ |
667 |
|
if test $withval != "no"; |
668 |
|
then |
669 |
|
AC_DEFINE(WITH_DEBUG_KBD,1) |
670 |
|
fi |
671 |
|
]) |
672 |
|
|
673 |
AC_ARG_WITH(debug-rdp5, |
AC_ARG_WITH(debug-rdp5, |
674 |
[ --with-debug-rdp5 enable debugging of RDP5 code], |
[ --with-debug-rdp5 enable debugging of RDP5 code], |
675 |
[ AC_DEFINE(WITH_DEBUG_RDP5) ]) |
[ |
676 |
|
if test $withval != "no"; |
677 |
|
then |
678 |
|
AC_DEFINE(WITH_DEBUG_RDP5,1) |
679 |
|
fi |
680 |
|
]) |
681 |
|
|
682 |
AC_ARG_WITH(debug-clipboard, |
AC_ARG_WITH(debug-clipboard, |
683 |
[ --with-debug-clipboard enable debugging of clipboard code], |
[ --with-debug-clipboard enable debugging of clipboard code], |
684 |
[ AC_DEFINE(WITH_DEBUG_CLIPBOARD) ]) |
[ |
685 |
|
if test $withval != "no"; |
686 |
|
then |
687 |
|
AC_DEFINE(WITH_DEBUG_CLIPBOARD,1) |
688 |
|
fi |
689 |
|
]) |
690 |
|
|
691 |
|
AC_ARG_WITH(debug-channel, |
692 |
|
[ --with-debug-channel enable debugging of virtual channel code], |
693 |
|
[ |
694 |
|
if test $withval != "no"; |
695 |
|
then |
696 |
|
AC_DEFINE(WITH_DEBUG_CHANNEL,1) |
697 |
|
fi |
698 |
|
]) |
699 |
|
|
700 |
|
|
701 |
# |
# |