]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
config.site: add missing NLS bits
authorTim Rice <tim@multitalents.net>
Wed, 21 Jan 2009 01:10:30 +0000 (01:10 +0000)
committerTim Rice <tim@multitalents.net>
Wed, 21 Jan 2009 01:10:30 +0000 (01:10 +0000)
configure: allow user to disable NLS with NLS=no in config.local or config.site

config.site
configure

index b41939bad51f3a487afdecd2ac9eb8c9f57337f9..5e52da698237fbe5436f52849668d16e02169cdc 100644 (file)
@@ -51,6 +51,7 @@
 #REGEX="yes"                   # use distributed regular expression package
 #UTMP="utmpx"                  # type of utmp+wtmp handling (auto|utmp|utmpx)
 #DBLIB="no"                    # use distributed libdb distribution
+#NLS="auto"                    # enable NLS support (auto|yes|no)
 
 #
 # Directory parameters.
 #LIBDB=" "                             # linkage convention for libdb package
 #DBLIBINC="/usr/include"               # place to find db.h
 
+# NLS (gettext) library support
+LIBINTL=""                             # configure will try LIBINTL="-lintl"
+
 #
 # Parameters to control various workarounds for system bugs.
 #
index 38b463c8c245c6a6c6c62d4860d2b0a944e69049..6872de4161bc7bd09b3d62d3cbcb318c91e51c18 100755 (executable)
--- a/configure
+++ b/configure
@@ -382,8 +382,8 @@ do
        eval "${ac_with}='$ac_optarg'"
        WITHARGS=yes
        ;;
-    -enable-nls|--enable-nls)  CHECK_NLS=yes;;
-    -disable-nls|--disable-nls)        CHECK_NLS=no;;
+    -enable-nls|--enable-nls)  NLS=yes;;
+    -disable-nls|--disable-nls)        NLS=no;;
     -quiet|--quiet)            QUIET=yes;;
     -nointeractive|--nointeractive)    INTERACTIVE=no;;
     -verbose|--verbose)                QUIET=no;;
@@ -1663,7 +1663,7 @@ else
        Note "Disabling JBIG support"
 fi
 ENABLE_NLS="/* #define ENABLE_NLS 1 */"
-if [ "$CHECK_NLS" != "no" ]; then
+if [ "$NLS" != "no" ]; then
        Note "Checking for NLS (gettext) library support"
        CheckForIncludeFile locale.h && 
            CheckForIncludeFile libintl.h && {