configure checks for package handler tools on Windows

Baesken, Matthias matthias.baesken at sap.com
Thu Oct 6 11:34:32 UTC 2022


Hello , currently  we check in

make/autoconf/help.m4

for a couple of well known package handler tools :

AC_DEFUN_ONCE([HELP_SETUP_DEPENDENCY_HELP],
[
  UTIL_LOOKUP_PROGS(PKGHANDLER, zypper apt-get yum brew port pkgutil pkgadd pacman apk)
])

This might be a great thing on UNIX/Mac , but on Windows  we just get

checking for zypper... [not found]
checking for apt-get... [not found]
checking for yum... [not found]
checking for brew... [not found]
checking for port... [not found]
checking for pkgutil... [not found]
checking for pkgadd... [not found]
checking for pacman... [not found]
checking for apk... [not found]

and the whole check looks a bit questionable.  So should we avoid those checks on Windows ? Or do they play some role (I have to admit that I just use cygwin maybe those tools
  are more important on non-Cygwin Windows environments) ?

For other (Windows only) checks  started from

  make/autoconf/configure.ac

we seem to check the OS before doing something (e.g. BASIC_WINDOWS_FINALIZE_FIXPATH).

Best regards, Matthias



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20221006/cb7b78d9/attachment.htm>


More information about the build-dev mailing list