X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=configure.ac;h=c0304ec156c1879d9e662b906a9266a8438ef9a0;hb=4c9196ac43127d94cfb5d10387007658eeac808c;hp=3ca8401de0cfa9131e3180dd6cdff761f4b47372;hpb=5b0c51f82cf2a0c9e53e55399c4b1c8ca03a16ef;p=evince.git diff --git a/configure.ac b/configure.ac index 3ca8401d..c0304ec1 100644 --- a/configure.ac +++ b/configure.ac @@ -161,14 +161,13 @@ PKG_CHECK_MODULES([SHELL_CORE],[libxml-2.0 >= $LIBXML_REQUIRED gtk+-2.0 >= $GTK_ 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" ;; + gnome) with_smclient=xsmp ;; *) with_smclient=no ;; esac ;; win32|quartz) with_smclient=$GDK_TARGET ;; @@ -179,6 +178,11 @@ AC_MSG_RESULT([$with_smclient]) if test "$with_smclient" != "no"; then AC_DEFINE([WITH_SMCLIENT],[1],[Define if smclient is enabled]) + case "$with_smclient" in + xsmp) SMCLIENT_PKGS="sm >= 1.0.0" ;; + *) SMCLIENT_PKGS="" ;; + esac + PKG_CHECK_MODULES([SMCLIENT],[gtk+-2.0 gthread-2.0 $SMCLIENT_PKGS]) AC_SUBST([SMCLIENT_CFLAGS]) AC_SUBST([SMCLIENT_LIBS])