This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the files from dist/meta to perl's repo
[metaconfig.git] / dist / U / usesocks.U
1 ?RCS: $Id: usesocks.U 1 2006-08-24 12:32:52Z rmanfredi $
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4 ?RCS: 
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
10 ?RCS: 
11 ?RCS: Copyright (c) 1999 Jarkko Hietaniemi
12 ?RCS:
13 ?MAKE:usesocks: Myread Oldconfig Setvar spackage package
14 ?MAKE:  -pick add $@ %<
15 ?Y:TOP
16 ?S:usesocks:
17 ?S:     This variable conditionally defines the USE_SOCKS symbol,
18 ?S:     and indicates that Perl should be built to use SOCKS.
19 ?S:.
20 ?C:USE_SOCKS:
21 ?C:     This symbol, if defined, indicates that Perl should
22 ?C:     be built to use socks.
23 ?C:.
24 ?H:?%<:#$usesocks       USE_SOCKS               /**/
25 ?H:.
26 ?D:usesocks=''
27 ?LINT:set usesocks
28 : check for requested SOCKS support
29 case "$usesocks" in
30 $define|true|[yY]*)     dflt='y';;
31 *) dflt='n';;
32 esac
33 cat <<EOM
34
35 $spackage can be built to use the SOCKS proxy protocol library.
36 If this doesn't make any sense to you, just accept the default '$dflt'.
37 EOM
38 rp="Build $package for SOCKS?"
39 . ./myread
40 case "$ans" in
41 y|Y)    val="$define" ;;     
42 *)      val="$undef" ;;
43 esac
44 set usesocks
45 eval $setvar
46