Fix discovery of gettimeofday() by autoconf.
authorCarl Hetherington <cth@carlh.net>
Sat, 19 Mar 2016 20:49:47 +0000 (20:49 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Apr 2019 19:48:45 +0000 (20:48 +0100)
Without this, gettimeofday() is found but the -DHAVE_GETTIMEOFDAY
flag is not passed to the compiler.  This change may cause other
problems; I am not an autoconf expert.

configure.ac

index 1a2314c032f6a5d3c916bd51b23517c479be6e6e..bc1d5ac91356f017977b5fbe54178eac95afdfe5 100644 (file)
@@ -119,7 +119,7 @@ AS_IF([test "x$debugflags" != x],
 
 
 # Checks for functions
 
 
 # Checks for functions
-AC_CHECK_FUNC(gettimeofday, [cppflag="$cppflag -DHAVE_GETTIMEOFDAY"], )
+AC_CHECK_FUNCS(gettimeofday)
 
 # Checks for doxygen
 AC_CHECK_PROG( DOXYGEN, [doxygen], [doxygen] )
 
 # Checks for doxygen
 AC_CHECK_PROG( DOXYGEN, [doxygen], [doxygen] )