Code style: Fixed indent and comment style.
[mmh] / configure.ac
index f55a982..04f23d1 100644 (file)
@@ -394,6 +394,12 @@ for lib in $termcap_curses_order; do
   AC_CHECK_LIB(${lib}, tgetent, [TERMLIB="-l$lib"; break])
 done
 AC_SUBST(TERMLIB)dnl
+if test "x$TERMLIB" = "x"; then
+       echo 'Could not find tgetent() in any library.'
+       echo 'Is there a ncurses-devel package that you can install?'
+       exit 1
+fi
+
 
 dnl ---------------
 dnl CHECK FOR ICONV
@@ -533,6 +539,11 @@ dnl ----------------
 dnl CHECK STRUCTURES
 dnl ----------------
 
+dnl For platforms such as FreeBSD that have tm_gmtoff in struct tm.
+dnl (FreeBSD has a timezone() function but not a timezone global
+dnl variable that is visible).
+AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[#include <time.h>])
+
 AC_STRUCT_DIRENT_D_TYPE
 
 dnl Where is <signal.h> located?  Needed as input for signames.awk