Bug 102119 - kpdf build failure, old Xft libs (Xft-2.0, Xft-2.1)
Summary: kpdf build failure, old Xft libs (Xft-2.0, Xft-2.1)
Status: RESOLVED FIXED
Alias: None
Product: kpdf
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-21 19:14 UTC by Rex Dieter
Modified: 2005-03-21 21:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
use XFT_CFLAGS (1.14 KB, patch)
2005-03-21 19:15 UTC, Rex Dieter
Details

Note You need to log in before you can comment on or make changes to this bug.
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)