From 466f773fe171da427e28be79b9cf48ccfddfb7e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 8 Sep 2020 12:37:44 +0200 Subject: [PATCH] Add AC_CONFIG_HEADERS to configure.ac In bootstrap.sh also call autoheader to create config.h.in with the HAVE_... macros to put into config.h when running ./configure. --- .gitignore | 6 ++++++ bootstrap.sh | 1 + configure.ac | 1 + 3 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 0aa0e24..d796a6f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,14 @@ config.log config.status config.sub configure +config.h +config.h.in +config.h.in~ depcomp +libtool ltmain.sh install-sh missing +musl-obstack.pc +stamp-h1 m4/ diff --git a/bootstrap.sh b/bootstrap.sh index cd4a585..74f5bc3 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,5 +1,6 @@ #!/bin/sh libtoolize aclocal +autoheader autoconf automake --add-missing diff --git a/configure.ac b/configure.ac index 0c54808..423b427 100644 --- a/configure.ac +++ b/configure.ac @@ -6,6 +6,7 @@ AC_INIT([obstack], [1.2], [pullmoll@t-online.de]) AM_INIT_AUTOMAKE([1.16]) AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_HEADERS([config.h]) AC_PROG_CC AC_PROG_LIBTOOL