167f05d30Smrg
267f05d30Smrgdnl  Copyright 2005 Red Hat, Inc.
367f05d30Smrgdnl 
467f05d30Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
567f05d30Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
667f05d30Smrgdnl  the above copyright notice appear in all copies and that both that
767f05d30Smrgdnl  copyright notice and this permission notice appear in supporting
867f05d30Smrgdnl  documentation, and that the name of Red Hat not be used in
967f05d30Smrgdnl  advertising or publicity pertaining to distribution of the software without
1067f05d30Smrgdnl  specific, written prior permission.  Red Hat makes no
1167f05d30Smrgdnl  representations about the suitability of this software for any purpose.  It
1267f05d30Smrgdnl  is provided "as is" without express or implied warranty.
1367f05d30Smrgdnl 
1467f05d30Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1567f05d30Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1667f05d30Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1767f05d30Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1867f05d30Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1967f05d30Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2067f05d30Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
2167f05d30Smrgdnl
2267f05d30Smrgdnl Process this file with autoconf to create configure.
2367f05d30Smrg
24e90eff46Smrg# Initialize Autoconf
25fc51f767SmrgAC_PREREQ([2.60])
26051ceee6SmrgAC_INIT([viewres], [1.0.7],
27051ceee6Smrg        [https://gitlab.freedesktop.org/xorg/app/viewres/-/issues], [viewres])
28e90eff46SmrgAC_CONFIG_SRCDIR([Makefile.am])
29e90eff46SmrgAC_CONFIG_HEADERS([config.h])
30e90eff46Smrg
31e90eff46Smrg# Initialize Automake
32051ceee6SmrgAM_INIT_AUTOMAKE([foreign dist-xz])
3367f05d30Smrg
34fc51f767Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
35fffe5102Smrgm4_ifndef([XORG_MACROS_VERSION],
36fc51f767Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
37fc51f767SmrgXORG_MACROS_VERSION(1.8)
38fffe5102SmrgXORG_DEFAULT_OPTIONS
39fffe5102Smrg
40fc51f767SmrgPKG_CHECK_MODULES(VIEWRES, xaw7 xmu xt)
4167f05d30Smrg
42fc51f767Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
43fffe5102SmrgAC_ARG_WITH(appdefaultdir,
446dbd43aaSmrg	AS_HELP_STRING([--with-appdefaultdir=<pathname>],
45fffe5102Smrg	  [specify directory for app-defaults files (default is autodetected)]),
46fffe5102Smrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
4767f05d30SmrgAC_SUBST(appdefaultdir)
4867f05d30Smrg
4967f05d30Smrg
506dbd43aaSmrgAC_CONFIG_FILES([
516dbd43aaSmrg	Makefile
526dbd43aaSmrg	man/Makefile])
536dbd43aaSmrgAC_OUTPUT
54