diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 4212512a..570e77ee 100644 --- a/configure.ac +++ b/configure.ac @@ -31,10 +31,17 @@ esac # Checks for libraries. save_LIBS=$LIBS -AC_SEARCH_LIBS(clock_gettime, rt, [rt_libs="-lrt" AC_SUBST(rt_libs)]) -AC_SEARCH_LIBS(dlopen, dl, [dl_libs="-ldl" AC_SUBST(dl_libs)]) +LIBS= +AC_SEARCH_LIBS(clock_gettime, rt) +rt_libs=$LIBS +LIBS= +AC_SEARCH_LIBS(dlopen, dl) +dl_libs=$LIBS LIBS=$save_LIBS +AC_SUBST(rt_libs) +AC_SUBST(dl_libs) + # Checks for header files. AC_HEADER_RESOLV AC_HEADER_STDC |