1 2# Initialize Autoconf 3AC_PREREQ([2.60]) 4AC_INIT([libXi], [1.8], 5 [https://gitlab.freedesktop.org/xorg/lib/libXi/issues], [libXi]) 6AC_CONFIG_SRCDIR([Makefile.am]) 7AC_CONFIG_HEADERS([src/config.h]) 8 9# Initialize Automake 10AM_INIT_AUTOMAKE([foreign dist-bzip2]) 11 12# Initialize libtool 13AC_PROG_LIBTOOL 14 15# Require xorg-macros minimum of 1.12 for DocBook external references 16m4_ifndef([XORG_MACROS_VERSION], 17 [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])]) 18XORG_MACROS_VERSION(1.12) 19XORG_DEFAULT_OPTIONS 20XORG_ENABLE_DOCS 21XORG_ENABLE_SPECS 22XORG_WITH_XMLTO(0.0.22) 23XORG_WITH_FOP 24XORG_WITH_XSLTPROC 25XORG_CHECK_SGML_DOCTOOLS(1.8) 26XORG_WITH_ASCIIDOC(8.4.5) 27XORG_CHECK_MALLOC_ZERO 28 29# Obtain compiler/linker options for dependencies 30PKG_CHECK_MODULES(XI, [xproto >= 7.0.13] [x11 >= 1.6] [xextproto >= 7.0.3] [xext >= 1.0.99.1] [inputproto >= 2.3.99.1]) 31# CFLAGS only for PointerBarrier typedef 32PKG_CHECK_MODULES(XFIXES, [xfixes >= 5]) 33 34# Check for xmlto and asciidoc for man page conversion 35# (only needed by people building tarballs) 36if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then 37 have_doctools=yes 38else 39 have_doctools=no 40fi 41AM_CONDITIONAL([HAVE_DOCTOOLS], [test $have_doctools = yes]) 42if test $have_doctools = no; then 43 AC_MSG_WARN([xmlto or asciidoc not found - cannot create man pages without it]) 44fi 45 46# Determine if the source for man pages is available 47# It may already be present (tarball) or can be generated using doctools 48AM_CONDITIONAL([INSTALL_MANPAGES], 49 [test -f "$srcdir/man/XAllowDeviceEvents.man" || \ 50 test $have_doctools = yes]) 51 52AC_CONFIG_FILES([Makefile 53 src/Makefile 54 man/Makefile 55 specs/Makefile 56 xi.pc]) 57AC_OUTPUT 58