configure.ac revision 14ddf674
1cacd992dSmrg
2cacd992dSmrgdnl  Copyright 2005 Red Hat, Inc.
3cacd992dSmrgdnl 
4cacd992dSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
5cacd992dSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
6cacd992dSmrgdnl  the above copyright notice appear in all copies and that both that
7cacd992dSmrgdnl  copyright notice and this permission notice appear in supporting
8cacd992dSmrgdnl  documentation, and that the name of Red Hat not be used in
9cacd992dSmrgdnl  advertising or publicity pertaining to distribution of the software without
10cacd992dSmrgdnl  specific, written prior permission.  Red Hat makes no
11cacd992dSmrgdnl  representations about the suitability of this software for any purpose.  It
12cacd992dSmrgdnl  is provided "as is" without express or implied warranty.
13cacd992dSmrgdnl 
14cacd992dSmrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15cacd992dSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16cacd992dSmrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17cacd992dSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18cacd992dSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19cacd992dSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20cacd992dSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
21cacd992dSmrgdnl
22cacd992dSmrgdnl Process this file with autoconf to create configure.
23cacd992dSmrg
24cacd992dSmrgAC_PREREQ([2.57])
2514ddf674SmrgAC_INIT(xvidtune, [1.0.2], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xvidtune)
2614ddf674SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
27cacd992dSmrgAM_MAINTAINER_MODE
28cacd992dSmrg
2914ddf674Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
3014ddf674Smrgm4_ifndef([XORG_MACROS_VERSION],
3114ddf674Smrg          [m4_fatal([must install xorg-macros 1.4 or later before running autoconf/autogen])])
3214ddf674SmrgXORG_MACROS_VERSION(1.4)
3314ddf674SmrgXORG_DEFAULT_OPTIONS
34cacd992dSmrgAM_CONFIG_HEADER(config.h)
35cacd992dSmrg
36cacd992dSmrgAC_PROG_CC
37cacd992dSmrgAC_PROG_INSTALL
38cacd992dSmrg
39cacd992dSmrg# Checks for pkg-config packages
4014ddf674SmrgPKG_CHECK_MODULES(XVIDTUNE, xxf86vm xt xaw7 xmu x11)
4114ddf674Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
4214ddf674SmrgAC_ARG_WITH(appdefaultdir,
4314ddf674Smrg	AC_HELP_STRING([--with-appdefaultdir=<pathname>],
4414ddf674Smrg	  [specify directory for app-defaults files (default is autodetected)]),
4514ddf674Smrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
46cacd992dSmrgAC_SUBST(XVIDTUNE_CFLAGS)
47cacd992dSmrgAC_SUBST(XVIDTUNE_LIBS)
48cacd992dSmrgAC_SUBST(appdefaultdir)
49cacd992dSmrg
50cacd992dSmrg
51cacd992dSmrgAC_OUTPUT([Makefile])
52