Well folks, as I am still stewing over what I should do about my
modified giflib, I went ahead and created a 'giflib-lite' that does
decoding only (and therefore should be safe from UniSys's goons).
Even better, this gifreader lib now is fully autoconf and libtool
enabled, so building it should be a breeze. Please grab a copy of
0.9 (I don't have docs written yet, so it ain't final) from
http://www.camelot-soft.com/~jareth , build it, and apply the patch
below to xemacs to make it use the lib (which is also now a lot
smaller, yeah!).
1998-05-28 P. E. Jareth Hein <jareth(a)camelot-soft.com>
* configure.in: Switch from giflib to gifreader for
our GIF image support (no other mods needed)
Index: configure.in
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs-20/configure.in,v
retrieving revision 1.104
diff -u -r1.104 configure.in
--- configure.in 1998/05/27 20:41:46 1.104
+++ configure.in 1998/05/28 20:16:35
@@ -2695,13 +2695,13 @@
fi
dnl Autodetect GIFlib
- AC_MSG_CHECKING(for giflib - no older than 3.1)
- test -z "$with_gif" && { AC_CHECK_HEADER(gif_lib.h,
,with_gif=no) }
- test -z "$with_gif" && { AC_CHECK_LIB(gif, GetGifError,[:]
,with_gif=no) }
+ AC_MSG_CHECKING(for gifreader)
+ test -z "$with_gif" && { AC_CHECK_HEADER(gifrlib.h,
,with_gif=no) }
+ test -z "$with_gif" && { AC_CHECK_LIB(gifreader, GetGifError,[:]
,with_gif=no) }
test -z "$with_gif" && with_gif=yes
if test "$with_gif" = "yes"; then
AC_DEFINE(HAVE_GIF)
- XE_PREPEND(-lgif, libs_x)
+ XE_PREPEND(-lgifreader, libs_x)
fi
dnl autodetect JPEG
Index: configure
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs-20/configure,v
retrieving revision 1.103
diff -u -r1.103 configure
--- configure 1998/05/27 20:41:41 1.103
+++ configure 1998/05/28 20:16:43
@@ -6638,16 +6638,16 @@
fi
- echo $ac_n "checking for giflib - no older than 3.1""... $ac_c"
1>&6
-echo "configure:6643: checking for giflib - no older than 3.1" >&5
- test -z "$with_gif" && { ac_safe=`echo "gif_lib.h" | sed
'y%./+-%__p_%'`
-echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
-echo "configure:6646: checking for gif_lib.h" >&5
+ echo $ac_n "checking for gifreader""... $ac_c" 1>&6
+echo "configure:6643: checking for gifreader" >&5
+ test -z "$with_gif" && { ac_safe=`echo "gifrlib.h" | sed
'y%./+-%__p_%'`
+echo $ac_n "checking for gifrlib.h""... $ac_c" 1>&6
+echo "configure:6646: checking for gifrlib.h" >&5
cat > conftest.$ac_ext <<EOF
#line 6649 "configure"
#include "confdefs.h"
-#include <gif_lib.h>
+#include <gifrlib.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6654: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
@@ -6672,11 +6672,11 @@
fi
}
test -z "$with_gif" && {
-echo $ac_n "checking for GetGifError in -lgif""... $ac_c"
1>&6
-echo "configure:6677: checking for GetGifError in -lgif" >&5
-ac_lib_var=`echo gif'_'GetGifError | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for GetGifError in -lgifreader""... $ac_c"
1>&6
+echo "configure:6677: checking for GetGifError in -lgifreader" >&5
+ac_lib_var=`echo gifreader'_'GetGifError | sed 'y%./+-%__p_%'`
-xe_check_libs=" -lgif "
+xe_check_libs=" -lgifreader "
cat > conftest.$ac_ext <<EOF
#line 6682 "configure"
#include "confdefs.h"
@@ -6720,7 +6720,7 @@
EOF
}
- libs_x="-lgif $libs_x" && if test "$extra_verbose" =
"yes"; then echo " Prepending \"-lgif\" to \$libs_x"; fi
+ libs_x="-lgifreader $libs_x" && if test "$extra_verbose"
= "yes"; then echo " Prepending \"-lgifreader\" to
\$libs_x"; fi
fi
test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed
'y%./+-%__p_%'`
--
Jareth Hein | jareth(a)camelot-soft.com | ハイン ジェラス
Toolsmith & Program lead |
http://www.camelot-soft.com | 開発部チーフ
Camelot Software, Ltd. | |(株)キャメロット
"Contrary to popular belief, penguins are not the salvation of modern
technology. Neither do they throw parties for the urban proletariat."