Re: udev, input/linux.h and cross compilation

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

 



On Thu, Jan 21, 2010 at 5:29 PM, Paul Bender <pebender@xxxxxxxxxx> wrote:
> On 1/21/2010 3:00 AM, Martin Pitt wrote:
>>
>> echo '#include<linux/input.h>' | cpp -M | xargs -n1 | grep linux/input.h
>
> I believe that would work once cpp is replaced with $ac_cpp so that the
> correct cpp is used (the one pointed to by $CPP) and the correct cpp flags
> are used (the flags in $CPPFLAGS). However, it adds dependencies on grep and
> xargs, both of which would need to be tested for.

I'm pretty sure libtool is already using grep. However, here's an
alternative just using sed:

echo '#include <linux/input.h>' | cpp -M | sed -n
'/linux\/input.h/s,.* \(.*linux/input.h\).*,\1,p'

--
Dan
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux