(file) Return to config.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / mak

   1 karl  1.117 #//%2006////////////////////////////////////////////////////////////////////////
   2 martin 1.92  #//
   3              #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
   4              #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   5              #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   6              #// IBM Corp.; EMC Corporation, The Open Group.
   7              #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   8              #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   9              #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
  10              #// EMC Corporation; VERITAS Software Corporation; The Open Group.
  11 karl   1.117 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
  12              #// EMC Corporation; Symantec Corporation; The Open Group.
  13 martin 1.92  #//
  14              #// Permission is hereby granted, free of charge, to any person obtaining a copy
  15              #// of this software and associated documentation files (the "Software"), to
  16              #// deal in the Software without restriction, including without limitation the
  17              #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  18              #// sell copies of the Software, and to permit persons to whom the Software is
  19              #// furnished to do so, subject to the following conditions:
  20              #// 
  21              #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
  22              #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
  23              #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
  24              #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  25              #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  26              #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  27              #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  28              #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  29              #//
  30              #//==============================================================================
  31 mike   1.1   ################################################################################
  32              ##
  33              ## Get external environment variables. Note that all external environment
  34              ## variables begin with "PEGASUS_".
  35              ##
  36              ################################################################################
  37              
  38 konrad.r 1.55  ifndef ROOT
  39                    ROOT =  $(subst \,/,$(PEGASUS_ROOT))
  40                endif
  41                
  42 denise.eckstein 1.61  ifdef PEGASUS_ENVVAR_FILE
  43 david.dillard   1.65      include $(PEGASUS_ENVVAR_FILE)
  44 denise.eckstein 1.61  else
  45 david.dillard   1.65      include $(ROOT)/env_var.status
  46 denise.eckstein 1.61  endif
  47 konrad.r        1.55  
  48 mike            1.2   ifdef PEGASUS_HOME
  49 david.dillard   1.65      HOME_DIR = $(subst \,/,$(PEGASUS_HOME))
  50 mike            1.1   else
  51 david.dillard   1.65      $(error PEGASUS_HOME environment variable undefined)
  52 mike            1.1   endif
  53                       
  54 karl            1.18  ifdef PEGASUS_ROOT
  55                           ROOT =  $(subst \,/,$(PEGASUS_ROOT))
  56                       else
  57 david.dillard   1.65      $(error PEGASUS_ROOT environment variable undefined)
  58 karl            1.18  endif
  59                       
  60 kumpf           1.21  ifdef PEGASUS_TMP
  61 david.dillard   1.65      TMP_DIR = $(subst \,/,$(PEGASUS_TMP))
  62 kumpf           1.21  else
  63 david.dillard   1.65      TMP_DIR = .
  64 kumpf           1.21  endif
  65                       
  66 kumpf           1.26  ifdef PEGASUS_DISPLAYCONSUMER_DIR
  67 david.dillard   1.65      DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_DISPLAYCONSUMER_DIR))
  68 kumpf           1.26  else
  69 david.dillard   1.65      DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_HOME))
  70 kumpf           1.26  endif
  71                       
  72 aruran.ms       1.102 ifdef PEGASUS_DEBUG
  73                            PEGASUS_USE_DEBUG_BUILD_OPTIONS = 1
  74                       endif
  75                       
  76 david.dillard   1.66  PLATFORM_FILES=$(wildcard $(ROOT)/mak/platform*.mak)
  77 karl            1.78  PLATFORM_TEMP=$(subst $(ROOT)/mak/platform_,, $(PLATFORM_FILES))
  78 jim.wunderlich  1.104 VALID_PLATFORMS=$(subst .mak,  , $(PLATFORM_TEMP))
  79 mike            1.8   
  80                       ifndef PEGASUS_PLATFORM
  81 david.dillard   1.66      $(error PEGASUS_PLATFORM environment variable undefined. Please set to\
  82                               one of the following:$(VALID_PLATFORMS))
  83 mike            1.8   endif
  84                       
  85 mike            1.1   ################################################################################
  86 denise.eckstein 1.116 ifeq ($(findstring _GNU, $(PEGASUS_PLATFORM)), _GNU)
  87 mike            1.118     ifdef CXX
  88                             GCC_VERSION = $(shell $(CXX) -dumpversion)
  89                           else
  90                             GCC_VERSION = $(shell g++ -dumpversion)
  91                           endif
  92 denise.eckstein 1.116 else
  93                           GCC_VERSION =
  94                       endif
  95 mike            1.1   
  96 denise.eckstein 1.143 #############################################################################
  97                       ## As a general rule, the directory structure for the object files mirrors
  98                       ## the directory structure of the source files.  E.g.,
  99                       ## $PEGASUS_HOME/obj/Pegasus/Common contains the object files for the
 100                       ## source files in $PEGASUS_ROOT/src/Pegasus/Common.  Each source-level
 101                       ## Makefile includes a DIR value that defines this common path (e.g.,
 102                       ## Pegasus/Common). In a small number of cases, source files are built
 103                       ## multiple times with difference compile options.  
 104                       ## To handle this situation, the ALT_OBJ_DIR variable can be used to
 105                       ## specify an alternative object directory for use in building the
 106                       ## objects defined in the Makefile.
 107                       ##
 108                       
 109                       ifndef ALT_OBJ_DIR
 110                           OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
 111                       else
 112                           OBJ_DIR = $(HOME_DIR)/obj/$(ALT_OBJ_DIR)
 113                       endif
 114                       
 115                       #############################################################################
 116                       
 117 kumpf           1.157 ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
 118 dmitry.mikulin  1.155     BIN_DIR = $(HOME_DIR)/bin_exe
 119                           VALGRIND_SCRIPT_BIN_DIR = $(HOME_DIR)/bin
 120                       else
 121                           BIN_DIR = $(HOME_DIR)/bin
 122                       endif
 123 kumpf           1.22  LIB_DIR = $(HOME_DIR)/lib
 124 chuck           1.35  
 125                       # l10n
 126                       # define the location for the compiled messages
 127                       MSG_ROOT = $(HOME_DIR)/msg
 128 kumpf           1.22  
 129 jim.wunderlich  1.90  #############################################################################
 130 kumpf           1.140 ##  The following REPOSITORY_XXX variables are only used within the
 131                       ## makefiles for building the repository (cimmofl) and running the tests.
 132 jim.wunderlich  1.90  ## They have no effect on CIMconfig initial startup configuration.
 133                       
 134                       #
 135 kumpf           1.22  # define the location for the repository
 136 jim.wunderlich  1.90  #
 137                       # NOTE: There is another variable efined in many of the test makefiles
 138                       # called REPOSITORYDIR. It is a local variable in each of those Makefiles
 139 kumpf           1.140 # to localally control where the temporay small repository they
 140 jim.wunderlich  1.90  # build, use and then delete is located. Most of the time it is set to TMP_DIR.
 141                       #
 142 jim.wunderlich  1.91  
 143 kumpf           1.22  REPOSITORY_DIR = $(HOME_DIR)
 144 jim.wunderlich  1.90  
 145                       #
 146 kumpf           1.140 # WARNING: The REPOSITORY_NAME varible is not used by all the test,
 147 jim.wunderlich  1.90  # many of them are still hardcoded to "repository".  What this means
 148 kumpf           1.140 # is that you can change the repository name and build it. But you
 149 jim.wunderlich  1.90  # cannot run the test without many of them failing
 150                       #
 151 jim.wunderlich  1.91  
 152 jim.wunderlich  1.81  REPOSITORY_NAME = repository
 153 jim.wunderlich  1.91  
 154 jim.wunderlich  1.90  
 155 jim.wunderlich  1.81  REPOSITORY_ROOT = $(REPOSITORY_DIR)/$(REPOSITORY_NAME)
 156                       
 157 kumpf           1.140 # define the repository mode
 158 h.sterling      1.89  #       XML = XML format
 159                       #       BIN = Binary format
 160 jim.wunderlich  1.81  #
 161 jim.wunderlich  1.91  ifndef PEGASUS_REPOSITORY_MODE
 162                          ## set to default value
 163                          REPOSITORY_MODE = XML
 164 kumpf           1.140 else
 165 jim.wunderlich  1.91     ## validate assigned value
 166                          ifeq ($(PEGASUS_REPOSITORY_MODE),XML)
 167                              REPOSITORY_MODE = XML
 168                          else
 169                            ifeq ($(PEGASUS_REPOSITORY_MODE),BIN)
 170                             REPOSITORY_MODE = BIN
 171                            else
 172                             $(error PEGASUS_REPOSITORY_MODE ($(PEGASUS_REPOSITORY_MODE)) \
 173                       		 is invalid. It must be set to either XML or BIN)
 174                            endif
 175                          endif
 176 jim.wunderlich  1.90  endif
 177                       
 178 jim.wunderlich  1.91  
 179 jim.wunderlich  1.90  ###########################################################################
 180 mike            1.1   
 181 kumpf           1.23  # The two variables, CIM_SCHEMA_DIR and CIM_SCHEMA_VER,
 182 chip            1.76  # are used to control the version of the CIM Schema
 183 kumpf           1.23  # loaded into the Pegasus Internal, InterOp,
 184                       # root/cimv2 and various test namespaces.
 185                       #
 186 chip            1.76  # Update the following two environment variables to
 187 kumpf           1.23  # change the version.
 188                       
 189 kumpf           1.37  # The environment variable PEGASUS_CIM_SCHEMA can be used
 190 chip            1.76  # to change the values of CIM_SCHEMA_DIR, CIM_SCHEMA_VER
 191 kumpf           1.37  # and ALLOW_EXPERIMENTAL.
 192                       #
 193                       # To use the PEGASUS_CIM_SCHEMA variable the Schema mof
 194                       # files must be placed in the directory
 195 denise.eckstein 1.115 # $(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
 196 chip            1.76  #
 197 kumpf           1.37  # The value of PEGASUS_CIM_SCHEMA must conform to the
 198                       # following syntax:
 199                       #
 200                       #        CIM[Prelim]<CIM_SCHEMA_VER>
 201                       #
 202 chip            1.76  # The string "Prelim" should be included if the
 203 kumpf           1.37  # Schema contains "Experimental" class definitions.
 204                       #
 205                       # The value of <CIM_SCHEMA_VER> must be the value
 206 chip            1.76  # of the version string included by the DMTF as
 207                       # part of the mof file names (e.g, CIM_Core27.mof).
 208 kumpf           1.37  # Therefore, for example, the value of <CIM_SCHEMA_VER>
 209                       # for CIM27 Schema directories MUST be 27.
 210                       #
 211 chip            1.76  # Examples of valid values of PEGASUS_CIM_SCHEMA
 212 kumpf           1.37  # include CIMPrelim27, CIM27, CIMPrelim28, and CIM28.
 213                       #
 214                       # Note the CIMPrelim271 would NOT be a valid value
 215                       # for PEGASUS_CIM_SCHEMA because the version string
 216                       # portion of the mof files (e.g., CIM_Core27.mof) in
 217                       # the CIMPrelimin271 directory is 27 not 271.
 218 kumpf           1.23  
 219 gerarda         1.29  # ***** CIM_SCHEMA_DIR INFO ****
 220                       # If CIM_SCHEMA_DIR changes to use a preliminary schema which
 221                       # has experimentals make sure and change the path below to appopriate
 222                       # directory path.  Example:  CIMPrelim271 is preliminary and has
 223                       # experimental classes.  Since experimental classes exist the -aE
 224                       # option of the mof compiler needs to be set.
 225                       # *****
 226 kumpf           1.37  
 227 denise.eckstein 1.154 ifndef PEGASUS_CIM_SCHEMA
 228 kumpf           1.164     PEGASUS_CIM_SCHEMA=CIM217
 229 denise.eckstein 1.154 endif
 230                       
 231                       CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
 232                       ifeq ($(findstring $(patsubst CIM%,%,$(patsubst CIMPrelim%,%,$(PEGASUS_CIM_SCHEMA))),1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 271 28),)
 233                           CIM_SCHEMA_VER=
 234 kumpf           1.37  else
 235 denise.eckstein 1.154     CIM_SCHEMA_VER=$(patsubst CIM%,%,$(patsubst CIMPrelim%,%,$(PEGASUS_CIM_SCHEMA)))
 236 kumpf           1.37  endif
 237                       
 238                       ifneq (, $(findstring Prelim, $(CIM_SCHEMA_DIR)))
 239 david.dillard   1.65      ALLOW_EXPERIMENTAL = -aE
 240 gerarda         1.29  else
 241 david.dillard   1.65      ALLOW_EXPERIMENTAL =
 242 gerarda         1.29  endif
 243                       
 244 bob             1.5   LEX = flex
 245                       
 246 jim.wunderlich  1.94  ## ======================================================================
 247                       ##
 248 kumpf           1.140 ## PEGASUS_ENABLE_SORTED_DIFF
 249 jim.wunderlich  1.94  ## This controls if the DIFFSORT function is used rather than a simple DIFF of
 250                       ##  of the test results files to the static results file.
 251                       ##
 252                       ##   Set to "true" enables the sorted diffs of results to static results files.
 253                       ##   otherwise results in regular diffs of results to static results files.
 254 kumpf           1.140 ##   see bug 2283 for background information concerning this config variable.
 255 jim.wunderlich  1.94  ##
 256                       ##  Defaults to true.
 257                       ##
 258                       ##
 259                       ifndef PEGASUS_ENABLE_SORTED_DIFF
 260                       PEGASUS_ENABLE_SORTED_DIFF=true
 261                       endif
 262                       
 263 jim.wunderlich  1.86  ## ========================================================================
 264 kumpf           1.140 ## DIFFSORT function definition
 265 jim.wunderlich  1.86  ## Here is an example using the DIFFSORT function:
 266 kumpf           1.140 ##
 267 jim.wunderlich  1.86  ## difftest: FORCE
 268 h.sterling      1.89  ##      @ test > result
 269 jim.wunderlich  1.86  ##      @ $(call DIFFSORT,result,standard_result)
 270 h.sterling      1.89  ##      @ $(ECHO) +++++ all test passed
 271 jim.wunderlich  1.86  ##
 272                       
 273                       define NL
 274                       
 275                       
 276                       endef
 277                       
 278 kumpf           1.140 ifndef FORCE_NOCASE
 279                       
 280 jim.wunderlich  1.86  DIFFSORT = $(SORT) $(1) > $(1).tmp $(NL) \
 281                       $(SORT) $(2) > $(2).tmp $(NL) \
 282                       $(DIFF) $(1).tmp $(2).tmp $(NL) \
 283                       $(RM) -f $(1).tmp $(NL) \
 284                       $(RM) -f $(2).tmp $(NL)
 285                       
 286 marek           1.107 else
 287                       
 288                       DIFFSORT = $(SORT) -f $(1) > $(1).tmp $(NL) \
 289                       $(SORT) -f $(2) > $(2).tmp $(NL) \
 290                       $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
 291                       $(RM) -f $(1).tmp $(NL) \
 292                       $(RM) -f $(2).tmp $(NL)
 293                       
 294                       endif
 295                       
 296                       DIFFSORTNOCASE = $(SORT) $(1) > $(1).tmp $(NL) \
 297                       $(SORT) $(2) > $(2).tmp $(NL) \
 298                       $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
 299                       $(RM) -f $(1).tmp $(NL) \
 300                       $(RM) -f $(2).tmp $(NL)
 301                       
 302 jim.wunderlich  1.104 #
 303                       # The following is used to define the usage message for MakeFile
 304                       #
 305                       # See the pegasus/Makfile for an exampleof its usage.
 306                       #
 307                       USAGE = @$(ECHO) " $(1)"
 308                       
 309 mike            1.8   ################################################################################
 310                       ##
 311                       ## Attempt to include a platform configuration file:
 312                       ##
 313                       ################################################################################
 314                       
 315 david.dillard   1.66  PLATFORM_FILE = $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
 316                       ifneq ($(wildcard $(PLATFORM_FILE)), )
 317                           include $(PLATFORM_FILE)
 318                       else
 319 david.dillard   1.65    $(error  PEGASUS_PLATFORM environment variable must be set to one of\
 320 david.dillard   1.66          the following:$(VALID_PLATFORMS))
 321 mike            1.8   endif
 322 karl            1.17  
 323 karl            1.36  ################################################################################
 324                       ##
 325                       ##  Set up any platform independent compile conditionals by adding them to
 326                       ##  precreated FLAGS parameter.
 327 chip            1.76  ##  Assumes that the basic flags have been setup in FLAGS.
 328 karl            1.36  ##  Assumes that compile time flags are controlled with -D CLI option.
 329                       ##
 330                       ################################################################################
 331 karl            1.17  
 332 kumpf           1.166 ############################################################################
 333                       # OpenPegasus relies on the existence of an external set of libraries to  
 334                       # support localized messages.  Today, the only supported package is
 335                       # the International Components for Unicode (ICU) OSS project,
 336                       # http://oss.software.ibm.com/icu.  If PEGASUS_HAS_ICU is true,
 337                       # OpenPegasus will use the ICU library.
 338                       #
 339                       # ICU_INSTALL points to the directory containing the ICU installation.
 340                       # If set, the OpenPegasus will use this variable to locate the ICU
 341                       # include files and libraries.  If not set, the ICU libraries are expected
 342                       # to be installed in a directory that is searched by default.
 343                       #
 344                       # If PEGASUS_HAS_ICU is not set and ICU_INSTALL is set, the value of
 345                       # PEGASUS_HAS_ICU will be set to true.
 346                       ############################################################################
 347                       
 348                       ifdef PEGASUS_HAS_ICU
 349                           ifneq ($(PEGASUS_HAS_ICU),true)
 350                               ifneq ($(PEGASUS_HAS_ICU),false)
 351                                   $(error PEGASUS_HAS_ICU ($(PEGASUS_HAS_ICU)) \
 352                                       invalid, must be true or false)
 353 kumpf           1.166         endif
 354                           endif
 355                       else
 356                           ifdef ICU_INSTALL
 357                               PEGASUS_HAS_ICU = true
 358                           endif
 359                       endif
 360                       
 361                       ifdef PEGASUS_HAS_MESSAGES
 362                           DEFINES += -DPEGASUS_HAS_MESSAGES
 363                       
 364                           ifneq ($(PEGASUS_HAS_ICU),true)
 365                               $(error Support for localized messages in OpenPegasus \
 366                                   requires PEGASUS_HAS_ICU to be true)
 367                           endif
 368                       endif
 369                       
 370                       ifeq ($(PEGASUS_HAS_ICU),true)
 371                           DEFINES += -DPEGASUS_HAS_ICU
 372                       
 373                           ##################################
 374 kumpf           1.166     ##
 375                           ## ICU_NO_UPPERCASE_ROOT if set, specifies NOT to uppercase the root
 376                           ## resource bundle, default is to uppercase the root resource bundle
 377                           ##
 378                           ##################################
 379                       
 380                           ifdef ICU_NO_UPPERCASE_ROOT
 381                               CNV_ROOT_FLAGS =
 382                           else
 383                               CNV_ROOT_FLAGS = -u
 384                           endif
 385                       
 386                           ####################################
 387                           ##
 388                           ## ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root
 389                           ## resource bundle will be generated from.  Defaults to _en if not set.
 390                           ## If set, for any directory containing resource bundles, there must
 391                           ## exist a file name:  package($ICU_ROOT_BUNDLE_LANG).txt or the make
 392                           ## messages target will fail.
 393                           ##
 394                           ####################################
 395 kumpf           1.166 
 396                           ifdef ICU_ROOT_BUNDLE_LANG
 397                               MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
 398                           else
 399                               MSG_ROOT_SOURCE = _en
 400                           endif
 401 kumpf           1.168 
 402                           ifdef ICU_INSTALL
 403                               MSG_COMPILE = $(ICU_INSTALL)/bin/genrb
 404                           else
 405                               MSG_COMPILE = genrb
 406                           endif
 407                       
 408                           MSG_FLAGS =
 409                           MSG_SOURCE_EXT = .txt
 410                           MSG_COMPILE_EXT = .res
 411                       
 412                           ifeq ($(OS),linux)
 413                               CNV_ROOT_CMD = $(BIN_DIR)/cnv2rootbundle
 414                           else
 415                               CNV_ROOT_CMD = cnv2rootbundle
 416                           endif
 417                       
 418 kumpf           1.169     # The library path option is needed on all link commands with some ICU
 419                           # builds, because internal ICU library dependencies are resolved
 420                           # dynamically.
 421 kumpf           1.168     ifdef ICU_INSTALL
 422                               ifeq ($(OS),zos)
 423                                   # On z/OS, the -L option must appear before the -o option and
 424                                   # the object (.o) and sidedeck (.x) files in the link command.
 425                                   FLAGS += -L$(ICU_INSTALL)/lib
 426                                   PR_FLAGS += -L$(ICU_INSTALL)/lib
 427 kumpf           1.169         else
 428                                   EXTRA_LIBRARIES += -L$(ICU_INSTALL)/lib
 429                               endif
 430                           endif
 431                       
 432                           # The ICU include path and library dependencies are restricted to
 433                           # where they are specifically needed.
 434                           ifeq ($(HAS_ICU_DEPENDENCY),true)
 435                               ifdef ICU_INSTALL
 436                                   SYS_INCLUDES += -I$(ICU_INSTALL)/include
 437                               endif
 438                       
 439                               ifeq ($(OS),windows)
 440 kumpf           1.168             EXTRA_LIBRARIES += \
 441 kumpf           1.169                 $(ICU_INSTALL)/lib/icuuc.lib \
 442                                       $(ICU_INSTALL)/lib/icuin.lib \
 443                                       $(ICU_INSTALL)/lib/icudt.lib
 444 kumpf           1.168         else
 445 kumpf           1.169             ifeq ($(OS),zos)
 446                                       EXTRA_LIBRARIES += \
 447 r.kieninger     1.176                     $(ICU_INSTALL)/lib/libicui18n$(DYNLIB_SUFFIX) \
 448                                           $(ICU_INSTALL)/lib/libicuuc$(DYNLIB_SUFFIX)
 449 kumpf           1.169             else
 450                                       EXTRA_LIBRARIES += -licuuc -licui18n
 451                                       ifeq ($(OS),linux)
 452                                           EXTRA_LIBRARIES += -licudata
 453                                       endif
 454 kumpf           1.168             endif
 455                               endif
 456                           endif
 457 kumpf           1.166 endif
 458 jim.wunderlich  1.97  
 459                       ################################################################################
 460                       ##
 461                       ## PEGASUS_MAX_THREADS_PER_SVC_QUEUE
 462                       ##
 463                       ## Controls the maximum number of threads allowed per message service queue.
 464                       ##     It is allowed to range between 1 and MAX_THREADS_PER_SVC_QUEUE_LIMIT
 465 kumpf           1.103 ##     as set in pegasus/src/Pegasus/Common/MessageQueueService.cpp.  If the
 466                       ##     specified value is out of range, MAX_THREADS_PER_SVC_QUEUE_LIMIT is
 467                       ##     used.  The default value is MAX_THREADS_PER_SVC_QUEUE_DEFAULT, as
 468                       ##     defined in pegasus/src/Pegasus/Common/MessageQueueService.cpp.
 469 jim.wunderlich  1.98  ##
 470                       ##	Label					Current value
 471                       ##	--------------------------------------  -------------
 472                       ##      MAX_THREADS_PER_SVC_QUEUE_LIMIT	        5000
 473                       ##      MAX_THREADS_PER_SVC_QUEUE_DEFAULT       5
 474 jim.wunderlich  1.97  ##
 475                       ##
 476                       
 477                       ifdef PEGASUS_MAX_THREADS_PER_SVC_QUEUE
 478                         DEFINES += -DMAX_THREADS_PER_SVC_QUEUE=$(PEGASUS_MAX_THREADS_PER_SVC_QUEUE)
 479                       endif
 480                       
 481 jim.wunderlich  1.99  ##############################################################################
 482 kumpf           1.140 ##
 483 jim.wunderlich  1.99  ## PEGASUS_INDICATIONS_Q_THRESHOLD
 484                       ##
 485                       ## Controls if indications providers are stalled if the indications
 486                       ## service queue is too large.
 487                       ##
 488 jim.wunderlich  1.100 ##      defaults to not set.
 489 jim.wunderlich  1.99  ##
 490                       ## 	It can be set to any positive value.
 491                       ##
 492 jim.wunderlich  1.100 ## If not set providers are never stalled. This implies that the
 493 jim.wunderlich  1.99  ## indications service queue may become as large as neccesary to hold all
 494                       ## the indicaitons generated.
 495                       ##
 496 jim.wunderlich  1.100 ## If set to any value then providers are stalled by forcing them to sleep
 497 jim.wunderlich  1.99  ## when they try to deliver an indication and the indications service queue
 498                       ## exceeds this value. They are resumed when the queue count falls 10 percent
 499 kumpf           1.140 ## below this value.
 500 jim.wunderlich  1.99  ##
 501                       ## Stall and resume log entries are made to inform the administrator
 502                       ## the condition has occured.
 503                       ##
 504                       ## WARNING: This also affects the Out of Process Providers (OOP Providers)
 505                       ##    The OOP Providers use two one way pipes for communication.
 506                       ##    By stalling the Provider this prevents the pipe from being read
 507                       ##    which will cause the pipe to fill up and the remote side will block.
 508                       ##    OOP Prividers mix indications and operations on these two pipes.
 509                       ##    This means the operations will also be blocked as a side effect of
 510                       ##    the indications being stalled.
 511 kumpf           1.140 ##
 512 jim.wunderlich  1.99  ##
 513                       
 514                       ifdef PEGASUS_INDICATIONS_Q_THRESHOLD
 515                         DEFINES += -DPEGASUS_INDICATIONS_Q_THRESHOLD=$(PEGASUS_INDICATIONS_Q_THRESHOLD)
 516                       endif
 517                       
 518 jim.wunderlich  1.97  
 519 kumpf           1.87  # Allow PEGASUS_ASSERT statements to be disabled.
 520                       ifdef PEGASUS_NOASSERTS
 521                           DEFINES += -DNDEBUG
 522                       endif
 523                       
 524 mday            1.40  # do not compile trace code. sometimes it causes problems debugging
 525                       ifdef PEGASUS_REMOVE_TRACE
 526 david.dillard   1.65      DEFINES += -DPEGASUS_REMOVE_TRACE
 527 mday            1.40  endif
 528                       
 529 marek           1.167 # PEP 315
 530                       # Control whether compile with or without method entertexit trace code.
 531                       # A value other than 'true' or 'false' will cause a make error.
 532                       ifdef PEGASUS_REMOVE_METHODTRACE
 533                         ifeq ($(PEGASUS_REMOVE_METHODTRACE),true)
 534                           DEFINES += -DPEGASUS_REMOVE_METHODTRACE
 535                         else
 536                           ifneq ($(PEGASUS_REMOVE_METHODTRACE),false)
 537                             $(error PEGASUS_REMOVE_METHODTRACE ($(PEGASUS_REMOVE_METHODTRACE)) invalid, must be true or false)
 538                           endif
 539                         endif
 540                       endif
 541                       
 542 kumpf           1.173 # Control whether the class definitions in the repository contain elements
 543                       # propagated from superclass definitions.
 544                       
 545                       ifndef PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES
 546                           PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES = false
 547                       endif
 548                       
 549                       ifeq ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES),true)
 550                           DEFINES += -DPEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES
 551                       else
 552                           ifneq ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES),false)
 553                               $(error PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES)) invalid, must be true or false)
 554                           endif
 555                       endif
 556                       
 557 kumpf           1.177 # SQLite repository support
 558                       
 559                       ifndef PEGASUS_USE_SQLITE_REPOSITORY
 560                           PEGASUS_USE_SQLITE_REPOSITORY = false
 561                       endif
 562                       
 563                       ifeq ($(PEGASUS_USE_SQLITE_REPOSITORY),true)
 564                           ifeq ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES),true)
 565                               $(error PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES may not be set to true when PEGASUS_USE_SQLITE_REPOSITORY is true)
 566                           endif
 567                           DEFINES += -DPEGASUS_USE_SQLITE_REPOSITORY
 568                       else
 569                           ifneq ($(PEGASUS_USE_SQLITE_REPOSITORY),false)
 570                               $(error PEGASUS_USE_SQLITE_REPOSITORY ($(PEGASUS_USE_SQLITE_REPOSITORY)) invalid, must be true or false)
 571                           endif
 572                       endif
 573                       
 574 chuck           1.47  # PEP 161
 575 kumpf           1.177 # Control whether utf-8 filenames are supported by the repository.
 576                       # Note: These options only apply to the file-based repository, not SQLite.
 577 chuck           1.47  ifdef PEGASUS_SUPPORT_UTF8_FILENAME
 578 david.dillard   1.65      DEFINES += -DPEGASUS_SUPPORT_UTF8_FILENAME
 579 chuck           1.47  
 580 david.dillard   1.65      # Control whether utf-8 filenames in the repository are escaped
 581                           ifdef PEGASUS_REPOSITORY_ESCAPE_UTF8
 582                               DEFINES += -DPEGASUS_REPOSITORY_ESCAPE_UTF8
 583                           endif
 584 chuck           1.47  endif
 585                       
 586 kumpf           1.49  #
 587                       # PEP 142
 588                       # The following flag need to be set to enable
 589                       # user group authorization functionality.
 590                       #
 591                       ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
 592 david.dillard   1.65      DEFINES += -DPEGASUS_ENABLE_USERGROUP_AUTHORIZATION
 593 kumpf           1.49  endif
 594                       
 595 karl            1.159 ############################################################################
 596                       #
 597                       # PEGASUS_ENABLE_CQL and PEGASUS_DISABLE_CQL
 598                       # Set to enable CQL processor in indication subscriptions and query execution
 599                       # PEGASUS_DISABLE_CQL (PEP 193) has been depracated. New use model is:
 600                       #
 601                       # Use PEGASUS_ENABLE_CQL=true  to enable  compilation of CQL functions.
 602 chuck           1.67  #
 603 karl            1.159 # Use PEGASUS_ENABLE_CQL=false to disable compilation of CQL functions.
 604 chuck           1.67  #
 605 karl            1.159 # Default is PEGASUS_ENABLE_CQL=true if not defined external to config.mak
 606                       #
 607                       
 608 chuck           1.67  ifdef PEGASUS_DISABLE_CQL
 609 carson.hovey    1.160     $(error PEGASUS_DISABLE_CQL has been deprecated. Please use PEGASUS_ENABLE_CQL=[true/false])
 610 karl            1.159 endif
 611                       
 612                       ifndef PEGASUS_ENABLE_CQL
 613                           # Default is true. CQL is enabled normally on all platforms unless specifically defined 
 614                           PEGASUS_ENABLE_CQL=true
 615                       endif
 616                       
 617                       ifeq ($(PEGASUS_ENABLE_CQL),true)
 618                           DEFINES += -DPEGASUS_ENABLE_CQL
 619                       else
 620                           ifneq ($(PEGASUS_ENABLE_CQL),false)
 621                               $(error PEGASUS_ENABLE_CQL ($(PEGASUS_ENABLE_CQL)) invalid, must be true or false)
 622                           endif
 623 chuck           1.67  endif
 624                       
 625 karl            1.159 ############################################################################
 626 kumpf           1.68  #
 627 karl            1.159 # PEGASUS_OVERRIDE_PRODUCT_ID 
 628 kumpf           1.68  # PEP 186
 629                       # Allow override of product name/version/status.  A file
 630                       # pegasus/src/Pegasus/Common/ProductVersion.h must exist when this
 631                       # flag is defined.
 632                       #
 633                       ifdef PEGASUS_OVERRIDE_PRODUCT_ID
 634                           DEFINES += -DPEGASUS_OVERRIDE_PRODUCT_ID
 635                       endif
 636                       
 637 kumpf           1.71  #
 638 kumpf           1.106 # PEP 72
 639                       # Allow Out-of-Process Providers to be disabled by default
 640                       #
 641 jim.wunderlich  1.113 ifdef PEGASUS_DEFAULT_ENABLE_OOP
 642                         ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
 643                           DEFINES += -DPEGASUS_DEFAULT_ENABLE_OOP
 644 jim.wunderlich  1.111   else
 645 jim.wunderlich  1.113     ifneq ($(PEGASUS_DEFAULT_ENABLE_OOP),false)
 646                             $(error PEGASUS_DEFAULT_ENABLE_OOP ($(PEGASUS_DEFAULT_ENABLE_OOP)) invalid, must be true or false)
 647 kumpf           1.140     endif
 648 jim.wunderlich  1.111   endif
 649 kumpf           1.106 endif
 650                       
 651                       #
 652 mateus.baur     1.130 # Allow to define the default value for the Provider User Context
 653                       # property as REQUESTOR.
 654                       # If is set and true use REQUESTOR
 655                       # If is not set or false use PRIVILEGED
 656                       #
 657                       ifdef PEGASUS_DEFAULT_USERCTXT_REQUESTOR
 658                         ifeq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),true)
 659                           DEFINES += -DPEGASUS_DEFAULT_USERCTXT_REQUESTOR
 660                         else
 661                           ifneq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),false)
 662                             $(error PEGASUS_DEFAULT_USERCTXT_REQUESTOR ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR)) invalid, must be true or false)
 663 kumpf           1.140     endif
 664 mateus.baur     1.130   endif
 665                       endif
 666                       
 667                       #
 668 kumpf           1.71  # PEP 197
 669                       # Allow the Provider User Context feature to be disabled.
 670                       #
 671 kumpf           1.74  ifdef PEGASUS_DISABLE_PROV_USERCTXT
 672 kumpf           1.71      DEFINES += -DPEGASUS_DISABLE_PROV_USERCTXT
 673 kumpf           1.74  endif
 674 kumpf           1.71  
 675 h.sterling      1.89  # Bug 2147
 676                       # Allow local domain socket usage to be disabled.
 677                       ifdef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
 678                           DEFINES += -DPEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
 679                       endif
 680                       
 681 chip            1.76  # PEP 211
 682                       # Controls object normalization support.
 683                       ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
 684                           DEFINES += -DPEGASUS_ENABLE_OBJECT_NORMALIZATION
 685                       endif
 686                       
 687 kumpf           1.80  # Allow ExecQuery functionality to be enabled
 688                       ifndef PEGASUS_ENABLE_EXECQUERY
 689                           DEFINES += -DPEGASUS_DISABLE_EXECQUERY
 690                       endif
 691                       
 692 yi.zhou         1.85  # Allow System Log Handler to be enabled
 693                       ifdef PEGASUS_ENABLE_SYSTEM_LOG_HANDLER
 694                         DEFINES += -DPEGASUS_ENABLE_SYSTEM_LOG_HANDLER
 695                       endif
 696                       
 697                       # Allow Email Handler to be enabled
 698                       ifdef PEGASUS_ENABLE_EMAIL_HANDLER
 699                         DEFINES += -DPEGASUS_ENABLE_EMAIL_HANDLER
 700                       endif
 701 kumpf           1.49  
 702 h.sterling      1.109 # Allow qualifiers to be disabled for instance operations
 703                       ifdef PEGASUS_DISABLE_INSTANCE_QUALIFIERS
 704                         DEFINES += -DPEGASUS_DISABLE_INSTANCE_QUALIFIERS
 705                       endif
 706                       
 707 yi.zhou         1.108 # Controls snmp indication handler to use NET-SNMP to deliver trap
 708                       ifdef PEGASUS_USE_NET_SNMP
 709                         DEFINES += -DPEGASUS_USE_NET_SNMP
 710                       endif
 711                       
 712 denise.eckstein 1.120 ifdef PEGASUS_HAS_SSL
 713 sushma.fernandes 1.152     DEFINES += -DPEGASUS_HAS_SSL 
 714                        
 715                            # Enable SSL Random file by default.
 716                            ifndef PEGASUS_USE_SSL_RANDOMFILE
 717                                PEGASUS_USE_SSL_RANDOMFILE = true
 718                            endif
 719                        
 720                            # Allow SSL Random file functionality to be optionally disabled.
 721                            ifdef PEGASUS_USE_SSL_RANDOMFILE
 722                                ifeq ($(PEGASUS_USE_SSL_RANDOMFILE), true)
 723                                    DEFINES += -DPEGASUS_SSL_RANDOMFILE
 724                                else
 725                                    ifneq ($(PEGASUS_USE_SSL_RANDOMFILE), false)
 726                                        $(error PEGASUS_USE_SSL_RANDOMFILE\
 727                                             ($(PEGASUS_USE_SSL_RANDOMFILE)) invalid, \
 728                                              must be true or false)
 729                                    endif
 730                                endif
 731                            endif
 732 kumpf            1.145 
 733                            ifndef OPENSSL_COMMAND
 734 denise.eckstein  1.147         ifdef OPENSSL_BIN
 735                                    OPENSSL_COMMAND = $(OPENSSL_BIN)/openssl
 736                                else
 737                                    OPENSSL_COMMAND = openssl
 738                                endif
 739 kumpf            1.145     endif
 740                            ifndef OPENSSL_SET_SERIAL_SUPPORTED
 741                                ifneq (, $(findstring 0.9.6, $(shell $(OPENSSL_COMMAND) version)))
 742                                    OPENSSL_SET_SERIAL_SUPPORTED = false
 743                                else
 744                                    OPENSSL_SET_SERIAL_SUPPORTED = true
 745                                endif
 746 denise.eckstein  1.120     endif
 747 sushma.fernandes 1.123 
 748 kumpf            1.145     # Enable CRL verification
 749                            ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
 750                                PEGASUS_ENABLE_SSL_CRL_VERIFICATION = true
 751                            endif
 752 sushma.fernandes 1.123 
 753 kumpf            1.145     # Check for Enable SSL CRL verification
 754                            ifdef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
 755                                ifeq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), true)
 756                                    DEFINES += -DPEGASUS_ENABLE_SSL_CRL_VERIFICATION
 757                                else
 758                                    ifneq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), false)
 759                                        $(error PEGASUS_ENABLE_SSL_CRL_VERIFICATION\
 760                                             ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION)) invalid, \
 761                                              must be true or false)
 762                                    endif
 763 sushma.fernandes 1.123         endif
 764                            endif
 765                        endif
 766 denise.eckstein  1.120 
 767 jim.wunderlich   1.101 #
 768 yi.zhou          1.134 # PEP 258
 769 kumpf            1.153 # Allow Audit Logger to be disabled.  It is enabled by default.
 770 yi.zhou          1.134 #
 771 kumpf            1.153 
 772                        ifndef PEGASUS_ENABLE_AUDIT_LOGGER
 773                            PEGASUS_ENABLE_AUDIT_LOGGER = true
 774                        endif
 775                        
 776                        ifdef PEGASUS_ENABLE_AUDIT_LOGGER
 777                            ifeq ($(PEGASUS_ENABLE_AUDIT_LOGGER),true)
 778                                DEFINES += -DPEGASUS_ENABLE_AUDIT_LOGGER
 779                            else
 780                                ifneq ($(PEGASUS_ENABLE_AUDIT_LOGGER),false)
 781                                    $(error PEGASUS_ENABLE_AUDIT_LOGGER \
 782                                      ($(PEGASUS_ENABLE_AUDIT_LOGGER)) invalid, must be true or false)
 783                                endif
 784                            endif
 785                        endif
 786                        
 787                        # Check for use of deprecated variable
 788 yi.zhou          1.134 ifdef PEGASUS_DISABLE_AUDIT_LOGGER
 789 kumpf            1.153     $(error The PEGASUS_DISABLE_AUDIT_LOGGER variable is deprecated. \
 790                                Use PEGASUS_ENABLE_AUDIT_LOGGER=false instead)
 791 yi.zhou          1.134 endif
 792                        
 793 dave.sudlik      1.142 
 794                        #
 795                        # PEP 291
 796                        # Enable IPv6 support
 797                        #
 798 venkat.puvvada   1.149 
 799 dave.sudlik      1.142 ifndef PEGASUS_ENABLE_IPV6
 800                            PEGASUS_ENABLE_IPV6 = true
 801                        endif
 802                        
 803                        # Check for Enable IPv6 support
 804                        ifdef PEGASUS_ENABLE_IPV6
 805                          ifeq ($(PEGASUS_ENABLE_IPV6),true)
 806                            DEFINES += -DPEGASUS_ENABLE_IPV6
 807                          else
 808                            ifneq ($(PEGASUS_ENABLE_IPV6),false)
 809                              $(error PEGASUS_ENABLE_IPV6 ($(PEGASUS_ENABLE_IPV6)) \
 810                               invalid, must be true or false)
 811                            endif
 812                          endif
 813                        endif
 814                        
 815 venkat.puvvada   1.149 # Verify Test IPv6 support
 816                        # If PEGASUS_ENABLE_IPV6 is defined and PEGASUS_TEST_IPV6 is not defined, we set
 817                        # PEGASUS_TEST_IPV6 to the same value as PEGASUS_ENABLE_IPV6.
 818                        # You can explicitly set PEGASUS_TEST_IPV6 to false if you don't want to run the
 819                        # IPv6 tests (for example, on an IPv4 system that is running an IPv6-enabled
 820                        # version of Pegasus).
 821                        #
 822                        ifdef PEGASUS_TEST_IPV6
 823                          ifneq ($(PEGASUS_TEST_IPV6),true)
 824                            ifneq ($(PEGASUS_TEST_IPV6),false)
 825                              $(error PEGASUS_TEST_IPV6 ($(PEGASUS_TEST_IPV6)) \
 826                               invalid, must be true or false)
 827                            endif
 828                          endif
 829                        else 
 830 venkat.puvvada   1.150   PEGASUS_TEST_IPV6 = $(PEGASUS_ENABLE_IPV6)
 831 venkat.puvvada   1.149 endif
 832                        
 833 yi.zhou          1.163 #
 834                        # PEP 322
 835                        # Allow tracking generated indications data to be disabled.  It is enabled
 836                        # by default.
 837                        #
 838                        
 839                        ifndef PEGASUS_ENABLE_INDICATION_COUNT
 840                            PEGASUS_ENABLE_INDICATION_COUNT = true
 841                        endif
 842                        
 843                        ifdef PEGASUS_ENABLE_INDICATION_COUNT
 844                            ifeq ($(PEGASUS_ENABLE_INDICATION_COUNT),true)
 845                                DEFINES += -DPEGASUS_ENABLE_INDICATION_COUNT
 846                            else
 847                                ifneq ($(PEGASUS_ENABLE_INDICATION_COUNT),false)
 848                                    $(error PEGASUS_ENABLE_INDICATION_COUNT \
 849                                      ($(PEGASUS_ENABLE_INDICATION_COUNT)) invalid, must be true or false)
 850                                endif
 851                            endif
 852                        endif
 853                        
 854 karl             1.151 ############################################################################
 855 yi.zhou          1.134 #
 856 jim.wunderlich   1.101 # PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP
 857                        #
 858 karl             1.172 # PEGASUS_DISABLE_SLP has been deprecated. New use model is:
 859 jim.wunderlich   1.101 #
 860 jim.wunderlich   1.112 # Use PEGASUS_ENABLE_SLP=true  to enable  compilation of SLP functions.
 861                        #
 862 kumpf            1.140 # Use PEGASUS_ENABLE_SLP=false to disable compilation of SLP functions.
 863 jim.wunderlich   1.101 #
 864                        # NOTE. Effective with Bug # 2633 some platforms enable SLP.
 865 karl             1.75  # To see which platforms look for platform make files that set
 866 kumpf            1.140 # the variable PEGASUS_ENABLE_SLP.
 867 jim.wunderlich   1.101 #
 868                        #
 869 jim.wunderlich   1.112 
 870 karl             1.39  ifdef PEGASUS_ENABLE_SLP
 871 jim.wunderlich   1.101   ifdef PEGASUS_DISABLE_SLP
 872                            $(error Conflicting defines PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP both set)
 873                          endif
 874 jim.wunderlich   1.112 endif
 875                        
 876                        ifdef PEGASUS_DISABLE_SLP
 877                            $(error PEGASUS_DISABLE_SLP has been deprecated. Please use PEGASUS_ENABLE_SLP=[true/false] )
 878                        
 879                        PEGASUS_ENABLE_SLP=false
 880                        
 881                        endif
 882                        
 883                        ifdef PEGASUS_ENABLE_SLP
 884                          ifeq ($(PEGASUS_ENABLE_SLP),true)
 885 david.dillard    1.65      DEFINES += -DPEGASUS_ENABLE_SLP
 886 jim.wunderlich   1.112   else
 887                            ifneq ($(PEGASUS_ENABLE_SLP),false)
 888                              $(error PEGASUS_ENABLE_SLP ($(PEGASUS_ENABLE_SLP)) invalid, must be true or false)
 889 kumpf            1.140     endif
 890 jim.wunderlich   1.112   endif
 891 karl             1.39  endif
 892 karl             1.36  
 893 jim.wunderlich   1.121 
 894                        ############################################################################
 895                        #
 896                        # PEGASUS_USE_OPENSLP
 897 karl             1.172 
 898                        ## NOTE: This variable has been deprecated and superceeded by the use of
 899                        ## PEGASUS_USE_EXTERNAL_SLP. The use of this variable may be 
 900                        ## removed from Pegasus in future releases. It is converted to the
 901                        ## PEGASUS_USE_EXTERNAL_SLP variable in the following function.
 902                        ## Do not allow PEGASUS_USE_EXTERNAL_SLP if PEGASUS_ENABLE_SLP not set and
 903                        ## insure that PEGASUS_USE_OPENSLP and PEGASUS_USE_EXTERNAL_SLP are not used
 904                        ## simultaneously
 905 jim.wunderlich   1.121 #
 906                        # Environment variable to set openslp as SLP environment to use
 907                        # for SLP Directory and User Agents.
 908                        #
 909                        # Allows enabling use of openslp interfaces for slp instead of the
 910                        # internal pegasus slp agent.  Note that this does not disable the
 911                        # compilation of the internal agent code, etc.  However, it assumes
 912                        # openslp is installed on the platform and changes the interfaces
 913 karl             1.172 # to match this.  
 914 jim.wunderlich   1.121 #
 915                        # Use this variable in conjunction with PEGASUS_OPENSLP_HOME
 916 kumpf            1.140 # to enable OpenSlp as the slp implementation.
 917 jim.wunderlich   1.121 #
 918                        # NOTE that it has no affect if the PEGASUS_ENABLE_SLP etc. flags are not set.
 919                        #
 920                        
 921                        ifdef PEGASUS_USE_OPENSLP
 922 karl             1.172   ifdef PEGASUS_USE_EXTERNAL_SLP
 923                              $(error Both PEGASUS_USE_OPENSLP and PEGASUS_USE_EXTERNAL_SLP defined. \
 924                                  Please use PEGASUS_USE_EXTERNAL_SLP)
 925                          endif
 926                          ## if PEGASUS_USE_OPENSLP used, convert to EXTERNAL_SLP variables
 927                          ## as defined for openslp
 928 s.kodali         1.171   ifeq ($(PEGASUS_USE_OPENSLP),true)
 929                            ifeq ($(PEGASUS_ENABLE_SLP),true)
 930 karl             1.172       PEGASUS_USE_EXTERNAL_SLP=openslp
 931                              PEGASUS_USE_OPENSLP=
 932 jim.wunderlich   1.121     else
 933 karl             1.172       $(error PEGASUS_USE_OPENSLP defined but PEGASUS_ENABLE_SLP is not true. \
 934                                Please correct this inconsistency)
 935 jim.wunderlich   1.121     endif
 936 s.kodali         1.171   else
 937                            ifneq ($(PEGASUS_USE_OPENSLP), false)
 938                              $(error PEGASUS_USE_OPENSLP \
 939                                    ($(PEGASUS_USE_OPENSLP)) \
 940                                    invalid, must be true or false)
 941                            endif
 942                          endif
 943 jim.wunderlich   1.121 endif
 944                        
 945 karl             1.172 #########################################################################
 946 dave.sudlik      1.135 # PEP 267
 947                        # SLP reregistration support.
 948                        # PEGASUS_SLP_REG_TIMEOUT is defined as the SLP registration timeout
 949                        # interval, in minutes.
 950                        ifdef PEGASUS_SLP_REG_TIMEOUT
 951                            ifeq ($(PEGASUS_ENABLE_SLP),true)
 952 karl             1.172         DEFINES += -DPEGASUS_SLP_REG_TIMEOUT=$(PEGASUS_SLP_REG_TIMEOUT)
 953 dave.sudlik      1.135      else
 954 karl             1.172         $(error PEGASUS_SLP_REG_TIMEOUT defined but PEGASUS_ENABLE_SLP is not true. \
 955                                    Please correct this inconsistency)
 956 dave.sudlik      1.135      endif
 957                         endif
 958 jim.wunderlich   1.121 
 959                        ############################################################################
 960                        #
 961 karl             1.172 # PEGASUS_USE_EXTERNAL_SLP
 962                        
 963                        # Environment variable to set an external slp implementation as the SLP
 964                        # environment to use for SLP Directory Agents.
 965                        
 966                        # This allows setting any one of several possible external SLP SAs as the
 967                        # interface for the SLP provider to communicate with in managing SLP templates
 968                        # in place of the internal SLP agent provided with Pegasus.
 969                        # Note: This does not disable the compilation of the internal agent code since
 970                        # this is used for the SLP UA defined with the pegasus client.
 971                        # Pegasus assumes that the external SLP defined is installed on the platform
 972                        # and running when pegasus is started. It changes the interfaces from the SLP
 973                        # provider to match the defined SLP implementation.
 974                        
 975                        # This environment variable superceedes the use of PEGASUS_USE_OPENSLP since
 976                        # openslp is considered one of the valid external SLP environments usable by
 977                        # pegasus.
 978                        
 979                        # The variable uses the value component to define a name for the external SLP
 980                        # environment that must match one of the names defined below.
 981                        
 982 karl             1.172 # This variable is not allowed if the PEGASUS_ENABLE_SLP flag is not set.
 983                        
 984                        # Allow only predefined string values for the variable corresponding
 985                        # to external slp types that pegasus knows.
 986                        # Valid types are openslp (1) and solarisslp (2)
 987                        EXTERNAL_SLP_TYPES = openslp solarisslp
 988                        
 989                        ifdef PEGASUS_USE_EXTERNAL_SLP
 990                          ifeq ($(PEGASUS_ENABLE_SLP),true)
 991                            ifeq ($(PEGASUS_USE_EXTERNAL_SLP),openslp)
 992                              DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=1
 993                            else
 994                              ifeq ($(PEGASUS_USE_EXTERNAL_SLP),solarisslp)
 995                                 DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=2
 996                              else
 997                                $(error PEGASUS_USE_EXTERNAL_SLP value ($(PEGASUS_USE_EXTERNAL_SLP)) \
 998                                  invalid. It must be one of valid SLP external types \
 999                                  ($(EXTERNAL_SLP_TYPES)) )
