s3 aclocal.m4: Fix iconv checks, clean up m4 code
authorKai Blin <kai@samba.org>
Fri, 4 Dec 2009 08:47:25 +0000 (09:47 +0100)
committerKai Blin <kai@samba.org>
Fri, 4 Dec 2009 09:11:21 +0000 (10:11 +0100)
commit217a02b4a6432b1e232fe8dd0b022bc85ab47e56
tree4dcb6a2f30cc9e29e3b347954f315333a448b14c
parentd0aaff97a20adf6b4c8406f2a21d45018cf5b2cb
s3 aclocal.m4: Fix iconv checks, clean up m4 code

The check for iconv requiring giconv.h and libgiconv as well as
the check for iconv requiring biconv.h and libbiconv were using the wrong
variable to check for previous successful test results. This caused the checks
to always fall back to libbiconv on systems where that library was available.

In the course of fixing this, I had to clean up the indentation in that piece of
code, and I also rewrote/added some comments.

Many thanks to Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> for the initial
patch and diagnosis.
(cherry picked from commit f5aff324cb9d965bbc75634596c3c40ffc588183)
source3/m4/aclocal.m4