mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-06 12:10:28 +02:00
[build 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’.
This commit is contained in:
parent
d6aae483df
commit
181e92ba73
1 changed files with 4 additions and 4 deletions
|
@ -1366,8 +1366,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
|
||||
|
@ -1378,8 +1378,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue