Fix bug 5798: "CFLAGS info lost in configure"