]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/irssi/files/autofoo.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / irssi / files / autofoo.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- irssi/configure.in~autofoo
7 +++ irssi/configure.in
8 @@ -280,39 +280,24 @@
9  AC_CHECK_SIZEOF(long long)
10  
11  dnl * older autoconfs don't include sys/types.h, so do it manually
12 -AC_MSG_CHECKING([size of off_t])
13 -AC_TRY_RUN([
14 -  #include <stdio.h>
15 -  #include <sys/types.h>
16 -  int main() {
17 -    FILE *f=fopen("conftestval", "w");
18 -    if (!f) exit(1);
19 -    fprintf(f, "%d\n", sizeof(off_t));
20 -    return 0;
21 -  }
22 -], [
23 -  sizeof_off_t=`cat conftestval`
24 -  rm -f conftestval
25 -], [
26 -  AC_ERROR([Unsupported off_t size])
27 -])
28 -AC_MSG_RESULT($sizeof_off_t)
29 +dnl * we use current autotools, so do it properly. --CL
30 +AC_CHECK_SIZEOF(off_t)
31  
32 -if test $sizeof_off_t = 8; then
33 +if test $ac_cv_sizeof_off_t = 8; then
34    offt_64bit=yes
35  else
36    offt_64bit=no
37  fi
38  
39 -if test x$sizeof_off_t = x$ac_cv_sizeof_long; then
40 +if test x$ac_cv_sizeof_off_t = x$ac_cv_sizeof_long; then
41    # try to use unsigned long always first
42    AC_DEFINE_UNQUOTED(PRIuUOFF_T, "lu")
43    AC_DEFINE(UOFF_T_LONG)
44 -elif test x$sizeof_off_t = x$ac_cv_sizeof_int; then
45 +elif test x$ac_cv_sizeof_off_t = x$ac_cv_sizeof_int; then
46    # next try int
47    AC_DEFINE_UNQUOTED(PRIuUOFF_T, "u")
48    AC_DEFINE(UOFF_T_INT)
49 -elif test x$sizeof_off_t = x$ac_cv_sizeof_long_long; then
50 +elif test x$ac_cv_sizeof_off_t = x$ac_cv_sizeof_long_long; then
51    # and finally long long
52    AC_DEFINE_UNQUOTED(PRIuUOFF_T, "llu")
53    AC_DEFINE(UOFF_T_LONG_LONG)
54 @@ -541,13 +526,13 @@
55  int modfunc(){return (int)floor(1.2);}
56  EOF
57  
58 -./libtool --mode=compile $CC $CFLAGS -c conftest.c 2> /dev/null > /dev/null
59 +./*libtool --mode=compile $CC $CFLAGS -c conftest.c 2>log >&2 
60  if test ! -s conftest.lo; then
61    AC_ERROR([error compiling test module])
62  fi
63  
64  dnl ** link to library
65 -./libtool --mode=link $CC $CFLAGS $LDFLAGS -rpath /usr/lib conftest.lo -lm -o libconftest.la > /dev/null
66 +./*libtool --mode=link $CC $CFLAGS $LDFLAGS -rpath /usr/lib conftest.lo -lm -o libconftest.la > /dev/null
67  if test ! -s .libs/libconftest.a; then
68    AC_ERROR([error, can't even find .a library])
69  fi
70 @@ -755,14 +740,14 @@
71                         perl_module_fe_lib=
72                         perl_static_lib=libperl_core_static.la
73                         perl_static_fe_lib=libfe_perl_static.la
74 -                       PERL_LIBTOOL='$(SHELL) $(top_builddir)/libtool'
75 +                       PERL_LIBTOOL="$LIBTOOL"
76                 else
77                         dnl * build dynamic library of perl module
78                         perl_module_lib=libperl_core.la
79                         perl_module_fe_lib=libfe_perl.la
80                         perl_static_lib=
81                         perl_static_fe_lib=
82 -                       PERL_LIBTOOL='$(SHELL) $(top_builddir)/libtool'
83 +                       PERL_LIBTOOL="$LIBTOOL"
84                 fi
85  
86                 if test "x$want_staticperllib" = "xyes"; then