On Wed, Dec 11, 2013 at 02:39:38PM +0100, Luca Barbato wrote:
> And use it to check for pthreads support.
>
> Unbreak f058f384a0d76bfd125f4738dceab7c890186432 for *BSD since
> their libc presents pthread_join and many other pthread symbols
> in libc while pthread_create is available only when passing
> -pthread and linking to libthr.
We use many different pthreads functions. Usually in these cases we
have managed to find a third function that could be checked for and
covered all cases.
> ---
>
> The simpler but more hackish alternative is to move down the no-flags check.
That alternative seems rather appealing...
> --- a/configure
> +++ b/configure
> @@ -844,6 +844,24 @@ int main(void){ $func(); }
>
> +check_funcs(){
> + log check_funcs "$@"
> + key=$1
> + shift
> + func=$1
> + shift
> + disable $key
> + for fn in $func; do
> + d="$d extern int $fn();"
> + c="$c $fn();"
> + done
> +
> + check_ld "$@" <<EOF && enable $func
> +$d
> +int main(void){ $c }
> +EOF
> +}
WTH are you doing here with key?
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel