$NetBSD: patch-ttf2pk-af,v 1.1 2006/06/17 19:41:32 minskim Exp $

--- contrib/ttf2pk/configure.orig	2002-11-15 01:41:24.000000000 -0800
+++ contrib/ttf2pk/configure
@@ -267,7 +267,7 @@ PACKAGE_VERSION=
 PACKAGE_STRING=
 PACKAGE_BUGREPORT=
 
-ac_unique_file="../../lib/freetype.h"
+ac_unique_file="ttf2pk.c"
 # Factoring default headers for most tests.
 ac_includes_default="\
 #include <stdio.h>
@@ -3089,9 +3089,7 @@ _ACEOF
 fi
 
 
-OLDLIBS=$LIBS
-LIBS="$LIBS -L../../lib/.libs"
-CPPFLAGS="-I$srcdir/../../lib $CPPFLAGS"
+CPPFLAGS="$CPPFLAGS -I$prefix/include/freetype"
 echo "$as_me:$LINENO: checking for TT_Init_FreeType in -lttf" >&5
 echo $ECHO_N "checking for TT_Init_FreeType in -lttf... $ECHO_C" >&6
 if test "${ac_cv_lib_ttf_TT_Init_FreeType+set}" = set; then
@@ -3150,7 +3148,6 @@ echo "$as_me: error: Can't find ttf libr
    { (exit 1); exit 1; }; }
 fi
 
-LIBS=$OLDLIBS
 
 
 if test "x$CC" = xgcc; then
@@ -3812,6 +3809,8 @@ do
 _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF
   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+    # Avoid regenerating for rechecks on pkgsrc
+    exit 0
     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
 _ACEOF
