11a30de1fSmrg 21a30de1fSmrgdnl Copyright 2005 Red Hat, Inc. 31a30de1fSmrgdnl 41a30de1fSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 51a30de1fSmrgdnl documentation for any purpose is hereby granted without fee, provided that 61a30de1fSmrgdnl the above copyright notice appear in all copies and that both that 71a30de1fSmrgdnl copyright notice and this permission notice appear in supporting 81a30de1fSmrgdnl documentation, and that the name of Red Hat not be used in 91a30de1fSmrgdnl advertising or publicity pertaining to distribution of the software without 101a30de1fSmrgdnl specific, written prior permission. Red Hat makes no 111a30de1fSmrgdnl representations about the suitability of this software for any purpose. It 121a30de1fSmrgdnl is provided "as is" without express or implied warranty. 131a30de1fSmrgdnl 141a30de1fSmrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 151a30de1fSmrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 161a30de1fSmrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 171a30de1fSmrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 181a30de1fSmrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 191a30de1fSmrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 201a30de1fSmrgdnl PERFORMANCE OF THIS SOFTWARE. 211a30de1fSmrgdnl 221a30de1fSmrgdnl Process this file with autoconf to create configure. 231a30de1fSmrg 24a733a5bfSmrg# Initialize Autoconf 25ce62200cSmrgAC_PREREQ([2.60]) 26ce62200cSmrgAC_INIT([xmodmap], 276eaa481cSmrg [1.0.11], 28423b239cSmrg [https://gitlab.freedesktop.org/xorg/app/xmodmap/issues], 29ce62200cSmrg [xmodmap]) 30a733a5bfSmrgAC_CONFIG_SRCDIR([Makefile.am]) 31a733a5bfSmrgAC_CONFIG_HEADERS([config.h]) 32a733a5bfSmrg# Needed for asprintf on GNU libc 33a733a5bfSmrgAC_USE_SYSTEM_EXTENSIONS 34a733a5bfSmrg 35a733a5bfSmrg# Initialize Automake 366eaa481cSmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 371a30de1fSmrg 38ce62200cSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 39ce62200cSmrgm4_ifndef([XORG_MACROS_VERSION], 40ce62200cSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 41ce62200cSmrgXORG_MACROS_VERSION(1.8) 42ce62200cSmrgXORG_DEFAULT_OPTIONS 43b7fb5eacSmrg 44a733a5bfSmrgAC_CHECK_FUNCS([strncasecmp asprintf]) 451a30de1fSmrg 461a30de1fSmrg# Checks for pkg-config packages 471b983734SmrgPKG_CHECK_MODULES(XMODMAP, [x11 xproto >= 7.0.25]) 481a30de1fSmrg 491a30de1fSmrgdnl Allow checking code with lint, sparse, etc. 501a30de1fSmrgXORG_WITH_LINT 511a30de1fSmrg 52ce62200cSmrgAC_CONFIG_FILES([Makefile 53ce62200cSmrg man/Makefile]) 54ce62200cSmrgAC_OUTPUT 55