home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / config.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  93 lines

  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /* 
  19.    config.c --- link-time configuration of the X front end.
  20.    Created: Jamie Zawinski <jwz@netscape.com>, 26-Feb-95.
  21.  
  22.    Parameters:
  23.  
  24.     - whether this is the "net" version or the "for sale" version
  25.       this is done by changing the value of `fe_version' and `fe_version_short'
  26.       based on -DVERSION=1.1N
  27.     - whether this is linked with DNS or NIS for name resolution
  28.       this is done by changing the value of `fe_HaveDNS'
  29.       based on optional -DHAVE_NIS
  30.     - whether high security or low security is being used
  31.       this is done by linking in a particular version of libsec.a 
  32.       along with -DUS_VERSION or -DEXPORT_VERSION (for verification.)
  33.     - which animation to use
  34.       this is done by linking in a particular version of icondata.o
  35.       along with optional -DVENDOR_ANIM
  36.  */
  37.  
  38.  
  39. #include "name.h"
  40.  
  41. const char fe_BuildConfiguration[] = cpp_stringify(CONFIG);
  42.  
  43. const char fe_version[] = cpp_stringify(VERSION);
  44. const char fe_long_version[] =
  45.  "@(#)" XFE_NAME_STRING " "
  46.  
  47. #ifndef MOZ_COMMUNICATOR_NAME
  48.  "Lite "
  49. #endif
  50.  
  51. cpp_stringify(VERSION)
  52.  
  53. #ifdef EXPORT_VERSION
  54.  "/Export"
  55. #endif
  56.  
  57. #ifdef FRANCE_VERSION
  58.  "/France"
  59. #endif
  60.  
  61. #ifdef US_VERSION
  62.  "/U.S."
  63. #endif
  64.  
  65. #ifdef HAVE_NIS
  66.  "/NIS"
  67. #endif
  68.  
  69. #ifdef DEBUG
  70.  "/DEBUG"
  71. #endif
  72.  
  73.  ", " cpp_stringify(DATE) "; " XFE_LEGALESE
  74. ;
  75.  
  76. /* initially set to plain version, without locale string */
  77. char *fe_version_and_locale = (char *) fe_version;
  78.  
  79. /* If no policy.jar, then no security at all. */
  80. int fe_SecurityVersion = 0;
  81.  
  82. #ifdef HAVE_NIS
  83. int fe_HaveDNS = 0;
  84. #else
  85. int fe_HaveDNS = 1;
  86. #endif
  87.  
  88. #ifdef VENDOR_ANIM
  89. int fe_VendorAnim = 1;
  90. #else
  91. int fe_VendorAnim = 0;
  92. #endif
  93.