@@ -2781,16 +2781,15 @@ AS_VAR_IF([ac_cv_clock_t_time_h], [no], [
2781
2781
] )
2782
2782
2783
2783
AC_CACHE_CHECK ( [ for makedev] , [ ac_cv_func_makedev] , [
2784
- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [
2784
+ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
2785
2785
#if defined(MAJOR_IN_MKDEV)
2786
2786
#include <sys/mkdev.h>
2787
2787
#elif defined(MAJOR_IN_SYSMACROS)
2788
2788
#include <sys/sysmacros.h>
2789
2789
#else
2790
2790
#include <sys/types.h>
2791
2791
#endif
2792
- ] ] , [ [
2793
- makedev(0, 0) ] ] )
2792
+ makedev(0, 0) ] ] )
2794
2793
] ,[ ac_cv_func_makedev=yes] ,[ ac_cv_func_makedev=no] )
2795
2794
] )
2796
2795
@@ -2800,14 +2799,13 @@ AS_VAR_IF([ac_cv_func_makedev], [yes], [
2800
2799
2801
2800
# byte swapping
2802
2801
AC_CACHE_CHECK ( [ for le64toh] , [ ac_cv_func_le64toh] , [
2803
- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [
2802
+ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
2804
2803
#ifdef HAVE_ENDIAN_H
2805
2804
#include <endian.h>
2806
2805
#elif defined(HAVE_SYS_ENDIAN_H)
2807
2806
#include <sys/endian.h>
2808
2807
#endif
2809
- ] ] , [ [
2810
- le64toh(1) ] ] )
2808
+ le64toh(1) ] ] )
2811
2809
] ,[ ac_cv_func_le64toh=yes] ,[ ac_cv_func_le64toh=no] )
2812
2810
] )
2813
2811
2926
2924
2927
2925
AC_CACHE_CHECK ( [ for pthread_t] , [ ac_cv_have_pthread_t] , [
2928
2926
AC_COMPILE_IFELSE ( [
2929
- AC_LANG_PROGRAM ( [ [ #include <pthread.h>] ] , [ [ pthread_t x; x = *(pthread_t*)0;] ] )
2930
- ] , [ ac_cv_have_pthread_t=yes] , [ ac_cv_have_pthread_t=no] )
2927
+ AC_LANG_SOURCE ( [ [ #include <pthread.h>
2928
+ pthread_t x; x = *(pthread_t*)0;
2929
+ ] ] ) ] , [ ac_cv_have_pthread_t=yes] , [ ac_cv_have_pthread_t=no] )
2931
2930
] )
2932
2931
AS_VAR_IF ( [ ac_cv_have_pthread_t] , [ yes] , [
2933
2932
AC_CHECK_SIZEOF ( pthread_t , [ ] , [
@@ -2943,7 +2942,9 @@ AC_CHECK_SIZEOF(pthread_key_t, [], [[#include <pthread.h>]])
2943
2942
AC_CACHE_CHECK ( [ whether pthread_key_t is compatible with int] , [ ac_cv_pthread_key_t_is_arithmetic_type] , [
2944
2943
if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
2945
2944
AC_COMPILE_IFELSE (
2946
- [ AC_LANG_PROGRAM ( [ [ #include <pthread.h>] ] , [ [ pthread_key_t k; k * 1;] ] ) ] ,
2945
+ [ AC_LANG_SOURCE ( [ [ #include <pthread.h>
2946
+ pthread_key_t k; k * 1;
2947
+ ] ] ) ] ,
2947
2948
[ ac_cv_pthread_key_t_is_arithmetic_type=yes] ,
2948
2949
[ ac_cv_pthread_key_t_is_arithmetic_type=no]
2949
2950
)
@@ -3552,8 +3553,8 @@ AC_CHECK_LIB(intl, textdomain,
3552
3553
case "$ac_sys_system" in
3553
3554
AIX*) AC_MSG_CHECKING ( for genuine AIX C++ extensions support )
3554
3555
AC_LINK_IFELSE ( [
3555
- AC_LANG_PROGRAM ( [ [ #include <load.h>] ] ,
3556
- [ [ loadAndInit("", 0, "")] ] )
3556
+ AC_LANG_SOURCE ( [ [ #include <load.h>
3557
+ loadAndInit("", 0, "")] ] )
3557
3558
] ,[
3558
3559
AC_DEFINE ( AIX_GENUINE_CPLUSPLUS , 1 ,
3559
3560
[ Define for AIX if your compiler is a genuine IBM xlC/xlC_r
@@ -3950,7 +3951,7 @@ dnl hence CPPFLAGS instead of CFLAGS.
3950
3951
have_sqlite3=yes
3951
3952
3952
3953
AC_COMPILE_IFELSE ( [
3953
- AC_LANG_PROGRAM ( [
3954
+ AC_LANG_SOURCE ( [
3954
3955
#include <sqlite3.h>
3955
3956
#if SQLITE_VERSION_NUMBER < 3007015
3956
3957
# error "SQLite 3.7.15 or higher required"
@@ -4051,7 +4052,7 @@ WITH_SAVE_ENV([
4051
4052
LIBS="$TCLTK_LIBS $LDFLAGS"
4052
4053
4053
4054
AC_LINK_IFELSE ( [
4054
- AC_LANG_PROGRAM ( [
4055
+ AC_LANG_SOURCE ( [
4055
4056
#include <tcl.h>
4056
4057
#include <tk.h>
4057
4058
#if defined(TK_HEX_VERSION)
@@ -4069,7 +4070,6 @@ WITH_SAVE_ENV([
4069
4070
((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION == 5) && (TK_RELEASE_SERIAL < 12))
4070
4071
# error "Tk older than 8.5.12 not supported"
4071
4072
#endif
4072
- ] , [
4073
4073
void *x1 = Tcl_Init;
4074
4074
void *x2 = Tk_Init;
4075
4075
] )
@@ -4158,13 +4158,13 @@ AC_CHECK_HEADERS([db.h], [
4158
4158
AC_CACHE_CHECK ( [ for libdb] , [ ac_cv_have_libdb] , [
4159
4159
WITH_SAVE_ENV([
4160
4160
LIBS="$LIBS -ldb"
4161
- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [
4161
+ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [
4162
4162
#define DB_DBM_HSEARCH 1
4163
4163
#include <db.h>
4164
4164
#if DB_VERSION_MAJOR < 5
4165
4165
#error "dh.h: DB_VERSION_MAJOR < 5 is not supported."
4166
4166
#endif
4167
- ] , [ DBM *dbm = dbm_open(NULL, 0, 0)] )
4167
+ DBM *dbm = dbm_open(NULL, 0, 0)] )
4168
4168
] , [ ac_cv_have_libdb=yes] , [ ac_cv_have_libdb=no] )
4169
4169
] )
4170
4170
] )
@@ -4290,12 +4290,12 @@ yes
4290
4290
_libs=$LIBS
4291
4291
LIBS="$LIBS -lpthread"
4292
4292
AC_MSG_CHECKING ( [ for pthread_create in -lpthread] )
4293
- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [
4293
+ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
4294
4294
#include <stdio.h>
4295
4295
#include <stdlib.h>
4296
4296
#include <pthread.h>
4297
4297
4298
- void * start_routine (void *arg) { exit (0); }] ] , [ [
4298
+ void * start_routine (void *arg) { exit (0); }
4299
4299
pthread_create (NULL, NULL, start_routine, NULL)] ] ) ] ,[
4300
4300
AC_MSG_RESULT ( yes )
4301
4301
posix_threads=yes
@@ -4410,10 +4410,11 @@ AC_ARG_ENABLE(ipv6,
4410
4410
4411
4411
[
4412
4412
dnl the check does not work on cross compilation case...
4413
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ /* AF_INET6 available check */
4413
+ AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [ [ /* AF_INET6 available check */
4414
4414
#include <sys/types.h>
4415
- #include <sys/socket.h>] ] ,
4416
- [ [ int domain = AF_INET6;] ] ) ] ,[
4415
+ #include <sys/socket.h>
4416
+ int domain = AF_INET6;
4417
+ ] ] ) ] ,[
4417
4418
ipv6=yes
4418
4419
] ,[
4419
4420
ipv6=no
@@ -4428,10 +4429,11 @@ AC_MSG_RESULT([$ipv6])
4428
4429
if test "$ipv6" = "yes"; then
4429
4430
AC_MSG_CHECKING ( if RFC2553 API is available )
4430
4431
AC_COMPILE_IFELSE ( [
4431
- AC_LANG_PROGRAM ( [ [ #include <sys/types.h>
4432
- #include <netinet/in.h>] ] ,
4433
- [ [ struct sockaddr_in6 x;
4434
- x.sin6_scope_id;] ] )
4432
+ AC_LANG_SOURCE ( [ [ #include <sys/types.h>
4433
+ #include <netinet/in.h>
4434
+ struct sockaddr_in6 x;
4435
+ x.sin6_scope_id;
4436
+ ] ] )
4435
4437
] ,[
4436
4438
AC_MSG_RESULT ( yes )
4437
4439
ipv6=yes
@@ -5152,16 +5154,15 @@ AC_CHECK_FUNCS(nanosleep, [], [
5152
5154
] )
5153
5155
5154
5156
AC_CACHE_CHECK ( [ for major, minor, and makedev] , [ ac_cv_device_macros] , [
5155
- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [
5157
+ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
5156
5158
#if defined(MAJOR_IN_MKDEV)
5157
5159
#include <sys/mkdev.h>
5158
5160
#elif defined(MAJOR_IN_SYSMACROS)
5159
5161
#include <sys/sysmacros.h>
5160
5162
#else
5161
5163
#include <sys/types.h>
5162
5164
#endif
5163
- ] ] , [ [
5164
- makedev(major(0),minor(0));
5165
+ makedev(major(0),minor(0));
5165
5166
] ] ) ] ,[ ac_cv_device_macros=yes] , [ ac_cv_device_macros=no] )
5166
5167
] )
5167
5168
AS_VAR_IF ( [ ac_cv_device_macros] , [ yes] , [
@@ -5177,12 +5178,12 @@ AC_DEFINE(SYS_SELECT_WITH_SYS_TIME, 1,
5177
5178
# On OSF/1 V5.1, getaddrinfo is available, but a define
5178
5179
# for [no]getaddrinfo in netdb.h.
5179
5180
AC_CACHE_CHECK ( [ for getaddrinfo] , [ ac_cv_func_getaddrinfo] , [
5180
- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [
5181
+ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
5181
5182
#include <sys/types.h>
5182
5183
#include <sys/socket.h>
5183
5184
#include <netdb.h>
5184
5185
#include <stdio.h>
5185
- ] ] , [ [ getaddrinfo(NULL, NULL, NULL, NULL);] ] ) ] ,
5186
+ getaddrinfo(NULL, NULL, NULL, NULL);] ] ) ] ,
5186
5187
[ ac_cv_func_getaddrinfo=yes] ,
5187
5188
[ ac_cv_func_getaddrinfo=no] )
5188
5189
] )
@@ -5413,9 +5414,8 @@ AC_CHECK_FUNC(gethostbyname_r, [
5413
5414
AC_MSG_CHECKING ( [ gethostbyname_r with 6 args] )
5414
5415
OLD_CFLAGS=$CFLAGS
5415
5416
CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
5416
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
5417
- # include <netdb.h>
5418
- ] ] , [ [
5417
+ AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [ [
5418
+ #include <netdb.h>
5419
5419
char *name;
5420
5420
struct hostent *he, *res;
5421
5421
char buffer[ 2048] ;
@@ -5431,9 +5431,8 @@ AC_CHECK_FUNC(gethostbyname_r, [
5431
5431
] ,[
5432
5432
AC_MSG_RESULT ( no )
5433
5433
AC_MSG_CHECKING ( [ gethostbyname_r with 5 args] )
5434
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
5435
- # include <netdb.h>
5436
- ] ] , [ [
5434
+ AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [ [
5435
+ #include <netdb.h>
5437
5436
char *name;
5438
5437
struct hostent *he;
5439
5438
char buffer[ 2048] ;
@@ -5450,9 +5449,8 @@ AC_CHECK_FUNC(gethostbyname_r, [
5450
5449
] , [
5451
5450
AC_MSG_RESULT ( no )
5452
5451
AC_MSG_CHECKING ( [ gethostbyname_r with 3 args] )
5453
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
5454
- # include <netdb.h>
5455
- ] ] , [ [
5452
+ AC_COMPILE_IFELSE ( [ AC_LANG_SOURCE ( [ [
5453
+ #include <netdb.h>
5456
5454
char *name;
5457
5455
struct hostent *he;
5458
5456
struct hostent_data data;
5937
5935
5938
5936
# check for getc_unlocked and related locking functions
5939
5937
AC_CACHE_CHECK ( [ for getc_unlocked() and friends] , [ ac_cv_have_getc_unlocked] , [
5940
- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <stdio.h>] ] , [ [
5938
+ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [ #include <stdio.h>
5941
5939
FILE *f = fopen("/dev/null", "r");
5942
5940
flockfile(f);
5943
5941
getc_unlocked(f);
0 commit comments