1901
1901
# options before we can check whether -Kpthread improves anything.
1902
1902
AC_MSG_CHECKING ( whether pthreads are available without options )
1903
1903
AC_CACHE_VAL ( ac_cv_pthread_is_default ,
1904
- [ AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [
1904
+ [ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
1905
1905
#include <stdio.h>
1906
1906
#include <pthread.h>
1907
1907
@@ -1930,13 +1930,13 @@ else
1930
1930
# -Kpthread, if available, provides the right #defines
1931
1931
# and linker options to make pthread_create available
1932
1932
# Some compilers won't report that they do not support -Kpthread,
1933
- # so we need to run a program to see whether it really made the
1933
+ # so we need to link a program to see whether it really made the
1934
1934
# function available.
1935
1935
AC_MSG_CHECKING ( whether $CC accepts - Kpthread )
1936
1936
AC_CACHE_VAL ( ac_cv_kpthread ,
1937
1937
[ ac_save_cc="$CC"
1938
1938
CC="$CC -Kpthread"
1939
- AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [
1939
+ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
1940
1940
#include <stdio.h>
1941
1941
#include <pthread.h>
1942
1942
@@ -1959,13 +1959,13 @@ then
1959
1959
# -Kthread, if available, provides the right #defines
1960
1960
# and linker options to make pthread_create available
1961
1961
# Some compilers won't report that they do not support -Kthread,
1962
- # so we need to run a program to see whether it really made the
1962
+ # so we need to link a program to see whether it really made the
1963
1963
# function available.
1964
1964
AC_MSG_CHECKING ( whether $CC accepts - Kthread )
1965
1965
AC_CACHE_VAL ( ac_cv_kthread ,
1966
1966
[ ac_save_cc="$CC"
1967
1967
CC="$CC -Kthread"
1968
- AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [
1968
+ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
1969
1969
#include <stdio.h>
1970
1970
#include <pthread.h>
1971
1971
@@ -1988,13 +1988,13 @@ then
1988
1988
# -pthread, if available, provides the right #defines
1989
1989
# and linker options to make pthread_create available
1990
1990
# Some compilers won't report that they do not support -pthread,
1991
- # so we need to run a program to see whether it really made the
1991
+ # so we need to link a program to see whether it really made the
1992
1992
# function available.
1993
1993
AC_MSG_CHECKING ( whether $CC accepts - pthread )
1994
1994
AC_CACHE_VAL ( ac_cv_pthread ,
1995
1995
[ ac_save_cc="$CC"
1996
1996
CC="$CC -pthread"
1997
- AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [
1997
+ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
1998
1998
#include <stdio.h>
1999
1999
#include <pthread.h>
2000
2000
0 commit comments