1fc89c0fbSmrgdnl  Copyright 2005 Red Hat, Inc.
2fc89c0fbSmrgdnl 
3fc89c0fbSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
4fc89c0fbSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
5fc89c0fbSmrgdnl  the above copyright notice appear in all copies and that both that
6fc89c0fbSmrgdnl  copyright notice and this permission notice appear in supporting
7fc89c0fbSmrgdnl  documentation, and that the name of Red Hat not be used in
8fc89c0fbSmrgdnl  advertising or publicity pertaining to distribution of the software without
9fc89c0fbSmrgdnl  specific, written prior permission.  Red Hat makes no
10fc89c0fbSmrgdnl  representations about the suitability of this software for any purpose.  It
11fc89c0fbSmrgdnl  is provided "as is" without express or implied warranty.
12fc89c0fbSmrgdnl 
13fc89c0fbSmrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
14fc89c0fbSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
15fc89c0fbSmrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
16fc89c0fbSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
17fc89c0fbSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18fc89c0fbSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19fc89c0fbSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
20fc89c0fbSmrgdnl
21fc89c0fbSmrgdnl Process this file with autoconf to create configure.
22fc89c0fbSmrg
23576bbdfcSmrg# Initialize Autoconf
24a0996ce0SmrgAC_PREREQ([2.60])
25c8df0c59SmrgAC_INIT([xprop], [1.2.8],
2649bee38cSmrg        [https://gitlab.freedesktop.org/xorg/app/xprop/-/issues], [xprop])
27576bbdfcSmrgAC_CONFIG_SRCDIR([Makefile.am])
28576bbdfcSmrgAC_CONFIG_HEADERS([config.h])
29576bbdfcSmrg
30576bbdfcSmrg# Initialize Automake
3149bee38cSmrgAM_INIT_AUTOMAKE([foreign dist-xz])
32fc89c0fbSmrg
33a0996ce0Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3491ec45ceSmrgm4_ifndef([XORG_MACROS_VERSION],
35a0996ce0Smrg	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
36a0996ce0SmrgXORG_MACROS_VERSION(1.8)
3791ec45ceSmrgXORG_DEFAULT_OPTIONS
3891ec45ceSmrg
3991ec45ceSmrgAC_CHECK_HEADERS([wchar.h wctype.h langinfo.h])
40fc89c0fbSmrg
41fc89c0fbSmrg# Checks for pkg-config packages
4281676fe2SmrgPKG_CHECK_MODULES(XPROP, [x11 xproto >= 7.0.25])
43fc89c0fbSmrg
44fc89c0fbSmrgXORG_WITH_LINT
45fc89c0fbSmrg
46f4a95042SmrgAC_CONFIG_FILES([
47f4a95042Smrg	Makefile
48f4a95042Smrg	man/Makefile])
49f4a95042SmrgAC_OUTPUT
50