1ea6ae205Smrgdnl Copyright 2005 Red Hat, Inc. 2663cdc11Smrgdnl 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. 12663cdc11Smrgdnl 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 23245f6787Smrg# Initialize Autoconf 24b6f2c9ccSmrgAC_PREREQ([2.60]) 25b2448f93SmrgAC_INIT([mkfontscale], [1.2.3], 26b2448f93Smrg [https://gitlab.freedesktop.org/xorg/app/mkfontscale/-/issues], 27b6f2c9ccSmrg [mkfontscale]) 28245f6787SmrgAC_CONFIG_SRCDIR([Makefile.am]) 29245f6787SmrgAC_CONFIG_HEADERS([config.h]) 3087aef7c3SmrgAC_USE_SYSTEM_EXTENSIONS 31245f6787Smrg 32245f6787Smrg# Initialize Automake 33764c86d1SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 34ea6ae205Smrg 35b6f2c9ccSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 36e83ac88aSmrgm4_ifndef([XORG_MACROS_VERSION], 37b6f2c9ccSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 38b6f2c9ccSmrgXORG_MACROS_VERSION(1.8) 39e83ac88aSmrgXORG_DEFAULT_OPTIONS 40e83ac88aSmrg 41663cdc11SmrgAC_ARG_WITH(bzip2, 42663cdc11Smrg AS_HELP_STRING([--with-bzip2], 437978d3cdSmrg [Support bzip2 compressed bitmap fonts]), 447978d3cdSmrg [], [with_bzip2=no]) 457978d3cdSmrgif test "x$with_bzip2" = xyes; then 467978d3cdSmrg AC_CHECK_LIB(bz2, BZ2_bzopen, [], 477978d3cdSmrg AC_MSG_ERROR([*** libbz2 is required for bzip2 support])) 487978d3cdSmrg AC_DEFINE(X_BZIP2_FONT_COMPRESSION,1,[Support bzip2 for bitmap fonts]) 497978d3cdSmrgfi 507978d3cdSmrg 51b2448f93Smrg# Checks for typedefs, structures, and compiler characteristics. 52b2448f93SmrgAC_SYS_LARGEFILE 53b2448f93Smrg 5412458b28Smrg# Checks for system functions / libraries 5512458b28SmrgAC_CHECK_FUNCS([vasprintf]) 5612458b28Smrg 57ea6ae205Smrg# Checks for pkg-config packages 58ea6ae205SmrgPKG_CHECK_MODULES(MKFONTSCALE, fontenc freetype2) 59b2448f93SmrgPKG_CHECK_MODULES(ZLIB, zlib) 6048f45e26SmrgPKG_CHECK_MODULES(X11, [xproto >= 7.0.25]) 61ea6ae205Smrg 627978d3cdSmrgdnl Allow checking code with lint, sparse, etc. 637978d3cdSmrgXORG_WITH_LINT 647978d3cdSmrg 65245f6787SmrgAC_CONFIG_FILES([ 66245f6787Smrg Makefile 67245f6787Smrg man/Makefile]) 68245f6787SmrgAC_OUTPUT 69