aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-02-12 18:04:48 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-02-13 07:55:07 +0100
commit8479f8e7797b4b26230d50bde981ff4e3f520603 (patch)
tree4340475b7be344b05d50890059840210d80d58e3 /configure
parentdd1ceb550c13d433cd26191ec3176eca0e2d70a1 (diff)
downloadslcl-8479f8e7797b4b26230d50bde981ff4e3f520603.tar.gz
Bump libweb
libweb has introduced several breaking changes: - Add optional expiration date to http_cookie_create - Replace Makefile with configure script
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure b/configure
index 9786004..79dcc1a 100755
--- a/configure
+++ b/configure
@@ -168,9 +168,12 @@ fi
if [ $in_tree_libweb -ne 0 ]
then
cat <<"EOF" >> $F
+LIBWEB_MK = libweb/Makefile
+$(LIBWEB_MK):
+ cd libweb && ./configure --prefix=$(PREFIX)
LIBWEB = libweb/libweb.a
$(PROJECT): $(LIBWEB)
-$(LIBWEB): FORCE
+$(LIBWEB): $(LIBWEB_MK) FORCE
+cd libweb && $(MAKE) CC=$(CC)
EOF
fi
@@ -210,7 +213,7 @@ fi
if [ $in_tree_libweb -ne 0 ]
then
cat <<"EOF" >> $F
- +cd libweb && $(MAKE) clean
+ +test -f $(LIBWEB_MK) && cd libweb && $(MAKE) clean || :
EOF
fi
@@ -232,7 +235,7 @@ EOF
if [ $in_tree_libweb -ne 0 ]
then
cat <<"EOF" >> $F
- +cd libweb && $(MAKE) distclean
+ +test -f $(LIBWEB_MK) && cd libweb && $(MAKE) distclean || :
EOF
fi