* acgeneral.m4 (AC_OUTPUT_HEADER): Make subdir if necessary.
echo "$ac_file is unchanged"
rm -f conftest.h
else
+ # Remove last slash and all that follows it. Not all systems have dirname.
+ changequote(, )dnl
+ ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+ changequote([, ])dnl
+ if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+ # The file is in a subdirectory.
+ test ! -d "$ac_dir" && mkdir "$ac_dir"
+ fi
rm -f $ac_file
mv conftest.h $ac_file
fi
echo "$ac_file is unchanged"
rm -f conftest.h
else
+ # Remove last slash and all that follows it. Not all systems have dirname.
+ changequote(, )dnl
+ ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+ changequote([, ])dnl
+ if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+ # The file is in a subdirectory.
+ test ! -d "$ac_dir" && mkdir "$ac_dir"
+ fi
rm -f $ac_file
mv conftest.h $ac_file
fi