diff --git a/build/autoconf/mozconfig-find b/build/autoconf/mozconfig-find index 2e9d79517c5..31f5b71b58e 100755 --- a/build/autoconf/mozconfig-find +++ b/build/autoconf/mozconfig-find @@ -46,6 +46,15 @@ # topsrcdir=$1 +for _config in "$MOZCONFIG" \ + "$MOZ_MYCONFIG" +do + if [ -n "$_config" ] && ! [ -f "$_config" ]; then + echo "Specified MOZCONFIG \"$_config\" does not exist!" + exit 1 + fi +done + for _config in "$MOZCONFIG" \ "$MOZ_MYCONFIG" \ "$topsrcdir/.mozconfig" \