File tree 4 files changed +14
-4
lines changed
4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 27
27
/* define if the Boost::Unit_Test_Framework library is available */
28
28
#undef HAVE_BOOST_UNIT_TEST_FRAMEWORK
29
29
30
+ /* Define to 1 if you have the `clock_gettime' function. */
31
+ #undef HAVE_CLOCK_GETTIME
32
+
30
33
/* Define to 1 if you have the <dlfcn.h> header file. */
31
34
#undef HAVE_DLFCN_H
32
35
Original file line number Diff line number Diff line change @@ -64,6 +64,14 @@ AC_CONFIG_HEADERS([config.h])
64
64
# Checks for libraries.
65
65
66
66
AC_CHECK_LIB ( pthread , pthread_create )
67
+
68
+ AC_CHECK_FUNCS ( clock_gettime , [ ] , [
69
+ AC_CHECK_LIB ( rt , clock_gettime , [
70
+ RTLIB="-lrt"
71
+ AC_SUBST ( [ RTLIB] )
72
+ ] )
73
+ ] )
74
+
67
75
AX_BOOST_BASE ( [ 1.47.0] , [ ] , [ AC_MSG_ERROR ( "BOOST library version >= 1.47.0 not found!" ) ] )
68
76
AX_BOOST_SYSTEM
69
77
AX_BOOST_ASIO
@@ -75,8 +83,6 @@ LDFLAGS="$LDFLAGS $BOOST_LDFLAGS $BOOST_SYSTEM_LIB"
75
83
AX_BOOST_THREAD
76
84
AX_BOOST_CHRONO
77
85
LDFLAGS=$LDFLAGS_SAVED_1
78
- # chrono.hpp depends on ::clock_gettime, which is in rt
79
- BOOST_CHRONO_LIB="$BOOST_CHRONO_LIB -lrt"
80
86
81
87
AX_BOOST_FILESYSTEM
82
88
AX_BOOST_UNIT_TEST_FRAMEWORK
Original file line number Diff line number Diff line change 22
22
fi
23
23
fi
24
24
25
- LD_LIBRARY_PATH=@BOOST_LIBDIR@ test/test_util $tests $*
25
+ LD_LIBRARY_PATH=@BOOST_LIBDIR@ test/test_utxx $tests $*
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ test_utxx_LDADD = $(srcdir)/../src/.libs/libutxx.la \
77
77
$(BOOST_TIMER_LIB ) \
78
78
$(BOOST_CHRONO_LIB ) \
79
79
$(BOOST_FILESYSTEM_LIB ) \
80
- $(BOOST_UNIT_TEST_FRAMEWORK_LIB )
80
+ $(BOOST_UNIT_TEST_FRAMEWORK_LIB ) \
81
+ $(RTLIB )
81
82
82
83
test_utxx_DATA = test_config_validator.xml
83
84
You can’t perform that action at this time.
0 commit comments