Lines 219-224
Link Here
|
219 |
[WITH_DRBDMON=$withval]) |
219 |
[WITH_DRBDMON=$withval]) |
220 |
AC_SUBST(WITH_DRBDMON) |
220 |
AC_SUBST(WITH_DRBDMON) |
221 |
|
221 |
|
|
|
222 |
|
223 |
AC_ARG_WITH(helperlibdir, |
224 |
AS_HELP_STRING([--with-helperlibdir=DIR], |
225 |
[install helper lib binaries in DIR [[/lib/drbd]]]), |
226 |
helperlibdir=$withval, helperlibdir='/lib/drbd') |
227 |
AC_SUBST(helperlibdir) |
228 |
|
222 |
dnl Checks for programs |
229 |
dnl Checks for programs |
223 |
AC_PROG_CC |
230 |
AC_PROG_CC |
224 |
AC_PROG_LN_S |
231 |
AC_PROG_LN_S |
Lines 440-445
Link Here
|
440 |
AC_SUBST(RPM_REQ_CHKCONFIG_PREUN) |
447 |
AC_SUBST(RPM_REQ_CHKCONFIG_PREUN) |
441 |
AC_SUBST(WITH_CLITEST) |
448 |
AC_SUBST(WITH_CLITEST) |
442 |
|
449 |
|
|
|
450 |
AH_TEMPLATE(DRBD_HELPER_LIB_DIR, [Helper tool directory. Commonly |
451 |
/lib/drbd or /usr/local/lib/drbd]) |
443 |
AH_TEMPLATE(DRBD_LIB_DIR, [Local state directory. Commonly |
452 |
AH_TEMPLATE(DRBD_LIB_DIR, [Local state directory. Commonly |
444 |
/var/lib/drbd or /usr/local/var/lib/drbd]) |
453 |
/var/lib/drbd or /usr/local/var/lib/drbd]) |
445 |
AH_TEMPLATE(DRBD_RUN_DIR, [Runtime state directory. Commonly |
454 |
AH_TEMPLATE(DRBD_RUN_DIR, [Runtime state directory. Commonly |
Lines 456-467
Link Here
|
456 |
AH_TEMPLATE(DRBD_LEGACY_84, [Include support for drbd-8.4 kernel code]) |
465 |
AH_TEMPLATE(DRBD_LEGACY_84, [Include support for drbd-8.4 kernel code]) |
457 |
AH_TEMPLATE(WINDRBD, [Include support for windrbd (do not use this under Linux)]) |
466 |
AH_TEMPLATE(WINDRBD, [Include support for windrbd (do not use this under Linux)]) |
458 |
|
467 |
|
|
|
468 |
AC_SUBST(DRBD_HELPER_LIB_DIR, [$helperlibdir]) |
459 |
AC_SUBST(DRBD_LIB_DIR, [$localstatedir/lib/$PACKAGE_TARNAME]) |
469 |
AC_SUBST(DRBD_LIB_DIR, [$localstatedir/lib/$PACKAGE_TARNAME]) |
460 |
AC_SUBST(DRBD_RUN_DIR, [$localstatedir/run/$PACKAGE_TARNAME]) |
470 |
AC_SUBST(DRBD_RUN_DIR, [$localstatedir/run/$PACKAGE_TARNAME]) |
461 |
AC_SUBST(DRBD_LOCK_DIR, [$localstatedir/lock]) |
471 |
AC_SUBST(DRBD_LOCK_DIR, [$localstatedir/lock]) |
462 |
AC_SUBST(DRBD_CONFIG_DIR, [$sysconfdir]) |
472 |
AC_SUBST(DRBD_CONFIG_DIR, [$sysconfdir]) |
463 |
AC_SUBST(DRBD_BIN_DIR, [$exec_prefix/bin]) |
473 |
AC_SUBST(DRBD_BIN_DIR, [$exec_prefix/bin]) |
464 |
|
474 |
|
|
|
475 |
AC_DEFINE_UNQUOTED(DRBD_HELPER_LIB_DIR, ["$DRBD_HELPER_LIB_DIR"]) |
465 |
AC_DEFINE_UNQUOTED(DRBD_LIB_DIR, ["$DRBD_LIB_DIR"]) |
476 |
AC_DEFINE_UNQUOTED(DRBD_LIB_DIR, ["$DRBD_LIB_DIR"]) |
466 |
AC_DEFINE_UNQUOTED(DRBD_RUN_DIR, ["$DRBD_RUN_DIR"]) |
477 |
AC_DEFINE_UNQUOTED(DRBD_RUN_DIR, ["$DRBD_RUN_DIR"]) |
467 |
AC_DEFINE_UNQUOTED(DRBD_LOCK_DIR, ["$DRBD_LOCK_DIR"]) |
478 |
AC_DEFINE_UNQUOTED(DRBD_LOCK_DIR, ["$DRBD_LOCK_DIR"]) |