Patch from Robert Schwebel -- support ncurses installed in /usr/local
authorEric Andersen <andersen@codepoet.org>
Sat, 11 Jan 2003 18:07:38 +0000 (18:07 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 11 Jan 2003 18:07:38 +0000 (18:07 -0000)
scripts/config/Makefile

index 002b8d547e6f2270458dfbed6802ea854856e3d8..ab3df49937efb7e365a2e51fb8de34c5043142f6 100644 (file)
@@ -14,6 +14,12 @@ else
 ifeq (/usr/include/ncurses/curses.h, $(wildcard /usr/include/ncurses/curses.h))
        HOSTNCURSES += -I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"
 else
+ifeq (/usr/local/include/ncurses/ncurses.h, $(wildcard /usr/local/include/ncurses/ncurses.h))
+       HOSTCFLAGS += -I/usr/local/include/ncurses -DCURSES_LOC="<ncurses.h>"
+else
+ifeq (/usr/local/include/ncurses/curses.h, $(wildcard /usr/local/include/ncurses/curses.h))
+       HOSTCFLAGS += -I/usr/local/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"
+else
 ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h))
        HOSTNCURSES += -DCURSES_LOC="<ncurses.h>"
 else
@@ -21,7 +27,8 @@ else
 endif
 endif
 endif
-
+endif
+endif
 
 CONF_SRC  =conf.c
 MCONF_SRC =mconf.c checklist.c menubox.c textbox.c yesno.c inputbox.c util.c msgbox.c