From 339aaa3989b396d259de181a03ac71926e0a8750 Mon Sep 17 00:00:00 2001 From: arai Date: Sat, 18 May 2002 21:04:27 +0000 Subject: [PATCH] * src/lharc.c (print_tiny_usage_and_exit): added credit. (print_version): print PLATFORM. * configure.ac, configure.in, config.h.in: define PLATFORM. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@61 6a8cc165-1e22-0410-a132-eb4e3f353aba --- config.h.in | 3 +++ configure.ac | 3 +++ configure.in | 3 +++ src/lharc.c | 3 ++- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config.h.in b/config.h.in index 84fe458..f3ff199 100644 --- a/config.h.in +++ b/config.h.in @@ -149,6 +149,9 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION +/* the type of system on which the package will run. */ +#undef PLATFORM + /* Define as the return type of signal handlers (`int' or `void'). */ #undef RETSIGTYPE diff --git a/configure.ac b/configure.ac index 65509b0..2f18d08 100644 --- a/configure.ac +++ b/configure.ac @@ -5,6 +5,9 @@ AM_CONFIG_HEADER(config.h) AC_CANONICAL_HOST +AC_DEFINE_UNQUOTED(PLATFORM, "$ac_cv_host", + [the type of system on which the package will run.]) + dnl Checks for programs. AC_PROG_CC AC_PROG_GCC_TRADITIONAL diff --git a/configure.in b/configure.in index da110da..7170bb7 100644 --- a/configure.in +++ b/configure.in @@ -5,6 +5,9 @@ AM_CONFIG_HEADER(config.h) AC_CANONICAL_HOST +AC_DEFINE_UNQUOTED(PLATFORM, "$ac_cv_host", + [the type of system on which the package will run.]) + dnl Checks for programs. AC_PROG_CC AC_PROG_GCC_TRADITIONAL diff --git a/src/lharc.c b/src/lharc.c index 7850e05..b09e6d9 100644 --- a/src/lharc.c +++ b/src/lharc.c @@ -146,6 +146,7 @@ LHx(arc) for OSK V 2.01 Modified 1990 Momozou\n\ LHa for UNIX V 1.00 Copyright(C) 1992 Masaru Oki\n\ LHa for UNIX V 1.14 Modified 1995 Nobutaka Watazaki\n\ LHa for UNIX V 1.14i Modified 2000 Tsugio Okamoto\n\ +LHa for UNIX V 1.14i Autoconfiscated 2001,2002 Koji Arai\n "); fprintf(stderr, "\ usage: lha [-]{axelvudmcp[q[num]][vnfodizg012]}[w=] archive_file [file...]\n\ @@ -458,7 +459,7 @@ work: static void print_version() { - fprintf(stderr, "%s\n", LHA_VERSION); + fprintf(stderr, "%s (%s)\n", LHA_VERSION, PLATFORM); } /* ------------------------------------------------------------------------ */ -- 2.11.0