(file) Return to configure CVS log (file) (dir) Up to [Pegasus] / pegasus_unsupported / config

  1 mike  1.2 #!/bin/sh
  2           
  3           #//%2006///////////////////////////////////////////////////////////////////////
  4           #//
  5           #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  6           #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  7           #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  8           #// IBM Corp.; EMC Corporation, The Open Group.
  9           #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
 10           #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 11           #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12           #// EMC Corporation; VERITAS Software Corporation; The Open Group.
 13           #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 14           #// EMC Corporation; Symantec Corporation; The Open Group.
 15           #//
 16           #// Permission is hereby granted, free of charge, to any person obtaining a copy
 17           #// of this software and associated documentation files (the "Software"), to
 18           #// deal in the Software without restriction, including without limitation the
 19           #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 20           #// sell copies of the Software, and to permit persons to whom the Software is
 21           #// furnished to do so, subject to the following conditions:
 22 mike  1.2 #// 
 23           #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 24           #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 25           #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 26           #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 27           #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 28           #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 29           #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 30           #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 31           #//
 32           #//=============================================================================
 33 mike  1.1 
 34           ##==============================================================================
 35           ##
 36 mike  1.2 ## Check for existence of pegasus config.mak. If this does not exist, it means
 37           ## that the distribution is incomplete or that the configure file has been run
 38           ## from the wrong directory.
 39 mike  1.1 ##
 40           ##==============================================================================
 41           
 42 mike  1.2 config=mak/config.mak
 43           
 44           if [ ! -f "$config" ]; then
 45 mike  1.4     echo "$0: Error: ./configure must be run from root of Pegasus distribution."
 46 mike  1.2     echo
 47 mike  1.1     exit 1
 48           fi
 49           
 50           ##==============================================================================
 51           ##
 52 mike  1.2 ## Collection command line options.
 53 mike  1.1 ##
 54           ##==============================================================================
 55           
 56 mike  1.2 help=
 57 mike  1.1 
 58           for opt
 59           do
 60           
 61             optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
 62           
 63             case $opt in
 64           
 65 mike  1.2     -h | --help)
 66 mike  1.1       help=1
 67                 ;;
 68           
 69 mike  1.11     --platform=*)
 70                  platform=$optarg
 71 mike  1.1        ;;
 72            
 73                --prefix=*)
 74 mike  1.2        prefix=$optarg
 75 mike  1.1        ;;
 76            
 77                --bindir=*)
 78                  bindir=$optarg
 79                  ;;
 80            
 81                --sbindir=*)
 82                  sbindir=$optarg
 83                  ;;
 84            
 85 mike  1.2      -libdir=*)
 86 mike  1.1        libdir=$optarg
 87                  ;;
 88            
 89                --includedir=*)
 90 mike  1.2        incdir=$optarg
 91 mike  1.1        ;;
 92            
 93                --datadir=*)
 94                  datadir=$optarg
 95                  ;;
 96            
 97                --enable-debug)
 98                  enable_debug=1
 99                  ;;
