521e2bc804
correctly for now and will be updated later. They are currently ignored by the build system. You can however run `autoconf' when in "freetype2/config/unix" to generate the `configure' script there. Then, launch `configure' while in "config/unix". This will generate the following files: - ftconfig.h - unix.mk - libtool copy "unix.mk" to "freetype2/config.mk", then run make from the top-level directory. Note that for now, these file compile the library (with libtool). However, installing isn't supported yet, as well as compiling the demo programs..
96 lines
2.0 KiB
Plaintext
96 lines
2.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
|
|
dnl This file must be processed from the top FreeType 2 directory. E.g:
|
|
dnl
|
|
dnl % autoconf config/unix/configure.in > config/unix/configure
|
|
dnl
|
|
|
|
AC_INIT(ftconfig.in)
|
|
|
|
cnl Configuration file - stay in 8.3 limit
|
|
AC_CONFIG_HEADER(ftconfig.h:ftconfig.in)
|
|
|
|
dnl Due to a bug in autoconf we must set $srcdir explicitly to an absolute
|
|
dnl path.
|
|
srcdir=`pwd`
|
|
|
|
dnl Checks for system type.
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
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*)
|
|
XX_CFLAGS="-std1 -O2 -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)
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LN_S
|
|
|
|
dnl Checks for libraries.
|
|
sinclude(net.m4)
|
|
AC_LIBRARY_NET
|
|
|
|
dnl Checks for header files.
|
|
AC_PATH_XTRA
|
|
AC_CHECK_HEADERS(stdlib.h 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
|
|
FT_SYSTEM_COMPONENT=ftsystem.c
|
|
else
|
|
FT_SYSTEM_COMPONENT=config/unix/ftsystem.c
|
|
fi
|
|
AC_SUBST(FT_SYSTEM_COMPONENT)
|
|
|
|
AC_CHECK_FUNCS(memcpy memmove)
|
|
|
|
# Turn off shared libraries during beta testing, since they
|
|
# make the build process take too long
|
|
#
|
|
# AC_DISABLE_SHARED
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
dnl Another bug: to make --srcdir work correctly we have to create the
|
|
dnl directory hierarchy first since autoconf only uses mkdir.
|
|
dnl $srcdir/config/unix/mkinstalldirs lib/arch/unix test/arch/unix
|
|
|
|
dnl Create the Unix-specific sub-Makefile "config/unix/unix.mk" that will be
|
|
dnl used by the build system..
|
|
dnl
|
|
AC_OUTPUT( unix.mk:unix.in )
|
|
|
|
|
|
dnl end of configure.in
|