$! This .COM file expects to be called by configure.com, and thus expects
$! a few symbols in the environment. Notably:
$!
-$! One of: Using_Dec_C, Using_Vax_C, Using_Gnu_C set to "YES"
+$! One of: Using_Dec_C, Using_Gnu_C set to "YES"
$! Dec_C_Version set to the Dec C version (defaults to 0 if not specified)
$! Has_Socketshr set to "T" if using socketshr
$! Has_Dec_C_Sockets set to "T" if using Dec C sockets
$! Use_Threads set to "T" if they're using threads
$! C_Compiler_Invoke is the command needed to invoke the C compiler
$!
+$! We'll be playing with Sys$Output; don't clutter it
+$ Set NoVerify
+$!
$! Set Dec_C_Version to something
$ WRITE_RESULT := "WRITE SYS$OUTPUT ""%CONFIG-I-RESULT "" + "
$ echo = "Write Sys$Output "
$ perl_d_statfs_f_flags = "undef"
$ perl_d_statfs_s = "undef"
$ perl_d_ustat = "undef"
+$ perl_i_ieeefp = "undef"
$ perl_i_sunmath = "undef"
$ perl_i_sysstatfs = "undef"
$ perl_i_sysvfs = "undef"
$ perl_d_recvmsg = "undef"
$ perl_d_msghdr_s = "undef"
$ perl_d_cmsghdr_s = "undef"
-$ IF use_64bitint .eqs. "Y"
+$ IF (use64bitint)
$ THEN
$ perl_use64bitint = "define"
$ perl_uselargefiles = "define"
$ perl_uselongdouble = "undef"
$ perl_usemorebits = "undef"
$ ENDIF
-$ use_64bitall = use_64bitint ! until configure.com question is reworded?
-$ IF use_64bitall .eqs. "Y"
+$ IF (use64bitall)
$ THEN
$ perl_use64bitall = "define"
$ ELSE
$!
$! Are we 64 bit?
$!
-$ if (use_64bitint .eqs. "Y")
+$ if (use64bitint)
$ THEN
$ perl_d_PRIfldbl = "define"
$ perl_d_PRIgldbl = "define"
$ CS := "close SOURCECHAN"
$ DS := "delete/nolog []temp.*;*"
$ Needs_Opt := "No"
-$ if ("''using_vax_c'".eqs."Yes").or.("''using_gnu_c'".eqs."Yes")
+$ if ("''using_gnu_c'".eqs."Yes")
$ THEN
$ open/write OPTCHAN []temp.opt
-$ IF ("''using_gnu_c'".eqs."Yes")
-$ THEN
-$ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
-$ endif
+$ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
$ write OPTCHAN "Sys$Share:VAXCRTL/Share"
$ Close OPTCHAN
$ Needs_Opt := "Yes"
$ if (teststatus.nes."1")
$ THEN
$! Okay, compile failed. Must not have it
-$ perl_dgethname = "undef"
+$ perl_d_gethname = "undef"
$ ELSE
$ If (Needs_Opt.eqs."Yes")
$ THEN
$ perl_d_setlocale="undef"
$ ENDIF
$!
-$! Vax C stuff
-$ if ("''Using_Vax_C'".EQS."Yes")
-$ THEN
-$ perl_vms_cc_type="vaxc"
-$ ENDIF
-$!
$! Sockets?
$ if ("''Has_Socketshr'".EQS."T").OR.("''Has_Dec_C_Sockets'".EQS."T")
$ THEN
$ gosub type_size_check
$ perl_u32size="''line'"
$
-$ type = "''perl_i64type'"
-$ size_name = "i64size"
-$ gosub type_size_check
-$ perl_i64size="''line'"
+$ If use_64bitint
+$ Then
+$ type = "''perl_i64type'"
+$ size_name = "i64size"
+$ gosub type_size_check
+$ perl_i64size="''line'"
$
-$ type = "''perl_u64type'"
-$ size_name = "u64size"
-$ gosub type_size_check
-$ perl_u64size="''line'"
+$ type = "''perl_u64type'"
+$ size_name = "u64size"
+$ gosub type_size_check
+$ perl_u64size="''line'"
+$ Else
+$ perl_i64size="undef"
+$ perl_u64size="undef"
+$ EndIf
$!
$ perl_ivdformat="""ld"""
$ perl_uvuformat="""lu"""
$ if "''Using_Dec_C'" .eqs. "Yes"
$ THEN
$ perl_ccflags="/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=''perl_obj_ext'/NoList''cc_flags'"
-$ ELSE
-$ IF "''Using_Vax_C'" .eqs. "Yes"
-$ THEN
-$ perl_ccflags="/Include=[]/Obj=''perl_obj_ext'/NoList''cc_flags'"
-$ ENDIF
$ ENDIF
$ if use_vmsdebug_perl .eqs. "Y"
$ then
$ WC "d_phostname='" + perl_d_phostname + "'"
$ WC "d_accessx='" + perl_d_accessx + "'"
$ WC "d_eaccess='" + perl_d_eaccess + "'"
+$ WC "i_ieeefp='" + perl_i_ieeefp + "'"
$ WC "i_sunmath='" + perl_i_sunmath + "'"
$ WC "i_sysaccess='" + perl_i_sysaccess + "'"
$ WC "i_syssecrt='" + perl_i_syssecrt + "'"
$ WC "uselongdouble='" + perl_uselongdouble + "'"
$ WC "usemorebits='" + perl_usemorebits + "'"
$ WC "d_quad='" + perl_d_quad + "'"
-$ if (use_64bitint .eqs. "Y")
+$ IF (use64bitint)
$ THEN
$ WC "quadtype='" + perl_quadtype + "'"
$ WC "uquadtype='" + perl_uquadtype + "'"
$ ELSE
$ WRITE CONFIG "#undef ALWAYS_DEFTYPES"
$ ENDIF
-$ if use_64bitint.eqs."Y"
+$ IF (use64bitint)
$ THEN
$ WRITE CONFIG "#define USE_64_BIT_INT"
$ WRITE CONFIG "#define USE_LONG_DOUBLE"
$ ENDIF
-$ if use_64bitall.eqs."Y"
+$ IF (use64bitall)
$ THEN
$ WRITE CONFIG "#define USE_64_BIT_ALL"
$ ENDIF