Re: [PATCH xserver] configure.ac: Keep environment CFLAGS when testing

2016-04-25 Thread Adam Jackson
On Mon, 2016-04-25 at 15:31 +0100, Emil Velikov wrote: > On 23 March 2016 at 04:47, Alexandre Courbot wrote: > > > > DRI2 detection could fail if configure is invoked with a sysroot passed > > as CFLAGS. Ideally configure should invoke gcc with the sysroot argument > >

Re: [PATCH xserver] configure.ac: Keep environment CFLAGS when testing

2016-04-25 Thread Emil Velikov
On 23 March 2016 at 04:47, Alexandre Courbot wrote: > DRI2 detection could fail if configure is invoked with a sysroot passed > as CFLAGS. Ideally configure should invoke gcc with the sysroot argument > passed to the configure script, but for some reason this is not done by >

Re: [PATCH xserver] configure.ac: Keep environment CFLAGS when testing

2016-04-24 Thread Alexandre Courbot
Any review for this? Without it I cannot cross compile for ARM with a dedicated SYSROOT, so I suspect it might be useful to others as well... ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info:

[PATCH xserver] configure.ac: Keep environment CFLAGS when testing

2016-03-23 Thread Alexandre Courbot
DRI2 detection could fail if configure is invoked with a sysroot passed as CFLAGS. Ideally configure should invoke gcc with the sysroot argument passed to the configure script, but for some reason this is not done by AC_COMPILE_IFELSE. Fix this by ensuring CFLAGS are preserved when checking for