2003-05-30 Earnie Boyd <earnie@users.sf.net> * make.h: Add global declaration of *make_host. * main.c (print_usage): Remove local declaration of *make_host. (print_version): Display "This program built for ..." after Copyright notice. Index: make.h =================================================================== RCS file: /cvsroot/make/make/make.h,v retrieving revision 1.100 diff -u -3 -p -r1.100 make.h --- make.h 25 Mar 2003 02:46:42 -0000 1.100 +++ make.h 30 May 2003 22:18:25 -0000 @@ -505,7 +505,7 @@ extern int max_load_average; extern char *program; extern char *starting_directory; extern unsigned int makelevel; -extern char *version_string, *remote_description; +extern char *version_string, *remote_description, *make_host; extern unsigned int commands_started; Index: main.c =================================================================== RCS file: /cvsroot/make/make/main.c,v retrieving revision 1.181 diff -u -3 -p -r1.181 main.c --- main.c 24 Mar 2003 23:14:15 -0000 1.181 +++ main.c 30 May 2003 22:18:25 -0000 @@ -2141,7 +2141,6 @@ handle_non_switch_argument (char *arg, i static void print_usage (int bad) { - extern char *make_host; const char *const *cpp; FILE *usageto; @@ -2707,6 +2706,12 @@ print_version (void) There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n\ PARTICULAR PURPOSE.\n"), precede, precede, precede); + + if (!remote_description || *remote_description == '\0') + printf (_("\nThis program built for \n"), precede, make_host); + else + printf (_("\nThis program built for ()\n"), + precede, make_host, remote_description); printed_version = 1;