diff options
author | Thien-Thi Nguyen <ttn@gnuvola.org> | 2012-08-23 17:15:32 +0200 |
---|---|---|
committer | Thien-Thi Nguyen <ttn@gnuvola.org> | 2012-08-23 17:44:09 +0200 |
commit | b3ee8403f89b21b1f9bda7fa93ef43861726fe5e (patch) | |
tree | 95be538755a3bf394d2e9ad1b24686a75f237cb2 | |
parent | 037b7f6a16d06073ae2b1f5cd3ad2588b2685455 (diff) | |
download | guile-b3ee8403f89b21b1f9bda7fa93ef43861726fe5e.tar.gz |
configure, int: Add more 'AC_LANG_PROGRAM' calls
* configure.ac (guile_cv_need_braces_on_pthread_once_init)
(guile_cv_need_braces_on_pthread_mutex_initializer): Add
'AC_LANG_PROGRAM' call to first arg of 'AC_COMPILE_IFELSE'.
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 9daa94455..9f599765e 100644 --- a/configure.ac +++ b/configure.ac @@ -1362,8 +1362,8 @@ case "$with_threads" in AC_CACHE_CHECK([whether PTHREAD_ONCE_INIT needs braces], [guile_cv_need_braces_on_pthread_once_init], - [AC_COMPILE_IFELSE([#include <pthread.h> - pthread_once_t foo = PTHREAD_ONCE_INIT;], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h> + pthread_once_t foo = PTHREAD_ONCE_INIT;]])], [guile_cv_need_braces_on_pthread_once_init=no], [guile_cv_need_braces_on_pthread_once_init=yes])]) if test "$guile_cv_need_braces_on_pthread_once_init" = yes; then @@ -1374,8 +1374,8 @@ case "$with_threads" in # 6.5.30m with GCC 3.3. AC_CACHE_CHECK([whether PTHREAD_MUTEX_INITIALIZER needs braces], [guile_cv_need_braces_on_pthread_mutex_initializer], - [AC_COMPILE_IFELSE([#include <pthread.h> - pthread_mutex_t foo = PTHREAD_MUTEX_INITIALIZER;], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h> + pthread_mutex_t foo = PTHREAD_MUTEX_INITIALIZER;]])], [guile_cv_need_braces_on_pthread_mutex_initializer=no], [guile_cv_need_braces_on_pthread_mutex_initializer=yes])]) if test "$guile_cv_need_braces_on_pthread_mutex_initializer" = yes; then |