Ok, I'll try to figure out the NLS support. (Post edit, read the end if you don't care about how I got there, it's resolved).
I never really got into building configure scripts, but this is what I'm seeing... When I run configure, I see: checking for gettext in -lc... no checking for gettext in -lintl... no and in configure.ac, I see: AC_ARG_ENABLE([nls], [ --disable-nls compile without NLS support]) if test "x$enable_nls" != "xno"; then AC_CHECK_LIB([c], [gettext], [ ], [ AC_CHECK_LIB([intl], [gettext], [ LIBS="-lintl" AC_SUBST([LIBS])], [ if test "x$enable_nls" != "xcheck"; then AC_MSG_FAILURE([--enable-nls was specified, but the configure check failed]) else enable_nls=no fi ]) ]) if test "x$enable_nls" != "xno"; then AC_DEFINE([ENABLE_NLS], 1, [Define to 1 if NLS support is enabled]) fi fi It looks to me like... if c.gettext does not exist, check if intl.gettext exists. If that exists, add intl to the lib list, otherwise throw the error I am getting. I would have thought it would detect it in intl, since that is installed. But looking in the cygwin installer, I noticed gettext-0.18.1.1-3 lib. I installed that and the problem is now resolved, only the standard config options for Cygwin are required, thanks for pointing this out. So this would be another dependency in addition to slang (and please let me know if I am doing this wrong, I have a C background from almost 2 decades ago and I'm pretty good with linux but I'm way rusty and out of date). ;-) I also included the patch in case anyone wants to review it and tell me if I am doing something bad. Thanks! On Wed, Feb 12, 2014 at 5:58 PM, Andrey Repin <anrdae...@yandex.ru> wrote: > Greetings, Michael Verrilli! > >> I have been wanting to write some python using the newt (snack) >> module, so I managed to get it to compile pretty cleanly with some >> minor patching. Is it appropriate for me to submit patches here for >> whoever else might have a need? Or should I try to contact the >> maintainer? > > Depends on the nature of the patches, I say. > If the change is beneficial for a wide audience, it is quite apparent, that > the changes should go upstream. > >> This is the tarball I started with: >> https://fedorahosted.org/releases/n/e/newt/newt-0.52.16.tar.gz > >> I have a patch for the snackmodule.c to allow runtime initializing (4 >> lines of code). Then I needed a bootstrap module (I'm not sure why I >> needed it if it wasn't needed in linux, perhaps I just don't know how >> that works in other environments). Finally a patch to the Makefile.in >> to make it work with Cygwin and install the bootstrap python module. > >> The only other thing to know is when running configure with all the >> standard Cygwin parameters, I needed to --disable-nls. > > Mmm... how much implication this thing cause in reality? > Disabling NLS support doesn't sound too right for me. > >> Oh, and it has a dependency on slang. > >> If patches are appropriate here, let me know and I'll post what I have. > > > -- > WBR, > Andrey Repin (anrdae...@yandex.ru) 13.02.2014, <02:56> > > Sorry for my terrible english... >
patch.newt-cygwin
Description: Binary data
-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple