2000-10-03 19:51:29 +02:00
|
|
|
dnl This file is part of the FreeType project.
|
|
|
|
dnl
|
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_INIT(ftconfig.in)
|
|
|
|
|
|
|
|
dnl configuration file -- stay in 8.3 limit
|
|
|
|
AC_CONFIG_HEADER(ftconfig.h:ftconfig.in)
|
|
|
|
|
|
|
|
version_info='6:0:0'
|
|
|
|
AC_SUBST(version_info)
|
|
|
|
|
|
|
|
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*)
|
|
|
|
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_)ftsystem.c'
|
|
|
|
else
|
|
|
|
FTSYS_SRC='$(BUILD)/ftsystem.c'
|
|
|
|
|
|
|
|
FT_MUNMAP_DECL
|
|
|
|
FT_MUNMAP_PARAM
|
|
|
|
fi
|
|
|
|
AC_SUBST(FTSYS_SRC)
|
|
|
|
|
|
|
|
AC_CHECK_FUNCS(memcpy memmove)
|
|
|
|
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
2000-10-31 21:42:18 +01:00
|
|
|
dnl create the CygWin-specific sub-Makefile `builds/cygwin/cygwin-def.mk'
|
2000-10-03 19:51:29 +02:00
|
|
|
dnl and 'builds/cygwin/cygwin-cc.mk' that will be used by the build system
|
|
|
|
dnl
|
|
|
|
AC_OUTPUT(cygwin-cc.mk:cygwin-cc.in cygwin-def.mk:cygwin-def.in)
|
|
|
|
|
|
|
|
dnl end of configure.in
|