]> code.citadel.org Git - citadel.git/blobdiff - webcit/configure.ac
* split make install targets in finer granulated targets
[citadel.git] / webcit / configure.ac
index b5eed7a90620d5cfe7eb58363fde2e92e2964c03..b07cd2660dc647ee3fac5dac4387ab2524e63660 100644 (file)
@@ -343,6 +343,48 @@ fi
 
 AC_SUBST(SETUP_LIBS)
 
+
+if test "$prefix" = NONE; then
+       LOCALEDIR=$ac_default_prefix
+       WWWDIR=$ac_default_prefix
+       EDITORDIR=$ac_default_prefix/tiny_mce
+else
+       LOCALEDIR=$prefix
+       WWWDIR=$prefix
+       EDITORDIR=$prefix/tiny_mce
+fi
+
+dnl where to put the locale files
+AC_ARG_WITH(localedir, 
+                   [  --with-localedir          directory to put the locale files to],
+                       [ if test "x$withval" != "xno" ; then
+                                                 LOCALEDIR=$withval
+                         fi
+                       ]
+)
+AC_SUBST(LOCALEDIR)
+
+dnl Checks where to put our templates
+AC_ARG_WITH(wwwdir, 
+                   [  --with-wwwdir             directory to put our templates],
+                       [ if test "x$withval" != "xno" ; then
+                                                 WWWDIR=$withval
+                         fi
+                       ]
+)
+AC_SUBST(WWWDIR)
+
+dnl Checks where to put our editor
+AC_ARG_WITH(editordir, 
+                   [  --with-editordir             directory to put our editor],
+                       [ if test "x$withval" != "xno" ; then
+                                                 EDITORDIR=$withval
+                         fi
+                       ]
+)
+AC_SUBST(EDITORDIR)
+
+
 AC_OUTPUT(Makefile po/Makefile )
 
 echo ------------------------------------------------------------------------