Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion config/opal_load_platform.m4
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ dnl
# OPAL_LOAD_PLATFORM()
# --------------------
AC_DEFUN([OPAL_LOAD_PLATFORM], [
AC_ARG_WITH([platform-patches-dir],
[AC_HELP_STRING([--with-platform-patches-dir=DIR],
[Location of the platform patches directory. If you use this option, you must also use --with-platform.])])

AC_ARG_WITH([platform],
[AC_HELP_STRING([--with-platform=FILE],
[Load options for build from FILE. Options on the
Expand Down Expand Up @@ -97,7 +101,12 @@ AC_DEFUN([OPAL_LOAD_PLATFORM], [
AC_SUBST(OPAL_PARAM_FROM_PLATFORM, "no")
fi

patch_dir=${patch_dir:="${with_platform}.patches"}
if test -d "$with_platform_patches_dir"; then
patch_dir=$with_platform_patches_dir
else
patch_dir="${with_platform}.patches"
fi

patch_done="${srcdir}/.platform_patches"
patch_found=no

Expand Down