diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -1278,6 +1278,26 @@ int x = sizeof ((struct tm *) 0)->$try_field; fi done +printf "Checking for POSIX sleep function ... " + +cat > conftest.c <<! +#include <unistd.h> + +int main(int argc, char **argv) +{ + sleep(42); + return 0; +} +! +rm -f conftest +if ! $make conftest > conftest.err 2>&1 || ! [ -x conftest ] ; then + printf "no\n" +else + printf "yes\n" + printf "#define HAVE_POSIX_SLEEP 1\n" >> config.h +fi + + printf "done\n" # |