Mercurial > ~mikael > mcabber > hg
comparison mcabber/configure.ac @ 1598:a087125d8fc8
Replace libjabber with loudmouth
author | franky |
---|---|
date | Sun, 11 Oct 2009 15:38:32 +0200 |
parents | afa0d463854b |
children | 3efc92a48945 |
comparison
equal
deleted
inserted
replaced
1597:4f59a414217e | 1598:a087125d8fc8 |
---|---|
136 [Define if GLib has regex support])], | 136 [Define if GLib has regex support])], |
137 [AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]), | 137 [AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]), |
138 [g_list_append])], | 138 [g_list_append])], |
139 [g_regex_new]) | 139 [g_regex_new]) |
140 | 140 |
141 dnl AC_CHECK_LIB([loudmouth1],[lm_session_is_open],,AC_MSG_ERROR([ERROR! loudmouth1 not found...])) | |
142 LOUDMOUTH_CFLAGS=`pkg-config --cflags loudmouth-1.0` | |
143 LOUDMOUTH_LIBS=`pkg-config --libs loudmouth-1.0` | |
144 AC_SUBST(LOUDMOUTH_CFLAGS) | |
145 AC_SUBST(LOUDMOUTH_LIBS) | |
146 | |
141 # Check for gpgme | 147 # Check for gpgme |
142 AC_ARG_ENABLE(gpgme, AC_HELP_STRING([--disable-gpgme], [disable GPGME support]), | 148 AC_ARG_ENABLE(gpgme, AC_HELP_STRING([--disable-gpgme], [disable GPGME support]), |
143 [ if test x"$enableval" = x"no"; then | 149 [ if test x"$enableval" = x"no"; then |
144 enable_gpgme=no | 150 enable_gpgme=no |
145 fi | 151 fi |
158 AM_PATH_LIBGCRYPT(1.2.2, [ | 164 AM_PATH_LIBGCRYPT(1.2.2, [ |
159 AM_PATH_LIBOTR(3.1.0, , | 165 AM_PATH_LIBOTR(3.1.0, , |
160 AC_MSG_ERROR(libotr 3.1.0 or newer is required.)) | 166 AC_MSG_ERROR(libotr 3.1.0 or newer is required.)) |
161 ], AC_MSG_ERROR(libgcrypt 1.2.2 or newer is required.) | 167 ], AC_MSG_ERROR(libgcrypt 1.2.2 or newer is required.) |
162 ) | 168 ) |
163 fi | |
164 | |
165 AC_ARG_WITH(ssl, [ --with-ssl enable SSL secured connections using either OpenSSL | |
166 or GnuTLS], | |
167 [with_ssl=$withval]) | |
168 | |
169 if test "$with_ssl" != "no"; then | |
170 AC_ARG_WITH(openssl, | |
171 [ --with-openssl=[DIR] enable SSL secured connections using the OpenSSL | |
172 library in DIR (optional)], | |
173 [with_openssl=$withval]) | |
174 | |
175 if test -z "$with_openssl"; then | |
176 for ac_dir in /usr/local /usr; do | |
177 if test -f "$ac_dir/include/openssl/ssl.h"; then | |
178 with_openssl=$ac_dir | |
179 break; | |
180 fi | |
181 done | |
182 fi | |
183 | |
184 AC_MSG_CHECKING(for OpenSSL) | |
185 | |
186 if test -n "$with_openssl" -a "$with_openssl" != "no"; then | |
187 if test "$with_openssl" = "yes"; then with_openssl="/usr"; fi | |
188 CFLAGS="$CFLAGS -I${with_openssl}" | |
189 AC_DEFINE([HAVE_OPENSSL], [], [OpenSSL]) | |
190 AC_MSG_RESULT([found in $with_openssl]) | |
191 AC_CHECK_LIB(crypto, main) | |
192 AC_CHECK_LIB(ssl, main) | |
193 else | |
194 AC_MSG_RESULT([not found or disabled]) | |
195 | |
196 PKG_PROG_PKG_CONFIG | |
197 PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 1.0.0], | |
198 have_gnutls=yes, have_gnutls=no) | |
199 if test "$have_gnutls" = "yes"; then | |
200 AC_DEFINE([HAVE_GNUTLS], 1, [GNU TLS]) | |
201 CXXFLAGS="$CXXFLAGS $LIBGNUTLS_CFLAGS" | |
202 LIBS="$LIBS $LIBGNUTLS_LIBS" | |
203 fi | |
204 fi | |
205 fi | 169 fi |
206 | 170 |
207 # Check for Enchant stuff | 171 # Check for Enchant stuff |
208 AC_ARG_ENABLE(enchant, [ --enable-enchant enable enchant support], | 172 AC_ARG_ENABLE(enchant, [ --enable-enchant enable enchant support], |
209 enable_enchant=$enableval, enchant="") | 173 enable_enchant=$enableval, enchant="") |
268 AM_CONDITIONAL([OTR], [test x$libotr_found = xyes]) | 232 AM_CONDITIONAL([OTR], [test x$libotr_found = xyes]) |
269 | 233 |
270 # We need _GNU_SOURCE for strptime() and strcasestr() | 234 # We need _GNU_SOURCE for strptime() and strcasestr() |
271 CFLAGS="$CFLAGS -D_GNU_SOURCE" | 235 CFLAGS="$CFLAGS -D_GNU_SOURCE" |
272 | 236 |
273 AC_CONFIG_FILES([connwrap/Makefile | 237 AC_CONFIG_FILES([src/Makefile |
274 libjabber/Makefile | |
275 src/Makefile | |
276 doc/Makefile | 238 doc/Makefile |
277 doc/guide/Makefile | 239 doc/guide/Makefile |
278 doc/help/Makefile | 240 doc/help/Makefile |
279 Makefile]) | 241 Makefile]) |
280 AC_OUTPUT | 242 AC_OUTPUT |