1 # --------------------------------------------------------------
2 # Calculate absolute path to build tree
3 # --------------------------------------------------------------
5 AC_DEFUN([FP_FIND_ROOT],[
6 AC_MSG_CHECKING(for path to top of build tree)
7 if test "$windows" = YES
9 dnl Make sure this is a c:/foo/bar (mixed) style path. Some parts of
10 dnl the build system might depend on it (such as the sed expression
11 dnl `"s|$(TOP)/||i"` in addCFileDeps in rules/build-dependencies.mk).
12 hardtop=$(cygpath -m "$(pwd)")
17 dnl Remove common automounter nonsense
18 hardtop=`echo $hardtop | sed 's|^/tmp_mnt.*\(/local/.*\)$|\1|' | sed 's|^/tmp_mnt/|/|'`
20 if ! test -d "$hardtop"; then
21 AC_MSG_ERROR([cannot determine current directory])
24 dnl We don't support building in directories with spaces.
28 The build system does not support building in a directory
29 containing space characters.
30 Suggestion: move the build tree somewhere else.])
36 AC_MSG_RESULT($hardtop)