From: Theodore Ts'o Date: Wed, 22 Jun 2016 03:16:39 +0000 (-0400) Subject: Update configure script to reflect changes from commit 62bc243f1bf X-Git-Tag: v1.43.2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c94da0475a8d389eb8c0213148021978eeeb1ebf;p=thirdparty%2Fe2fsprogs.git Update configure script to reflect changes from commit 62bc243f1bf Signed-off-by: Theodore Ts'o --- diff --git a/configure b/configure index e6be281df..03e24d14d 100755 --- a/configure +++ b/configure @@ -648,6 +648,7 @@ UNI_DIFF_OPTS SEM_INIT_LIB FUSE_CMT FUSE_LIB +CLOCK_GETTIME_LIB MAGIC_LIB SOCKET_LIB SIZEOF_TIME_T @@ -13179,6 +13180,47 @@ if test "$ac_cv_func_dlopen" = yes ; then MAGIC_LIB=$DLOPEN_LIB fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 +$as_echo_n "checking for clock_gettime in -lrt... " >&6; } +if ${ac_cv_lib_rt_clock_gettime+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char clock_gettime (); +int +main () +{ +return clock_gettime (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_clock_gettime=yes +else + ac_cv_lib_rt_clock_gettime=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 +$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } +if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : + CLOCK_GETTIME_LIB=-lrt +fi + + FUSE_CMT= FUSE_LIB= # Check whether --enable-fuse2fs was given.