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. Is there a ncurses-devel '\
+'package that you can install?'
+ exit 1
+fi
+
dnl ---------------
dnl CHECK FOR ICONV
SIGNAL_H=$nmh_cv_path_signal_h
AC_SUBST(SIGNAL_H)dnl
+dnl
+dnl Sigh, this is required because under the new world order autoconf has
+dnl nothing to create in a few of the build directories when doing an object
+dnl tree build. So make sure we created certain directories if they don't
+dnl exist.
+dnl
+
+AC_CONFIG_COMMANDS([build-directories],
+[test -d etc || ${MKDIR_P} etc
+test -d man || ${MKDIR_P} man])
+
+AC_CONFIG_COMMANDS_POST([
+
dnl These odd looking assignments are done to expand out unexpanded
dnl variables in bindir et al (for instance mandir is '${datarootdir}/man',
dnl but expanding that gives '${prefix}/share/man', so we need to expand
eval "nmhman=${mandir}"; eval "nmhman=${nmhman}"
eval "nmhrpm=${nmhrpm}";
-dnl
-dnl Sigh, this is required because under the new world order autoconf has
-dnl nothing to create in a few of the build directories when doing an object
-dnl tree build. So make sure we created certain directories if they don't
-dnl exist.
-dnl
-
-AC_CONFIG_COMMANDS([build-directories],
-[test -d etc || ${MKDIR_P} etc
-test -d man || ${MKDIR_P} man])
-
-AC_CONFIG_COMMANDS_POST([
echo "
nmh configuration
-----------------