@@ -96,10 +96,10 @@ AC_DEFUN([OPAL_SETUP_WRAPPER_INIT],[
96
96
# Get the full path to the wrapper compiler. If it doesn't exist
97
97
# assume that the path is not currently valid.
98
98
wrapper_tmp= " $( type -p " $with_wrapper_cc " ) "
99
- WRAPPER_CC= " ${wrapper_tmp:- $with_wrapper_cc } "
100
99
if test -z " $wrapper_tmp " ; then
101
100
AC_MSG_WARN([could not find \" $with_wrapper_cc \" in path])
102
101
fi
102
+ WRAPPER_CC= $with_wrapper_cc
103
103
104
104
AC_MSG_RESULT([$WRAPPER_CC ])
105
105
@@ -117,19 +117,19 @@ AC_DEFUN([OPAL_SETUP_WRAPPER_INIT],[
117
117
AS_IF([test " $with_wrapper_cflags_prefix " = " yes" || test " $with_wrapper_cflags_prefix " = " no" ],
118
118
[AC_MSG_ERROR([--with-wrapper-cflags-prefix must have an argument.])])
119
119
120
- AC_ARG_WITH([wrapper-cxxflags],
121
- [AS_HELP_STRING([--with-wrapper-cxxflags],
122
- [Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
123
- AS_IF([test " $with_wrapper_cxxflags " = " yes" || test " $with_wrapper_cxxflags " = " no" ],
124
- [AC_MSG_ERROR([--with-wrapper-cxxflags must have an argument.])])
125
-
126
- AC_ARG_WITH([wrapper-cxxflags-prefix],
127
- [AS_HELP_STRING([--with-wrapper-cxxflags-prefix],
128
- [Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
129
- AS_IF([test " $with_wrapper_cxxflags_prefix " = " yes" || test " $with_wrapper_cxxflags_prefix " = " no" ],
130
- [AC_MSG_ERROR([--with-wrapper-cxxflags-prefix must have an argument.])])
131
-
132
120
m4_ifdef([project_ompi], [
121
+ AC_ARG_WITH([wrapper-cxxflags],
122
+ [AS_HELP_STRING([--with-wrapper-cxxflags],
123
+ [Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
124
+ AS_IF([test " $with_wrapper_cxxflags " = " yes" || test " $with_wrapper_cxxflags " = " no" ],
125
+ [AC_MSG_ERROR([--with-wrapper-cxxflags must have an argument.])])
126
+
127
+ AC_ARG_WITH([wrapper-cxxflags-prefix],
128
+ [AS_HELP_STRING([--with-wrapper-cxxflags-prefix],
129
+ [Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
130
+ AS_IF([test " $with_wrapper_cxxflags_prefix " = " yes" || test " $with_wrapper_cxxflags_prefix " = " no" ],
131
+ [AC_MSG_ERROR([--with-wrapper-cxxflags-prefix must have an argument.])])
132
+
133
133
AC_ARG_WITH([wrapper-fcflags],
134
134
[AS_HELP_STRING([--with-wrapper-fcflags],
135
135
[Extra flags to add to FCFLAGS when using mpifort])])
0 commit comments