remove warning with newer autoconf
Frediano Ziglio
12 years ago
475 | 475 |
break;
|
476 | 476 |
fi
|
477 | 477 |
done
|
478 | |
AC_COMPILE_IFELSE(AC_LANG_SOURCE([static void __attribute__((destructor)) my_uninit(void) {}], []),
|
|
478 |
AC_COMPILE_IFELSE([AC_LANG_SOURCE([static void __attribute__((destructor)) my_uninit(void) {}], [])],
|
479 | 479 |
AC_DEFINE(TDS_ATTRIBUTE_DESTRUCTOR, 1,
|
480 | 480 |
[Define to 1 if your compiler supports __attribute__((destructor)).]))
|
481 | 481 |
fi
|
44 | 44 |
ac_cv_func_which_getpwuid_r=no
|
45 | 45 |
num_params=four
|
46 | 46 |
for params in "int" "size_t, struct passwd **"; do
|
47 | |
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([
|
|
47 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
48 | 48 |
#include <unistd.h>
|
49 | 49 |
#include <pwd.h>
|
50 | 50 |
extern int getpwuid_r(uid_t, struct passwd *, char *, $params);
|
51 | |
],[]),[
|
|
51 |
],[])],[
|
52 | 52 |
if test $ac_cv_func_which_getpwuid_r != no; then
|
53 | 53 |
AC_ERROR([Two types of getpwuid_r detected])
|
54 | 54 |
fi
|
125 | 125 |
in "-pedantic % m4_ifval($1,$1,-option)" dnl GCC
|
126 | 126 |
#
|
127 | 127 |
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
128 | |
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([],[return 0;]),
|
|
128 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[return 0;])],
|
129 | 129 |
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
130 | 130 |
done
|
131 | 131 |
FLAGS="$ac_save_[]FLAGS"
|
|
160 | 160 |
in "-pedantic % m4_ifval($1,$1,-option)" dnl GCC
|
161 | 161 |
#
|
162 | 162 |
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
163 | |
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([],[return 0;]),
|
|
163 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[return 0;])],
|
164 | 164 |
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
165 | 165 |
done
|
166 | 166 |
FLAGS="$ac_save_[]FLAGS"
|
9 | 9 |
[tds_i64_format=
|
10 | 10 |
|
11 | 11 |
# Win32 case
|
12 | |
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([
|
|
12 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
13 | 13 |
#if !defined(__MINGW32__) || !defined(__MSVCRT__)
|
14 | 14 |
this should produce an error!
|
15 | 15 |
#endif
|
16 | |
],[return 0;]),[tds_i64_format="I64d"])
|
|
16 |
],[return 0;])],[tds_i64_format="I64d"])
|
17 | 17 |
|
18 | 18 |
# long is 64 bit
|
19 | 19 |
if test "x$ac_cv_sizeof_long" = "x8"; then
|
12 | 12 |
xml_cv_socklen_t_equiv=
|
13 | 13 |
for arg2 in "struct sockaddr" void; do
|
14 | 14 |
for t in int size_t unsigned long "unsigned long"; do
|
15 | |
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([
|
|
15 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
16 | 16 |
#ifdef HAVE_SYS_TYPES_H
|
17 | 17 |
# include <sys/types.h>
|
18 | 18 |
#endif
|
|
27 | 27 |
],[
|
28 | 28 |
$t len;
|
29 | 29 |
getpeername(0,0,&len);
|
30 | |
]),[
|
|
30 |
])],[
|
31 | 31 |
xml_cv_socklen_t_equiv="$t"
|
32 | 32 |
break
|
33 | 33 |
])
|