diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-05-17 23:06:14 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-05-17 23:06:14 -0400 |
commit | 1239832a09b160a21a092cafcef56c3c16f554f1 (patch) | |
tree | 69fd7d3c60b6101dde9fafbba0cc07c2d08891c7 /bootstrap.sh | |
parent | 32c5072fd65f4692a728c802adb403ccf5c8d7e9 (diff) | |
download | libgd-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-x | bootstrap.sh | 6 |
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 |