# HG changeset patch # User Mikael Berthe # Date 1149100347 -7200 # Node ID 788e088702d666b7e86111de7413662f55d6f899 # Parent ae93e69aaaaf4d1eb61ba9f6a9753ed2340fd97e Improve configure checks diff -r ae93e69aaaaf -r 788e088702d6 mcabber/configure.ac --- a/mcabber/configure.ac Tue May 30 23:22:37 2006 +0200 +++ b/mcabber/configure.ac Wed May 31 20:32:27 2006 +0200 @@ -10,7 +10,6 @@ AC_PROG_RANLIB # Checks for programs. -AC_PROG_CXX AC_PROG_CC AC_PROG_INSTALL @@ -27,7 +26,7 @@ fi # Checks for libraries. -AC_CHECK_LIB([ncurses], [initscr]) +AC_CHECK_LIB([ncurses], [initscr], , AC_MSG_ERROR([NCURSES library needed])) AC_CHECK_LIB([panel], [new_panel]) AC_CHECK_DECLS([strptime],,, @@ -38,7 +37,9 @@ 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 ncurses.h panel.h getopt.h]) + syslog.h termios.h unistd.h getopt.h]) +AC_CHECK_HEADERS([ncurses.h panel.h getopt.h], , + AC_MSG_ERROR([Missing header file])) AC_VAR_TIMEZONE_EXTERNALS # Checks for typedefs, structures, and compiler characteristics.