###############################################################################
# Check functions
check_function_exists(fork HAVE_FORK)
+check_function_exists(getline HAVE_GETLINE)
check_function_exists(getpid HAVE_GETPID)
check_function_exists(gettimeofday HAVE_GETTIMEOFDAY)
check_function_exists(localtime_r HAVE_DECL_LOCALTIME_R)
set(SOURCES ${SOURCES} timer_settime.c)
endif(NOT HAVE_LIBRT)
+if(NOT HAVE_GETLINE)
+ set(SOURCES ${SOURCES} getline.c)
+endif(NOT HAVE_GETLINE)
+
if(NOT HAVE_GETTIMEOFDAY)
set(SOURCES ${SOURCES} gettimeofday.c)
endif(NOT HAVE_GETTIMEOFDAY)