summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg/check_snprintf.patch
blob: 56eb0ca5bed07d07f863053f306e714a13ec6529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Upstream-Status: Inappropriate [configuration]

diff -ruN dpkg-1.15.8.5-orig/m4/dpkg-funcs.m4 dpkg-1.15.8.5/m4/dpkg-funcs.m4
--- dpkg-1.15.8.5-orig/m4/dpkg-funcs.m4	2010-10-08 12:27:15.082131611 +0800
+++ dpkg-1.15.8.5/m4/dpkg-funcs.m4	2010-10-08 13:56:50.074284346 +0800
@@ -27,7 +27,7 @@
 # -----------------------
 # Define HAVE_C99_SNPRINTF if we have C99 snprintf family semantics
 AC_DEFUN([DPKG_FUNC_C99_SNPRINTF],
-[AC_CACHE_CHECK([for C99 snprintf functions], [dpkg_cv_c99_snprintf],
+[AC_CACHE_CHECK([for C99 snprintf functions], [ac_cv_func_snprintf_c99],
 	[AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #include <stdarg.h>
 #include <stdio.h>
@@ -58,14 +58,14 @@
 	return 0;
 }
 	]])],
-	[dpkg_cv_c99_snprintf=yes],
-	[dpkg_cv_c99_snprintf=no],
-	[dpkg_cv_c99_snprintf=no])])
-AS_IF([test "x$dpkg_cv_c99_snprintf" = "xyes"],
+	[ac_cv_func_snprintf_c99=yes],
+	[ac_cv_func_snprintf_c99=no],
+	[ac_cv_func_snprintf_c99=no])])
+AS_IF([test "x$ac_cv_func_snprintf_c99" = "xyes"],
 	[AC_DEFINE([HAVE_C99_SNPRINTF], 1,
 	           [Define to 1 if the 'snprintf' family is C99 conformant])],
 	)
-AM_CONDITIONAL(HAVE_C99_SNPRINTF, [test "x$dpkg_cv_c99_snprintf" = "xyes"])
+AM_CONDITIONAL(HAVE_C99_SNPRINTF, [test "x$ac_cv_func_snprintf_c99" = "xyes"])
 ])# DPKG_FUNC_C99_SNPRINTF
 
 # DPKG_MMAP