3 # Patch managed by http://www.holgerschurig.de/patcher.html
6 --- irssi/configure.in~autofoo
9 AC_CHECK_SIZEOF(long long)
11 dnl * older autoconfs don't include sys/types.h, so do it manually
12 -AC_MSG_CHECKING([size of off_t])
15 - #include <sys/types.h>
17 - FILE *f=fopen("conftestval", "w");
19 - fprintf(f, "%d\n", sizeof(off_t));
23 - sizeof_off_t=`cat conftestval`
26 - AC_ERROR([Unsupported off_t size])
28 -AC_MSG_RESULT($sizeof_off_t)
29 +dnl * we use current autotools, so do it properly. --CL
30 +AC_CHECK_SIZEOF(off_t)
32 -if test $sizeof_off_t = 8; then
33 +if test $ac_cv_sizeof_off_t = 8; then
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
47 AC_DEFINE_UNQUOTED(PRIuUOFF_T, "u")
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)
55 int modfunc(){return (int)floor(1.2);}
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])
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])
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"
77 dnl * build dynamic library of perl module
78 perl_module_lib=libperl_core.la
79 perl_module_fe_lib=libfe_perl.la
82 - PERL_LIBTOOL='$(SHELL) $(top_builddir)/libtool'
83 + PERL_LIBTOOL="$LIBTOOL"
86 if test "x$want_staticperllib" = "xyes"; then