This macro tries to find strcasecmp() in string.h.
Use this macro in conjunction with AX_STRINGS_STRCASECMP in your configure.in like so:
AX_STRING_STRCASECMP if test x"$ac_cv_string_strcasecmp" = "xno" ; then AX_STRINGS_STRCASECMP fi
This will cause either HAVE_STRING_STRCASECMP or HAVE_STRINGS_STRCASECMP to be defined in config.h, which will tell your code what header to include to get strcasecmp()’s prototype.
Download the latest version of ax_string_strcasecmp.m4 or browse the macro’s revision history.
Copyright © 2008 Warren Young email@example.com
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.