1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT([fbterm_ucimf], [0.2.9], [ucimf@googlegroups.com])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([fbterm_ucimf.cpp])
AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
dnl Checking UCIMF.......................................................
PKG_CHECK_MODULES([ucimf], [libucimf])
AC_SUBST(ucimf_CFLAGS)
AC_SUBST(ucimf_LIBS)
dnl .........................................................................
dnl Checking FreeType2.......................................................
PKG_CHECK_MODULES([freetype2], [freetype2])
AC_SUBST(freetype2_CFLAGS)
AC_SUBST(freetype2_LIBS)
dnl .........................................................................
dnl Checking Fontconfig.......................................................
PKG_CHECK_MODULES([fontconfig], [fontconfig])
AC_SUBST(fontconfig_CFLAGS)
AC_SUBST(fontconfig_LIBS)
dnl .........................................................................
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h sys/socket.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AH_VERBATIM([USE_DEBUG],[#undef USE_DEBUG])
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug],
[enable Debug (default: no)]),
debug=$enableval, debug="no")
if test "$debug" = yes; then
AC_DEFINE([USE_DEBUG], [], [])
fi
AM_CONDITIONAL(ENABLE_DEBUG, test "$debug" = "yes")
# Checks for library functions.
AC_FUNC_FORK
AC_CHECK_FUNCS([setenv strtol])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
|