14d9b34d9Smrg 24d9b34d9Smrgdnl Copyright 2005 Red Hat, Inc. 3498372abSmrgdnl 44d9b34d9Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 54d9b34d9Smrgdnl documentation for any purpose is hereby granted without fee, provided that 64d9b34d9Smrgdnl the above copyright notice appear in all copies and that both that 74d9b34d9Smrgdnl copyright notice and this permission notice appear in supporting 84d9b34d9Smrgdnl documentation, and that the name of Red Hat not be used in 94d9b34d9Smrgdnl advertising or publicity pertaining to distribution of the software without 104d9b34d9Smrgdnl specific, written prior permission. Red Hat makes no 114d9b34d9Smrgdnl representations about the suitability of this software for any purpose. It 124d9b34d9Smrgdnl is provided "as is" without express or implied warranty. 13498372abSmrgdnl 144d9b34d9Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 154d9b34d9Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 164d9b34d9Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 174d9b34d9Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 184d9b34d9Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 194d9b34d9Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 204d9b34d9Smrgdnl PERFORMANCE OF THIS SOFTWARE. 214d9b34d9Smrgdnl 224d9b34d9Smrgdnl Process this file with autoconf to create configure. 234d9b34d9Smrg 2412e1d9cbSmrg# Initialize Autoconf 2512e1d9cbSmrgAC_PREREQ([2.60]) 26fc5a3af9SmrgAC_INIT([xcalc], [1.1.2], 27fc5a3af9Smrg [https://gitlab.freedesktop.org/xorg/app/xcalc/-/issues], [xcalc]) 2812e1d9cbSmrgAC_CONFIG_SRCDIR([Makefile.am]) 2912e1d9cbSmrgAC_CONFIG_HEADERS([config.h]) 3012e1d9cbSmrg 3112e1d9cbSmrg# Initialize Automake 32ddb28773SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 334d9b34d9Smrg 3412e1d9cbSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 358512f934Smrgm4_ifndef([XORG_MACROS_VERSION], 3612e1d9cbSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 3712e1d9cbSmrgXORG_MACROS_VERSION(1.8) 388512f934SmrgXORG_DEFAULT_OPTIONS 398512f934Smrg 4019d64aeeSmrgAC_CHECK_FUNCS([strlcpy]) 4119d64aeeSmrg 4212e1d9cbSmrg# Checks for pkg-config packages 4319d64aeeSmrgPKG_CHECK_MODULES(XCALC, [xaw7 xt x11 xproto >= 7.0.17]) 444d9b34d9Smrg 454d9b34d9SmrgPKG_CHECK_MODULES(APPDEFS, xt) 4612e1d9cbSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 478512f934SmrgAC_ARG_WITH(appdefaultdir, 48498372abSmrg AS_HELP_STRING([--with-appdefaultdir=<pathname>], 498512f934Smrg [specify directory for app-defaults files (default is autodetected)]), 508512f934Smrg [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) 514d9b34d9SmrgAC_SUBST(appdefaultdir) 524d9b34d9Smrg 534d9b34d9Smrg 54498372abSmrgAC_CONFIG_FILES([ 55498372abSmrg Makefile 56498372abSmrg man/Makefile]) 57498372abSmrgAC_OUTPUT 58