Hints for building XSane 0.992 for OS/2 with gcc321 1. Before configure: REM setup gcc321 build environement: example: G:\emx\bin\gcc321.cmd SET CONFIG_SITE=g:/usr/share/config.site-gcc321 SET PKG_CONFIG_PATH=/usr/lib/pkgconfig\;/usr/X11R6/lib/pkgconfig SET GTK_CONFIG= 2. Configure: sh configure --without-included-gettext --disable-sanetest --disable-gtktest --disable-gimptest enable-gtk2 enable-gimp2 --with-gtk-exec=/usr --with-sane-prefix=/usr --with-gimp-prefix=/usr --with-gimp-exec-prefix=/usr --enable-gimp --prefix=/usr 1>1-gimp-c 2>2-gimp-c rem sh configure --without-included-gettext --disable-gtktest --prefix=/usr 3. After configure: 3.1. xsane-0.992\src\Makefile 3.1.1 LIBS = : remove $(top_builddir)/intl/libintl.a remove -lusbcalls remove -lpthread add -lsocket 4. Now you can run 'make' and 'make install' 5. To compile with support for color management you need liblcms.a ( http://www.littlecms.com/lcms-1.16.tar.gz ) in emx\lib and and it's includefiles (lcms.h and icc34.h) in emx\include before you run configure. So you have to build the lib first. Because configure failed with some obscure complain about grep I tried building it using gcc321 and lcms-1.16\src\makefile.simple. It built fine with a few minor quirks to some typedefs ( replace 'u_int8_t' and friends with 'unsigned char' ...) in lcms-1.16\include\icc34.h and adding #define strcasecmp stricmp to include\lcms.h 5. To build xsane.exe I now had to add -llibemxfix to LIBS = in xsane-0.992\src\Makefile because of undefined _strcasecmp in xsane-back-gtk.o ------------------------- fbakan@gmx.net 27.1.2007