configure.ac revision 3da7aff1
1dnl Copyright 2005 Red Hat, Inc. 2dnl 3dnl Permission to use, copy, modify, distribute, and sell this software and its 4dnl documentation for any purpose is hereby granted without fee, provided that 5dnl the above copyright notice appear in all copies and that both that 6dnl copyright notice and this permission notice appear in supporting 7dnl documentation, and that the name of Red Hat not be used in 8dnl advertising or publicity pertaining to distribution of the software without 9dnl specific, written prior permission. Red Hat makes no 10dnl representations about the suitability of this software for any purpose. It 11dnl is provided "as is" without express or implied warranty. 12dnl 13dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 14dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 15dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 16dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 17dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 18dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 19dnl PERFORMANCE OF THIS SOFTWARE. 20dnl 21dnl Process this file with autoconf to create configure. 22 23AC_PREREQ([2.57]) 24AC_INIT(xlogo,[1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xlogo) 25AM_INIT_AUTOMAKE([dist-bzip2]) 26AM_MAINTAINER_MODE 27 28AM_CONFIG_HEADER(config.h) 29 30AC_PROG_CC 31AC_PROG_INSTALL 32 33# Checks for pkg-config packages 34XAW_CHECK_XPRINT_SUPPORT(XLOGO) 35 36if test "x$xaw_use_xprint" = "xyes" ; then 37 PKG_CHECK_MODULES(XPRINT_UTIL, xprintutil xp) 38 39 XLOGO_CFLAGS="$XLOGO_CFLAGS $XPRINT_UTIL_CFLAGS" 40 XLOGO_LIBS="$XLOGO_LIBS $XPRINT_UTIL_LIBS" 41fi 42 43# Use render & xft2 to draw logo? 44 45AC_ARG_WITH(render, 46 AC_HELP_STRING([--with-xrender], [Use Xrender & Xft2 to draw logo]), 47 USE_RENDER="$withval", USE_RENDER="try") 48 49if test "x$USE_RENDER" = "xtry" ; then 50 PKG_CHECK_EXISTS([xrender xft], USE_RENDER="yes", USE_RENDER="no") 51fi 52 53if test "x$USE_RENDER" = "xyes" ; then 54 PKG_CHECK_MODULES(XRENDER, xrender) 55 PKG_CHECK_MODULES(XFT, xft) 56 57 AC_DEFINE(XRENDER, 1, [Define to 1 to use Xrender & Xft2 to draw logo]) 58 59 XLOGO_CFLAGS="$XLOGO_CFLAGS $XRENDER_CFLAGS $XFT_CFLAGS" 60 XLOGO_LIBS="$XLOGO_LIBS $XRENDER_LIBS $XFT_LIBS" 61fi 62 63PKG_CHECK_MODULES(XEXT, xext) 64XLOGO_CFLAGS="$XLOGO_CFLAGS $XEXT_CFLAGS" 65XLOGO_LIBS="$XLOGO_LIBS $XEXT_LIBS" 66 67AC_SUBST(XLOGO_CFLAGS) 68AC_SUBST(XLOGO_LIBS) 69 70PKG_CHECK_MODULES(APPDEFS, xt) 71appdefaultdir=$(pkg-config --variable=appdefaultdir xt) 72AC_SUBST(appdefaultdir) 73 74XORG_MANPAGE_SECTIONS 75XORG_RELEASE_VERSION 76 77AC_OUTPUT([Makefile]) 78