Use AC_CHECK_HEADERS rather than __DARWIN__ macro to include xlocale.h
authorMatt <matt@uncensored.citadel.org>
Fri, 31 Oct 2008 08:01:26 +0000 (08:01 +0000)
committerMatt <matt@uncensored.citadel.org>
Fri, 31 Oct 2008 08:01:26 +0000 (08:01 +0000)
webcit/configure.ac
webcit/webcit.h

index d89ee28b103bbc80c72b257b9b9c2b8177ebee3b..18f006637347e3396ab2bdd4ad9a5409bf5ed334 100644 (file)
@@ -99,7 +99,7 @@ dnl Checks for library functions.
 AC_TYPE_SIGNAL
 dnl AC_FUNC_VPRINTF
 AC_REPLACE_FUNCS(snprintf)
-AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h iconv.h)
+AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h iconv.h xlocale.h)
 
 
 dnl Here is the check for a libc integrated iconv
index aba1fb7992db276e3a9294d7835a6d7e269f9bdc..5bc6277e9624bcd80b77d640e386a1c17a12f071 100644 (file)
@@ -1,3 +1,4 @@
+
 /* $Id$ */
 
 #include "sysdep.h"
@@ -49,7 +50,7 @@
 #endif
 
 #ifdef ENABLE_NLS
-#ifdef __APPLE__
+#ifdef HAVE_XLOCALE_H
 #include <xlocale.h>
 #endif
 #include <libintl.h>