inconsistent behavior of --with-ncurses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



One would expect, that --with-ncurses means: Use ncurses(w), and if it
is not available, force to fail. But ./configure --help tells something
different:

--with-ncurses     build with non-wide ncurses, default is wide version
                   (--without-ncurses disables all ncurses(w) support)

It implies, that --without-ncurses should force-disable non-wide ncurses.


In fact, none of that is true. The check now works in a strange way:

--without-ncurses means:

  Disable any variant of ncurses.

--with-ncurses means:

  - If ncurses is detected by pkgconfig files, --with-ncurses is a NOP.

  - If pkgconfig files are not present, it falls back to the described
    meaning: Force non-wide variant of the library.


Additionally, --with-ncurses does not disable widechar support, which
has unexpected results (see my mail [PATCH] Don't allow widechar with
plain ncurses)


What would be the better fix?

- Change description of --with-ncurses, and change behavior of library
  check. If ncursesw is not found, disable widechar support. Optionally
  add --disable-widechar to replace original meaning of --with-ncurses.

- Keep description as it is, and fix the main AS_IF and pkgconfig check
  to follow the description. --with-ncurses will disable widechar
  support. Optionally add --with-ncursesw.
--
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                         e-mail: sbrabec@xxxxxxxx
Lihovarská 1060/12                            tel: +49 911 7405384547
190 00 Praha 9                                 fax:  +420 284 084 001
Czech Republic                                    http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux