configure.ac revision a5602400
1
2# Initialize Autoconf
3AC_PREREQ([2.60])
4AC_INIT([libXext], [1.3.0],
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])
11AM_MAINTAINER_MODE
12
13# Initialize libtool
14AC_PROG_LIBTOOL
15
16# Require xorg-macros minimum of 1.12 for DocBook external references
17m4_ifndef([XORG_MACROS_VERSION],
18          [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])])
19XORG_MACROS_VERSION(1.12)
20XORG_DEFAULT_OPTIONS
21XORG_ENABLE_SPECS
22XORG_WITH_XMLTO(0.0.22)
23XORG_WITH_FOP
24XORG_WITH_XSLTPROC
25XORG_CHECK_SGML_DOCTOOLS(1.7)
26XORG_CHECK_MALLOC_ZERO
27
28# Determine .so library version per platform 
29# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
30if test "x$XEXT_SOREV" = "x" ; then
31    case $host_os in
32	openbsd*)	XEXT_SOREV=8:0 		;;
33	solaris*)       XEXT_SOREV=0 		;;
34	*)              XEXT_SOREV=6:4:0 	;;
35    esac
36fi
37AC_SUBST(XEXT_SOREV)
38
39# Obtain compiler/linker options for depedencies
40PKG_CHECK_MODULES(XEXT, [xproto >= 7.0.13] [x11 >= 1.1.99.1] [xextproto >= 7.1.99])
41
42# Allow checking code with lint, sparse, etc.
43XORG_WITH_LINT
44XORG_LINT_LIBRARY([Xext])
45
46AC_CONFIG_FILES([Makefile
47		man/Makefile
48		src/Makefile
49		specs/Makefile
50		xext.pc])
51AC_OUTPUT
52