fi
Version="$Version.$Revision"
-VersionCheck=$(cat "$Sources/configure.in" | sed -n -e 's/^AC_INIT(\[sarg\],\[\([0-9][0-9]*\.[0-9][0-9]*.*\)\])/\1/p')
+VersionCheck=$(sed -n -e 's/^AC_INIT(\[sarg\],\[\([0-9][0-9]*\.[0-9][0-9]*.*\)\])/\1/p' "$Sources/configure.in")
if [ "x$Version" != "x$VersionCheck" ] ; then
echo "CMakeLists and configure doesn't refer to the same version"
exit 1
fi
+if [ ! -f "$Sources/configure" ] ; then
+ echo "Configure script not created"
+ exit 1
+fi
+
+ConfigureCheck=$(sed -n -e "s/^PACKAGE_VERSION='\([0-9][0-9]*\.[0-9][0-9]*.*\)'/\1/p" "$Sources/configure")
+if [ "x$Version" != "x$ConfigureCheck" ] ; then
+ echo "Configure script not updated"
+ echo "Run autoreconf"
+ exit 1
+fi
+
# update the po files
if ( ! make update-po ) ; then
echo "Failed to update the po files"