comply with -Wsign-compare

comply with -Wmissing-prototypes

add a configure.local.example mostly stolen from mandoc-portable, thanks Ingo! :)

provide a better error message on missing x libs

attempt to autodetect the flags for x11 & co via pkg-config these are still overrideable from the args passed to the script.

provide a sensible fallback for compat_getprogname.c

include config.h in all compats


move LDFLAGS after the objects; linking fails on alpine otherwise

add some entries to the gitignore

switch to kristaps@' oconfigure It's a bit ugly to depend _only_ on the OpenBSD make infrastructure; it's better when things are portable! Making mymenu-portable would be more effort than what it's worth it, so just make the main version portable (again). kristaps@' oconfigure (used also by mandoc-portable and mymenu) is a lightweight configure system that's really nice to use. see GitHub issue #1

avoid some unnecessary strlen

drop unnecessary braces around case bodies

change parse_csslike to receive an array to fill fixes many memory leaks, makes the code shorter AND cleaner!

change initialization order