diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-07-05 19:59:48 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-07-05 19:59:48 +0000 |
commit | 29209bc5efc823322ed539ae434cba1765cb5082 (patch) | |
tree | 5497276ac24576eaa422b59e9f1a2e3f3ae34087 /Configure | |
parent | 5b877257c279c72efd65c092c32959c904c739e8 (diff) | |
download | perl-29209bc5efc823322ed539ae434cba1765cb5082.tar.gz |
Hack SOCKS support some more plus a patch from Andy Dougherty
that addresses the notorious "Additional libraries" question.
p4raw-id: //depot/cfgperl@3597
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 74 |
1 files changed, 48 insertions, 26 deletions
@@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Mon Jul 5 02:09:55 EET DST 1999 [metaconfig 3.0 PL70] +# Generated on Mon Jul 5 22:55:23 EET DST 1999 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ <<EOF @@ -818,6 +818,7 @@ nm_so_opt='' runnm='' usenm='' useperlio='' +usesocks='' d_oldpthreads='' usethreads='' incpath='' @@ -951,6 +952,7 @@ useposix=true : set useopcode=false in your hint file to disable the Opcode extension. useopcode=true : set usemultiplicity on the Configure command line to enable multiplicity. +: set usesocks on the Configure command line to enable socks. : set usethreads on the Configure command line to enable threads. : List of libraries we want. : If anyone needs -lnet, put it in a hint file. @@ -3946,6 +3948,27 @@ case "$firstmakefile" in '') firstmakefile='makefile';; esac +cat <<EOM + +Perl can be built to use the SOCKS proxy protocol library. To do so, +Configure must be run with -Dusesocks. + +Normally you do not need this and you should answer no. + +EOM +case "$usesocks" in +$define|true|[yY]*) dflt='y';; +*) dflt='n';; +esac +rp='Build Perl for SOCKS?' +. ./myread +case "$ans" in +y|Y) val="$define" ;; +*) val="$undef" ;; +esac +set usesocks +eval $setvar + : Looking for optional libraries echo " " echo "Checking for optional libraries..." >&4 @@ -3956,6 +3979,11 @@ esac case "$libswanted" in '') libswanted='c_s';; esac +case "$usesocks" in +$define) + libswanted="$libswanted socks5 socks5_sh" + ;; +esac for thislib in $libswanted; do if xxx=`./loc lib$thislib.$so.[0-9]'*' X $libpth`; @@ -4011,20 +4039,14 @@ case "$dflt" in esac $cat <<EOM - -Some versions of Unix support shared libraries, which make executables smaller -but make load time slightly longer. - -On some systems, mostly System V Release 3's, the shared library is included -by putting the option "-lc_s" as the last thing on the cc command line when -linking. Other systems use shared libraries by default. There may be other -libraries needed to compile $package on your machine as well. If your system -needs the "-lc_s" option, include it here. Include any other special libraries -here as well. Say "none" for none. + +In order to compile $package on your machine, a number of libraries +are usually needed. Include any other special libraries here as well. +Say "none" for none. The default list is almost always right. EOM echo " " -rp="Any additional libraries?" +rp="What libraries to use?" . ./myread case "$ans" in none) libs=' ';; @@ -4106,6 +4128,12 @@ fi' set signal.h LANGUAGE_C; eval $inctest +case "$usesocks" in +$define) + ccflags="$ccflags -DSOCKS" + ;; +esac + case "$hint" in none|recommended) dflt="$ccflags $dflt" ;; *) dflt="$ccflags";; @@ -4369,26 +4397,18 @@ $grep "^[ ]*#.*\$wanted" | \ while read cline; do name=\`echo \$cline | $awk "\$awkprg" | $tr -d '"'\` case "\$name" in - *[/\\\\]\$wanted) echo "\$name"; exit 1;; - *[\\\\/]\$wanted) echo "\$name"; exit 1;; - *) exit 2;; + *[/\\\\]\$wanted) echo "\$name"; exit 0;; + *[\\\\/]\$wanted) echo "\$name"; exit 0;; + *) name='';; esac; done; -# -#status=0: grep returned 0 lines, case statement not executed -#status=1: headerfile found -#status=2: while loop executed, no headerfile found -# -status=\$? $rm -f foo\$\$.c; -if test \$status -eq 1; then - exit 0; -fi -exit 1 +case "\$name" in +'') exit 1;; +esac EOF chmod +x findhdr - : define an alternate in-header-list? function inhdr='echo " "; td=$define; tu=$undef; yyy=$@; cont=true; xxf="echo \"<\$1> found.\" >&4"; @@ -10992,6 +11012,7 @@ $rm -f tebcdic.c tebcdic set ebcdic eval $setvar +echo " " $cat >&4 <<EOM Checking how to flush all pending stdio output... EOM @@ -13569,6 +13590,7 @@ useperlio='$useperlio' useposix='$useposix' usesfio='$usesfio' useshrplib='$useshrplib' +usesocks='$usesocks' usethreads='$usethreads' usevfork='$usevfork' usrinc='$usrinc' |