]> git.sesse.net Git - ffmpeg/blobdiff - configure
cross compile fix by (allanc at chickenandporn dot com)
[ffmpeg] / configure
index 47d95c8dc4d20168e9ff3c97ce707468e9cff8a6..7cfa5051e509b65bb13df1a2612ab55c38164895 100755 (executable)
--- a/configure
+++ b/configure
@@ -270,7 +270,7 @@ cygwin="yes"
 test -f /usr/include/inttypes.h || \
 test -f /usr/local/include/inttypes.h || \
 echo "Missing inttypes.h, please copy cygwin_inttypes.h to" \
-     "/usr/include/inttypes.h !!!"
+     "/usr/local/include/inttypes.h !!!"
 ;;
 Linux)
 LDFLAGS="$LDFLAGS -rdynamic"
@@ -799,7 +799,11 @@ EOF
 have_lrintf="no"
 if $cc $extralibs -o $TMPE $TMPC 2> /dev/null ; then
   have_lrintf="yes"
-  $TMPE 2> /dev/null > /dev/null || have_lrintf="no"
+  # allanc@chickenandporn.com: cannot execute cross-compiled
+  # code on the host.  Only execute if not cross-compiling.
+  if test -z "$cross_prefix" ; then
+    $TMPE 2> /dev/null > /dev/null || have_lrintf="no"
+  fi
 fi
 
 _restrict=