18c9fbc29Smrg
24cd6a3aeSmrg#  Copyright 2005 Red Hat, Inc.
34cd6a3aeSmrg#
44cd6a3aeSmrg#  Permission to use, copy, modify, distribute, and sell this software and its
54cd6a3aeSmrg#  documentation for any purpose is hereby granted without fee, provided that
64cd6a3aeSmrg#  the above copyright notice appear in all copies and that both that
74cd6a3aeSmrg#  copyright notice and this permission notice appear in supporting
84cd6a3aeSmrg#  documentation, and that the name of Red Hat not be used in
94cd6a3aeSmrg#  advertising or publicity pertaining to distribution of the software without
104cd6a3aeSmrg#  specific, written prior permission.  Red Hat makes no
114cd6a3aeSmrg#  representations about the suitability of this software for any purpose.  It
124cd6a3aeSmrg#  is provided "as is" without express or implied warranty.
134cd6a3aeSmrg#
144cd6a3aeSmrg#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
154cd6a3aeSmrg#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
164cd6a3aeSmrg#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
174cd6a3aeSmrg#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
184cd6a3aeSmrg#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
194cd6a3aeSmrg#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
204cd6a3aeSmrg#  PERFORMANCE OF THIS SOFTWARE.
214cd6a3aeSmrg#
224cd6a3aeSmrg
234cd6a3aeSmrg# Initialize Autoconf
244cd6a3aeSmrgAC_PREREQ([2.60])
259ab56c27SmrgAC_INIT([libxkbfile], [1.1.2],
2654cef2ddSmrg        [https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues],
2754cef2ddSmrg        [libxkbfile])
284cd6a3aeSmrgAC_CONFIG_SRCDIR([Makefile.am])
294cd6a3aeSmrgAC_CONFIG_HEADERS([config.h])
304cd6a3aeSmrg
314cd6a3aeSmrg# Initialize Automake
3254cef2ddSmrgAM_INIT_AUTOMAKE([foreign dist-xz])
338c9fbc29Smrg
344cd6a3aeSmrg# Initialize libtool
358c9fbc29SmrgAC_PROG_LIBTOOL
368c9fbc29Smrg
374cd6a3aeSmrg# Require X.Org macros 1.8 or later for AC_PROG_INSTALL
384cd6a3aeSmrgm4_ifndef([XORG_MACROS_VERSION],
394cd6a3aeSmrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
404cd6a3aeSmrgXORG_MACROS_VERSION(1.8)
414e411241SmrgXORG_DEFAULT_OPTIONS
424e411241Smrg
434cd6a3aeSmrg# Checks for library functions.
4454cef2ddSmrgAC_CHECK_FUNCS([strcasecmp strndup])
454e411241SmrgAC_CHECK_FUNC(getc_unlocked, AC_DEFINE([HAVE_UNLOCKED_STDIO], 1,
464e411241Smrg				       ['Unlocked stdio']), [])
478c9fbc29Smrg
4854cef2ddSmrg# Obtain compiler/linker options for dependencies
498c9fbc29SmrgPKG_CHECK_MODULES(XKBFILE, x11 kbproto)
504cd6a3aeSmrg
519ab56c27Smrg# Checks for typedefs, structures, and compiler characteristics.
529ab56c27SmrgAC_SYS_LARGEFILE
539ab56c27Smrg
544cd6a3aeSmrgAC_CONFIG_FILES([Makefile
554cd6a3aeSmrg		src/Makefile
564cd6a3aeSmrg		xkbfile.pc])
574cd6a3aeSmrgAC_OUTPUT
58