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.
This commit is contained in:
Jürgen Buchmüller 2020-09-08 12:37:44 +02:00
parent 91923c7320
commit 466f773fe1
3 changed files with 8 additions and 0 deletions

6
.gitignore vendored
View file

@ -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/

View file

@ -1,5 +1,6 @@
#!/bin/sh
libtoolize
aclocal
autoheader
autoconf
automake --add-missing

View file

@ -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