1 2dnl Copyright 2005 Red Hat, Inc. 3dnl 4dnl Permission to use, copy, modify, distribute, and sell this software and its 5dnl documentation for any purpose is hereby granted without fee, provided that 6dnl the above copyright notice appear in all copies and that both that 7dnl copyright notice and this permission notice appear in supporting 8dnl documentation, and that the name of Red Hat not be used in 9dnl advertising or publicity pertaining to distribution of the software without 10dnl specific, written prior permission. Red Hat makes no 11dnl representations about the suitability of this software for any purpose. It 12dnl is provided "as is" without express or implied warranty. 13dnl 14dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20dnl PERFORMANCE OF THIS SOFTWARE. 21dnl 22dnl Process this file with autoconf to create configure. 23 24# Initialize Autoconf 25AC_PREREQ([2.60]) 26AC_INIT([xmodmap], 27 [1.0.11], 28 [https://gitlab.freedesktop.org/xorg/app/xmodmap/issues], 29 [xmodmap]) 30AC_CONFIG_SRCDIR([Makefile.am]) 31AC_CONFIG_HEADERS([config.h]) 32# Needed for asprintf on GNU libc 33AC_USE_SYSTEM_EXTENSIONS 34 35# Initialize Automake 36AM_INIT_AUTOMAKE([foreign dist-xz]) 37 38# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 39m4_ifndef([XORG_MACROS_VERSION], 40 [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 41XORG_MACROS_VERSION(1.8) 42XORG_DEFAULT_OPTIONS 43 44AC_CHECK_FUNCS([strncasecmp asprintf]) 45 46# Checks for pkg-config packages 47PKG_CHECK_MODULES(XMODMAP, [x11 xproto >= 7.0.25]) 48 49dnl Allow checking code with lint, sparse, etc. 50XORG_WITH_LINT 51 52AC_CONFIG_FILES([Makefile 53 man/Makefile]) 54AC_OUTPUT 55