Skip to content

Commit

Permalink
Fix VDDK link failure when building against its installed version
Browse files Browse the repository at this point in the history
  • Loading branch information
gholms committed Feb 2, 2011
1 parent 9eb82d1 commit 2c263e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 6 additions & 4 deletions configure
Expand Up @@ -3679,16 +3679,18 @@ if test -n "${LIBVIRT_HOME}" ; then
fi
fi
if test -n "${VDDK_HOME}" ; then
if test "x$build_cpu" = "xx86_64"; then :
if test -d "${VDDK_HOME}"/include/ ; then
# Using tarball direct from VMware
INCLUDES="${INCLUDES} -I${VDDK_HOME}/include/"
if test "x$build_cpu" = "xx86_64"; then :
LIBS="-L${VDDK_HOME}/lib64 ${LIBS}"
else
LIBS="-L${VDDK_HOME}/lib32 ${LIBS}"
fi
if test -d "${VDDK_HOME}"/include/ ; then
INCLUDES="${INCLUDES} -I${VDDK_HOME}/include/"
elif test -d "${VDDK_HOME}"/lib/vmware-vix-disklib/include/ ; then
# Using installed tarball
INCLUDES="${INCLUDES} -I${VDDK_HOME}/lib/vmware-vix-disklib/include/"
LIBS="-L${VDDK_HOME}/lib %{LIBS}"
fi
fi
Expand Down
8 changes: 5 additions & 3 deletions configure.ac
Expand Up @@ -122,13 +122,15 @@ if test -n "${LIBVIRT_HOME}" ; then
fi
fi
if test -n "${VDDK_HOME}" ; then
AS_IF([test "x$build_cpu" = "xx86_64"], [LIBS="-L${VDDK_HOME}/lib64 ${LIBS}"],
[LIBS="-L${VDDK_HOME}/lib32 ${LIBS}"])

if test -d "${VDDK_HOME}"/include/ ; then
# Using tarball direct from VMware
INCLUDES="${INCLUDES} -I${VDDK_HOME}/include/"
AS_IF([test "x$build_cpu" = "xx86_64"], [LIBS="-L${VDDK_HOME}/lib64 ${LIBS}"],
[LIBS="-L${VDDK_HOME}/lib32 ${LIBS}"])
elif test -d "${VDDK_HOME}"/lib/vmware-vix-disklib/include/ ; then
# Using installed tarball
INCLUDES="${INCLUDES} -I${VDDK_HOME}/lib/vmware-vix-disklib/include/"
LIBS="-L${VDDK_HOME}/lib %{LIBS}"
fi
fi

Expand Down

0 comments on commit 2c263e1

Please sign in to comment.