public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 configure configure.in Date: Mon, 07 Jun 2010 14:32:00 -0000 [thread overview] Message-ID: <20100607143206.15575.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2010-06-07 14:32:03 Modified files: . : configure configure.in Log message: Fix wrong usage of exec_prefix from previous patch introducing LVM_PATH define Introduce lvm_exec_prefix with resolved exec_prefix. (using same ac_default_prefix as for CLVMD_PATH) Use lvm_exec_prefix instead of dmeventd_prefix (fixes missing ac_default_prefix) Note: This patch is rather hot-fix as currently generate code does not create correct code for make exec_prefix= Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/configure.diff?cvsroot=lvm2&r1=1.131&r2=1.132 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/configure.in.diff?cvsroot=lvm2&r1=1.142&r2=1.143 --- LVM2/configure 2010/06/03 13:50:26 1.131 +++ LVM2/configure 2010/06/07 14:31:59 1.132 @@ -15518,8 +15518,12 @@ fi +lvm_exec_prefix=$exec_prefix +test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix +test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix + cat >>confdefs.h <<_ACEOF -#define LVM_PATH "$exec_prefix/sbin/lvm" +#define LVM_PATH "$lvm_exec_prefix/sbin/lvm" _ACEOF @@ -15556,13 +15560,6 @@ if test "$BUILD_DMEVENTD" = yes; then - dmeventd_prefix="$exec_prefix" - if test "x$dmeventd_prefix" = "xNONE"; then - dmeventd_prefix="$prefix" - fi - if test "x$dmeventd_prefix" = "xNONE"; then - dmeventd_prefix="" - fi # Check whether --with-dmeventd-path was given. if test "${with_dmeventd_path+set}" = set; then @@ -15572,7 +15569,7 @@ else cat >>confdefs.h <<_ACEOF -#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" +#define DMEVENTD_PATH "$lvm_exec_prefix/sbin/dmeventd" _ACEOF fi --- LVM2/configure.in 2010/06/03 13:50:26 1.142 +++ LVM2/configure.in 2010/06/07 14:32:01 1.143 @@ -1009,7 +1009,11 @@ AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.]) fi -AC_DEFINE_UNQUOTED(LVM_PATH, ["$exec_prefix/sbin/lvm"], [Path to lvm binary.]) + +lvm_exec_prefix=$exec_prefix +test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix +test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix +AC_DEFINE_UNQUOTED(LVM_PATH, ["$lvm_exec_prefix/sbin/lvm"], [Path to lvm binary.]) if test "$CLVMD" != none; then clvmd_prefix=$ac_default_prefix @@ -1029,17 +1033,10 @@ AH_TEMPLATE(DMEVENTD_PATH, [Path to dmeventd binary.]) if test "$BUILD_DMEVENTD" = yes; then - dmeventd_prefix="$exec_prefix" - if test "x$dmeventd_prefix" = "xNONE"; then - dmeventd_prefix="$prefix" - fi - if test "x$dmeventd_prefix" = "xNONE"; then - dmeventd_prefix="" - fi AC_ARG_WITH(dmeventd-path, [ --with-dmeventd-path=PATH dmeventd path [[EPREFIX/sbin/dmeventd]] ], [ AC_DEFINE_UNQUOTED(DMEVENTD_PATH,"$withval") ], - [ AC_DEFINE_UNQUOTED(DMEVENTD_PATH,"$dmeventd_prefix/sbin/dmeventd") ]) + [ AC_DEFINE_UNQUOTED(DMEVENTD_PATH,"$lvm_exec_prefix/sbin/dmeventd") ]) fi ################################################################################
next reply other threads:[~2010-06-07 14:32 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-06-07 14:32 zkabelac [this message] -- strict thread matches above, loose matches on Subject: below -- 2012-03-14 19:25 zkabelac 2012-02-20 19:36 prajnoha 2011-11-21 10:40 zkabelac 2011-04-28 16:54 agk 2010-05-11 8:48 zkabelac 2009-09-02 19:32 agk 2009-04-24 21:44 agk 2007-09-18 18:26 meyering 2007-09-18 14:01 meyering 2006-10-12 18:17 agk 2006-02-02 18:39 agk 2004-05-04 12:14 agk
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100607143206.15575.qmail@sourceware.org \ --to=zkabelac@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).