diff options
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a0ef204e..bafa07aa 100644 --- a/configure.ac +++ b/configure.ac @@ -30,8 +30,10 @@ case "${host}" in esac # Checks for libraries. -AC_CHECK_LIB(rt,clock_gettime,[dl_libs="-ldl" AC_SUBST(dl_libs)],,) -AC_CHECK_LIB(dl,dlopen,[rt_libs="-lrt" AC_SUBST(rt_libs)],,) +save_LIBS=$LIBS +AC_SEARCH_LIBS(clock_gettime, rt, [dl_libs="-ldl" AC_SUBST(dl_libs)]) +AC_SEARCH_LIBS(dlopen, dl, [rt_libs="-lrt" AC_SUBST(rt_libs)]) +LIBS=$save_LIBS # Checks for header files. AC_HEADER_RESOLV |