Fixed configure.ac and Makefile.am

This fix is untested on Darwin and Windows.

Thanks to Gabriele Fulgaro.
1 job for 2.4.2 in 1 minute and 37 seconds
latest
Status Job ID Name Coverage
  Build
passed #407484422
build

00:01:37