diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-11 15:17:20 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-11 15:17:20 +0000 |
commit | 011757d89cd16f8f0277578e1c0bd87009f1d58b (patch) | |
tree | 8f1cd91364b3b2fea66d6c800afdd1678e1a33b7 /configure.ac | |
parent | 69cd6eacaf3d8879abcde3940a097b379df49fbd (diff) | |
download | mpd-011757d89cd16f8f0277578e1c0bd87009f1d58b.tar.gz mpd-011757d89cd16f8f0277578e1c0bd87009f1d58b.tar.xz mpd-011757d89cd16f8f0277578e1c0bd87009f1d58b.zip |
use AM_LANGINFO_CODESET in configure.ac, old configure.ac wasn't checking
for CODESET
git-svn-id: https://svn.musicpd.org/mpd/trunk@990 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index d9efd1f0c..b6b9c0c72 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,9 @@ AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",) AC_CHECK_LIB(m,exp,MPD_LIBS="$MPD_LIBS -lm",) -AC_CHECK_HEADER(langinfo.h,[enable_langinfo=yes;AC_DEFINE(HAVE_LANGINFO,1,[Define if nl_langinfo.h is present])],enable_langinfo=no) +dnl doesn't work for systems that don't have CODESET like OpenBSD +dnl AC_CHECK_HEADER(langinfo.h,[enable_langinfo=yes;AC_DEFINE(HAVE_LANGINFO,1,[Define if nl_langinfo.h is present])],enable_langinfo=no) +AM_LANGINFO_CODESET AC_CHECK_HEADER(locale.h,[enable_locale=yes;AC_DEFINE(HAVE_LOCALE,1,[Define if locale.h is present])],enable_locale=no) if test x$enable_ipv6 = xyes; then @@ -499,7 +501,7 @@ else echo "locale support ................disabled" fi -if test x$enable_langinfo = xyes; then +if test x$am_cv_langinfo_codeset = xyes; then echo "langinfo support ..............enabled" else echo "langinfo support ..............disabled" |