configure.ac revision 49e82ceb
16ea72052Smrg 26ea72052Smrgdnl Copyright 2005 Red Hat, Inc. 349e82cebSmrgdnl 46ea72052Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 56ea72052Smrgdnl documentation for any purpose is hereby granted without fee, provided that 66ea72052Smrgdnl the above copyright notice appear in all copies and that both that 76ea72052Smrgdnl copyright notice and this permission notice appear in supporting 86ea72052Smrgdnl documentation, and that the name of Red Hat not be used in 96ea72052Smrgdnl advertising or publicity pertaining to distribution of the software without 106ea72052Smrgdnl specific, written prior permission. Red Hat makes no 116ea72052Smrgdnl representations about the suitability of this software for any purpose. It 126ea72052Smrgdnl is provided "as is" without express or implied warranty. 1349e82cebSmrgdnl 146ea72052Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 156ea72052Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 166ea72052Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 176ea72052Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 186ea72052Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 196ea72052Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 206ea72052Smrgdnl PERFORMANCE OF THIS SOFTWARE. 216ea72052Smrgdnl 226ea72052Smrgdnl Process this file with autoconf to create configure. 236ea72052Smrg 24168023feSmrgAC_PREREQ([2.60]) 25168023feSmrgAC_INIT([oclock], 2649e82cebSmrg [1.0.3], 27168023feSmrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 28168023feSmrg [oclock]) 29168023feSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 306ea72052SmrgAM_MAINTAINER_MODE 316ea72052Smrg 32168023feSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 33168023feSmrgm4_ifndef([XORG_MACROS_VERSION], 34168023feSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 35168023feSmrgXORG_MACROS_VERSION(1.8) 36168023feSmrgXORG_DEFAULT_OPTIONS 376ea72052Smrg 3849e82cebSmrgAC_CONFIG_HEADERS([config.h]) 3949e82cebSmrg 4049e82cebSmrg# Optional dependencies 4149e82cebSmrgAC_ARG_WITH(xkb, 4249e82cebSmrg AS_HELP_STRING([--without-xkb], 4349e82cebSmrg [Disable use of XKB to sound bells (Default is with-xkb)]), 4449e82cebSmrg use_xkb="$withval", use_xkb="yes") 4549e82cebSmrgif test x$use_xkb != xno ; then 4649e82cebSmrg XKBMODULE="xkbfile" 4749e82cebSmrg AC_DEFINE([XKB],1,[Define to use XkbStdBell]) 4849e82cebSmrgfi 496ea72052Smrg 506ea72052Smrg# Checks for pkg-config packages 5149e82cebSmrgPKG_CHECK_MODULES(OCLOCK, x11 xmu xext xt ${XKBMODULE}) 526ea72052Smrg 53168023feSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 54168023feSmrgAC_ARG_WITH(appdefaultdir, 5549e82cebSmrg AS_HELP_STRING([--with-appdefaultdir=<pathname>], 56168023feSmrg [specify directory for app-defaults files (default is autodetected)]), 57168023feSmrg [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) 586ea72052SmrgAC_SUBST(appdefaultdir) 596ea72052Smrg 606ea72052Smrg 6149e82cebSmrgAC_CONFIG_FILES([ 6249e82cebSmrg Makefile 6349e82cebSmrg man/Makefile]) 6449e82cebSmrgAC_OUTPUT 65