comparison mcabber/configure.ac @ 1571:481b60da99c9

Workaround for missing iswblank() on Solaris 8 & 9 (Sebastian Kayser)
author Mikael Berthe <mikael@lilotux.net>
date Sat, 11 Apr 2009 12:20:12 +0200
parents 0674abda9a8f
children c431fa9e2876
comparison
equal deleted inserted replaced
1570:3d4c85664dad 1571:481b60da99c9
54 AC_TYPE_SIGNAL 54 AC_TYPE_SIGNAL
55 AC_FUNC_STRFTIME 55 AC_FUNC_STRFTIME
56 AC_FUNC_VPRINTF 56 AC_FUNC_VPRINTF
57 AC_CHECK_FUNCS([alarm arc4random bzero gethostbyname gethostname inet_ntoa \ 57 AC_CHECK_FUNCS([alarm arc4random bzero gethostbyname gethostname inet_ntoa \
58 isascii memmove memset modf select setlocale socket strcasecmp \ 58 isascii memmove memset modf select setlocale socket strcasecmp \
59 strchr strdup strncasecmp strrchr strstr strcasestr vsnprintf]) 59 strchr strdup strncasecmp strrchr strstr strcasestr vsnprintf \
60 iswblank])
60 61
61 62
62 AC_CHECK_DECLS([strptime],,, 63 AC_CHECK_DECLS([strptime],,,
63 [#define _GNU_SOURCE 64 [#define _GNU_SOURCE
64 #include <time.h>]) 65 #include <time.h>])
71 [ --enable-sigwinch compile with SIGWINCH handler], 72 [ --enable-sigwinch compile with SIGWINCH handler],
72 [with_sigwinch=$enableval], 73 [with_sigwinch=$enableval],
73 [with_sigwinch=$with_ext_funcs]) 74 [with_sigwinch=$with_ext_funcs])
74 AC_MSG_RESULT($with_sigwinch) 75 AC_MSG_RESULT($with_sigwinch)
75 if test "$with_sigwinch" = yes; then 76 if test "$with_sigwinch" = yes; then
76 AC_DEFINE(USE_SIGWINCH, [], [Provide own SIGWINCH handler]) 77 AC_DEFINE([USE_SIGWINCH], [], [Provide own SIGWINCH handler])
77 fi 78 fi
78 79
79 # Checks for libraries. 80 # Checks for libraries.
80 81
81 AC_CHECK_LIB(charset, locale_charset) 82 AC_CHECK_LIB(charset, locale_charset)
121 ], 122 ],
122 [mc_cv_ncurses_escdelay=yes], 123 [mc_cv_ncurses_escdelay=yes],
123 [mc_cv_ncurses_escdelay=no]) 124 [mc_cv_ncurses_escdelay=no])
124 ]) 125 ])
125 if test "$mc_cv_ncurses_escdelay" = yes; then 126 if test "$mc_cv_ncurses_escdelay" = yes; then
126 AC_DEFINE(HAVE_ESCDELAY, 1, 127 AC_DEFINE([HAVE_ESCDELAY], 1,
127 [Define if ncurses has ESCDELAY variable]) 128 [Define if ncurses has ESCDELAY variable])
128 fi 129 fi
129 130
130 # Check for glib 131 # Check for glib
131 AM_PATH_GLIB_2_0(2.14.0, 132 AM_PATH_GLIB_2_0(2.14.0,
132 [AC_DEFINE(HAVE_GLIB_REGEX, 1, 133 [AC_DEFINE([HAVE_GLIB_REGEX], 1,
133 [Define if GLib has regex support])], 134 [Define if GLib has regex support])],
134 [AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]), 135 [AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]),
135 [g_list_append])], 136 [g_list_append])],
136 [g_regex_new]) 137 [g_regex_new])
137 138
141 enable_gpgme=no 142 enable_gpgme=no
142 fi 143 fi
143 ]) 144 ])
144 145
145 if test x"${enable_gpgme}" != x"no"; then 146 if test x"${enable_gpgme}" != x"no"; then
146 AM_PATH_GPGME(1.0.0, AC_DEFINE(HAVE_GPGME, 1, 147 AM_PATH_GPGME(1.0.0, AC_DEFINE([HAVE_GPGME], 1,
147 [Define if you use GPGME to support OpenPGP])) 148 [Define if you use GPGME to support OpenPGP]))
148 fi 149 fi
149 150
150 # Check for otr 151 # Check for otr
151 AC_ARG_ENABLE(otr, [ --enable-otr enable OTR (Off-the-Record) messaging support], 152 AC_ARG_ENABLE(otr, [ --enable-otr enable OTR (Off-the-Record) messaging support],
204 if test "x$enable_aspell" = "xyes"; then 205 if test "x$enable_aspell" = "xyes"; then
205 AC_CHECK_HEADERS(aspell.h, [ have_aspell_includes=yes ]) 206 AC_CHECK_HEADERS(aspell.h, [ have_aspell_includes=yes ])
206 if test "x$have_aspell_includes" = "xyes"; then 207 if test "x$have_aspell_includes" = "xyes"; then
207 AC_CHECK_LIB(aspell, new_aspell_config, [ have_aspell_libs=yes ]) 208 AC_CHECK_LIB(aspell, new_aspell_config, [ have_aspell_libs=yes ])
208 if test "x$have_aspell_libs" = "xyes"; then 209 if test "x$have_aspell_libs" = "xyes"; then
209 AC_DEFINE(WITH_ASPELL, 1, [define if you want aspell support]) 210 AC_DEFINE([WITH_ASPELL], 1, [define if you want aspell support])
210 LIBS="$LIBS -laspell" 211 LIBS="$LIBS -laspell"
211 else 212 else
212 enable_aspell=no 213 enable_aspell=no
213 fi 214 fi
214 else 215 else
215 enable_aspell=no 216 enable_aspell=no
216 fi 217 fi
217 fi 218 fi
218 219
219 AC_DEFINE(BUILD_JABBER, 1, [build with jabber support]) 220 AC_DEFINE([BUILD_JABBER], 1, [build with jabber support])
220 221
221 # Export $datadir to the source tree. 222 # Export $datadir to the source tree.
222 if test x"${datadir}" != x""; then 223 if test x"${datadir}" != x""; then
223 AC_DEFINE_DIR(DATA_DIR, datadir, [Data files directory]) 224 AC_DEFINE_DIR(DATA_DIR, datadir, [Data files directory])
224 fi 225 fi
244 AC_ARG_ENABLE(hgcset, 245 AC_ARG_ENABLE(hgcset,
245 [AC_HELP_STRING(--disable-hgcset, do not use Mercurial changeset value)], 246 [AC_HELP_STRING(--disable-hgcset, do not use Mercurial changeset value)],
246 hgcset=$enableval, hgcset="yes") 247 hgcset=$enableval, hgcset="yes")
247 AM_CONDITIONAL(HGCSET, [test x$hgcset = xyes]) 248 AM_CONDITIONAL(HGCSET, [test x$hgcset = xyes])
248 if test "${hgcset}" = "yes"; then 249 if test "${hgcset}" = "yes"; then
249 AC_DEFINE(ENABLE_HGCSET, 1, [Use Mercurial changeset]) 250 AC_DEFINE([ENABLE_HGCSET], 1, [Use Mercurial changeset])
250 fi 251 fi
251 252
252 AM_CONDITIONAL([OTR], [test x$libotr_found = xyes]) 253 AM_CONDITIONAL([OTR], [test x$libotr_found = xyes])
253 254
254 # We need _GNU_SOURCE for strptime() and strcasestr() 255 # We need _GNU_SOURCE for strptime() and strcasestr()