$NetBSD: patch-ttf2pk-ab,v 1.2 2006/06/17 19:41:32 minskim Exp $ --- contrib/ttf2pk/configure.ac.orig 2002-06-20 10:34:37.000000000 -0700 +++ contrib/ttf2pk/configure.ac @@ -6,7 +6,7 @@ dnl Some tests are omitted since we assu dnl FreeType library successfully. AC_INIT -AC_CONFIG_SRCDIR([../../lib/freetype.h]) +AC_CONFIG_SRCDIR([ttf2pk.c]) AC_CANONICAL_TARGET([]) @@ -66,12 +66,9 @@ fi AC_CHECK_LIB(m, floor) AC_CHECK_LIB(intl, gettext) -OLDLIBS=$LIBS -LIBS="$LIBS -L../../lib/.libs" -CPPFLAGS="-I$srcdir/../../lib $CPPFLAGS" +CPPFLAGS="$CPPFLAGS -I$prefix/include/freetype" AC_CHECK_LIB(ttf, TT_Init_FreeType, LIBS="$LIBS -lttf",[ AC_MSG_ERROR([Can't find ttf library! Compile FreeType first.])]) -LIBS=$OLDLIBS dnl get Compiler flags right.