Skip to content

Commit

Permalink
configure.ac minor improvements
Browse files Browse the repository at this point in the history
* Shorter result message for "assume yes (cross compiling)"
* Replace grave accent + apostrophe quoting with just apostrophes.
  It is expected that Autoconf 2.72 updates the quoting as well and the
  old style has confused a syntax highlighter (Vim).

Signed-off-by: Kang-Che Sung <[email protected]>
  • Loading branch information
Explorer09 authored and BenBE committed Aug 18, 2023
1 parent 5186858 commit 47ae966
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ dnl been updated in Autoconf 2.69, so use a workaround:
m4_version_prereq([2.70], [],
[if test "x$ac_cv_header_sys_mkdev_h" != xyes; then
AC_CHECK_HEADER([sys/sysmacros.h], [AC_DEFINE([MAJOR_IN_SYSMACROS], [1],
[Define to 1 if `major', `minor', and `makedev' are declared in <sys/sysmacros.h>.])])
[Define to 1 if 'major', 'minor', and 'makedev' are declared in <sys/sysmacros.h>.])])
fi])

# Optional Section
Expand Down Expand Up @@ -428,7 +428,7 @@ if test "x$enable_affinity" = xcheck; then
AC_MSG_RESULT([yes])],
[enable_affinity=no
AC_MSG_RESULT([no])],
[AC_MSG_RESULT([yes (assumed while cross compiling)])])
[AC_MSG_RESULT([assume yes (cross compiling)])])
fi
fi
if test "x$enable_affinity" = xyes; then
Expand Down Expand Up @@ -493,7 +493,7 @@ case "$enable_hwloc" in
PKG_CHECK_MODULES(HWLOC, hwloc, [
CFLAGS="$CFLAGS $HWLOC_CFLAGS"
LIBS="$LIBS $HWLOC_LIBS"
AC_DEFINE([HAVE_LIBHWLOC], [1], [Define to 1 if you have the `hwloc' library (-lhwloc).])
AC_DEFINE([HAVE_LIBHWLOC], [1], [Define to 1 if you have the 'hwloc' library (-lhwloc).])
], [
AC_CHECK_LIB([hwloc], [hwloc_get_proc_cpubind], [], [AC_MSG_ERROR([can not find required library libhwloc])])
AC_CHECK_HEADERS([hwloc.h], [], [AC_MSG_ERROR([can not find require header file hwloc.h])])
Expand Down

0 comments on commit 47ae966

Please sign in to comment.