build: Add an autoconf configure script to determine CFLAGS.