Next: , Previous: , Up: Using the library   [Contents][Index]


16.4 Autoconf macro

GNU Gnulib provides an autoconf macro that tests for the availability of libunistring. It is contained in the Gnulib module ‘libunistring’, see https://www.gnu.org/software/gnulib/MODULES.html#module=libunistring.

The macro is called gl_LIBUNISTRING. It searches for an installed libunistring. If found, it sets and AC_SUBSTs HAVE_LIBUNISTRING=yes and the LIBUNISTRING and LTLIBUNISTRING variables and augments the CPPFLAGS variable, and defines the C macro HAVE_LIBUNISTRING to 1. Otherwise, it sets and AC_SUBSTs HAVE_LIBUNISTRING=no and LIBUNISTRING and LTLIBUNISTRING to empty.

The complexities that gl_LIBUNISTRING deals with are the following: