summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2019-03-02 01:14:50 +0000
committer Eric Hameleers <alien@slackware.com>2019-03-02 01:14:50 +0000
commite1e55c9791e008e687d46ce373c86a8f04772cfa (patch)
treefd3d6932936d47c534962772c0b6d229d01de61a
parentfadc4cf2f4bcb3556b4a7a643fe265e8ba00b412 (diff)
downloadasb-e1e55c9791e008e687d46ce373c86a8f04772cfa.tar.gz
asb-e1e55c9791e008e687d46ce373c86a8f04772cfa.tar.xz
libconfig: fix the build
-rwxr-xr-xlibconfig/build/libconfig.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/libconfig/build/libconfig.SlackBuild b/libconfig/build/libconfig.SlackBuild
index 532d698b..87a2705b 100755
--- a/libconfig/build/libconfig.SlackBuild
+++ b/libconfig/build/libconfig.SlackBuild
@@ -157,12 +157,13 @@ chown -R root:root .
chmod -R u+w,go+r-w,a+rX-st .
echo Building ...
-# The re-generated lib/scanner.[ch] were not included in the tarball.
-# The version included in the tarball corresponds to a previous version
-# of the library (1.5):
-rm -f lib/scanner.{c,h}
-
-[ -x autogen.sh ] && ./autogen.sh
+if [ ! -x configure ]; then
+ if [ -x autogen.sh ]; then
+ ./autogen.sh
+ else
+ autoreconf -vif
+ fi
+fi
LDFLAGS="$SLKLDFLAGS" \
CXXFLAGS="$SLKCFLAGS" \