openbsd-ports/x11/gtk+/patches/patch-configure
2008-12-22 20:19:00 +00:00

49 lines
1.4 KiB
Plaintext

$OpenBSD: patch-configure,v 1.4 2008/12/22 20:19:00 naddy Exp $
--- configure.orig Wed Mar 28 23:11:45 2001
+++ configure Mon Dec 22 21:17:53 2008
@@ -3463,7 +3463,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lintl $LIBS"
+LIBS="-lintl -liconv $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3469 "configure"
#include "confdefs.h"
@@ -3503,7 +3503,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lintl $LIBS"
+LIBS="-lintl -liconv $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3509 "configure"
#include "confdefs.h"
@@ -3547,7 +3547,7 @@ fi
fi
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
- LIBS="$LIBS -lintl";
+ LIBS="$LIBS -lintl -liconv";
fi
if test "$gt_cv_func_dgettext_libc" = "yes" \
@@ -3733,7 +3733,7 @@ else
cat conftest.$ac_ext >&5
rm -rf conftest*
CATOBJEXT=.mo
- DATADIRNAME=lib
+ DATADIRNAME=share
fi
rm -f conftest*
INSTOBJEXT=.mo
@@ -3743,7 +3743,7 @@ rm -f conftest*
# Added by Martin Baulig 12/15/98 for libc5 systems
if test "$gt_cv_func_dgettext_libc" != "yes" \
&& test "$gt_cv_func_dgettext_libintl" = "yes"; then
- INTLLIBS=-lintl
+ INTLLIBS="-lintl -liconv"
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
fi