configure.ac revision b9b4fd27
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.60])
5AC_INIT([libXext],
6        [1.1.2],
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: XORG_DEFAULT_OPTIONS
16m4_ifndef([XORG_MACROS_VERSION],
17          [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
18XORG_MACROS_VERSION(1.3)
19XORG_DEFAULT_OPTIONS
20AM_CONFIG_HEADER([config.h])
21
22# Determine .so library version per platform 
23# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
24AC_CANONICAL_HOST
25if test "x$XEXT_SOREV" = "x" ; then
26    case $host_os in
27	openbsd*)	XEXT_SOREV=8:0 		;;
28	solaris*)       XEXT_SOREV=0 		;;
29	*)              XEXT_SOREV=6:4:0 	;;
30    esac
31fi
32AC_SUBST(XEXT_SOREV)
33
34# Checks for programs.
35AC_PROG_LIBTOOL
36AC_PROG_CC
37
38# Checks for pkg-config packages
39PKG_CHECK_MODULES(XEXT, [xproto >= 7.0.13] [x11 >= 1.1.99.1] [xextproto >= 7.0.99.2])
40AC_SUBST(XEXT_CFLAGS)
41AC_SUBST(XEXT_LIBS)
42
43# Checks for libraries.
44
45# Checks for header files.
46AC_HEADER_STDC
47
48XORG_CHECK_MALLOC_ZERO
49
50# Man page processing requirements
51XORG_PROG_RAWCPP
52
53dnl Allow checking code with lint, sparse, etc.
54XORG_WITH_LINT
55XORG_LINT_LIBRARY([Xext])
56
57AC_OUTPUT([Makefile
58           man/Makefile
59	   src/Makefile
60	   xext.pc])
61