* m4/libunistring-optional.m4: New. * modules/libunistring-optional: New. --- m4/libunistring-optional.m4 | 22 ++++++++++++++++++++++ modules/libunistring-optional | 26 ++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 0 deletions(-) create mode 100644 m4/libunistring-optional.m4 create mode 100644 modules/libunistring-optional
diff --git a/m4/libunistring-optional.m4 b/m4/libunistring-optional.m4 new file mode 100644 index 0000000..f3bf43f --- /dev/null +++ b/m4/libunistring-optional.m4 @@ -0,0 +1,22 @@ +# libunistring.m4 serial 1 +dnl Copyright (C) 2010 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. + +dnl From Paolo Bonzini. + +AC_DEFUN([gl_CONFIG_LINKS], +[ + AC_CONFIG_LINKS(gl_GNULIB_SOURCE_BASE[/$1.h]:gl_GNULIB_SOURCE_BASE[/$1.in.h]) +]) + +AC_DEFUN([gl_LIBUNISTRING_LIBOBJ], +[if test "x$ac_cv_libunistring" != xyes; then + AC_LIBOBJ([$1]) +fi]) + +AC_DEFUN([gl_LIBUNISTRING_HEADER], +[if test "x$ac_cv_libunistring" != xyes; then + gl_CONFIG_LINKS([$1]) +fi]) diff --git a/modules/libunistring-optional b/modules/libunistring-optional new file mode 100644 index 0000000..a4be987 --- /dev/null +++ b/modules/libunistring-optional @@ -0,0 +1,26 @@ +Description: +Try to use system libunistring for Unicode string functions. + +Files: +m4/libunistring.m4 + +Depends-on: +havelib +iconv + +configure.ac: +gl_LIBUNISTRING([no]) + +Makefile.am: + +Include: + +Link: +$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise + +License: +LGPL + +Maintainer: +Paolo Bonzini, Bruno Haible + -- 1.6.6.1
