]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/metalog/metalog-0.7/crosscompile.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / metalog / metalog-0.7 / crosscompile.patch
1 diff -ur metalog-0.7_org/configure.ac metalog-0.7_patch/configure.ac
2 --- metalog-0.7_org/configure.ac        2003-04-06 23:21:05.000000000 +0200
3 +++ metalog-0.7_patch/configure.ac      2004-07-19 14:41:48.226352264 +0200
4 @@ -162,39 +162,6 @@
5  
6  dnl Custom checks
7  
8 -AC_MSG_CHECKING(whether snprintf is C99 conformant)
9 -AC_TRY_RUN([
10 -#include <stdio.h>
11 -#ifdef STDC_HEADERS
12 -# include <stdlib.h>
13 -# include <stddef.h>
14 -#else
15 -# if HAVE_STDLIB_H
16 -#  include <stdlib.h>
17 -# endif
18 -#endif
19 -#ifdef HAVE_UNISTD_H
20 -# include <unistd.h>
21 -#endif
22 -
23 -int main(void)
24 -{
25 -    char buf[4];
26 -    
27 -    (void) fprintf(fopen("conftestval", "wt"), "%d\n",
28 -        (int) snprintf(buf, sizeof buf, "12345678"));
29 -    return 0;
30 -}
31 -],
32 -CONF_SNPRINTF_TYPE=`cat conftestval`
33 -)
34 -AC_MSG_RESULT(done)
35 -if test "x$CONF_SNPRINTF_TYPE" = "x" ; then
36 -  AC_MSG_WARN(your operating system doesn't implement snprintf)
37 -else
38 -  AC_DEFINE_UNQUOTED(CONF_SNPRINTF_TYPE, $CONF_SNPRINTF_TYPE, [return value of an overflowed snprintf])
39 -fi
40 -
41  dnl Options
42  
43  AM_WITH_DMALLOC
44