summaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 4b49b61..bfdeffe 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -20,8 +20,9 @@ fi
(
echo "/* Generated from config.hin via autoheader for cmake; see bootstrap.sh. */"
-sed \
+sed -E \
-e '1d' \
+ -e '/\bENABLE_/{s:#undef:#define:;s:([^ ]*)$:\1 @\1@:}' \
-e 's:#undef:#cmakedefine:' \
src/config.hin
) > src/config.h.cmake