1e6232409Smrg
2e6232409Smrgdnl  Copyright 2005 Red Hat, Inc.
3e6232409Smrgdnl 
4e6232409Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
5e6232409Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
6e6232409Smrgdnl  the above copyright notice appear in all copies and that both that
7e6232409Smrgdnl  copyright notice and this permission notice appear in supporting
8e6232409Smrgdnl  documentation, and that the name of Red Hat not be used in
9e6232409Smrgdnl  advertising or publicity pertaining to distribution of the software without
10e6232409Smrgdnl  specific, written prior permission.  Red Hat makes no
11e6232409Smrgdnl  representations about the suitability of this software for any purpose.  It
12e6232409Smrgdnl  is provided "as is" without express or implied warranty.
13e6232409Smrgdnl 
14e6232409Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15e6232409Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16e6232409Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17e6232409Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18e6232409Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19e6232409Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20e6232409Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
21e6232409Smrgdnl
22e6232409Smrgdnl Process this file with autoconf to create configure.
23e6232409Smrg
246a45684fSmrg# Initialize Autoconf
2594a251fdSmrgAC_PREREQ([2.60])
2661d7a284SmrgAC_INIT(xlsfonts, [1.0.8],
2761d7a284Smrg        [https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/issues],xlsfonts)
286a45684fSmrgAC_CONFIG_SRCDIR([Makefile.am])
296a45684fSmrgAC_CONFIG_HEADERS([config.h])
3061d7a284SmrgAC_USE_SYSTEM_EXTENSIONS
316a45684fSmrg
326a45684fSmrg# Initialize Automake
336d1874b2SmrgAM_INIT_AUTOMAKE([foreign dist-xz])
34e6232409Smrg
3594a251fdSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
368fff3f40Smrgm4_ifndef([XORG_MACROS_VERSION],
3794a251fdSmrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
3894a251fdSmrgXORG_MACROS_VERSION(1.8)
398fff3f40SmrgXORG_DEFAULT_OPTIONS
408fff3f40Smrg
41e6232409Smrg# Checks for pkg-config packages
4294a251fdSmrgPKG_CHECK_MODULES(XLSFONTS, [x11 xproto >= 7.0.17])
43e6232409Smrg
4461d7a284Smrg# Checks for library functions
4561d7a284SmrgAC_SEARCH_LIBS([reallocarray], [bsd])
4661d7a284SmrgAS_IF([test "x$ac_cv_search_reallocarray" = "x-lbsd"],
4761d7a284Smrg      [AC_CHECK_HEADERS([bsd/stdlib.h])])
4861d7a284SmrgAC_CHECK_FUNCS([reallocarray])
4961d7a284Smrg
5094a251fdSmrgAC_CONFIG_FILES([
5194a251fdSmrg	Makefile
5294a251fdSmrg	man/Makefile])
5394a251fdSmrgAC_OUTPUT
54