File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ m4_define([OPAL_GET_VERSION],[
83
83
if test -d " $srcdir /.git" && test $git_happy -eq 1; then
84
84
if test " $srcdir " ! = " ` pwd` " ; then
85
85
git_save_dir=` pwd`
86
- cd $srcdir
86
+ cd " $srcdir "
87
87
$2 _REPO_REV=` git describe --tags --always`
88
- cd $git_save_dir
88
+ cd " $git_save_dir "
89
89
unset git_save_dir
90
90
else
91
91
$2 _REPO_REV=` git describe --tags --always`
Original file line number Diff line number Diff line change @@ -117,6 +117,26 @@ AM_SILENT_RULES([yes])
117
117
# Make configure depend on the VERSION file, since it's used in AC_INIT
118
118
AC_SUBST([CONFIGURE_DEPENDENCIES], [' $(top_srcdir)/VERSION' ])
119
119
120
+ # Sanity checks
121
+ AC_DEFUN([OMPI_CHECK_DIR_FOR_SPACES],[
122
+ dir= " $1 "
123
+ article= " $2 "
124
+ label= " $3 "
125
+
126
+ AC_MSG_CHECKING([directory of $label ])
127
+ AC_MSG_RESULT([$dir ])
128
+ AS_IF([test -n " ` echo $dir | grep ' ' ` " ],
129
+ [AC_MSG_WARN([This version of Open MPI does not support $article $label ])
130
+ AC_MSG_WARN([with a path that contains spaces])
131
+ AC_MSG_ERROR([Cannot continue.])])
132
+ ])
133
+
134
+ OMPI_CHECK_DIR_FOR_SPACES([$srcdir ], [a], [source tree])
135
+ OMPI_CHECK_DIR_FOR_SPACES([` readlink -f $srcdir ` ], [an], [absolute source tree])
136
+ OMPI_CHECK_DIR_FOR_SPACES([` readlink -f .` ], [a], [build tree])
137
+ OMPI_CHECK_DIR_FOR_SPACES([$prefix ], [a], [prefix])
138
+ OMPI_CHECK_DIR_FOR_SPACES([` readlink -f $prefix ` ], [an], [absolute prefix])
139
+
120
140
opal_show_subtitle " Checking versions"
121
141
122
142
# Get the version of OMPI that we are installing
You can’t perform that action at this time.
0 commit comments