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 karl 1.21 --with-test-user-pass=*)
209 with_test_user-pass=$optarg
210 ;;
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 mike 1.5 --with-openslp=DIR
300 Find OpenSLP installation under DIR (e.g., --with-openslp=/usr).
|
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 enable_openslp=1
347 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.10 ##
521 ##==============================================================================
522
523 if [ ! -z "$with_openslp" ]; then
|
524 mike 1.2
|
525 karl 1.10 if [ ! -d "$with_openslp" ]; then
526 echo "$0: Error: No such directory: --with-openslp=$with_openslp"
527 exit 1;
|
528 mike 1.2 fi
529
|
530 karl 1.10 if [ ! -f "$with_openslp/include/slp.h" ]; then
531 echo "$0: missing dependency: \$with_openslp/include/slp.h"
532 missing=1
533 fi
|
534 mike 1.2
|
535 karl 1.10 if [ ! -f "$with_openslp/$libbase/libslp.so" ]; then
536 echo "$0: missing dependency: \$with_openslp/$libbase/libslp.so"
537 missing=1
|
538 mike 1.2 fi
539
|
540 karl 1.10 if [ "$missing" = "1" ]; then
541 echo "$0: where --with-openslp=$with_openslp"
|
542 mike 1.2 exit 1;
543 fi
544
545 fi
|
546 karl 1.20 ##==============================================================================
547 ##
548 ## Verify --with-external-slp - Test for valid keyword and no openslp option
549 ##
550 ##==============================================================================
|
551 karl 1.21 if [ ! -z "$with_external_slp" ]; then
552 external_slp_types="openslp,solarisslp,none"
553 if [ ! -z "with_open_slp" ]; then
554 echo Error: trying to use both --with-open-slp and --with-external-slp"
555 exit 1
556 fi
557 pos=`expr index ${external_slp_types} ${with_external_slp}`
558
559 if (( $pos = 0 )); then
560 echo "$0: Error: $with_external_slp value is not valid external type"
561 exit 1;
562 fi
563 fi
564 if
|
565 karl 1.20
566
567 ##==============================================================================
568 ##
569 ## Verify --with-external-slp-dir directory.
570 ##
571 ##==============================================================================
|
572 mike 1.2
|
573 karl 1.20 if [ ! -z "$with_external_slp_dir" ]; then
574
575 if [ ! -d "$with_external_slp_dir" ]; then
576 echo "$0: Error: No such directory: --with-openslp=$with_external_slp_dir"
577 exit 1;
578 fi
579
580 if [ ! -f "$with_external_slp_dir/include/slp.h" ]; then
581 echo "$0: missing dependency: \$with_external_slp_dir/include/slp.h"
582 missing=1
583 fi
584
585 if [ ! -f "$with_external_slp_dir/$libbase/libslp.so" ]; then
586 echo "$0: missing dependency: \$with_external_slp_dir/$libbase/libslp.so"
587 missing=1
588 fi
589
590 if [ "$missing" = "1" ]; then
591 echo "$0: where --with-external-slp-dir=$with_external_slp_dir"
592 exit 1;
593 fi
594 karl 1.20
595 fi
|
596 mike 1.2 ##==============================================================================
597 ##
598 ## These options (if non-empty) must denote absolute directory names.
599 ##
600 ##==============================================================================
601
602 for i in \
603 prefix \
604 bindir \
605 sbindir \
606 libdir \
607 includedir \
608 datadir \
609 with_ssl \
610 with_pam
611 do
612
613 eval v=$`echo $i`
614
615 case $v in
616 /* | "")
617 mike 1.2 ;;
618
619 *)
620 echo "$0: Error: Must be an absolute directory name: --$i=$v"
621 exit 1;
622 ;;
623 esac
624
625 done
626
627 ##==============================================================================
628 ##
|
629 karl 1.14 ## Check whether the test user will be able to access pegasus home.
630 ##
631 ##==============================================================================
632
633 uid=`id -u`
634 cwd=`/bin/pwd`
635
636 if [ "$uid" = "0" -a "$disable_tests" != "1" ]; then
637
638 if [ "$enable_pam" = "1" -o "$enable_pam_standalone" = "1" ]; then
639
640 su $with_test_user -c "/bin/true"
641
642 if [ "$?" != "0" ]; then
643 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."
644 exit 1
645 fi
646
647 su $with_test_user -c "cd $cwd 2> /dev/null"
648
649 if [ "$?" != "0" ]; then
650 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."
651 exit 1
652 fi
653 fi
654
655 fi
656
657 ##==============================================================================
658 ##
|
659 karl 1.18 ## Verify if --enable_pam that pam headers exist
|
660 mike 1.2 ##
661 ##==============================================================================
662
|
663 mike 1.17 if [ ! -z "$enable_pam" ]
664 then
665
666 if [ ! -f "/usr/include/security/pam_appl.h" -a \
667 ! -f "/usr/local/include/security/pam_appl.h" ]
668 then
669 echo "$0: <security/pam_appl.h> is missing (required by --enable_pam)"
670 exit 1
671 fi
672
673 fi
674
675 ##==============================================================================
676 ##
677 ## Create options.mak
678 ##
679 ##==============================================================================
680
|
681 mike 1.2 options=options.mak
682 rm -f $options
683 echo "# This file was generated by configure." >> $options
|
684 mike 1.16 echo "# ./configure $*" >> $options
|
685 mike 1.2
686 cwd=`/bin/pwd`
687 root=$cwd
688 echo "export ROOT=$root" >> $options
|
689 mike 1.15 #echo "export PATH=$PATH:$cwd/$platform/bin" >> $options
690 #echo "export LD_LIBRARY_PATH=$cwd/$platform/lib:$libdir" >> $options
|
691 mike 1.2 echo "export PEGASUS_PLATFORM=$platform" >> $options
692 echo "export PEGASUS_ROOT=$root" >> $options
693 echo "export PEGASUS_HOME=$cwd/$platform" >> $options
694
695 if [ "$disable_oop" = "1" ]
696 then
697 echo "export PEGASUS_DEFAULT_ENABLE_OOP=false" >> $options
698 echo "export PEGASUS_DISABLE_PROV_USERCTXT=1" >> $options
|
699 mike 1.5 echo "export PEGASUS_DISABLE_PRIVILEGED_TESTS=true" >> $options
|
700 mike 1.2 fi
701
|
702 mike 1.15 if [ "$disable_trace" = "1" ]
703 then
704 echo "export PEGASUS_REMOVE_TRACE=1" >> $options
705 fi
706
|
707 mike 1.8 if [ "$disable_ipv6" = "1" ]
708 then
709 echo "export PEGASUS_ENABLE_IPV6=false" >> $options
710 else
711 echo "export PEGASUS_ENABLE_IPV6=true" >> $options
712 fi
713
|
714 mike 1.7 if [ "$disable_trace" = "1" ]
715 then
716 echo "export PEGASUS_REMOVE_TRACE=1" >> $options
717 fi
718
719 if [ "$disable_tests" = "1" ]
720 then
721 echo "export PEGASUS_SKIP_MOST_TEST_DIRS=true" >> $options
722 fi
723
|
724 mike 1.2 if [ "$enable_debug" = 1 ]
725 then
726 echo "export PEGASUS_DEBUG=1" >> $options
727 fi
728
|
729 mike 1.17 if [ "$enable_mrr_generation" = 1 ]
730 then
731 echo "export PEGASUS_ENABLE_MRR_GENERATION=1" >> $options
732 fi
733
734 if [ "$enable_mrr" = 1 ]
735 then
736 echo "export PEGASUS_ENABLE_MRR=1" >> $options
737 fi
738
|
739 mike 1.5 if [ "$enable_pam" = "1" ]; then
|
740 mike 1.2 echo "export PEGASUS_PAM_AUTHENTICATION=true" >> $options
|
741 karl 1.13 fi
742
743 if [ "$enable_pam_standalone" = "1" ]; then
744 echo "export PEGASUS_PAM_AUTHENTICATION=true" >> $options
|
745 mike 1.2 echo "export PEGASUS_USE_PAM_STANDALONE_PROC=true" >> $options
|
746 mike 1.1 fi
747
748 if [ "$enable_binary_repository" = "1" ]; then
|
749 mike 1.2 echo "export PEGASUS_REPOSITORY_MODE=BIN" >> $options
|
750 mike 1.1 fi
751
|
752 mike 1.2 if [ "$enable_compressed_repository" = "1" ]; then
753 echo "export PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1" >> $options
|
754 mike 1.1 fi
755
|
756 mike 1.2 if [ "$enable_ssl" = "1" ]; then
757 echo "export PEGASUS_HAS_SSL=true" >> $options
|
758 mike 1.5 fi
759
|
760 karl 1.10 if [ ! -z "$with_ssl" ]; then
761 echo "export OPENSSL_HOME=$with_ssl" >> $options
762 fi
763
|
764 mike 1.5 if [ "$enable_slp" = "1" ]; then
765 echo "export PEGASUS_ENABLE_SLP=true" >> $options
766 fi
767
768 if [ "$enable_openslp" = "1" ]; then
769 echo "export PEGASUS_ENABLE_SLP=true" >> $options
770 echo "export PEGASUS_USE_OPENSLP=true" >> $options
771 fi
772
|
773 karl 1.20 if [ ! -z "$with_external_slp" ]; then
774 echo "export PEGASUS_ENABLE_SLP=true" >> $options
775 echo "export PEGASUS_USE_EXTERNAL_SLP=$with_external_slp" >> $options
776 fi
777
778 if [ ! -z "$with_external_slp_dir" ]; then
779 echo "export PEGASUS_EXTERNAL_SLP_HOME=$with_external_slp_dir" >> $options
780 fi
781
|
782 mike 1.5 if [ ! -z "$with_openslp" ]; then
783 echo "export PEGASUS_OPENSLP_HOME=$with_openslp" >> $options
784 fi
785
786 if [ "$disable_cmpi" != "1" ]; then
787 echo "export PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER=true" >> $options
788 fi
789
|
790 karl 1.18 if [ "$with-test-user" != "1" ]; then
|
791 karl 1.21 echo "export PEGASUS_TEST_USER_ID=$with_test_user" >> $options
792 fi
793
794 if [ "$with-test-user-pass" != "1" ]; then
795 echo "export PEGASUS_TEST_USER_PASS=$with_test_user_pass" >> $options
|
796 karl 1.18 fi
797
|
798 mike 1.2 echo "created $options"
799
800 ##==============================================================================
801 ##
802 ## Create GNUmakefile
803 ##
804 ##==============================================================================
805
806 cat > GNUmakefile << END
807 include options.mak
808
|
809 mike 1.15 export PATH := \$(PATH):\$(PEGASUS_HOME)/bin
810 export LD_LIBRARY_PATH := \$(LD_LIBRARY_PATH):\$(PEGASUS_HOME)/bin
811
|
812 mike 1.2 include Makefile
813
814 distclean:
815 rm -rf \$(PEGASUS_PLATFORM)
816 rm -f GNUmakefile
817 rm -f options.mak
818 END
819
820 echo "created GNUmakefile"
821
822 ##==============================================================================
823 ##
824 ## Print final message:
825 ##
826 ##==============================================================================
827
|
828 mike 1.11 echo "configured for $platform"
|
829 mike 1.1 echo
|