all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.g0@libero.it>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: build failures in mingw64
Date: Sun, 9 Jul 2023 12:01:56 +0200 (CEST)	[thread overview]
Message-ID: <1875090786.3640353.1688896916667@mail1.libero.it> (raw)
In-Reply-To: <190474050.3639024.1688895205348@mail1.libero.it>

> Il 09/07/2023 11:33 CEST Angelo Graziosi ha scritto:
> 
>  
> > Il 09/07/2023 10:51 CEST Eli Zaretskii ha scritto:
> > 
> >  
> > > Date: Sun, 9 Jul 2023 10:05:13 +0200 (CEST)
> > > From: Angelo Graziosi
> > > 
> > > I just noticed this in configure:
> > > 
> > >    checking whether MB_CUR_MAX is correct... ./configure: line 33322: test: !=: unary operator expected
> > 
> > Please show the relevant part of the configure script.  Since the
> > configure is generated on each user's system as part of the build, it
> > is hard to guess what you have there without seeing the actual code
> > you get.  For example, on my system, line 33322 of the configure
> > script is an empty line, and I see no "!=" anywhere around that.
> > 
> > So more data is needed to investigate this.
> 
> This should be:
> 
> [...]
> 
>   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MB_CUR_MAX is correct" >&5
> printf %s "checking whether MB_CUR_MAX is correct... " >&6; }
> if test ${gl_cv_macro_MB_CUR_MAX_good+y}
> then :
>   printf %s "(cached) " >&6
> else $as_nop
> 
>                   case "$host_os" in
>                   # Guess no on Solaris.
>         solaris*) gl_cv_macro_MB_CUR_MAX_good="guessing no" ;;
>                   # Guess yes otherwise.
>         *)        gl_cv_macro_MB_CUR_MAX_good="guessing yes" ;;
>       esac
>       if test $LOCALE_FR_UTF8 != none; then   ### *** LINE 33322 *** ###
>         if test "$cross_compiling" = yes
> then :
>   :
> else $as_nop
>   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> 
> 
> [...]
> 

I played a bit from command line:

1)
$ A=1
$ if test $A != 1; then echo bar; fi
<EMPTY>

$ if test $A != none; then echo bar; fi
bar

2)
$ A=
$ if test $A != none; then echo bar; fi
bash: test: !=: atteso operatore unario

but:

$ if test "$A" != none; then echo bar; fi
bar


i.e. it prints that message if the variable is undefined and not quoted..

Here it is:

$ bash --version
GNU bash, versione 5.2.15(1)-release (x86_64-pc-msys)
[...]


See also: https://linuxconfig.org/correct-variable-parsing-and-quoting-in-bash


> > Thanks.



  reply	other threads:[~2023-07-09 10:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-09  8:05 build failures in mingw64 Angelo Graziosi
2023-07-09  8:51 ` Eli Zaretskii
2023-07-09  9:33   ` Angelo Graziosi
2023-07-09 10:01     ` Angelo Graziosi [this message]
2023-07-09 11:22       ` Eli Zaretskii
2023-07-09 11:19     ` Eli Zaretskii
2023-07-09 20:57       ` Paul Eggert
2023-07-09 22:48         ` Angelo Graziosi
2023-07-10 12:28         ` Eli Zaretskii
2023-07-10 17:00           ` Paul Eggert
2023-07-10 23:40             ` Angelo Graziosi
2023-07-09 16:17 ` Stephen Leake
  -- strict thread matches above, loose matches on Subject: below --
2023-07-08 21:50 Stephen Leake
2023-07-09  5:58 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1875090786.3640353.1688896916667@mail1.libero.it \
    --to=angelo.g0@libero.it \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.