diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2005-02-28 20:04:41 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2005-02-28 12:04:41 -0800 |
commit | 6886e18e758f87f7d409dccda8073a28dd883f3e (patch) | |
tree | ca433912ca749c15300ad2f27fa98b4a4aa5786c /libobjc/configure.ac | |
parent | d436d3dea2af2288cf3bace09f693bf27caebe15 (diff) | |
download | gcc-6886e18e758f87f7d409dccda8073a28dd883f3e.tar.gz |
re PR libobjc/20252 (Libobjc build broken)
2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
PR libobjc/20252
* Makefile.in (GTHREAD_FLAGS): Remove.
(ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
* thr-objc.c: Include config.h.
* configure.ac: Instead of looking at GCC's makefile, figure out if
GTHREAD_FLAGS should be defined by looking at the `thread model'
of the current gcc.
* configure: Regenerate.
* config.h.in: Regenerate.
From-SVN: r95696
Diffstat (limited to 'libobjc/configure.ac')
-rw-r--r-- | libobjc/configure.ac | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/libobjc/configure.ac b/libobjc/configure.ac index 5e56fb7b472..8c554b50563 100644 --- a/libobjc/configure.ac +++ b/libobjc/configure.ac @@ -218,18 +218,15 @@ AC_CHECK_HEADERS(sched.h) # Miscellanea # ----------- -# Determine CFLAGS for gthread. -AC_CACHE_CHECK([for gthread cflags],objc_cv_gthread_flags, -[# we know we are compiled as a target library, so the toplevel build directory -# is ../.. -if test -f ../../$host_subdir/gcc/Makefile -then - objc_cv_gthread_flags=`grep \^GTHREAD_FLAGS ../../$host_subdir/gcc/Makefile | awk -F= '{ print $2 }'` -else - AC_MSG_ERROR([not found]) -fi]) -GTHREAD_FLAGS=$objc_cv_gthread_flags -AC_SUBST(GTHREAD_FLAGS) +AC_MSG_CHECKING([for thread model used by GCC]) +target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` +AC_MSG_RESULT([$target_thread_file]) + +if test $target_thread_file != single; then + AC_DEFINE(HAVE_GTHR_DEFAULT, 1, + [Define if the compiler has a thread header that is non single.]) +fi + AC_MSG_CHECKING([for exception model to use]) AC_LANG_PUSH(C) |