File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -84,9 +84,15 @@ AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
84
84
85
85
# We get the top-level directory from the supporting wrappers.
86
86
BASIC_WINDOWS_VERIFY_DIR($TOPDIR, source)
87
+ orig_topdir="$TOPDIR"
87
88
UTIL_FIXUP_PATH(TOPDIR)
88
89
AC_MSG_CHECKING ( [ for top-level directory] )
89
90
AC_MSG_RESULT ( [ $TOPDIR] )
91
+ if test "x$TOPDIR" != "x$orig_topdir"; then
92
+ AC_MSG_WARN ( [ Your top dir was originally represented as $orig_topdir,] )
93
+ AC_MSG_WARN ( [ but after rewriting it became $TOPDIR.] )
94
+ AC_MSG_WARN ( [ This typically means you have characters like space in the path, which can cause all kind of trouble.] )
95
+ fi
90
96
AC_SUBST ( TOPDIR )
91
97
92
98
if test "x$CUSTOM_ROOT" != x; then
Original file line number Diff line number Diff line change @@ -77,7 +77,10 @@ AC_DEFUN([UTIL_FIXUP_PATH],
77
77
imported_path=""
78
78
fi
79
79
fi
80
- if test "x$imported_path" != "x$path"; then
80
+ [ imported_path_lower=`$ECHO $imported_path | $TR '[ :upper:] ' '[ :lower:] '` ]
81
+ [ orig_path_lower=`$ECHO $path | $TR '[ :upper:] ' '[ :lower:] '` ]
82
+ # If only case differs, keep original path
83
+ if test "x$imported_path_lower" != "x$orig_path_lower"; then
81
84
$1 ="$imported_path"
82
85
fi
83
86
else
You can’t perform that action at this time.
0 commit comments