1 --- libupnp.old/configure.ac 2008-04-25 13:41:16.000000000 +0200
2 +++ libupnp/configure.ac 2010-08-11 00:41:04.000000000 +0200
4 # so just abort if a header file is not found.
24 # Checks for POSIX Threads
26 echo "--------------------------- pthread stuff -------------------------------------"
29 - [AC_MSG_ERROR([POSIX threads are required to build this program])])
32 +# [AC_MSG_ERROR([POSIX threads are required to build this program])])
34 # Update environment variables for pthreads
37 -CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
38 -LIBS="$PTHREAD_LIBS $LIBS"
40 +#CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
41 +#LIBS="$PTHREAD_LIBS $LIBS"
43 # Determine if pthread_rwlock_t is available
45 -echo "----------------------- pthread_rwlock_t stuff --------------------------------"
46 -AC_MSG_CHECKING([if pthread_rwlock_t is available])
50 - [#include <pthread.h>],
51 - [pthread_rwlock_t *x;])],
52 - [AC_DEFINE([UPNP_USE_RWLOCK], [1], [Use pthread_rwlock_t])
53 - AC_MSG_RESULT([yes, supported without any options])],
56 - [#define _GNU_SOURCE
57 - #include <pthread.h>],
58 - [pthread_rwlock_t *x;])],
59 - [AC_DEFINE([UPNP_USE_RWLOCK], [1], [Use pthread_rwlock_t])
60 - CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
61 - AC_MSG_RESULT([yes, definition of _GNU_SOURCE required])],
62 - [AC_DEFINE([UPNP_USE_RWLOCK], [0], [Do not use pthread_rwlock_t])
63 - AC_MSG_RESULT([no, needs to fallback to pthread_mutex])
64 - AC_MSG_ERROR([pthread_rwlock_t not available])])])
65 -echo "-------------------------------------------------------------------------------"
66 +#echo "----------------------- pthread_rwlock_t stuff --------------------------------"
67 +#AC_MSG_CHECKING([if pthread_rwlock_t is available])
71 +# [#include <pthread.h>],
72 +# [pthread_rwlock_t *x;])],
73 +# [AC_DEFINE([UPNP_USE_RWLOCK], [1], [Use pthread_rwlock_t])
74 +# AC_MSG_RESULT([yes, supported without any options])],
75 +# [AC_COMPILE_IFELSE(
77 +# [#define _GNU_SOURCE
78 +# #include <pthread.h>],
79 +# [pthread_rwlock_t *x;])],
80 +# [AC_DEFINE([UPNP_USE_RWLOCK], [1], [Use pthread_rwlock_t])
81 +# CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
82 +# AC_MSG_RESULT([yes, definition of _GNU_SOURCE required])],
83 +# [AC_DEFINE([UPNP_USE_RWLOCK], [0], [Do not use pthread_rwlock_t])
84 +# AC_MSG_RESULT([no, needs to fallback to pthread_mutex])
85 +# AC_MSG_ERROR([pthread_rwlock_t not available])])])
86 +#echo "-------------------------------------------------------------------------------"
90 --- libupnp.old/configure.ac 2010-08-11 00:41:04.000000000 +0200
91 +++ libupnp/configure.ac 2010-08-11 12:32:48.000000000 +0200
93 # Checks for typedefs, structures, and compiler characteristics