Mercurial > ~mikael > mcabber > hg
diff mcabber/configure.in @ 57:f381236239a4
[/trunk] Changeset 72 by mikael
* Switch to autoconf and automake.
author | mikael |
---|---|
date | Wed, 06 Apr 2005 12:35:34 +0000 |
parents | |
children | db2a1826bafa |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mcabber/configure.in Wed Apr 06 12:35:34 2005 +0000 @@ -0,0 +1,53 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.59) +AC_INIT(mcabber, 0.6.0, bmikael@lists.lilotux.net) +AM_INIT_AUTOMAKE +AC_CONFIG_SRCDIR([src]) +AC_CONFIG_HEADER([config.h]) + +AC_PROG_RANLIB + +# Checks for programs. +AC_PROG_CXX +AC_PROG_CC +AC_PROG_INSTALL + +# Checks for libraries. +AC_CHECK_LIB([connwrap], [cw_nb_connect]) +AC_CHECK_LIB([libjabber], [jab_new]) +AC_CHECK_LIB([ncurses], [initscr]) +AC_CHECK_LIB([panel], [new_panel]) +AC_CHECK_LIB([ssl], [SSL_new]) + +# Checks for header files. +AC_HEADER_STDC +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]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_C_CONST +AC_C_INLINE +AC_TYPE_SIZE_T +AC_HEADER_TIME +AC_STRUCT_TM + +# Checks for library functions. +AC_FUNC_ERROR_AT_LINE +AC_FUNC_MALLOC +AC_FUNC_MEMCMP +AC_FUNC_REALLOC +AC_FUNC_SELECT_ARGTYPES +AC_TYPE_SIGNAL +AC_FUNC_STRFTIME +AC_FUNC_VPRINTF +AC_CHECK_FUNCS([alarm bzero gethostbyname gethostname inet_ntoa isascii memmove memset modf select setlocale socket strcasecmp strchr strdup strncasecmp strrchr strstr]) + +AC_DEFINE(BUILD_JABBER, 1, [build with jabber support]) + +AC_CONFIG_FILES([connwrap/Makefile + libjabber/Makefile + src/Makefile + Makefile]) +AC_OUTPUT