configure.ac revision 3544ea2e
1dnl Process this file with autoconf to create configure.
2
3# Initialize Autoconf
4AC_PREREQ([2.60])
5AC_INIT([xhost], [1.0.5],
6        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xhost])
7AC_CONFIG_SRCDIR([Makefile.am])
8AC_CONFIG_HEADERS([config.h])
9
10# Initialize Automake
11AM_INIT_AUTOMAKE([foreign dist-bzip2])
12AM_MAINTAINER_MODE
13
14# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
15m4_ifndef([XORG_MACROS_VERSION],
16	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
17XORG_MACROS_VERSION(1.8)
18XORG_DEFAULT_OPTIONS
19
20AC_TYPE_SIGNAL
21
22# Checks for pkg-config packages
23# - Both CFLAGS & LIBS needed:
24PKG_CHECK_MODULES(XHOST, x11 xmuu)
25# - Only CFLAGS needed, not libs:
26PKG_CHECK_MODULES(XAU, xau)
27
28# Transport selection macro from xtrans.m4
29XTRANS_CONNECTION_FLAGS
30
31# Secure RPC detection macro from xtrans.m4
32XTRANS_SECURE_RPC_FLAGS
33
34AC_CONFIG_FILES([
35	Makefile
36	man/Makefile])
37AC_OUTPUT
38