Fix ac for --enable-shared (vs. --with-shared).