$NetBSD: patch-ao,v 1.1 2007/01/12 22:13:44 joerg Exp $

--- configure.orig	2007-01-10 15:08:14.000000000 +0000
+++ configure
@@ -21851,16 +21851,12 @@ cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
 /* Override any gcc2 internal prototype to avoid an error.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
-   builtin and then its argument prototype would still apply.  */
-char gettext ();
+#include <libintl.h>
+
 int
 main ()
 {
-gettext ();
+gettext ("");
   ;
   return 0;
 }
@@ -21906,16 +21902,12 @@ cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
 /* Override any gcc2 internal prototype to avoid an error.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
-   builtin and then its argument prototype would still apply.  */
-char gettext ();
+#include <libintl.h>
+
 int
 main ()
 {
-gettext ();
+gettext ("");
   ;
   return 0;
 }
