Mercurial > mplayer.hg
comparison configure @ 4463:2b6c3b1a9676
improved check for libpng/png.h: catch crappy build environment (png.h and
libpng.so version mismatch)
author | pl |
---|---|
date | Fri, 01 Feb 2002 13:10:35 +0000 |
parents | d45744794581 |
children | 745cf5ba7117 |
comparison
equal
deleted
inserted
replaced
4462:3c556f8a4159 | 4463:2b6c3b1a9676 |
---|---|
1861 _def_dvb='#undef HAVE_DVB' | 1861 _def_dvb='#undef HAVE_DVB' |
1862 _vomodules="mpegpes(file) $_vomodules" | 1862 _vomodules="mpegpes(file) $_vomodules" |
1863 fi | 1863 fi |
1864 echores "$_dvb" | 1864 echores "$_dvb" |
1865 | 1865 |
1866 | |
1866 echocheck "PNG support" | 1867 echocheck "PNG support" |
1867 if test "$_png" = auto ; then | 1868 if test "$_png" = auto ; then |
1868 _png=no | 1869 _png=no |
1869 if irix ; then | 1870 if irix ; then |
1870 # Don't check for -lpng on irix since it has its own libpng | 1871 # Don't check for -lpng on irix since it has its own libpng |
1871 # incompatible with the GNU libpng | 1872 # incompatible with the GNU libpng |
1872 echores "disabled on irix (not GNU libpng)" | 1873 echores "disabled on irix (not GNU libpng)" |
1873 else | 1874 else |
1874 cat > $TMPC << EOF | 1875 cat > $TMPC << EOF |
1875 #include <png.h> | 1876 #include <png.h> |
1876 int main(void) { return 0; } | 1877 #include <string.h> |
1877 EOF | 1878 int main(void) { |
1878 cc_check -lpng -lz -lm && _png=yes | 1879 printf("png.h : %s\n", PNG_LIBPNG_VER_STRING); |
1879 echores yes | 1880 printf("libpng: %s\n", png_get_libpng_ver(NULL)); |
1881 return (strcmp(PNG_LIBPNG_VER_STRING, png_get_libpng_ver(NULL))); | |
1882 } | |
1883 EOF | |
1884 if cc_check -lpng -lz -lm ; then | |
1885 if "$TMPO" >> "$TMPLOG" ; then | |
1886 _png=yes | |
1887 echores yes | |
1888 else | |
1889 echores "no (mismatch of library and header versions)" | |
1890 fi | |
1891 else | |
1892 echores no | |
1893 fi | |
1880 fi | 1894 fi |
1881 else | 1895 else |
1882 echores "$_png" | 1896 echores "$_png" |
1883 fi | 1897 fi |
1884 if test "$_png" = yes ; then | 1898 if test "$_png" = yes ; then |