X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.in;h=36e28c8e6da86d4484208187b9a51c8dfa2b8c17;hb=a5b47be19ba3a736aa60728dba43a14cd0cbe5a4;hp=64c942cbb34c387271664496caf6dd071a7806a6;hpb=c1a8892080e9bd9b6fecd69999e4e487b53e81b9;p=ghc-hetmet.git diff --git a/configure.in b/configure.in index 64c942c..36e28c8 100644 --- a/configure.in +++ b/configure.in @@ -1109,6 +1109,24 @@ AC_SUBST(HaveRtldNow) FPTOOLS_CHECK_LIB_NOWARN(m, atan) +dnl ---------- usleep ---------- +dnl --- stolen from guile configure --- +dnl --- FIXME: /usr/include/unistd.h can't be right? + +### On some systems usleep has no return value. If it does have one, +### we'd like to return it; otherwise, we'll fake it. +AC_CACHE_CHECK([return type of usleep], cv_func_usleep_return_type, + [AC_EGREP_HEADER(changequote(<, >)changequote([, ]), + /usr/include/unistd.h, + [cv_func_usleep_return_type=void], + [cv_func_usleep_return_type=int])]) +case "$cv_func_usleep_return_type" in + "void" ) + AC_DEFINE(USLEEP_RETURNS_VOID, 1, + [Define if the system headers declare usleep to return void.]) + ;; +esac + dnl -------------------------------------------------- dnl * test for GTK+ dnl --------------------------------------------------