]> code.citadel.org Git - citadel.git/commitdiff
CTDLDIR is now properly compiled into the source code based on what was configured...
authorArt Cancro <ajc@citadel.org>
Sat, 11 Jun 2022 23:40:07 +0000 (19:40 -0400)
committerArt Cancro <ajc@citadel.org>
Sat, 11 Jun 2022 23:40:07 +0000 (19:40 -0400)
citadel/configure
citadel/server/sysdep.h

index a6c2def3e7df3a4ce72e4301827e35814828a82e..bfcdff4dc764d2a94a609112d8bb86109b9f7471 100755 (executable)
@@ -117,6 +117,7 @@ cc $tempcc -o $tempfile && {
 # FIXME do a real build id here
 ########################################################################
 CFLAGS=${CFLAGS}' -DBUILD_ID=\"unknown\"'
+CFLAGS=${CFLAGS}' -DCTDLDIR=\"'${CTDLDIR}'\"'
 
 
 ########################################################################
index 5659b46e122c2c4156e518c27680c94710b9fd21..7d6af84b39e7da9eea0b5c34f68e69e6ca868980 100644 (file)
@@ -1,7 +1,8 @@
 
 
-/* define this to the Citadel home directory */
-#define CTDLDIR "/root/citadel/citadel"
+#ifndef CTDLDIR
+#error CTDLDIR is not defined , did we not run configure ?
+#endif
 
 /* define, if the user suplied a data-directory to use. */
 /* #undef DATA_DIR */