Magellan Linux

Annotation of /trunk/imlib/patches/imlib-1.9.15-asneeded.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 808 - (hide annotations) (download)
Tue May 12 22:14:48 2009 UTC (15 years, 1 month ago) by niro
File size: 1120 byte(s)
fix link issues with libtool22

1 niro 808 This code is broken with the newer libtool. Just dropping it is more or less
2     safe as in any case if libtool does not supports shared libraries it'll issue
3     an error...
4    
5     Adding include is necessary for gcc-4.3.
6    
7     --- configure.in 2008-07-16 09:18:35 +0000
8     +++ configure.in 2008-07-16 09:18:43 +0000
9     @@ -61,6 +61,7 @@
10     AC_TRY_RUN([
11     #include <glib.h>
12     #include <gmodule.h>
13     +#include <stdlib.h>
14     main ()
15     {
16     if (g_module_supported ())
17     @@ -74,21 +74,6 @@
18     CFLAGS="$oCFLAGS"
19     fi
20    
21     -dnl Now we check to see if our libtool supports shared lib deps
22     -dnl (in a rather ugly way even)
23     -builddir=`pwd`
24     -if $dynworks; then
25     - imlib_libtool_config="$builddir/libtool --config"
26     - imlib_deplibs_check=`$imlib_libtool_config | \
27     - grep '^[[a-z_]]*check[[a-z_]]*_method=[['\''"]]' | \
28     - sed 's/.*[['\''"]]\(.*\)[['\''"]]$/\1/'`
29     - if test "x$imlib_deplibs_check" = "xnone" || \
30     - test "x$imlib_deplibs_check" = "xunknown" || \
31     - test "x$imlib_deplibs_check" = "x"; then
32     - dynworks=false
33     - fi
34     -fi
35     -
36     if $dynworks; then
37     AC_DEFINE(USE_GMODULE, 1, [ ])
38     GMODULE_LIBS="`glib-config --libs gmodule`"