configure.ac revision e4ee1255
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 23# Initialize Autoconf 24AC_PREREQ([2.60]) 25AC_INIT([x11perf], 26 [1.5.4], 27 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 28 [x11perf]) 29AC_CONFIG_SRCDIR([Makefile.am]) 30AC_CONFIG_HEADERS([config.h]) 31 32# Initialize Automake 33AM_INIT_AUTOMAKE([foreign dist-bzip2]) 34AM_MAINTAINER_MODE 35 36# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 37m4_ifndef([XORG_MACROS_VERSION], 38 [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 39XORG_MACROS_VERSION(1.8) 40XORG_DEFAULT_OPTIONS 41 42AC_TYPE_SIGNAL 43 44# Define the installation directory for the x11 performance compare scripts 45AC_SUBST([x11perfcompdir], [$libdir/X11/x11perfcomp]) 46 47# Checks for programs run by the scripts we install 48AC_PATH_PROG(MKTEMP, mktemp) 49 50# Checks for pkg-config packages 51PKG_CHECK_MODULES(X11PERF, x11 xmuu) 52 53# Check for Xrender library 54PKG_CHECK_MODULES(XRENDER, xrender, [xrender_found=yes], [xrender_found=no]) 55case "$xrender_found" in 56yes) 57 AC_DEFINE(XRENDER,1,[Xrender library available]) 58 ;; 59esac 60 61# Check for Xft library 62PKG_CHECK_MODULES(XFT, xft, [xft_found=yes], [xft_found=no]) 63case "$xft_found" in 64yes) 65 AC_DEFINE(XFT,1,[Xft library available]) 66 ;; 67esac 68 69# Check for MIT-SHM extension 70PKG_CHECK_MODULES(XEXT, xext, [xext_found=yes], [xext_found=no]) 71case "$xext_found" in 72yes) 73 save_LIBS="$LIBS" 74 LIBS="$XEXT_LIBS $LIBS" 75 AC_CHECK_FUNCS([XShmQueryExtension], 76 AC_DEFINE(MITSHM, 1, [MIT-SHM extension available])) 77 LIBS="$save_LIBS" 78 ;; 79esac 80 81AC_CONFIG_FILES([ 82 Makefile 83 man/Makefile]) 84AC_OUTPUT 85