meson: Implement getopt logic from autoconf

Andres Freund <andres@anarazel.de>

Commit: a1b3bca1c8e32c31ba1a8d1125b2eb97f750a7f0
Author: Andres Freund <andres@anarazel.de>
Date: 2022-09-29T01:48:19Z
Releases: 16.0
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

Files

PathChange+/−
meson.build modified +11 −2

Discussion