'pkg-config --cflags lua' returns a space with freedesktop and no space with pkgconf, so the the following gave different result: if test "$LUA_CFLAGS" = ""; then ...