diff -purN pkg-config-0.23.orig/glib-1.2.10/configure pkg-config-0.23/glib-1.2.10/configure --- pkg-config-0.23.orig/glib-1.2.10/configure 2009-11-30 14:46:09.000000000 +0100 +++ pkg-config-0.23/glib-1.2.10/configure 2009-11-30 15:28:03.000000000 +0100 @@ -20566,11 +20566,7 @@ echo $ECHO_N "checking for extra flags t glib_save_LIBS=$LIBS LIBS="$LIBS -lm" if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + LIBS="$LIBS -lm" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -20612,11 +20608,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 glib_save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -std1" if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + CFLAGS="$glib_save_CFLAGS" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -23769,11 +23761,7 @@ if test "${glib_cv_has__inline+set}" = s else if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + glib_cv_has__inline=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -23839,11 +23827,7 @@ if test "${glib_cv_has__inline__+set}" = else if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + glib_cv_has__inline__=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -23909,11 +23893,7 @@ if test "${glib_cv_hasinline+set}" = set else if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + glib_cv_hasinline=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -26330,11 +26310,7 @@ if test "${glib_cv_sane_realloc+set}" = else if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + glib_cv_sane_realloc=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -26403,11 +26379,7 @@ if test "${glib_cv_va_copy+set}" = set; else if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + glib_cv_va_copy=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -26477,11 +26449,7 @@ if test "${glib_cv___va_copy+set}" = set else if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + glib_cv___va_copy=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -26551,11 +26519,7 @@ if test "${glib_cv_va_val_copy+set}" = s else if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + glib_cv_va_val_copy=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -27137,11 +27101,7 @@ if test "${glib_cv_rtldglobal_broken+set else if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + glib_cv_rtldglobal_broken=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -27217,11 +27177,7 @@ echo $ECHO_N "checking for preceeding un else if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + glib_cv_uscore=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -28550,11 +28506,7 @@ echo $ECHO_N "checking for getpwuid_r... echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + ac_cv_func_getpwuid_r=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -28730,11 +28682,7 @@ rm -f core conftest.err conftest.$ac_obj echo $ECHO_N "checking whether pthread_mutex_trylock is posix like... $ECHO_C" >&6; } # DCE Threads return 1 as success, posix 0. what a mess. if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + echo else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -28790,11 +28738,7 @@ fi echo $ECHO_N "checking whether pthread_cond_timedwait is posix like... $ECHO_C" >&6; } # DCE Threads return -1 as failure, posix ETIMEDOUT. if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + echo else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -28889,11 +28833,7 @@ if test "${glib_cv_sizeof_gmutex+set}" = echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + glib_cv_sizeof_gmutex=0 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -29063,11 +29003,7 @@ for glib_sysdef_input in POLLIN:1 POLLOU done echo "return 0; }" >>confrun.c if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + echo else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */