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 karl 1.22 with_external_slp_dir=$optarg
|
167 karl 1.20 ;;
|
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 karl 1.21 --with-test-user-pass=*)
|
209 karl 1.22 with_test_user_pass=$optarg
|
210 karl 1.21 ;;
211
212 --with-temp-build-dir=*)
213 with_temp_build_dir=$optarg
214 ;;
215
|
216 mike 1.1 *)
217 echo "$0: unknown option: $opt"
218 exit 1
219 ;;
220
221 esac
222 done
223
224 ##==============================================================================
225 ##
|
226 mike 1.2 ## Print help message if --help given on command line.
|
227 mike 1.1 ##
228 ##==============================================================================
229
230 if [ "$help" = "1" ]; then
|
231 mike 1.2 cat<<END
232
233 Usage: ./configure [OPTION]...
234
|
235 mike 1.11 Configures OpenPegasus build options.
|
236 mike 1.2
237 Configure examples.
238 $ ./configure
|
239 mike 1.11 $ make
|
240 mike 1.2
241 Options:
242 --help
243 Print this help message.
|
244 mike 1.11 --platform=PLATFORM
245 Build package for this PLATFORM, which must be one of the following:
246 LINUX_IX86_GNU
247 LINUX_X86_64_GNU
248 SOLARIS_SPARC_64_CC
249 SOLARIS_X86_64_CC
|
250 mike 1.15 VXWORKS_XSCALE_GNU
|
251 mike 1.2 --prefix=DIR
252 Install under DIR
253 --bindir=DIR
254 Install programs here.
255 --sbindir=DIR
256 Install super-user programs here.
257 --libdir=DIR
258 Install libraries here.
|
259 karl 1.21 --includedir=DIR
|
260 mike 1.2 Install include files here.
261 --datadir=DIR
262 Install data files here.
263 --enable-debug
264 Build for debug.
|
265 mike 1.17 --enable-mrr-generation
266 Enable memory-resident repository generation (in cimmofl).
267 --enable-mrr
268 Enable the memory-resident repository.
|
269 mike 1.2 --disable-oop
270 Disable out-of-process providers.
|
271 mike 1.15 --disable-trace
272 Disable tracing facility.
|
273 mike 1.8 --disable-ipv6
274 Disable IPV6 support.
|
275 mike 1.7 --disable-trace
276 Disable tracing facility
277 --disable-tests
278 Disable build of most of the tests.
|
279 mike 1.5 --enable-pam
|
280 karl 1.13 Enable PAM authentication.
281 --enable-pam-standalone
282 Use PAM standalone cimservera program (implies --enable-pam).
|
283 mike 1.2 --with-pam=DIR
284 Specify an alternative PAM directory location (defaults to /etc/pam.d).
|
285 karl 1.14 --with-test-user=USER
286 The USER for user-related tests (must refer to actual OS user).
|
287 karl 1.21 This feature is used only with the pegasus test suite
288 --with-test-user-pass=PASSWORD
289 The PASSWORD for user-related tests (must refer to actual OS user).
290 This feature is used only with the pegasus test suite.
|
291 mike 1.2 --enable-ssl
292 Enable SSL feature
|
293 mike 1.6 --with-ssl=DIR
294 Find SSL under DIR (e.g., --with-ssl=/usr).
|
295 mike 1.5 --enable-slp
296 Enable SLP feature
297 --enable-openslp
|
298 karl 1.13 Enable OpenSLP feature (implies --enable-slp).
|
299 karl 1.22 Deprecated. Use --with-external-slp
|
300 mike 1.5 --with-openslp=DIR
301 Find OpenSLP installation under DIR (e.g., --with-openslp=/usr).
|
302 karl 1.22 Deprecated. Use --with-external-slp-dir
|
303 karl 1.20 --with-external-slp=TYPE
304 Use external slp defined by keyword (e.g., --with-external-slp=openslp).
305 Superceedes --enable-openslp.
306 --with-external-slp-dir=DIR
307 Find external SLP include and lib directories under DIR
308 (e.g., --with-external-slp=/usr). Default is /usr
|
309 mike 1.5 --disable-cmpi
310 Disable CMPI provider support
|
311 mike 1.2 --enable-binary-repository
312 Enable the binary repository feature, resulting in a smaller CIM
313 repository disk footprint.
|
314 karl 1.21 --with-temp-build-dir=directory
315 Uses defined temporary directory for all work files during build and
316 test process.
|
317 karl 1.13 --with-solaris-defaults
|
318 karl 1.20 Enables reasonable defaults for the Solaris platform. These
319 includes:
320 --enable-ssl
321 --enable-openslp
322 --enable-pam-standalone
323 --with-solaris-nevada-defaults
|
324 karl 1.13 Enables reasonable defaults for the Solaris Nevada platform. These
325 includes:
326 --enable-ssl
|
327 karl 1.20 --with-external-slp=solarisslp
|
328 karl 1.13 --enable-pam-standalone
|
329 mike 1.15 --with-vxworks-xscale-defaults
330 Enables reasonable defaults for the VXWorks/XScale platform.
331 includes:
332 --platform=VXWORKS_XSCALE_GNU
333 --disable-oop
334 --disable-trace
335 --enable-ssl
|
336 mike 1.2 END
337 exit
|
338 mike 1.1 fi
339
340 ##==============================================================================
341 ##
|
342 karl 1.13 ## Resolve platform specific default options.
343 ##
344 ##==============================================================================
345
346 if [ "$with_solaris_defaults" = 1 ]; then
347 enable_ssl=1
|
348 karl 1.22 with_external_slp=openslp
|
349 karl 1.13 enable_pam_standalone=1
350 fi
|
351 karl 1.20 if [ "$with_solaris_nevada_defaults" = 1 ]; then
352 enable_ssl=1
353 with_external_slp=solarisslp
354 enable_pam_standalone=1
355 fi
|
356 mike 1.15 if [ "$with_vxworks_xscale_defaults" = 1 ]; then
357 platform=VXWORKS_XSCALE_GNU
358 disable_oop=1
359 disable_trace=1
360 enable_ssl=1
|
361 mike 1.17 enable_slp=1
362 disable_cmpi=1
363 enable_mrr=1
|
364 mike 1.15 fi
365
|
366 karl 1.13 ##==============================================================================
367 ##
|
368 mike 1.11 ## Check the --platform option.
369 ##
370 ##==============================================================================
371
372 if [ ! -z "$platform" ]; then
373 case "$platform" in
374 LINUX_IX86_GNU)
375 ;;
376 LINUX_X86_64_GNU)
377 ;;
378 SOLARIS_SPARC_64_CC)
379 ;;
|
380 mike 1.19 SOLARIS_SPARC_CC)
381 ;;
|
382 mike 1.11 SOLARIS_X86_64_CC)
383 ;;
|
384 mike 1.19 SOLARIS_IX86_CC)
385 ;;
|
386 mike 1.15 VXWORKS_XSCALE_GNU)
387 ;;
|
388 mike 1.11 *)
389 echo "$0: Unknown platform: --platform=$platform"
390 echo ""
391 exit 1
392 ;;
393 esac
394 fi
395
396 ##==============================================================================
397 ##
|
398 mike 1.5 ## Guess the platform.
|
399 mike 1.1 ##
400 ##==============================================================================
401
|
402 mike 1.11 if [ -z "$platform" ]; then
|
403 mike 1.2
404 machine=`(uname -m) 2>/dev/null` || machine=unknown
405 system=`(uname -s) 2>/dev/null` || system=unknown
406 release=`(uname -r) 2>/dev/null` || release=unknown
407 version=`(uname -v) 2>/dev/null` || version=unknown
408 token="$machine:$system:$release:$version"
409
410 case "$token" in
411
412 i686:Linux:*:*)
|
413 mike 1.11 platform=LINUX_IX86_GNU
414 libbase=lib
|
415 mike 1.2 ;;
416
417 x86_64:Linux:*:*)
|
418 mike 1.11 platform=LINUX_X86_64_GNU
419 libbase=lib64
|
420 mike 1.2 ;;
|
421 mike 1.1
|
422 mike 1.11 sun*:SunOS:*:*)
423 platform=SOLARIS_SPARC_64_CC
424 libbase=lib/64
|
425 mike 1.2 ;;
|
426 mike 1.1
|
427 mike 1.11 i86pc:SunOS:*:*)
428 platform=SOLARIS_X86_64_CC
429 libbase=lib/64
|
430 mike 1.5 ;;
431
|
432 mike 1.2 *)
|
433 mike 1.11 echo "$0: Failed to guess platform"
|
434 mike 1.2 echo " machine=$machine"
435 echo " system=$system"
436 echo " release=$release"
437 echo " version=$version"
438 exit 1
439 ;;
440
441 esac
|
442 mike 1.1 fi
443
444 ##==============================================================================
445 ##
|
446 mike 1.2 ## Resolve default directory names.
|
447 mike 1.1 ##
448 ##==============================================================================
449
|
450 mike 1.2 # --prefix:
451
452 if [ -z "$prefix" ]; then
453 prefix=/usr/local
454 fi
455
456 # --bindir:
457
|
458 mike 1.1 if [ -z "$bindir" ]; then
459 bindir=$prefix/bin
460 fi
461
|
462 mike 1.2 # --sbindir:
463
|
464 mike 1.1 if [ -z "$sbindir" ]; then
465 sbindir=$prefix/sbin
466 fi
467
|
468 mike 1.2 # --libdir:
469
|
470 mike 1.1 if [ -z "$libdir" ]; then
|
471 mike 1.2 libdir=$prefix/$libbase
|
472 mike 1.1 fi
473
|
474 mike 1.2 # --includedir:
475
|
476 mike 1.1 if [ -z "$includedir" ]; then
477 includedir=$prefix/include
478 fi
479
|
480 mike 1.2 if [ -z "$with_pam" ]; then
481 with_pam=/etc/pam.d
482 fi
483
|
484 mike 1.1 ##==============================================================================
485 ##
|
486 karl 1.10 ## Verify --with-ssl directory.
|
487 mike 1.1 ##
488 ##==============================================================================
489
|
490 karl 1.10 if [ ! -z "$with_ssl" ]; then
|
491 mike 1.1
|
492 mike 1.2 if [ ! -d "$with_ssl" ]; then
493 echo "$0: Error: No such directory: --with-ssl=$with_ssl"
494 exit 1;
495 fi
496
|
497 karl 1.10 if [ ! -f "$with_ssl/include/openssl/ssl.h" ]; then
498 echo "$0: missing dependency: \$with_ssl/include/openssl/ssl.h"
499 missing=1
500 fi
501
502 if [ ! -f "$with_ssl/bin/openssl" ]; then
503 echo "$0: missing dependency: \$with_ssl/bin/openssl"
504 missing=1
505 fi
|
506 mike 1.2
|
507 karl 1.10 if [ ! -f "$with_ssl/$libbase/libssl.so" ]; then
508 echo "$0: missing dependency: \$with_ssl/$libbase/libss.so"
509 missing=1
510 fi
|
511 mike 1.2
|
512 karl 1.10 if [ "$missing" = "1" ]; then
513 echo "$0: where --with-ssl=$with_ssl"
514 exit 1;
|
515 mike 1.2 fi
516
|
517 karl 1.10 fi
518
519 ##==============================================================================
520 ##
|
521 karl 1.20 ## Verify --with-openslp directory.
|
522 karl 1.22 ## Note that this option is deprecated in favor of the --with-external-slp
523 ## option that allows multiple slp types defined as external
|
524 karl 1.10 ##
525 ##==============================================================================
526
527 if [ ! -z "$with_openslp" ]; then
|
528 mike 1.2
|
529 karl 1.10 if [ ! -d "$with_openslp" ]; then
530 echo "$0: Error: No such directory: --with-openslp=$with_openslp"
531 exit 1;
|
532 mike 1.2 fi
533
|
534 karl 1.10 if [ ! -f "$with_openslp/include/slp.h" ]; then
535 echo "$0: missing dependency: \$with_openslp/include/slp.h"
536 missing=1
537 fi
|
538 mike 1.2
|
539 karl 1.10 if [ ! -f "$with_openslp/$libbase/libslp.so" ]; then
540 echo "$0: missing dependency: \$with_openslp/$libbase/libslp.so"
541 missing=1
|
542 mike 1.2 fi
543
|
544 karl 1.10 if [ "$missing" = "1" ]; then
545 echo "$0: where --with-openslp=$with_openslp"
|
546 mike 1.2 exit 1;
547 fi
548
549 fi
|
550 karl 1.22
|
551 karl 1.20 ##==============================================================================
552 ##
553 ## Verify --with-external-slp - Test for valid keyword and no openslp option
554 ##
555 ##==============================================================================
|
556 karl 1.21 if [ ! -z "$with_external_slp" ]; then
|
557 karl 1.22
558 if [ "enable_openslp" = 1 ]; then
559 echo "$0: Error: trying to use both --enable-openslp and --with-external-slp"
|
560 karl 1.21 exit 1
561 fi
|
562 karl 1.22 ## determine if with_external_slp type is a valid keyword
563 ## list of valid keywords each surrounded by a space to prevent
564 ## subset of keywords passing the test.
565 external_slp_types=" openslp solarisslp none "
566 posx=`expr match ${external_slp_types} ".*\ ${with_external_slp} "`
567
568 if [ "$posx" = "0" ]; then
569 echo "$0: Error: --with-external-slp value. $with_external_slp is not valid type"
570 echo "Valid types are $external_slp_types"
|
571 karl 1.21 exit 1;
572 fi
573 fi
|
574 karl 1.20
575 ##==============================================================================
576 ##
577 ## Verify --with-external-slp-dir directory.
578 ##
579 ##==============================================================================
|
580 mike 1.2
|
581 karl 1.20 if [ ! -z "$with_external_slp_dir" ]; then
582
583 if [ ! -d "$with_external_slp_dir" ]; then
|
584 karl 1.22 echo "$0: Error: No such directory: --with-external-slp-dir=$with_external_slp_dir"
|
585 karl 1.20 exit 1;
586 fi
587
588 if [ ! -f "$with_external_slp_dir/include/slp.h" ]; then
589 echo "$0: missing dependency: \$with_external_slp_dir/include/slp.h"
590 missing=1
591 fi
592
593 if [ ! -f "$with_external_slp_dir/$libbase/libslp.so" ]; then
594 echo "$0: missing dependency: \$with_external_slp_dir/$libbase/libslp.so"
595 missing=1
596 fi
597
598 if [ "$missing" = "1" ]; then
599 echo "$0: where --with-external-slp-dir=$with_external_slp_dir"
600 exit 1;
601 fi
602
603 fi
|
604 karl 1.22
|
605 mike 1.2 ##==============================================================================
606 ##
607 ## These options (if non-empty) must denote absolute directory names.
608 ##
609 ##==============================================================================
610
611 for i in \
612 prefix \
613 bindir \
614 sbindir \
615 libdir \
616 includedir \
617 datadir \
618 with_ssl \
619 with_pam
620 do
621
622 eval v=$`echo $i`
623
624 case $v in
625 /* | "")
626 mike 1.2 ;;
627
628 *)
629 echo "$0: Error: Must be an absolute directory name: --$i=$v"
630 exit 1;
631 ;;
632 esac
633
634 done
635
636 ##==============================================================================
637 ##
|
638 karl 1.14 ## Check whether the test user will be able to access pegasus home.
639 ##
640 ##==============================================================================
641
642 uid=`id -u`
643 cwd=`/bin/pwd`
644
645 if [ "$uid" = "0" -a "$disable_tests" != "1" ]; then
646
647 if [ "$enable_pam" = "1" -o "$enable_pam_standalone" = "1" ]; then
648
649 su $with_test_user -c "/bin/true"
650
651 if [ "$?" != "0" ]; then
652 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."
653 exit 1
654 fi
655
656 su $with_test_user -c "cd $cwd 2> /dev/null"
657
658 if [ "$?" != "0" ]; then
659 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."
660 exit 1
661 fi
|
662 karl 1.22 else
663 echo "Warning: Using --with-test-user without --enable_pam or --enable-pam-standalone"
|
664 karl 1.14 fi
665
|
666 karl 1.22
|
667 karl 1.14 fi
668
669 ##==============================================================================
670 ##
|
671 karl 1.18 ## Verify if --enable_pam that pam headers exist
|
672 mike 1.2 ##
673 ##==============================================================================
674
|
675 mike 1.17 if [ ! -z "$enable_pam" ]
676 then
677
678 if [ ! -f "/usr/include/security/pam_appl.h" -a \
679 ! -f "/usr/local/include/security/pam_appl.h" ]
680 then
681 echo "$0: <security/pam_appl.h> is missing (required by --enable_pam)"
682 exit 1
683 fi
684
685 fi
686
687 ##==============================================================================
688 ##
689 ## Create options.mak
690 ##
691 ##==============================================================================
692
|
693 mike 1.2 options=options.mak
694 rm -f $options
695 echo "# This file was generated by configure." >> $options
|
696 mike 1.16 echo "# ./configure $*" >> $options
|
697 mike 1.2
698 cwd=`/bin/pwd`
699 root=$cwd
700 echo "export ROOT=$root" >> $options
|
701 mike 1.15 #echo "export PATH=$PATH:$cwd/$platform/bin" >> $options
702 #echo "export LD_LIBRARY_PATH=$cwd/$platform/lib:$libdir" >> $options
|
703 mike 1.2 echo "export PEGASUS_PLATFORM=$platform" >> $options
704 echo "export PEGASUS_ROOT=$root" >> $options
705 echo "export PEGASUS_HOME=$cwd/$platform" >> $options
706
707 if [ "$disable_oop" = "1" ]
708 then
709 echo "export PEGASUS_DEFAULT_ENABLE_OOP=false" >> $options
710 echo "export PEGASUS_DISABLE_PROV_USERCTXT=1" >> $options
|
711 mike 1.5 echo "export PEGASUS_DISABLE_PRIVILEGED_TESTS=true" >> $options
|
712 mike 1.2 fi
713
|
714 mike 1.15 if [ "$disable_trace" = "1" ]
715 then
716 echo "export PEGASUS_REMOVE_TRACE=1" >> $options
717 fi
718
|
719 mike 1.8 if [ "$disable_ipv6" = "1" ]
720 then
721 echo "export PEGASUS_ENABLE_IPV6=false" >> $options
722 else
723 echo "export PEGASUS_ENABLE_IPV6=true" >> $options
724 fi
725
|
726 mike 1.7 if [ "$disable_trace" = "1" ]
727 then
728 echo "export PEGASUS_REMOVE_TRACE=1" >> $options
729 fi
730
731 if [ "$disable_tests" = "1" ]
732 then
733 echo "export PEGASUS_SKIP_MOST_TEST_DIRS=true" >> $options
734 fi
735
|
736 mike 1.2 if [ "$enable_debug" = 1 ]
737 then
738 echo "export PEGASUS_DEBUG=1" >> $options
739 fi
740
|
741 mike 1.17 if [ "$enable_mrr_generation" = 1 ]
742 then
743 echo "export PEGASUS_ENABLE_MRR_GENERATION=1" >> $options
744 fi
745
746 if [ "$enable_mrr" = 1 ]
747 then
748 echo "export PEGASUS_ENABLE_MRR=1" >> $options
749 fi
750
|
751 mike 1.5 if [ "$enable_pam" = "1" ]; then
|
752 mike 1.2 echo "export PEGASUS_PAM_AUTHENTICATION=true" >> $options
|
753 karl 1.13 fi
754
755 if [ "$enable_pam_standalone" = "1" ]; then
756 echo "export PEGASUS_PAM_AUTHENTICATION=true" >> $options
|
757 mike 1.2 echo "export PEGASUS_USE_PAM_STANDALONE_PROC=true" >> $options
|
758 mike 1.1 fi
759
760 if [ "$enable_binary_repository" = "1" ]; then
|
761 mike 1.2 echo "export PEGASUS_REPOSITORY_MODE=BIN" >> $options
|
762 mike 1.1 fi
763
|
764 mike 1.2 if [ "$enable_compressed_repository" = "1" ]; then
765 echo "export PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1" >> $options
|
766 mike 1.1 fi
767
|
768 mike 1.2 if [ "$enable_ssl" = "1" ]; then
769 echo "export PEGASUS_HAS_SSL=true" >> $options
|
770 mike 1.5 fi
771
|
772 karl 1.10 if [ ! -z "$with_ssl" ]; then
773 echo "export OPENSSL_HOME=$with_ssl" >> $options
774 fi
775
|
776 mike 1.5 if [ "$enable_slp" = "1" ]; then
777 echo "export PEGASUS_ENABLE_SLP=true" >> $options
778 fi
779
780 if [ "$enable_openslp" = "1" ]; then
781 echo "export PEGASUS_ENABLE_SLP=true" >> $options
782 echo "export PEGASUS_USE_OPENSLP=true" >> $options
783 fi
784
|
785 karl 1.20 if [ ! -z "$with_external_slp" ]; then
786 echo "export PEGASUS_ENABLE_SLP=true" >> $options
787 echo "export PEGASUS_USE_EXTERNAL_SLP=$with_external_slp" >> $options
788 fi
789
790 if [ ! -z "$with_external_slp_dir" ]; then
791 echo "export PEGASUS_EXTERNAL_SLP_HOME=$with_external_slp_dir" >> $options
792 fi
793
|
794 mike 1.5 if [ ! -z "$with_openslp" ]; then
795 echo "export PEGASUS_OPENSLP_HOME=$with_openslp" >> $options
796 fi
797
798 if [ "$disable_cmpi" != "1" ]; then
799 echo "export PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER=true" >> $options
800 fi
801
|
802 karl 1.22 if [ ! -z "$with_test_user" ]; then
|
803 karl 1.21 echo "export PEGASUS_TEST_USER_ID=$with_test_user" >> $options
804 fi
805
|
806 karl 1.22 if [ ! -z "$with_test_user_pass" ]; then
|
807 karl 1.21 echo "export PEGASUS_TEST_USER_PASS=$with_test_user_pass" >> $options
|
808 karl 1.18 fi
809
|
810 mike 1.2 echo "created $options"
811
812 ##==============================================================================
813 ##
814 ## Create GNUmakefile
815 ##
816 ##==============================================================================
817
818 cat > GNUmakefile << END
819 include options.mak
820
|
821 mike 1.15 export PATH := \$(PATH):\$(PEGASUS_HOME)/bin
822 export LD_LIBRARY_PATH := \$(LD_LIBRARY_PATH):\$(PEGASUS_HOME)/bin
823
|
824 mike 1.2 include Makefile
825
826 distclean:
827 rm -rf \$(PEGASUS_PLATFORM)
828 rm -f GNUmakefile
829 rm -f options.mak
830 END
831
832 echo "created GNUmakefile"
833
834 ##==============================================================================
835 ##
836 ## Print final message:
837 ##
838 ##==============================================================================
839
|
840 mike 1.11 echo "configured for $platform"
|
841 mike 1.1 echo
|