detect XIM by trying to link rather than compile a XIM program
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Mon, 5 Aug 2002 20:13:51 +0000 (20:13 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Mon, 5 Aug 2002 20:13:51 +0000 (20:13 +0000)
ChangeLog.claws
configure.in

index 1ff6279..28f6152 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-05 [alfons]    0.8.1claws17
+
+       * configure.in
+               detect XIM by trying to link rather than compile a XIM program
+
 2002-08-05 [oliver]    0.8.1claws16
                
        * src/stock_pixmap.[ch]
index 565a7e0..b27619b 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws16
+EXTRA_VERSION=claws17
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
@@ -313,9 +313,7 @@ LDFLAGS_SAVE="$LDFLAGS"
 CFLAGS="$CFLAGS `$GLIB_CONFIG --cflags` `gtk-config --cflags`"
 LDFLAGS="$LIBS `$GLIB_CONFIG --libs` `gtk-config --libs`"
 AC_CACHE_VAL(ac_cv_use_gtkgdk_xim, [
-       AC_TRY_COMPILE([#include <gtk/gtk.h>
-                       #include <gdk/gdk.h>],
-                       [extern gint gdk_im_open(void); gdk_im_open();],
+       AC_TRY_LINK_FUNC([ gdk_ic_attr_new ],
                         ac_cv_use_gtkgdk_xim=yes, ac_cv_use_gtkgdk_xim=no)
        ])
 AC_MSG_RESULT($ac_cv_use_gtkgdk_xim)