cjson: bump to version 1.4.3
[buildroot-gz.git] / package / gnuplot / 0002-use-gdlib-config-properly.patch
blob690a82652a25951f21051c1a08b4a7b6ef00c86f
1 Fix usage of gdlib-config
3 gnuplot configure.in script properly takes care of finding
4 gdlib-config using AC_PATH_PROG... but then directly uses gdlib-config
5 instead of going through the GDLIB_CONFIG variable that AC_PATH_PROG
6 has defined. Which means that whenever a gdlib-config binary not in
7 the PATH is being used, it does not use it.
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 Index: b/configure.in
12 ===================================================================
13 --- a/configure.in
14 +++ b/configure.in
15 @@ -537,9 +537,9 @@
16 if test "$with_gd" != no; then
17 AC_PATH_PROG([GDLIB_CONFIG], [gdlib-config])
18 if test -n "$GDLIB_CONFIG"; then
19 - libgd_CPPFLAGS=`gdlib-config --cflags`
20 - libgd_LDFLAGS=`gdlib-config --ldflags`
21 - libgd_LIBS=`gdlib-config --libs`
22 + libgd_CPPFLAGS=`$GDLIB_CONFIG --cflags`
23 + libgd_LDFLAGS=`$GDLIB_CONFIG --ldflags`
24 + libgd_LIBS=`$GDLIB_CONFIG --libs`
25 elif test -d "$with_gd"; then
26 libgd_CPPFLAGS="-I$with_gd/include"
27 libgd_LDFLAGS="-L$with_gd/lib"