build: add switch "--with-codepagedir=DIR" to configure.
authorMichael Adam <obnox@samba.org>
Tue, 22 Sep 2009 22:48:44 +0000 (00:48 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 22 Sep 2009 22:53:47 +0000 (00:53 +0200)
This is to address bug #6444.

Michael

source3/m4/check_path.m4

index 0a61733870bcec9aba3fc65cd23ec2315dfecd93..5b920493002bff7be47f79d4ce577f00367c8520 100644 (file)
@@ -278,6 +278,22 @@ AC_ARG_WITH(localedir,
   ;;
   esac])
 
+#################################################
+# set codepage directory location
+AC_ARG_WITH(codepagedir,
+[AS_HELP_STRING([--with-codepagedir=DIR], [Where to put codepages ($ac_default_prefix/lib/samba)])],
+[ case "$withval" in
+  yes|no)
+  #
+  # Just in case anybody calls it without argument
+  #
+    AC_MSG_WARN([--with-codepagedir called without argument - will use default])
+  ;;
+  * )
+    codepagedir="$withval"
+    ;;
+  esac])
+
 
 AC_SUBST(configdir)
 AC_SUBST(lockdir)