summaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-17 23:06:14 -0400
committerMike Frysinger <vapier@gentoo.org>2016-05-17 23:06:14 -0400
commit1239832a09b160a21a092cafcef56c3c16f554f1 (patch)
tree69fd7d3c60b6101dde9fafbba0cc07c2d08891c7 /bootstrap.sh
parent32c5072fd65f4692a728c802adb403ccf5c8d7e9 (diff)
downloadlibgd-1239832a09b160a21a092cafcef56c3c16f554f1.tar.gz
configure/cmake: unify header checks and config.h generation
Rather than hand maintain config.h.cmake (which is already out of date), re-use the autogenerated config.h from autoheader.
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index b814ae7..f6c732d 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -23,4 +23,8 @@ if ! autoreconf -f -i ; then
exit 1
fi
-exit 0
+sed \
+ -e '1d' \
+ -e '2i/* Generated from config.hin via autoheader for cmake; see bootstraps.h. */' \
+ -e 's:#undef:#cmakedefine:' \
+ src/config.hin > src/config.h.cmake