comparison mcabber/configure.ac @ 890:788e088702d6

Improve configure checks
author Mikael Berthe <mikael@lilotux.net>
date Wed, 31 May 2006 20:32:27 +0200
parents c3c2f7a0c5d5
children c4f164c4b0d3
comparison
equal deleted inserted replaced
889:ae93e69aaaaf 890:788e088702d6
8 AM_CONFIG_HEADER(config.h) 8 AM_CONFIG_HEADER(config.h)
9 9
10 AC_PROG_RANLIB 10 AC_PROG_RANLIB
11 11
12 # Checks for programs. 12 # Checks for programs.
13 AC_PROG_CXX
14 AC_PROG_CC 13 AC_PROG_CC
15 AC_PROG_INSTALL 14 AC_PROG_INSTALL
16 15
17 if test "x$GCC" = "xyes"; then 16 if test "x$GCC" = "xyes"; then
18 dnl Get gcc version 17 dnl Get gcc version
25 24
26 CFLAGS="$CFLAGS -Wall" 25 CFLAGS="$CFLAGS -Wall"
27 fi 26 fi
28 27
29 # Checks for libraries. 28 # Checks for libraries.
30 AC_CHECK_LIB([ncurses], [initscr]) 29 AC_CHECK_LIB([ncurses], [initscr], , AC_MSG_ERROR([NCURSES library needed]))
31 AC_CHECK_LIB([panel], [new_panel]) 30 AC_CHECK_LIB([panel], [new_panel])
32 31
33 AC_CHECK_DECLS([strptime],,, 32 AC_CHECK_DECLS([strptime],,,
34 [#define _GNU_SOURCE 33 [#define _GNU_SOURCE
35 #include <time.h>]) 34 #include <time.h>])
36 35
37 # Checks for header files. 36 # Checks for header files.
38 AC_HEADER_STDC 37 AC_HEADER_STDC
39 AC_CHECK_HEADERS([arpa/inet.h fcntl.h locale.h netdb.h netinet/in.h stddef.h \ 38 AC_CHECK_HEADERS([arpa/inet.h fcntl.h locale.h netdb.h netinet/in.h stddef.h \
40 stdlib.h string.h strings.h sys/socket.h sys/time.h \ 39 stdlib.h string.h strings.h sys/socket.h sys/time.h \
41 syslog.h termios.h unistd.h ncurses.h panel.h getopt.h]) 40 syslog.h termios.h unistd.h getopt.h])
41 AC_CHECK_HEADERS([ncurses.h panel.h getopt.h], ,
42 AC_MSG_ERROR([Missing header file]))
42 AC_VAR_TIMEZONE_EXTERNALS 43 AC_VAR_TIMEZONE_EXTERNALS
43 44
44 # Checks for typedefs, structures, and compiler characteristics. 45 # Checks for typedefs, structures, and compiler characteristics.
45 AC_HEADER_STDBOOL 46 AC_HEADER_STDBOOL
46 AC_C_CONST 47 AC_C_CONST