$NetBSD: patch-ac,v 1.3 2025/10/12 01:32:11 mrg Exp $ --- configure.orig 2001-04-26 07:44:54.000000000 -0700 +++ configure 2025-10-11 18:05:18.572989322 -0700 @@ -1005,7 +1005,7 @@ cat > conftest.$ac_ext << EOF #line 1006 "configure" #include "confdefs.h" -main(){return(0);} +int main(){return(0);} EOF if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes @@ -1957,6 +1957,9 @@ if test "${with_curses_driver+set}" = se fi +test "x$SLANG_PREFIX" != x || SLANG_PREFIX=/usr/local +test "x$NCURSES_PREFIX" != x || NCURSES_PREFIX=/usr/local + # Check whether --with-gpm-mouse or --without-gpm-mouse was given. if test "${with_gpm_mouse+set}" = set; then withval="$with_gpm_mouse" @@ -3145,7 +3148,7 @@ EOF if $search_slang then - if test -f /usr/local/include/slang.h + if test -f $SLANG_PREFIX/include/slang.h then LIBS1="$LIBS" LIBS="$LIBS " @@ -3197,10 +3200,10 @@ else fi if test "x$ac_cv_lib_slang_SLsmg_init_smg" = xyes; then - echo "$ac_t""Found slang on /usr/local/include/slang.h" 1>&6 + echo "$ac_t""Found slang on $SLANG_PREFIX/include/slang.h" 1>&6 AALIB_LIBS="$AALIB_LIBS -lslang" LIBS="$LIBS " - CFLAGS="$CFLAGS -I/usr/local/include/slang " + CFLAGS="$CFLAGS -I$SLANG_PREFIX/include/slang " slang_driver=true search_slang=false cat >> confdefs.h <<\EOF @@ -3453,7 +3456,7 @@ EOF if $search_ncurses then - if test -f /usr/local/include/ncurses.h + if test -f NCURSES_PREFIX/include/ncurses.h then LIBS1="$LIBS" LIBS="$LIBS " @@ -3505,13 +3508,13 @@ else fi if test "x$ac_cv_lib_ncurses_initscr" = xyes; then - echo "$ac_t""Found ncurses on /usr/local/include/ncurses.h" 1>&6 + echo "$ac_t""Found ncurses on NCURSES_PREFIX/include/ncurses.h" 1>&6 AALIB_LIBS="$AALIB_LIBS -lncurses" LIBS="$LIBS " - CFLAGS="$CFLAGS -L/usr/local/lib" + CFLAGS="$CFLAGS -LNCURSES_PREFIX/lib" search_ncurses=false curses_driver=true - screen_manager=-I/usr/local/include + screen_manager=-INCURSES_PREFIX/include cat >> confdefs.h <<\EOF #define USE_NCURSES 1 EOF