You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.6 KiB
60 lines
1.6 KiB
#AC_INIT(src/Converter.h)
|
|
#AM_CONFIG_HEADER(config.h)
|
|
|
|
dnl -----------------------------------------------
|
|
dnl Package name and version number (user defined)
|
|
dnl -----------------------------------------------
|
|
GENERIC_LIBRARY_NAME=libtext2path-0.1
|
|
|
|
# release versioning
|
|
GENERIC_MAJOR_VERSION=0
|
|
GENERIC_MINOR_VERSION=1
|
|
GENERIC_MICRO_VERSION=0
|
|
|
|
# API version (often = GENERIC_MAJOR_VERSION.GENERIC_MINOR_VERSION)
|
|
GENERIC_API_VERSION=0.1
|
|
AC_SUBST(GENERIC_API_VERSION)
|
|
|
|
#shared library versioning
|
|
GENERIC_LIBRARY_VERSION=0:1:0
|
|
|
|
dnl --------------------------------
|
|
dnl Package name and version number
|
|
dnl --------------------------------
|
|
AC_SUBST(GENERIC_LIBRARY_VERSION)
|
|
|
|
AC_SUBST(GENERIC_LIBRARY_NAME)
|
|
|
|
GENERIC_VERSION=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION
|
|
GENERIC_RELEASE=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION
|
|
AC_SUBST(GENERIC_RELEASE)
|
|
AC_SUBST(GENERIC_VERSION)
|
|
|
|
|
|
dnl -----------------------------------------------
|
|
dnl Checks for programs.
|
|
dnl -----------------------------------------------
|
|
|
|
dnl Check for fontconfig
|
|
# PKG_CHECK_MODULES(DEPS, fontconfig >= 2.2.0)
|
|
#AC_SUBST(DEPS_CFLAGS)
|
|
#AC_SUBST(DEPS_LIBS)
|
|
|
|
dnl Check fribidi include location
|
|
AC_LANG_SAVE
|
|
AC_LANG_CPLUSPLUS
|
|
cxx_flags_safe="$CXXFLAGS"
|
|
cflags_safe="$CFLAGS"
|
|
CXXFLAGS="$CXXFLAGS -I$ac_cv_sword_incdir"
|
|
CFLAGS="$CFLAGS -I$ac_cv_sword_incdir"
|
|
AC_MSG_CHECKING([for old fribidi header file])
|
|
AC_TRY_COMPILE([#include <fribidi/fribidi_types.h>
|
|
],[return 0;],
|
|
AC_MSG_RESULT(yes),
|
|
[AC_MSG_RESULT(no)
|
|
AC_DEFINE(FRIBIDI_NEW_FILENAME,1,[no])])
|
|
CXXFLAGS="$cxx_flags_safe"
|
|
CFLAGS="$cflags_safe"
|
|
AC_LANG_RESTORE
|
|
|