When I configure with this option, --enable-font-backend, pkg-
config returns quite correctly for CFLAGS or LIBS:
-I/usr/local/include -I/usr/local/include/freetype2 -I/usr/X11R6/
include
-L/usr/local/lib -L/usr/X11R6/lib -lfreetype -lXft -lXrender -
lfontconfig
So in the end it comes to this gcc invocation:
gcc -I/sw/include -L/sw/lib -c -no-cpp-precomp -I/usr/include/
openssl -I/usr/local/include/freetype2 -I/usr/local/include -I/sw/
include/libpng12 -I/sw/include -Demacs -DHAVE_CONFIG_H -DUSE_LUCID -
I. -I/Users/pete/Quellen/Emacs_CVS/emacs-23.0.0_NS-9.0pre3/src -I/
usr/
X11R6/include -I/usr/local/include -I/usr/local/include/freetype2 -I/
usr/X11R6/include -fpascal-strings -DMAC_OSX -I../mac/src -Dtemacs
ftfont.c
Instead of using /usr/local/include/ft2build.h for fontconfig and
freetype2 in /usr/local, /usr/X11R6/include/ft2build.h is found! And
ftfont.c can't be compiled:
ftfont.c: In function ‘ftfont_pattern_entity’:
ftfont.c:129: error: ‘FC_WEIGHT_REGULAR’ undeclared (first use in
this function)
ftfont.c:129: error: (Each undeclared identifier is reported only
once
ftfont.c:129: error: for each function it appears in.)
ftfont.c:135: error: ‘FC_WIDTH’ undeclared (first use in this
function)
ftfont.c: In function ‘ftfont_list_generic_family’:
ftfont.c:191: error: ‘FC_WIDTH’ undeclared (first use in this
function)
ftfont.c: In function ‘ftfont_list’:
ftfont.c:439: error: ‘FC_WIDTH’ undeclared (first use in this
function)
ftfont.c:509: error: ‘FC_WEIGHT_REGULAR’ undeclared (first use in
this function)
make[2]: *** [ftfont.o] Error 1