configure.ac revision e8a5466a
1# -*- Autoconf -*- 2# Process this file with autoconf to produce a configure script. 3 4AC_PREREQ([2.60]) 5AC_INIT([libXext], 6 [1.2.0], 7 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 8 [libXext]) 9 10AC_CONFIG_SRCDIR([Makefile.am]) 11AM_INIT_AUTOMAKE([foreign dist-bzip2]) 12 13AM_MAINTAINER_MODE 14 15# Require xorg-macros minimum of 1.10 for DocBook XML documentation 16m4_ifndef([XORG_MACROS_VERSION], 17 [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])]) 18XORG_MACROS_VERSION(1.10) 19XORG_DEFAULT_OPTIONS 20XORG_ENABLE_SPECS 21XORG_WITH_XMLTO(0.0.20) 22XORG_WITH_FOP 23XORG_CHECK_SGML_DOCTOOLS(1.5) 24AM_CONFIG_HEADER([config.h]) 25 26# Determine .so library version per platform 27# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl 28AC_CANONICAL_HOST 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# Checks for programs. 39AC_PROG_LIBTOOL 40AC_PROG_CC 41 42# Checks for pkg-config packages 43PKG_CHECK_MODULES(XEXT, [xproto >= 7.0.13] [x11 >= 1.1.99.1] [xextproto >= 7.0.99.2]) 44AC_SUBST(XEXT_CFLAGS) 45AC_SUBST(XEXT_LIBS) 46 47# Checks for libraries. 48 49# Checks for header files. 50AC_HEADER_STDC 51 52XORG_CHECK_MALLOC_ZERO 53 54dnl Allow checking code with lint, sparse, etc. 55XORG_WITH_LINT 56XORG_LINT_LIBRARY([Xext]) 57 58AC_OUTPUT([Makefile 59 man/Makefile 60 src/Makefile 61 specs/Makefile 62 xext.pc]) 63