Le 23 mai 09 à 22:57, David Chisnall a écrit : > On 23 May 2009, at 21:42, David Chisnall wrote: > >> On 23 May 2009, at 21:16, Quentin Mathé wrote: >> >>> Unless David objects to it as the maintainer of MediaKit, I'll >>> commit >>> your changes. Thanks for the patch :-) >>> If the patch poses a problem to somebody, please complain now… >> >> With the patch applied, I get complaints from something. Trying to >> track down exactly what... > > Okay, the issue appears to be that test thinks anything starting > with - > I and not properly escaped is an argument to it, so it tries to > interpret -I/whatever as an operator, fails, and bails. Any > suggestions?
Does something like the following works better? NEW_AVCODEC_INCLUDE_DIR = $(shell if [ `pkg-config --cflags-only-I libavcodec` ]; then\ echo `pkg-config --cflags-only-I libavcodec` | sed 's/[ ]*$$/\/ libavcodec/g';\ else\ echo -I/usr/include/libavcodec;\ fi) NEW_AVFORMAT_INCLUDE_DIR = $(shell if [ `pkg-config --cflags-only-I libavformat` ]; then\ echo `pkg-config --cflags-only-I libavformat` | sed 's/[ ]*$$/\/ libavformat/g';\ else\ echo -I/usr/include/libavformat;\ fi) Quentin. _______________________________________________ Etoile-dev mailing list [email protected] https://mail.gna.org/listinfo/etoile-dev
