Commit graph

11 commits

Author SHA1 Message Date
ef3da25fb5 configure: use gcc over cc
We don't know what the system cc supports in terms of command line
flags, it could be tcc for all we know. Aiming for gcc over cc allows
the build to succeed when cc is not gcc or clang, but the user can
always override it themselves with the -c configure switch.
2024-02-27 18:44:43 +13:00
d21cceb014 configure: separate callisto's cppflags from other libraries' cppflags 2024-02-27 18:05:21 +13:00
e86912a601 configure: add -w and -W flags for selecting libraries to support
-wreadline will build in support for libreadline, for example
2024-02-27 18:04:18 +13:00
b41bec792a configure: strip compiler and linker flags of whitespace
Also include cppflags in the script's output
2024-02-27 18:02:33 +13:00
5313601c79 configure: add basic list utilities
inlist determines whether an item is in a list
removefrom returns a list with an element removed
trim strips whitespace from a string, using xargs
2024-02-27 17:59:19 +13:00
42f95378ec configure: use neat comment style to denote different sections 2024-02-27 17:50:48 +13:00
bbd25fe4a2 configure: include -lm and -DLUA_USE_POSIX in config.mk 2024-02-18 18:14:34 +13:00
331c6acbd2 configure: fix when called from other directory 2024-02-18 18:13:39 +13:00
d4ec5248fe configure: include -std=c99 in config.mk
So other makefiles can use it, e.g. the one in external/lua
2024-02-18 17:19:15 +13:00
8568ca2fb3 configure: rename error() to throw() 2024-02-18 16:54:34 +13:00
751fca09e1 switch to modular configure-based buildsystem 2024-01-25 21:12:12 +13:00