aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2004-02-29 22:50:19 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2004-02-29 22:50:19 +0000
commit8bb915b65498bcfd9769ba28438140e4006b9d3e (patch)
treee8f6ed8ce3d0e215220cb39569e130254b08a0dc /gcc/configure.ac
parent4ee31f1e477ffd0354f1322970d6c09ae580f665 (diff)
downloadgcc-8bb915b65498bcfd9769ba28438140e4006b9d3e.zip
gcc-8bb915b65498bcfd9769ba28438140e4006b9d3e.tar.gz
gcc-8bb915b65498bcfd9769ba28438140e4006b9d3e.tar.bz2
configure.ac: Rearrange some threading code for clarity; add section comment.
* configure.ac: Rearrange some threading code for clarity; add section comment. * configure: Regenerate. From-SVN: r78678
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac26
1 files changed, 17 insertions, 9 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 4e0d742..cee941c 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -1118,6 +1118,10 @@ if test "$host_xm_file" != "$build_xm_file"; then
fi
fi
+# ---------
+# Threading
+# ---------
+
# Check if a valid thread package
case ${enable_threads_flag} in
"" | no)
@@ -1144,6 +1148,19 @@ if test x${thread_file} = x; then
thread_file=${target_thread_file}
fi
+# Make gthr-default.h if we have a thread file.
+gthread_flags=
+if test $thread_file != single; then
+ rm -f gthr-default.h
+ echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
+ gthread_flags=-DHAVE_GTHR_DEFAULT
+fi
+AC_SUBST(gthread_flags)
+
+# --------
+# UNSORTED
+# --------
+
if test x$enable___cxa_atexit = xyes || \
test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
AC_CHECK_FUNC(__cxa_atexit,
@@ -2761,15 +2778,6 @@ The following requested languages were not found:${missing_languages}
The following languages were available: c${found_languages}])
fi
-# Make gthr-default.h if we have a thread file.
-gthread_flags=
-if test $thread_file != single; then
- rm -f gthr-default.h
- echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
- gthread_flags=-DHAVE_GTHR_DEFAULT
-fi
-AC_SUBST(gthread_flags)
-
# Find out what GC implementation we want, or may, use.
AC_ARG_WITH(gc,
[ --with-gc={page,zone} choose the garbage collection mechanism to use