meson: Implement getopt logic from autoconf
authorAndres Freund <andres@anarazel.de>
Wed, 28 Sep 2022 21:21:43 +0000 (14:21 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 29 Sep 2022 01:48:19 +0000 (18:48 -0700)
commita1b3bca1c8e32c31ba1a8d1125b2eb97f750a7f0
tree9d01574330bc3839f69eaa2a769b9a9a30e8e7f2
parentcaeeabd11066a360c8a9986581da320dd5aa09b9
meson: Implement getopt logic from autoconf

Not replacing getopt/getopt_long definitely causes issues on mingw. It's not
as clear whether the solaris & openbsd aspect is still needed, but if not, we
should remove it from both autoconf and meson.

Discussion: http://postgr.es/m/20220928022724.erzuk5v4ai4b53do@awork3.anarazel.de
meson.build