858f310b80
. In all makefiles `/' is used as the path separator. The conversion to the real path separators is done as late as possible using $(subst ...). . $(HOSTSEP) no longer exists. Now, $(SEP) gives the path separator for the operating system, and the new $(COMPILER_SEP) the path separator for the compiler tools. . $(BUILD) has been renamed to $(BUILD_DIR). In general, all directory variables end with `_DIR'. The variants ending in `_' (like `BASE_' have been removed). The following ChangeLog entries only describe changes which are not related to the redesign. * builds/beos/beos-def.mk (BUILD_DIR): Fix typo. * builds/compiler/watcom.mk (LINK_LIBRARY): Fix linker call to avoid overlong arguments as suggested by J. Ali Harlow <ali@avrc.city.ac.uk>. * builds/dos/dos-wat.mk: New file. * builds/freetype.mk (FREETYPE_H): Include header files from the `devel' subdirectory. * builds/os2/os2-dev.mk, builds/unix/unixddef.mk, builds/unix/unixddef.mk, builds/win32/w32-bccd.mk, builds/win32/w32-dev.mk (BUILD_DIR): Fix path. * builds/unix/configure.ac, builds/unic/configure: Updated. * builds/unix/unix-def.in (DISTCLEAN): Add `freetype2.pc'. * devel/ftoption.h: Updated.
129 lines
3.0 KiB
Plaintext
129 lines
3.0 KiB
Plaintext
dnl This file is part of the FreeType project.
|
|
dnl
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
dnl
|
|
|
|
AC_INIT
|
|
AC_CONFIG_SRCDIR([ftconfig.in])
|
|
|
|
dnl configuration file -- stay in 8.3 limit
|
|
AC_CONFIG_HEADER(ftconfig.h:ftconfig.in)
|
|
|
|
dnl Don't forget to update VERSION.DLL!
|
|
version_info='9:3:3'
|
|
AC_SUBST(version_info)
|
|
ft_version=`echo $version_info | tr : .`
|
|
AC_SUBST(ft_version)
|
|
|
|
dnl checks for system type
|
|
AC_CANONICAL_TARGET([])
|
|
|
|
dnl checks for programs
|
|
AC_PROG_CC
|
|
AC_PROG_CPP
|
|
|
|
dnl get Compiler flags right.
|
|
if test "x$CC" = xgcc; then
|
|
XX_CFLAGS="-Wall"
|
|
XX_ANSIFLAGS="-pedantic -ansi"
|
|
else
|
|
case "$host" in
|
|
*-dec-osf*)
|
|
CFLAGS=
|
|
XX_CFLAGS="-std1 -g3"
|
|
XX_ANSIFLAGS=
|
|
;;
|
|
*)
|
|
XX_CFLAGS=
|
|
XX_ANSIFLAGS=
|
|
;;
|
|
esac
|
|
fi
|
|
AC_SUBST(XX_CFLAGS)
|
|
AC_SUBST(XX_ANSIFLAGS)
|
|
|
|
AC_CHECK_PROG(RMF, rm, rm -f)
|
|
AC_CHECK_PROG(RMDIR, rmdir, rmdir)
|
|
|
|
dnl Since this file will be finally moved to another directory we make
|
|
dnl the path of the install script absolute. This small code snippet has
|
|
dnl been taken from automake's `ylwrap' script.
|
|
AC_PROG_INSTALL
|
|
case "$INSTALL" in
|
|
/*)
|
|
;;
|
|
*/*)
|
|
INSTALL="`pwd`/$INSTALL" ;;
|
|
esac
|
|
|
|
dnl checks for header files
|
|
AC_HEADER_STDC
|
|
AC_CHECK_HEADERS(fcntl.h unistd.h)
|
|
|
|
dnl checks for typedefs, structures, and compiler characteristics
|
|
AC_C_CONST
|
|
AC_CHECK_SIZEOF(int)
|
|
AC_CHECK_SIZEOF(long)
|
|
|
|
dnl checks for library functions
|
|
|
|
dnl Here we check whether we can use our mmap file component.
|
|
AC_FUNC_MMAP
|
|
if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
|
|
FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
|
|
else
|
|
FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
|
|
|
|
FT_MUNMAP_DECL
|
|
FT_MUNMAP_PARAM
|
|
fi
|
|
AC_SUBST(FTSYS_SRC)
|
|
|
|
AC_CHECK_FUNCS(memcpy memmove)
|
|
|
|
dnl Check for system zlib
|
|
AC_ARG_WITH(zlib,
|
|
[ --without-zlib use internal zlib instead of system-wide])
|
|
if test x$with_zlib != xno && test -z "$LIBZ"; then
|
|
AC_CHECK_LIB(z, gzsetparams, [AC_CHECK_HEADER(zlib.h, LIBZ='-lz')])
|
|
fi
|
|
if test x$with_zlib != xno && test -n "$LIBZ"; then
|
|
CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
|
|
LDFLAGS="$LDFLAGS $LIBZ"
|
|
SYSTEM_ZLIB=yes
|
|
fi
|
|
|
|
dnl Whether to use Mac OS resource-based fonts or not
|
|
AC_ARG_WITH(old-mac-fonts,
|
|
[ --with-old-mac-fonts allow Mac resource-based fonts to be used])
|
|
if test x$with_old_mac_fonts = xyes; then
|
|
CFLAGS="$CFLAGS -DTARGET_API_MAC_CARBON"
|
|
LDFLAGS="$LDFLAGS -Xlinker -framework -Xlinker CoreServices \
|
|
-Xlinker -framework -Xlinker ApplicationServices"
|
|
else
|
|
CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
|
|
fi
|
|
|
|
AC_SUBST(LIBZ)
|
|
AC_SUBST(CFLAGS)
|
|
AC_SUBST(LDFLAGS)
|
|
AC_SUBST(SYSTEM_ZLIB)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
dnl create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
|
|
dnl and 'builds/unix/unix-cc.mk' that will be used by the build system
|
|
dnl
|
|
AC_CONFIG_FILES([unix-cc.mk:unix-cc.in
|
|
unix-def.mk:unix-def.in
|
|
freetype-config
|
|
freetype2.pc:freetype2.in])
|
|
|
|
dnl re-generate the Jamfile to use libtool now
|
|
dnl
|
|
dnl AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
|
|
|
|
AC_OUTPUT
|
|
|
|
dnl end of configure.ac
|