Mercurial > ~mikael > mcabber > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
56:1fa1185346be | 57:f381236239a4 |
---|---|
1 # -*- Autoconf -*- | |
2 # Process this file with autoconf to produce a configure script. | |
3 | |
4 AC_PREREQ(2.59) | |
5 AC_INIT(mcabber, 0.6.0, bmikael@lists.lilotux.net) | |
6 AM_INIT_AUTOMAKE | |
7 AC_CONFIG_SRCDIR([src]) | |
8 AC_CONFIG_HEADER([config.h]) | |
9 | |
10 AC_PROG_RANLIB | |
11 | |
12 # Checks for programs. | |
13 AC_PROG_CXX | |
14 AC_PROG_CC | |
15 AC_PROG_INSTALL | |
16 | |
17 # Checks for libraries. | |
18 AC_CHECK_LIB([connwrap], [cw_nb_connect]) | |
19 AC_CHECK_LIB([libjabber], [jab_new]) | |
20 AC_CHECK_LIB([ncurses], [initscr]) | |
21 AC_CHECK_LIB([panel], [new_panel]) | |
22 AC_CHECK_LIB([ssl], [SSL_new]) | |
23 | |
24 # Checks for header files. | |
25 AC_HEADER_STDC | |
26 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]) | |
27 | |
28 # Checks for typedefs, structures, and compiler characteristics. | |
29 AC_HEADER_STDBOOL | |
30 AC_C_CONST | |
31 AC_C_INLINE | |
32 AC_TYPE_SIZE_T | |
33 AC_HEADER_TIME | |
34 AC_STRUCT_TM | |
35 | |
36 # Checks for library functions. | |
37 AC_FUNC_ERROR_AT_LINE | |
38 AC_FUNC_MALLOC | |
39 AC_FUNC_MEMCMP | |
40 AC_FUNC_REALLOC | |
41 AC_FUNC_SELECT_ARGTYPES | |
42 AC_TYPE_SIGNAL | |
43 AC_FUNC_STRFTIME | |
44 AC_FUNC_VPRINTF | |
45 AC_CHECK_FUNCS([alarm bzero gethostbyname gethostname inet_ntoa isascii memmove memset modf select setlocale socket strcasecmp strchr strdup strncasecmp strrchr strstr]) | |
46 | |
47 AC_DEFINE(BUILD_JABBER, 1, [build with jabber support]) | |
48 | |
49 AC_CONFIG_FILES([connwrap/Makefile | |
50 libjabber/Makefile | |
51 src/Makefile | |
52 Makefile]) | |
53 AC_OUTPUT |