view m4/strcasestr.m4 @ 7982:6b61aba76343

Enforce ordering constraints between gl_HEADER_STRING_H_DEFAULTS and the statements that assign non-default values.
author Bruno Haible <bruno@clisp.org>
date Sat, 27 Jan 2007 14:43:17 +0000
parents 89b6dfd07076
children cc3f4a2db5b0
line wrap: on
line source

# strcasestr.m4 serial 4
dnl Copyright (C) 2005, 2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

AC_DEFUN([gl_FUNC_STRCASESTR],
[
  AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
  dnl No known system has a strcasestr() function that works correctly in
  dnl multibyte locales. Therefore we use our version always.
  AC_LIBOBJ(strcasestr)
  REPLACE_STRCASESTR=1
  gl_PREREQ_STRCASESTR
])

# Prerequisites of lib/strcasestr.c.
AC_DEFUN([gl_PREREQ_STRCASESTR], [
  AC_REQUIRE([gl_FUNC_MBRTOWC])
  :
])