]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
A header check for iconv.h should be done after AM_ICONV because
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 22 Feb 2012 12:28:31 +0000 (21:28 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 26 Feb 2012 07:14:31 +0000 (16:14 +0900)
a proper include direcotry for iconv.h is set by AM_ICONV.

configure.ac

index 91e3469c9b4d2881bababbf38016bc6213689dd1..35b6d214fbf8b3c980b3148d39269b2e51a93519 100644 (file)
@@ -268,8 +268,8 @@ AC_ARG_WITH([iconv],
   AS_HELP_STRING([--without-iconv], [Don't try to link against iconv]))
 
 if test "x$with_iconv" != "xno"; then
-  AC_CHECK_HEADERS([iconv.h],[],[],[#include <stdlib.h>])
   AM_ICONV
+  AC_CHECK_HEADERS([iconv.h],[],[],[#include <stdlib.h>])
   if test "x$am_cv_func_iconv" = "xyes"; then
     AC_CHECK_HEADERS([localcharset.h])
     am_save_LIBS="$LIBS"