1000                              endif
1001                            endif
1002                          endif
1003 karl             1.172 endif
1004                        
1005                        ############################################################################
1006                        #
1007 jim.wunderlich   1.121 # PEGASUS_OPENSLP_HOME
1008                        #
1009 karl             1.172 # PEGASUS_OPENSLP_HOME superceeded by PEGASUS_OPEN_EXTERNAL_SLP_HOME. If
1010                        # PEGASUS_OPENSLP_HOME is encountered it will create PEGASUS_OPEN_EXTERNAL_SLP_HOME
1011                        #
1012 jim.wunderlich   1.121 # Environment variable to set home location for OpenSLP include and library
1013 kumpf            1.140 # files if they are located somewhere other than /usr/include and /usr/lib.
1014 jim.wunderlich   1.121 #
1015                        # PEGASUS_USE_OPENSLP must also be defined for this environment variable
1016                        # to have any effect.
1017                        #
1018 kumpf            1.140 # This is the directory level within which both the include and lib
1019                        # directories holding the OpenSLP files will be found.
1020 jim.wunderlich   1.121 #
1021 kumpf            1.140 # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
1022 jim.wunderlich   1.121 #     then this environment variable should be set to /opt/OpenSLP.
1023                        #
1024                        
1025 karl             1.172 ifdef PEGASUS_OPENSLP_HOME
1026                          ifdef PEGASUS_OPEN_EXTERNAL_SLP_HOME
1027                            $(error Both PEGASUS_OPENSLP_HOME and PEGASUS_OPEN_EXTERNAL_SLP_HOME defined. \
1028                              Please use PEGASUS_OPEN_EXTERNAL_SLP_HOME)
1029                          else
1030                              PEGASUS_EXTERNAL_SLP_HOME=$(PEGASUS_OPENSLP_HOME)
1031                           endif
1032                        endif
1033                        ############################################################################
1034                        #
1035                        # PEGASUS_EXTERNAL_SLP_HOME
1036                        #
1037                        # Environment variable to set home location for External SLP include and library
1038                        # files if they are located somewhere other than /usr/include and /usr/lib.
1039                        #
1040                        # This variable superceeds PEGASUS_OPENSLP_HOME to match the use of
1041                        # PEGASUS_USE_EXTERNAL_SLP variable.
1042                        #
1043                        # PEGASUS_USE_EXTERNAL_SLP must also be defined for this environment variable
1044                        # to have any effect.
1045                        #
1046 karl             1.172 # This is the directory level within which both the include and lib
1047                        # directories holding the OpenSLP files will be found.
1048                        #
1049                        # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
1050                        #     then this environment variable should be set to /opt/OpenSLP.
1051                        #
1052 jim.wunderlich   1.121 
1053 karl             1.172 ############################################################################
1054 sushma.fernandes 1.114 #
1055 kumpf            1.140 # Enable this flag to allow the handshake to continue regardless of verification result
1056 sushma.fernandes 1.114 #
1057                        ifdef PEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
1058                          DEFINES += -DPEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
1059                        endif
1060                        
1061 karl             1.151 ############################################################################
1062                        #
1063                        # PEGASUS_ENABLE_INTEROP_PROVIDER
1064                        # Enables the interop provider AND the server profile.
1065                        # initially this was activated by setting either the perfinst or slp enable
1066                        # flags.  This allows activating this function without any either perfinst or
1067                        # slp enabled.  Note that if either of these are enabled, this funtion is also
1068                        # enabled
1069                        
1070                        ## if either slp or perfinst are enabled and this is false, flag error
1071                        ## This gets messy because should account for both postive and negative on
1072                        ## interop so we don't get multiples.
1073                        
1074                        ifdef PEGASUS_ENABLE_SLP
1075                            ifeq ($(PEGASUS_ENABLE_SLP),true)
1076                                ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1077                                    PEGASUS_ENABLE_INTEROP_PROVIDER = true
1078                                else
1079                                    ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1080                                        $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if SLP enabled)
1081                                    endif
1082 karl             1.151         endif
1083                            endif
1084                        endif
1085                        
1086                        ## if PERFINST enabled, set to force interop.
1087                        ifndef PEGASUS_DISABLE_PERFINST
1088                            ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1089                                PEGASUS_ENABLE_INTEROP_PROVIDER = true
1090                            else
1091                                ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1092                                    $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if PERFINST enabled)
1093                                endif
1094                            endif
1095                        endif
1096                        
1097 venkat.puvvada   1.165 #
1098                        ## PEP 323, DMTF Indications Profile support, stage 1
1099                        #
1100                        ifdef PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT
1101                            ifeq ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT), true)
1102                                ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1103                                    PEGASUS_ENABLE_INTEROP_PROVIDER = true
1104                                else
1105                                    ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1106                                        $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if DMTF Indications profile support is enabled)
1107                                    endif
1108                                endif
1109                                DEFINES += -DPEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT
1110                            else
1111                                ifneq ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT),false)
1112                                    $(error PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT)) invalid, must be true or false)
1113                                endif
1114                            endif
1115                        endif
1116 karl             1.151 
1117 venkat.puvvada   1.175 ifdef PEGASUS_ENABLE_INTEROP_PROVIDER
1118                            ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),true)
1119                                DEFINES += -DPEGASUS_ENABLE_INTEROP_PROVIDER
1120                            else
1121                                ifneq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1122                                    $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true or false)
1123                                endif
1124                            endif
1125                        endif
1126                        
1127                        
1128 karl             1.151 ############################################################################
1129 karl             1.60  # set PEGASUS_DEBUG into the DEFINES if it exists.
1130                        # Note that this flag is the general separator between
1131                        # debug compiles and non-debug compiles and controls both
1132                        # the use of any debug options on compilers and linkers
1133                        # and general debug support that we want to be turned on in
1134 chip             1.76  # debug mode.
1135 karl             1.60  ifdef PEGASUS_DEBUG
1136 david.dillard    1.65      DEFINES += -DPEGASUS_DEBUG
1137 kumpf            1.88  
1138                            # Indications debugging options
1139                            ifdef PEGASUS_INDICATION_PERFINST
1140                                DEFINES += -DPEGASUS_INDICATION_PERFINST
1141                            endif
1142                        
1143                            ifdef PEGASUS_INDICATION_HASHTRACE
1144                                DEFINES += -DPEGASUS_INDICATION_HASHTRACE
1145                            endif
1146 kumpf            1.131 
1147                            # Setup the conditional compile for client displays.
1148                            ifdef PEGASUS_CLIENT_TRACE_ENABLE
1149                                DEFINES += -DPEGASUS_CLIENT_TRACE_ENABLE
1150                            endif
1151 karl             1.60  endif
1152                        
1153 chuck            1.42  # compile in the experimental APIs
1154 david.dillard    1.65  DEFINES += -DPEGASUS_USE_EXPERIMENTAL_INTERFACES
1155 chuck            1.42  
1156 kumpf            1.93  # Ensure that the deprecated interfaces are defined in the Pegasus libraries.
1157                        # One may wish to disable these interfaces if binary compatibility with
1158                        # previous Pegasus releases is not required.
1159                        ifndef PEGASUS_DISABLE_DEPRECATED_INTERFACES
1160                            DEFINES += -DPEGASUS_USE_DEPRECATED_INTERFACES
1161                        endif
1162                        
1163 w.white          1.57  # Set compile flag to control compilation of CIMOM statistics
1164 karl             1.73  ifdef PEGASUS_DISABLE_PERFINST
1165 marek            1.136     DEFINES += -DPEGASUS_DISABLE_PERFINST
1166 w.white          1.57  endif
1167 kumpf            1.56  
1168 karl             1.96  # Set compile flag to control compilation of SNIA Extensions
1169                        ifdef PEGASUS_SNIA_EXTENSIONS
1170 marek            1.136     DEFINES += -DPEGASUS_SNIA_EXTENSIONS
1171 karl             1.96  endif
1172                        
1173 denise.eckstein  1.119 ifdef PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
1174                            ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
1175 marek            1.136         DEFINES += -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
1176 denise.eckstein  1.119     else
1177                                ifneq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), false)
1178                                    $(error PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER \
1179                                         ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER)) invalid, \
1180                                          must be true or false)
1181                                endif
1182                            endif
1183                        endif
1184                        
1185 mark.hamzy       1.124 ifdef PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
1186                            ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
1187 marek            1.136         DEFINES += -DPEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
1188 mark.hamzy       1.124     else
1189                                ifneq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), false)
1190                                    $(error PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER \
1191                                         ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER)) invalid, \
1192                                          must be true or false)
1193                                endif
1194                            endif
1195                        endif
1196                        
1197 kumpf            1.95  # Allow remote CMPI functionality to be enabled
1198                        ifdef PEGASUS_ENABLE_REMOTE_CMPI
1199 marek            1.136     DEFINES += -DPEGASUS_ENABLE_REMOTE_CMPI
1200 kumpf            1.95  endif
1201                        
1202 kumpf            1.56  ############################################################
1203                        #
1204                        # Set any vendor-specific compile flags
1205                        #
1206                        ############################################################
1207                        
1208                        ifdef PEGASUS_VENDOR_HP
1209 david.dillard    1.65      DEFINES+= -DPEGASUS_VENDOR_HP
1210 kumpf            1.56  endif
1211                        
1212 chip             1.76  
1213 karl             1.17  ############################################################
1214                        #
1215                        # Set up other Make Variables that depend on platform config files
1216                        #
1217                        ############################################################
1218                        
1219                        # This is temporary until we end up with a better place to
1220                        # put this variable
1221                        # Makefiles can do directory remove with
1222                        # $(RMREPOSITORY) repositoryname
1223                        #
1224                        RMREPOSITORY = $(RMDIRHIER)
1225                        
1226 w.otsuka         1.63  ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
1227 marek            1.136     DEFINES += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
1228 w.otsuka         1.62  endif
1229                        
1230                        ifdef PEGASUS_USE_RELEASE_DIRS
1231 marek            1.136     DEFINES += -DPEGASUS_USE_RELEASE_DIRS
1232 w.otsuka         1.62  endif
1233 mday             1.27  
1234 denise.eckstein  1.110 ifdef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1235 marek            1.136     DEFINES += -DPEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1236 denise.eckstein  1.110 endif
1237                        
1238 kumpf            1.64  # Unless otherwise specified, Pegasus libraries go in $(PEGASUS_HOME)/lib
1239                        ifndef PEGASUS_DEST_LIB_DIR
1240 david.dillard    1.65      PEGASUS_DEST_LIB_DIR = lib
1241 kumpf            1.64  endif
1242 mday             1.28  
1243 gs.keenan        1.77  ifeq ($(OS),VMS)
1244                         DEFINES += -DPEGASUS_DEST_LIB_DIR="""$(PEGASUS_DEST_LIB_DIR)"""
1245                        else
1246                         DEFINES += -DPEGASUS_DEST_LIB_DIR=\"$(PEGASUS_DEST_LIB_DIR)\"
1247                        endif
1248                        
1249 w.otsuka         1.79  ################################################################################
1250                        ##
1251 mike             1.105 ## PEGASUS_CLASS_CACHE_SIZE
1252                        ##
1253                        ##     This environment variable gives the size of the class cache used by
1254                        ##     the CIM repository. When it is undefined, the size defaults to something
1255                        ##     relatively small (see src/Pegasus/Repository/CIMRepository.cpp). If
1256                        ##     defined, it gives the size of the class cache. If it is 0 , the class
1257                        ##     cache is not defined compiled in at all.
1258                        ##
1259                        ################################################################################
1260                        
1261                        ifdef PEGASUS_CLASS_CACHE_SIZE
1262                        DEFINES += -DPEGASUS_CLASS_CACHE_SIZE=$(PEGASUS_CLASS_CACHE_SIZE)
1263                        endif
1264                        
1265                        ################################################################################
1266                        ##
1267 w.otsuka         1.79  ## Additional build flags passed in through environment variables.
1268                        ## These flags are added to the compile/link commands.
1269                        ##
1270                        ################################################################################
1271                        
1272                        ifdef PEGASUS_EXTRA_CXX_FLAGS
1273                            EXTRA_CXX_FLAGS = $(PEGASUS_EXTRA_CXX_FLAGS)
1274                        endif
1275                        
1276                        ifdef PEGASUS_EXTRA_C_FLAGS
1277                            EXTRA_C_FLAGS = $(PEGASUS_EXTRA_C_FLAGS)
1278                        endif
1279                        
1280                        ifdef PEGASUS_EXTRA_LINK_FLAGS
1281                            EXTRA_LINK_FLAGS = $(PEGASUS_EXTRA_LINK_FLAGS)
1282                        endif
1283                        
1284 mike             1.126 ##==============================================================================
1285                        ##
1286                        ## By definining PEGASUS_USE_STATIC_LIBRARIES in the environment and STATIC
1287                        ## in the Makefile, a static library is produced rather than a shared one.
1288                        ## PEGASUS_USE_STATIC_LIBRARIES should be "true" or "false".
1289                        ##
1290                        ##==============================================================================
1291                        
1292                        ifdef PEGASUS_USE_STATIC_LIBRARIES
1293                          ifeq ($(PEGASUS_USE_STATIC_LIBRARIES),true)
1294                          else
1295                            ifneq ($(PEGASUS_USE_STATIC_LIBRARIES),false)
1296                              $(error PEGASUS_USE_STATIC_LIBRARIES ($(PEGASUS_USE_STATIC_LIBRARIES)) invalid, must be true or false)
1297 kumpf            1.140     endif
1298                          endif
1299                        endif
1300                        
1301                        ##==============================================================================
1302                        ##
1303                        ## PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1304                        ##
1305                        ##     Enables privilege separation support (uses the executor process to
1306                        ##     perform privileged operations).
1307                        ##
1308                        ##==============================================================================
1309                        
1310                        ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1311                          ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1312                            DEFINES += -DPEGASUS_ENABLE_PRIVILEGE_SEPARATION
1313                          else
1314                            ifneq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),false)
1315                              $(error PEGASUS_ENABLE_PRIVILEGE_SEPARATION \
1316                                ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION)) invalid, must be true or false)
1317                            endif
1318 kumpf            1.140   endif
1319                        
1320 kumpf            1.148   ## Defines the user context of the cimservermain process when privilege
1321 kumpf            1.140   ## separation is enabled.
1322 kumpf            1.148   PEGASUS_CIMSERVERMAIN_USER = cimsrvr
1323 kumpf            1.141   DEFINES += -DPEGASUS_CIMSERVERMAIN_USER=\"$(PEGASUS_CIMSERVERMAIN_USER)\"
1324 mike             1.126 endif
1325 mark.hamzy       1.127 
1326 kumpf            1.162 
1327                        ##==============================================================================
1328                        ##
1329                        ## PEGASUS_ENABLE_PROTOCOL_WSMAN
1330                        ##
1331                        ##     Enables the WS-Management protocol in the CIM Server.
1332                        ##
1333                        ##==============================================================================
1334                        
1335                        ifndef PEGASUS_ENABLE_PROTOCOL_WSMAN
1336                            PEGASUS_ENABLE_PROTOCOL_WSMAN = false
1337                        endif
1338                        
1339                        ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
1340                            DEFINES += -DPEGASUS_ENABLE_PROTOCOL_WSMAN
1341                        else
1342                            ifneq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),false)
1343                                $(error PEGASUS_ENABLE_PROTOCOL_WSMAN ($(PEGASUS_ENABLE_PROTOCOL_WSMAN)) invalid, must be true or false)
1344                            endif
1345                        endif
1346                        
1347 kumpf            1.170 ##==============================================================================
1348                        ##
1349                        ## PEGASUS_PAM_AUTHENTICATION
1350                        ##
1351                        ##==============================================================================
1352                        
1353                        ifdef PEGASUS_PAM_AUTHENTICATION
1354                            # Compile in the code required for PAM authentication
1355                            # and compile out the code that uses the password file.
1356                            DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
1357                        
1358                            # Link with libpam only where it is needed.
1359                            ifeq ($(HAS_PAM_DEPENDENCY),true)
1360                                SYS_LIBS += -lpam
1361                            endif
1362                        endif
1363 kumpf            1.162 
1364 kumpf            1.140 ##==============================================================================
1365                        ##
1366                        ## PEGASUS_USE_PAM_STANDALONE_PROC
1367                        ##
1368                        ##==============================================================================
1369                        
1370                        ifdef PEGASUS_USE_PAM_STANDALONE_PROC
1371                          DEFINES += -DPEGASUS_USE_PAM_STANDALONE_PROC
1372                        endif
1373                        
1374                        ##==============================================================================
1375 mark.hamzy       1.127 
1376                        ifndef PEGASUS_JAVA_CLASSPATH_DELIMITER
1377                            PEGASUS_JAVA_CLASSPATH_DELIMITER = :
1378                        endif
1379 mark.hamzy       1.132 
1380                        ifndef PEGASUS_JVM
1381                        	PEGASUS_JVM = sun
1382                        endif
1383                        ifeq ($(PEGASUS_JVM),gcj)
1384                        	PEGASUS_JAVA_COMPILER		= gcj -C
1385                        	PEGASUS_JAVA_JAR		= fastjar
1386                        	PEGASUS_JAVA_INTERPRETER	= gij
1387                        else
1388                        	PEGASUS_JAVA_COMPILER		= javac -target 1.4 -source 1.4
1389                        	PEGASUS_JAVA_JAR		= jar
1390                        	PEGASUS_JAVA_INTERPRETER	= java
1391                        endif
1392 dmitry.mikulin   1.155 
1393                        # Disable client timeouts when we're doing a valgrind build
1394 kumpf            1.157 ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
1395 dmitry.mikulin   1.156     DEFINES += -DPEGASUS_DISABLE_CLIENT_TIMEOUT -DPEGASUS_TEST_VALGRIND
1396 dmitry.mikulin   1.155 endif
1397                        
1398 s.kodali         1.161 ## ======================================================================
1399                        ##
1400                        ## PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1401                        ## This controls allowing the path specified in the Location property of 
1402                        ## PG_ProviderModule class.
1403                        ##
1404                        ##   Set to "true", It allows the absolute path specified in the Location property
1405                        ##   of PG_ProviderModule class. Otherwise it does not allow the absolute path.
1406                        ##   see bug 7289 for background information concerning this config variable.
1407                        ##
1408                        
1409                        ifndef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1410                            PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE=false
1411                        endif
1412                        
1413                        ifdef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1414                          ifeq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),true)
1415                            DEFINES += -DPEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1416                          else
1417                            ifneq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),false)
1418                              $(error PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE \
1419 s.kodali         1.161             ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE)) \
1420                                    invalid, must be true or false)
1421                            endif
1422                          endif
1423                        endif
1424                        
1425 mike             1.178 ##==============================================================================
1426                        ##
1427 mike             1.180 ## PEGASUS_ENABLE_PROTOCOL_INTERNAL_BINARY
1428 mike             1.178 ##
1429                        ##     Enable binary protocol between cimserver and out-of-process providers.
1430                        ##     By default this feature is enabled.
1431                        ##
1432                        ##==============================================================================
1433                        
1434 mike             1.180 ifndef PEGASUS_ENABLE_PROTOCOL_INTERNAL_BINARY
1435                          PEGASUS_ENABLE_PROTOCOL_INTERNAL_BINARY=true
1436 mike             1.178 endif
1437                        
1438 mike             1.180 ifeq ($(PEGASUS_ENABLE_PROTOCOL_INTERNAL_BINARY),true)
1439                          DEFINES += -DPEGASUS_ENABLE_PROTOCOL_INTERNAL_BINARY
1440 mike             1.178 else
1441 mike             1.180   ifneq ($(PEGASUS_ENABLE_PROTOCOL_INTERNAL_BINARY),false)
1442                            $(error "PEGASUS_ENABLE_PROTOCOL_INTERNAL_BINARY must be true or false")
1443 mike             1.178   endif
1444                        endif
1445                        
1446                        ##==============================================================================
1447                        ##
1448 mike             1.180 ## PEGASUS_ENABLE_PROTOCOL_BINARY
1449 mike             1.178 ##
1450 mike             1.180 ##     Enables the binary protocol between clients and cimserver. With provider
1451                        ##     agent, both requests and responses are binary. For "ordinary" clients,
1452                        ##     requests are XML and responses are binary. By default, this only affects
1453                        ##     the protocol used over local domain sockets.
1454 mike             1.178 ##
1455                        ##==============================================================================
1456                        
1457 mike             1.180 ifndef PEGASUS_ENABLE_PROTOCOL_BINARY
1458                          PEGASUS_ENABLE_PROTOCOL_BINARY=false
1459 mike             1.178 endif
1460                        
1461 mike             1.180 ifeq ($(PEGASUS_ENABLE_PROTOCOL_BINARY),true)
1462                          DEFINES += -DPEGASUS_ENABLE_PROTOCOL_BINARY
1463 mike             1.178 else
1464 mike             1.180   ifneq ($(PEGASUS_ENABLE_PROTOCOL_BINARY),false)
1465                            $(error "PEGASUS_ENABLE_PROTOCOL_BINARY must be true or false")
1466 mike             1.178   endif
1467                        endif
1468 denise.eckstein  1.179 
1469                        ## ======================================================================
1470                        ##
1471                        ## PLATFORM_CORE_PATTERN
1472                        ## This variable describes the pattern used to search for core files.
1473                        ## If not defined, this variable will be set to core*.
1474                        ## Only wildcard characters supported by the make wildcard function
1475                        ## may be used.
1476                        
1477                        ifndef PLATFORM_CORE_PATTERN
1478                            PLATFORM_CORE_PATTERN = core*
1479                        endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2