]> 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>
Wed, 22 Feb 2012 12:28:31 +0000 (21:28 +0900)
a proper include direcotry for iconv.h is set by AM_ICONV.

configure.ac

index 5e258fed072aa7b9989a74807962bc2f741cced7..51a02100bd112bb4faab397d58c681819211b6bc 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"