You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2013/03/09 01:48:37 UTC

[4/50] git commit: prefer the iconv from libc, if there is one.

prefer the iconv from libc, if there is one.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/c6650512
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/c6650512
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/c6650512

Branch: refs/heads/3.3.x
Commit: c66505124126f0a2a8eeb0a1140815e3ddd4a262
Parents: 098b2f2
Author: Igor Galić <i....@brainsware.org>
Authored: Tue Feb 19 14:47:02 2013 +0000
Committer: Igor Galić <i....@brainsware.org>
Committed: Tue Feb 19 14:47:02 2013 +0000

----------------------------------------------------------------------
 configure.ac |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c6650512/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index c91de19..770ff4a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -926,6 +926,7 @@ AC_CHECK_LIB([resolv],[__putlong],[AC_SUBST([LIBRESOLV],["-lresolv"])])
 AC_CHECK_LIB([pthread],[pthread_exit],[AC_SUBST([LIBTHREAD],["-lpthread"])])
 AC_CHECK_LIB([rt],[clock_gettime],[AC_SUBST([LIBRT],["-lrt"])])
 AC_CHECK_LIB([posix4],[clock_gettime],[AC_SUBST([LIBRT],["-lposix4"])])
+AC_CHECK_LIB([c],[iconv_open],[AC_SUBST([LIBICONV],["-lc"])])
 AC_CHECK_LIB([iconv],[iconv_open],[AC_SUBST([LIBICONV],["-liconv"])])
 AC_CHECK_LIB([iconv],[libiconv_open],[AC_SUBST([LIBICONV],["-liconv"])])