aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-05-24 16:39:28 +0000
committerIngo Klöcker <[email protected]>2024-06-10 15:22:01 +0000
commit13726d146cb10f5ab1dd0025ae76c50da4761b62 (patch)
treea2e4198651ad56ec2f983193e7797693e080fb6d
parentbuild: Make autogen.sh --find-version work for nested packages (diff)
downloadgpgme-13726d146cb10f5ab1dd0025ae76c50da4761b62.tar.gz
gpgme-13726d146cb10f5ab1dd0025ae76c50da4761b62.zip
build: Allow autoheader to be skipped
* autogen.sh: If skip_autoheader is set via autogen.rc then do not run autoheader. -- This makes it possible to skip running autoheader for packages which don't need a config.h header. GnuPG-bug-id: 7110
-rwxr-xr-xautogen.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index c3776a42..dd16435b 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -136,6 +136,7 @@ die_p
configure_opts=
extraoptions=
package_subdir=
+skip_autoheader=
# List of optional variables sourced from autogen.rc and ~/.gnupg-autogen.rc
w32_toolprefixes=
w32_extraoptions=
@@ -514,8 +515,10 @@ if [ -n "${ACLOCAL_FLAGS}" ]; then
fi
info "Running $ACLOCAL ${aclocal_flags} ..."
$ACLOCAL ${aclocal_flags}
-info "Running autoheader..."
-$AUTOHEADER
+if [ -z "${skip_autoheader}" ]; then
+ info "Running autoheader..."
+ $AUTOHEADER
+fi
info "Running automake --gnu ..."
$AUTOMAKE --gnu;
info "Running autoconf${FORCE} ..."