upload tizen2.0 source
[framework/uifw/xorg/lib/libxext.git] / configure.ac
1
2 # Initialize Autoconf
3 AC_PREREQ([2.60])
4 AC_INIT([libXext], [1.3.1],
5         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXext])
6 AC_CONFIG_SRCDIR([Makefile.am])
7 AC_CONFIG_HEADERS([config.h])
8
9 # Initialize Automake
10 AM_INIT_AUTOMAKE([foreign dist-bzip2])
11 AM_MAINTAINER_MODE
12
13 # Initialize libtool
14 AC_PROG_LIBTOOL
15
16 # Require xorg-macros minimum of 1.12 for DocBook external references
17 m4_ifndef([XORG_MACROS_VERSION],
18           [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])])
19 XORG_MACROS_VERSION(1.12)
20 XORG_DEFAULT_OPTIONS
21 XORG_ENABLE_SPECS
22 XORG_WITH_XMLTO(0.0.22)
23 XORG_WITH_FOP
24 XORG_WITH_XSLTPROC
25 XORG_CHECK_SGML_DOCTOOLS(1.8)
26 XORG_CHECK_MALLOC_ZERO
27
28 # Determine .so library version per platform
29 # based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
30 if 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
36 fi
37 AC_SUBST(XEXT_SOREV)
38
39 # Obtain compiler/linker options for depedencies
40 PKG_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.
43 XORG_WITH_LINT
44 XORG_LINT_LIBRARY([Xext])
45
46 AC_CONFIG_FILES([Makefile
47                 man/Makefile
48                 src/Makefile
49                 specs/Makefile
50                 xext.pc])
51 AC_OUTPUT