Detect openssl/cmac.h in configure.ac

Detect openssl/cmac.h in configure.ac and adapt code accordingly, as
suggested by frankmorgner@.