diff --git a/mscgen/configure.ac b/mscgen/configure.ac index 2cee9f9..42f6a1b 100755 --- a/mscgen/configure.ac +++ b/mscgen/configure.ac @@ -46,21 +46,8 @@ AH_TEMPLATE([REMOVE_PNG_OUTPUT], if test "x$with_libgd" != "xno"; then - # Get compile and link options from either gdlib-config or pkg-config - AC_PATH_PROG(GDLIB_CONFIG,gdlib-config) - if test -n "$GDLIB_CONFIG"; then - - # Allow command line override as per PKG_CHECK macro - if test -z "$GDLIB_CFLAGS"; then - GDLIB_CFLAGS="`$GDLIB_CONFIG --cflags`" - fi - if test -z "$GDLIB_LIBS"; then - GDLIB_LIBS="`$GDLIB_CONFIG --ldflags` `$GDLIB_CONFIG --libs`" - fi - - else - PKG_CHECK_MODULES([GDLIB], [gdlib]) - fi + # Get compile and link options from pkg-config + PKG_CHECK_MODULES([GDLIB], [gdlib]) # Update flags with what we've found so far CPPFLAGS="$CPPFLAGS $GDLIB_CFLAGS"