configure.ac revision 498372ab
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])
26498372abSmrgAC_INIT([xcalc], [1.0.5],
2712e1d9cbSmrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xcalc])
2812e1d9cbSmrgAC_CONFIG_SRCDIR([Makefile.am])
2912e1d9cbSmrgAC_CONFIG_HEADERS([config.h])
3012e1d9cbSmrg
3112e1d9cbSmrg# Initialize Automake
328512f934SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
334d9b34d9SmrgAM_MAINTAINER_MODE
344d9b34d9Smrg
3512e1d9cbSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
368512f934Smrgm4_ifndef([XORG_MACROS_VERSION],
3712e1d9cbSmrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
3812e1d9cbSmrgXORG_MACROS_VERSION(1.8)
398512f934SmrgXORG_DEFAULT_OPTIONS
408512f934Smrg
4112e1d9cbSmrg# Checks for pkg-config packages
4212e1d9cbSmrgPKG_CHECK_MODULES(XCALC, xaw7 xt x11)
434d9b34d9Smrg
444d9b34d9SmrgPKG_CHECK_MODULES(APPDEFS, xt)
4512e1d9cbSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
468512f934SmrgAC_ARG_WITH(appdefaultdir,
47498372abSmrg	AS_HELP_STRING([--with-appdefaultdir=<pathname>],
488512f934Smrg	  [specify directory for app-defaults files (default is autodetected)]),
498512f934Smrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
504d9b34d9SmrgAC_SUBST(appdefaultdir)
514d9b34d9Smrg
524d9b34d9Smrg
53498372abSmrgAC_CONFIG_FILES([
54498372abSmrg	Makefile
55498372abSmrg	man/Makefile])
56498372abSmrgAC_OUTPUT
57