2006-11-25 09:46:32 -07:00
|
|
|
|
2011-05-30 13:27:42 -06:00
|
|
|
# Initialize Autoconf
|
2010-07-17 09:31:12 -06:00
|
|
|
AC_PREREQ([2.60])
|
2014-09-28 11:18:23 -06:00
|
|
|
AC_INIT([libXext], [1.3.3],
|
2011-05-30 13:27:42 -06:00
|
|
|
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXext])
|
2006-11-25 09:46:32 -07:00
|
|
|
AC_CONFIG_SRCDIR([Makefile.am])
|
2011-05-30 13:27:42 -06:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2006-11-25 09:46:32 -07:00
|
|
|
|
2011-05-30 13:27:42 -06:00
|
|
|
# Initialize Automake
|
|
|
|
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
2014-09-28 11:18:23 -06:00
|
|
|
AM_MAINTAINER_MODE
|
2006-11-25 09:46:32 -07:00
|
|
|
|
2011-05-30 13:27:42 -06:00
|
|
|
# Initialize libtool
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
# Require xorg-macros minimum of 1.12 for DocBook external references
|
2010-07-17 09:31:12 -06:00
|
|
|
m4_ifndef([XORG_MACROS_VERSION],
|
2011-05-30 13:27:42 -06:00
|
|
|
[m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])])
|
|
|
|
XORG_MACROS_VERSION(1.12)
|
2010-07-17 09:31:12 -06:00
|
|
|
XORG_DEFAULT_OPTIONS
|
2010-11-11 03:17:24 -07:00
|
|
|
XORG_ENABLE_SPECS
|
2011-05-30 13:27:42 -06:00
|
|
|
XORG_WITH_XMLTO(0.0.22)
|
2010-11-11 03:17:24 -07:00
|
|
|
XORG_WITH_FOP
|
2011-05-30 13:27:42 -06:00
|
|
|
XORG_WITH_XSLTPROC
|
2012-03-10 07:01:58 -07:00
|
|
|
XORG_CHECK_SGML_DOCTOOLS(1.8)
|
2011-05-30 13:27:42 -06:00
|
|
|
XORG_CHECK_MALLOC_ZERO
|
2006-11-25 09:46:32 -07:00
|
|
|
|
2012-03-10 07:01:58 -07:00
|
|
|
# Determine .so library version per platform
|
2006-11-25 09:46:32 -07:00
|
|
|
# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
|
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)
|
|
|
|
|
2011-05-30 13:27:42 -06:00
|
|
|
# Obtain compiler/linker options for depedencies
|
2014-09-28 11:18:23 -06:00
|
|
|
PKG_CHECK_MODULES(XEXT, [xproto >= 7.0.13] [x11 >= 1.6] [xextproto >= 7.1.99])
|
2013-05-23 16:42:07 -06:00
|
|
|
|
2011-05-30 13:27:42 -06:00
|
|
|
# Allow checking code with lint, sparse, etc.
|
2008-05-24 03:29:33 -06:00
|
|
|
XORG_WITH_LINT
|
|
|
|
XORG_LINT_LIBRARY([Xext])
|
|
|
|
|
2011-05-30 13:27:42 -06:00
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
man/Makefile
|
|
|
|
src/Makefile
|
|
|
|
specs/Makefile
|
|
|
|
xext.pc])
|
|
|
|
AC_OUTPUT
|