From: Chip Salzenberg Date: Sun, 18 Apr 1999 17:54:36 +0000 (-0400) Subject: Configure: $sig_count X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=af4c28eba723fbf00ea205abffcc1284501af686;p=p5sagit%2Fp5-mst-13.2.git Configure: $sig_count To: Perl 5 Porters Message-ID: <19990418175436.A27496@perlsupport.com> p4raw-id: //depot/cfgperl@3263 --- diff --git a/Configure b/Configure index 3414d00..a56b94f 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Sat Apr 3 16:33:12 EET DST 1999 [metaconfig 3.0 PL70] +# Generated on Mon Apr 19 22:21:08 EET DST 1999 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ <' | $cppstdin $cppminus $cppflags 2>/dev/null | @@ -11470,7 +11472,7 @@ case "$xxxfiles" in '') xxxfiles=`./findhdr signal.h` ;; esac xxx=`awk ' -$1 ~ /^#define$/ && $2 ~ /^SIG[A-Z0-9]*$/ && $2 !~ /SIGARRAYSIZE/ && $3 !~ /void/ { +$1 ~ /^#define$/ && $2 ~ /^SIG[A-Z0-9]*$/ && $2 !~ /SIGARRAYSIZE/ && $2 !~ /SIGSTKSIZE/ && $2 !~ /SIGSTKSZ/ && $3 !~ /void/ { print substr($2, 4, 20) } $1 == "#" && $2 ~ /^define$/ && $3 ~ /^SIG[A-Z0-9]*$/ && $3 !~ /SIGARRAYSIZE/ && $4 !~ /void/ { @@ -11570,20 +11572,22 @@ $1 ~ /^NSIG$/ { nsig = $2 } sig_name[$2] = $1 sig_num[$2] = $2 } - } END { - if (nsig == 0) { nsig = maxsig + 1 } - for (n = 1; n < nsig; n++) { - if (sig_name[n]) { - printf("%s %d\n", sig_name[n], sig_num[n]) - } - else { - printf("NUM%d %d\n", n, n) - } + if (nsig == 0) { + nsig = maxsig + 1 + } + printf("NSIG %d\n", nsig); + for (n = 1; n < nsig; n++) { + if (sig_name[n]) { + printf("%s %d\n", sig_name[n], sig_num[n]) } + else { + printf("NUM%d %d\n", n, n) + } + } for (n = 0; n < ndups; n++) { - printf("%s %d\n", dup_name[n], dup_num[n]) + printf("%s %d\n", dup_name[n], dup_num[n]) } } EOP @@ -11649,7 +11653,8 @@ else 0) set HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM;; esac echo $@ | $tr ' ' $trnl | \ - $awk '{ printf $1; printf " %d\n", ++s; }' >signal.lst + $awk '{ printf "%s %d\n", $1, ++s; } + END { printf "NSIG %d\n", ++s }' >signal.lst fi $rm -f signal.c signal$_exe signal$_o signal.nsg signal.ls1 EOS @@ -11668,19 +11673,20 @@ case "$doinit" in yes) echo "Generating a list of signal names and numbers..." >&4 . ./signal_cmd - sig_name=`$awk '{printf "%s ", $1}' signal.lst` - sig_name="ZERO $sig_name" - sig_name_init=`$awk 'BEGIN { printf "\"ZERO\", " } - { printf "\"%s\", ", $1 } - END { printf "0\n" }' signal.lst` - sig_num=`$awk '{printf "%d ", $2}' signal.lst` - sig_num="0 $sig_num" - sig_num_init=`$awk 'BEGIN { printf "0, " } - { printf "%d, ", $2} - END { printf "0\n"}' signal.lst` - ;; -esac -echo "The following signals are available:" + sig_count=`$awk '/^NSIG/ { printf "%d", $2 }' signal.lst` + sig_name=`$awk 'BEGIN { printf "ZERO " } + !/^NSIG/ { printf "%s ", $1 }' signal.lst` + sig_num=`$awk 'BEGIN { printf "0 " } + !/^NSIG/ { printf "%d ", $2 }' signal.lst` + sig_name_init=`$awk 'BEGIN { printf "\"ZERO\", " } + !/^NSIG/ { printf "\"%s\", ", $1 } + END { printf "0\n" }' signal.lst` + sig_num_init=`$awk 'BEGIN { printf "0, " } + !/^NSIG/ { printf "%d, ", $2} + END { printf "0\n"}' signal.lst` + ;; +esac +echo "The following $sig_count signals are available:" echo " " echo $sig_name | $awk \ 'BEGIN { linelen = 0 } @@ -13198,6 +13204,7 @@ shmattype='$shmattype' shortsize='$shortsize' shrpenv='$shrpenv' shsharp='$shsharp' +sig_count='$sig_count' sig_name='$sig_name' sig_name_init='$sig_name_init' sig_num='$sig_num' diff --git a/Porting/Glossary b/Porting/Glossary index c1b8758..b132560 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -4,6 +4,11 @@ programs (e.g. I_UNISTD) are already described in config_h.SH. [`configpm' generates pod documentation for Config.pm from this file--please try to keep the formatting regular.] +Mcc (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the Mcc program. After Configure runs, + the value is reset to a plain "Mcc" and is not useful. + _a (Unix.U): This variable defines the extension used for ordinary libraries. For unix, it is '.a'. The '.' is included. Other possible @@ -33,7 +38,7 @@ ansi2knr (ansi2knr.U): Currently, this is not supported, so we just abort. aphostname (d_gethname.U): - Thie variable contains the command which can be used to compute the + This variable contains the command which can be used to compute the host name. The command is fully qualified by its absolute path, to make it safe when used by a process with super-user privileges. @@ -260,6 +265,11 @@ cppsymbols (Cppsym.U): not in this list, see ccsymbols and cppccsymbols. The list is a space-separated list of symbol=value tokens. +crosscompile (crosscompile.U): + This variable conditionally defines the CROSSCOMPILE symbol + which signifies that the build process is be a cross-compilation. + This is normally set by hints files or from Configure command line. + cryptlib (d_crypt.U): This variable holds -lcrypt or the path to a libcrypt.a archive if the crypt() function is not defined in the standard C library. It is @@ -270,6 +280,15 @@ csh (Loc.U): full pathname (if any) of the csh program. After Configure runs, the value is reset to a plain "csh" and is not useful. +d_Gconvert (d_gconvert.U): + This variable holds what Gconvert is defined as to convert + floating point numbers into strings. It could be 'gconvert' + or a more complex macro emulating gconvert with gcvt() or sprintf. + Possible values are: + d_Gconvert='gconvert((x),(n),(t),(b))' + d_Gconvert='gcvt((x),(n),(b))' + d_Gconvert='sprintf((b),"%.*g",(n),(x))' + d_access (d_access.U): This variable conditionally defines HAS_ACCESS if the access() system call is available to check for access permissions using real IDs. @@ -593,15 +612,6 @@ d_ftruncate64 (io64.U): This variable conditionally defines the HAS_FTRUNCATE64 symbol, which indicates to the C program that the ftruncate64() routine is available. -d_Gconvert (d_gconvert.U): - This variable holds what Gconvert is defined as to convert - floating point numbers into strings. It could be 'gconvert' - or a more complex macro emulating gconvert with gcvt() or sprintf. - Possible values are: - d_Gconvert='gconvert((x),(n),(t),(b))' - d_Gconvert='gcvt((x),(n),(b))' - d_Gconvert='sprintf((b),"%.*g",(n),(x))' - d_getgrent (d_getgrent.U): This variable conditionally defines the HAS_GETGRENT symbol, which indicates to the C program that the getgrent() routine is available @@ -769,7 +779,7 @@ d_inetaton (d_inetaton.U): indicates to the C program that the inet_aton() function is available to parse IP address "dotted-quad" strings. -d_ino64t (io64.U): +d_ino64_t (io64.U): This symbol will be defined if the C compiler supports ino64_t. d_int64t (i_inttypes.U): @@ -797,6 +807,10 @@ d_link (d_link.U): This variable conditionally defines HAS_LINK if link() is available to create hard links. +d_llseek (io64.U): + This variable conditionally defines the HAS_LLSEEK symbol, which + indicates to the C program that the llseek() routine is available. + d_locconv (d_locconv.U): This variable conditionally defines HAS_LOCALECONV if localeconv() is available for numeric and monetary formatting conventions. @@ -959,9 +973,12 @@ d_nice (d_nice.U): This variable conditionally defines the HAS_NICE symbol, which indicates to the C program that the nice() routine is available. -d_off64t (io64.U): +d_off64_t (io64.U): This symbol will be defined if the C compiler supports off64_t. +d_offset_t (io64.U): + This symbol will be defined if the C compiler supports offset_t. + d_old_pthread_create_joinable (d_pthrattrj.U): This variable conditionally defines pthread_create_joinable. undef if pthread.h defines PTHREAD_CREATE_JOINABLE. @@ -1001,7 +1018,7 @@ d_pause (d_pause.U): to suspend a process until a signal is received. d_phostname (d_gethname.U): - This variable conditionally defines the PHOSTNAME symbol, which + This variable conditionally defines the HAS_PHOSTNAME symbol, which contains the shell command which, when fed to popen(), may be used to derive the host name. @@ -1135,11 +1152,11 @@ d_semctl (d_semctl.U): This variable conditionally defines the HAS_SEMCTL symbol, which indicates to the C program that the semctl() routine is available. -d_semctl_semid_ds (d_union_senum.U): +d_semctl_semid_ds (d_union_semun.U): This variable conditionally defines USE_SEMCTL_SEMID_DS, which indicates that struct semid_ds * is to be used for semctl IPC_STAT. -d_semctl_semun (d_union_senum.U): +d_semctl_semun (d_union_semun.U): This variable conditionally defines USE_SEMCTL_SEMUN, which indicates that union semun is to be used for semctl IPC_STAT. @@ -1485,7 +1502,7 @@ d_uname (d_gethname.U): indicates to the C program that the uname() routine may be used to derive the host name. -d_union_semun (d_union_senum.U): +d_union_semun (d_union_semun.U): This variable conditionally defines HAS_UNION_SEMUN if the union semun is defined by including . @@ -1840,6 +1857,10 @@ i_poll (i_poll.U): This variable conditionally defines the I_POLL symbol, and indicates whether a C program should include . +i_pthread (i_pthread.U): + This variable conditionally defines the I_PTHREADEAD symbol, + and indicates whether a C program should include . + i_pwd (i_pwd.U): This variable conditionally defines I_PWD, which indicates to the C program that it should include . @@ -2233,7 +2254,7 @@ make_set_make (make.U): make_set_make='#' # If your make program handles this for you, make_set_make="MAKE=$make" # if it doesn't. I used a comment character so that we can distinguish a - 'set' value (from a previous config.sh or Configure -D option) + 'set' value (from a previous config.sh or Configure '-D' option) from an uncomputed value. mallocobj (mallocsrc.U): @@ -2281,11 +2302,6 @@ man3ext (man3dir.U): have: one of 'n', 'l', or '3'. The Makefile must supply the '.'. See man3dir. -Mcc (Loc.U): - This variable is be used internally by Configure to determine the - full pathname (if any) of the Mcc program. After Configure runs, - the value is reset to a plain "Mcc" and is not useful. - medium (models.U): This variable contains a flag which will tell the C compiler and loader to produce a program running with a medium memory model. If the @@ -2321,6 +2337,11 @@ more (Loc.U): full pathname (if any) of the more program. After Configure runs, the value is reset to a plain "more" and is not useful. +multiarch (multiarch.U): + This variable conditionally defines the MULTIARCH symbol + which signifies the presence of multiplatform files. + This is normally set by hints files. + mv (Loc.U): This variable is defined but not used by Configure. The value is a plain '' and is not useful. @@ -2348,7 +2369,7 @@ myuname (Oldconfig.U): whole thing is then lower-cased. n (n.U): - This variable contains the -n flag if that is what causes the echo + This variable contains the '-n' flag if that is what causes the echo command to suppress newline. Otherwise it is null. Correct usage is $echo $n "prompt for a question: $c". @@ -2613,9 +2634,9 @@ sh (sh.U): /bin/sh, though it's possible that some systems will have /bin/ksh, /bin/pdksh, /bin/ash, /bin/bash, or even something such as D:/bin/sh.exe. - This unit comes before Options.U, so you can't set sh with a -D + This unit comes before Options.U, so you can't set sh with a '-D' option, though you can override this (and startsh) - with -O -Dsh=/bin/whatever -Dstartsh=whatever + with '-O -Dsh=/bin/whatever -Dstartsh=whatever' shar (Loc.U): This variable is defined but not used by Configure. @@ -2653,6 +2674,10 @@ shsharp (spitshell.U): This variable tells further Configure units whether your sh can handle # comments. +sig_count (sig_name.U): + This variable holds a number larger than the largest valid + signal number. This is usually the same as the NSIG macro. + sig_name (sig_name.U): This variable holds the signal names, space separated. The leading SIG in signal name is removed. A ZERO is prepended to the @@ -2741,7 +2766,7 @@ spackage (package.U): spitshell (spitshell.U): This variable contains the command necessary to spit out a runnable - shell on this system. It is either cat or a grep -v for # comments. + shell on this system. It is either cat or a grep '-v' for # comments. split (models.U): This variable contains a flag which will tell the C compiler and loader @@ -2841,9 +2866,8 @@ tbl (Loc.U): The value is a plain '' and is not useful. tee (Loc.U): - This variable is be used internally by Configure to determine the - full pathname (if any) of the tee program. After Configure runs, - the value is reset to a plain "tee" and is not useful. + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. test (Loc.U): This variable is be used internally by Configure to determine the diff --git a/Porting/config.sh b/Porting/config.sh index d1f4393..57d80ff 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -8,7 +8,7 @@ # Package name : perl5 # Source directory : . -# Configuration time: Sat Feb 20 15:45:59 EET 1999 +# Configuration time: Mon Apr 19 22:33:54 EET DST 1999 # Configured by : jhi # Target system : osf1 alpha.hut.fi v4.0 878 alpha @@ -30,10 +30,10 @@ afs='false' alignbytes='8' ansi2knr='' aphostname='' -apiversion='5.00555' +apiversion='5.00556' ar='ar' -archlib='/opt/perl/lib/5.00555/alpha-dec_osf-thread' -archlibexp='/opt/perl/lib/5.00555/alpha-dec_osf-thread' +archlib='/opt/perl/lib/5.00556/alpha-dec_osf-thread' +archlibexp='/opt/perl/lib/5.00556/alpha-dec_osf-thread' archname64='' archname='alpha-dec_osf-thread' archobjs='' @@ -50,12 +50,12 @@ castflags='0' cat='cat' cc='cc' cccdlflags=' ' -ccdlflags=' ' +ccdlflags=' -Wl,-rpath,/opt/perl/lib/5.00556/alpha-dec_osf-thread/CORE' ccflags='-pthread -std -DLANGUAGE_C' -ccsymbols='__LANGUAGE_C__=1 _LONGLONG=1 LANGUAGE_C=1 SYSTYPE_BSD=1' +ccsymbols='LANGUAGE_C=1 SYSTYPE_BSD=1 _LONGLONG=1 __LANGUAGE_C__=1' cf_by='jhi' cf_email='yourname@yourhost.yourplace.com' -cf_time='Sat Feb 20 15:45:59 EET 1999' +cf_time='Mon Apr 19 22:33:54 EET DST 1999' chgrp='' chmod='' chown='' @@ -67,13 +67,14 @@ cp='cp' cpio='' cpp='cpp' cpp_stuff='42' -cppccsymbols='__alpha=1 __osf__=1 __unix__=1 _SYSTYPE_BSD=1 unix=1' +cppccsymbols='_SYSTYPE_BSD=1 __alpha=1 __osf__=1 __unix__=1 unix=1' cppflags='-pthread -std -DLANGUAGE_C' cpplast='' cppminus='' cpprun='/usr/bin/cpp' cppstdin='cppstdin' cppsymbols='' +crosscompile='undef' cryptlib='' csh='csh' d_Gconvert='gcvt((x),(n),(b))' @@ -186,13 +187,14 @@ d_hasmntopt='undef' d_htonl='define' d_index='undef' d_inetaton='define' -d_ino64t='undef' +d_ino64_t='undef' d_int64t='undef' d_iovec_s='define' d_isascii='define' d_killpg='define' d_lchown='define' d_link='define' +d_llseek='undef' d_locconv='define' d_lockf64='undef' d_lockf='define' @@ -230,7 +232,8 @@ d_munmap='define' d_mymalloc='undef' d_nextkey64='undef' d_nice='define' -d_off64t='undef' +d_off64_t='undef' +d_offset_t='undef' d_old_pthread_create_joinable='undef' d_oldpthreads='undef' d_oldsock='undef' @@ -347,7 +350,7 @@ d_truncate64='undef' d_truncate='define' d_tzname='define' d_umask='define' -d_uname='undef' +d_uname='define' d_union_semun='undef' d_vfork='undef' d_void_closedir='undef' @@ -424,6 +427,7 @@ i_netdb='define' i_neterrno='undef' i_niin='define' i_poll='define' +i_pthread='define' i_pwd='define' i_rpcsvcdbm='undef' i_sfio='undef' @@ -467,14 +471,14 @@ i_vfork='undef' ignore_versioned_solibs='' incpath='' inews='' -installarchlib='/opt/perl/lib/5.00555/alpha-dec_osf-thread' +installarchlib='/opt/perl/lib/5.00556/alpha-dec_osf-thread' installbin='/opt/perl/bin' installman1dir='/opt/perl/man/man1' installman3dir='/opt/perl/man/man3' -installprivlib='/opt/perl/lib/5.00555' +installprivlib='/opt/perl/lib/5.00556' installscript='/opt/perl/bin' -installsitearch='/opt/perl/lib/site_perl/5.00555/alpha-dec_osf-thread' -installsitelib='/opt/perl/lib/site_perl/5.00555' +installsitearch='/opt/perl/lib/site_perl/5.00556/alpha-dec_osf-thread' +installsitelib='/opt/perl/lib/site_perl/5.00556' installusrbinperl='define' intsize='4' known_extensions='B DB_File Data/Dumper Devel/Peek Fcntl GDBM_File IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Thread attrs re' @@ -486,10 +490,10 @@ ldflags='' less='less' lib_ext='.a' libc='/usr/shlib/libc.so' -libperl='libperl.a' +libperl='libperl.so' libpth='/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /var/shlib' -libs='-lgdbm -ldbm -ldb -lm -lpthread -lexc' -libswanted='sfio socket inet nsl nm gdbm dbm db malloc dld ld sun m cposix posix ndir dir crypt ucb BSD x pthread exc' +libs='-lgdbm -ldbm -ldb -lm -lrt -lpthread -lexc' +libswanted='sfio socket inet nsl nm gdbm dbm db malloc dld ld sun m rt cposix posix ndir dir crypt ucb BSD x pthread exc' line='' lint='' lkflags='' @@ -526,6 +530,7 @@ mmaptype='void *' models='none' modetype='mode_t' more='more' +multiarch='undef' mv='' myarchname='alpha-dec_osf' mydomain='.yourplace.com' @@ -564,8 +569,8 @@ pmake='' pr='' prefix='/opt/perl' prefixexp='/opt/perl' -privlib='/opt/perl/lib/5.00555' -privlibexp='/opt/perl/lib/5.00555' +privlib='/opt/perl/lib/5.00556' +privlibexp='/opt/perl/lib/5.00556' prototype='define' ptrsize='8' randbits='48' @@ -591,15 +596,16 @@ shmattype='void *' shortsize='2' shrpenv='' shsharp='true' +sig_count='49' sig_name='ZERO HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM IOINT STOP TSTP CONT CHLD TTIN TTOU AIO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2 RESV RTMIN NUM34 NUM35 NUM36 NUM37 NUM38 NUM39 NUM40 NUM41 NUM42 NUM43 NUM44 NUM45 NUM46 NUM47 MAX IOT LOST URG CLD IO POLL PTY PWR RTMAX ' sig_name_init='"ZERO", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "EMT", "FPE", "KILL", "BUS", "SEGV", "SYS", "PIPE", "ALRM", "TERM", "IOINT", "STOP", "TSTP", "CONT", "CHLD", "TTIN", "TTOU", "AIO", "XCPU", "XFSZ", "VTALRM", "PROF", "WINCH", "INFO", "USR1", "USR2", "RESV", "RTMIN", "NUM34", "NUM35", "NUM36", "NUM37", "NUM38", "NUM39", "NUM40", "NUM41", "NUM42", "NUM43", "NUM44", "NUM45", "NUM46", "NUM47", "MAX", "IOT", "LOST", "URG", "CLD", "IO", "POLL", "PTY", "PWR", "RTMAX", 0' sig_num='0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 6 6 16 20 23 23 23 29 48 ' sig_num_init='0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 6, 6, 16, 20, 23, 23, 23, 29, 48, 0' signal_t='void' -sitearch='/opt/perl/lib/site_perl/5.00555/alpha-dec_osf-thread' -sitearchexp='/opt/perl/lib/site_perl/5.00555/alpha-dec_osf-thread' -sitelib='/opt/perl/lib/site_perl/5.00555' -sitelibexp='/opt/perl/lib/site_perl/5.00555' +sitearch='/opt/perl/lib/site_perl/5.00556/alpha-dec_osf-thread' +sitearchexp='/opt/perl/lib/site_perl/5.00556/alpha-dec_osf-thread' +sitelib='/opt/perl/lib/site_perl/5.00556' +sitelibexp='/opt/perl/lib/site_perl/5.00556' sizetype='size_t' sleep='' smail='' @@ -624,12 +630,12 @@ stdio_filbuf='' stdio_ptr='((fp)->_ptr)' strings='/usr/include/string.h' submit='' -subversion='55' +subversion='56' sysman='/usr/man/man1' tail='' tar='' tbl='' -tee='tee' +tee='' test='test' timeincl='/usr/include/sys/time.h ' timetype='time_t' @@ -649,12 +655,12 @@ useopcode='true' useperlio='undef' useposix='true' usesfio='false' -useshrplib='false' +useshrplib='true' usethreads='define' usevfork='false' usrinc='/usr/include' uuname='' -version='5.00555' +version='5.00556' vi='' voidflags='15' xlibpth='/usr/lib/386 /lib/386' @@ -676,7 +682,7 @@ config_arg9='-Dmyhostname=yourhost' config_arg10='-dE' PERL_REVISION=5 PERL_VERSION=5 -PERL_SUBVERSION=55 -CONFIG=true +PERL_SUBVERSION=56 +CONFIGDOTSH=true # Variables propagated from previous config.sh file. pp_sys_cflags='ccflags="$ccflags -DNO_EFF_ONLY_OK"' diff --git a/Porting/config_H b/Porting/config_H index 54c7e60..db1d35d 100644 --- a/Porting/config_H +++ b/Porting/config_H @@ -17,7 +17,7 @@ /* * Package name : perl5 * Source directory : . - * Configuration time: Sat Feb 20 15:45:59 EET 1999 + * Configuration time: Mon Apr 19 22:33:54 EET DST 1999 * Configured by : jhi * Target system : osf1 alpha.hut.fi v4.0 878 alpha */ @@ -228,27 +228,6 @@ */ #define HAS_GETGROUPS /**/ -/* HAS_GETHOSTNAME: - * This symbol, if defined, indicates that the C program may use the - * gethostname() routine to derive the host name. See also HAS_UNAME - * and PHOSTNAME. - */ -/* HAS_UNAME: - * This symbol, if defined, indicates that the C program may use the - * uname() routine to derive the host name. See also HAS_GETHOSTNAME - * and PHOSTNAME. - */ -/* PHOSTNAME: - * This symbol, if defined, indicates that the C program may use the - * contents of PHOSTNAME as a command to feed to the popen() routine - * to derive the host name. See also HAS_GETHOSTNAME and HAS_UNAME. - * Note that the command uses a fully qualified path, so that it is safe - * even if used by a process with super-user privileges. - */ -#define HAS_GETHOSTNAME /**/ -/*#define HAS_UNAME / **/ -/*#define PHOSTNAME "" / * How to get the host name */ - /* HAS_GETLOGIN: * This symbol, if defined, indicates that the getlogin routine is * available to get the login name. @@ -712,11 +691,6 @@ */ #define HAS_UMASK /**/ -/* HAS_VFORK: - * This symbol, if defined, indicates that vfork() exists. - */ -/*#define HAS_VFORK / **/ - /* HASVOLATILE: * This symbol, if defined, indicates that this C compiler knows about * the volatile declaration. @@ -1057,20 +1031,54 @@ */ #define I_SYS_SECURITY /**/ +/* CROSSCOMPILE: + * This symbol, if defined, signifies that we our + * build process is a cross-compilation. + */ +/*#define CROSSCOMPILE / **/ + +/* INTSIZE: + * This symbol contains the value of sizeof(int) so that the C + * preprocessor can make decisions based on it. + */ +/* LONGSIZE: + * This symbol contains the value of sizeof(long) so that the C + * preprocessor can make decisions based on it. + */ +/* SHORTSIZE: + * This symbol contains the value of sizeof(short) so that the C + * preprocessor can make decisions based on it. + */ +#define INTSIZE 4 /**/ +#define LONGSIZE 8 /**/ +#define SHORTSIZE 2 /**/ + +/* MULTIARCH: + * This symbol, if defined, signifies that the build + * process will produce some binary files that are going to be + * used in a cross-platform environment. This is the case for + * example with the NeXT "fat" binaries that contain executables + * for several CPUs. + */ +/*#define MULTIARCH / **/ + /* MEM_ALIGNBYTES: - * This symbol contains the number of bytes required to align a - * double. Usual values are 2, 4 and 8. - * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture - * Binaries (MAB) for targets with varying alignment. This only matters - * for perl, where the config.h can be generated and installed on one - * system, and used by a different architecture to build an extension. - * The default is eight, for safety. + * This symbol contains the number of bytes required to align a + * double. Usual values are 2, 4 and 8. The default is eight, + * for safety. */ -#define MEM_ALIGNBYTES 8 /**/ +#if defined(CROSSCOMPILE) || defined(MULTIARCH) +# define MEM_ALIGNBYTES 8 +#else +#define MEM_ALIGNBYTES 8 +#endif /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, * i.e. 0x1234 or 0x4321, etc... + * If the compiler supports cross-compiling or multiple-architecture + * binaries (eg. on NeXT systems), use compiler-defined macros to + * determine the byte order. * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture * Binaries (MAB) on either big endian or little endian machines. * The endian-ness is available at compile-time. This only matters @@ -1081,14 +1089,31 @@ * so the default case (for NeXT) is big endian to catch them. * This might matter for NeXT 3.0. */ -#ifndef NeXT +#if defined(CROSSCOMPILE) || defined(MULTIARCH) +# ifdef __LITTLE_ENDIAN__ +# if LONGSIZE == 4 +# define BYTEORDER 0x1234 +# else +# if LONGSIZE == 8 +# define BYTEORDER 0x12345678 +# endif +# endif +# else +# ifdef __BIG_ENDIAN__ +# if LONGSIZE == 4 +# define BYTEORDER 0x4321 +# else +# if LONGSIZE == 8 +# define BYTEORDER 0x87654321 +# endif +# endif +# endif +# endif +# if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__)) +# define BYTEORDER 0x4321 +# endif +#else #define BYTEORDER 0x12345678 /* large digits for MSB */ -#else /* NeXT */ -#ifdef __LITTLE_ENDIAN__ -#define BYTEORDER 0x1234 -#else /* __BIG_ENDIAN__ */ -#define BYTEORDER 0x4321 -#endif /* ENDIAN CHECK */ #endif /* NeXT */ /* CASTI32: @@ -1320,22 +1345,6 @@ #define I_SYS_TIME /**/ /*#define I_SYS_TIME_KERNEL / **/ -/* INTSIZE: - * This symbol contains the value of sizeof(int) so that the C - * preprocessor can make decisions based on it. - */ -/* LONGSIZE: - * This symbol contains the value of sizeof(long) so that the C - * preprocessor can make decisions based on it. - */ -/* SHORTSIZE: - * This symbol contains the value of sizeof(short) so that the C - * preprocessor can make decisions based on it. - */ -#define INTSIZE 4 /**/ -#define LONGSIZE 8 /**/ -#define SHORTSIZE 2 /**/ - /* VAL_O_NONBLOCK: * This symbol is to be used during open() or fcntl(F_SETFL) to turn on * non-blocking I/O for the file descriptor. Note that there is no way @@ -1542,6 +1551,30 @@ */ #define HAS_GETHOSTENT /**/ +/* HAS_GETHOSTNAME: + * This symbol, if defined, indicates that the C program may use the + * gethostname() routine to derive the host name. See also HAS_UNAME + * and PHOSTNAME. + */ +/* HAS_UNAME: + * This symbol, if defined, indicates that the C program may use the + * uname() routine to derive the host name. See also HAS_GETHOSTNAME + * and PHOSTNAME. + */ +/* PHOSTNAME: + * This symbol, if defined, indicates the command to feed to the + * popen() routine to derive the host name. See also HAS_GETHOSTNAME + * and HAS_UNAME. Note that the command uses a fully qualified path, + * so that it is safe even if used by a process with super-user + * privileges. + */ +#define HAS_GETHOSTNAME /**/ +#define HAS_UNAME /**/ +#undef HAS_PHOSTNAME +#ifdef HAS_PHOSTNAME +#define PHOSTNAME "" /* How to get the host name */ +#endif + /* HAS_GETNETBYADDR: * This symbol, if defined, indicates that the getnetbyaddr() routine is * available to look up networks by their IP addresses. @@ -1851,6 +1884,11 @@ #define USE_SEMCTL_SEMUN /**/ #define USE_SEMCTL_SEMID_DS /**/ +/* HAS_VFORK: + * This symbol, if defined, indicates that vfork() exists. + */ +/*#define HAS_VFORK / **/ + /* Signal_t: * This symbol's value is either "void" or "int", corresponding to the * appropriate return type of a signal handler. Thus, you can declare @@ -2025,8 +2063,8 @@ * This symbol contains the ~name expanded version of ARCHLIB, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define ARCHLIB "/opt/perl/lib/5.00555/alpha-dec_osf-thread" /**/ -#define ARCHLIB_EXP "/opt/perl/lib/5.00555/alpha-dec_osf-thread" /**/ +#define ARCHLIB "/opt/perl/lib/5.00556/alpha-dec_osf-thread" /**/ +#define ARCHLIB_EXP "/opt/perl/lib/5.00556/alpha-dec_osf-thread" /**/ /* DLSYM_NEEDS_UNDERSCORE: * This symbol, if defined, indicates that we need to prepend an @@ -2296,8 +2334,8 @@ * This symbol contains the ~name expanded version of PRIVLIB, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define PRIVLIB "/opt/perl/lib/5.00555" /**/ -#define PRIVLIB_EXP "/opt/perl/lib/5.00555" /**/ +#define PRIVLIB "/opt/perl/lib/5.00556" /**/ +#define PRIVLIB_EXP "/opt/perl/lib/5.00556" /**/ /* SELECT_MIN_BITS: * This symbol holds the minimum number of bits operated by select. @@ -2321,8 +2359,8 @@ * This symbol contains the ~name expanded version of SITEARCH, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define SITEARCH "/opt/perl/lib/site_perl/5.00555/alpha-dec_osf-thread" /**/ -#define SITEARCH_EXP "/opt/perl/lib/site_perl/5.00555/alpha-dec_osf-thread" /**/ +#define SITEARCH "/opt/perl/lib/site_perl/5.00556/alpha-dec_osf-thread" /**/ +#define SITEARCH_EXP "/opt/perl/lib/site_perl/5.00556/alpha-dec_osf-thread" /**/ /* SITELIB: * This symbol contains the name of the private library for this package. @@ -2337,8 +2375,8 @@ * This symbol contains the ~name expanded version of SITELIB, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define SITELIB "/opt/perl/lib/site_perl/5.00555" /**/ -#define SITELIB_EXP "/opt/perl/lib/site_perl/5.00555" /**/ +#define SITELIB "/opt/perl/lib/site_perl/5.00556" /**/ +#define SITELIB_EXP "/opt/perl/lib/site_perl/5.00556" /**/ /* STARTPERL: * This variable contains the string to put in front of a perl