maint: update copyright
[gnulib.git] / m4 / libunistring-optional.m4
1 # libunistring-optional.m4 serial 1
2 dnl Copyright (C) 2010-2014 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.
6
7 dnl gl_LIBUNISTRING_OPTIONAL
8 dnl Searches for an installed libunistring or uses the included source code
9 dnl parts.
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.
14
15 AC_DEFUN([gl_LIBUNISTRING_OPTIONAL],
16 [
17   dnl gl_LIBUNISTRING does a couple of extra things if this macro is used.
18   AC_REQUIRE([gl_LIBUNISTRING])
19
20   AC_MSG_CHECKING([whether to use the included libunistring])
21   AC_MSG_RESULT([$gl_libunistring_use_included])
22 ])