configure.ac revision e2264b6d
1c9e2be55Smrg
2c9e2be55Smrgdnl  Copyright 2005 Red Hat, Inc.
3c9e2be55Smrgdnl 
4c9e2be55Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
5c9e2be55Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
6c9e2be55Smrgdnl  the above copyright notice appear in all copies and that both that
7c9e2be55Smrgdnl  copyright notice and this permission notice appear in supporting
8c9e2be55Smrgdnl  documentation, and that the name of Red Hat not be used in
9c9e2be55Smrgdnl  advertising or publicity pertaining to distribution of the software without
10c9e2be55Smrgdnl  specific, written prior permission.  Red Hat makes no
11c9e2be55Smrgdnl  representations about the suitability of this software for any purpose.  It
12c9e2be55Smrgdnl  is provided "as is" without express or implied warranty.
13c9e2be55Smrgdnl 
14c9e2be55Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15c9e2be55Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16c9e2be55Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17c9e2be55Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18c9e2be55Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19c9e2be55Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20c9e2be55Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
21c9e2be55Smrgdnl
22c9e2be55Smrgdnl Process this file with autoconf to create configure.
23c9e2be55Smrg
24e2264b6dSmrgAC_PREREQ([2.60])
25e2264b6dSmrgAC_INIT([xmh], [1.0.2],
26e2264b6dSmrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xmh])
27e2264b6dSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
28c9e2be55SmrgAM_MAINTAINER_MODE
29c9e2be55Smrg
30e2264b6dSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
31e2264b6dSmrgm4_ifndef([XORG_MACROS_VERSION],
32e2264b6dSmrg	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
33e2264b6dSmrgXORG_MACROS_VERSION(1.8)
34e2264b6dSmrg
35c9e2be55SmrgAM_CONFIG_HEADER(config.h)
36c9e2be55Smrg
37e2264b6dSmrgXORG_DEFAULT_OPTIONS
38c9e2be55Smrg
39c9e2be55Smrg# Checks for pkg-config packages
40e2264b6dSmrgPKG_CHECK_MODULES(XMH, xaw7 xmu xt x11 xbitmaps >= 1.1.0)
41c9e2be55Smrg
42c9e2be55SmrgPKG_CHECK_MODULES(APPDEFS, xt)
43e2264b6dSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
44e2264b6dSmrgAC_ARG_WITH(appdefaultdir,
45e2264b6dSmrg	AC_HELP_STRING([--with-appdefaultdir=<pathname>],
46e2264b6dSmrg	  [specify directory for app-defaults files (default is autodetected)]),
47e2264b6dSmrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
48c9e2be55SmrgAC_SUBST(appdefaultdir)
49c9e2be55Smrg
50c9e2be55SmrgAC_OUTPUT([Makefile])
51