Print dynamic Datadir/Mandir on --show-config
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 14 Mar 2016 12:59:02 +0000 (13:59 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 14 Mar 2016 12:59:02 +0000 (13:59 +0100)
Instead of printing the directories from the congigure process,
we print those actually in force, so that the info is valid in the
OSX App (which changes it) too.

gtk/xboard.c

index 89d8058..783b440 100644 (file)
@@ -913,8 +913,8 @@ main (int argc, char **argv)
     if(argc > 1 && !strcmp(argv[1], "--show-config")) { // [HGM] install: called to print config info
        typedef struct {char *name, *value; } Config;
        static Config configList[] = {
-         { "Datadir", DATADIR },
-         { "Mandir", MANDIR },
+         { "Datadir", dataDir },
+         { "Mandir", manDir },
          { "Sysconfdir", SYSCONFDIR },
          { NULL }
        };