home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / radius_2.zip / version.c < prev   
C/C++ Source or Header  |  1996-05-28  |  3KB  |  100 lines

  1. /*
  2.  *
  3.  *    RADIUS
  4.  *    Remote Authentication Dial In User Service
  5.  *
  6.  *
  7.  *    Livingston Enterprises, Inc.
  8.  *    6920 Koll Center Parkway
  9.  *    Pleasanton, CA   94566
  10.  *
  11.  *    Copyright 1992 Livingston Enterprises, Inc.
  12.  *
  13.  *    Permission to use, copy, modify, and distribute this software for any
  14.  *    purpose and without fee is hereby granted, provided that this
  15.  *    copyright and permission notice appear on all copies and supporting
  16.  *    documentation, the name of Livingston Enterprises, Inc. not be used
  17.  *    in advertising or publicity pertaining to distribution of the
  18.  *    program without specific prior permission, and notice be given
  19.  *    in supporting documentation that copying and distribution is by
  20.  *    permission of Livingston Enterprises, Inc.   
  21.  *
  22.  *    Livingston Enterprises, Inc. makes no representations about
  23.  *    the suitability of this software for any purpose.  It is
  24.  *    provided "as is" without express or implied warranty.
  25.  *
  26.  */
  27.  
  28. static char sccsid[] =
  29. "@(#)version.c    1.2 Copyright 1992 Livingston Enterprises Inc";
  30.  
  31. #include        <sys/types.h>
  32. #include    <stdio.h>
  33. #include    "radius.h"
  34.  
  35. extern char    *progname;
  36.  
  37. /*  If you make any changes to this software please update this
  38.  *  version number; contact support@livingston.com if you
  39.  *  would like a range of versions allocated for your use.
  40.  */
  41.  
  42. #define        VERSION        "Os/2 ver 1.16 95/01/06"
  43.  
  44. /*************************************************************************
  45.  *
  46.  *    Function: version
  47.  *
  48.  *    Purpose: Display the revision number for this program
  49.  *
  50.  *************************************************************************/
  51. void
  52. version(void)
  53. {
  54.  
  55.     fprintf(stderr, "%s: RADIUS version %s\n", progname, VERSION);
  56.  
  57.     /* here are all the conditional feature flags */
  58. #if defined(DBM)
  59.     fprintf(stderr," DBM");
  60. #endif
  61. #if defined(NOSHADOW)
  62.     fprintf(stderr," NOSHADOW");
  63. #endif
  64.  
  65.     /* here are all the system definitions compilation uses */
  66. #if defined(__alpha)
  67.     fprintf(stderr," __alpha");
  68. #endif
  69. #if defined(__osf__)
  70.     fprintf(stderr," __osf__");
  71. #endif
  72. #if defined(aix)
  73.     fprintf(stderr," aix");
  74. #endif
  75. #if defined(bsdi)
  76.     fprintf(stderr," bsdi");
  77. #endif
  78. #if defined(sun)
  79.     fprintf(stderr," sun");
  80. #endif
  81. #if defined(sys5)
  82.     fprintf(stderr," sys5");
  83. #endif
  84. #if defined(unixware)
  85.     fprintf(stderr," unixware");
  86. #endif
  87. #if defined(M_UNIX)
  88.     fprintf(stderr," M_UNIX");
  89. #endif
  90. #if defined(WIN32)
  91.     fprintf(stderr," WIN32");
  92. #endif
  93. #if defined(OS2)
  94.     fprintf(stderr,"Os/2");
  95. #endif
  96.  
  97.     fprintf(stderr,"\n");
  98.     exit(-1);
  99. }
  100.