diff --git a/autogen.sh b/autogen.sh index af58c83d518..baec9f6833d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,5 +1,17 @@ #!/bin/bash -(cd src/mozjs/js/src && autoconf) +# Spidermonkey requires autoconf 2.13 exactly + +if [ ! -z `which autoconf213` ] +then + AUTOCONF=autoconf213 +fi + +if [ ! -z `which autoconf2.13` ] +then + AUTOCONF=autoconf2.13 +fi + +(cd src/mozjs/js/src && $AUTOCONF) cp -f configure.in configure