Codebase list freetds / e1d4b5d
remove warning with newer autoconf Frediano Ziglio 12 years ago
5 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
475475 break;
476476 fi
477477 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) {}], [])],
479479 AC_DEFINE(TDS_ATTRIBUTE_DESTRUCTOR, 1,
480480 [Define to 1 if your compiler supports __attribute__((destructor)).]))
481481 fi
4444 ac_cv_func_which_getpwuid_r=no
4545 num_params=four
4646 for params in "int" "size_t, struct passwd **"; do
47 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([
47 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
4848 #include <unistd.h>
4949 #include <pwd.h>
5050 extern int getpwuid_r(uid_t, struct passwd *, char *, $params);
51 ],[]),[
51 ],[])],[
5252 if test $ac_cv_func_which_getpwuid_r != no; then
5353 AC_ERROR([Two types of getpwuid_r detected])
5454 fi
125125 in "-pedantic % m4_ifval($1,$1,-option)" dnl GCC
126126 #
127127 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;])],
129129 [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
130130 done
131131 FLAGS="$ac_save_[]FLAGS"
160160 in "-pedantic % m4_ifval($1,$1,-option)" dnl GCC
161161 #
162162 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;])],
164164 [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
165165 done
166166 FLAGS="$ac_save_[]FLAGS"
99 [tds_i64_format=
1010
1111 # Win32 case
12 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([
12 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
1313 #if !defined(__MINGW32__) || !defined(__MSVCRT__)
1414 this should produce an error!
1515 #endif
16 ],[return 0;]),[tds_i64_format="I64d"])
16 ],[return 0;])],[tds_i64_format="I64d"])
1717
1818 # long is 64 bit
1919 if test "x$ac_cv_sizeof_long" = "x8"; then
1212 xml_cv_socklen_t_equiv=
1313 for arg2 in "struct sockaddr" void; do
1414 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([
1616 #ifdef HAVE_SYS_TYPES_H
1717 # include <sys/types.h>
1818 #endif
2727 ],[
2828 $t len;
2929 getpeername(0,0,&len);
30 ]),[
30 ])],[
3131 xml_cv_socklen_t_equiv="$t"
3232 break
3333 ])