From 2ecf564f94f8b638d73e957eb9594a9b781e2028 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= <ubitux@gmail.com>
Date: Wed, 27 Feb 2013 20:58:48 +0100
Subject: [PATCH] build: fix iconv detection on some systems.

This at least fix the build on CentOS.
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index f44271511b7..2f8a532125c 100755
--- a/configure
+++ b/configure
@@ -3765,7 +3765,7 @@ check_func  getopt
 check_func  getrusage
 check_struct "sys/time.h sys/resource.h" "struct rusage" ru_maxrss
 check_func  gettimeofday
-check_func  iconv || check_lib2 iconv.h iconv -liconv
+check_func_headers iconv.h iconv || check_lib2 iconv.h iconv -liconv
 check_func  inet_aton $network_extralibs
 check_func  isatty
 check_func  localtime_r
-- 
GitLab