comparison mcabber/configure.ac @ 800:103764a87777

Improve autoconf - Check for strcasestr() - Check for tm_gmtoff - Use ACLOCAL_AMFLAGS so that autoreconf works correctly
author Mikael Berthe <mikael@lilotux.net>
date Mon, 10 Apr 2006 23:16:12 +0200
parents 7f10b84ba7fc
children 8c45ec4bf9bc
comparison
equal deleted inserted replaced
799:7362ed14dee0 800:103764a87777
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 \ 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 \ 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]) 31 syslog.h termios.h unistd.h ncurses.h panel.h getopt.h])
32 AC_VAR_TIMEZONE_EXTERNALS
32 33
33 # Checks for typedefs, structures, and compiler characteristics. 34 # Checks for typedefs, structures, and compiler characteristics.
34 AC_HEADER_STDBOOL 35 AC_HEADER_STDBOOL
35 AC_C_CONST 36 AC_C_CONST
36 AC_C_INLINE 37 AC_C_INLINE
47 AC_TYPE_SIGNAL 48 AC_TYPE_SIGNAL
48 AC_FUNC_STRFTIME 49 AC_FUNC_STRFTIME
49 AC_FUNC_VPRINTF 50 AC_FUNC_VPRINTF
50 AC_CHECK_FUNCS([alarm bzero gethostbyname gethostname inet_ntoa isascii \ 51 AC_CHECK_FUNCS([alarm bzero gethostbyname gethostname inet_ntoa isascii \
51 memmove memset modf select setlocale socket strcasecmp \ 52 memmove memset modf select setlocale socket strcasecmp \
52 strchr strdup strncasecmp strrchr strstr]) 53 strchr strdup strncasecmp strrchr strstr strcasestr])
54
55 # Check for tm_gmtoff
56 MC_TM_GMTOFF
53 57
54 # Check for glib 58 # Check for glib
55 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]),[g_list_append]) 59 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]),[g_list_append])
56 60
57 AC_ARG_WITH(ssl, [ --with-ssl enable SSL secured connections using either OpenSSL 61 AC_ARG_WITH(ssl, [ --with-ssl enable SSL secured connections using either OpenSSL