Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Removing/solving gettext dependencies in libuio
@ 2013-07-30 12:28 Thomas De Schampheleire
  2013-08-12 19:36 ` Arnout Vandecappelle
  2013-08-19 22:25 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas De Schampheleire @ 2013-07-30 12:28 UTC (permalink / raw)
  To: buildroot

Hi,

I'm adding the library libuio to buildroot
(https://github.com/Linutronix/libuio/).
This library expects gettext to be present, but I want to avoid adding
this dependency to buildroot because it really isn't needed.

What is the best way to solve this?
The first alternative is to patch the package and remove the
problematic code. These changes are in configure.ac, Makefile.am, the
patch is fairly short. This change is not acceptable upstream (I
guess).

A second alternative is to change libuio to recognize --disable-nls.
However, I'm not sure how to do that.
The configure.ac file contains:

  AM_GNU_GETTEXT([external])
  AM_GNU_GETTEXT_VERSION([0.17])

This macro is provided by gettext itself, so without gettext this doesn't work.
I tried something like:

AC_ARG_ENABLE([nls], AC_HELP_STRING([--disable-nls], [Do not use
Native Language Support]),
              USE_NLS=$enableval, USE_NLS=yes)

AC_SUBST(USE_NLS)

AS_IF([test "x$enable_nls" == xyes],
  AM_GNU_GETTEXT([external])
  AM_GNU_GETTEXT_VERSION([0.17])
)

but I still get complaints about AM_GNU_GETTEXT not recognized.
I have tried finding good examples of implementing --disable-nls
without requiring gettext, but I can't find any.


Any input welcome,

Thomas

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-20  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-30 12:28 [Buildroot] Removing/solving gettext dependencies in libuio Thomas De Schampheleire
2013-08-12 19:36 ` Arnout Vandecappelle
2013-08-19 14:41   ` Thomas De Schampheleire
2013-08-19 22:25 ` Thomas Petazzoni
2013-08-20  5:00   ` Thomas De Schampheleire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox