build: Fix autogen and configure

Include ACLOCAL_FLAGS when setting. ACLOCAL_AMFLAGS.

Closes: https://bugzilla.gnome.org/show_bug.cgi?id=706826