On Friday 2009-03-27 03:26, Russ Allbery wrote: >> In Makefile.am I added the lines: >> >> if NOCASECMP >> libproject_la_sources += strcasecmp.c strncasecmp.c > >You need an endif here, which may also be part of the problem with the >errors you're seeing. > >Taking yet another step back, do you have a target system in mind that >doesn't have strcasecmp? It's required by POSIX and is usually in the set >of things that aren't worth bothering checking for unless you're porting >to Windows (which particularly for shared libraries involves quite a bit >of work that Automake can't entirely help with).
strcasecmp is a rather simple thing... #ifdef _WIN32 # define strcasecmp stricmp #endif