printf("%s\n", VAL_CONFIGURE);
 #else
        if (!all)
-               printf("not recorded\n");
+       {
+               fprintf(stderr, _("not recorded\n"));
+               exit(1);
+       }
 #endif
 }
 
        printf("%s\n", VAL_CC);
 #else
        if (!all)
-               printf("not recorded\n");
+       {
+               fprintf(stderr, _("not recorded\n"));
+               exit(1);
+       }
 #endif
 }
 
        printf("%s\n", VAL_CPPFLAGS);
 #else
        if (!all)
-               printf("not recorded\n");
+       {
+               fprintf(stderr, _("not recorded\n"));
+               exit(1);
+       }
 #endif
 }
 
        printf("%s\n", VAL_CFLAGS);
 #else
        if (!all)
-               printf("not recorded\n");
+       {
+               fprintf(stderr, _("not recorded\n"));
+               exit(1);
+       }
 #endif
 }
 
        printf("%s\n", VAL_CFLAGS_SL);
 #else
        if (!all)
-               printf("not recorded\n");
+       {
+               fprintf(stderr, _("not recorded\n"));
+               exit(1);
+       }
 #endif
 }
 
        printf("%s\n", VAL_LDFLAGS);
 #else
        if (!all)
-               printf("not recorded\n");
+       {
+               fprintf(stderr, _("not recorded\n"));
+               exit(1);
+       }
 #endif
 }
 
        printf("%s\n", VAL_LDFLAGS_SL);
 #else
        if (!all)
-               printf("not recorded\n");
+       {
+               fprintf(stderr, _("not recorded\n"));
+               exit(1);
+       }
 #endif
 }
 
        printf("%s\n", VAL_LIBS);
 #else
        if (!all)
-               printf("not recorded\n");
+       {
+               fprintf(stderr, _("not recorded\n"));
+               exit(1);
+       }
 #endif
 }
 
        printf(_("  --libs                show LIBS value used when PostgreSQL was built\n"));
        printf(_("  --version             show the PostgreSQL version\n"));
        printf(_("  --help                show this help, then exit\n"));
-       printf(_("With no arguments, all known items are shown.\n\n"));
+       printf(_("\nWith no arguments, all known items are shown.\n\n"));
        printf(_("Report bugs to <pgsql-bugs@postgresql.org>.\n"));
 }
 
 static void
 advice(void)
 {
-       fprintf(stderr, _("\nTry \"%s --help\" for more information\n"), progname);
+       fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
 }
 
 static void