1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../glib12/config.patch.cross
5 # Copyright (C) 2009 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- glib-1.2.10/configure.vanilla 2009-04-12 14:09:37.000000000 +0200
18 +++ glib-1.2.10/configure 2009-04-12 14:21:58.000000000 +0200
22 if test "$cross_compiling" = yes; then
23 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
26 cat > conftest.$ac_ext <<EOF
27 #line 2106 "configure"
28 @@ -5385,7 +5385,11 @@
29 echo "configure:5386: checking whether pthread_mutex_trylock is posix like" >&5
30 # DCE Threads return 1 as success, posix 0. what a mess.
31 if test "$cross_compiling" = yes; then
32 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
33 + echo "$ac_t""yes" 1>&6
34 + cat >> confdefs.h <<\EOF
35 +#define HAVE_PTHREAD_MUTEX_TRYLOCK_POSIX 1
39 cat > conftest.$ac_ext <<EOF
40 #line 5392 "configure"
41 @@ -5415,7 +5419,11 @@
42 echo "configure:5416: checking whether pthread_cond_timedwait is posix like" >&5
43 # DCE Threads return -1 as failure, posix ETIMEDOUT.
44 if test "$cross_compiling" = yes; then
45 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
46 + echo "$ac_t""yes" 1>&6
47 + cat >> confdefs.h <<\EOF
48 +#define HAVE_PTHREAD_COND_TIMEDWAIT_POSIX 1
52 cat > conftest.$ac_ext <<EOF
53 #line 5422 "configure"
55 echo "#endif" >>confrun.c
57 echo "return 0; }" >>confrun.c
58 -if test "$cross_compiling" = yes; then
59 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
61 cat > conftest.$ac_ext <<EOF
62 #line 5607 "configure"
65 echo "$ac_t""failed" 1>&6