Fixes an error introduced in the last configure.ac commit with the usage of

the macro AC_LANG_PROGRAM. The generated test program was incorrect.


git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@278 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Marcelo Roberto Jimenez 2007-12-25 13:14:48 +00:00
parent 4a6014c6f6
commit 3fe9ccb9ae

View File

@ -342,8 +342,8 @@ AC_COMPILE_IFELSE(
AC_MSG_RESULT([yes, supported without any options])],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[#define _GNU_SOURCE],
[#include <pthread.h>],
[#define _GNU_SOURCE
#include <pthread.h>],
[pthread_rwlock_t *x;])],
[AC_DEFINE([UPNP_USE_RWLOCK], [1], [Use pthread_rwlock_t])
CFLAGS="$CFLAGS -D_GNU_SOURCE"