diff options
author | Herb Lewis <herb@samba.org> | 2007-02-16 19:49:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:02 -0500 |
commit | 7acc9421b0643cb04bff1f1d98ecb899f9b09601 (patch) | |
tree | 22318301d387fc37f3fa8025999821c29c337802 /source/aclocal.m4 | |
parent | 155b9e7c74d1a623e018fc2f8ca2e32e4aa3f213 (diff) | |
download | samba-7acc9421b0643cb04bff1f1d98ecb899f9b09601.tar.gz |
r21396: fix wbinfo --lookup-rids command
allow detection of libbiconv if all others fail - need for FreeBSD
Diffstat (limited to 'source/aclocal.m4')
-rw-r--r-- | source/aclocal.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/aclocal.m4 b/source/aclocal.m4 index b66a1c253ec..00c57baceef 100644 --- a/source/aclocal.m4 +++ b/source/aclocal.m4 @@ -362,6 +362,23 @@ AC_DEFUN(jm_ICONV, jm_cv_func_iconv=yes jm_cv_lib_iconv="iconv") LIBS="$jm_save_LIBS" + + if test "$jm_cv_lib_iconv" != yes; then + jm_save_LIBS="$LIBS" + LIBS="$LIBS -lbiconv" + AC_TRY_LINK([#include <stdlib.h> +#include <biconv.h>], + [iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd);], + jm_cv_lib_iconv=yes + jm_cv_func_iconv=yes + jm_cv_include="biconv.h" + jm_cv_biconv=yes + jm_cv_lib_iconv="biconv") + + LIBS="$jm_save_LIBS" + fi fi fi fi |