From: Carl Hetherington Date: Sat, 19 Mar 2016 20:49:47 +0000 (+0000) Subject: Fix discovery of gettimeofday() by autoconf. X-Git-Url: https://main.carlh.net/gitweb/?p=rtaudio-cdist.git;a=commitdiff_plain;h=47d2d1388575eb97c26f7b5d9cf95e07b2b2a24a Fix discovery of gettimeofday() by autoconf. 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. --- diff --git a/configure.ac b/configure.ac index 1a2314c..bc1d5ac 100644 --- a/configure.ac +++ b/configure.ac @@ -119,7 +119,7 @@ AS_IF([test "x$debugflags" != x], # Checks for functions -AC_CHECK_FUNC(gettimeofday, [cppflag="$cppflag -DHAVE_GETTIMEOFDAY"], ) +AC_CHECK_FUNCS(gettimeofday) # Checks for doxygen AC_CHECK_PROG( DOXYGEN, [doxygen], [doxygen] )