configure.ac revision e83ac88a
1ea6ae205Smrgdnl Copyright 2005 Red Hat, Inc. 2ea6ae205Smrgdnl 3ea6ae205Smrgdnl Permission to use, copy, modify, distribute, and sell this software 4ea6ae205Smrgdnl and its documentation for any purpose is hereby granted without fee, 5ea6ae205Smrgdnl provided that the above copyright notice appear in all copies and 6ea6ae205Smrgdnl that both that copyright notice and this permission notice appear in 7ea6ae205Smrgdnl supporting documentation, and that the name of Red Hat not be used in 8ea6ae205Smrgdnl advertising or publicity pertaining to distribution of the software 9ea6ae205Smrgdnl without specific, written prior permission. Red Hat makes no 10ea6ae205Smrgdnl representations about the suitability of this software for any 11ea6ae205Smrgdnl purpose. It is provided "as is" without express or implied warranty. 12ea6ae205Smrgdnl 13ea6ae205Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 14ea6ae205Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 15ea6ae205Smrgdnl NO EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 16ea6ae205Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 17ea6ae205Smrgdnl OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 18ea6ae205Smrgdnl OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE 19ea6ae205Smrgdnl USE OR PERFORMANCE OF THIS SOFTWARE. 20ea6ae205Smrgdnl 21ea6ae205Smrgdnl Process this file with autoconf to create configure. 22ea6ae205Smrg 23ea6ae205SmrgAC_PREREQ([2.57]) 24e83ac88aSmrgAC_INIT(mkfontscale, [1.0.7], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], mkfontscale) 25ea6ae205SmrgAM_INIT_AUTOMAKE([dist-bzip2 foreign]) 26ea6ae205SmrgAM_MAINTAINER_MODE 27ea6ae205Smrg 28ea6ae205SmrgAM_CONFIG_HEADER(config.h) 29ea6ae205Smrg 30e83ac88aSmrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS 31e83ac88aSmrgm4_ifndef([XORG_MACROS_VERSION], 32e83ac88aSmrg [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])]) 33e83ac88aSmrgXORG_MACROS_VERSION(1.3) 347978d3cdSmrg 35ea6ae205SmrgAC_PROG_CC 36ea6ae205SmrgAC_PROG_INSTALL 37ea6ae205Smrg 38e83ac88aSmrgXORG_DEFAULT_OPTIONS 39e83ac88aSmrg 40ea6ae205SmrgAC_CHECK_LIB(z, gzopen, [], 41ea6ae205Smrg [AC_MSG_ERROR([zlib is required, but was not found.])]) 42ea6ae205Smrg 437978d3cdSmrgAC_ARG_WITH(bzip2, 447978d3cdSmrg AS_HELP_STRING([--with-bzip2], 457978d3cdSmrg [Support bzip2 compressed bitmap fonts]), 467978d3cdSmrg [], [with_bzip2=no]) 477978d3cdSmrgif test "x$with_bzip2" = xyes; then 487978d3cdSmrg AC_CHECK_LIB(bz2, BZ2_bzopen, [], 497978d3cdSmrg AC_MSG_ERROR([*** libbz2 is required for bzip2 support])) 507978d3cdSmrg AC_DEFINE(X_BZIP2_FONT_COMPRESSION,1,[Support bzip2 for bitmap fonts]) 517978d3cdSmrgfi 527978d3cdSmrg 53ea6ae205Smrg# Checks for pkg-config packages 54ea6ae205SmrgPKG_CHECK_MODULES(MKFONTSCALE, fontenc freetype2) 55ea6ae205SmrgAC_SUBST(MKFONTSCALE_CFLAGS) 56ea6ae205SmrgAC_SUBST(MKFONTSCALE_LIBS) 57ea6ae205Smrg 58ea6ae205SmrgPKG_CHECK_MODULES(X11, xproto) 59ea6ae205SmrgAC_SUBST(X11_CFLAGS) 60ea6ae205Smrg 617978d3cdSmrgdnl Allow checking code with lint, sparse, etc. 627978d3cdSmrgXORG_WITH_LINT 637978d3cdSmrg 64ea6ae205SmrgAC_OUTPUT([Makefile]) 65