As of version 3.2.20, tnimage should also build on Max OSX (Darwin). The procedure below was contributed by a user. Unfortunately, I don't have access to a Mac, so there is no way to know whether the new standard procedure actually works. If the standard procedure (configure; make; make install ) doesn't work, check the following:
echo darwin
Make sure the script is executable.
OBJS = xmtnimage*.o lex.yy.o y.tab.o
LDFLAGS=
INCLUDES=-I. -I/sw/include -I/sw/include/Xm -I/usr/X11R6/include -I/usr/X11R6/include/X11
LIBS= -lm /sw/lib/libtiff.a /usr/lib/libl.a /sw/lib/libXm.a \
/usr/X11R6/lib/libICE.a /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libXpm.a \
/usr/X11R6/lib/libXext.a /usr/X11R6/lib/libXt.a /sw/lib/libfl.a \
/usr/X11R6/lib/libX11.a /usr/local/lib/libjpeg.a /usr/local/lib/libpng.a \
/usr/local/lib/libtiff.a
/usr/lib/libz.dylib /sw/lib/libjpeg.a
CC=gcc
CFLAGS=-O3 -fno-common -Wall -no-cpp-precomp
YACC=yacc -d
Note that your libraries may be in different locations than shown here.
If this command doesn't work, use the strings or grep commands to determine which library files are needed for each unresolved
symbol.
OBJS = xmtnimage*.o lex.yy.o y.tab.o
LDFLAGS=
INCLUDES=-I. -I/sw/include -I/sw/include/Xbae -I/sw/include/Xm \
-I/usr/X11R6/include -I/usr/X11R6/include/X11
LIBS= -L/sw/lib -ltiff -ljpeg -lpng -lXbae -lXm -L/usr/X11R6/lib -lICE \
-lXpm -lXt -lSM -lX11 -lXext -lm -fl -ll -lz
CC=g++
CFLAGS=-O3 -fno-common -Wall -no-cpp-precomp
YACC=yacc -d
/* #undef HAVE_FCVT */
Similarly, if gcvt() causes problems, cast it from thee:
/* #undef HAVE_GCVT */
Thanks to Kurt De Vos for this information and for his persistence in compiling tnimage on the Mac. Feedback from other Mac users is encouraged.