diff options
author | Max Kellermann <max@duempel.org> | 2009-01-05 09:31:09 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-05 09:31:09 +0100 |
commit | 0fb21e67ef763c6a83ab8f5a7ed2aa95efdc4ab2 (patch) | |
tree | d64298cd024a6483765622993aaf01a91c427ba7 | |
parent | 694a919b8ea893415c5c791cb853a900e596e1a3 (diff) | |
download | mpd-0fb21e67ef763c6a83ab8f5a7ed2aa95efdc4ab2.tar.gz mpd-0fb21e67ef763c6a83ab8f5a7ed2aa95efdc4ab2.tar.xz mpd-0fb21e67ef763c6a83ab8f5a7ed2aa95efdc4ab2.zip |
configure.ac: use AC_CHECK_HEADERS to check for locale.h
AC_CHECK_HEADERS defines HAVE_LOCALE_H, so we don't have to manually
define HAVE_LOCALE.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 4ccd33ed1..4f51e32a5 100644 --- a/configure.ac +++ b/configure.ac @@ -94,7 +94,7 @@ AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",) AC_CHECK_LIB(m,exp,MPD_LIBS="$MPD_LIBS -lm",) -AC_CHECK_HEADER(locale.h,[enable_locale=yes;AC_DEFINE(HAVE_LOCALE,1,[Define if locale.h is present])],enable_locale=no) +AC_CHECK_HEADERS(locale.h) dnl diff --git a/src/main.c b/src/main.c index 0efb512ea..2e8700f02 100644 --- a/src/main.c +++ b/src/main.c @@ -72,7 +72,7 @@ #include <grp.h> #endif -#ifdef HAVE_LOCALE +#ifdef HAVE_LOCALE_H #include <locale.h> #endif @@ -221,7 +221,7 @@ int main(int argc, char *argv[]) daemonize_close_stdin(); -#ifdef HAVE_LOCALE +#ifdef HAVE_LOCALE_H /* initialize locale */ setlocale(LC_CTYPE,""); #endif |