configure.ac revision fffe5102
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
2467f05d30SmrgAC_PREREQ([2.57])
25fffe5102SmrgAC_INIT(viewres, [1.0.2], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],viewres)
26fffe5102SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
2767f05d30SmrgAM_MAINTAINER_MODE
2867f05d30Smrg
29fffe5102Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
30fffe5102Smrgm4_ifndef([XORG_MACROS_VERSION],
31fffe5102Smrg          [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
32fffe5102SmrgXORG_MACROS_VERSION(1.3)
33fffe5102SmrgXORG_DEFAULT_OPTIONS
34fffe5102Smrg
3567f05d30SmrgAM_CONFIG_HEADER(config.h)
3667f05d30Smrg
3767f05d30SmrgAC_PROG_CC
3867f05d30SmrgAC_PROG_INSTALL
3967f05d30Smrg
4067f05d30Smrg
41fffe5102SmrgPKG_CHECK_MODULES(VIEWRES, xaw7)
42fffe5102SmrgVIEWRES_CFLAGS="$CWARNFLAGS $VIEWRES_CFLAGS"
4367f05d30SmrgAC_SUBST(VIEWRES_CFLAGS)
4467f05d30SmrgAC_SUBST(VIEWRES_LIBS)
4567f05d30Smrg
4667f05d30SmrgPKG_CHECK_MODULES(APPDEFS, xt)
47fffe5102Smrgxt_appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
48fffe5102SmrgAC_ARG_WITH(appdefaultdir,
49fffe5102Smrg	AC_HELP_STRING([--with-appdefaultdir=<pathname>],
50fffe5102Smrg	  [specify directory for app-defaults files (default is autodetected)]),
51fffe5102Smrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
5267f05d30SmrgAC_SUBST(appdefaultdir)
5367f05d30Smrg
5467f05d30Smrg
5567f05d30SmrgAC_OUTPUT([Makefile])
56