configure.ac: Improve eds autodetection

Also use more autoconf syntax
latest commit 195153b6d4
Javier Jardón jjardon authored