2 # Process this file with autoconf to produce a configure script.
7 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
10 AC_CONFIG_SRCDIR([Makefile.am])
11 AM_INIT_AUTOMAKE([foreign dist-bzip2])
15 # Require xorg-macros minimum of 1.10 for DocBook XML documentation
16 m4_ifndef([XORG_MACROS_VERSION],
17 [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])])
18 XORG_MACROS_VERSION(1.10)
21 XORG_WITH_XMLTO(0.0.20)
23 XORG_CHECK_SGML_DOCTOOLS(1.5)
25 AM_CONFIG_HEADER([config.h])
27 # Checks for programs.
31 # Checks for pkg-config packages
32 PKG_CHECK_MODULES(SM, [ice >= 1.0.5] xproto)
36 PKG_CHECK_MODULES(XTRANS, xtrans)
37 AC_SUBST(XTRANS_CFLAGS)
40 # Checks for libraries.
42 # Checks for header files.
45 # Needed to check for TCP & IPv6 support and set flags appropriately
46 XTRANS_CONNECTION_FLAGS
48 AC_ARG_WITH(libuuid, AC_HELP_STRING([--with-libuuid], [Build with libuuid support for client IDs]))
50 AC_CHECK_FUNCS([uuid_create], [], [
51 if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then
52 PKG_CHECK_MODULES(LIBUUID, uuid, [HAVE_LIBUUID=yes], [HAVE_LIBUUID=no])
54 if test x"$with_libuuid" = xyes && test x"$HAVE_LIBUUID" = xno; then
55 AC_MSG_ERROR([requested libuuid support but uuid.pc not found])
59 AM_CONDITIONAL(WITH_LIBUUID, test x"$HAVE_LIBUUID" = xyes)