Skip to content

Commit c4fe4ec

Browse files
committed
Filter /usr[/local]/include from opal CPPFLAGS when used explictly --with-package=DIR
Signed-off-by: Philip Kovacs <[email protected]>
1 parent 8eea942 commit c4fe4ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/opal_check_package.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ AC_DEFUN([_OPAL_CHECK_PACKAGE_HEADER], [
4242
dir_prefix=$(echo $3 | sed -e 'sX/*$XXg')
4343
opal_check_package_header_happy="no"
4444
AS_IF([test "$dir_prefix" = "/usr" || \
45-
test "$dir_prefix" = "/usr/local"],
45+
test "$dir_prefix" = "/usr/local" || \
46+
test "$dir_prefix" = "/usr/include" || \
47+
test "$dir_prefix" = "/usr/local/include"],
4648
[ # try as is...
4749
AC_VERBOSE([looking for header without includes])
4850
AC_CHECK_HEADERS([$2], [opal_check_package_header_happy="yes"], [])

0 commit comments

Comments
 (0)