Revert "Add libgs dependency, only compile guac_rdpdr if libgs found."

This reverts commit b77a7e0bffdcc44cc5488663d780c1a2c31ef781.
This commit is contained in:
Michael Jumper 2013-06-28 11:23:19 -07:00
parent 5bf67ce442
commit 62258c9278
2 changed files with 44 additions and 68 deletions

View File

@ -103,18 +103,6 @@ have_pango=yes
PKG_CHECK_MODULES([PANGO], [pango],, [have_pango=no]);
PKG_CHECK_MODULES([PANGOCAIRO], [pangocairo],, [have_pango=no]);
#
# GhostScript
#
have_libgs=yes
GS_LIBS=
AC_CHECK_LIB([gs], [gsapi_new_instance], [GS_LIBS="$GS_LIBS -lgs"], [have_libgs=no])
AM_CONDITIONAL([ENABLE_GS], [test "x${have_libgs}" = "xyes"])
AC_SUBST(GS_LIBS)
#
# libVNCServer
#
@ -177,7 +165,6 @@ $PACKAGE_NAME version $PACKAGE_VERSION
freerdp ............. ${have_freerdp}
pango ............... ${have_pango}
libgs ............... ${have_libgs}
libssh .............. ${have_libssh}
libVNCServer ........ ${have_libvncserver}
libvorbisenc ........ ${have_vorbisenc}

View File

@ -40,7 +40,7 @@ ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = -Werror -Wall -Iinclude @LIBGUAC_INCLUDE@
lib_LTLIBRARIES = libguac-client-rdp.la
freerdp_LTLIBRARIES = guac_rdpsnd.la
freerdp_LTLIBRARIES = guac_rdpsnd.la guac_rdpdr.la
libguac_client_rdp_la_SOURCES = \
audio.c \
@ -65,7 +65,15 @@ guac_rdpsnd_la_SOURCES = \
guac_rdpsnd/rdpsnd_service.c \
audio.c
guac_rdpdr_la_SOURCES = \
guac_rdpdr/rdpdr_messages.c \
guac_rdpdr/rdpdr_printer.c \
guac_rdpdr/rdpdr_service.c
noinst_HEADERS = \
guac_rdpdr/rdpdr_messages.h \
guac_rdpdr/rdpdr_printer.h \
guac_rdpdr/rdpdr_service.h \
guac_rdpsnd/rdpsnd_messages.h \
guac_rdpsnd/rdpsnd_service.h \
audio.h \
@ -87,32 +95,13 @@ if ENABLE_OGG
noinst_HEADERS += ogg_encoder.h
endif
# Compile guac_rdpdr if PDF support available
if ENABLE_GS
freerdp_LTLIBRARIES += guac_rdpdr.la
guac_rdpdr_la_SOURCES = \
guac_rdpdr/rdpdr_messages.c \
guac_rdpdr/rdpdr_printer.c \
guac_rdpdr/rdpdr_service.c
noinst_HEADERS += \
guac_rdpdr/rdpdr_messages.h \
guac_rdpdr/rdpdr_printer.h \
guac_rdpdr/rdpdr_service.h
guac_rdpdr_la_LDFLAGS = -module -avoid-version -shared @RDP_LIBS@ @PTHREAD_LIBS@
guac_rdpdr_la_LIBADD = @LIBGUAC_LTLIB@
endif
libguac_client_rdp_la_LDFLAGS = -version-info 0:0:0 @RDP_LIBS@ @VORBIS_LIBS@ @PTHREAD_LIBS@
guac_rdpsnd_la_LDFLAGS = -module -avoid-version -shared @RDP_LIBS@ @VORBIS_LIBS@ @PTHREAD_LIBS@
guac_rdpdr_la_LDFLAGS = -module -avoid-version -shared @RDP_LIBS@ @PTHREAD_LIBS@
libguac_client_rdp_la_LIBADD = @LIBGUAC_LTLIB@
guac_rdpsnd_la_LIBADD = @LIBGUAC_LTLIB@
guac_rdpdr_la_LIBADD = @LIBGUAC_LTLIB@
freerdpdir = ${libdir}/freerdp