45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
# -*- Autoconf -*-
|
|
#
|
|
# guile-fontconfig --- FFI bindings for FontConfig
|
|
# Copyright © 2021 Nicolò Balzarotti <nicolo@nixo.xyz>
|
|
#
|
|
# This file is part of guile-fontconfig.
|
|
#
|
|
# Guile-fontconfig is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public License
|
|
# as published by the Free Software Foundation; either version 3 of
|
|
# the License, or (at your option) any later version.
|
|
#
|
|
# Guile-fontconfig is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with guile-fontconfig. If not, see
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
AC_INIT(guile-fontconfig, 0.0.1)
|
|
AC_CONFIG_SRCDIR(fontconfig)
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
AM_INIT_AUTOMAKE([color-tests -Wall -Wno-portability foreign])
|
|
AM_SILENT_RULES([yes])
|
|
|
|
AC_CONFIG_FILES([Makefile fontconfig/config.scm])
|
|
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
|
|
|
|
GUILE_PKG([3.0 2.2 2.0])
|
|
GUILE_PROGS
|
|
|
|
PKG_CHECK_MODULES([FONTCONFIG], [fontconfig])
|
|
PKG_CHECK_VAR([FONTCONFIG_LIBDIR], [fontconfig], [libdir])
|
|
AC_MSG_CHECKING([FONTCONFIG library path])
|
|
AS_IF([test "x$FONTCONFIG_LIBDIR" = "x"], [
|
|
AC_MSG_FAILURE([unable to find FontConfig library directory])
|
|
], [
|
|
AC_MSG_RESULT([$FONTCONFIG_LIBDIR])
|
|
])
|
|
AC_SUBST([FONTCONFIG_LIBDIR])
|
|
|
|
AC_OUTPUT
|