Well, someone made some mistakes when entering the changes
&
Code: Select all
checking for Ghostscript fonts directory... gsc/
Syntax is critical in checks, especially when checking for different apps
Code: Select all
AC_PATH_PROG(PSDelegate, gsx gsc $PSDelegateDefault,$PSDelegateDefault)
is invalid and should be:
Code: Select all
AC_PATH_PROGS(PSDelegate, gsx gsc $PSDelegateDefault,$PSDelegateDefault)
Actually, let's make it:
Code: Select all
AC_PATH_PROGS(PSDelegate, gsx gsc gs gswin32c,$PSDelegateDefault)
and then change:
to:
Code: Select all
if test "$PSDelegate" != "$PSDelegateDefault"
There are also issue in the jpeg check code that has been carried over from previous versions that should also be addressed:
Code: Select all
checking for jpeg_read_header in -ljpeg... yes
checking for JPEG library is version 6b or later... yes
yes
checking if JPEG package is complete... yes
If you examine the macro you will see the macro already prints the results so attempting to print the results again is an error in logic.
Another issue is that you use "GSCMYKDevice=pam" and this options doesn't appear to be available:
Code: Select all
Default output device: png16m
Available devices:
bbox epswrite jpeg jpegcmyk jpeggray nullpage pbm pbmraw pdfwrite
pdfwrite pgm pgmraw pgnm pgnmraw pkm pkmraw pksm pksmraw png16 png16m
png256 pngalpha pnggray pngmono pnm pnmraw ppm ppmraw ps2write pswrite
pxlcolor pxlmono
maybe something from this list can be substituted or perhaps a different configure flag in GhostScript is required???
Now it appears to recognize the libraries or frameworks in OSX (depending on the build method used) but we have a build issue:
Code: Select all
ld: Undefined symbols:
___gcov_init
___gcov_merge_add
/usr/bin/libtool: internal link edit command failed
I don't believe this is anything serious, looks like it's not adding "-lgcov" if it's available so changing
Code: Select all
# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
# This is a gcc-specific feature
if test "$with_gcov" = 'yes'
then
CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
fi
to:
Code: Select all
# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
# This is a gcc-specific feature
if test "$with_gcov" = 'yes'
then
AC_CHECK_LIB(gcov,__gcov_init)
CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
fi
resolves the issue and with systems that don't have, need or require libgcov it doesn't affect them.
Now that I can configure using the the Ghostscript library or framework, I've run into another issue which has to do with building the dynamic library with "--enable-gcov" in that it also requires "-single_module" to be supplied during the link stage when generating the shared libraries.
If gone through and cleaned up the configure.ac script and fixed some cosmetic issues with some of the macros as well so if I can get someone to work with me for a couple of minutes and regenerate a configure script based on the updated configure.ac and macro files I've been working on it would help expedite matters significantly (only because I can't do it due to the version and environment issues).
I can be reached on aim at "
mrdalewalsh@aol.com" if you'd like to help me work out these minor glitches and it shouldn't take more than a few minutes of yor time.
-- Dale