Parts of the implementation have been taken from AS_DIRNAME from the main autoconf package in generation 2.5x. However, we do only use "sed" to cut out the dirname, and we do additionally clean up some dir/.. parts in the resulting pattern.
this macro may be used in autoconf 2.13 scripts as well.
Download the latest version of ax_dirname.m4 or browse the macro’s revision history.
Copyright © 2008 Guido U. Draheim firstname.lastname@example.org
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.