-# In directories like lib/, m4/, and po/, generate both these files because we
-# still try to support CVS emulation.
-vc_ignore='.cvsignore .gitignore'
+gnulib_tool_option_extras='--symlink --makefile-name=gnulib.mk'
+
+bootstrap_post_import_hook()
+{
+ # Massage lib/gnulib.mk before using it later in the bootstrapping process.
+ etc/prefix-gnulib-mk --lib-name=$gnulib_name lib/$gnulib_mk
+
+ # Ensure that ChangeLog exists, for automake.
+ test -f ChangeLog || touch ChangeLog
+}
+
+bootstrap_epilogue()
+{
+ # Make sure we don't need src/bison, which usually doesn't exist at
+ # the time of a bootstrap.
+ touch src/parse-gram.[ch]
+
+ perl -pi -e "s/\@PACKAGE\@/$package/g" README-release
+}
+
+# Keep our bootstrap script in sync with gnulib's. If we ever need to
+# maintain our own bootstrap script again, set this to false, remove
+# the bootstrap entry from the file .x-update-copyright, and add any
+# needed copyright years to the copyright statement in the bootstrap
+# script.
+bootstrap_sync=true