Macro: peti_path_srcdir

Back to the Main Page. | Download the M4 Source.

# peti_path_srcdir

## Synopsis

`PETI_PATH_SRCDIR`

## Version

1.1.1.1 (2001/07/26) Miscellaneous @ ac-archive-0.5.32

## Author

Peter Simons <simons@computer.org>

## Description

Find the absolute path of the top source directory and set it in @SRCDIR@. Unfortunately the @top_src@ variable, as built into autoconf, returns a relative path, what is not what I need.

## M4 Source Code

    AC_DEFUN([PETI_PATH_SRCDIR], [
    AC_MSG_CHECKING(path of top source directory)
    SRCDIR=`(cd $srcdir;pwd)`
    AC_MSG_RESULT($SRCDIR)
    AC_SUBST(SRCDIR)
    ])