#if defined(USE_MYPAGE) && !defined(USE_LIBPNG)
fprintf(stderr, "USE_MYPAGE is defined, but USE_LIBPNG is not defined.\n");
st = 1;
+#endif
+#if defined(USE_MYPAGE) && !defined(USE_AVATAR)
+ fprintf(stderr, "USE_MYPAGE is defined, but USE_AVATAR is not defined.\n");
+ st = 1;
+#endif
+ return st;
+}
+
+int check_avatar(void) {
+ int st = 0;
+#if defined(USE_AVATAR) && !defined(USE_LIBPNG)
+ fprintf(stderr, "USE_AVATAR is defined, but USE_LIBPNG is not defined.\n");
+ st = 1;
#endif
return st;
}
if(st != 0) goto fail;
st = check_mypage();
if(st != 0) goto fail;
+ st = check_avatar();
+ if(st != 0) goto fail;
printf("Config validation successful.\n");
return 0;
fail:
/* Use libpng or not. */
#define USE_LIBPNG
+/* Use avatar or not. */
+/* Required USE_LIBPNG to be defined. */
+#define USE_AVATAR
+
/* My Page for the modern theme.*/
-/* Requires USE_GRAPHICSMAGICK and USE_LIBPNG to be defined. */
+/* Requires USE_GRAPHICSMAGICK, USE_LIBPNG, USE_AVATAR to be defined. */
#define USE_MYPAGE
/* PATH, uses PATH from environment automatically if not defined. */