Skip to content

Commit

Permalink
config: allow a #define when some gcc picky flag is supported/enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Feb 24, 2020
1 parent df014f6 commit 97d3f30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/hwloc_check_vendor.m4
Expand Up @@ -245,7 +245,7 @@ AC_DEFUN([_HWLOC_CHECK_COMPILER_VENDOR], [
unset hwloc_check_compiler_vendor_result
])

# _HWLOC_CHECK_GCC_OPTION([option], [variable to append the option to])
# _HWLOC_CHECK_GCC_OPTION([option], [variable to append the option to], [action if supported])
# ----------------------------------------------
# Run gcc to determine if option is supported.
AC_DEFUN([_HWLOC_CHECK_GCC_OPTION], [
Expand All @@ -254,7 +254,8 @@ AC_DEFUN([_HWLOC_CHECK_GCC_OPTION], [
AC_MSG_CHECKING([if gcc supports $1])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int i;]])],
[AC_MSG_RESULT(yes)
$2="$$2 $1"],
$2="$$2 $1"
$3],
[AC_MSG_RESULT(no)])
CFLAGS="$tmp_save_LDFLAGS"
])

0 comments on commit 97d3f30

Please sign in to comment.