X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=configure.com;h=cfa695cac567d677c619cad2b40eee88e3bda8d6;hb=b56ce070e5e427b18f8ce2ff317a8cae0ca4315a;hp=19efea151065bf7c32f4c3828c802a4725b3f135;hpb=85f7ebdf8b7a5cb2d4dfef649f36732a2c3c4afc;p=p5sagit%2Fp5-mst-13.2.git diff --git a/configure.com b/configure.com index 19efea1..cfa695c 100644 --- a/configure.com +++ b/configure.com @@ -1275,6 +1275,12 @@ $ revision = baserev - ".0" $!: get the patchlevel $ echo "" $ echo4 "Getting the current patchlevel..." +$ patchlevel="0" +$ subversion="0" +$ api_revision="0" +$ api_version="0" +$ api_subversion="0" +$ perl_patchlevel="0" $ patchlevel_h = F$SEARCH("[-]patchlevel.h") $ IF (patchlevel_h.NES."") $ THEN @@ -1333,13 +1339,6 @@ $ IF (.NOT. got_patch) .OR. - THEN GOTO Patchlevel_h_loop $Close_patch: $ CLOSE CONFIG -$ ELSE -$ patchlevel="0" -$ subversion="0" -$ api_revision="0" -$ api_version="0" -$ api_subversion="0" -$ perl_patchlevel="0" $ ENDIF $ version_patchlevel_string = "version ''patchlevel' subversion ''subversion'" $ IF got_perl_patchlevel .AND. perl_patchlevel .NES. "0" @@ -2519,7 +2518,10 @@ $ IF F$EXTRACT(0,4,line) .EQS. "ext/" THEN - $ IF xxx .EQS. "DynaLoader" THEN goto ext_loop ! omit $ IF xxx .EQS. "SDBM_File/sdbm" THEN goto ext_loop ! sub extension - omit $ IF xxx .EQS. "Devel/PPPort/harness" THEN goto ext_loop ! sub extension - omit -$ IF xxx .EQS. "Encode/EUC_JP" THEN goto ext_loop ! sub extension - omit +$ IF xxx .EQS. "Encode/CN" THEN goto ext_loop ! sub extension - omit +$ IF xxx .EQS. "Encode/JP" THEN goto ext_loop ! sub extension - omit +$ IF xxx .EQS. "Encode/KR" THEN goto ext_loop ! sub extension - omit +$ IF xxx .EQS. "Encode/TW" THEN goto ext_loop ! sub extension - omit $ IF F$EXTRACT(0,8,line) .EQS. "vms/ext/" THEN - xxx = "VMS/" + F$EXTRACT(8,line_len - 20,line) $ known_extensions = known_extensions + " ''xxx'" @@ -4914,7 +4916,7 @@ $ IF tmp .EQS. "preserve" $ THEN $ d_nv_preserves_uv = "define" $ echo "Yes, they can." -$ d_nv_preserves_uv_bits = F$STRING(F$INTEGER(uvsize) * 8) +$ nv_preserves_uv_bits = F$STRING(F$INTEGER(uvsize) * 8) $ ELSE $ d_nv_preserves_uv = "undef" $ echo "No, they can't." @@ -4938,26 +4940,32 @@ $ WS " exit(0);" $ WS "}" $ CS $ GOSUB compile -$ d_nv_preserves_uv_bits = tmp +$ nv_preserves_uv_bits = tmp $ ENDIF $! -$ echo4 "Checking whether your kill() uses SYS$FORCEX..." +$ echo4 "Checking if kill() uses SYS$FORCEX or can't be called from a signal handler..." $ kill_by_sigprc = "undef" $ OS $ WS "#include " $ WS "#include " -$ WS "void handler(int s) { printf(""%d\n"",s); } " +$ WS "#include " +$ WS "void handler1(int s) { printf(""%d"",s); kill(getpid(),2); }" +$ WS "void handler2(int s) { printf(""%d"",s); }" $ WS "main(){" $ WS " printf(""0"");" -$ WS " signal(1,handler); kill(0,1);" +$ WS " signal(1,handler1);" +$ WS " signal(2,handler2);" +$ WS " kill(getpid(),1);" +$ WS " sleep(1);" +$ WS " printf(""\n"");" $ WS "}" $ CS $ ON ERROR THEN CONTINUE $ GOSUB compile -$ IF tmp .NES. "01" +$ IF tmp .NES. "012" $ THEN -$ echo "Yes, it does." -$ echo4 "Checking whether we can use SYS$SIGPRC instead" +$ echo4 "Yes, it has at least one of those limitations." +$ echo4 "Checking whether we can use SYS$SIGPRC instead..." $ OS $ WS "#include " $ WS "#include " @@ -4977,7 +4985,7 @@ $ CS $ GOSUB compile $ IF tmp .EQS. "1" $ THEN -$ echo "looks like we can" +$ echo4 "Yep, we can." $ kill_by_sigprc = "define" $! $! since SIGBUS and SIGSEGV indistinguishable, make them the same here. @@ -5001,7 +5009,11 @@ $ sig_num="0 1 2 3 4 5 6 7 8 9 10 10 12 13 14 15 6"",0" $ sig_num_init="0,1,2,3,4,5,6,7,8,9,10,10,12,13,14,15,6,0" $ sig_size="17" $ endif +$ ELSE +$ echo4 "Nope, we can't." $ ENDIF +$ ELSE +$ echo4 "Nope, it doesn't." $ ENDIF $ DELETE/SYMBOL tmp $! @@ -5269,7 +5281,7 @@ $ WC "d_mymalloc='" + d_mymalloc + "'" $ WC "d_nice='define'" $ WC "d_nl_langinfo='" + d_nl_langinfo + "'" $ WC "d_nv_preserves_uv='" + d_nv_preserves_uv + "'" -$ WC "d_nv_preserves_uv_bits='" + d_nv_preserves_uv_bits + "'" +$ WC "nv_preserves_uv_bits='" + nv_preserves_uv_bits + "'" $ WC "d_off64_t='" + d_off64_t + "'" $ WC "d_old_pthread_create_joinable='" + d_old_pthread_create_joinable + "'" $ WC "d_oldarchlib='define'" @@ -5396,6 +5408,14 @@ $ WC "d_tcsetpgrp='undef'" $ WC "d_telldir='define'" $ WC "d_telldirproto='define'" $ WC "d_times='define'" +$ IF ("''F$EXTRACT(1,3, F$GETSYI(""VERSION""))'".GES."7.0") +$ THEN +$ WC "d_tm_tm_gmtoff='define'" +$ WC "d_tm_tm_zone='define'" +$ ELSE +$ WC "d_tm_tm_gmtoff='undef'" +$ WC "d_tm_tm_zone='undef'" +$ ENDIF $ WC "d_truncate='" + d_truncate + "'" $ WC "d_tzname='" + d_tzname + "'" $ WC "d_u32align='define'" @@ -5621,8 +5641,8 @@ $ WC "perl_verb='" + perl_verb + "'" ! VMS specific $ WC "pgflquota='" + pgflquota + "'" $ WC "pidtype='" + pidtype + "'" $ WC "pm_apiversion='" + version + "'" -$! WC "prefix='" + vms_prefix + "'" -$ WC "prefix='" + prefix + "'" +$ WC "prefix='" + vms_prefix + "'" +$ WC "prefixexp='" + vms_prefix + ":'" $ WC "privlib='" + privlib + "'" $ WC "privlibexp='" + privlibexp + "'" $ WC "procselfexe=' '" @@ -5741,6 +5761,109 @@ $ WC "vms_ver='" + vms_ver + "'" ! VMS specific $ WC "voidflags='15'" $ WC "xs_apiversion='" + version + "'" $ WC "PERL_CONFIG_SH='true'" + +$! +$! ## The UNIXy POSIXy reentrantey thingys ## +$! + +$ WC "asctime_r_proto='0'" +$ WC "crypt_r_proto='0'" +$ WC "ctermid_r_proto='0'" +$ WC "ctime_r_proto='0'" +$ WC "d_asctime_r='undef'" +$ WC "d_crypt_r='undef'" +$ WC "d_ctermid_r='undef'" +$ WC "d_ctime_r='undef'" +$ WC "d_drand48_r='undef'" +$ WC "d_endgrent_r='undef'" +$ WC "d_endhostent_r='undef'" +$ WC "d_endnetent_r='undef'" +$ WC "d_endprotoent_r='undef'" +$ WC "d_endpwent_r='undef'" +$ WC "d_endservent_r='undef'" +$ WC "d_getgrent_r='undef'" +$ WC "d_getgrgid_r='undef'" +$ WC "d_getgrnam_r='undef'" +$ WC "d_gethostbyaddr_r='undef'" +$ WC "d_gethostbyname_r='undef'" +$ WC "d_gethostent_r='undef'" +$ WC "d_getlogin_r='undef'" +$ WC "d_getnetbyaddr_r='undef'" +$ WC "d_getnetbyname_r='undef'" +$ WC "d_getnetent_r='undef'" +$ WC "d_getprotobyname_r='undef'" +$ WC "d_getprotobynumber_r='undef'" +$ WC "d_getprotoent_r='undef'" +$ WC "d_getpwent_r='undef'" +$ WC "d_getpwnam_r='undef'" +$ WC "d_getpwuid_r='undef'" +$ WC "d_getservbyname_r='undef'" +$ WC "d_getservbyport_r='undef'" +$ WC "d_getservent_r='undef'" +$ WC "d_getspnam_r='undef'" +$ WC "d_gmtime_r='undef'" +$ WC "d_localtime_r='undef'" +$ WC "d_random_r='undef'" +$ WC "d_readdir64_r='undef'" +$ WC "d_readdir_r='undef'" +$ WC "d_setgrent_r='undef'" +$ WC "d_sethostent_r='undef'" +$ WC "d_setlocale_r='undef'" +$ WC "d_setnetent_r='undef'" +$ WC "d_setprotoent_r='undef'" +$ WC "d_setpwent_r='undef'" +$ WC "d_setservent_r='undef'" +$ WC "d_srand48_r='undef'" +$ WC "d_srandom_r='undef'" +$ WC "d_strerror_r='undef'" +$ WC "d_tmpnam_r='undef'" +$ WC "d_ttyname_r='undef'" +$ WC "drand48_r_proto='0'" +$ WC "endgrent_r_proto='0'" +$ WC "endhostent_r_proto='0'" +$ WC "endnetent_r_proto='0'" +$ WC "endprotoent_r_proto='0'" +$ WC "endpwent_r_proto='0'" +$ WC "endservent_r_proto='0'" +$ WC "getgrent_r_proto='0'" +$ WC "getgrgid_r_proto='0'" +$ WC "getgrnam_r_proto='0'" +$ WC "gethostbyaddr_r_proto='0'" +$ WC "gethostbyname_r_proto='0'" +$ WC "gethostent_r_proto='0'" +$ WC "getlogin_r_proto='0'" +$ WC "getnetbyaddr_r_proto='0'" +$ WC "getnetbyname_r_proto='0'" +$ WC "getnetent_r_proto='0'" +$ WC "getprotobyname_r_proto='0'" +$ WC "getprotobynumber_r_proto='0'" +$ WC "getprotoent_r_proto='0'" +$ WC "getpwent_r_proto='0'" +$ WC "getpwnam_r_proto='0'" +$ WC "getpwuid_r_proto='0'" +$ WC "getservbyname_r_proto='0'" +$ WC "getservbyport_r_proto='0'" +$ WC "getservent_r_proto='0'" +$ WC "getspnam_r_proto='0'" +$ WC "gmtime_r_proto='0'" +$ WC "i_crypt='undef'" +$ WC "localtime_r_proto='0'" +$ WC "random_r_proto='0'" +$ WC "readdir64_r_proto='0'" +$ WC "readdir_r_proto='0'" +$ WC "setgrent_r_proto='0'" +$ WC "sethostent_r_proto='0'" +$ WC "setlocale_r_proto='0'" +$ WC "setnetent_r_proto='0'" +$ WC "setprotoent_r_proto='0'" +$ WC "setpwent_r_proto='0'" +$ WC "setservent_r_proto='0'" +$ WC "srand48_r_proto='0'" +$ WC "srandom_r_proto='0'" +$ WC "strerror_r_proto='0'" +$ WC "tmpnam_r_proto='0'" +$ WC "ttyname_r_proto='0' + $! $! ##END WRITE NEW CONSTANTS HERE## $!