1 # libunistring-optional.m4 serial 1
2 dnl Copyright (C) 2010-2020 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 dnl gl_LIBUNISTRING_OPTIONAL
8 dnl Searches for an installed libunistring or uses the included source code
10 dnl If found, it sets and AC_SUBSTs HAVE_LIBUNISTRING=yes and the LIBUNISTRING
11 dnl and LTLIBUNISTRING variables and augments the CPPFLAGS variable, and
12 dnl #defines HAVE_LIBUNISTRING to 1. Otherwise, it sets and AC_SUBSTs
13 dnl HAVE_LIBUNISTRING=no and LIBUNISTRING and LTLIBUNISTRING to empty.
15 AC_DEFUN([gl_LIBUNISTRING_OPTIONAL],
17 dnl gl_LIBUNISTRING does a couple of extra things if this macro is used.
18 AC_REQUIRE([gl_LIBUNISTRING])
20 AC_MSG_CHECKING([whether to use the included libunistring])
21 AC_MSG_RESULT([$gl_libunistring_use_included])