Use musl getopt implementation.

LICENSE:
    Mention files derived from musl library.

runtime/process_getopt:
    Process files from ../getopt/*.[ch] to produce
    mercury_getopt.h, mercury_getopt.c, mercury_getopt_long.c.

runtime/mercury_getopt.h:
runtime/mercury_getopt.c:
runtime/mercury_getopt_long.c:
    Add files generated by process_getopt.

runtime/Mmakefile:
    Update list of source files.

util/Mmakefile:
    Use musl getopt if the system C library does not have getopt().

tests/debugger/browser_test.exp:
tests/debugger/browser_test.exp2:
tests/debugger/browser_test.exp3:
tests/hard_coded/runtime_opt.exp:
    Update expected error messages to match new getopt() output.

changed exp output
This commit is contained in:
Peter Wang
2019-06-10 13:30:49 +10:00
parent 3162997f14
commit 544f3bf095
11 changed files with 377 additions and 53 deletions

View File

@@ -27,6 +27,12 @@ entirety.
--------
The files in the `getopt' directory, as well as runtime/mercury_getopt.c,
runtime/mercury_getopt_long.c and runtime/mercury_getopt.h, are derived
from the musl library. See the files for copyright information.
--------
A few files (config.guess, config.sub) are derived from code that is
copyright by the Free Software Foundation, Inc, and are distributed
under the GNU General Public License version 2.