$OpenBSD: patch-m4_intltool_m4,v 1.1 2012/09/10 17:31:21 ajacoutot Exp $

Fix DATADIRNAME: see LOCALBASE/share/aclocal/{glib-gettext.m4,intltool.m4}

--- m4/intltool.m4.orig	Mon Aug 13 02:34:02 2012
+++ m4/intltool.m4	Mon Sep 10 18:40:36 2012
@@ -155,6 +155,8 @@ fi
 # Substitute ALL_LINGUAS so we can use it in po/Makefile
 AC_SUBST(ALL_LINGUAS)
 
+AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
+
 # Set DATADIRNAME correctly if it is not set yet
 # (copied from glib-gettext.m4)
 if test -z "$DATADIRNAME"; then
@@ -172,6 +174,9 @@ if test -z "$DATADIRNAME"; then
     dnl in this case.
     AC_CHECK_FUNC(bind_textdomain_codeset,
       [DATADIRNAME=share], [DATADIRNAME=lib])
+    ;;
+    *-*-openbsd*)
+    [DATADIRNAME=share]
     ;;
     *)
     [DATADIRNAME=lib]
