Code

autoconf: Add -liconv to LIBS when NEEDS_LIBICONV
authorJakub Narebski <jnareb@gmail.com>
Mon, 4 Sep 2006 22:55:52 +0000 (00:55 +0200)
committerJunio C Hamano <junkio@cox.net>
Tue, 5 Sep 2006 01:54:27 +0000 (18:54 -0700)
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
configure.ac

index 36f9cd94d847f1dc95d293ebafbab74cf37fec53..fc5b813ec70fbba88cbb890f8676fea74ac6bb3c 100644 (file)
@@ -147,6 +147,7 @@ AC_CHECK_LIB([c], [iconv],
 [NEEDS_LIBICONV=],
 [NEEDS_LIBICONV=YesPlease])
 AC_SUBST(NEEDS_LIBICONV)
+test -n "$NEEDS_SOCKET" && LIBS="$LIBS -liconv"
 #
 # Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
 # Patrick Mauritz).