Commit 18cbfd85 by Paolo Bonzini Committed by Richard Henderson

re PR libgomp/25259 (bootstrap failures on non-C99 platforms (no stdint.h))

        PR libgomp/25259
        * configure.ac: Use GCC_HEADER_STDINT.
        * libgomp.h: Include gstdint.h.
        * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
        * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.

From-SVN: r110179
parent 38fd6679
2005-01-24 Paolo Bonzini <bonzini@gnu.org>
PR libgomp/25259
* configure.ac: Use GCC_HEADER_STDINT.
* libgomp.h: Include gstdint.h.
* libgomp_f.h.in: Don't include stdint.h or inttypes.h.
* configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2006-01-24 Richard Henderson <rth@redhat.com> 2006-01-24 Richard Henderson <rth@redhat.com>
PR libgomp/25942 PR libgomp/25942
......
...@@ -50,7 +50,8 @@ DIST_COMMON = $(am__configure_deps) $(srcdir)/../config.guess \ ...@@ -50,7 +50,8 @@ DIST_COMMON = $(am__configure_deps) $(srcdir)/../config.guess \
subdir = . subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \ am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
$(top_srcdir)/../config/lead-dot.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/../config/lead-dot.m4 \
$(top_srcdir)/../config/stdint.m4 $(top_srcdir)/acinclude.m4 \
$(top_srcdir)/../libtool.m4 $(top_srcdir)/configure.ac $(top_srcdir)/../libtool.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4) $(ACLOCAL_M4)
......
...@@ -916,4 +916,5 @@ AC_SUBST([am__untar]) ...@@ -916,4 +916,5 @@ AC_SUBST([am__untar])
m4_include([../config/depstand.m4]) m4_include([../config/depstand.m4])
m4_include([../config/lead-dot.m4]) m4_include([../config/lead-dot.m4])
m4_include([../config/stdint.m4])
m4_include([acinclude.m4]) m4_include([acinclude.m4])
...@@ -142,6 +142,8 @@ AC_CHECK_HEADERS(unistd.h semaphore.h sys/loadavg.h sys/time.h) ...@@ -142,6 +142,8 @@ AC_CHECK_HEADERS(unistd.h semaphore.h sys/loadavg.h sys/time.h)
AC_CHECK_HEADER([pthread.h],[], AC_CHECK_HEADER([pthread.h],[],
[AC_MSG_ERROR([Pthreads are required to build libgomp])]) [AC_MSG_ERROR([Pthreads are required to build libgomp])])
GCC_HEADER_STDINT(gstdint.h)
# Check to see if -pthread or -lpthread is needed. Prefer the former. # Check to see if -pthread or -lpthread is needed. Prefer the former.
XPCFLAGS="" XPCFLAGS=""
CFLAGS="$CFLAGS -pthread" CFLAGS="$CFLAGS -pthread"
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#define LIBGOMP_H 1 #define LIBGOMP_H 1
#include "config.h" #include "config.h"
#include "gstdint.h"
#include <pthread.h> #include <pthread.h>
#include <stdbool.h> #include <stdbool.h>
......
...@@ -32,12 +32,6 @@ ...@@ -32,12 +32,6 @@
#define LIBGOMP_F_H 1 #define LIBGOMP_F_H 1
#include "libgomp.h" #include "libgomp.h"
#if HAVE_STDINT_H
#include <stdint.h>
#endif
#if HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#if (OMP_LOCK_SIZE == OMP_LOCK_KIND) \ #if (OMP_LOCK_SIZE == OMP_LOCK_KIND) \
&& (OMP_LOCK_ALIGN <= OMP_LOCK_SIZE) && (OMP_LOCK_ALIGN <= OMP_LOCK_SIZE)
......
...@@ -40,7 +40,8 @@ subdir = testsuite ...@@ -40,7 +40,8 @@ subdir = testsuite
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \ am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
$(top_srcdir)/../config/lead-dot.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/../config/lead-dot.m4 \
$(top_srcdir)/../config/stdint.m4 $(top_srcdir)/acinclude.m4 \
$(top_srcdir)/../libtool.m4 $(top_srcdir)/configure.ac $(top_srcdir)/../libtool.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4) $(ACLOCAL_M4)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment