mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
rearrange so we can use IPMITOOL_BIN in pluginpath variable
This commit is contained in:
parent
6f2eeed320
commit
630be3c669
@ -76,15 +76,29 @@ if test "x$exec_prefix" = "xNONE"; then
|
|||||||
exec_prefix="$prefix"
|
exec_prefix="$prefix"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
dnl Solaris convention is command-line tools have *adm and GUIs have *tool suffix
|
||||||
|
IPMITOOL_BIN="ipmitool"
|
||||||
|
AC_ARG_ENABLE([ipmiadm],
|
||||||
|
[[ --enable-ipmiadm enable rename of ipmitool to ipmiadm [default=no]]],,enable_ipmiadm=no)
|
||||||
|
AM_CONDITIONAL(IPMIADM, test "x$enable_ipmiadm" = "xyes")
|
||||||
|
if test "x$enable_ipmiadm" = "xyes"; then
|
||||||
|
IPMITOOL_BIN="ipmiadm"
|
||||||
|
fi
|
||||||
|
AC_DEFINE_UNQUOTED(IPMITOOL_BIN, "$IPMITOOL_BIN", "IPMItool binary name")
|
||||||
|
AC_SUBST(IPMITOOL_BIN)
|
||||||
|
|
||||||
|
|
||||||
dnl enable plugins for interfaces
|
dnl enable plugins for interfaces
|
||||||
AC_ARG_WITH([plugin-path],
|
AC_ARG_WITH([plugin-path],
|
||||||
[[ --with-plugin-path=DIR Set plugin path to DIR]],
|
[[ --with-plugin-path=DIR Set plugin path to DIR]],
|
||||||
[pluginpath="$withval"],
|
[pluginpath="$withval"],
|
||||||
[pluginpath="${exec_prefix}/lib/ipmitool"])
|
[pluginpath="${exec_prefix}/lib/${IPMITOOL_BIN}"])
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(PLUGIN_PATH, "$pluginpath", "IPMI interface plugin path")
|
AC_DEFINE_UNQUOTED(PLUGIN_PATH, "$pluginpath", "IPMI interface plugin path")
|
||||||
AC_SUBST(pluginpath)
|
AC_SUBST(pluginpath)
|
||||||
|
|
||||||
|
|
||||||
STATIC_INTF_LIST=
|
STATIC_INTF_LIST=
|
||||||
STATIC_INTF=
|
STATIC_INTF=
|
||||||
STATIC_INTF_EXT=
|
STATIC_INTF_EXT=
|
||||||
@ -159,17 +173,6 @@ fi
|
|||||||
AC_SUBST(IPMIEVD_SRC)
|
AC_SUBST(IPMIEVD_SRC)
|
||||||
AC_SUBST(IPMIEVD_BIN)
|
AC_SUBST(IPMIEVD_BIN)
|
||||||
|
|
||||||
dnl Solaris convention is command-line tools have *adm and GUIs have *tool suffix
|
|
||||||
IPMITOOL_BIN="ipmitool"
|
|
||||||
AC_ARG_ENABLE([ipmiadm],
|
|
||||||
[[ --enable-ipmiadm enable rename of ipmitool to ipmiadm [default=no]]],,enable_ipmiadm=no)
|
|
||||||
AM_CONDITIONAL(IPMIADM, test "x$enable_ipmiadm" = "xyes")
|
|
||||||
if test "x$enable_ipmiadm" = "xyes"; then
|
|
||||||
IPMITOOL_BIN="ipmiadm"
|
|
||||||
fi
|
|
||||||
AC_DEFINE_UNQUOTED(IPMITOOL_BIN, "$IPMITOOL_BIN", "IPMItool binary name")
|
|
||||||
AC_SUBST(IPMITOOL_BIN)
|
|
||||||
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([ipmitool.spec
|
AC_CONFIG_FILES([ipmitool.spec
|
||||||
Makefile
|
Makefile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user