projects
/
rtaudio-cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ba65da
)
Fix discovery of gettimeofday() by autoconf.
author
Carl Hetherington
<cth@carlh.net>
Sat, 19 Mar 2016 20:49:47 +0000
(20:49 +0000)
committer
Carl 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
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 1a2314c032f6a5d3c916bd51b23517c479be6e6e..bc1d5ac91356f017977b5fbe54178eac95afdfe5 100644
(file)
--- 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_FUNC
S(gettimeofday
)
# Checks for doxygen
AC_CHECK_PROG( DOXYGEN, [doxygen], [doxygen] )