100            
101 mike  1.17     --enable-mrr-generation)
102                  enable_mrr_generation=1
103                  ;;
104            
105                --enable-mrr)
106                  enable_mrr=1
107                  ;;
108            
109 mike  1.2      --disable-oop)
110                  disable_oop=1
111                  ;;
112            
113 mike  1.15     --disable-trace)
114                  disable_trace=1
115                  ;;
116            
117 mike  1.8      --disable-ipv6)
118                  disable_ipv6=1
119                  ;;
120            
121 mike  1.7      --disable-trace)
122                  disable_trace=1
123                  ;;
124            
125                --disable-tests)
126                  disable_tests=1
127                  ;;
128            
129 mike  1.5      --enable-pam)
130                  enable_pam=1
131 mike  1.2        ;;
132            
133 karl  1.13     --enable-pam-standalone)
134                  enable_pam_standalone=1
135                  ;;
136            
137 mike  1.2      --with-pam=*)
138                  with_pam=$optarg
139                  ;;
140            
141                --with-pam-mod=*)
142                  with_pam_mod=$optarg
143 mike  1.1        ;;
144            
145 mike  1.2      --enable-ssl)
146                  enable_ssl=1
147 mike  1.1        ;;
148            
149 mike  1.5      --enable-slp)
150                  enable_slp=1
151                  ;;
152            
153                --enable-openslp)
154                  enable_openslp=1
155                  ;;
156            
157                --with-openslp=*)
158                  with_openslp=$optarg
159                  ;;
160 karl  1.20     
161                --with-external-slp=*)
162                  with_external_slp=$optarg
163                  ;;
164                
165                --with-external-slp-dir=*)
166                  with_external_slp-dir=$optarg
167                  ;;
168 mike  1.5  
169                --disable-cmpi)
170                  disable_cmpi=1
171                  ;;
172            
173 mike  1.2      --with-ssl=*)
174                  with_ssl=$optarg
175 mike  1.1        ;;
176            
177 mike  1.2      --enable-binary-repository)
178                  enable_binary_repository=1
179 mike  1.1        ;;
180            
181 mike  1.2      --enable-compressed-repository)
182                  enable_compressed_repository=1
183 mike  1.1        ;;
184            
185 karl  1.13     --with-solaris-defaults)
186                  with_solaris_defaults=1
187                  ;;
188            
189 karl  1.20     --with-solaris-nevada-defaults)
190                  with_solaris_nevada_defaults=1
191                  ;;
192 mike  1.17     --solaris)
193                  with_solaris_defaults=1
194                  ;;
195            
196 mike  1.15     --with-vxworks-xscale-defaults)
197                  with_vxworks_xscale_defaults=1
198                  ;;
199            
200 mike  1.17     --vxworks-xscale)
201 mike  1.15       with_vxworks_xscale_defaults=1
202                  ;;
203            
204 karl  1.14     --with-test-user=*)
205                  with_test_user=$optarg
206                  ;;
207            
208 mike  1.1      *)
209                  echo "$0: unknown option:  $opt"
210                  exit 1
211                  ;;
212            
213              esac
214            done
215            
216            ##==============================================================================
217            ##
218 mike  1.2  ## Print help message if --help given on command line.
219 mike  1.1  ##
220            ##==============================================================================
221            
222            if [ "$help" = "1" ]; then
223 mike  1.2  cat<<END
224            
225            Usage: ./configure [OPTION]...
226            
227 mike  1.11 Configures OpenPegasus build options.
228 mike  1.2  
229            Configure examples.
230                $ ./configure
231 mike  1.11     $ make
232 mike  1.2  
233            Options:
234                --help
235                    Print this help message.
236 mike  1.11     --platform=PLATFORM
237                    Build package for this PLATFORM, which must be one of the following:
238                        LINUX_IX86_GNU
239                        LINUX_X86_64_GNU
240                        SOLARIS_SPARC_64_CC
241                        SOLARIS_X86_64_CC
242 mike  1.15             VXWORKS_XSCALE_GNU
243 mike  1.2      --prefix=DIR
244                    Install under DIR
245                --bindir=DIR
246                    Install programs here.
247                --sbindir=DIR
248                    Install super-user programs here.
249                --libdir=DIR
250                    Install libraries here.
251                --incluedir=DIR
252                    Install include files here.
253                --datadir=DIR
254                    Install data files here.
255                --enable-debug
256                    Build for debug.
257 mike  1.17     --enable-mrr-generation
258                    Enable memory-resident repository generation (in cimmofl).
259                --enable-mrr
260                    Enable the memory-resident repository.
261 mike  1.2      --disable-oop
262                    Disable out-of-process providers.
263 mike  1.15     --disable-trace
264                    Disable tracing facility.
265 mike  1.8      --disable-ipv6
266                    Disable IPV6 support.
267 mike  1.7      --disable-trace
268                    Disable tracing facility
269                --disable-tests
270                    Disable build of most of the tests.
271 mike  1.5      --enable-pam
272 karl  1.13         Enable PAM authentication.
273                --enable-pam-standalone
274                    Use PAM standalone cimservera program (implies --enable-pam).
275 mike  1.2      --with-pam=DIR
276                    Specify an alternative PAM directory location (defaults to /etc/pam.d).
277 karl  1.14     --with-test-user=USER
278                    The USER for user-related tests (must refer to actual OS user).
279 mike  1.2      --enable-ssl
280                    Enable SSL feature
281 mike  1.6      --with-ssl=DIR
282                    Find SSL under DIR (e.g., --with-ssl=/usr).
283 mike  1.5      --enable-slp
284                    Enable SLP feature
285                --enable-openslp
286 karl  1.13         Enable OpenSLP feature (implies --enable-slp).
287 mike  1.5      --with-openslp=DIR
288                    Find OpenSLP installation under DIR (e.g., --with-openslp=/usr).
289 karl  1.20     --with-external-slp=TYPE
290                    Use external slp defined by keyword (e.g., --with-external-slp=openslp).
291                    Superceedes --enable-openslp.
292                --with-external-slp-dir=DIR
293                    Find external SLP include and lib directories under DIR
294                    (e.g., --with-external-slp=/usr).  Default is /usr
295 mike  1.5      --disable-cmpi
296                    Disable CMPI provider support
297 mike  1.2      --enable-binary-repository
298                    Enable the binary repository feature, resulting in a smaller CIM 
299                    repository disk footprint.
300 karl  1.13     --with-solaris-defaults
301 karl  1.20         Enables reasonable defaults for the Solaris platform. These
302                    includes:
303                        --enable-ssl
304                        --enable-openslp
305                        --enable-pam-standalone
306                --with-solaris-nevada-defaults
307 karl  1.13         Enables reasonable defaults for the Solaris Nevada platform. These
308                    includes:
309                        --enable-ssl
310 karl  1.20             --with-external-slp=solarisslp
311 karl  1.13             --enable-pam-standalone
312 mike  1.15     --with-vxworks-xscale-defaults
313                    Enables reasonable defaults for the VXWorks/XScale platform.
314                    includes:
315                        --platform=VXWORKS_XSCALE_GNU
316                        --disable-oop
317                        --disable-trace
318                        --enable-ssl
319 mike  1.2  END
320            exit
321 mike  1.1  fi
322            
323            ##==============================================================================
324            ##
325 karl  1.13 ## Resolve platform specific default options.
326            ##
327            ##==============================================================================
328            
329            if [ "$with_solaris_defaults" = 1 ]; then
330                enable_ssl=1
331                enable_openslp=1
332                enable_pam_standalone=1
333            fi
334 karl  1.20 if [ "$with_solaris_nevada_defaults" = 1 ]; then
335                enable_ssl=1
336                with_external_slp=solarisslp
337                enable_pam_standalone=1
338            fi
339 mike  1.15 if [ "$with_vxworks_xscale_defaults" = 1 ]; then
340                platform=VXWORKS_XSCALE_GNU
341                disable_oop=1
342                disable_trace=1
343                enable_ssl=1
344 mike  1.17     enable_slp=1
345                disable_cmpi=1
346                enable_mrr=1
347 mike  1.15 fi
348            
349 karl  1.13 ##==============================================================================
350            ##
351 mike  1.11 ## Check the --platform option.
352            ##
353            ##==============================================================================
354            
355            if [ ! -z "$platform" ]; then
356                case "$platform" in
357                    LINUX_IX86_GNU)
358                        ;;
359                    LINUX_X86_64_GNU)
360                        ;;
361                    SOLARIS_SPARC_64_CC)
362                        ;;
363 mike  1.19         SOLARIS_SPARC_CC)
364                        ;;
365 mike  1.11         SOLARIS_X86_64_CC)
366                        ;;
367 mike  1.19         SOLARIS_IX86_CC)
368                        ;;
369 mike  1.15         VXWORKS_XSCALE_GNU)
370                        ;;
371 mike  1.11         *)
372                        echo "$0: Unknown platform: --platform=$platform"
373                        echo ""
374                        exit 1
375                        ;;
376                esac
377            fi
378            
379            ##==============================================================================
380            ##
381 mike  1.5  ## Guess the platform.
382 mike  1.1  ##
383            ##==============================================================================
384            
385 mike  1.11 if [ -z "$platform" ]; then
386 mike  1.2  
387              machine=`(uname -m) 2>/dev/null` || machine=unknown
388              system=`(uname -s) 2>/dev/null`  || system=unknown
389              release=`(uname -r) 2>/dev/null` || release=unknown
390              version=`(uname -v) 2>/dev/null` || version=unknown
391              token="$machine:$system:$release:$version"
392            
393              case "$token" in
394            
395                i686:Linux:*:*)
396 mike  1.11       platform=LINUX_IX86_GNU
397                  libbase=lib
398 mike  1.2        ;;
399            
400                x86_64:Linux:*:*)
401 mike  1.11       platform=LINUX_X86_64_GNU
402                  libbase=lib64
403 mike  1.2        ;;
404 mike  1.1  
405 mike  1.11     sun*:SunOS:*:*)
406                  platform=SOLARIS_SPARC_64_CC
407                  libbase=lib/64
408 mike  1.2        ;;
409 mike  1.1  
410 mike  1.11     i86pc:SunOS:*:*)
411                  platform=SOLARIS_X86_64_CC
412                  libbase=lib/64
413 mike  1.5        ;;
414            
415 mike  1.2      *)
416 mike  1.11         echo "$0: Failed to guess platform"
417 mike  1.2          echo "  machine=$machine"
418                    echo "  system=$system"
419                    echo "  release=$release"
420                    echo "  version=$version"
421                    exit 1
422                    ;;
423            
424              esac
425 mike  1.1  fi
426            
427            ##==============================================================================
428            ##
429 mike  1.2  ## Resolve default directory names.
430 mike  1.1  ##
431            ##==============================================================================
432            
433 mike  1.2  # --prefix:
434            
435            if [ -z "$prefix" ]; then
436              prefix=/usr/local
437            fi
438            
439            # --bindir:
440            
441 mike  1.1  if [ -z "$bindir" ]; then
442              bindir=$prefix/bin
443            fi
444            
445 mike  1.2  # --sbindir:
446            
447 mike  1.1  if [ -z "$sbindir" ]; then
448              sbindir=$prefix/sbin
449            fi
450            
451 mike  1.2  # --libdir:
452            
453 mike  1.1  if [ -z "$libdir" ]; then
454 mike  1.2    libdir=$prefix/$libbase
455 mike  1.1  fi
456            
457 mike  1.2  # --includedir:
458            
459 mike  1.1  if [ -z "$includedir" ]; then
460              includedir=$prefix/include
461            fi
462            
463 mike  1.2  # --datadir:
464            
465 mike  1.1  if [ -z "$datadir" ]; then
466              datadir=$prefix/share
467            fi
468            
469 mike  1.2  if [ -z "$with_pam" ]; then
470              with_pam=/etc/pam.d
471            fi
472            
473 karl  1.14 if [ -z "$with_test_user" ]; then
474              with_test_user=guest
475            fi
476            
477 mike  1.1  ##==============================================================================
478            ##
479 karl  1.10 ## Verify --with-ssl directory.
480 mike  1.1  ##
481            ##==============================================================================
482            
483 karl  1.10 if [ ! -z "$with_ssl" ]; then
484 mike  1.1  
485 mike  1.2    if [ ! -d "$with_ssl" ]; then
486                echo "$0: Error: No such directory: --with-ssl=$with_ssl"
487                exit 1;
488              fi
489            
490 karl  1.10   if [ ! -f "$with_ssl/include/openssl/ssl.h" ]; then
491                echo "$0: missing dependency: \$with_ssl/include/openssl/ssl.h"
492                missing=1
493              fi
494            
495              if [ ! -f "$with_ssl/bin/openssl" ]; then
496                echo "$0: missing dependency: \$with_ssl/bin/openssl"
497                missing=1
498              fi
499 mike  1.2  
500 karl  1.10   if [ ! -f "$with_ssl/$libbase/libssl.so" ]; then
501                echo "$0: missing dependency: \$with_ssl/$libbase/libss.so"
502                missing=1
503              fi
504 mike  1.2  
505 karl  1.10   if [ "$missing" = "1" ]; then
506                echo "$0: where --with-ssl=$with_ssl"
507                exit 1;
508 mike  1.2    fi
509            
510 karl  1.10 fi
511            
512            ##==============================================================================
513            ##
514 karl  1.20 ## Verify --with-openslp directory.
515 karl  1.10 ##
516            ##==============================================================================
517            
518            if [ ! -z "$with_openslp" ]; then
519 mike  1.2  
520 karl  1.10   if [ ! -d "$with_openslp" ]; then
521                echo "$0: Error: No such directory: --with-openslp=$with_openslp"
522                exit 1;
523 mike  1.2    fi
524            
525 karl  1.10   if [ ! -f "$with_openslp/include/slp.h" ]; then
526                echo "$0: missing dependency: \$with_openslp/include/slp.h"
527                missing=1
528              fi
529 mike  1.2  
530 karl  1.10   if [ ! -f "$with_openslp/$libbase/libslp.so" ]; then
531                echo "$0: missing dependency: \$with_openslp/$libbase/libslp.so"
532                missing=1
533 mike  1.2    fi
534            
535 karl  1.10   if [ "$missing" = "1" ]; then
536                echo "$0: where --with-openslp=$with_openslp"
537 mike  1.2      exit 1;
538              fi
539            
540            fi
541 karl  1.20 ##==============================================================================
542            ##
543            ## Verify --with-external-slp - Test for valid keyword and no openslp option
544            ##
545            ##==============================================================================
546            ##if [ ! -z "$with_external_slp" ]; then
547            
548            ##  if [ "$with_external_slp" = "openslp ]; then
549            ##    echo "$0: Error: No such directory: --with-openslp=$with_external_slp_dir"
550            ##    exit 1;
551            ##  fi
552              
553            ##fi
554            ##==============================================================================
555            ##
556            ## Verify --with-external-slp-dir directory.
557            ##
558            ##==============================================================================
559 mike  1.2  
560 karl  1.20 if [ ! -z "$with_external_slp_dir" ]; then
561            
562              if [ ! -d "$with_external_slp_dir" ]; then
563                echo "$0: Error: No such directory: --with-openslp=$with_external_slp_dir"
564                exit 1;
565              fi
566            
567              if [ ! -f "$with_external_slp_dir/include/slp.h" ]; then
568                echo "$0: missing dependency: \$with_external_slp_dir/include/slp.h"
569                missing=1
570              fi
571            
572              if [ ! -f "$with_external_slp_dir/$libbase/libslp.so" ]; then
573                echo "$0: missing dependency: \$with_external_slp_dir/$libbase/libslp.so"
574                missing=1
575              fi
576            
577              if [ "$missing" = "1" ]; then
578                echo "$0: where --with-external-slp-dir=$with_external_slp_dir"
579                exit 1;
580              fi
581 karl  1.20 
582            fi
583 mike  1.2  ##==============================================================================
584            ##
585            ## These options (if non-empty) must denote absolute directory names.
586            ##
587            ##==============================================================================
588            
589            for i in \
590              prefix \
591              bindir \
592              sbindir \
593              libdir \
594              includedir \
595              datadir \
596              with_ssl \
597              with_pam
598            do
599            
600              eval v=$`echo $i`
601            
602              case $v in
603                /* | "")
604 mike  1.2        ;;
605            
606                *)
607                  echo "$0: Error: Must be an absolute directory name: --$i=$v"
608                  exit 1;
609                  ;;
610              esac
611            
612            done
613            
614            ##==============================================================================
615            ##
616 karl  1.14 ## Check whether the test user will be able to access pegasus home.
617            ##
618            ##==============================================================================
619            
620            uid=`id -u`
621            cwd=`/bin/pwd`
622            
623            if [ "$uid" = "0" -a "$disable_tests" != "1" ]; then
624            
625              if [ "$enable_pam" = "1" -o "$enable_pam_standalone" = "1" ]; then
626            
627                su $with_test_user -c "/bin/true"
628            
629                if [ "$?" != "0" ]; then
630                  echo "$0: The test user account ($with_test_user) does not exist on this system. Please create a test user with this name or designate an existing one with the --with-test-user option."
631                  exit 1
632                fi
633            
634                su $with_test_user -c "cd $cwd 2> /dev/null"
635            
636                if [ "$?" != "0" ]; then
637 karl  1.14       echo "$0: The test user account ($with_test_user) has insufficient privileges to access the pegasus root directory ($cwd), which will cause the user-context tests to fail. Please configure from a different directory."
638                  exit 1
639                fi
640              fi
641            
642            fi
643            
644            ##==============================================================================
645            ##
646 karl  1.18 ## Verify if --enable_pam that pam headers exist
647 mike  1.2  ##
648            ##==============================================================================
649            
650 mike  1.17 if [ ! -z "$enable_pam" ]
651            then
652            
653              if [ ! -f "/usr/include/security/pam_appl.h" -a \
654                   ! -f "/usr/local/include/security/pam_appl.h" ]
655              then
656                  echo "$0: <security/pam_appl.h> is missing (required by --enable_pam)"
657                  exit 1
658              fi
659            
660            fi
661            
662            ##==============================================================================
663            ##
664            ## Create options.mak
665            ##
666            ##==============================================================================
667            
668 mike  1.2  options=options.mak
669            rm -f $options
670            echo "# This file was generated by configure." >> $options
671 mike  1.16 echo "# ./configure $*" >> $options
672 mike  1.2  
673            cwd=`/bin/pwd`
674            root=$cwd
675            echo "export ROOT=$root" >> $options
676 mike  1.15 #echo "export PATH=$PATH:$cwd/$platform/bin" >> $options
677            #echo "export LD_LIBRARY_PATH=$cwd/$platform/lib:$libdir" >> $options
678 mike  1.2  echo "export PEGASUS_PLATFORM=$platform" >> $options
679            echo "export PEGASUS_ROOT=$root" >> $options
680            echo "export PEGASUS_HOME=$cwd/$platform" >> $options
681            
682            if [ "$disable_oop" = "1" ]
683            then
684              echo "export PEGASUS_DEFAULT_ENABLE_OOP=false" >> $options
685              echo "export PEGASUS_DISABLE_PROV_USERCTXT=1" >> $options
686 mike  1.5    echo "export PEGASUS_DISABLE_PRIVILEGED_TESTS=true" >> $options
687 mike  1.2  fi
688            
689 mike  1.15 if [ "$disable_trace" = "1" ]
690            then
691              echo "export PEGASUS_REMOVE_TRACE=1" >> $options
692            fi
693            
694 mike  1.8  if [ "$disable_ipv6" = "1" ]
695            then
696              echo "export PEGASUS_ENABLE_IPV6=false" >> $options
697            else
698              echo "export PEGASUS_ENABLE_IPV6=true" >> $options
699            fi
700            
701 mike  1.7  if [ "$disable_trace" = "1" ]
702            then
703              echo "export PEGASUS_REMOVE_TRACE=1" >> $options
704            fi
705            
706            if [ "$disable_tests" = "1" ]
707            then
708              echo "export PEGASUS_SKIP_MOST_TEST_DIRS=true" >> $options
709            fi
710            
711 mike  1.2  if [ "$enable_debug" = 1 ]
712            then
713              echo "export PEGASUS_DEBUG=1" >> $options
714            fi
715            
716 mike  1.17 if [ "$enable_mrr_generation" = 1 ]
717            then
718              echo "export PEGASUS_ENABLE_MRR_GENERATION=1" >> $options
719            fi
720            
721            if [ "$enable_mrr" = 1 ]
722            then
723              echo "export PEGASUS_ENABLE_MRR=1" >> $options
724            fi
725            
726 mike  1.5  if [ "$enable_pam" = "1" ]; then
727 mike  1.2    echo "export PEGASUS_PAM_AUTHENTICATION=true" >> $options
728 karl  1.13 fi
729            
730            if [ "$enable_pam_standalone" = "1" ]; then
731              echo "export PEGASUS_PAM_AUTHENTICATION=true" >> $options
732 mike  1.2    echo "export PEGASUS_USE_PAM_STANDALONE_PROC=true" >> $options
733 mike  1.1  fi
734            
735            if [ "$enable_binary_repository" = "1" ]; then
736 mike  1.2    echo "export PEGASUS_REPOSITORY_MODE=BIN" >> $options
737 mike  1.1  fi
738            
739 mike  1.2  if [ "$enable_compressed_repository" = "1" ]; then
740              echo "export PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1" >> $options
741 mike  1.1  fi
742            
743 mike  1.2  if [ "$enable_ssl" = "1" ]; then
744              echo "export PEGASUS_HAS_SSL=true" >> $options
745 mike  1.5  fi
746            
747 karl  1.10 if [ ! -z "$with_ssl" ]; then
748              echo "export OPENSSL_HOME=$with_ssl" >> $options
749            fi
750            
751 mike  1.5  if [ "$enable_slp" = "1" ]; then
752                echo "export PEGASUS_ENABLE_SLP=true" >> $options
753            fi
754            
755            if [ "$enable_openslp" = "1" ]; then
756                echo "export PEGASUS_ENABLE_SLP=true" >> $options
757                echo "export PEGASUS_USE_OPENSLP=true" >> $options
758            fi
759            
760 karl  1.20 if [ ! -z "$with_external_slp" ]; then
761                echo "export PEGASUS_ENABLE_SLP=true" >> $options
762                echo "export PEGASUS_USE_EXTERNAL_SLP=$with_external_slp" >> $options
763            fi
764            
765            if [ ! -z "$with_external_slp_dir" ]; then
766              echo "export PEGASUS_EXTERNAL_SLP_HOME=$with_external_slp_dir" >> $options
767            fi
768            
769 mike  1.5  if [ ! -z "$with_openslp" ]; then
770              echo "export PEGASUS_OPENSLP_HOME=$with_openslp" >> $options
771            fi
772            
773            if [ "$disable_cmpi" != "1" ]; then
774              echo "export PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER=true" >> $options
775            fi
776            
777 karl  1.18 if [ "$with-test-user" != "1" ]; then
778              echo "export PEGASUS_TEST_USERID=$with_test_user" >> $options
779            fi
780            
781 mike  1.2  echo "created $options"
782            
783            ##==============================================================================
784            ##
785            ## Create GNUmakefile
786            ##
787            ##==============================================================================
788            
789            cat > GNUmakefile << END
790            include options.mak
791            
792 mike  1.15 export PATH := \$(PATH):\$(PEGASUS_HOME)/bin
793            export LD_LIBRARY_PATH := \$(LD_LIBRARY_PATH):\$(PEGASUS_HOME)/bin
794            
795 mike  1.2  include Makefile
796            
797            distclean:
798            	rm -rf \$(PEGASUS_PLATFORM)
799            	rm -f GNUmakefile
800            	rm -f options.mak
801            END
802            
803            echo "created GNUmakefile"
804            
805            ##==============================================================================
806            ##
807            ## Print final message:
808            ##
809            ##==============================================================================
810            
811 mike  1.11 echo "configured for $platform"
812 mike  1.1  echo

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2