AC_PROG_CC
AC_PROG_INSTALL
+AC_CHECK_FUNCS([strncasecmp])
+
# Checks for pkg-config packages
PKG_CHECK_MODULES(DEP, x11)
AC_SUBST(DEP_CFLAGS)
*/
/* $XFree86: xc/programs/xmodmap/handle.c,v 3.6 2001/07/25 15:05:27 dawes Exp $ */
+#include "config.h"
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <stdio.h>
add_to_work_queue (uop);
}
+#ifndef HAVE_STRNCASECMP
static int
-strncmp_nocase(const char *a, const char *b, int n)
+strncasecmp(const char *a, const char *b, int n)
{
int i;
int a1, b1;
}
return 0;
}
-
+#endif
/*
* do_pointer = get list of numbers of the form
line += n, len -= n;
i = 0;
- if (len < 7 || strncmp_nocase (line, "default", 7) != 0) {
+ if (len < 7 || strncasecmp (line, "default", 7) != 0) {
while (len > 0) {
n = skip_space (line, len);
line += n, len -= n;