PersonalVotingMachine/basic-setup/components/u8g2/tools/font/otf2bdf/configure.in
2020-12-22 14:30:09 +02:00

41 lines
810 B
Plaintext

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)