configure.ac: fix building failed in jenkins

Because clock_gettime was introduced, we should check it first.
Otherwise, compilation may be failed in some Linux distribution.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>