Stepan Kasal <[EMAIL PROTECTED]> writes: > I think it is more practical to have $(mkdir_p) set to 'mkdir -p --'.
Yes, that is a possibility. > And you can often write > $(mkdir_p) $(directory_list) > without knowing exactly the names of the directories. It's natural to > forget that the directory name might start with a dash. But portable directory names cannot start with '-'. See <http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_06>. I don't think we need to worry about applications that want to install files whose names begin with "-". Such applications will already be in trouble, in lots of different ways. It should be a relatively minor burden on developers of such applications to use "$(mkdir_p) --" instead of "$(mkdir_p)". > And $(mkdir_p) cannot be used with an option anyway. But under the patch I proposed, "$(mkdir_p) -m 444" would be allowed, for example. > - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. > - if test -f "$ac_aux_dir/mkinstalldirs"; then > - mkdir_p='$(mkinstalldirs)' > - else > - mkdir_p='$(install_sh) -d' > - fi Hmm, why remove support for mkinstalldirs here? Isn't that a separate issue? I don't have a strong feeling for whether mkdir_p should end in ' --', or not. But it should be consistent, whichever way is chosen, so clearly a change is needed. A minor advantage of not ending in ' --' is that the output of "make" is easier to read.