diff options
| author | Alexander Barton <alex@barton.de> | 2013-02-15 21:32:08 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-02-15 21:32:08 +0100 |
| commit | d0c9f4a692877d0a232499031f82413b02a45739 (patch) | |
| tree | 500fac381159c2b23abeaf8203bd6c4fcbfba224 /configure.ng | |
| parent | d5763937ad8d482f3e62299428f8cb4b601c6ace (diff) | |
| download | ngircd-d0c9f4a692877d0a232499031f82413b02a45739.tar.gz ngircd-d0c9f4a692877d0a232499031f82413b02a45739.zip | |
configure: search for iconv_open as well as libiconv_open
On some installations iconv_open() is actually libiconv_open(). iconv_open() is the glibc version while libiconv_open() is the libiconv version. This patch enables ngIRCd to detect both cases. Tested on OpenBSD 5.1. Closes bug #151.
Diffstat (limited to 'configure.ng')
| -rw-r--r-- | configure.ng | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ng b/configure.ng index c0309965..6c28f39a 100644 --- a/configure.ng +++ b/configure.ng @@ -528,7 +528,10 @@ if test "$x_ircplus_on" = "yes"; then fi AC_CHECK_LIB(iconv, iconv_open) AC_CHECK_FUNCS(iconv_open, x_iconv_on=yes, - AC_MSG_ERROR([Can't enable libiconv support!]) + AC_CHECK_LIB(iconv, libiconv_open) + AC_CHECK_FUNCS(libiconv_open, x_iconv_on=yes, + AC_MSG_ERROR([Can't enable libiconv support!]) + ) ) fi ] |