Fix for PR automake/9:
* automake.in (make_dirs, make_dirs_set): New globals.
(is_make_dir): New function.
(handle_configure): Use it.
(require_file_internal): Push file if there is no Makefile in its
directory.
(initialize_per_input): Initialize handle_dist_run.
(push_dist_common): Inspect handle_dist_run.
(handle_dist): Set handle_dist_run. Push items from
configure_dist_common onto dist_common if appropriate.
(configure_dist_common): New global.
(scan_configure): Set it.
(maybe_push_required_file): New function.
(require_file_internal): Use it.