Fix for 'the dumbest fix of the month'. In fact, just a simplification of an earlier fix.

This commit is contained in:
gfk
2001-11-02 18:56:51 +00:00
parent b821127fa7
commit 216d45f477
5 changed files with 16 additions and 59 deletions
-16
View File
@@ -1,17 +1,3 @@
dnl This test is used by the curses driver.
dnl Checks if $1 defined the ACS_S* preprocessor macros.
dnl Example: AC_CHECK_DEFINE_ACS(curses.h)
AC_DEFUN(AC_CHECK_DEFINE_ACS, [
AC_MSG_CHECKING(if $1 defines ACS_S3 and ACS_S7)
AC_TRY_COMPILE([#include <$1>], [[[char map[] = { ACS_S9, ACS_S7, ACS_S3, ACS_S1 }]]], [
dnl then
AC_DEFINE(DEFINED_ACS)
AC_MSG_RESULT(yes) ], [
dnl else
AC_MSG_RESULT(no) ],
[:])
])
AC_DEFUN(LCD_DRIVERS_SELECT, [
AC_MSG_CHECKING(for which drivers to compile)
@@ -70,7 +56,6 @@ fi
AC_CHECK_LIB(ncurses, main,
AC_CHECK_HEADER(ncurses.h,
dnl We have ncurses.h and libncurses, add driver.
AC_CHECK_DEFINE_ACS(ncurses.h)
LIBCURSES="-lncurses"
DRIVERS="$DRIVERS curses_drv.o"
AC_DEFINE(CURSES_DRV)
@@ -84,7 +69,6 @@ dnl else
AC_CHECK_LIB(curses, main,
AC_CHECK_HEADER(curses.h,
dnl We have curses.h and libcurses, add driver.
AC_CHECK_DEFINE_ACS(curses.h)
LIBCURSES="-lcurses"
DRIVERS="$DRIVERS curses_drv.o"
AC_DEFINE(CURSES_DRV)