Add support for LEON Sparc architecture variants.
 
-       Updated/fixed packages: bash, bind, busybox, gpsd, libglib2,
-       libcurl, libmad, lrzsz, midori, module-init-tools, mtd-utils,
-       openssh, openssl, pciutils, php, qt, sqlite, sysstat, webkit,
-       zlib
+       Updated/fixed packages: bash, bind, busybox, dialog, gpsd,
+       libglib2, libcurl, libmad, lrzsz, midori, module-init-tools,
+       mtd-utils, openssh, openssl, pciutils, php, qt, sqlite,
+       sysstat, webkit, zlib
 
        Issues resolved (http://bugs.uclibc.org):
 
 
 config BR2_PACKAGE_DIALOG
-    bool "dialog"
-    select BR2_PACKAGE_NCURSES
-    help
-       dialog - display dialog boxes from shell scripts
-
-       This application provides a method of displaying several different
-       types of dialog boxes from shell scripts.  This allows a developer
-       of a script to interact with the user in a much friendlier manner.
+       bool "dialog"
+       select BR2_PACKAGE_NCURSES
+       select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
+       help
+         dialog - display dialog boxes from shell scripts
 
+         This application provides a method of displaying several different
+         types of dialog boxes from shell scripts.  This allows a developer
+         of a script to interact with the user in a much friendlier manner.
 
 DIALOG_SOURCE:=dialog-$(DIALOG_VERSION).tgz
 DIALOG_SITE:=ftp://invisible-island.net/dialog
 DIALOG_CONF_OPT = --with-ncurses
+DIALOG_CONF_ENV = ac_cv_path_NCURSES_CONFIG=true LIBS=-lncurses
 DIALOG_DEPENDENCIES = ncurses
 
+ifneq ($(BR2_ENABLE_LOCALE),y)
+DIALOG_DEPENDENCIES+=libiconv
+endif
+
 define DIALOG_INSTALL_TARGET_CMDS
        install -c $(@D)/dialog $(TARGET_DIR)/usr/bin/dialog
 endef