]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
build: make sure autoheader run before autoconf
authorMingli Yu <mingli.yu@windriver.com>
Wed, 24 Mar 2021 03:21:04 +0000 (11:21 +0800)
committerMike Frysinger <vapier@gentoo.org>
Sun, 14 Jan 2024 06:23:38 +0000 (01:23 -0500)
autoheader will update ../libtool-2.4.6/libltdl/config-h.in which
autoconf needs, so there comes a race sometimes as below:
 | configure.ac:45: error: required file 'config-h.in' not found
 | touch '../libtool-2.4.6/libltdl/config-h.in'

So make sure autoheader run before autoconf to avoid this race.

* Makefile.am: Have $(lt_configure) depend on $(lt_config_h_in).

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Makefile.am

index 74e1e28fe0f071f9af6bf8bf0d0a7ddf9445ed0a..2a4f13ad2bca9ba01c9c044180f161afc91f1ddb 100644 (file)
@@ -370,7 +370,7 @@ lt_configure_deps = $(lt_aclocal_m4) $(lt_aclocal_m4_deps)
 $(lt_aclocal_m4): $(lt_aclocal_m4_deps)
        $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(ACLOCAL) -I ../m4
 
-$(lt_configure): $(lt_configure_deps)
+$(lt_configure): $(lt_configure_deps) $(lt_config_h_in)
        $(AM_V_GEN)cd '$(srcdir)/$(ltdl_dir)' && $(AUTOCONF)
 
 $(lt_config_h_in): $(lt_configure_deps)