GNOME Bugzilla – Bug 452009
./configure breaks when cross-compiling FAAD2
Last modified: 2007-09-09 18:27:44 UTC
When trying to cross-compile gst-plugins-bad, ./configure will break because configure: *** checking feature: AAC encoder plug-in *** configure: *** for plug-ins: faac *** checking for faacEncOpen in -lfaac... yes checking faac.h usability... yes checking faac.h presence... yes checking for faac.h... yes configure: *** These plugins will be built: faac configure: *** checking feature: AAC decoder plug-in *** configure: *** for plug-ins: faad *** checking for faacDecOpen in -lfaad... yes checking faad.h usability... yes checking faad.h presence... yes checking for faad.h... yes checking Checking for FAAD >= 2... configure: error: cannot run test program while cross compiling See `config.log' for more details. make: *** [gst-plugins-bad/Makefile] Error 1 Command exited with non-zero status 2
Created attachment 90829 [details] [review] Skip FAAD2 check when cross-compiling
Thanks for the patch, but I'd rather solve this differently. The configure check now uses AC_TRY_COMPILE, which should work even when cross-compiling. Please re-open if the faad check still breaks: 2007-09-09 Tim-Philipp Müller <tim at centricular dot net> * configure.ac: Use AC_TRY_COMPILE instead of AC_TRY_RUN for the faad and the xvid configure checks, so they still work when cross-compiling. Fixes #452009. Only the mpeg2enc check still uses AC_TRY_RUN. Not entirely sure if that can easily be replaced with AC_TRY_COMPILE, got to investigate that a bit more first. You'll have to bypass it with --disable-mpeg2enc for now until that's fixed.