[vino] Fix configure options containing extra dashes
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vino] Fix configure options containing extra dashes
- Date: Mon, 7 Mar 2011 22:11:19 +0000 (UTC)
commit c6b275cb6f1c8ed7be93852fad4b5f1aaf0a6920
Author: David King <amigadave amigadave com>
Date: Mon Mar 7 23:06:32 2011 +0100
Fix configure options containing extra dashes
The logic for evaluating configure options that contained a dash was
wrong. This includes --enable-http-server, --with-network-manager and
--with-gnome-keyring. Thanks to David Ronis for the report in bug
644153.
configure.ac | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 389d20d..a464274 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,12 +16,12 @@ AC_ARG_ENABLE([http-server],
[AS_HELP_STRING([--disable-http-server],
[build with an HTTP server for serving a Java applet client @<:@default=yes@:>@])],
[],
- [enable_httpserver=yes])
+ [enable_http_server=yes])
-AS_IF([test "x$enable_httpserver" = "xyes"],
+AS_IF([test "x$enable_http_server" = "xyes"],
[AC_DEFINE([VINO_ENABLE_HTTP_SERVER], [], [Enable HTTP server support])])
-AM_CONDITIONAL([VINO_ENABLE_HTTP_SERVER], [test "x$enable_httpserver" = "xyes"])
+AM_CONDITIONAL([VINO_ENABLE_HTTP_SERVER], [test "x$enable_http_server" = "xyes"])
# GNOME common
GNOME_MAINTAINER_MODE_DEFINES
@@ -105,17 +105,17 @@ AC_ARG_WITH([network-manager],
[AS_HELP_STRING([--without-network-manager],
[ignore the presence of NetworkManager and disable it])])
-AS_IF([test "x$with_networkmanager" != "xno"],
+AS_IF([test "x$with_network_manager" != "xno"],
[PKG_CHECK_EXISTS([NETWORKMANAGER],
[$NETWORKMANAGER_DEPS],
- [have_networkmanager=yes],
- [have_networkmanager=no])],
- [have_networkmanager=no])
+ [have_network_manager=yes],
+ [have_network_manager=no])],
+ [have_network_manager=no])
-AS_IF([test "x$have_networkmanager" = "xyes"],
+AS_IF([test "x$have_network_manager" = "xyes"],
[AC_DEFINE([VINO_HAVE_NETWORKMANAGER], [], [Build with NetworkManager support])],
[NETWORKMANAGER_DEPS=""
- AS_IF([test "x$with_networkmanager" = "xyes"],
+ AS_IF([test "x$with_network_manager" = "xyes"],
[AC_MSG_ERROR([NetworkManager support requested but not found])])])
# Check for gnome-keyring
@@ -125,17 +125,17 @@ AC_ARG_WITH([gnome-keyring],
[AS_HELP_STRING([--without-gnome-keyring],
[ignore the presence of gnome-keyring and disable it])])
-AS_IF([test "x$with_gnomekeyring" != "xno"],
+AS_IF([test "x$with_gnome_keyring" != "xno"],
[PKG_CHECK_EXISTS([GNOME_KEYRING],
[$GNOME_KEYRING_DEPS],
- [have_gnomekeyring=yes],
- [have_gnomekeyring=no])],
- [have_gnomekeyring=no])
+ [have_gnome_keyring=yes],
+ [have_gnome_keyring=no])],
+ [have_gnome_keyring=no])
-AS_IF([test "x$have_gnomekeyring" != "xno"],
+AS_IF([test "x$have_gnome_keyring" != "xno"],
[AC_DEFINE([VINO_HAVE_GNOME_KEYRING], [], [Build with gnome-keyring support])],
[GNOME_KEYRING_DEPS=""
- AS_IF([test "x$with_gnomekeyring" = "xyes"],
+ AS_IF([test "x$with_gnome_keyring" = "xyes"],
[AC_MSG_ERROR([gnome-keyring support requested but not found])])])
# If Pango included the shared library dependencies from X11 in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]