configure.ac revision e5383a99
1 2# Initialize Autoconf 3AC_PREREQ([2.60]) 4AC_INIT([libXext], [1.3.3], 5 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXext]) 6AC_CONFIG_SRCDIR([Makefile.am]) 7AC_CONFIG_HEADERS([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_SPECS 21XORG_WITH_XMLTO(0.0.22) 22XORG_WITH_FOP 23XORG_WITH_XSLTPROC 24XORG_CHECK_SGML_DOCTOOLS(1.8) 25XORG_CHECK_MALLOC_ZERO 26 27# Determine .so library version per platform 28# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl 29if test "x$XEXT_SOREV" = "x" ; then 30 case $host_os in 31 openbsd*) XEXT_SOREV=8:0 ;; 32 solaris*) XEXT_SOREV=0 ;; 33 *) XEXT_SOREV=6:4:0 ;; 34 esac 35fi 36AC_SUBST(XEXT_SOREV) 37 38# Obtain compiler/linker options for depedencies 39PKG_CHECK_MODULES(XEXT, [xproto >= 7.0.13] [x11 >= 1.6] [xextproto >= 7.1.99]) 40 41# Allow checking code with lint, sparse, etc. 42XORG_WITH_LINT 43XORG_LINT_LIBRARY([Xext]) 44 45AC_CONFIG_FILES([Makefile 46 man/Makefile 47 src/Makefile 48 specs/Makefile 49 xext.pc]) 50AC_OUTPUT 51