summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7bbf88c)
raw | patch | inline | side by side (parent: 7bbf88c)
author | Jakub Narebski <jnareb@gmail.com> | |
Thu, 7 Sep 2006 11:48:08 +0000 (13:48 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 7 Sep 2006 20:02:29 +0000 (13:02 -0700) |
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 67c1ae0ed8dfea875408681b62917824ebf08483..9bbc7dafc42190cde1bfc3d049412cfc11959bfb 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_SUBST(NO_EXPAT)
#
# Define NEEDS_LIBICONV if linking with libc is not enough (Darwin).
+# Define NO_ICONV if neither libc nor libiconv support iconv.
AC_CHECK_LIB([c], [iconv],
-[NEEDS_LIBICONV=],
-[NEEDS_LIBICONV=YesPlease])
+ [NEEDS_LIBICONV=],
+ AC_CHECK_LIB([iconv], [iconv],
+ [NEEDS_LIBICONV=YesPlease],
+ [GIT_CONF_APPEND_LINE([NO_ICONV=YesPlease])]))
AC_SUBST(NEEDS_LIBICONV)
test -n "$NEEDS_LIBICONV" && LIBS="$LIBS -liconv"
#