2006-11-25 09:46:32 -07:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_PREREQ(2.57)
|
|
|
|
AC_INIT([libXext],
|
2010-05-10 14:06:53 -06:00
|
|
|
1.1.1,
|
2006-11-25 09:46:32 -07:00
|
|
|
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
|
|
|
libXext)
|
|
|
|
|
|
|
|
AC_CONFIG_SRCDIR([Makefile.am])
|
2010-05-10 14:06:53 -06:00
|
|
|
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
2006-11-25 09:46:32 -07:00
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2010-05-10 14:06:53 -06:00
|
|
|
# Require xorg-macros: XORG_DEFAULT_OPTIONS, XORG_WITH_LINT
|
|
|
|
m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.3 or later before running autoconf/autogen])])
|
|
|
|
XORG_MACROS_VERSION(1.3)
|
2006-11-25 09:46:32 -07:00
|
|
|
AM_CONFIG_HEADER([config.h])
|
|
|
|
|
|
|
|
# Determine .so library version per platform
|
|
|
|
# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
|
|
|
|
AC_CANONICAL_HOST
|
2008-05-24 03:29:33 -06:00
|
|
|
if test "x$XEXT_SOREV" = "x" ; then
|
|
|
|
case $host_os in
|
2006-11-25 09:46:32 -07:00
|
|
|
openbsd*) XEXT_SOREV=8:0 ;;
|
|
|
|
solaris*) XEXT_SOREV=0 ;;
|
|
|
|
*) XEXT_SOREV=6:4:0 ;;
|
2008-05-24 03:29:33 -06:00
|
|
|
esac
|
|
|
|
fi
|
2006-11-25 09:46:32 -07:00
|
|
|
AC_SUBST(XEXT_SOREV)
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_PROG_CC
|
2010-05-10 14:06:53 -06:00
|
|
|
XORG_DEFAULT_OPTIONS
|
2006-11-25 09:46:32 -07:00
|
|
|
|
|
|
|
# Checks for pkg-config packages
|
2010-05-10 14:06:53 -06:00
|
|
|
PKG_CHECK_MODULES(XEXT, [xproto >= 7.0.13] [x11 >= 1.1.99.1] [xextproto >= 7.0.99.2])
|
|
|
|
XEXT_CFLAGS="$CWARNFLAGS $XEXT_CFLAGS"
|
2006-11-25 09:46:32 -07:00
|
|
|
AC_SUBST(XEXT_CFLAGS)
|
|
|
|
AC_SUBST(XEXT_LIBS)
|
|
|
|
|
|
|
|
# Checks for libraries.
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
|
|
|
XORG_CHECK_MALLOC_ZERO
|
|
|
|
|
|
|
|
# Man page processing requirements
|
|
|
|
XORG_PROG_RAWCPP
|
|
|
|
|
2008-05-24 03:29:33 -06:00
|
|
|
dnl Allow checking code with lint, sparse, etc.
|
|
|
|
XORG_WITH_LINT
|
|
|
|
XORG_LINT_LIBRARY([Xext])
|
|
|
|
LINT_FLAGS="${LINT_FLAGS} ${XEXT_CFLAGS}"
|
|
|
|
|
2006-11-25 09:46:32 -07:00
|
|
|
AC_OUTPUT([Makefile
|
|
|
|
man/Makefile
|
|
|
|
src/Makefile
|
|
|
|
xext.pc])
|