build: Remove duplicates from AC_CHECK_FUNCS
* configure.ac (AC_CHECK_FUNCS): Fold most calls into one.
A few functions were tested two times which slightly increases the size
of the configure script. Also put the functions in sorted order into
the macro.
- Signed-off-by: Werner Koch <wk@gnupg.org>