Link Here
|
95 |
|
95 |
|
96 |
AC_SUBST(CURSES_LIBS) |
96 |
AC_SUBST(CURSES_LIBS) |
97 |
AC_SUBST(CURSES_INCLUDEDIR) |
97 |
AC_SUBST(CURSES_INCLUDEDIR) |
|
|
98 |
AC_SUBST(NCURSES_LIBS) |
98 |
|
99 |
|
99 |
AC_ARG_WITH(sco, |
100 |
AC_ARG_WITH(sco, |
100 |
[ --with-sco Use this to turn on SCO-specific code],[ |
101 |
[ --with-sco Use this to turn on SCO-specific code],[ |
Link Here
|
131 |
if test x$withval = xno ; then |
132 |
if test x$withval = xno ; then |
132 |
search_ncurses=false |
133 |
search_ncurses=false |
133 |
elif test x$withval != xyes ; then |
134 |
elif test x$withval != xyes ; then |
134 |
AC_NCURSES($withval/include, ncurses.h, -L$withval/lib -lncurses, -I$withval/include, "ncurses on $withval/include") |
135 |
NCURSES_LIBS="`pkg-config --libs-only-l ncurses`" |
|
|
136 |
AC_NCURSES($withval/include, ncurses.h, -L$withval/lib "$NCURSES_LIBS", -I$withval/include, "ncurses on $withval/include") |
135 |
fi |
137 |
fi |
136 |
) |
138 |
) |
137 |
|
139 |
|
Link Here
|
230 |
]) |
232 |
]) |
231 |
|
233 |
|
232 |
AC_DEFUN([AC_SEARCH_NCURSES], [ |
234 |
AC_DEFUN([AC_SEARCH_NCURSES], [ |
|
|
235 |
AC_SUBST(NCURSES_LIBS) |
236 |
AC_SUBST(NCURSES_INCLUDES) |
237 |
NCURSES_LIBS=`pkg-config --libs-only-l ncurses` |
238 |
NCURSES_INCLUDES=`pkg-config --cflags-only-I ncurses` |
233 |
AC_CHECKING("location of ncurses.h file") |
239 |
AC_CHECKING("location of ncurses.h file") |
234 |
|
240 |
|
|
|
241 |
AC_NCURSES($NCURSES_INCLUDES, ncurses.h, $NCURSES_LIBS,, |
242 |
[ncurses in $NCURSES_INCLUDES]) |
235 |
AC_NCURSES(/usr/include, ncurses.h, -lncurses,, |
243 |
AC_NCURSES(/usr/include, ncurses.h, -lncurses,, |
236 |
[ncurses in /usr/include]) |
244 |
[ncurses in /usr/include]) |
237 |
AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, |
245 |
AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, |