openbsd-ports/net/centericq/patches/patch-configure
alek 3572d62a73 - Fix libintl/libiconv detection and linking
- Don't use bundled libintl
- Regen PLIST
- Bump PKGNAME

ok pvalchev@
2005-02-16 21:55:55 +00:00

65 lines
2.0 KiB
Plaintext

$OpenBSD: patch-configure,v 1.4 2005/02/16 21:55:55 alek Exp $
--- configure.orig Mon Mar 22 21:27:18 2004
+++ configure Sat Feb 12 18:37:45 2005
@@ -2655,7 +2655,7 @@ echo "configure:2648: checking how to li
-LIBS="$LIBS $LIBICONV"
+LIBS="$LIBS $LTLIBICONV"
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
echo "configure:2662: checking for socket in -lsocket" >&5
@@ -4907,7 +4907,6 @@ else
#include "confdefs.h"
#include <libintl.h>
extern int _nl_msg_cat_cntr;
-extern int *_nl_domain_bindings;
extern
#ifdef __cplusplus
"C"
@@ -4915,7 +4914,7 @@ extern
const char *_nl_expand_alias ();
int main() {
bindtextdomain ("", "");
-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
+return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
; return 0; }
EOF
if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@@ -4935,7 +4934,6 @@ rm -f conftest*
#include "confdefs.h"
#include <libintl.h>
extern int _nl_msg_cat_cntr;
-extern int *_nl_domain_bindings;
extern
#ifdef __cplusplus
"C"
@@ -4943,7 +4941,7 @@ extern
const char *_nl_expand_alias ();
int main() {
bindtextdomain ("", "");
-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
+return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
; return 0; }
EOF
if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@@ -5078,7 +5076,7 @@ EOF
- INTLLIBS="$LIBINTL"
+ INTLLIBS="$LTLIBINTL"
@@ -5244,7 +5242,7 @@ s%@LIBGNUTLS_EXTRA_CONFIG@%$LIBGNUTLS_EX
s%@LIBGNUTLS_EXTRA_CFLAGS@%$LIBGNUTLS_EXTRA_CFLAGS%g
s%@LIBGNUTLS_EXTRA_LIBS@%$LIBGNUTLS_EXTRA_LIBS%g
s%@CXXCPP@%$CXXCPP%g
-s%@LIBICONV@%$LIBICONV%g
+s%@LIBICONV@%$LTLIBICONV%g
s%@LTLIBICONV@%$LTLIBICONV%g
s%@BUILD_YAHOO_TRUE@%$BUILD_YAHOO_TRUE%g
s%@BUILD_YAHOO_FALSE@%$BUILD_YAHOO_FALSE%g