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
24b0c24a08Smrg# Initialize Autoconf
25168023feSmrgAC_PREREQ([2.60])
26168023feSmrgAC_INIT([oclock],
27e32e2dabSmrg	[1.0.6],
28f3e6ffc5Smrg	[https://gitlab.freedesktop.org/xorg/app/oclock/-/issues],
29168023feSmrg	[oclock])
30b0c24a08SmrgAC_CONFIG_SRCDIR([Makefile.am])
31b0c24a08SmrgAC_CONFIG_HEADERS([config.h])
32b0c24a08Smrg
33b0c24a08Smrg# Initialize Automake
34f3e6ffc5SmrgAM_INIT_AUTOMAKE([foreign dist-xz])
356ea72052Smrg
36168023feSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
37168023feSmrgm4_ifndef([XORG_MACROS_VERSION],
38168023feSmrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
39168023feSmrgXORG_MACROS_VERSION(1.8)
40168023feSmrgXORG_DEFAULT_OPTIONS
416ea72052Smrg
4249e82cebSmrg# Optional dependencies
4349e82cebSmrgAC_ARG_WITH(xkb,
4449e82cebSmrg	AS_HELP_STRING([--without-xkb],
4549e82cebSmrg		[Disable use of XKB to sound bells (Default is with-xkb)]),
4649e82cebSmrg	use_xkb="$withval", use_xkb="yes")
4749e82cebSmrgif test x$use_xkb != xno ; then
4849e82cebSmrg	XKBMODULE="xkbfile"
4949e82cebSmrg        AC_DEFINE([XKB],1,[Define to use XkbStdBell])
5049e82cebSmrgfi
516ea72052Smrg
526ea72052Smrg# Checks for pkg-config packages
5349e82cebSmrgPKG_CHECK_MODULES(OCLOCK, x11 xmu xext xt ${XKBMODULE})
546ea72052Smrg
55168023feSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
56168023feSmrgAC_ARG_WITH(appdefaultdir,
5749e82cebSmrg	AS_HELP_STRING([--with-appdefaultdir=<pathname>],
58168023feSmrg	  [specify directory for app-defaults files (default is autodetected)]),
59168023feSmrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
606ea72052SmrgAC_SUBST(appdefaultdir)
616ea72052Smrg
626ea72052Smrg
6349e82cebSmrgAC_CONFIG_FILES([
6449e82cebSmrg	Makefile
6549e82cebSmrg	man/Makefile])
6649e82cebSmrgAC_OUTPUT
67