LIB_SUBDIRS=
PROG_SUBDIRS=@PROG_SUBDIRS@
SUBDIRS=$(LIB_SUBDIRS) $(PROG_SUBDIRS)
-
+LOCALEDIR=@LOCALEDIR@
# End of configuration section
all: all-progs-recursive webserver setup
$(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver
.c.o:
- $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"$(prefix)\" -DLOCALEDIR=\"$(prefix)/locale\" $<
+ $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"$(prefix)\" -DLOCALEDIR=\"$(LOCALEDIR)\" $<
.cpp.o:
- $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"$(prefix)\" -DLOCALEDIR=\"$(prefix)/locale\" $<
+ $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"$(prefix)\" -DLOCALEDIR=\"$(LOCALEDIR)\" $<
Makefile: $(srcdir)/Makefile.in config.status
CONFIG_FILES="Makefile" CONFIG_HEADERS= $(SHELL) ./config.status
fi
]
)
+
+
dnl Set some system-specific variables which are OK to set before compiler
dnl checks:
PTHREAD_DEFS=-D_REENTRANT
AC_SUBST(SETUP_LIBS)
+dnl where to make webcit search its mo's?
+if test "$prefix" = "NONE"; then
+ LOCALEDIR="$ac_default_prefix/locale/"
+else
+ LOCALEDIR="$prefix/locale/"
+fi
+AC_ARG_WITH(localedir,
+ [ --with-locale directory where to find our mo's],
+ [ if test "x$withval" != "xno" ; then
+ LOCALEDIR="$withval/"
+ fi
+ ]
+)
+AC_SUBST(LOCALEDIR)
+
AC_OUTPUT(Makefile po/Makefile )
echo ------------------------------------------------------------------------
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/etc/citadel/www/ \
+ --with-localedir=/usr/share/locale \
--with-sysconfdir=/etc/citadel \
--with-spooldir=/var/spool/citadel \
--with-datadir=/etc/citadel \