* [gentoo-commits] gentoo-x86 commit in app-text/evince/files: evince-2.27.4-smclient-configure.patch
@ 2009-10-29 21:19 Gilles Dartiguelongue (eva)
0 siblings, 0 replies; only message in thread
From: Gilles Dartiguelongue (eva) @ 2009-10-29 21:19 UTC (permalink / raw
To: gentoo-commits
eva 09/10/29 21:19:04
Added: evince-2.27.4-smclient-configure.patch
Log:
New version for GNOME 2.28. Clean up old revision.
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Revision Changes Path
1.1 app-text/evince/files/evince-2.27.4-smclient-configure.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/evince/files/evince-2.27.4-smclient-configure.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/evince/files/evince-2.27.4-smclient-configure.patch?rev=1.1&content-type=text/plain
Index: evince-2.27.4-smclient-configure.patch
===================================================================
Prototype of AC_ARG_WITH is the following :
AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
action-if-given is executed only if a option --{with,without}-smclient is
given to the configure script, is nothing is given action-if-not-given is
executed.
The problem was SMCLIENT_PKGS="sm >= 1.0.0" was assigned ONLY IF nothing was
given to the configure (default behaviour) so in action-if-not-given.
If the user gave --with-smclient=stuff "[]" was executed, and then
SMCLIENT_PKGS was empty, then the PKG_CHECK_MODULES into the if statement
didn't check it, and necesseraly libSM's cflags and libs wasn't found.
configure.ac | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/configure.ac b/configure.ac
index 821c52b..3d8d7c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -157,19 +157,19 @@ GDK_TARGET="$($PKG_CONFIG --variable target gdk-2.0)"
SMCLIENT_PKGS=
AC_MSG_CHECKING([which smclient backend to use])
AC_ARG_WITH([smclient],
- [AS_HELP_STRING([--with-smclient-backend],[which smclient backend to use (no|xsmp|win32|quartz)])],
- [],
- [case "$GDK_TARGET" in
- x11) case "$with_platform" in
- gnome) with_smclient=xsmp SMCLIENT_PKGS="sm >= 1.0.0" ;;
- *) with_smclient=no ;;
- esac ;;
- win32|quartz) with_smclient=$GDK_TARGET ;;
- *) with_smclient=no ;;
- esac])
+ [AS_HELP_STRING([--with-smclient-backend],[which smclient backend to use (no|xsmp|win32|quartz)])])
AC_MSG_RESULT([$with_smclient])
if test "$with_smclient" != "no"; then
+ case "$GDK_TARGET" in
+ x11)
+ case "$with_platform" in
+ gnome) with_smclient=xsmp SMCLIENT_PKGS="sm >= 1.0.0" ;;
+ *) with_smclient=no ;;
+ esac ;;
+ win32|quartz) with_smclient=$GDK_TARGET ;;
+ *) with_smclient=no ;;
+ esac
AC_DEFINE([WITH_SMCLIENT],[1],[Define if smclient is enabled])
PKG_CHECK_MODULES([SMCLIENT],[gtk+-2.0 gthread-2.0 $SMCLIENT_PKGS])
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-29 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-29 21:19 [gentoo-commits] gentoo-x86 commit in app-text/evince/files: evince-2.27.4-smclient-configure.patch Gilles Dartiguelongue (eva)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox