Bug 102119

Summary: kpdf build failure, old Xft libs (Xft-2.0, Xft-2.1)
Product: [Applications] kpdf Reporter: Rex Dieter <rdieter>
Component: generalAssignee: Albert Astals Cid <aacid>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: use XFT_CFLAGS

Description Rex Dieter 2005-03-21 19:14:11 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    RedHat RPMs
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113) 
OS:                Linux

kpdf fails to build on older systems (XFree-4.2.1 + Xft2-2.0/Xft2-2.1) due to the non-standard location of Xft2 header files.
Comment 1 Rex Dieter 2005-03-21 19:15:37 UTC
Created attachment 10250 [details]
use XFT_CFLAGS

use XFT_CFLAGS as returned from 
xft-config --cflags
(like how XFT_LIBS is used)
Comment 2 Albert Astals Cid 2005-03-21 21:58:26 UTC
CVS commit by aacid: 

Fix compile problem due to the non-standard location of Xft2 header files.
Thanks Rex for reporting
BUGS: 102119


  M +2 -0      configure.in.in   1.17.2.1
  M +1 -1      xpdf/xpdf/Makefile.am   1.4.2.1


--- kdegraphics/kpdf/configure.in.in  #1.17:1.17.2.1
@@ -40,7 +40,9 @@
 
 if test -n "$XFT_CONFIG"; then
+  XFT_CFLAGS="`$XFT_CONFIG --cflags`"
   XFT_LIBS="`$XFT_CONFIG --libs`"
 fi
 
+AC_SUBST(XFT_CFLAGS)
 AC_SUBST(XFT_LIBS)
 

--- kdegraphics/kpdf/xpdf/xpdf/Makefile.am  #1.4:1.4.2.1
@@ -1,3 +1,3 @@
-INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../fofi -I$(srcdir)/../splash -I$(srcdir)/../goo $(all_includes) $(LIBFREETYPE_CFLAGS) $(X_INCLUDES) $(QT_INCLUDES)
+INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../fofi -I$(srcdir)/../splash -I$(srcdir)/../goo $(all_includes) $(LIBFREETYPE_CFLAGS) $(XFT_CFLAGS) $(X_INCLUDES) $(QT_INCLUDES)
 
 libxpdf_la_LDFLAGS = $(all_libraries)