configure.ac revision 4cd6a3ae
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]) 254cd6a3aeSmrgAC_INIT([libxkbfile], [1.0.8], 264cd6a3aeSmrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libxkbfile]) 274cd6a3aeSmrgAC_CONFIG_SRCDIR([Makefile.am]) 284cd6a3aeSmrgAC_CONFIG_HEADERS([config.h]) 294cd6a3aeSmrg 304cd6a3aeSmrg# Initialize Automake 314cd6a3aeSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 328c9fbc29SmrgAM_MAINTAINER_MODE 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. 448c9fbc29SmrgAC_CHECK_FUNC(strcasecmp, [], AC_DEFINE([NEED_STRCASECMP], 1, 454e411241Smrg [Do not have 'strcasecmp'.])) 464e411241SmrgAC_CHECK_FUNC(getc_unlocked, AC_DEFINE([HAVE_UNLOCKED_STDIO], 1, 474e411241Smrg ['Unlocked stdio']), []) 488c9fbc29Smrg 494cd6a3aeSmrg# Obtain compiler/linker options for depedencies 508c9fbc29SmrgPKG_CHECK_MODULES(XKBFILE, x11 kbproto) 514cd6a3aeSmrg 524cd6a3aeSmrgAC_CONFIG_FILES([Makefile 534cd6a3aeSmrg src/Makefile 544cd6a3aeSmrg xkbfile.pc]) 554cd6a3aeSmrgAC_OUTPUT 56