mirror of
https://gitlab.freedesktop.org/xorg/lib/libxcb-errors.git
synced 2025-12-20 05:50:05 +01:00
30 lines
885 B
Text
30 lines
885 B
Text
|
|
dnl XCB_UTIL_M4_WITH_INCLUDE_PATH requires Autoconf >= 2.62
|
||
|
|
AC_PREREQ(2.62)
|
||
|
|
AC_INIT([xcb-util-errors],0.0,[xcb@lists.freedesktop.org])
|
||
|
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||
|
|
AC_CONFIG_MACRO_DIR([m4])
|
||
|
|
|
||
|
|
# Set common system defines for POSIX extensions, such as _GNU_SOURCE
|
||
|
|
# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
|
||
|
|
# to avoid autoconf errors.
|
||
|
|
AC_USE_SYSTEM_EXTENSIONS
|
||
|
|
|
||
|
|
AM_INIT_AUTOMAKE([foreign dist-bzip2 subdir-objects])
|
||
|
|
AM_MAINTAINER_MODE
|
||
|
|
|
||
|
|
AC_TYPE_SSIZE_T
|
||
|
|
|
||
|
|
XCB_UTIL_M4_WITH_INCLUDE_PATH
|
||
|
|
XCB_UTIL_COMMON([1.4], [1.6])
|
||
|
|
|
||
|
|
# Checks for xcb-proto's XML files, inspired from libxcb's configure.ac
|
||
|
|
PKG_CHECK_MODULES(XCBPROTO, xcb-proto)
|
||
|
|
AC_MSG_CHECKING(XCBPROTO_XCBINCLUDEDIR)
|
||
|
|
XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
|
||
|
|
AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR)
|
||
|
|
AC_SUBST(XCBPROTO_XCBINCLUDEDIR)
|
||
|
|
|
||
|
|
AC_OUTPUT([Makefile
|
||
|
|
xcb-errors.pc
|
||
|
|
])
|