diff options
author | fluxgen <fluxgen> | 2004-08-31 20:24:23 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-08-31 20:24:23 (GMT) |
commit | c37b8ec735c0f9f4782e354fec1be2f8ab053509 (patch) | |
tree | 013a6d1ce54ce447695ab358425db86b0b21299b | |
parent | d7a73c6f31c5e7e9c59e3f5a95a130249bd528ad (diff) | |
download | fluxbox-c37b8ec735c0f9f4782e354fec1be2f8ab053509.zip fluxbox-c37b8ec735c0f9f4782e354fec1be2f8ab053509.tar.bz2 |
fixed check for iconv, rearranged some stuff
-rw-r--r-- | configure.in | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 79209f5..3bb27b2 100644 --- a/configure.in +++ b/configure.in | |||
@@ -63,6 +63,20 @@ size_t x = strftime(s, 5, "%a", localtime(&t)); | |||
63 | ], | 63 | ], |
64 | [AC_MSG_RESULT(no)]) | 64 | [AC_MSG_RESULT(no)]) |
65 | 65 | ||
66 | AC_MSG_CHECKING([iconv]) | ||
67 | AC_TRY_COMPILE( | ||
68 | [#include <iconv.h>], | ||
69 | [iconv_t cd = iconv_open("", "")], | ||
70 | HAVE_ICONV=yes, | ||
71 | HAVE_ICONV=no) | ||
72 | |||
73 | if test x"$HAVE_ICONV" = x"yes"; then | ||
74 | AC_DEFINE(HAVE_ICONV, 1, "iconv") | ||
75 | AC_MSG_RESULT([yes]) | ||
76 | else | ||
77 | AC_MSG_RESULT([no]) | ||
78 | fi | ||
79 | |||
66 | AC_CHECK_LIB(nsl, t_open, LIBS="$LIBS -lnsl") | 80 | AC_CHECK_LIB(nsl, t_open, LIBS="$LIBS -lnsl") |
67 | AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") | 81 | AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") |
68 | 82 | ||
@@ -88,6 +102,13 @@ AC_CHECK_LIB(X11, XOpenDisplay, | |||
88 | 102 | ||
89 | LIBS="$LIBS $X_EXTRA_LIBS" | 103 | LIBS="$LIBS $X_EXTRA_LIBS" |
90 | 104 | ||
105 | AC_CHECK_LIB(xpg4, setlocale, LIBS="$LIBS -lxpg4") | ||
106 | |||
107 | AC_CHECK_PROGS(gencat_cmd, gencat) | ||
108 | if test x$gencat_cmd = "x"; then | ||
109 | NLS="" | ||
110 | fi | ||
111 | |||
91 | Xext_lib="" | 112 | Xext_lib="" |
92 | 113 | ||
93 | dnl Check for XShape extension support and proper library files. | 114 | dnl Check for XShape extension support and proper library files. |
@@ -257,12 +278,9 @@ AC_ARG_ENABLE(nls, | |||
257 | ) | 278 | ) |
258 | AC_SUBST(NLS) | 279 | AC_SUBST(NLS) |
259 | 280 | ||
260 | AC_CHECK_LIB(xpg4, setlocale, LIBS="$LIBS -lxpg4") | ||
261 | 281 | ||
262 | AC_CHECK_PROGS(gencat_cmd, gencat) | 282 | |
263 | if test x$gencat_cmd = "x"; then | 283 | |
264 | NLS="" | ||
265 | fi | ||
266 | 284 | ||
267 | 285 | ||
268 | dnl Check for new timed pixmap cache | 286 | dnl Check for new timed pixmap cache |