require 'formula' class A2ps #include "xstrrpl.h" -extern char * stpcpy(); - /* Perform subsitutions in string. Result is malloc'd E.g., result = xstrrrpl ("1234", subst) gives result = "112333" where subst = { {"1", "11"}, {"3", "333"}, { "4", ""}} --- a/contrib/sample/Makefile.in +++ b/contrib/sample/Makefile.in @@ -298,7 +298,7 @@ AUTOMAKE_OPTIONS = $(top_builddir)/lib/ansi2knr sample_SOURCES = main.c INCLUDES = -I. -I.. -I$(top_builddir) -I$(top_srcdir)/intl -I$(top_srcdir)/lib -sample_LDADD = $(top_builddir)/lib/liba2ps.la @LIBINTL@ -lm +sample_LDADD = -lm $(top_builddir)/lib/liba2ps.la @LIBINTL@ all: all-am .SUFFIXES: