Mercurial > hg > xemacs-beta
comparison configure.ac @ 4708:1cecc3e9f0a0
Use giflib or libungif to provide GIF support, instead of using internal
routines. Delete internal GIF support code with no stated license. Fix up
a number of references in the documentation to GIF support. See discussion
on xemacs-beta: <87iqg4vg9t.fsf@uwakimon.sk.tsukuba.ac.jp>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Mon, 05 Oct 2009 10:11:59 -0600 |
parents | 0e1461b592ce |
children | 80d74fed5399 |
comparison
equal
deleted
inserted
replaced
4707:5bb0735f56e0 | 4708:1cecc3e9f0a0 |
---|---|
800 XE_MERGED_ARG([xface], | 800 XE_MERGED_ARG([xface], |
801 AS_HELP_STRING([--with-xface],[Compile with support for X-Face mail headers. | 801 AS_HELP_STRING([--with-xface],[Compile with support for X-Face mail headers. |
802 Requires the compface package.]), | 802 Requires the compface package.]), |
803 [], []) | 803 [], []) |
804 XE_MERGED_ARG([gif], | 804 XE_MERGED_ARG([gif], |
805 AS_HELP_STRING([--with-gif],[Compile without the (builtin) support for GIF images.]), | 805 AS_HELP_STRING([--with-gif],[Compile with support for GIF images.]), |
806 [], []) | 806 [], []) |
807 dnl | 807 dnl |
808 XE_HELP_SUBSECTION([Sound options]) | 808 XE_HELP_SUBSECTION([Sound options]) |
809 XE_COMPLEX_ARG([sound], | 809 XE_COMPLEX_ARG([sound], |
810 AS_HELP_STRING([--enable-sound=TYPE],[Compile with sound support. | 810 AS_HELP_STRING([--enable-sound=TYPE],[Compile with sound support. |
4122 if test "$with_xface" = "yes"; then | 4122 if test "$with_xface" = "yes"; then |
4123 AC_DEFINE(HAVE_XFACE) | 4123 AC_DEFINE(HAVE_XFACE) |
4124 XE_PREPEND(-lcompface, libs_x) | 4124 XE_PREPEND(-lcompface, libs_x) |
4125 fi | 4125 fi |
4126 | 4126 |
4127 dnl For a brief period we had the GIF code split out into a separate library, | 4127 dnl autodetect GIF |
4128 dnl but patent problems, etc. sort of squashed that idea. | 4128 test -z "$with_gif" && { AC_CHECK_HEADER(gif_lib.h, , with_gif=no) } |
4129 dnl We default to building with builtin GIF decoding | |
4130 if test "$with_gif" != "no"; then | 4129 if test "$with_gif" != "no"; then |
4131 with_gif="yes" | 4130 with_gif="yes" |
4131 dnl Versions of libgif and libungif prior to the introduction of | |
4132 dnl EGifPutExtensionLast caused Emacs crashes. We'll require that | |
4133 dnl function, too, in hopes that we can avoid similar crashes. | |
4134 AC_CHECK_LIB(gif, EGifPutExtensionLast, | |
4135 [XE_PREPEND(-lgif, libs_x)], | |
4136 [AC_CHECK_LIB(ungif, EGifPutExtensionLast, | |
4137 [XE_PREPEND(-lungif, libs_x)], with_gif=no)]) | |
4138 fi | |
4139 if test "$with_gif" != "no"; then | |
4132 AC_DEFINE(HAVE_GIF) | 4140 AC_DEFINE(HAVE_GIF) |
4133 fi | 4141 fi |
4134 | 4142 |
4135 dnl Too many stupid linkers can't detect cascaded lib dependencies until runtime | 4143 dnl Too many stupid linkers can't detect cascaded lib dependencies until runtime |
4136 dnl So we always search for libz compression support. | 4144 dnl So we always search for libz compression support. |
6101 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." | 6109 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." |
6102 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." | 6110 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." |
6103 | 6111 |
6104 echo " | 6112 echo " |
6105 Images:" | 6113 Images:" |
6106 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)." | 6114 test "$with_gif" = yes && echo " Compiling in support for GIF images." |
6107 if test "$with_xpm" = yes; then | 6115 if test "$with_xpm" = yes; then |
6108 echo " Compiling in support for XPM images." | 6116 echo " Compiling in support for XPM images." |
6109 elif test "$with_x11" = yes; then | 6117 elif test "$with_x11" = yes; then |
6110 echo " WARNING: -----------------------------------------------------------" | 6118 echo " WARNING: -----------------------------------------------------------" |
6111 echo " WARNING: Compiling without XPM image support." | 6119 echo " WARNING: Compiling without XPM image support." |