net/quagga: fix default options
[openwrt/svn-archive/archive.git] / utils / smartmontools / patches / 001-compile-fix.patch
1 --- a/configure.in
2 +++ b/configure.in
3 @@ -88,18 +88,18 @@
4 AC_CHECK_FUNCS([uname])
5
6 # Check whether snprintf appends null char and returns expected length on overflow
7 -AH_TEMPLATE(HAVE_WORKING_SNPRINTF, [Define to 1 if the `snprintf' function is sane])
8 -AC_MSG_CHECKING([for working snprintf])
9 -AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[ char buf[]="ABCDEFGHI";
10 - int i=snprintf(buf,8,"12345678"); return !(!buf[7] && i==8); ]])],
11 - [libc_have_working_snprintf=yes],
12 - [libc_have_working_snprintf=no],
13 - [libc_have_working_snprintf=no])
14 -AC_SUBST(libc_have_working_snprintf)
15 -if test "$libc_have_working_snprintf" = "yes"; then
16 - AC_DEFINE(HAVE_WORKING_SNPRINTF)
17 -fi
18 -AC_MSG_RESULT([$libc_have_working_snprintf])
19 +#AH_TEMPLATE(HAVE_WORKING_SNPRINTF, [Define to 1 if the `snprintf' function is sane])
20 +#AC_MSG_CHECKING([for working snprintf])
21 +#AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[ char buf[]="ABCDEFGHI";
22 +# int i=snprintf(buf,8,"12345678"); return !(!buf[7] && i==8); ]])],
23 +# [libc_have_working_snprintf=yes],
24 +# [libc_have_working_snprintf=no],
25 +# [libc_have_working_snprintf=no])
26 +#AC_SUBST(libc_have_working_snprintf)
27 +#if test "$libc_have_working_snprintf" = "yes"; then
28 +# AC_DEFINE(HAVE_WORKING_SNPRINTF)
29 +#fi
30 +#AC_MSG_RESULT([$libc_have_working_snprintf])
31
32 # check for __attribute__((packed))
33 AH_TEMPLATE(HAVE_ATTR_PACKED, [Define to 1 if C++ compiler supports __attribute__((packed))])