/[mldonkey]/mldonkey/config/configure.in
ViewVC logotype

Diff of /mldonkey/config/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.215 by spiralvoice, Sun Aug 28 10:49:49 2005 UTC revision 1.216 by spiralvoice, Sun Aug 28 11:00:20 2005 UTC
# Line 17  AC_MSG_NOTICE(Building on $host) Line 17  AC_MSG_NOTICE(Building on $host)
17    
18  OS_FILES=unix  OS_FILES=unix
19  OS_FILES2=unix  OS_FILES2=unix
   
20  case $host in  case $host in
21    *mingw*)    *mingw*)
22      OS_FILES=mingw      OS_FILES=mingw
# Line 28  case $host in Line 27  case $host in
27    *cygwin*)    *cygwin*)
28      OS_FILES2=cygwin      OS_FILES2=cygwin
29      ;;      ;;
30      *freebsd*)
31        CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
32        LDFLAGS="${LDFLAGS} -L/usr/local/lib"
33        ;;
34  esac  esac
35    
36  case "`uname -s`" in  case "`uname -s`" in
# Line 1098  GD_PNG=no Line 1101  GD_PNG=no
1101  if test "$GD" != "no"; then  if test "$GD" != "no"; then
1102    GD=no    GD=no
1103    LIBGD=no    LIBGD=no
1104    AC_CHECK_LIB(gd, gdImageCreate , [LIBGD=yes])    SAVE_LIBS=$LIBS
1105    
1106      AC_CHECK_PROG(GDLIBCONFIG, gdlib-config, gdlib-config)
1107      if test "$ac_cv_prog_GDLIBCONFIG" = "gdlib-config"; then
1108        GDLIBS=`$GDLIBCONFIG --libs`
1109        LIBS="$LIBS -lgd $GDLIBS"
1110      fi
1111    
1112      AC_MSG_CHECKING(for gdImageCreate in -lgd)
1113      AC_TRY_LINK([#include <gd.h>],
1114      [gdImageCreate (0,0);],
1115      [LIBGD=yes], [LIBGD=no])
1116      AC_MSG_RESULT($LIBGD)
1117    
1118      if test "$LIBGD" = "no"; then
1119        AC_MSG_CHECKING(trying another method)
1120        AC_CHECK_LIB(gd, gdImageCreate, [LIBGD=yes], [LIBGD=no])
1121      fi
1122    
1123    if test "$LIBGD" = "yes"; then    if test "$LIBGD" = "yes"; then
1124    
1125      LIBPNG=no      LIBPNG=no
1126      AC_CHECK_LIB(png, png_create_read_struct , [LIBPNG=yes])      AC_CHECK_LIB(png, png_create_read_struct , [LIBPNG=yes])
1127      LIBGD_PNG=no  
     AC_CHECK_LIB(gd, gdImagePng, [LIBGD_PNG=yes])  
1128      if test "$LIBPNG" = "no"; then      if test "$LIBPNG" = "no"; then
1129        AC_MSG_NOTICE(png support not available)        AC_MSG_NOTICE(png support not available)
1130      else      else
1131          LIBGD_PNG=no
1132          AC_MSG_CHECKING(for gdImagePng in -lgd)
1133          AC_TRY_LINK([#include <gd.h>],
1134          [gdImagePng (0,0);],
1135          [LIBGD_PNG=yes], [LIBGD_PNG=no])
1136          AC_MSG_RESULT($LIBGD_PNG)
1137    
1138          if test "$LIBGD_PNG" = "no"; then
1139            AC_MSG_CHECKING(trying another method)
1140            AC_CHECK_LIB(gd, gdImagePng, [LIBGD_PNG=yes], [LIBGD_PNG=no])
1141          fi
1142    
1143        if test "$LIBGD_PNG" = "yes"; then        if test "$LIBGD_PNG" = "yes"; then
1144          GD=yes          GD=yes
1145          HAS_GD_PNG=true          HAS_GD_PNG=true
# Line 1119  if test "$GD" != "no"; then Line 1152  if test "$GD" != "no"; then
1152          AC_MSG_NOTICE(png support not available in libgd)          AC_MSG_NOTICE(png support not available in libgd)
1153        fi        fi
1154      fi      fi
1155    
1156      LIBJPEG=no      LIBJPEG=no
1157      AC_CHECK_LIB(jpeg, jpeg_CreateCompress, [LIBJPEG=yes])      AC_CHECK_LIB(jpeg, jpeg_CreateCompress, [LIBJPEG=yes])
1158      LIBGD_JPG=no  
     AC_CHECK_LIB(gd, gdImageJpeg, [LIBGD_JPG=yes])  
1159      if test "$LIBJPEG" = "no"; then      if test "$LIBJPEG" = "no"; then
1160        AC_MSG_NOTICE(jpeg support not available)        AC_MSG_NOTICE(jpeg support not available)
1161      else      else
1162          LIBGD_JPG=no
1163          AC_MSG_CHECKING(for gdImageJpeg in -lgd)
1164          AC_TRY_LINK([#include <gd.h>],
1165          [gdImageJpeg (0,0,0);],
1166          [LIBGD_JPG=yes], [LIBGD_JPG=no])
1167          AC_MSG_RESULT($LIBGD_JPG)
1168    
1169          if test "$LIBGD_JPG" = "no"; then
1170            AC_MSG_CHECKING(trying another method)
1171            AC_CHECK_LIB(gd, gdImageJpeg, [LIBGD_JPG=yes], [LIBGD_JPG=no])
1172          fi
1173    
1174        if test "$LIBGD_JPG" = "yes"; then        if test "$LIBGD_JPG" = "yes"; then
1175          GD=yes          GD=yes
1176          HAS_GD_JPG=true          HAS_GD_JPG=true
# Line 1140  if test "$GD" != "no"; then Line 1185  if test "$GD" != "no"; then
1185    else    else
1186      AC_MSG_NOTICE(libgd not available)      AC_MSG_NOTICE(libgd not available)
1187    fi    fi
1188      LIBS=$SAVE_LIBS
1189  fi  fi
1190  AC_MSG_CHECKING(support for graphical statistics)  AC_MSG_CHECKING(support for graphical statistics)
1191  if test "$GD" != "no"; then  if test "$GD" != "no"; then

Legend:
Removed from v.1.215  
changed lines
  Added in v.1.216

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26