|
Packit |
ff063f |
dnl Process this file with autoconf to produce a configure script.
|
|
Packit |
ff063f |
AC_PREREQ(2.62)
|
|
Packit |
ff063f |
AC_INIT([libeasyfc], 0.14.0, [http://github.com/tagoh/libeasyfc/issues])
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
. `dirname $0`/requires
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
AM_INIT_AUTOMAKE([1.11 -Wno-portability])
|
|
Packit |
ff063f |
dnl silent build rules, requires at least automake-1.11.
|
|
Packit |
ff063f |
dnl by either passing --enable-silent-rules to configure or
|
|
Packit |
ff063f |
dnl V=0 to make.
|
|
Packit |
ff063f |
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
AM_MAINTAINER_MODE
|
|
Packit |
ff063f |
AC_CONFIG_HEADERS([config.h])
|
|
Packit |
ff063f |
AC_CONFIG_MACRO_DIR([m4macros])
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
AX_CHECK_ENABLE_DEBUG
|
|
Packit |
ff063f |
AM_CONDITIONAL(ENABLE_DEBUG, test $ax_enable_debug = yes)
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
LT_PREREQ([2.2])
|
|
Packit |
ff063f |
LT_INIT([disable-static])
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
AC_PROG_CC
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
GNOME_COMPILE_WARNINGS
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
GNOME_COMMON_INIT
|
|
Packit |
ff063f |
GNOME_MAINTAINER_MODE_DEFINES
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
CFLAGS="$CFLAGS $WARN_CFLAGS"
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
dnl Libraries versioning
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
dnl Quote from Updating library version information at libtool.info
|
|
Packit |
ff063f |
dnl and renumbering
|
|
Packit |
ff063f |
dnl
|
|
Packit |
ff063f |
dnl 1. Update the version information only immediately before a public
|
|
Packit |
ff063f |
dnl release of your software. More frequent updates are unnecessary,
|
|
Packit |
ff063f |
dnl and only guarantee that the current interface number gets larger
|
|
Packit |
ff063f |
dnl faster.
|
|
Packit |
ff063f |
dnl 2. If the library source code has changed at all since the last
|
|
Packit |
ff063f |
dnl update, then increment REVISION (`C:R:A' becomes `C:r+1:A')
|
|
Packit |
ff063f |
dnl 3. If any interfaces have been added, removed, or changed since the
|
|
Packit |
ff063f |
dnl last update, increment CURRENT, and set REVISION to 0.
|
|
Packit |
ff063f |
dnl 4. If any interfaces have been added since the last public release,
|
|
Packit |
ff063f |
dnl then increment AGE.
|
|
Packit |
ff063f |
dnl 5. If any interfaces have been removed since the last public release,
|
|
Packit |
ff063f |
dnl then set AGE to 0.
|
|
Packit |
ff063f |
dnl
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
dnl for libeasyfc.la
|
|
Packit |
ff063f |
LT_CURRENT=6
|
|
Packit |
ff063f |
LT_REVISION=0
|
|
Packit |
ff063f |
LT_AGE=6
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
AC_SUBST(LT_CURRENT)
|
|
Packit |
ff063f |
AC_SUBST(LT_REVISION)
|
|
Packit |
ff063f |
AC_SUBST(LT_AGE)
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
dnl for libeasyfc-gobject.la
|
|
Packit |
ff063f |
LT_G_CURRENT=6
|
|
Packit |
ff063f |
LT_G_REVISION=0
|
|
Packit |
ff063f |
LT_G_AGE=6
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
AC_SUBST(LT_G_CURRENT)
|
|
Packit |
ff063f |
AC_SUBST(LT_G_REVISION)
|
|
Packit |
ff063f |
AC_SUBST(LT_G_AGE)
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
dnl define variables
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
AM_MISSING_PROG([GIT], [git])
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
dnl functions testing
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
dnl gettext stuff
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
GETTEXT_PACKAGE=$PACKAGE
|
|
Packit |
ff063f |
AC_SUBST(GETTEXT_PACKAGE)
|
|
Packit |
ff063f |
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
AM_GLIB_GNU_GETTEXT
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
dnl check pkg-config stuff
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
PKG_CONFIG_REQUIRES=
|
|
Packit |
ff063f |
PKG_CONFIG_REQUIRES_PRIVATELY=
|
|
Packit |
ff063f |
PKG_CONFIG_REQUIRES_G="libeasyfc = $VERSION"
|
|
Packit |
ff063f |
PKG_CONFIG_REQUIRES_G_PRIVATELY=
|
|
Packit |
ff063f |
PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= $FONTCONFIG_REQUIRED)
|
|
Packit |
ff063f |
PKG_CONFIG_REQUIRES="$PKG_CONFIG_REQUIRES fontconfig >= $FONTCONFIG_REQUIRED"
|
|
Packit |
ff063f |
PKG_CHECK_MODULES(FREETYPE, freetype2 >= $FREETYPE_REQUIRED)
|
|
Packit |
ff063f |
PKG_CONFIG_REQUIRES_PRIVATELY="$PKG_CONFIG_REQUIRES_PRIVATELY freetype2 >= $FREETYPE_REQUIRED"
|
|
Packit |
ff063f |
PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= $GOBJECT_REQUIRED, has_gobject=yes, has_gobject=no)
|
|
Packit |
ff063f |
PKG_CONFIG_REQUIRES_G="$PKG_CONFIG_REQUIRES_G gobject-2.0 >= $GOBJECT_REQUIRED"
|
|
Packit |
ff063f |
PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= $LIBXML2_REQUIRED)
|
|
Packit |
ff063f |
PKG_CONFIG_REQUIRES_PRIVATELY="$PKG_CONFIG_REQUIRES_PRIVATELY libxml-2.0 >= $LIBXML2_REQUIRED"
|
|
Packit |
ff063f |
PKG_CHECK_MODULES(HARFBUZZ, harfbuzz >= $HARFBUZZ_REQUIRED)
|
|
Packit |
ff063f |
PKG_CONFIG_REQUIRES_PRIVATELY="$PKG_CONFIG_REQUIRES_PRIVATELY harfbuzz >= $HARFBUZZ_REQUIRED"
|
|
Packit |
ff063f |
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
|
|
Packit |
ff063f |
PKG_CONFIG_REQUIRES="$PKG_CONFIG_REQUIRES glib-2.0 >= $GLIB_REQUIRED"
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
AM_CONDITIONAL(ENABLE_GOBJECT, test x$has_gobject != xno)
|
|
Packit |
ff063f |
AC_SUBST(PKG_CONFIG_REQUIRES)
|
|
Packit |
ff063f |
AC_SUBST(PKG_CONFIG_REQUIRES_PRIVATELY)
|
|
Packit |
ff063f |
AC_SUBST(PKG_CONFIG_REQUIRES_G)
|
|
Packit |
ff063f |
AC_SUBST(PKG_CONFIG_REQUIRES_G_PRIVATELY)
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
dnl check another libraries
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
dnl AM_PATH_GLIB_2_0($GLIB_REQUIRED, :,
|
|
Packit |
ff063f |
dnl AC_MSG_ERROR([
|
|
Packit |
ff063f |
dnl *** GLIB $GLIB_REQUIRED_VERSION or better is required. The latest version of
|
|
Packit |
ff063f |
dnl *** GLIB is always available from ftp://ftp.gtk.org/.]),
|
|
Packit |
ff063f |
dnl glib)
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
GOBJECT_INTROSPECTION_CHECK([1.30.0])
|
|
Packit |
ff063f |
GTK_DOC_CHECK(1.0)
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
dnl options
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
dnl output
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
AC_CONFIG_FILES([
|
|
Packit |
ff063f |
Makefile
|
|
Packit |
ff063f |
docs/Makefile
|
|
Packit |
ff063f |
docs/version.xml
|
|
Packit |
ff063f |
libeasyfc.pc
|
|
Packit |
ff063f |
libeasyfc-gobject.pc
|
|
Packit |
ff063f |
libeasyfc/Makefile
|
|
Packit |
ff063f |
libeasyfc-gobject/Makefile
|
|
Packit |
ff063f |
tests/Makefile
|
|
Packit |
ff063f |
])
|
|
Packit |
ff063f |
AC_OUTPUT
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
dnl result
|
|
Packit |
ff063f |
dnl ======================================================================
|
|
Packit |
ff063f |
echo ""
|
|
Packit |
ff063f |
echo "========== Build Information =========="
|
|
Packit |
ff063f |
echo " CFLAGS: $CFLAGS"
|
|
Packit |
ff063f |
echo " LDFLAGS: $LDFLAGS"
|