comparison configure @ 13251:99b14d9c50d5

fixed --enable-gif bug
author joey
date Sun, 05 Sep 2004 17:46:33 +0000
parents d198f255bee9
children 2bfd09c32fba
comparison
equal deleted inserted replaced
13250:b8b626781ab0 13251:99b14d9c50d5
3806 _mkf_jpg="no" 3806 _mkf_jpg="no"
3807 fi 3807 fi
3808 3808
3809 3809
3810 echocheck "GIF support" 3810 echocheck "GIF support"
3811 # This is to appease people who want to force gif support.
3812 # If it is forced to yes, then we still do checks to determine
3813 # which gif library to use.
3814 if test "$_gif" = yes ; then
3815 _force_gif=yes
3816 _gif=auto
3817 fi
3818
3811 if test "$_gif" = auto ; then 3819 if test "$_gif" = auto ; then
3812 _gif=no 3820 _gif=no
3813 cat > $TMPC << EOF 3821 cat > $TMPC << EOF
3814 #include <gif_lib.h> 3822 #include <gif_lib.h>
3815 int main(void) { 3823 int main(void) {
3827 _ld_gif="-lgif" 3835 _ld_gif="-lgif"
3828 elif cc_check -lgif $_ld_x11 && "$TMPO" >> "$TMPLOG" ; then 3836 elif cc_check -lgif $_ld_x11 && "$TMPO" >> "$TMPLOG" ; then
3829 _gif=yes 3837 _gif=yes
3830 _ld_gif="-lgif $_ld_x11" 3838 _ld_gif="-lgif $_ld_x11"
3831 fi 3839 fi
3840 fi
3841
3842 # If no library was found, and the user wants support forced,
3843 # then we force it on with libgif, as this is the safest
3844 # assumption IMHO. (libungif & libregif both create symbolic
3845 # links to libgif. We also assume that no x11 support is needed,
3846 # because if you are forcing this, then you _should_ know what
3847 # you are doing. [ Besides, package maintainers should never
3848 # have compiled x11 deps into libungif in the first place. ] )
3849 # </rant>
3850 # --Joey
3851 if test "$_force_gif" = yes && test "$_gif" = no ; then
3852 _gif=yes
3853 _ld_gif="-lgif"
3832 fi 3854 fi
3833 3855
3834 if test "$_gif" = yes ; then 3856 if test "$_gif" = yes ; then
3835 _def_gif='#define HAVE_GIF 1' 3857 _def_gif='#define HAVE_GIF 1'
3836 _vosrc="$_vosrc vo_gif89a.c" 3858 _vosrc="$_vosrc vo_gif89a.c"