| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- dnl Process this file with autoconf to produce a configure script.
- AC_INIT(otf2bdf.c)
- AC_PROG_CC
- OLDLIBS=$LIBS
- LIBS="$LIBS `freetype-config --libs`"
- CPPFLAGS="$CPPFLAGS `freetype-config --cflags`"
- AC_CHECK_LIB(freetype, FT_Init_FreeType, LIBS="$LIBS -lfreetype",[
- AC_MSG_ERROR([Can't find Freetype library! Compile FreeType first.])])
- AC_SUBST(LIBS)
- dnl get Compiler flags right.
- if test "x$CC" = xgcc; then
- XX_CFLAGS="-Wall -pedantic"
- else
- case "$host" in
- alpha-dec-osf*)
- XX_CFLAGS="-std1 -O2 -g3"
- ;;
- *)
- XX_CFLAGS=
- ;;
- esac
- fi
- AC_SUBST(XX_CFLAGS)
- AC_CHECK_PROG(RM, rm, rm)
- AC_CHECK_PROG(CP, cp, cp)
- dnl Checks for header files.
- AC_HEADER_STDC
- AC_CHECK_HEADERS(unistd.h)
- dnl Checks for library functions.
- AC_FUNC_MEMCMP
- AC_OUTPUT(Makefile)
|