3 # Process this file with autoconf to produce a configure script.
9 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
12 AC_CONFIG_SRCDIR([Makefile.am])
14 AM_INIT_AUTOMAKE([foreign dist-bzip2])
18 # Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS
19 m4_ifndef([XORG_MACROS_VERSION],
20 [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])])
21 XORG_MACROS_VERSION(1.10)
24 XORG_WITH_XMLTO(0.0.20)
26 XORG_CHECK_SGML_DOCTOOLS(1.5)
28 AM_CONFIG_HEADER([config.h])
31 # Checks for programs.
34 # Checks for pkg-config packages
35 PKG_CHECK_MODULES(XMU, xt xext x11 xextproto)
36 PKG_CHECK_MODULES(XMUU, x11)
38 # CvtStdSel.c needs to know which network transports to build hostname
39 # conversion routines for
40 XTRANS_CONNECTION_FLAGS
43 # Assume that we have sprintf. If a system shows up
44 # that doesn't, we will deal with it at that point.
46 # The way to deal with it is:
48 # 1. Add a test for sprintf it here in configure.ac
49 # that sets or unsets HAS_SNPRINTF as appropriate
51 # 2. add a copy of xc/lib/misc/snprintf.c
53 # The source file in question is Lower.c
56 AC_DEFINE(HAS_SNPRINTF, [], [Whether we have snprintf()])
57 AC_SUBST(HAS_SNPRINTF)
59 dnl Allow checking code with lint, sparse, etc.
61 XORG_LINT_LIBRARY([Xmu])
62 LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/`