aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathias <mathias>2005-04-21 19:48:46 (GMT)
committermathias <mathias>2005-04-21 19:48:46 (GMT)
commit371e3f8a9150cf451b67435994faa9ad5a9b8b8d (patch)
tree2879c502e7a1e5643712739ae08b11bdc5d8e51d
parentb809abcfd0821d9595be4e036af6c140cae9b1fd (diff)
downloadfluxbox_paul-371e3f8a9150cf451b67435994faa9ad5a9b8b8d.zip
fluxbox_paul-371e3f8a9150cf451b67435994faa9ad5a9b8b8d.tar.bz2
this should REALLY fix it.
-rw-r--r--configure.in23
1 files changed, 11 insertions, 12 deletions
diff --git a/configure.in b/configure.in
index c525f64..604c5eb 100644
--- a/configure.in
+++ b/configure.in
@@ -96,18 +96,17 @@ if test "x$ac_found_iconv" = "xyes"; then
96 AC_CACHE_CHECK(for iconv declaration, ac_cv_iconv_const, 96 AC_CACHE_CHECK(for iconv declaration, ac_cv_iconv_const,
97 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h> 97 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
98 #include <iconv.h>]], 98 #include <iconv.h>]],
99 [[#ifdef __cplusplus 99 [[
100 "C" 100 char **msg, **new_msg;
101 #endif 101 size_t result, inleft, outleft;
102 #if defined(__STDC__) || defined(__cplusplus) 102 result = iconv((iconv_t)(-1), msg, &inleft, new_msg, &outleft);
103 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 103 return 0;
104 #else 104 ]])],
105 size_t iconv(); 105 [ac_cv_iconv_const=no],
106 #endif]])], 106 [ac_cv_iconv_const=yes])])
107 [ac_cv_iconv_const=], 107 if test "x$ac_cv_iconv_const" = xyes; then
108 [ac_cv_iconv_const=const])]) 108 AC_DEFINE(HAVE_CONST_ICONV, 1, [Define if you have the iconv() function.])
109 AC_DEFINE_UNQUOTED([HAVE_CONST_ICONV], $ac_cv_iconv_const, 109 fi
110 [Define as const if the declaration of iconv() needs const.])
111fi 110fi
112 111
113 112