GCC 4.7 fix.

This partially resolves bug report 958.
Thanks to David C. Rankin and Serghei Amelian.
pull/1/head
Darrell Anderson 13 years ago
parent 5ad5528b30
commit 0efb8a18d4

@ -40,6 +40,6 @@ tde_add_executable( ksnapshot AUTOMOC
SOURCES
ksnapshotiface.skel main.cpp ksnapshot.cpp regiongrabber.cpp
windowgrabber.cpp ksnapshotwidget.ui
LINK tdeprint-shared
LINK tdeprint-shared ${XEXT_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)

@ -9,4 +9,13 @@
#
#################################################
check_include_file( X11/extensions/shape.h HAVE_X11_EXTENSIONS_SHAPE_H )
## test for and explicitly include libXext
if( WITH_XEXT )
pkg_search_module( XEXT xext )
if( XEXT_FOUND )
check_include_file( "X11/extensions/shape.h" HAVE_X11_EXTENSIONS_SHAPE_H )
endif( )
if( NOT XEXT_FOUND )
tde_message_fatal( "You requested Xext support, but was not found on your system." )
endif( )
endif( )

Loading…
Cancel
Save