+# Update gettext files
+if [ -f po/Makevars ]; then
+ rm po/Makevars.template
+fi
+
+# If po/POTFILES.in is not present, po/Makefile won't be generated when running
+# ./configure
+if [ ! -f po/POTFILES.in ]; then
+ touch po/POTFILES.in
+fi
+
+if [ ! -f ${GETTEXT_INC_DIR}/gettext.h ]; then
+ cp /usr/share/gettext/gettext.h ${GETTEXT_INC_DIR}
+fi
+