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>
12 ===================================================================
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"