4 AC_INIT([libSM], [1.2.1],
5 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libSM])
6 AC_CONFIG_SRCDIR([Makefile.am])
7 AC_CONFIG_HEADERS([config.h])
10 AM_INIT_AUTOMAKE([foreign dist-bzip2])
16 # Require xorg-macros minimum of 1.12 for DocBook external references
17 m4_ifndef([XORG_MACROS_VERSION],
18 [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])])
19 XORG_MACROS_VERSION(1.12)
22 XORG_WITH_XMLTO(0.0.22)
25 XORG_CHECK_SGML_DOCTOOLS(1.8)
27 # Obtain compiler/linker options for depedencies
28 PKG_CHECK_MODULES(SM, [ice >= 1.0.5] xproto xtrans)
30 # Needed to check for TCP & IPv6 support and set flags appropriately
31 XTRANS_CONNECTION_FLAGS
33 AC_ARG_WITH(libuuid, AS_HELP_STRING([--with-libuuid], [Build with libuuid support for client IDs]))
35 AC_CHECK_FUNCS([uuid_create], [], [
36 if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then
37 PKG_CHECK_MODULES(LIBUUID, uuid, [HAVE_LIBUUID=yes], [HAVE_LIBUUID=no])
39 if test x"$with_libuuid" = xyes && test x"$HAVE_LIBUUID" = xno; then
40 AC_MSG_ERROR([requested libuuid support but uuid.pc not found])
44 AM_CONDITIONAL(WITH_LIBUUID, test x"$HAVE_LIBUUID" = xyes)
46 AC_CONFIG_FILES([Makefile