malloc.h, semaphore.h, sys/time.h are unused. unistd.h is used but
without checking the guard, so drop the check.

libitm/ChangeLog:
        PR bootstrap/112422

        * config.h.in: Regenerate.
        * configure: Regenerate.
        * configure.ac: Don't search for malloc.h, semaphore.h, sys/time.h,
        or unistd.h.
        (AC_HEADER_TIME): Delete.
---
 libitm/config.h.in  | 12 ------------
 libitm/configure    | 44 ++++----------------------------------------
 libitm/configure.ac |  5 ++---
 3 files changed, 6 insertions(+), 55 deletions(-)

diff --git a/libitm/config.h.in b/libitm/config.h.in
index 26972c7e43e5..8f84097d7322 100644
--- a/libitm/config.h.in
+++ b/libitm/config.h.in
@@ -45,9 +45,6 @@
 /* Define to 1 if you have the <inttypes.h> header file. */
 #undef HAVE_INTTYPES_H
 
-/* Define to 1 if you have the <malloc.h> header file. */
-#undef HAVE_MALLOC_H
-
 /* Define to 1 if you have the `memalign' function. */
 #undef HAVE_MEMALIGN
 
@@ -66,9 +63,6 @@
 /* Define to 1 if you have the `posix_memalign' function. */
 #undef HAVE_POSIX_MEMALIGN
 
-/* Define to 1 if you have the <semaphore.h> header file. */
-#undef HAVE_SEMAPHORE_H
-
 /* Define to 1 if you have the <stdint.h> header file. */
 #undef HAVE_STDINT_H
 
@@ -93,9 +87,6 @@
 /* Define to 1 if you have the <sys/stat.h> header file. */
 #undef HAVE_SYS_STAT_H
 
-/* Define to 1 if you have the <sys/time.h> header file. */
-#undef HAVE_SYS_TIME_H
-
 /* Define to 1 if you have the <sys/types.h> header file. */
 #undef HAVE_SYS_TYPES_H
 
@@ -157,9 +148,6 @@
 /* Define if you can safely include both <string.h> and <strings.h>. */
 #undef STRING_WITH_STRINGS
 
-/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
-#undef TIME_WITH_SYS_TIME
-
 /* Version number of package */
 #undef VERSION
 
diff --git a/libitm/configure b/libitm/configure
index 95f1d7410b9c..7eb3ef41a01c 100755
--- a/libitm/configure
+++ b/libitm/configure
@@ -16097,41 +16097,6 @@ $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and 
sys/time.h may both be included" >&5
-$as_echo_n "checking whether time.h and sys/time.h may both be included... " 
>&6; }
-if ${ac_cv_header_time+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <sys/types.h>
-#include <sys/time.h>
-#include <time.h>
-
-int
-main ()
-{
-if ((struct tm *) 0)
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_header_time=yes
-else
-  ac_cv_header_time=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
-$as_echo "$ac_cv_header_time" >&6; }
-if test $ac_cv_header_time = yes; then
-
-$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
-
-fi
-
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and 
strings.h may both be included" >&5
 $as_echo_n "checking whether string.h and strings.h may both be included... " 
>&6; }
 if ${gcc_cv_header_string+:} false; then :
@@ -16164,13 +16129,12 @@ $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
 
 fi
 
-for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
+for ac_header in sys/auxv.h
 do :
-  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" 
"$ac_includes_default"
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+  ac_fn_c_check_header_mongrel "$LINENO" "sys/auxv.h" 
"ac_cv_header_sys_auxv_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_auxv_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+#define HAVE_SYS_AUXV_H 1
 _ACEOF
 
 fi
diff --git a/libitm/configure.ac b/libitm/configure.ac
index 7bc5ba204f97..5f8b10ed536d 100644
--- a/libitm/configure.ac
+++ b/libitm/configure.ac
@@ -165,10 +165,9 @@ libtool_VERSION=1:0:0
 AC_SUBST(libtool_VERSION)
 
 # Check header files.
-AC_HEADER_STDC
-AC_HEADER_TIME
+AC_STDC_HEADERS
 ACX_HEADER_STRING
-AC_CHECK_HEADERS(unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h)
+AC_CHECK_HEADERS(sys/auxv.h)
 
 GCC_HEADER_STDINT(gstdint.h)
 
-- 
2.56.0

Reply via email to