Skip to content

Commit

Permalink
Filter /usr[/local]/include from opal CPPFLAGS when used explictly --…
Browse files Browse the repository at this point in the history
…with-package=DIR

Signed-off-by: Philip Kovacs <[email protected]>
  • Loading branch information
pkovacs committed Jan 16, 2018
1 parent 8eea942 commit c4fe4ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/opal_check_package.m4
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ AC_DEFUN([_OPAL_CHECK_PACKAGE_HEADER], [
dir_prefix=$(echo $3 | sed -e 'sX/*$XXg')
opal_check_package_header_happy="no"
AS_IF([test "$dir_prefix" = "/usr" || \
test "$dir_prefix" = "/usr/local"],
test "$dir_prefix" = "/usr/local" || \
test "$dir_prefix" = "/usr/include" || \
test "$dir_prefix" = "/usr/local/include"],
[ # try as is...
AC_VERBOSE([looking for header without includes])
AC_CHECK_HEADERS([$2], [opal_check_package_header_happy="yes"], [])
Expand Down

0 comments on commit c4fe4ec

Please sign in to comment.