Display configuration information when using the -V option...

This commit is contained in:
hpa 2001-11-14 04:16:23 +00:00
parent 5ec55f35e9
commit 7edb3d5b92
5 changed files with 45 additions and 14 deletions

View file

@ -187,8 +187,29 @@ typedef unsigned long u_long;
#define EOPTNEG 8
#endif
/* tftp-hpa version */
/* tftp-hpa version and configuration strings */
#include "version.h"
#ifdef WITH_READLINE
#define WITH_READLINE_STR ", with readline"
#else
#define WITH_READLINE_STR ", without readline"
#endif
#ifdef WITH_REGEX
#define WITH_REGEX_STR ", with remap"
#else
#define WITH_REGEX_STR ", without remap"
#endif
#ifdef HAVE_LIBWRAP
#define HAVE_LIBWRAP_STR ", with tcpwrappers"
#else
#define HAVE_LIBWRAP_STR ", without tcpwrappers"
#endif
#define TFTP_CONFIG_STR VERSION WITH_READLINE_STR
#define TFTPD_CONFIG_STR VERSION WITH_REGEX_STR HAVE_LIBWRAP_STR
#endif