check for snprintf

Dobrica Pavlinusic dpavlin at foi.hr
Mon Apr 12 00:51:22 CEST 1999


On Fri, 9 Apr 1999, Artur Frysiak wrote:

> Now configure check for snprintf and if not found add snprintf.c to
> pinfo_SOURCES.

It doesn't work. In Makefile.in it doesn't create rules to make
snprintf.o. Inserting snprintf.c all the time into source files is o.k.,
because if you include config.h in it (it's currently commented -- it has
to be changed to "../config.h" I think) it would just skip it because it
would have defined HAVE_SNPRINTF (and it HAS needed #ifdef's).

> Please tell me where (in Digital UNIX) is instaled readline.h and
> libreadline.{so,a}.

They are in usual places (/usr/local/include and /usr/local/lib) but I
have to link it with readline AND ncurses to work on DU.

I don't like dependency on gettext (for autogen.sh), but AFAIK, it's only
for development. I checked that by compiling on Solaris. 

While I talk about solaris, there are more portabiliry problems:
1. sigmask/sigblock in signal_handler is unresolved
2. snprintf doesn't exits (good thing that we have replacement :-)
3. add_history/readline in utils is unresolved -- this is also problem
   on DU with HAVE_LIBREADLINE undefined -- #ifdef in line 164 of utils.c
   should be #ifndef !


Also few notes:

1. My cvs access isn't working :-(
   [Tomasz: I changed dpavlin at pld.org.pl to dpavlin at cvs.pld.org.pl in your
   example, but with no luck...]

2. Could this list have reply-to header?

Dobrica Pavlinusic                    dpavlin at foi.hr, dpavlin at jagor.srce.hr
Unix addict. Internet consultant.                http://www.foi.hr/~dpavlin



More information about the pld-pinfo mailing list