]> Git repositories of Nishi - repoview.git/commitdiff
add checks
authorNishi <nishi@nishi.boats>
Thu, 22 Aug 2024 03:08:03 +0000 (03:08 +0000)
committerNishi <nishi@nishi.boats>
Thu, 22 Aug 2024 03:08:03 +0000 (03:08 +0000)
git-svn-id: file:///raid/svn-personal/repoview/trunk@38 7e8b2a19-8934-dd40-8cb3-db22cdd5a80f

check.c
config.h.tmpl

diff --git a/check.c b/check.c
index 39eb2b700ead27abf79d47ee1b50fe2c8823ca71..cec7445399a105ce0fb2a1e9e8c64a7b4c8575e9 100644 (file)
--- a/check.c
+++ b/check.c
@@ -112,6 +112,14 @@ int check_avatar(void) {
 #if defined(USE_AVATAR) && !defined(USE_LIBPNG)
        fprintf(stderr, "USE_AVATAR is defined, but USE_LIBPNG is not defined.\n");
        st = 1;
+#endif
+#if defined(USE_AVATAR) && !defined(WWW_AVATAR_ROOT)
+       fprintf(stderr, "USE_AVATAR is defined, but WWW_AVATAR_ROOT is not defined.\n");
+       st = 1;
+#endif
+#if defined(USE_AVATAR) && !defined(AVATAR_ROOT)
+       fprintf(stderr, "USE_AVATAR is defined, but AVATAR_ROOT is not defined.\n");
+       st = 1;
 #endif
        return st;
 }
index dab0cd593bb9169fc572428fd6a64fd044760d84..d3f7d6e0da5835e01884e0a7709d80bd29262eeb 100644 (file)
 /* Apache authz file. */
 #define APACHE_AUTHZ           "/www/authz"
 
+/* Avatar filesystem root. */
+#define AVATAR_ROOT            "/www/avatar"
+
 /* Subversion root on the HTTP. */
 #define WWW_SVN_ROOT           "/svn/"
 
+/* Avatar root on the HTTP. */
+#define WWW_AVATAR_ROOT                "/avatar/"
+
 #endif
 
 /*