perl 3.0 patch #22 patch #19, continued
[p5sagit/p5-mst-13.2.git] / Configure
index 1fe5fe3..41ad39c 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -8,16 +8,7 @@
 # and edit it to reflect your system.  Some packages may include samples
 # of config.h for certain machines, so you might look for one of those.)
 #
-# $Header: Configure,v 3.0.1.7 90/03/28 09:14:53 lwall Locked $
-
-: make sure these files are renamed
-test -f config_h.SH || mv -f config.h.SH config_h.SH
-test -f perl_man.1 || mv -f perl.man.1 perl_man.1
-test -f perl_man.2 || mv -f perl.man.2 perl_man.2
-test -f perl_man.3 || mv -f perl.man.3 perl_man.3
-test -f perl_man.4 || mv -f perl.man.4 perl_man.4
-test -f t/op.s || mv -f t/op.subst t/op.s
-
+# $Header: Configure,v 3.0.1.8 90/08/09 01:47:24 lwall Locked $
 #
 # Yes, you may rip this off to use in other distribution packages.
 # (Note: this Configure script was generated automatically.  Rather than
@@ -113,6 +104,7 @@ d_bcopy=''
 d_bzero=''
 d_castneg=''
 d_charsprf=''
+d_chsize=''
 d_crypt=''
 cryptlib=''
 d_csh=''
@@ -140,6 +132,7 @@ d_odbm=''
 d_readdir=''
 d_rename=''
 d_rmdir=''
+d_select=''
 d_setegid=''
 d_seteuid=''
 d_setpgrp=''
@@ -161,6 +154,7 @@ d_strctcpy=''
 d_strerror=''
 d_symlink=''
 d_syscall=''
+d_truncate=''
 d_varargs=''
 d_vfork=''
 d_voidsig=''
@@ -212,6 +206,7 @@ n=''
 c=''
 package=''
 randbits=''
+scriptdir=''
 sig_name=''
 spitshell=''
 shsharp=''
@@ -1406,19 +1401,21 @@ elif test -f /lib/libc.a; then
 else
     ans=`loc libc.a blurfl/dyick $libpth`
     if test ! -f "$ans"; then
-       ans=`loc libc blurfl/dyick $libpth`
+       ans=`loc Slibc.a blurfl/dyick $xlibpth`
     fi
     if test ! -f "$ans"; then
-       ans=`loc clib blurfl/dyick $libpth`
+       ans=`loc Mlibc.a blurfl/dyick $xlibpth`
     fi
     if test ! -f "$ans"; then
-       ans=`loc Slibc.a blurfl/dyick $xlibpth`
+       ans=`loc Llibc.a blurfl/dyick $xlibpth`
     fi
     if test ! -f "$ans"; then
-       ans=`loc Mlibc.a blurfl/dyick $xlibpth`
+       ans=`loc libc blurfl/dyick $libpth`
     fi
     if test ! -f "$ans"; then
-       ans=`loc Llibc.a blurfl/dyick $xlibpth`
+       ans=`loc clib blurfl/dyick $libpth`
+    else
+       libnames="$libnames "`loc clib blurfl/dyick $libpth`
     fi
     if test -f "$ans"; then
        echo "Your C library is in $ans, of all places."
@@ -1584,6 +1581,10 @@ else
     d_charvspr="$undef"
 fi
 
+: see if chsize exists
+set chsize d_chsize
+eval $inlibc
+
 : see if crypt exists
 echo " "
 if $contains '^crypt$' libc.list >/dev/null 2>&1; then
@@ -1908,6 +1909,10 @@ eval $inlibc
 set rmdir d_rmdir
 eval $inlibc
 
+: see if select exists
+set select d_select
+eval $inlibc
+
 : see if setegid exists
 set setegid d_setegid
 eval $inlibc
@@ -2078,6 +2083,10 @@ case "$flags" in
 esac
 $rm -f try.c try
 
+: see if truncate exists
+set truncate d_truncate
+eval $inlibc
+
 : see if this is a varargs system
 echo " "
 if $test -r /usr/include/varargs.h ; then
@@ -2511,6 +2520,49 @@ y*) mallocsrc='malloc.c'; mallocobj='malloc.o';;
 *) mallocsrc=''; mallocobj='';;
 esac
 
+: determine where public executables go
+case "$scriptdir" in
+'')
+    dflt="$bin"
+    : guess some guesses
+    test -d /usr/share/scripts && dflt=/usr/share/scripts
+    test -d /usr/share/bin && dflt=/usr/share/bin
+    ;;
+*)  dflt="$scriptdir"
+    ;;
+esac
+cont=true
+$cat <<EOM
+Some installations have a separate directory just for executable scripts so
+that they can mount it across multiple architectures but keep the scripts in
+one spot.  You might, for example, have a subdirectory of /usr/share for this.
+Or you might just lump your scripts in with all your other executables.
+EOM
+while $test "$cont" ; do
+    rp="Where do you keep publicly executable scripts? (~name ok) [$dflt]"
+    $echo $n "$rp $c"
+    . myread
+    scriptdir="$ans"
+    scriptdir=`./filexp "$scriptdir"`
+    if test -d $scriptdir; then
+       cont=''
+    else
+       case "$fastread" in
+       yes) dflt=y;;
+       *) dflt=n;;
+       esac
+       rp="Directory $scriptdir doesn't exist.  Use that name anyway? [$dflt]"
+       $echo $n "$rp $c"
+       . myread
+       dflt=''
+       case "$ans" in
+       y*) cont='';;
+       esac
+    fi
+done
+
 : determine compiler compiler
 case "$yacc" in
 '') dflt=yacc;;
@@ -2607,6 +2659,7 @@ d_bcopy='$d_bcopy'
 d_bzero='$d_bzero'
 d_castneg='$d_castneg'
 d_charsprf='$d_charsprf'
+d_chsize='$d_chsize'
 d_crypt='$d_crypt'
 cryptlib='$cryptlib'
 d_csh='$d_csh'
@@ -2634,6 +2687,7 @@ d_odbm='$d_odbm'
 d_readdir='$d_readdir'
 d_rename='$d_rename'
 d_rmdir='$d_rmdir'
+d_select='$d_select'
 d_setegid='$d_setegid'
 d_seteuid='$d_seteuid'
 d_setpgrp='$d_setpgrp'
@@ -2655,6 +2709,7 @@ d_strctcpy='$d_strctcpy'
 d_strerror='$d_strerror'
 d_symlink='$d_symlink'
 d_syscall='$d_syscall'
+d_truncate='$d_truncate'
 d_varargs='$d_varargs'
 d_vfork='$d_vfork'
 d_voidsig='$d_voidsig'
@@ -2706,6 +2761,7 @@ n='$n'
 c='$c'
 package='$package'
 randbits='$randbits'
+scriptdir='$scriptdir'
 sig_name='$sig_name'
 spitshell='$spitshell'
 shsharp='$shsharp'