i should have written this by hand and not asked claude to do it

This commit is contained in:
david committed 2026-07-24 19:45:32 -03:00
1 parent b4353216cc
commit b145cdc432
3 files changed
+4724 -55

No files matched your search

Vendored
+1 -52
View File
@@ -3349,57 +3349,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#this will be useful only when i decide to port it to widnows
CURSES_LIB=""
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
printf %s "checking for initscr in -lncursesw... " >&6; }
if test ${ac_cv_lib_ncursesw_initscr+y}
then :
printf %s "(cached) " >&6
else case e in #(
e) ac_check_lib_save_LIBS=$LIBS
LIBS="-lncursesw $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply.
The 'extern "C"' is for builds by C++ compilers;
although this is not generally supported in C code supporting it here
has little cost and some practical benefit (sr 110532). */
#ifdef __cplusplus
extern "C"
#endif
char initscr (void);
int
main (void)
{
return initscr ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
ac_cv_lib_ncursesw_initscr=yes
else case e in #(
e) ac_cv_lib_ncursesw_initscr=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
printf '%s\n' "$ac_cv_lib_ncursesw_initscr" >&6; }
if test "x$ac_cv_lib_ncursesw_initscr" = xyes
then :
CURSES_LIB="-lncursesw"
fi
if test "x$CURSES_LIB" = "x"
then :
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
printf %s "checking for initscr in -lncurses... " >&6; }
if test ${ac_cv_lib_ncurses_initscr+y}
then :
@@ -3447,7 +3397,6 @@ then :
CURSES_LIB="-lncurses"
fi
fi
if test "x$CURSES_LIB" = "x"
then :
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
+1 -3
View File
@@ -5,9 +5,7 @@ AC_PROG_CC
#what if i have pdcurses or just curses and not ncurses idk
#this will be useful only when i decide to port it to widnows
CURSES_LIB=""
AC_CHECK_LIB([ncursesw], [initscr], [CURSES_LIB="-lncursesw"])
AS_IF([test "x$CURSES_LIB" = "x"],
[AC_CHECK_LIB([ncurses], [initscr], [CURSES_LIB="-lncurses"])])
AC_CHECK_LIB([ncurses], [initscr], [CURSES_LIB="-lncurses"])
AS_IF([test "x$CURSES_LIB" = "x"],
[AC_CHECK_LIB([curses], [initscr], [CURSES_LIB="-lcurses"])])
AS_IF([test "x$CURSES_LIB" = "x"],
Executable
+4722
View File
File diff suppressed because it is too large. Load diff