configure.ac revision 2ddb6cf1
1a1d141d5Smrg
2a1d141d5Smrgdnl  Copyright 2005 Red Hat, Inc.
3a1d141d5Smrgdnl 
4a1d141d5Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
5a1d141d5Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
6a1d141d5Smrgdnl  the above copyright notice appear in all copies and that both that
7a1d141d5Smrgdnl  copyright notice and this permission notice appear in supporting
8a1d141d5Smrgdnl  documentation, and that the name of Red Hat not be used in
9a1d141d5Smrgdnl  advertising or publicity pertaining to distribution of the software without
10a1d141d5Smrgdnl  specific, written prior permission.  Red Hat makes no
11a1d141d5Smrgdnl  representations about the suitability of this software for any purpose.  It
12a1d141d5Smrgdnl  is provided "as is" without express or implied warranty.
13a1d141d5Smrgdnl 
14a1d141d5Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15a1d141d5Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16a1d141d5Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17a1d141d5Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18a1d141d5Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19a1d141d5Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20a1d141d5Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
21a1d141d5Smrgdnl
22a1d141d5Smrgdnl Process this file with autoconf to create configure.
23a1d141d5Smrg
24a1d141d5SmrgAC_PREREQ([2.57])
252ddb6cf1SmrgAC_INIT(xeyes,[1.1.0], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xeyes)
262ddb6cf1SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
27a1d141d5SmrgAM_MAINTAINER_MODE
28a1d141d5Smrg
29a1d141d5SmrgAM_CONFIG_HEADER(config.h)
30a1d141d5Smrg
312ddb6cf1Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
322ddb6cf1Smrgm4_ifndef([XORG_MACROS_VERSION],
332ddb6cf1Smrg          [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
342ddb6cf1SmrgXORG_MACROS_VERSION(1.3)
352ddb6cf1SmrgXORG_DEFAULT_OPTIONS
362ddb6cf1Smrg
37a1d141d5SmrgAC_PROG_CC
38a1d141d5SmrgAC_PROG_INSTALL
39a1d141d5Smrg
402ddb6cf1Smrg
41a1d141d5Smrg# Checks for pkg-config packages
42a1d141d5SmrgPKG_CHECK_MODULES(XEYES, x11 xt xext xmu)
432ddb6cf1SmrgXEYES_CFLAGS="$CWARNFLAGS $XEYES_CFLAGS"
44a1d141d5SmrgAC_SUBST(XEYES_CFLAGS)
45a1d141d5SmrgAC_SUBST(XEYES_LIBS)
46a1d141d5Smrg
472ddb6cf1Smrgdnl Optional dependencies
482ddb6cf1SmrgAC_ARG_WITH(xrender, AC_HELP_STRING([--with-xrender],[Use Xrender for rendering (Default is YES)]),use_xrender="$withval",use_xrender="try")
492ddb6cf1Smrgif test x$use_xrender != xno ; then
502ddb6cf1Smrg	PKG_CHECK_MODULES(XRENDER, [xrender >= 0.4])
512ddb6cf1Smrg	XEYES_CFLAGS="$XEYES_CFLAGS $XRENDER_CFLAGS"
522ddb6cf1Smrg	XEYES_LIBS="$XEYES_LIBS $XRENDER_LIBS"
532ddb6cf1Smrg	AC_DEFINE([XRENDER],1,[Define to use X Render Extension])
542ddb6cf1Smrgfi
55a1d141d5Smrg
56a1d141d5SmrgAC_OUTPUT([Makefile])
57