configure.ac: Drop obsolete shape/xsync confflags

In addition to 20a0eb98096561c20c7162830118424d33880037
configure.ac: Group hard-dependencies together rather than split them up
configure.ac: Modernize autoconf/libtool dependencies and macro usage