<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>On Mon, 2022-04-04 at 16:18 +0300, Andrew Randrianasulu wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><br><br>On Monday, April 4, 2022, <<a href="mailto:mnieuw@zap.a2000.nl">mnieuw@zap.a2000.nl</a>> wrote:<br><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">Hi Andrew,<br>
<br>
In <a href="http://configure.ac" target="_blank">configure.ac</a> is a test for Android with "uname -o" .<br>
<br>
The -o option is not available in macOS. On Linux and macOS, simply<br>
"uname" returns the OS name (Linux or Darwin). Does this work for<br>
Termux too (returning Android or at least something where you can act<br>
on)?<br></blockquote><div><br></div><div>yeah, 'uname -o' also does not work on netbsd. </div><div><br></div><div>on termux I have</div><div><br></div><div>$ uname -o</div><div>Android</div><div>$ uname</div><div>Linux</div><div>$</div></blockquote><div><br></div><div>Ok, then a test first with "uname" seems best, if it does not return "Darwin" then "uname -o" . I can test freeBSD too.</div><div><br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>anyway, on some linux systems (void linux) default shell also dislikes += constructs, and I hand-edit configure as created by ./autogen.sh there.. </div><div><br></div><div>thing is, bash can be for example in/usr/pkg/bin, (netbsd) or in some other location. not sure how to convince autotools to search for bash and put this (non-default) interpreter at very first line in our configure...</div></blockquote><div><br></div><div>I think many of the thirdparty stuff only works properly with bash too.</div><div>So we should detect which system we're running on and make sure bash is the shell.</div><div>Or, if there is no /bin/bash, stop the process. If /bin/bash is missing, then probably more too.</div><div><br></div><div>MatN</div><div>
</div></body></html>