summaryrefslogtreecommitdiff
blob: 5b8da628eced449906bbb3399dfe2f2943d93c70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- glib-2.4.8/configure.orig	Thu Dec  2 15:36:40 2004
+++ glib-2.4.8/configure	Sat Feb 12 14:28:37 2005
@@ -31712,9 +31712,9 @@
          # skip cygwin -pthread or -pthreads test
          ;;
       *)
-        for flag in pthread pthreads; do
+        for flag in '-pthread' '-pthreads' ''; do
           glib_save_CFLAGS="$CFLAGS"
-          CFLAGS="$CFLAGS -$flag"
+          CFLAGS="$CFLAGS $flag"
           if test "$cross_compiling" = yes; then
   cat >conftest.$ac_ext <<_ACEOF
 
@@ -31803,8 +31803,8 @@
 fi
           CFLAGS="$glib_save_CFLAGS"
           if test $glib_flag_works = yes ; then
-             G_THREAD_CFLAGS=-$flag
-	     G_THREAD_LIBS=-$flag
+             G_THREAD_CFLAGS=$flag
+	     G_THREAD_LIBS=$flag
           fi
         done
          ;;
@@ -31861,6 +31861,9 @@
 	*-mingw*)
 		# No flag needed when using MSVCRT.DLL
 		G_THREAD_CFLAGS=""
+		;;
+	*-darwin*)
+		# Nothing needed.
 		;;
 	*)
 		G_THREAD_CFLAGS="-D_REENTRANT" # good default guess otherwise