When running ./configure --help for libgpg-error-1.55, the Optional Packages section lists the --with-gnu-ld flag twice.
Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-aix-soname=aix|svr4|both shared library versioning (aka "SONAME") variant to provide on AIX, [default=aix]. **--with-gnu-ld** assume the C compiler uses GNU ld [default=no] --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-libtool-modification=apply|never|try how to handle libtool modification (default=never) **--with-gnu-ld** assume the C compiler uses GNU ld [default=no] --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir --with-readline=DIR look for the readline library in DIR
The duplication is introduced because the same AC_ARG_WITH([gnu-ld], …) definition appears in two separate m4 macros:
- m4/libtool.m4
- m4/lib-ld.m4
Each file independently adds the --with-gnu-ld help entry, resulting in two identical entries in the configured help output.