diff --git a/recipes/libpng/recipe.sh b/recipes/libpng/recipe.sh
index bbdc70df0883492f097dabe37740d9edea54ff43..de1a0e43b3fcdce55317212e81b5a95362f2af59 100644
--- a/recipes/libpng/recipe.sh
+++ b/recipes/libpng/recipe.sh
@@ -17,6 +17,7 @@ function recipe_build {
     export LDFLAGS="-L$sysroot/lib"
     export CPPFLAGS="-I$sysroot/include"
 
+    ./autogen.sh
     wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     ./configure --host=${HOST} --prefix='/'
     make