19fe995a9Smrg
29fe995a9Smrgdnl  Copyright 2005 Red Hat, Inc.
39fe995a9Smrgdnl 
49fe995a9Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
59fe995a9Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
69fe995a9Smrgdnl  the above copyright notice appear in all copies and that both that
79fe995a9Smrgdnl  copyright notice and this permission notice appear in supporting
89fe995a9Smrgdnl  documentation, and that the name of Red Hat not be used in
99fe995a9Smrgdnl  advertising or publicity pertaining to distribution of the software without
109fe995a9Smrgdnl  specific, written prior permission.  Red Hat makes no
119fe995a9Smrgdnl  representations about the suitability of this software for any purpose.  It
129fe995a9Smrgdnl  is provided "as is" without express or implied warranty.
139fe995a9Smrgdnl 
149fe995a9Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
159fe995a9Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
169fe995a9Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
179fe995a9Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
189fe995a9Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
199fe995a9Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
209fe995a9Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
219fe995a9Smrgdnl
229fe995a9Smrgdnl Process this file with autoconf to create configure.
239fe995a9Smrg
24e8ac26b0Smrg# Initialize Autoconf
25772b5186SmrgAC_PREREQ([2.70])
26772b5186SmrgAC_INIT([iceauth], [1.0.10],
27772b5186Smrg        [https://gitlab.freedesktop.org/xorg/app/iceauth/-/issues], [iceauth])
28e8ac26b0SmrgAC_CONFIG_SRCDIR([Makefile.am])
2990b6713cSmrgAC_CONFIG_HEADERS([config.h])
309fe995a9Smrg
31772b5186Smrg# Set common system defines for POSIX extensions, such as _GNU_SOURCE
32772b5186Smrg# Must be called before any macros that run the compiler (like
33772b5186Smrg# AC_PROG_LIBTOOL) to avoid autoconf errors.
34772b5186SmrgAC_USE_SYSTEM_EXTENSIONS
35772b5186Smrg
36e8ac26b0Smrg# Initialize Automake
37c048b52eSmrgAM_INIT_AUTOMAKE([foreign dist-xz])
38e8ac26b0Smrg
39b62cc08cSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
40b62cc08cSmrgm4_ifndef([XORG_MACROS_VERSION],
41b62cc08cSmrg	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
42b62cc08cSmrgXORG_MACROS_VERSION(1.8)
43b62cc08cSmrgXORG_DEFAULT_OPTIONS
44b62cc08cSmrg
45772b5186Smrg# Checks for typedefs, structures, and compiler characteristics.
46772b5186SmrgAC_SYS_LARGEFILE
47772b5186Smrg
48772b5186Smrg# Checks for library functions.
49772b5186SmrgAC_CHECK_FUNCS([reallocarray])
50772b5186Smrg
519fe995a9Smrg# Checks for pkg-config packages
529d794632SmrgPKG_CHECK_MODULES(ICEAUTH, [xproto >= 7.0.22 ice])
539fe995a9Smrg
549fe995a9SmrgXORG_WITH_LINT
559fe995a9Smrg
5690b6713cSmrgAC_CONFIG_FILES([
5790b6713cSmrg	Makefile
5890b6713cSmrg	man/Makefile])
5990b6713cSmrgAC_OUTPUT
60