mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
Avoid empty strings when --with-packager(-version) is not specified
Make with_packager and with_packager_version default to "no". This way --without-packager-version (as shorthand for --with-packager(-version)=no) works correctly too. Prior to this patch libvirt outputs a line like this when --with-packager(-version) was not specified # ./daemon/libvirtd 14:11:15.018: 31796: info : libvirt version: 0.8.8, package: () Now the unspecified parts are correctly omitted. Reported by Osier Yang.
This commit is contained in:
parent
3db08aeaef
commit
251ad3b28b
@ -32,11 +32,11 @@ AC_SUBST([LIBVIRT_VERSION_NUMBER])
|
|||||||
AC_ARG_WITH([packager],
|
AC_ARG_WITH([packager],
|
||||||
[AS_HELP_STRING([--with-packager],
|
[AS_HELP_STRING([--with-packager],
|
||||||
[Extra packager name])],
|
[Extra packager name])],
|
||||||
[],[])
|
[],[with_packager=no])
|
||||||
AC_ARG_WITH([packager-version],
|
AC_ARG_WITH([packager-version],
|
||||||
[AS_HELP_STRING([--with-packager-version],
|
[AS_HELP_STRING([--with-packager-version],
|
||||||
[Extra packager version])],
|
[Extra packager version])],
|
||||||
[],[])
|
[],[with_packager_version=no])
|
||||||
if test "x$with_packager" != "xno"
|
if test "x$with_packager" != "xno"
|
||||||
then
|
then
|
||||||
AC_DEFINE_UNQUOTED([PACKAGER], ["$with_packager"],
|
AC_DEFINE_UNQUOTED([PACKAGER], ["$with_packager"],
|
||||||
|
Loading…
Reference in New Issue
Block a user