From 6b3f98f6c74e04c2381b00d11913bc31175ec3f7 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sun, 29 Sep 2002 15:29:12 +0000 Subject: [w3m-dev 03327] gdk-pixbuf support for w3m-img/x11 * configure (use_w3mimg_x11) Imlib1 or GdkPixbuf check gdkpixbuf * w3mimg/x11/x11_w3mimg.c (USE_GDKPIXBUF): added (x11_init): USE_GDKPIXBUF (x11_load_image): USE_GDKPIXBUF (x11_get_image_size): USE_GDKPIXBUF From: Yuji Abe --- configure | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index a821cbe..46d42d7 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: configure,v 1.76 2002/09/11 14:54:33 ukai Exp $ +# $Id: configure,v 1.77 2002/09/29 15:29:12 ukai Exp $ # Configuration. # @@ -791,7 +791,7 @@ ask_param "Inline image support" use_image n if [ "$use_image" = y ]; then def_use_image="#define USE_IMAGE" imgtarget='$(IMGDISPLAY) $(IMGSIZE)' - ask_param "X11 inline image support (you need Imlib1 library)" use_w3mimg_x11 y + ask_param "X11 inline image support (you need Imlib1 or GdkPixbuf library)" use_w3mimg_x11 y d_w3mimg_fb=n case $sysname in Linux|linux|LINUX) @@ -2132,7 +2132,13 @@ imgobjs='w3mimg/w3mimg.o' if [ "$use_image" = y ]; then if [ "$use_w3mimg_x11" = y ]; then - if find_imlib; then + if find_gdkpixbuf; then + def_use_w3mimg_x11="#define USE_W3MIMG_X11" + def_use_gdkpixbuf='#define USE_GDKPIXBUF' + imgobjs="$imgobjs w3mimg/x11/x11_w3mimg.o" + imgx11cflags='`gdk-pixbuf-config --cflags`' + imgx11ldflags='`gdk-pixbuf-config --libs` -lgdk_pixbuf_xlib' + elif find_imlib; then def_use_w3mimg_x11="#define USE_W3MIMG_X11" def_use_imlib='#define USE_IMLIB' imgobjs="$imgobjs w3mimg/x11/x11_w3mimg.o" -- cgit v1.2.3