[Xcb] [Xcb-commit] configure.ac (fwd)

Alan Coopersmith alan.coopersmith at oracle.com
Fri Mar 4 14:47:11 PST 2011


On 03/ 4/11 01:00 PM, Vincent Torri wrote:
> Also, if I'm not mistaken, Windows does not have poll(), so case is not good.
> Again, using AC_COMPILE_IFELSE is better to check the availability of poll()

Doesn't Windows go down to the *) case that uses AC_CHECK_FUNC?   Seems correct
to me:

>> +    darwin@<:@789@:>@*|darwin10*) ;;
>> +    darwin*)
>> +        _ac_xorg_macosx_version_min=""
>> +        if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
>> +            _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed
>> 's/^.*-mmacosx-version-min=\(@<:@^ @:>@*\).*$/\1/'`
>> +        else
>> +            _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
>> +        fi
>> +        case $_ac_xorg_macosx_version_min in
>> +            10.@<:@0123456@:>@|10.@<:@0123456@:>@.*) ;;
>> +            *)
>> +                AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function
>> is available])], )
>> +            ;;
>> +        esac
>> +        unset _ac_xorg_macosx_version_min
>> +        ;;
>>     *)
>>         AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function is
>> available])], )
>>     ;;


-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the Xcb mailing list