Macros by Category Revision History
Search:

etr_string_strcasecmp

SYNOPSIS

ETR_STRING_STRCASECMP

DESCRIPTION

This macro tries to find strcasecmp() in string.h.

Use this macro in conjunction with ETR_STRINGS_STRCASECMP in your configure.in like so:

    ETR_STRING_STRCASECMP
    if test x"$ac_cv_string_strcasecmp" = "xno" ; then
        ETR_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.

SOURCE CODE

http://autoconf-archive.cryp.to/etr_string_strcasecmp.m4

LICENSE

Copyright © 2008 Warren Young <warren@etr-usa.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.