$OpenBSD: patch-configure,v 1.9 2012/06/27 06:39:50 landry Exp $

Disable --as-needed to prevent undefined symbol on pthread_*

Fix DATADIRNAME: see LOCALBASE/share/aclocal/glib-gettext.m4.

--- configure.orig	Wed May 16 23:31:39 2012
+++ configure	Tue Jun 26 09:28:56 2012
@@ -13494,10 +13494,6 @@ else
 fi
 
 
-if test "x$GCC" = "xyes"; then
-  LDFLAGS="-Wl,--as-needed $LDFLAGS"
-fi
-
 # i18n support
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
@@ -14043,6 +14039,9 @@ else
   DATADIRNAME=lib
 fi
 
+    ;;
+    *-*-openbsd*)
+    DATADIRNAME=share
     ;;
     *)
     DATADIRNAME=lib
