bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cross-compilation guesses (15)


From: Jim Meyering
Subject: Re: cross-compilation guesses (15)
Date: Sat, 05 May 2012 16:32:59 +0200

Bruno Haible wrote:
> Another suboptimal cross-compilation guess is
>
>   checking for working nanosleep... cross-compiling
>
> This test has 3 possible results:
>   - "yes", it works, no override needed.
>   - "no (mishandles large arguments)", means it works halfway, the
>     override in lib/nanosleep.c can use the system's nanosleep().
>   - "no", means it is completely unusable, the override in lib/nanosleep.c
>     must use other system calls.
...
> diff --git a/m4/nanosleep.m4 b/m4/nanosleep.m4
...
> +       [case "$host_os" in dnl ((
> +          linux*) # Guess it halfway works on when the kernel is Linux.
> +            gl_cv_func_nanosleep='guessing no (mishandles large arguments)' 
> ;;
> +          *)      # If we don't know, assume the worst.
> +            gl_cv_func_nanosleep='guessing no' ;;
> +        esac
> +       ])

Thanks.
This looks fine, modulo a nit in the comment above:
s/works on when/works when/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]