comparison mcabber/configure.ac @ 742:76e00324c404

Indentation changes
author Mikael Berthe <mikael@lilotux.net>
date Fri, 10 Mar 2006 19:24:41 +0100
parents 8ed8c32d3164
children c3b76a1a07cb
comparison
equal deleted inserted replaced
741:8ed8c32d3164 742:76e00324c404
24 [#define _GNU_SOURCE 24 [#define _GNU_SOURCE
25 #include <time.h>]) 25 #include <time.h>])
26 26
27 # Checks for header files. 27 # Checks for header files.
28 AC_HEADER_STDC 28 AC_HEADER_STDC
29 AC_CHECK_HEADERS([arpa/inet.h fcntl.h locale.h netdb.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h termios.h unistd.h ncurses.h panel.h getopt.h]) 29 AC_CHECK_HEADERS([arpa/inet.h fcntl.h locale.h netdb.h netinet/in.h stddef.h
30 stdlib.h string.h strings.h sys/socket.h sys/time.h
31 syslog.h termios.h unistd.h ncurses.h panel.h getopt.h])
30 32
31 # Checks for typedefs, structures, and compiler characteristics. 33 # Checks for typedefs, structures, and compiler characteristics.
32 AC_HEADER_STDBOOL 34 AC_HEADER_STDBOOL
33 AC_C_CONST 35 AC_C_CONST
34 AC_C_INLINE 36 AC_C_INLINE
43 AC_FUNC_REALLOC 45 AC_FUNC_REALLOC
44 AC_FUNC_SELECT_ARGTYPES 46 AC_FUNC_SELECT_ARGTYPES
45 AC_TYPE_SIGNAL 47 AC_TYPE_SIGNAL
46 AC_FUNC_STRFTIME 48 AC_FUNC_STRFTIME
47 AC_FUNC_VPRINTF 49 AC_FUNC_VPRINTF
48 AC_CHECK_FUNCS([alarm bzero gethostbyname gethostname inet_ntoa isascii memmove memset modf select setlocale socket strcasecmp strchr strdup strncasecmp strrchr strstr]) 50 AC_CHECK_FUNCS([alarm bzero gethostbyname gethostname inet_ntoa isascii
51 memmove memset modf select setlocale socket strcasecmp
52 strchr strdup strncasecmp strrchr strstr])
49 53
50 # Check for glib 54 # Check for glib
51 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]),[g_list_append]) 55 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]),[g_list_append])
52 56
53 AC_ARG_WITH(ssl, [ --with-ssl enable SSL secured connections using either OpenSSL 57 AC_ARG_WITH(ssl, [ --with-ssl enable SSL secured connections using either OpenSSL
54 or GnuTLS], 58 or GnuTLS],
55 [with_ssl=$withval]) 59 [with_ssl=$withval])
56 60
57 if test "$with_ssl" != "no"; then 61 if test "$with_ssl" != "no"; then
58 AC_ARG_WITH(openssl, 62 AC_ARG_WITH(openssl,
59 [ --with-openssl=[DIR] enable SSL secured connections using the OpenSSL 63 [ --with-openssl=[DIR] enable SSL secured connections using the OpenSSL
60 library in DIR (optional)], 64 library in DIR (optional)],
61 [with_openssl=$withval]) 65 [with_openssl=$withval])
62 66
63 if test -z "$with_openssl"; then 67 if test -z "$with_openssl"; then
64 for ac_dir in /usr/local /usr; do 68 for ac_dir in /usr/local /usr; do
65 if test -f "$ac_dir/include/openssl/ssl.h"; then 69 if test -f "$ac_dir/include/openssl/ssl.h"; then
66 with_openssl=$ac_dir 70 with_openssl=$ac_dir
67 break; 71 break;
68 fi 72 fi
69 done 73 done
70 fi 74 fi
71 75
72 AC_MSG_CHECKING(for OpenSSL) 76 AC_MSG_CHECKING(for OpenSSL)
73 77
74 if test -n "$with_openssl" -a "$with_openssl" != "no"; then 78 if test -n "$with_openssl" -a "$with_openssl" != "no"; then
75 if test "$with_openssl" = "yes"; then with_openssl="/usr"; fi 79 if test "$with_openssl" = "yes"; then with_openssl="/usr"; fi
76 CFLAGS="$CFLAGS -I${with_openssl}" 80 CFLAGS="$CFLAGS -I${with_openssl}"
77 AC_DEFINE([HAVE_OPENSSL], [], [OpenSSL]) 81 AC_DEFINE([HAVE_OPENSSL], [], [OpenSSL])
78 AC_MSG_RESULT([found in $with_openssl]) 82 AC_MSG_RESULT([found in $with_openssl])
79 AC_CHECK_LIB(crypto, main, [ 83 AC_CHECK_LIB(crypto, main, [
80 AC_CHECK_LIB(crypto, SSLeay_add_all_algorithms, [ 84 AC_CHECK_LIB(crypto, SSLeay_add_all_algorithms, [
81 AC_DEFINE([HAVE_SSLEAY], [], [SSLeay]) 85 AC_DEFINE([HAVE_SSLEAY], [], [SSLeay])
82 ]) 86 ])
83 ]) 87 ])
84 AC_CHECK_LIB(ssl, main) 88 AC_CHECK_LIB(ssl, main)
85 else 89 else
86 AC_MSG_RESULT([not found or disabled]) 90 AC_MSG_RESULT([not found or disabled])
87 91
88 AM_PATH_LIBGNUTLS_EXTRA(0.0.1, [ 92 AM_PATH_LIBGNUTLS_EXTRA(0.0.1, [
89 CXXFLAGS="$CXXFLAGS $LIBGNUTLS_CFLAGS" 93 CXXFLAGS="$CXXFLAGS $LIBGNUTLS_CFLAGS"
90 LIBS="$LIBS $LIBGNUTLS_LIBS -lgnutls-extra -lgnutls-openssl" 94 LIBS="$LIBS $LIBGNUTLS_LIBS -lgnutls-extra -lgnutls-openssl"
91 AC_DEFINE([HAVE_GNUTLS], [], [GNU TLS]) 95 AC_DEFINE([HAVE_GNUTLS], [], [GNU TLS])
92 ]) 96 ])
93 fi 97 fi
94 fi 98 fi
95 99
96 AC_DEFINE(BUILD_JABBER, 1, [build with jabber support]) 100 AC_DEFINE(BUILD_JABBER, 1, [build with jabber support])
97 101