diff --git a/build.sunos64x64/squeak.cog.spur/build/mvm b/build.sunos64x64/squeak.cog.spur/build/mvm index 806b409307..8fd3f19a3b 100755 --- a/build.sunos64x64/squeak.cog.spur/build/mvm +++ b/build.sunos64x64/squeak.cog.spur/build/mvm @@ -23,7 +23,8 @@ n|no|N|NO) echo "ok but this isn't safe!!";; esac test -f plugins.int || (test -f ../plugins.int && cp -p ../plugins.int . || cp -p ../../plugins.int .) test -f plugins.ext || (test -f ../plugins.ext && cp -p ../plugins.ext . || cp -p ../../plugins.ext .) -test -f config.h || ../../../platforms/unix/config/configure --without-npsqueak \ +test -f config.h || ../../../platforms/unix/config/configure x86_64-pc-solaris2.11\ + --without-npsqueak \ --with-vmversion=5.0 \ --without-libtls \ --disable-dynamicopenssl \ @@ -31,6 +32,7 @@ test -f config.h || ../../../platforms/unix/config/configure --without-npsqueak TARGET_ARCH="-m64" \ CFLAGS="$CFLAGS" \ LIBS="$LIBS" \ + PKG_CONFIG_PATH=/usr/lib/64/pkgconfig \ LDFLAGS="$LDFLAGS" rm -f vm/sqUnixMain.o # nuke version info rm -rf ../../../products/$INSTALLDIR diff --git a/build.sunos64x64/squeak.stack.spur/build/mvm b/build.sunos64x64/squeak.stack.spur/build/mvm index 129e93fea7..3a3d0664c4 100755 --- a/build.sunos64x64/squeak.stack.spur/build/mvm +++ b/build.sunos64x64/squeak.stack.spur/build/mvm @@ -18,13 +18,14 @@ n|no|N|NO) echo "ok but this isn't safe!!";; esac test -f plugins.int || (test -f ../plugins.int && cp -p ../plugins.int . || cp -p ../../plugins.int .) test -f plugins.ext || (test -f ../plugins.ext && cp -p ../plugins.ext . || cp -p ../../plugins.ext .) -test -f config.h || ../../../platforms/unix/config/configure \ +test -f config.h || ../../../platforms/unix/config/configure x86_64-pc-solaris2.11 \ --with-vmversion=5.0 \ --without-libtls \ --disable-dynamicopenssl \ --with-src=spurstack64src --disable-cogit \ --without-vm-display-fbdev --without-npsqueak \ TARGET_ARCH="-m64" \ + PKG_CONFIG_PATH=/usr/lib/64/pkgconfig \ CFLAGS="$OPT" rm -f vm/sqUnixMain.o # nuke version info rm -rf ../../../products/$INSTALLDIR diff --git a/platforms/unix/config/make.cfg.in b/platforms/unix/config/make.cfg.in index 0519fc9440..c7a6f43f05 100644 --- a/platforms/unix/config/make.cfg.in +++ b/platforms/unix/config/make.cfg.in @@ -95,6 +95,8 @@ X_CFLAGS= @X_CFLAGS@ X_INCLUDES= @X_INCLUDES@ X_LIBS= @X_LIBS@ +UNICODE_PLUGIN_LIBS= @UNICODE_PLUGIN_LIBS@ +UNICODE_PLUGIN_CFLAGS= @UNICODE_PLUGIN_CFLAGS@ INTERP= @INTERP@ diff --git a/platforms/unix/plugins/UnicodePlugin/Makefile.inc b/platforms/unix/plugins/UnicodePlugin/Makefile.inc index 02d554ad04..75776aabec 100644 --- a/platforms/unix/plugins/UnicodePlugin/Makefile.inc +++ b/platforms/unix/plugins/UnicodePlugin/Makefile.inc @@ -1,2 +1,3 @@ -XCPPFLAGS= -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/lib/i386-linux-gnu/glib-2.0/include -XLDFLAGS= -lpangocairo-1.0 -lcairo -lpango-1.0 -lgobject-2.0 -lglib-2.0 +XCPPFLAGS=$(UNICODE_PLUGIN_CFLAGS) +XLDFLAGS=$(UNICODE_PLUGIN_LIBS) + diff --git a/platforms/unix/plugins/UnicodePlugin/README.UnicodePlugin b/platforms/unix/plugins/UnicodePlugin/README.UnicodePlugin index 0dce8726c2..ac456a9eb1 100755 --- a/platforms/unix/plugins/UnicodePlugin/README.UnicodePlugin +++ b/platforms/unix/plugins/UnicodePlugin/README.UnicodePlugin @@ -1 +1,20 @@ -In order to build the Unicode plugin on Linux, you'll need a collection of Pango, Cairo, and glib header and library files. These can often be found in the GTK+ development package in the package repository for your version of Linux. +In order to build the Unicode plugin, you'll need a collection of Pango, Cairo, and glib header and library files. These can often be found in the GTK+ development package in the package repository for your operating system. + +The location of the header files can be a problem. + +A possible approach is to use 'pkg-config' reducing the problem + + # pkg-config --cflags glib-2.0 + +For example a system may have: + + -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include + +while a different system (or a 64bit version of the same system) may have: + + -I/usr/include/glib-2.0 -I/usr/lib/amd64/glib-2.0/include + +Unfortunately pkg-config could perhaps have its own problems ... + +In that case configure can be ran with "UNICODE_PLUGIN_CFLAGS" manually set. + diff --git a/platforms/unix/plugins/UnicodePlugin/acinclude.m4 b/platforms/unix/plugins/UnicodePlugin/acinclude.m4 index 9995474b1a..3f280e6a32 100644 --- a/platforms/unix/plugins/UnicodePlugin/acinclude.m4 +++ b/platforms/unix/plugins/UnicodePlugin/acinclude.m4 @@ -1,12 +1,7 @@ -# -*- sh -*- - -AC_MSG_CHECKING([for PangoCairo libraries]) -save_CPPFLAGS="$CPPFLAGS" -CPPFLAGS="-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/lib/i386-linux-gnu/glib-2.0/include" -AC_TRY_COMPILE([#include ],[{}],[ - AC_MSG_RESULT(yes) -],[ - AC_MSG_RESULT(no) - AC_PLUGIN_DISABLE -]) -CPPFLAGS="$save_CPPFLAGS" +# -*- sh -*- + +PKG_CHECK_MODULES(UNICODE_PLUGIN,[glib-2.0 pangocairo],,AC_PLUGIN_DISABLE) + +AC_SUBST(UNICODE_PLUGIN_CFLAGS) +AC_SUBST(UNICODE_PLUGIN_LIBS) +