configure: Pass CC, LD, AS, AR and NM to the libav configure if set
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 21 Dec 2012 13:28:57 +0000 (14:28 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 21 Dec 2012 13:33:56 +0000 (14:33 +0100)
configure.ac

index c8233fa..0695a8a 100644 (file)
@@ -338,6 +338,26 @@ else
       ;;
   esac
 
+  if test x"$AR" != x; then
+    emblibav_configure_args="$emblibav_configure_args --ar=\\\"\\\$AR\\\""
+  fi
+
+  if test x"$AS" != x; then
+    emblibav_configure_args="$emblibav_configure_args --as=\\\"\\\$AS\\\""
+  fi
+
+  if test x"$CC" != x; then
+    emblibav_configure_args="$emblibav_configure_args --cc=\\\"\\\$CC\\\""
+  fi
+
+  if test x"$LD" != x; then
+    emblibav_configure_args="$emblibav_configure_args --ld=\\\"\\\$CC\\\""
+  fi
+
+  if test x"$NM" != x; then
+    emblibav_configure_args="$emblibav_configure_args --nm=\\\"\\\$NM\\\""
+  fi
+
   dnl checks for extra enable/disable flags
   LIBAV_OPTS="(cd $srcdir/gst-libs/ext/libav && ./configure --help)"
   # Let's check if we can disable the building of the libav binary