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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2