mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-06-15 23:35:50 +00:00
bd70cf691d
* tests/test-getopt-posix.c: New file. * tests/test-getopt-gnu.c: New file, with code from test-getopt.c. * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of GNULIB_TEST_GETOPT_GNU. * modules/getopt-posix-tests (Files): Add test-getopt-posix.c, test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h. (Makefile.am): Test test-getopt-posix instead of test-getopt. * modules/getopt-gnu-tests: New file. * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
32 lines
544 B
Plaintext
32 lines
544 B
Plaintext
Description:
|
|
GNU-like getopt() function, getopt_long() function, getopt_long_only() function:
|
|
process command line arguments.
|
|
|
|
Files:
|
|
|
|
Depends-on:
|
|
nocrash
|
|
getopt-posix
|
|
|
|
configure.ac:
|
|
gl_FUNC_GETOPT_GNU
|
|
if test $REPLACE_GETOPT = 1; then
|
|
AC_LIBOBJ([getopt])
|
|
AC_LIBOBJ([getopt1])
|
|
gl_PREREQ_GETOPT
|
|
dnl Arrange for unistd.h to include getopt.h.
|
|
GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT=1
|
|
fi
|
|
AC_SUBST([GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT])
|
|
|
|
Makefile.am:
|
|
|
|
Include:
|
|
<getopt.h>
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
all, glibc
|