From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2041) id 0992A385840F; Mon, 18 Jul 2022 17:37:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0992A385840F Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Vladimir Mezentsev To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb/binutils-2_39-branch] gprofng: fix regression in build and a race condition in autoreconf X-Act-Checkin: binutils-gdb X-Git-Author: Vladimir Mezentsev X-Git-Refname: refs/heads/binutils-2_39-branch X-Git-Oldrev: b8b9506514c9d77670f92121c27a0a24d0c7aa13 X-Git-Newrev: a2c1ab55cce40aaeeb2b2300679c317a7d45c6d5 Message-Id: <20220718173709.0992A385840F@sourceware.org> Date: Mon, 18 Jul 2022 17:37:09 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2022 17:37:09 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da2c1ab55cce4= 0aaeeb2b2300679c317a7d45c6d5 commit a2c1ab55cce40aaeeb2b2300679c317a7d45c6d5 Author: Vladimir Mezentsev Date: Mon Jul 18 09:57:34 2022 -0700 gprofng: fix regression in build and a race condition in autoreconf =20 gprofng/ChangeLog 2022-07-14 Vladimir Mezentsev =20 PR gprofng/29338 * libcollector/configure.ac (AC_CONFIG_HEADERS): Fix a race con= dition. * libcollector/configure: Rebuild. * libcollector/Makefile.in: Rebuild. * common/config.h.in: Rebuild. * common/lib-config.h.in: Created by autoreconf. Diff: --- gprofng/common/config.h.in | 28 +++++++++++- gprofng/common/lib-config.h.in | 94 +++++++++++++++++++++++++++++++++++= ++++ gprofng/libcollector/Makefile.in | 6 +-- gprofng/libcollector/configure | 5 ++- gprofng/libcollector/configure.ac | 3 +- 5 files changed, 129 insertions(+), 7 deletions(-) diff --git a/gprofng/common/config.h.in b/gprofng/common/config.h.in index 93c8e7ee4f5..8409ce74a57 100644 --- a/gprofng/common/config.h.in +++ b/gprofng/common/config.h.in @@ -1,4 +1,17 @@ -/* ../common/config.h.in. Generated from configure.ac by autoheader. */ +/* common/config.h.in. Generated from configure.ac by autoheader. */ + +/* Enable debugging output. */ +#undef DEBUG + +/* Enable java profiling */ +#undef GPROFNG_JAVA_PROFILING + +/* Define to 1 if you have the `clock_gettime' function. */ +#undef HAVE_CLOCK_GETTIME + +/* Define to 1 if you have the declaration of `basename', and to 0 if you + don't. */ +#undef HAVE_DECL_BASENAME =20 /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H @@ -9,6 +22,12 @@ /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H =20 +/* Define if you have POSIX threads libraries and header files. */ +#undef HAVE_PTHREAD + +/* Have PTHREAD_PRIO_INHERIT. */ +#undef HAVE_PTHREAD_PRIO_INHERIT + /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H =20 @@ -21,6 +40,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H =20 +/* Define to 1 if you have the `strsignal' function. */ +#undef HAVE_STRSIGNAL + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H =20 @@ -55,6 +77,10 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION =20 +/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +#undef PTHREAD_CREATE_JOINABLE + /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS =20 diff --git a/gprofng/common/lib-config.h.in b/gprofng/common/lib-config.h.in new file mode 100644 index 00000000000..da7d81b1dbd --- /dev/null +++ b/gprofng/common/lib-config.h.in @@ -0,0 +1,94 @@ +/* ../common/lib-config.h.in. Generated from configure.ac by autoheader. = */ + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the sub-directory in which libtool stores uninstalled librari= es. + */ +#undef LT_OBJDIR + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent= . */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# undef _ALL_SOURCE +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# undef _POSIX_PTHREAD_SEMANTICS +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# undef _TANDEM_SOURCE +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# undef __EXTENSIONS__ +#endif + + +/* Version number of package */ +#undef VERSION + +/* Define to 1 if on MINIX. */ +#undef _MINIX + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +#undef _POSIX_1_SOURCE + +/* Define to 1 if you need to in order for `stat' and other things to work= . */ +#undef _POSIX_SOURCE diff --git a/gprofng/libcollector/Makefile.in b/gprofng/libcollector/Makefi= le.in index e8b2aab0471..9372c6dea78 100644 --- a/gprofng/libcollector/Makefile.in +++ b/gprofng/libcollector/Makefile.in @@ -274,7 +274,7 @@ am__DIST_COMMON =3D $(srcdir)/Makefile.in $(top_srcdir)= /../../ar-lib \ $(top_srcdir)/../../config.sub $(top_srcdir)/../../depcomp \ $(top_srcdir)/../../install-sh $(top_srcdir)/../../ltmain.sh \ $(top_srcdir)/../../missing $(top_srcdir)/../../mkinstalldirs \ - $(top_srcdir)/../common/config.h.in ../../COPYING \ + $(top_srcdir)/../common/lib-config.h.in ../../COPYING \ ../../COPYING.LIB ../../ChangeLog ../../README ../../ar-lib \ ../../compile ../../config.guess ../../config.rpath \ ../../config.sub ../../depcomp ../../install-sh \ @@ -518,10 +518,10 @@ lib-config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 =20 -stamp-h1: $(top_srcdir)/../common/config.h.in $(top_builddir)/config.status +stamp-h1: $(top_srcdir)/../common/lib-config.h.in $(top_builddir)/config.s= tatus @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status lib-config.h -$(top_srcdir)/../common/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configur= e_deps)=20 +$(top_srcdir)/../common/lib-config.h.in: @MAINTAINER_MODE_TRUE@ $(am__conf= igure_deps)=20 ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ diff --git a/gprofng/libcollector/configure b/gprofng/libcollector/configure index e9eadf61444..449b733983f 100755 --- a/gprofng/libcollector/configure +++ b/gprofng/libcollector/configure @@ -15553,7 +15553,8 @@ ac_compiler_gnu=3D$ac_cv_c_compiler_gnu =20 ac_config_files=3D"$ac_config_files Makefile" =20 -ac_config_headers=3D"$ac_config_headers lib-config.h:../common/config.h.in" +ac_config_headers=3D"$ac_config_headers lib-config.h:../common/lib-config.= h.in" + =20 cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -16655,7 +16656,7 @@ do "depfiles") CONFIG_COMMANDS=3D"$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS=3D"$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES=3D"$CONFIG_FILES Makefile" ;; - "lib-config.h") CONFIG_HEADERS=3D"$CONFIG_HEADERS lib-config.h:../comm= on/config.h.in" ;; + "lib-config.h") CONFIG_HEADERS=3D"$CONFIG_HEADERS lib-config.h:../comm= on/lib-config.h.in" ;; =20 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac diff --git a/gprofng/libcollector/configure.ac b/gprofng/libcollector/confi= gure.ac index d3c6bd5588d..a19e62068fd 100644 --- a/gprofng/libcollector/configure.ac +++ b/gprofng/libcollector/configure.ac @@ -62,6 +62,7 @@ ACX_PROG_CC_WARNING_OPTS([-Wno-nonnull-compare], [GPROFNG= _NO_NONNULL_COMPARE_CFL AC_SUBST(GPROFNG_NO_NONNULL_COMPARE_CFLAGS) =20 AC_CONFIG_FILES([Makefile]) -AC_CONFIG_HEADERS([lib-config.h:../common/config.h.in]) +AC_CONFIG_HEADERS([lib-config.h:../common/lib-config.h.in]) + AC_OUTPUT