forked from pool/gnuplot
91 lines
3.1 KiB
Diff
91 lines
3.1 KiB
Diff
Index: gnuplot-5.2.2/configure.ac
|
|
===================================================================
|
|
---
|
|
gnuplot-5.2.3/configure.ac | 62 ++++--------------------------------------
|
|
gnuplot-5.2.3/src/Makefile.am | 2 -
|
|
2 files changed, 7 insertions(+), 57 deletions(-)
|
|
|
|
--- gnuplot-5.2.3/configure.ac
|
|
+++ gnuplot-5.2.3/configure.ac 2018-05-07 07:14:11.118955435 +0000
|
|
@@ -577,63 +577,13 @@ AC_ARG_WITH(gd,dnl
|
|
with_gd=yes)
|
|
|
|
if test "$with_gd" != no; then
|
|
- AC_PATH_PROG([GDLIB_CONFIG], [gdlib-config])
|
|
- if test -n "$GDLIB_CONFIG"; then
|
|
- libgd_CPPFLAGS=`$GDLIB_CONFIG --cflags`
|
|
- libgd_LDFLAGS=`$GDLIB_CONFIG --ldflags`
|
|
- libgd_LIBS=`$GDLIB_CONFIG --libs`
|
|
- elif test -d "$with_gd"; then
|
|
- libgd_CPPFLAGS="-I$with_gd/include"
|
|
- libgd_LDFLAGS="-L$with_gd/lib"
|
|
- libgd_LIBS="-ljpeg -lpng -lfreetype -lz"
|
|
- fi
|
|
-
|
|
- _cppflags="$CPPFLAGS"
|
|
- _ldflags="$LDFLAGS"
|
|
- _libs="$LIBS"
|
|
- CPPFLAGS="$CPPFLAGS $libgd_CPPFLAGS"
|
|
- LDFLAGS="$LDFLAGS $libgd_LDFLAGS"
|
|
- LIBS="$LIBS $libgd_LIBS"
|
|
-
|
|
- AC_CHECK_LIB(gd,gdImageCreateTrueColor,
|
|
- [dnl found gd library
|
|
+PKG_CHECK_MODULES([GD], [gdlib], [
|
|
AC_DEFINE(HAVE_LIBGD,1,[ Define if you have gd library. ])
|
|
- AC_CHECK_HEADERS(gd.h,,
|
|
- AC_MSG_WARN([please add path to gd.h to CPPFLAGS in Makefile]))
|
|
-
|
|
- dnl gif support in libgd
|
|
- AC_CHECK_LIB(gd,gdImageGif,
|
|
- [AC_DEFINE(HAVE_GD_GIF,1,[ Define if libgd supports gif. ])])
|
|
- AC_CHECK_LIB(gd,gdImageGifAnimBegin,
|
|
- [AC_DEFINE(GIF_ANIMATION,1,[ Define if libgd supports animated gifs. ])])
|
|
-
|
|
- dnl jpeg support in libgd
|
|
- AC_CHECK_LIB(gd,gdImageJpeg,
|
|
- [AC_DEFINE(HAVE_GD_JPEG,1,[ Define if libgd supports jpeg. ])])
|
|
-
|
|
- dnl freetype support in libgd
|
|
- AC_CHECK_LIB(gd,gdImageStringFT,
|
|
- AC_DEFINE(HAVE_GD_TTF,1,
|
|
- [ Define if libgd supports TrueType fonts through libfreetype. ]))
|
|
-
|
|
- dnl png support in libgd
|
|
- AC_CHECK_LIB(gd,gdImagePng,
|
|
- [AC_DEFINE(HAVE_GD_PNG,1,[ Define if libgd supports png. ])])
|
|
-
|
|
- ],[dnl gd library not found
|
|
- AC_MSG_WARN([libgd not found or too old, version >= 2.0 is required])
|
|
- with_gd=no
|
|
- ])
|
|
-
|
|
- dnl piece it all together
|
|
- if test "$with_gd" = no; then
|
|
- CPPFLAGS="$_cppflags"
|
|
- LDFLAGS="$_ldflags"
|
|
- LIBS="$_libs"
|
|
- else
|
|
- LIBS="$_libs"
|
|
- TERMLIBS="$TERMLIBS -lgd $libgd_LIBS"
|
|
- fi
|
|
+ AC_DEFINE(HAVE_GD_GIF,1,[ Define if libgd supports gif. ])
|
|
+ AC_DEFINE(GIF_ANIMATION,1,[ Define if libgd supports animated gifs. ])
|
|
+ AC_DEFINE(HAVE_GD_JPEG,1,[ Define if libgd supports jpeg. ])
|
|
+ AC_DEFINE(HAVE_GD_TTF,1, [ Define if libgd supports TrueType fonts through libfreetype. ])
|
|
+ AC_DEFINE(HAVE_GD_PNG,1,[ Define if libgd supports png. ])])
|
|
|
|
fi
|
|
dnl end gd
|
|
--- gnuplot-5.2.3/src/Makefile.am
|
|
+++ gnuplot-5.2.3/src/Makefile.am 2018-05-07 07:14:11.118955435 +0000
|
|
@@ -58,7 +58,7 @@ tabulate.c tabulate.h \
|
|
template.h term_api.h term.c term.h time.c unset.c util.c util.h \
|
|
util3d.c util3d.h variable.c variable.h version.c version.h
|
|
|
|
-gnuplot_LDADD = $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) $(QT_LIBS)
|
|
+gnuplot_LDADD = $(GD_LIBS) $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) $(QT_LIBS)
|
|
|
|
pkglibexec_PROGRAMS =
|
|
|