bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

localename: fix configure output


From: Bruno Haible
Subject: localename: fix configure output
Date: Sat, 15 Dec 2018 23:42:22 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-138-generic; KDE/5.18.0; x86_64; ; )

On NetBSD 8 and other platforms, while testing a grep snapshot, I see this
error message:
  test: yes: unexpected operator

This patch fixes it.


2018-12-15  Bruno Haible  <address@hidden>

        localename: Fix use of uninitialized shell variable.
        * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
        gt_cv_locale_solaris114 always before use. Remove assignment without
        effect.

diff --git a/m4/intl-thread-locale.m4 b/m4/intl-thread-locale.m4
index 6f5ea24..d7ad0ac 100644
--- a/m4/intl-thread-locale.m4
+++ b/m4/intl-thread-locale.m4
@@ -1,4 +1,4 @@
-# intl-thread-locale.m4 serial 1
+# intl-thread-locale.m4 serial 2
 dnl Copyright (C) 2015-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -48,9 +48,10 @@ AC_DEFUN([gt_INTL_THREAD_LOCALE_NAME],
          *) gt_cv_locale_solaris114=no ;;
        esac
       ])
+  else
+    gt_cv_locale_solaris114=no
   fi
   if test $gt_cv_locale_solaris114 = yes; then
-    gt_nameless_locales=yes
     AC_DEFINE([HAVE_SOLARIS114_LOCALES], [1],
       [Define if the locale_t type is as on Solaris 11.4.])
   fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]