$FreeBSD: ports/games/gtypist/files/patch-aclocal_m4,v 1.1 2001/05/27 16:50:00 ijliao Exp $
--- aclocal.m4.orig	Fri Dec  8 12:32:15 2000
+++ aclocal.m4	Thu May 17 15:54:17 2001
@@ -173,10 +173,9 @@ AC_DEFUN(AM_WITH_NLS,
 
 	   if test "$gt_cv_func_gettext_libc" != "yes"; then
 	     AC_CHECK_LIB(intl, bindtextdomain,
-	       [AC_CACHE_CHECK([for gettext in libintl],
-		 gt_cv_func_gettext_libintl,
+	       [AC_CACHE_VAL(gt_cv_func_gettext_libintl,
 		 [AC_CHECK_LIB(intl, gettext,
-		  gt_cv_func_gettext_libintl=yes,
+		  [gt_cv_func_gettext_libintl=yes; LIBS="$LIBS -lintl"],
 		  gt_cv_func_gettext_libintl=no)],
 		 gt_cv_func_gettext_libintl=no)])
 	   fi
