X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Flibunistring.m4;h=19c6860a5739a0a3dee0f9e9326488d3552c0193;hb=4bf2b800b24ba0b0cfd069b8ec7ac173714c734d;hp=2dfa268b9fcecbac4a6dfee817958ce99d9eef85;hpb=08d1a3f5fa8b36aa0f02ede9c0027ea03340a583;p=gnulib.git diff --git a/m4/libunistring.m4 b/m4/libunistring.m4 index 2dfa268b9..19c6860a5 100644 --- a/m4/libunistring.m4 +++ b/m4/libunistring.m4 @@ -1,5 +1,5 @@ -# libunistring.m4 serial 8 -dnl Copyright (C) 2009-2010 Free Software Foundation, Inc. +# libunistring.m4 serial 11 +dnl Copyright (C) 2009-2011 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. @@ -25,11 +25,14 @@ m4_define([gl_libunistring_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], - [[AC_DEFUN( - [$1], [$2])]])) + [m4_ifdef([gl_00GNULIB], + [[AC_DEFUN_ONCE( + [$1], [$2])]], + [[AC_DEFUN( + [$1], [$2])]])])) gl_libunistring_AC_DEFUN([gl_LIBUNISTRING], [ - AC_BEFORE([$0], [gl_LIBUNISTRING_LIBSOURCE]) + AC_BEFORE([$0], [gl_LIBUNISTRING_MODULE]) AC_BEFORE([$0], [gl_LIBUNISTRING_LIBHEADER]) AC_BEFORE([$0], [gl_LIBUNISTRING_LIB_PREPARE]) @@ -103,9 +106,10 @@ AC_DEFUN([gl_LIBUNISTRING_CORE], dnl Use other tests to distinguish them. if test $gl_libunistring_hexversion = 9; then dnl Version 0.9.2 introduced the header . - AC_TRY_COMPILE([#include ], , + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include ]], [[]])], [gl_cv_libunistring_version092=true], - [gl_cv_libunistring_version092=false]); + [gl_cv_libunistring_version092=false]) if $gl_cv_libunistring_version092; then dnl Version 0.9.3 changed a comment in . gl_ABSOLUTE_HEADER_ONE([unistr.h]) @@ -119,8 +123,11 @@ AC_DEFUN([gl_LIBUNISTRING_CORE], fi else dnl Version 0.9.1 introduced the type casing_suffix_context_t. - AC_TRY_COMPILE([#include - casing_suffix_context_t ct;], , + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + casing_suffix_context_t ct;]], + [[]])], [gl_cv_libunistring_version091=true], [gl_cv_libunistring_version091=false]) if $gl_cv_libunistring_version091; then