Ticket #970: configure.diff

File configure.diff, 1.7 KB (added by dsnider@…, 20 years ago)

unified diff with patch for configure script.

  • configure

     
    688688        echo "#define EXIF_SUPPORT 1" >> ./mythgallery/mythgallery/config.h
    689689        echo "LIBS += -lexif" >> ./mythgallery/mythgallery/config.pro
    690690
    691         if test x`which pkg-config 2>/dev/null` != x"" ; then
    692             if `pkg-config --atleast-version 0.6.9 libexif` ; then
    693                 echo "#define NEW_LIB_EXIF 1" >> \
    694                     ./mythgallery/mythgallery/config.h
    695             fi
     691        #Forcing command line options to take precedent for NEW_LIB_EXIF
     692        if test x"$newexif" = x"yes" ; then
     693                echo "#define NEW_LIB_EXIF 1" >> \
     694                ./mythgallery/mythgallery/config.h
    696695        else
    697             if test x"$newexif" = x"yes" ; then
    698                 echo "#define NEW_LIB_EXIF 1" >> \
    699                     ./mythgallery/mythgallery/config.h
    700             else
    701                 echo
    702                 echo "Could not determine libexif version, if it is greater"
    703                 echo "than or equal to 0.6.9 you need to add"
    704                 echo "--enable-new-exif to the configure flags"
    705                 echo
    706             fi
     696                if test x`which pkg-config 2>/dev/null` != x"" ; then
     697                        if `pkg-config --atleast-version 0.6.9 libexif` ; then
     698                                echo "#define NEW_LIB_EXIF 1" >> \
     699                                ./mythgallery/mythgallery/config.h
     700                        fi
     701                else
     702                        echo
     703                        echo "Could not determine libexif version, if it is greater"
     704                        echo "than or equal to 0.6.9 you need to add"
     705                        echo "--enable-new-exif to the configure flags"
     706                        echo
     707                fi
    707708        fi
    708709    fi
    709710