1 $! SUBCONFIGURE.COM - build a config.sh for VMS Perl.
3 $! Note for folks from other platforms changing things in here:
4 $! Fancy changes (based on compiler capabilities or VMS version or
5 $! whatever) are tricky, so go ahead and punt on those.
7 $! Simple changes, though (say, always setting something to 1, or undef,
8 $! or something like that) are straightforward. Adding a new item for the
9 $! ultimately created config.sh requires adding two lines to this file.
11 $! First, a line in the format:
13 $! after the line tagged ##ADD NEW CONSTANTS HERE##. Replace foo with the
14 $! variable name as it appears in config.sh.
16 $! Second, add a line in the format:
17 $! $ WC "foo='" + perl_foo + "'"
18 $! after the line tagged ##WRITE NEW CONSTANTS HERE##. Careful of the
19 $! quoting, as it can be tricky.
21 $! This .COM file expects to be called by configure.com, and thus expects
22 $! a few symbols in the environment. Notably:
24 $! One of: Using_Dec_C, Using_Vax_C, Using_Gnu_C set to "YES"
25 $! Dec_C_Version set to the Dec C version (defaults to 0 if not specified)
26 $! Has_Socketshr set to "T" if using socketshr
27 $! Has_Dec_C_Sockets set to "T" if using Dec C sockets
28 $! Use_Threads set to "T" if they're using threads
29 $! C_Compiler_Invoke is the command needed to invoke the C compiler
31 $! Set Dec_C_Version to something
32 $ WRITE_RESULT := "WRITE SYS$OUTPUT ""%CONFIG-I-RESULT "" + "
33 $ Dec_C_Version := "''Dec_C_Version'"
34 $ Dec_C_Version = Dec_C_Version + 0
35 $ Vms_Ver := "''f$extract(1,3, f$getsyi(""version""))'"
36 $ perl_extensions := "''extensions'"
37 $ if f$length(Mcc) .eq. 0 then Mcc := "cc"
38 $ MCC = f$edit(mcc, "UPCASE")
41 $ C_Compiler_Replace := "CC="
43 $ C_Compiler_Replace := "CC=CC=''Mcc'"
45 $ if "''Using_Dec_C'" .eqs. "Yes"
47 $ Checkcc := "''Mcc'/prefix=all"
52 $ if use_multiplicity .eqs. "Y"
54 $ perl_usemultiplicity = "define"
56 $ perl_usemultiplicity = "undef"
58 $! Some constant defaults.
60 $ hwname = f$getsyi("HW_NAME")
62 $ if "''myname'" .eqs. "" THEN myname = f$trnlnm("SYS$NODE")
64 $! ##ADD NEW CONSTANTS HERE##
65 $ perl_d_madvise="undef"
66 $ perl_d_msync="undef"
67 $ perl_d_mprotect="undef"
68 $ perl_d_munmap="undef"
69 $ perl_crosscompile="undef"
70 $ perl_multiarch="undef"
72 $ perl_i_sysmman="undef"
73 $ perl_d_telldirproto="define"
74 $ perl_i_sysmount="undef"
75 $ perl_d_fstatfs="undef"
76 $ perl_i_machcthreads="undef"
77 $ perl_i_pthread="define"
78 $ perl_d_fstatvfs="undef"
79 $ perl_d_statfsflags="undef"
80 $ perl_i_sysstatvfs="undef"
81 $ perl_i_mntent="undef"
82 $ perl_d_getmntent="undef"
83 $ perl_d_hasmntopt="undef"
84 $ perl_package="''package'"
85 $ perl_baserev = "''baserev'"
87 $ perl_installusrbinperl="undef"
89 $ perl_d_fseeko="undef"
90 $ perl_d_ftello="undef"
91 $ perl_d_readv="undef"
92 $ perl_d_writev="undef"
93 $ perl_i_machcthr="undef"
94 $ perl_i_netdb="undef"
95 $ perl_d_gnulibc="undef"
96 $ perl_cf_by="unknown"
100 $ perl_drand01 = "random()"
101 $ perl_randseedtype = "unsigned int"
102 $ perl_seedfunc = "srand"
103 $ perl_d_msg_ctrunc = "undef"
104 $ perl_d_msg_dontroute = "undef"
105 $ perl_d_msg_oob = "undef"
106 $ perl_d_msg_peek = "undef"
107 $ perl_d_msg_proxy = "undef"
108 $ perl_d_scm_rights = "undef"
109 $ perl_d_sendmsg = "undef"
110 $ perl_d_recvmsg = "undef"
111 $ perl_d_msghdr_s = "undef"
112 $ perl_d_cmsghdr_s = "undef"
113 $ perl_d_dbminit64 = "undef"
114 $ perl_d_dbmclose64 = "undef"
115 $ perl_d_fetch64 = "undef"
116 $ perl_d_store64 = "undef"
117 $ perl_d_delete64 = "undef"
118 $ perl_d_firstkey64 = "undef"
119 $ perl_d_nextkey64 = "undef"
120 $ perl_d_fstat64 = "undef"
121 $ perl_d_ftruncate64 = "undef"
122 $ perl_d_lseek64 = "undef"
123 $ perl_d_lstat64 = "undef"
124 $ perl_d_open64 = "undef"
125 $ perl_d_opendir64 = "undef"
126 $ perl_d_readdir64 = "undef"
127 $ perl_d_seekdir64 = "undef"
128 $ perl_d_stat64 = "undef"
129 $ perl_d_telldir64 = "undef"
130 $ perl_d_truncate64 = "undef"
131 $ perl_d_dirent64_s = "undef"
132 $ perl_d_fgetpos64 = "undef"
133 $ perl_d_fopen64 = "undef"
134 $ perl_d_freopen64 = "undef"
135 $ perl_d_fseek64 = "undef"
136 $ perl_d_fseeko64 = "undef"
137 $ perl_d_fsetpos64 = "undef"
138 $ perl_d_ftell64 = "undef"
139 $ perl_d_ftello64 = "undef"
140 $ perl_d_tmpfile64 = "undef"
141 $ perl_use64bits = "undef"
142 $ perl_d_drand48proto = "define"
143 $ perl_libpth="/sys$share /sys$library"
145 $ perl_lddlflags="/Share"
150 $ perl_i_arpainet="undef"
151 $ perl_d_grpasswd="undef"
152 $ perl_d_setgrent="undef"
153 $ perl_d_getgrent="define"
154 $ perl_d_endgrent="define"
155 $ perl_d_pwpasswd="define"
156 $ perl_d_setpwent="define"
157 $ perl_d_getpwent="define"
158 $ perl_d_endpwent="define"
159 $ perl_d_phostname="undef"
160 $ perl_d_accessx="undef"
161 $ perl_d_eaccess="undef"
162 $ perl_ebcdic="undef"
164 $ perl_shrplib="define"
165 $ perl_usemymalloc=mymalloc
166 $ perl_usevfork="true"
167 $ perl_useposix="false"
168 $ perl_spitshell="write sys$output "
169 $ perl_dlsrc="dl_vms.c"
172 $ perl_prefix="perl_root"
173 $ perl_binexp="''perl_prefix':[000000]"
174 $ perl_builddir="''perl_prefix':[000000]"
175 $ perl_installbin="''perl_prefix':[000000]"
176 $ perl_installscript="''perl_prefix':[utils]"
177 $ perl_installman1dir="''perl_prefix':[man.man1]"
178 $ perl_installman3dir="''perl_prefix':[man.man3]"
179 $ perl_installprivlib="''perl_prefix':[lib]"
180 $ perl_installsitelib="''perl_prefix':[lib.site_perl]"
183 $ perl_d_sockpair="undef"
184 $ perl_i_neterrno="define"
185 $ perl_ldflags="/NoTrace/NoMap"
186 $ perl_d_lchown="undef"
187 $ perl_d_mknod="undef"
188 $ perl_d_union_semun="undef"
189 $ perl_d_semctl_semun="undef"
190 $ perl_d_semctl_semid_ds="undef"
191 $ IF (sharedperl.EQS."Y")
193 $ perl_obj_ext=".abj"
196 $ perl_exe_ext=".axe"
197 $ perl_lib_ext=".alb"
199 $ perl_obj_ext=".obj"
202 $ perl_exe_ext=".exe"
203 $ perl_lib_ext=".olb"
205 $ perl_dlobj="dl_vms''perl_obj_ext'"
207 $ perl_d_archlib="define"
208 $ perl_d_bincompat3="undef"
209 $ perl_cppstdin="''Perl_CC'/noobj/preprocess=sys$output sys$input"
211 $ perl_d_castneg="define"
213 $ perl_d_chsize="undef"
214 $ perl_d_const="define"
215 $ perl_d_crypt="define"
216 $ perl_byteorder="1234"
219 $ perl_d_dup2="define"
220 $ perl_d_fchmod="undef"
221 $ perl_d_fchown="undef"
222 $ perl_d_fcntl="undef"
223 $ perl_d_fgetpos="define"
224 $ perl_d_flexfnam="define"
225 $ perl_d_flock="undef"
226 $ perl_d_fsetpos="define"
227 $ perl_d_getgrps="undef"
228 $ perl_d_setgrps="undef"
229 $ perl_d_getprior="undef"
230 $ perl_d_killpg="undef"
231 $ perl_d_link="undef"
232 $ perl_d_lstat="undef"
233 $ perl_d_lockf="undef"
234 $ perl_d_memcmp="define"
235 $ perl_d_memcpy="define"
236 $ perl_d_memmove="define"
237 $ perl_d_memset="define"
238 $ perl_d_mkdir="define"
240 $ perl_d_open3="define"
241 $ perl_d_poll="undef"
242 $ perl_d_readdir="define"
243 $ perl_d_seekdir="define"
244 $ perl_d_telldir="define"
245 $ perl_d_rewinddir="define"
246 $ perl_d_rename="define"
247 $ perl_d_rmdir="define"
249 $ perl_d_setegid="undef"
250 $ perl_d_seteuid="undef"
251 $ perl_d_setprior="undef"
252 $ perl_d_setregid="undef"
253 $ perl_d_setresgid="undef"
254 $ perl_d_setreuid="undef"
255 $ perl_d_setresuid="undef"
256 $ perl_d_setrgid="undef"
257 $ perl_d_setruid="undef"
258 $ perl_d_setsid="undef"
260 $ perl_d_shmatprototype="undef"
261 $ perl_d_statblks="undef"
262 $ perl_stdio_ptr="((*fp)->_ptr)"
263 $ perl_stdio_cnt="((*fp)->_cnt)"
264 $ perl_stdio_base="((*fp)->_base)"
265 $ perl_stdio_bufsiz="((*fp)->_cnt + (*fp)->_ptr - (*fp)->_base)"
266 $ perl_d_strctcpy="define"
267 $ perl_d_strerror="define"
268 $ perl_d_syserrlst="undef"
269 $ perl_d_strerrm="strerror((e),vaxc$errno)"
270 $ perl_d_symlink="undef"
271 $ perl_d_syscall="undef"
272 $ perl_d_system="define"
273 $ perl_timetype="time_t"
274 $ perl_d_vfork="define"
275 $ perl_signal_t="void"
276 $ perl_d_volatile="define"
277 $ perl_d_vprintf="define"
278 $ perl_d_charvspr="undef"
279 $ perl_d_waitpid="define"
280 $ perl_i_dirent="undef"
281 $ perl_d_dirnamlen="define"
282 $ perl_direntrytype="struct dirent"
283 $ perl_i_fcntl="undef"
285 $ perl_i_limits="define"
286 $ perl_i_memory="undef"
287 $ perl_i_ndbm="undef"
288 $ perl_i_stdarg="define"
290 $ perl_d_pwquota="undef"
291 $ perl_d_pwage="undef"
292 $ perl_d_pwchange="undef"
293 $ perl_d_pwclass="undef"
294 $ perl_d_pwexpire="undef"
295 $ perl_d_pwcomment="define"
296 $ perl_i_stddef="define"
297 $ perl_i_stdlib="define"
298 $ perl_i_string="define"
299 $ perl_i_sysdir="undef"
300 $ perl_i_sysfile="undef"
301 $ perl_i_sysioctl="undef"
302 $ perl_i_sysndir="undef"
303 $ perl_i_sysresrc="undef"
304 $ perl_i_sysselct="undef"
306 $ perl_i_rpcsvcdbm="undef"
307 $ perl_i_sfio="undef"
308 $ perl_i_sysstat="define"
309 $ perl_i_systimes="undef"
310 $ perl_i_systypes="define"
311 $ perl_i_sysun="undef"
312 $ perl_i_syswait="undef"
313 $ perl_i_termio="undef"
314 $ perl_i_sgtty="undef"
315 $ perl_i_termios="undef"
316 $ perl_i_time="define"
317 $ perl_i_systime="undef"
318 $ perl_i_systimek="undef"
319 $! perl_i_unistd="undef"
320 $ perl_i_utime="undef"
321 $ perl_i_varargs="undef"
322 $ perl_i_vfork="undef"
323 $ perl_prototype="define"
325 $ perl_stdchar="char"
326 $ perl_d_unlink_all_versions="undef"
327 $ perl_full_sed="_NLA0:"
328 $ perl_bin="/''perl_prefix'/000000"
329 $ perl_binexp="''perl_prefix':[000000]"
330 $ perl_d_alarm="define"
331 $ perl_d_casti32="define"
332 $ perl_d_chown="define"
333 $ perl_d_chroot="undef"
334 $ perl_d_cuserid="define"
335 $ perl_d_dbl_dig="define"
336 $ perl_d_difftime="define"
337 $ perl_d_fork="undef"
338 $ perl_d_getlogin="define"
339 $ perl_d_getppid="undef"
340 $ perl_d_nice="define"
341 $ perl_d_pause="define"
342 $ perl_d_pipe="define"
343 $ perl_d_readlink="undef"
344 $ perl_d_setlinebuf="undef"
345 $ perl_d_strchr="define"
346 $ perl_d_strtod="define"
347 $ perl_d_strtol="define"
348 $ perl_d_strtoul="define"
349 $ perl_d_tcgetpgrp="undef"
350 $ perl_d_tcsetpgrp="undef"
351 $ perl_d_times="define"
352 $ perl_d_tzname="undef"
353 $ perl_d_umask="define"
354 $ perl_fpostype="fpos_t"
355 $ perl_i_dlfcn="undef"
356 $ perl_i_float="define"
357 $ perl_i_math="define"
358 $ perl_lseektype="int"
359 $ perl_i_values="undef"
360 $ perl_malloctype="void *"
361 $ perl_freetype="void"
362 $ if "''mymalloc'".eqs."Y"
364 $ perl_d_mymalloc="define"
366 $ perl_d_mymalloc="undef"
369 $ perl_modetype="unsigned int"
370 $ perl_ssizetype="int"
371 $ perl_o_nonblock=" "
374 $ perl_d_eofnblk="undef"
375 $ perl_d_oldarchlib="define"
376 $ perl_privlibexp="''perl_prefix':[lib]"
377 $ perl_privlib="''perl_prefix':[lib]"
378 $ perl_sitelibexp="''perl_prefix':[lib.site_perl]"
379 $ perl_sitelib="''perl_prefix':[lib.site_perl]"
380 $ perl_sizetype="size_t"
381 $ perl_i_sysparam="undef"
382 $ perl_d_void_closedir="define"
383 $ perl_d_dlerror="undef"
384 $ perl_d_dlsymun="undef"
385 $ perl_d_suidsafe="undef"
386 $ perl_d_dosuid="undef"
387 $ perl_d_inetaton="undef"
388 $ perl_d_isascii="define"
389 $ perl_d_mkfifo="undef"
390 $ perl_d_safebcpy="undef"
391 $ perl_d_safemcpy="define"
392 $ perl_d_sanemcmp="define"
393 $ perl_d_setpgrp="undef"
394 $ perl_d_bsdsetpgrp="undef"
395 $ perl_d_bsdpgrp="undef"
396 $ perl_d_setpgid="undef"
397 $ perl_d_setpgrp2="undef"
398 $ perl_d_Gconvert="my_gconvert(x,n,t,b)"
399 $ perl_d_getpgid="undef"
400 $ perl_d_getpgrp="undef"
401 $ perl_d_bsdgetpgrp="undef"
402 $ perl_d_getpgrp2="undef"
403 $ perl_d_sfio="undef"
404 $ perl_usedl="define"
405 $ perl_startperl="""$ perl 'f$env(\""procedure\"")' 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8' !\n$ exit++ + ++$status != 0 and $exit = $status = undef;"""
406 $ perl_db_hashtype=" "
407 $ perl_db_prefixtype=" "
408 $ perl_useperlio="undef"
409 $ perl_defvoidused="15"
410 $ perl_voidflags="15"
411 $ perl_d_eunice="undef"
412 $ perl_d_pwgecos="define"
413 $ IF ("''Use_Threads'".eqs."T").and.("''VMS_VER'".LES."6.2")
415 $ perl_libs="SYS$SHARE:CMA$LIB_SHR.EXE/SHARE SYS$SHARE:CMA$RTL.EXE/SHARE SYS$SHARE:CMA$OPEN_LIB_SHR.exe/SHARE SYS$SHARE:CMA$OPEN_RTL.exe/SHARE"
419 $ IF ("''Using_Dec_C'".eqs."Yes")
421 $ perl_libc="(DECCRTL)"
425 $ perl_PATCHLEVEL="''patchlevel'"
426 $ perl_SUBVERSION="''subversion'"
430 $! Now some that we build up
432 $ LocalTime = f$time()
433 $ perl_cf_time= f$extract(0, 3, f$cvtime(LocalTime,, "WEEKDAY")) + " " + -
434 f$edit(f$cvtime(LocalTime, "ABSOLUTE", "MONTH"), "LOWERCASE") + -
435 " " + f$cvtime(LocalTime,, "DAY") + " " + f$cvtime(LocalTime,, "TIME") + -
436 " " + f$cvtime(LocalTime,, "YEAR")
437 $ if f$getsyi("HW_MODEL").ge.1024
439 $ perl_arch="VMS_AXP"
440 $ perl_archname="VMS_AXP"
441 $ perl_alignbytes="8"
443 $ perl_arch="VMS_VAX"
444 $ perl_archname="VMS_VAX"
445 $ perl_alignbytes="8"
447 $ if ("''Use_Threads'".eqs."T")
449 $ perl_arch = "''perl_arch'-thread"
450 $ perl_archname = "''perl_archname'-thread"
452 $ perl_d_pthread_create_joinable = "undef"
453 $ perl_pthread_create_joinable = " "
454 $ perl_d_old_pthread_create_joinable = "undef"
455 $ perl_old_pthread_create_joinable = " "
457 $ perl_osvers=f$edit(osvers, "TRIM")
458 $ if (perl_subversion + 0).eq.0
460 $ LocalPerlVer = "5_" + Perl_PATCHLEVEL
462 $ LocalPerlVer = "5_" + Perl_PATCHLEVEL + perl_subversion
465 $! Some that we need to invoke the compiler for
466 $ OS := "open/write SOURCECHAN []temp.c"
467 $ WS := "write SOURCECHAN"
468 $ CS := "close SOURCECHAN"
469 $ DS := "delete/nolog []temp.*;*"
471 $ if ("''using_vax_c'".eqs."Yes").or.("''using_gnu_c'".eqs."Yes")
473 $ open/write OPTCHAN []temp.opt
474 $ IF ("''using_gnu_c'".eqs."Yes")
476 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
478 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
483 $! Check for __STDC__
487 $ WS "#include <stdlib.h>
489 $ WS "#include <stdio.h>
492 $ WS "#ifdef __STDC__
493 $ WS "printf(""42\n"");
495 $ WS "printf(""1\n"");
500 $ DEFINE SYS$ERROR _NLA0:
501 $ DEFINE SYS$OUTPUT _NLA0:
502 $ ON ERROR THEN CONTINUE
503 $ ON WARNING THEN CONTINUE
505 $ If (Needs_Opt.eqs."Yes")
507 $ link temp.obj,temp.opt/opt
511 $ DEASSIGN SYS$OUTPUT
513 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
514 $ DEFINE SYS$ERROR TEMPOUT
515 $ DEFINE SYS$OUTPUT TEMPOUT
518 $ DEASSIGN SYS$OUTPUT
520 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
524 $ perl_cpp_stuff=line
525 $ WRITE_RESULT "cpp_stuff is ''perl_cpp_stuff'"
527 $! Check for double size
531 $ WS "#include <stdlib.h>
533 $ WS "#include <stdio.h>
537 $ WS "foo = sizeof(double);
538 $ WS "printf(""%d\n"", foo);
542 $ DEFINE SYS$ERROR _NLA0:
543 $ DEFINE SYS$OUTPUT _NLA0:
544 $ ON ERROR THEN CONTINUE
545 $ ON WARNING THEN CONTINUE
547 $ If (Needs_Opt.eqs."Yes")
549 $ link temp.obj,temp.opt/opt
554 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
555 $ DEASSIGN SYS$OUTPUT
557 $ DEFINE SYS$ERROR TEMPOUT
558 $ DEFINE SYS$OUTPUT TEMPOUT
561 $ DEASSIGN SYS$OUTPUT
563 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
567 $ perl_doublesize=line
568 $ WRITE_RESULT "doublesize is ''perl_doublesize'"
570 $! Check for long double size
574 $ WS "#include <stdlib.h>
576 $ WS "#include <stdio.h>
579 $ WS "printf(""%d\n"", sizeof(long double));
583 $ DEFINE SYS$ERROR _NLA0:
584 $ DEFINE SYS$OUTPUT _NLA0:
585 $ ON ERROR THEN CONTINUE
586 $ ON WARNING THEN CONTINUE
588 $ teststatus = f$extract(9,1,$status)
589 $ if (teststatus.nes."1")
591 $ perl_longdblsize="0"
592 $ perl_d_longdbl="undef"
594 $ ON ERROR THEN CONTINUE
595 $ ON WARNING THEN CONTINUE
596 $ If (Needs_Opt.eqs."Yes")
598 $ link temp.obj,temp.opt/opt
602 $ teststatus = f$extract(9,1,$status)
603 $ DEASSIGN SYS$OUTPUT
605 $ if (teststatus.nes."1")
607 $ perl_longdblsize="0"
608 $ perl_d_longdbl="undef"
610 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
611 $ DEFINE SYS$ERROR TEMPOUT
612 $ DEFINE SYS$OUTPUT TEMPOUT
615 $ DEASSIGN SYS$OUTPUT
617 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
621 $ perl_longdblsize=line
622 $ perl_d_longdbl="define"
625 $ WRITE_RESULT "longdblsize is ''perl_longdblsize'"
626 $ WRITE_RESULT "d_longdbl is ''perl_d_longdbl'"
628 $! Check for long long existance and size
632 $ WS "#include <stdlib.h>
634 $ WS "#include <stdio.h>
637 $ WS "printf(""%d\n"", sizeof(long long));
641 $ DEFINE SYS$ERROR _NLA0:
642 $ DEFINE SYS$OUTPUT _NLA0:
643 $ on error then continue
644 $ on warning then continue
646 $ If (Needs_Opt.eqs."Yes")
648 $ link temp.obj,temp.opt/opt
652 $ teststatus = f$extract(9,1,$status)
653 $ DEASSIGN SYS$OUTPUT
655 $ if (teststatus.nes."1")
657 $ perl_longlongsize="0"
658 $ perl_d_longlong="undef"
660 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
661 $ DEFINE SYS$ERROR TEMPOUT
662 $ DEFINE SYS$OUTPUT TEMPOUT
665 $ DEASSIGN SYS$OUTPUT
667 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
671 $ perl_longlongsize=line
672 $ perl_d_longlong="define"
674 $ WRITE_RESULT "longlongsize is ''perl_longlongsize'"
675 $ WRITE_RESULT "d_longlong is ''perl_d_longlong'"
677 $! Check for int size
681 $ WS "#include <stdlib.h>
683 $ WS "#include <stdio.h>
686 $ WS "printf(""%d\n"", sizeof(int));
690 $ DEFINE SYS$ERROR _NLA0:
691 $ DEFINE SYS$OUTPUT _NLA0:
692 $ on error then continue
693 $ on warning then continue
695 $ If (Needs_Opt.eqs."Yes")
697 $ link temp.obj,temp.opt/opt
701 $ If (Needs_Opt.eqs."Yes")
703 $ link temp.obj,temp.opt/opt
707 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
708 $ DEASSIGN SYS$OUTPUT
710 $ DEFINE SYS$ERROR TEMPOUT
711 $ DEFINE SYS$OUTPUT TEMPOUT
714 $ DEASSIGN SYS$OUTPUT
716 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
721 $ WRITE_RESULT "intsize is ''perl_intsize'"
723 $! Check for short size
727 $ WS "#include <stdlib.h>
729 $ WS "#include <stdio.h>
732 $ WS "printf(""%d\n"", sizeof(short));
736 $ DEFINE SYS$ERROR _NLA0:
737 $ DEFINE SYS$OUTPUT _NLA0:
738 $ on error then continue
739 $ on warning then continue
741 $ If (Needs_Opt.eqs."Yes")
743 $ link temp.obj,temp.opt/opt
747 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
748 $ DEASSIGN SYS$OUTPUT
750 $ DEFINE SYS$ERROR TEMPOUT
751 $ DEFINE SYS$OUTPUT TEMPOUT
754 $ DEASSIGN SYS$OUTPUT
756 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
760 $ perl_shortsize=line
761 $ WRITE_RESULT "shortsize is ''perl_shortsize'"
763 $! Check for long size
767 $ WS "#include <stdlib.h>
769 $ WS "#include <stdio.h>
773 $ WS "foo = sizeof(long);
774 $ WS "printf(""%d\n"", foo);
778 $ DEFINE SYS$ERROR _NLA0:
779 $ DEFINE SYS$OUTPUT _NLA0:
780 $ on error then continue
781 $ on warning then continue
783 $ If (Needs_Opt.eqs."Yes")
785 $ link temp.obj,temp.opt/opt
789 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
790 $ DEASSIGN SYS$OUTPUT
792 $ DEFINE SYS$ERROR TEMPOUT
793 $ DEFINE SYS$OUTPUT TEMPOUT
796 $ DEASSIGN SYS$OUTPUT
798 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
803 $ WRITE_RESULT "longsize is ''perl_longsize'"
805 $! Check the prototype for getgid
809 $ WS "#include <stdlib.h>
811 $ WS "#include <stdio.h>
812 $ WS "#include <types.h>
813 $ WS "#include <unistd.h>
820 $ DEFINE SYS$ERROR _NLA0:
821 $ DEFINE SYS$OUTPUT _NLA0:
822 $ on error then continue
823 $ on warning then continue
825 $ teststatus = f$extract(9,1,$status)
826 $ DEASSIGN SYS$OUTPUT
828 $ if (teststatus.nes."1")
830 $! Okay, gid_t failed. Must be unsigned int
831 $ perl_gidtype = "unsigned int"
833 $ perl_gidtype = "gid_t"
835 $ WRITE_RESULT "Gid_t is ''perl_gidtype'"
837 $! Check to see if we've got dev_t
841 $ WS "#include <stdlib.h>
843 $ WS "#include <stdio.h>
844 $ WS "#include <types.h>
845 $ WS "#include <unistd.h>
852 $ DEFINE SYS$ERROR _NLA0:
853 $ DEFINE SYS$OUTPUT _NLA0:
854 $ on error then continue
855 $ on warning then continue
857 $ teststatus = f$extract(9,1,$status)
858 $ DEASSIGN SYS$OUTPUT
860 $ if (teststatus.nes."1")
862 $! Okay, dev_t failed. Must be unsigned int
863 $ perl_devtype = "unsigned int"
865 $ perl_devtype = "dev_t"
867 $ WRITE_RESULT "Dev_t is ''perl_devtype'"
869 $! Check to see if we've got unistd.h (which we ought to, but you never know)
873 $ WS "#include <stdlib.h>
875 $ WS "#include <unistd.h>
881 $ DEFINE SYS$ERROR _NLA0:
882 $ DEFINE SYS$OUTPUT _NLA0:
883 $ on error then continue
884 $ on warning then continue
886 $ teststatus = f$extract(9,1,$status)
887 $ DEASSIGN SYS$OUTPUT
889 $ if (teststatus.nes."1")
891 $! Okay, failed. Must not have it
892 $ perl_i_unistd = "undef"
894 $ perl_i_unistd = "define"
897 $ WRITE_RESULT "i_unistd is ''perl_i_unistd'"
899 $! Check the prototype for select
901 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
905 $ WS "#include <stdlib.h>
907 $ WS "#include <stdio.h>
908 $ WS "#include <types.h>
909 $ WS "#include <unistd.h>
910 $ if ("''Has_Socketshr'".eqs."T")
912 $ WS "#include <socketshr.h>"
914 $ WS "#include <time.h>
915 $ WS "#include <socket.h>
922 $ WS "bar = select(2, foo, foo, foo, NULL);
926 $ DEFINE SYS$ERROR _NLA0:
927 $ DEFINE SYS$OUTPUT _NLA0:
928 $ on error then continue
929 $ on warning then continue
931 $ teststatus = f$extract(9,1,$status)
932 $ DEASSIGN SYS$OUTPUT
934 $ if (teststatus.nes."1")
936 $! Okay, fd_set failed. Must be an int
937 $ perl_selecttype = "int *"
939 $ perl_selecttype="fd_set *"
942 $ ! No sockets, so stick in an int *
943 $ perl_selecttype = "int *"
945 $ WRITE_RESULT "selectype is ''perl_selecttype'"
947 $! Check to see if fd_set exists
951 $ WS "#include <stdlib.h>
953 $ WS "#include <stdio.h>
954 $ WS "#include <types.h>
955 $ WS "#include <unistd.h>
956 $ if ("''Has_Socketshr'".eqs."T")
958 $ WS "#include <socketshr.h>"
960 $ IF ("''Has_Dec_C_Sockets'".eqs."T")
962 $ WS "#include <time.h>
963 $ WS "#include <socket.h>
972 $ DEFINE SYS$ERROR _NLA0:
973 $ DEFINE SYS$OUTPUT _NLA0:
974 $ on error then continue
975 $ on warning then continue
977 $ teststatus = f$extract(9,1,$status)
978 $ DEASSIGN SYS$OUTPUT
980 $ if (teststatus.nes."1")
982 $! Okay, fd_set failed. Must not exist
983 $ perl_d_fd_set = "undef"
985 $ perl_d_fd_set="define"
987 $ WRITE_RESULT "d_fd_set is ''perl_d_fd_set'"
989 $! Check for inttypes.h
993 $ WS "#include <stdlib.h>
995 $ WS "#include <stdio.h>
996 $ WS "#include <unistd.h>
997 $ WS "#include <inttypes.h>
1003 $ DEFINE SYS$ERROR _NLA0:
1004 $ DEFINE SYS$OUTPUT _NLA0:
1005 $ on error then continue
1006 $ on warning then continue
1008 $ savedstatus = $status
1009 $ teststatus = f$extract(9,1,savedstatus)
1010 $ if (teststatus.nes."1")
1012 $ perl_i_inttypes="undef"
1013 $ DEASSIGN SYS$OUTPUT
1014 $ DEASSIGN SYS$ERROR
1016 $ If (Needs_Opt.eqs."Yes")
1018 $ link temp.obj,temp.opt/opt
1022 $ savedstatus = $status
1023 $ teststatus = f$extract(9,1,savedstatus)
1024 $ DEASSIGN SYS$OUTPUT
1025 $ DEASSIGN SYS$ERROR
1026 $ if (teststatus.nes."1")
1028 $ perl_i_inttypes="undef"
1030 $ perl_i_inttypes="define"
1033 $ WRITE_RESULT "i_inttypes is ''perl_i_inttypes'"
1035 $! Check to see if int64_t exists
1039 $ WS "#include <stdlib.h>
1041 $ WS "#include <stdio.h>
1042 $ WS "#include <types.h>
1043 $ WS "#''perl_i_inttypes IIH
1045 $ WS "#include <inttypes.h>
1047 $ WS "#include <unistd.h>
1054 $ DEFINE SYS$ERROR _NLA0:
1055 $ DEFINE SYS$OUTPUT _NLA0:
1056 $ on error then continue
1057 $ on warning then continue
1059 $ teststatus = f$extract(9,1,$status)
1060 $ DEASSIGN SYS$OUTPUT
1061 $ DEASSIGN SYS$ERROR
1062 $ if (teststatus.nes."1")
1064 $! Okay, int64_t failed. Must not exist
1065 $ perl_d_int64t = "undef"
1067 $ perl_d_int64t="define"
1069 $ WRITE_RESULT "d_int64t is ''perl_d_int64t'"
1071 $! Check to see if off64_t exists
1075 $ WS "#include <stdlib.h>
1077 $ WS "#include <stdio.h>
1078 $ WS "#include <types.h>
1079 $ WS "#''perl_i_inttypes IIH
1081 $ WS "#include <inttypes.h>
1083 $ WS "#include <unistd.h>
1090 $ DEFINE SYS$ERROR _NLA0:
1091 $ DEFINE SYS$OUTPUT _NLA0:
1092 $ on error then continue
1093 $ on warning then continue
1095 $ teststatus = f$extract(9,1,$status)
1096 $ DEASSIGN SYS$OUTPUT
1097 $ DEASSIGN SYS$ERROR
1098 $ if (teststatus.nes."1")
1100 $! Okay, off64_t failed. Must not exist
1101 $ perl_d_off64t = "undef"
1103 $ perl_d_off64t="define"
1105 $ WRITE_RESULT "d_off64t is ''perl_d_off64t'"
1107 $! Check to see if gethostname exists
1109 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
1113 $ WS "#include <stdlib.h>
1115 $ WS "#include <stdio.h>
1116 $ WS "#include <types.h>
1117 $ WS "#include <unistd.h>
1118 $ if ("''Has_Socketshr'".eqs."T")
1120 $ WS "#include <socketshr.h>"
1122 $ WS "#include <time.h>
1123 $ WS "#include <socket.h>
1127 $ WS "char name[100];
1130 $ WS "baz = gethostname(name, bar);
1134 $ DEFINE SYS$ERROR _NLA0:
1135 $ DEFINE SYS$OUTPUT _NLA0:
1136 $ on error then continue
1137 $ on warning then continue
1139 $ teststatus = f$extract(9,1,$status)
1140 $ DEASSIGN SYS$OUTPUT
1141 $ DEASSIGN SYS$ERROR
1142 $ if (teststatus.nes."1")
1144 $! Okay, compile failed. Must not have it
1145 $ perl_dgethname = "undef"
1147 $ If (Needs_Opt.eqs."Yes")
1149 $ link temp.obj,temp.opt/opt
1153 $ savedstatus = $status
1154 $ teststatus = f$extract(9,1,savedstatus)
1155 $ if (teststatus.nes."1")
1157 $ perl_d_gethname="undef"
1159 $ perl_d_gethname="define"
1163 $ ! No sockets, so no gethname
1164 $ perl_d_gethname = "undef"
1166 $ WRITE_RESULT "d_gethname is ''perl_d_gethname'"
1168 $! Check for sys/file.h
1172 $ WS "#include <stdlib.h>
1174 $ WS "#include <stdio.h>
1175 $ WS "#include <unistd.h>
1176 $ WS "#include <sys/file.h>
1182 $ DEFINE SYS$ERROR _NLA0:
1183 $ DEFINE SYS$OUTPUT _NLA0:
1184 $ on error then continue
1185 $ on warning then continue
1187 $ savedstatus = $status
1188 $ teststatus = f$extract(9,1,savedstatus)
1189 $ if (teststatus.nes."1")
1191 $ perl_i_sysfile="undef"
1192 $ DEASSIGN SYS$OUTPUT
1193 $ DEASSIGN SYS$ERROR
1195 $ If (Needs_Opt.eqs."Yes")
1197 $ link temp.obj,temp.opt/opt
1201 $ savedstatus = $status
1202 $ teststatus = f$extract(9,1,savedstatus)
1203 $ DEASSIGN SYS$OUTPUT
1204 $ DEASSIGN SYS$ERROR
1205 $ if (teststatus.nes."1")
1207 $ perl_i_sysfile="undef"
1209 $ perl_i_sysfile="define"
1212 $ WRITE_RESULT "i_sysfile is ''perl_i_sysfile'"
1218 $ WS "#include <stdlib.h>
1220 $ WS "#include <stdio.h>
1221 $ WS "#include <unistd.h>
1222 $ WS "#include <poll.h>
1228 $ DEFINE SYS$ERROR _NLA0:
1229 $ DEFINE SYS$OUTPUT _NLA0:
1230 $ on error then continue
1231 $ on warning then continue
1233 $ savedstatus = $status
1234 $ teststatus = f$extract(9,1,savedstatus)
1235 $ if (teststatus.nes."1")
1237 $ perl_i_poll="undef"
1238 $ DEASSIGN SYS$OUTPUT
1239 $ DEASSIGN SYS$ERROR
1241 $ If (Needs_Opt.eqs."Yes")
1243 $ link temp.obj,temp.opt/opt
1247 $ savedstatus = $status
1248 $ teststatus = f$extract(9,1,savedstatus)
1249 $ DEASSIGN SYS$OUTPUT
1250 $ DEASSIGN SYS$ERROR
1251 $ if (teststatus.nes."1")
1253 $ perl_i_poll="undef"
1255 $ perl_i_poll="define"
1258 $ WRITE_RESULT "i_poll is ''perl_i_poll'"
1260 $! Check for sys/uio.h
1264 $ WS "#include <stdlib.h>
1266 $ WS "#include <stdio.h>
1267 $ WS "#include <unistd.h>
1268 $ WS "#include <sys/uio.h>
1274 $ DEFINE SYS$ERROR _NLA0:
1275 $ DEFINE SYS$OUTPUT _NLA0:
1276 $ on error then continue
1277 $ on warning then continue
1279 $ savedstatus = $status
1280 $ teststatus = f$extract(9,1,savedstatus)
1281 $ if (teststatus.nes."1")
1283 $ perl_i_sysuio="undef"
1284 $ DEASSIGN SYS$OUTPUT
1285 $ DEASSIGN SYS$ERROR
1287 $ If (Needs_Opt.eqs."Yes")
1289 $ link temp.obj,temp.opt/opt
1293 $ savedstatus = $status
1294 $ teststatus = f$extract(9,1,savedstatus)
1295 $ DEASSIGN SYS$OUTPUT
1296 $ DEASSIGN SYS$ERROR
1297 $ if (teststatus.nes."1")
1299 $ perl_i_sysuio="undef"
1301 $ perl_i_sysuio="define"
1304 $ WRITE_RESULT "i_sysuio is ''perl_i_sysuio'"
1306 $! Check for sys/access.h
1310 $ WS "#include <stdlib.h>
1312 $ WS "#include <stdio.h>
1313 $ WS "#include <unistd.h>
1314 $ WS "#include <sys/access.h>
1320 $ DEFINE SYS$ERROR _NLA0:
1321 $ DEFINE SYS$OUTPUT _NLA0:
1322 $ on error then continue
1323 $ on warning then continue
1325 $ savedstatus = $status
1326 $ teststatus = f$extract(9,1,savedstatus)
1327 $ if (teststatus.nes."1")
1329 $ perl_i_sysaccess="undef"
1330 $ DEASSIGN SYS$OUTPUT
1331 $ DEASSIGN SYS$ERROR
1333 $ If (Needs_Opt.eqs."Yes")
1335 $ link temp.obj,temp.opt/opt
1339 $ savedstatus = $status
1340 $ teststatus = f$extract(9,1,savedstatus)
1341 $ DEASSIGN SYS$OUTPUT
1342 $ DEASSIGN SYS$ERROR
1343 $ if (teststatus.nes."1")
1345 $ perl_i_sysaccess="undef"
1347 $ perl_i_sysaccess="define"
1350 $ WRITE_RESULT "i_sysaccess is ''perl_i_sysaccess'"
1352 $! Check for sys/security.h
1356 $ WS "#include <stdlib.h>
1358 $ WS "#include <stdio.h>
1359 $ WS "#include <unistd.h>
1360 $ WS "#include <sys/security.h>
1366 $ DEFINE SYS$ERROR _NLA0:
1367 $ DEFINE SYS$OUTPUT _NLA0:
1368 $ on error then continue
1369 $ on warning then continue
1371 $ savedstatus = $status
1372 $ teststatus = f$extract(9,1,savedstatus)
1373 $ if (teststatus.nes."1")
1375 $ perl_i_syssecrt="undef"
1376 $ DEASSIGN SYS$OUTPUT
1377 $ DEASSIGN SYS$ERROR
1379 $ If (Needs_Opt.eqs."Yes")
1381 $ link temp.obj,temp.opt/opt
1385 $ savedstatus = $status
1386 $ teststatus = f$extract(9,1,savedstatus)
1387 $ DEASSIGN SYS$OUTPUT
1388 $ DEASSIGN SYS$ERROR
1389 $ if (teststatus.nes."1")
1391 $ perl_i_syssecrt="undef"
1393 $ perl_i_syssecrt="define"
1396 $ WRITE_RESULT "i_syssecrt is ''perl_i_syssecrt'"
1398 $! Check for fcntl.h
1402 $ WS "#include <stdlib.h>
1404 $ WS "#include <stdio.h>
1405 $ WS "#include <unistd.h>
1406 $ WS "#include <fcntl.h>
1412 $ DEFINE SYS$ERROR _NLA0:
1413 $ DEFINE SYS$OUTPUT _NLA0:
1414 $ on error then continue
1415 $ on warning then continue
1417 $ savedstatus = $status
1418 $ teststatus = f$extract(9,1,savedstatus)
1419 $ if (teststatus.nes."1")
1421 $ perl_i_fcntl="undef"
1422 $ DEASSIGN SYS$OUTPUT
1423 $ DEASSIGN SYS$ERROR
1425 $ If (Needs_Opt.eqs."Yes")
1427 $ link temp.obj,temp.opt/opt
1431 $ savedstatus = $status
1432 $ teststatus = f$extract(9,1,savedstatus)
1433 $ DEASSIGN SYS$OUTPUT
1434 $ DEASSIGN SYS$ERROR
1435 $ if (teststatus.nes."1")
1437 $ perl_i_fcntl="undef"
1439 $ perl_i_fcntl="define"
1442 $ WRITE_RESULT "i_fcntl is ''perl_i_fcntl'"
1448 $ WS "#include <stdlib.h>
1450 $ WS "#include <stdio.h>
1451 $ WS "#include <unistd.h>
1452 $ WS "#include <fcntl.h>
1459 $ DEFINE SYS$ERROR _NLA0:
1460 $ DEFINE SYS$OUTPUT _NLA0:
1461 $ on error then continue
1462 $ on warning then continue
1464 $ savedstatus = $status
1465 $ teststatus = f$extract(9,1,savedstatus)
1466 $ if (teststatus.nes."1")
1468 $ perl_d_fcntl="undef"
1469 $ DEASSIGN SYS$OUTPUT
1470 $ DEASSIGN SYS$ERROR
1472 $ If (Needs_Opt.eqs."Yes")
1474 $ link temp.obj,temp.opt/opt
1478 $ savedstatus = $status
1479 $ teststatus = f$extract(9,1,savedstatus)
1480 $ DEASSIGN SYS$OUTPUT
1481 $ DEASSIGN SYS$ERROR
1482 $ if (teststatus.nes."1")
1484 $ perl_d_fcntl="undef"
1486 $ perl_d_fcntl="define"
1489 $ WRITE_RESULT "d_fcntl is ''perl_d_fcntl'"
1495 $ WS "#include <stdlib.h>
1497 $ WS "#include <stdio.h>
1498 $ WS "#include <unistd.h>
1501 $ WS "access("foo", F_OK);
1505 $ DEFINE SYS$ERROR _NLA0:
1506 $ DEFINE SYS$OUTPUT _NLA0:
1507 $ on error then continue
1508 $ on warning then continue
1510 $ savedstatus = $status
1511 $ teststatus = f$extract(9,1,savedstatus)
1512 $ if (teststatus.nes."1")
1514 $ perl_d_access="undef"
1515 $ DEASSIGN SYS$OUTPUT
1516 $ DEASSIGN SYS$ERROR
1518 $ If (Needs_Opt.eqs."Yes")
1520 $ link temp.obj,temp.opt/opt
1524 $ savedstatus = $status
1525 $ teststatus = f$extract(9,1,savedstatus)
1526 $ DEASSIGN SYS$OUTPUT
1527 $ DEASSIGN SYS$ERROR
1528 $ if (teststatus.nes."1")
1530 $ perl_d_access="undef"
1532 $ perl_d_access="define"
1535 $ WRITE_RESULT "d_access is ''perl_d_access'"
1541 $ WS "#include <stdlib.h>
1543 $ WS "#include <stdio.h>
1544 $ WS "#include <strings.h>
1548 $ WS "bzero(foo, 10);
1552 $ DEFINE SYS$ERROR _NLA0:
1553 $ DEFINE SYS$OUTPUT _NLA0:
1554 $ on error then continue
1555 $ on warning then continue
1557 $ savedstatus = $status
1558 $ teststatus = f$extract(9,1,savedstatus)
1559 $ if (teststatus.nes."1")
1561 $ perl_d_bzero="undef"
1562 $ DEASSIGN SYS$OUTPUT
1563 $ DEASSIGN SYS$ERROR
1565 $ If (Needs_Opt.eqs."Yes")
1567 $ link temp.obj,temp.opt/opt
1571 $ savedstatus = $status
1572 $ teststatus = f$extract(9,1,savedstatus)
1573 $ DEASSIGN SYS$OUTPUT
1574 $ DEASSIGN SYS$ERROR
1575 $ if (teststatus.nes."1")
1577 $ perl_d_bzero="undef"
1579 $ perl_d_bzero="define"
1582 $ WRITE_RESULT "d_bzero is ''perl_d_bzero'"
1588 $ WS "#include <stdlib.h>
1590 $ WS "#include <stdio.h>
1591 $ WS "#include <strings.h>
1594 $ WS "char foo[10], bar[10];
1595 $ WS "bcopy(""foo"", bar, 3);
1599 $ DEFINE SYS$ERROR _NLA0:
1600 $ DEFINE SYS$OUTPUT _NLA0:
1601 $ on error then continue
1602 $ on warning then continue
1604 $ savedstatus = $status
1605 $ teststatus = f$extract(9,1,savedstatus)
1606 $ if (teststatus.nes."1")
1608 $ perl_d_bcopy="undef"
1609 $ DEASSIGN SYS$OUTPUT
1610 $ DEASSIGN SYS$ERROR
1612 $ If (Needs_Opt.eqs."Yes")
1614 $ link temp.obj,temp.opt/opt
1618 $ savedstatus = $status
1619 $ teststatus = f$extract(9,1,savedstatus)
1620 $ DEASSIGN SYS$OUTPUT
1621 $ DEASSIGN SYS$ERROR
1622 $ if (teststatus.nes."1")
1624 $ perl_d_bcopy="undef"
1626 $ perl_d_bcopy="define"
1629 $ WRITE_RESULT "d_bcopy is ''perl_d_bcopy'"
1631 $! Check for mkstemp
1635 $ WS "#include <stdlib.h>
1637 $ WS "#include <stdio.h>
1640 $ WS "mkstemp(""foo"");
1644 $ DEFINE SYS$ERROR _NLA0:
1645 $ DEFINE SYS$OUTPUT _NLA0:
1646 $ on error then continue
1647 $ on warning then continue
1649 $ If (Needs_Opt.eqs."Yes")
1651 $ link temp.obj,temp.opt/opt
1655 $ savedstatus = $status
1656 $ teststatus = f$extract(9,1,savedstatus)
1657 $ DEASSIGN SYS$OUTPUT
1658 $ DEASSIGN SYS$ERROR
1659 $ if (teststatus.nes."1")
1661 $ perl_d_mkstemp="undef"
1663 $ perl_d_mkstemp="define"
1665 $ WRITE_RESULT "d_mkstemp is ''perl_d_mkstemp'"
1667 $! Check for setvbuf
1671 $ WS "#include <stdlib.h>
1673 $ WS "#include <stdio.h>
1677 $ WS "char Buffer[99];
1678 $ WS "foo = fopen(""foo"", ""r"");
1679 $ WS "setvbuf(foo, Buffer, 0, 0);
1683 $ DEFINE SYS$ERROR _NLA0:
1684 $ DEFINE SYS$OUTPUT _NLA0:
1685 $ on error then continue
1686 $ on warning then continue
1688 $ If (Needs_Opt.eqs."Yes")
1690 $ link temp.obj,temp.opt/opt
1694 $ teststatus = f$extract(9,1,$status)
1695 $ DEASSIGN SYS$OUTPUT
1696 $ DEASSIGN SYS$ERROR
1697 $ if (teststatus.nes."1")
1699 $ perl_d_setvbuf="undef"
1701 $ perl_d_setvbuf="define"
1703 $ WRITE_RESULT "d_setvbuf is ''perl_d_setvbuf'"
1705 $! Check for <netinet/in.h>
1707 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
1711 $ WS "#include <stdlib.h>
1713 $ WS "#include <stdio.h>
1714 $ if ("''Has_Socketshr'".eqs."T")
1716 $ WS "#include <socketshr.h>"
1718 $ WS "#include <netdb.h>
1720 $ WS "#include <netinet/in.h>"
1726 $ DEFINE SYS$ERROR _NLA0:
1727 $ DEFINE SYS$OUTPUT _NLA0:
1728 $ on error then continue
1729 $ on warning then continue
1731 $ If (Needs_Opt.eqs."Yes")
1733 $ link temp.obj,temp.opt/opt
1737 $ teststatus = f$extract(9,1,$status)
1738 $ DEASSIGN SYS$OUTPUT
1739 $ DEASSIGN SYS$ERROR
1740 $ if (teststatus.nes."1")
1742 $ perl_i_niin="undef"
1744 $ perl_i_niin="define"
1747 $ perl_i_niin="undef"
1749 $ WRITE_RESULT "i_niin is ''perl_i_niin'"
1751 $! Check for endhostent
1753 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
1757 $ WS "#include <stdlib.h>
1759 $ WS "#include <stdio.h>
1760 $ if ("''Has_Socketshr'".eqs."T")
1762 $ WS "#include <socketshr.h>"
1764 $ WS "#include <netdb.h>
1772 $ DEFINE SYS$ERROR _NLA0:
1773 $ DEFINE SYS$OUTPUT _NLA0:
1774 $ on error then continue
1775 $ on warning then continue
1777 $ If (Needs_Opt.eqs."Yes")
1779 $ link temp.obj,temp.opt/opt
1783 $ teststatus = f$extract(9,1,$status)
1784 $ DEASSIGN SYS$OUTPUT
1785 $ DEASSIGN SYS$ERROR
1786 $ if (teststatus.nes."1")
1788 $ perl_d_endhent="undef"
1790 $ perl_d_endhent="define"
1793 $ perl_d_endhent="undef"
1795 $ WRITE_RESULT "d_endhent is ''perl_d_endhent'"
1797 $! Check for endnetent
1799 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
1803 $ WS "#include <stdlib.h>
1805 $ WS "#include <stdio.h>
1806 $ if ("''Has_Socketshr'".eqs."T")
1808 $ WS "#include <socketshr.h>"
1810 $ WS "#include <netdb.h>
1818 $ DEFINE SYS$ERROR _NLA0:
1819 $ DEFINE SYS$OUTPUT _NLA0:
1820 $ on error then continue
1821 $ on warning then continue
1823 $ If (Needs_Opt.eqs."Yes")
1825 $ link temp.obj,temp.opt/opt
1829 $ teststatus = f$extract(9,1,$status)
1830 $ DEASSIGN SYS$OUTPUT
1831 $ DEASSIGN SYS$ERROR
1832 $ if (teststatus.nes."1")
1834 $ perl_d_endnent="undef"
1836 $ perl_d_endnent="define"
1839 $ perl_d_endnent="undef"
1841 $ WRITE_RESULT "d_endnent is ''perl_d_endnent'"
1843 $! Check for endprotoent
1845 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
1849 $ WS "#include <stdlib.h>
1851 $ WS "#include <stdio.h>
1852 $ if ("''Has_Socketshr'".eqs."T")
1854 $ WS "#include <socketshr.h>"
1856 $ WS "#include <netdb.h>
1860 $ WS "endprotoent();
1864 $ DEFINE SYS$ERROR _NLA0:
1865 $ DEFINE SYS$OUTPUT _NLA0:
1866 $ on error then continue
1867 $ on warning then continue
1869 $ If (Needs_Opt.eqs."Yes")
1871 $ link temp.obj,temp.opt/opt
1875 $ teststatus = f$extract(9,1,$status)
1876 $ DEASSIGN SYS$OUTPUT
1877 $ DEASSIGN SYS$ERROR
1878 $ if (teststatus.nes."1")
1880 $ perl_d_endpent="undef"
1882 $ perl_d_endpent="define"
1885 $ perl_d_endpent="undef"
1887 $ WRITE_RESULT "d_endpent is ''perl_d_endpent'"
1889 $! Check for endservent
1891 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
1895 $ WS "#include <stdlib.h>
1897 $ WS "#include <stdio.h>
1898 $ if ("''Has_Socketshr'".eqs."T")
1900 $ WS "#include <socketshr.h>"
1902 $ WS "#include <netdb.h>
1910 $ DEFINE SYS$ERROR _NLA0:
1911 $ DEFINE SYS$OUTPUT _NLA0:
1912 $ on error then continue
1913 $ on warning then continue
1915 $ If (Needs_Opt.eqs."Yes")
1917 $ link temp.obj,temp.opt/opt
1921 $ teststatus = f$extract(9,1,$status)
1922 $ DEASSIGN SYS$OUTPUT
1923 $ DEASSIGN SYS$ERROR
1924 $ if (teststatus.nes."1")
1926 $ perl_d_endsent="undef"
1928 $ perl_d_endsent="define"
1931 $ perl_d_endsent="undef"
1933 $ WRITE_RESULT "d_endsent is ''perl_d_endsent'"
1935 $! Check for sethostent
1937 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
1941 $ WS "#include <stdlib.h>
1943 $ WS "#include <stdio.h>
1944 $ if ("''Has_Socketshr'".eqs."T")
1946 $ WS "#include <socketshr.h>"
1948 $ WS "#include <netdb.h>
1952 $ WS "sethostent(1);
1956 $ DEFINE SYS$ERROR _NLA0:
1957 $ DEFINE SYS$OUTPUT _NLA0:
1958 $ on error then continue
1959 $ on warning then continue
1961 $ If (Needs_Opt.eqs."Yes")
1963 $ link temp.obj,temp.opt/opt
1967 $ teststatus = f$extract(9,1,$status)
1968 $ DEASSIGN SYS$OUTPUT
1969 $ DEASSIGN SYS$ERROR
1970 $ if (teststatus.nes."1")
1972 $ perl_d_sethent="undef"
1974 $ perl_d_sethent="define"
1977 $ perl_d_sethent="undef"
1979 $ WRITE_RESULT "d_sethent is ''perl_d_sethent'"
1981 $! Check for setnetent
1983 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
1987 $ WS "#include <stdlib.h>
1989 $ WS "#include <stdio.h>
1990 $ if ("''Has_Socketshr'".eqs."T")
1992 $ WS "#include <socketshr.h>"
1994 $ WS "#include <netdb.h>
2002 $ DEFINE SYS$ERROR _NLA0:
2003 $ DEFINE SYS$OUTPUT _NLA0:
2004 $ on error then continue
2005 $ on warning then continue
2007 $ If (Needs_Opt.eqs."Yes")
2009 $ link temp.obj,temp.opt/opt
2013 $ teststatus = f$extract(9,1,$status)
2014 $ DEASSIGN SYS$OUTPUT
2015 $ DEASSIGN SYS$ERROR
2016 $ if (teststatus.nes."1")
2018 $ perl_d_setnent="undef"
2020 $ perl_d_setnent="define"
2023 $ perl_d_setnent="undef"
2025 $ WRITE_RESULT "d_setnent is ''perl_d_setnent'"
2027 $! Check for setprotoent
2029 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2033 $ WS "#include <stdlib.h>
2035 $ WS "#include <stdio.h>
2036 $ if ("''Has_Socketshr'".eqs."T")
2038 $ WS "#include <socketshr.h>"
2040 $ WS "#include <netdb.h>
2044 $ WS "setprotoent(1);
2048 $ DEFINE SYS$ERROR _NLA0:
2049 $ DEFINE SYS$OUTPUT _NLA0:
2050 $ on error then continue
2051 $ on warning then continue
2053 $ If (Needs_Opt.eqs."Yes")
2055 $ link temp.obj,temp.opt/opt
2059 $ teststatus = f$extract(9,1,$status)
2060 $ DEASSIGN SYS$OUTPUT
2061 $ DEASSIGN SYS$ERROR
2062 $ if (teststatus.nes."1")
2064 $ perl_d_setpent="undef"
2066 $ perl_d_setpent="define"
2069 $ perl_d_setpent="undef"
2071 $ WRITE_RESULT "d_setpent is ''perl_d_setpent'"
2073 $! Check for setservent
2075 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2079 $ WS "#include <stdlib.h>
2081 $ WS "#include <stdio.h>
2082 $ if ("''Has_Socketshr'".eqs."T")
2084 $ WS "#include <socketshr.h>"
2086 $ WS "#include <netdb.h>
2090 $ WS "setservent(1);
2094 $ DEFINE SYS$ERROR _NLA0:
2095 $ DEFINE SYS$OUTPUT _NLA0:
2096 $ on error then continue
2097 $ on warning then continue
2099 $ If (Needs_Opt.eqs."Yes")
2101 $ link temp.obj,temp.opt/opt
2105 $ teststatus = f$extract(9,1,$status)
2106 $ DEASSIGN SYS$OUTPUT
2107 $ DEASSIGN SYS$ERROR
2108 $ if (teststatus.nes."1")
2110 $ perl_d_setsent="undef"
2112 $ perl_d_setsent="define"
2115 $ perl_d_setsent="undef"
2117 $ WRITE_RESULT "d_setsent is ''perl_d_setsent'"
2119 $! Check for gethostent
2121 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2125 $ WS "#include <stdlib.h>
2127 $ WS "#include <stdio.h>
2128 $ if ("''Has_Socketshr'".eqs."T")
2130 $ WS "#include <socketshr.h>"
2132 $ WS "#include <netdb.h>
2140 $ DEFINE SYS$ERROR _NLA0:
2141 $ DEFINE SYS$OUTPUT _NLA0:
2142 $ on error then continue
2143 $ on warning then continue
2145 $ If (Needs_Opt.eqs."Yes")
2147 $ link temp.obj,temp.opt/opt
2151 $ teststatus = f$extract(9,1,$status)
2152 $ DEASSIGN SYS$OUTPUT
2153 $ DEASSIGN SYS$ERROR
2154 $ if (teststatus.nes."1")
2156 $ perl_d_gethent="undef"
2158 $ perl_d_gethent="define"
2161 $ perl_d_gethent="undef"
2163 $ WRITE_RESULT "d_gethent is ''perl_d_gethent'"
2165 $! Check for getnetent
2167 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2171 $ WS "#include <stdlib.h>
2173 $ WS "#include <stdio.h>
2174 $ if ("''Has_Socketshr'".eqs."T")
2176 $ WS "#include <socketshr.h>"
2178 $ WS "#include <netdb.h>
2186 $ DEFINE SYS$ERROR _NLA0:
2187 $ DEFINE SYS$OUTPUT _NLA0:
2188 $ on error then continue
2189 $ on warning then continue
2191 $ If (Needs_Opt.eqs."Yes")
2193 $ link temp.obj,temp.opt/opt
2197 $ teststatus = f$extract(9,1,$status)
2198 $ DEASSIGN SYS$OUTPUT
2199 $ DEASSIGN SYS$ERROR
2200 $ if (teststatus.nes."1")
2202 $ perl_d_getnent="undef"
2204 $ perl_d_getnent="define"
2207 $ perl_d_getnent="undef"
2209 $ WRITE_RESULT "d_getnent is ''perl_d_getnent'"
2211 $! Check for getprotoent
2213 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2217 $ WS "#include <stdlib.h>
2219 $ WS "#include <stdio.h>
2220 $ if ("''Has_Socketshr'".eqs."T")
2222 $ WS "#include <socketshr.h>"
2224 $ WS "#include <netdb.h>
2228 $ WS "getprotoent();
2232 $ DEFINE SYS$ERROR _NLA0:
2233 $ DEFINE SYS$OUTPUT _NLA0:
2234 $ on error then continue
2235 $ on warning then continue
2237 $ If (Needs_Opt.eqs."Yes")
2239 $ link temp.obj,temp.opt/opt
2243 $ teststatus = f$extract(9,1,$status)
2244 $ DEASSIGN SYS$OUTPUT
2245 $ DEASSIGN SYS$ERROR
2246 $ if (teststatus.nes."1")
2248 $ perl_d_getpent="undef"
2250 $ perl_d_getpent="define"
2253 $ perl_d_getpent="undef"
2255 $ WRITE_RESULT "d_getpent is ''perl_d_getpent'"
2257 $! Check for getservent
2259 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2263 $ WS "#include <stdlib.h>
2265 $ WS "#include <stdio.h>
2266 $ if ("''Has_Socketshr'".eqs."T")
2268 $ WS "#include <socketshr.h>"
2270 $ WS "#include <netdb.h>
2278 $ DEFINE SYS$ERROR _NLA0:
2279 $ DEFINE SYS$OUTPUT _NLA0:
2280 $ on error then continue
2281 $ on warning then continue
2283 $ If (Needs_Opt.eqs."Yes")
2285 $ link temp.obj,temp.opt/opt
2289 $ teststatus = f$extract(9,1,$status)
2290 $ DEASSIGN SYS$OUTPUT
2291 $ DEASSIGN SYS$ERROR
2292 $ if (teststatus.nes."1")
2294 $ perl_d_getsent="undef"
2296 $ perl_d_getsent="define"
2299 $ perl_d_getsent="undef"
2301 $ WRITE_RESULT "d_getsent is ''perl_d_getsent'"
2303 $! Check for pthread_yield
2305 $ if ("''use_threads'".eqs."T")
2309 $ WS "#include <stdlib.h>
2311 $ WS "#include <pthread.h>
2312 $ WS "#include <stdio.h>
2315 $ WS "pthread_yield();
2319 $ DEFINE SYS$ERROR _NLA0:
2320 $ DEFINE SYS$OUTPUT _NLA0:
2321 $ on error then continue
2322 $ on warning then continue
2324 $ teststatus = f$extract(9,1,$status)
2325 $ DEASSIGN SYS$OUTPUT
2326 $ DEASSIGN SYS$ERROR
2327 $ if (teststatus.nes."1")
2329 $ perl_d_pthread_yield="undef"
2331 $ perl_d_pthread_yield="define"
2334 $ perl_d_pthread_yield="undef"
2336 $ WRITE_RESULT "d_pthread_yield is ''perl_d_pthread_yield'"
2338 $! Check for sched_yield
2340 $ if ("''use_threads'".eqs."T")
2344 $ WS "#include <stdlib.h>
2346 $ WS "#include <pthread.h>
2347 $ WS "#include <stdio.h>
2350 $ WS "sched_yield();
2354 $ DEFINE SYS$ERROR _NLA0:
2355 $ DEFINE SYS$OUTPUT _NLA0:
2356 $ on error then continue
2357 $ on warning then continue
2359 $ teststatus = f$extract(9,1,$status)
2360 $ DEASSIGN SYS$OUTPUT
2361 $ DEASSIGN SYS$ERROR
2362 $ if (teststatus.nes."1")
2364 $ perl_d_sched_yield="undef"
2366 $ perl_d_sched_yield="define"
2369 $ perl_d_sched_yield="undef"
2371 $ WRITE_RESULT "d_sched_yield is ''perl_d_sched_yield'"
2373 $! Check for generic pointer size
2377 $ WS "#include <stdlib.h>
2379 $ WS "#include <stdio.h>
2383 $ WS "foo = sizeof(char *);
2384 $ WS "printf(""%d\n"", foo);
2388 $! copy temp.c sys$output
2390 $ DEFINE SYS$ERROR _NLA0:
2391 $ DEFINE SYS$OUTPUT _NLA0:
2392 $ ON ERROR THEN CONTINUE
2393 $ ON WARNING THEN CONTINUE
2395 $ If (Needs_Opt.eqs."Yes")
2397 $ link temp.obj,temp.opt/opt
2401 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
2402 $ DEASSIGN SYS$OUTPUT
2403 $ DEASSIGN SYS$ERROR
2404 $ DEFINE SYS$ERROR TEMPOUT
2405 $ DEFINE SYS$OUTPUT TEMPOUT
2408 $ DEASSIGN SYS$OUTPUT
2409 $ DEASSIGN SYS$ERROR
2410 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
2415 $ WRITE_RESULT "ptrsize is ''perl_ptrsize'"
2418 $! Done with compiler checks. Clean up.
2419 $ if f$search("temp.c").nes."" then DELETE/NOLOG temp.c;*
2420 $ if f$search("temp.obj").nes."" then DELETE/NOLOG temp.obj;*
2421 $ if f$search("temp.exe").nes."" then DELETE/NOLOG temp.exe;*
2422 $ if f$search("temp.opt").nes."" then DELETE/NOLOG Temp.opt;*
2425 $! Some that are compiler or VMS version sensitive
2428 $ IF "''Using_Gnu_C'".EQS."Yes"
2430 $ perl_d_attribut="define"
2431 $ perl_vms_cc_type="gcc"
2433 $ perl_d_attribut="undef"
2436 $! Dec C >= 5.2 and VMS ver >= 7.0
2437 $ IF ("''Using_Dec_C'".EQS."Yes").AND.(F$INTEGER(Dec_C_Version).GE.50200000).AND.("''VMS_VER'".GES."7.0")
2439 $ perl_d_bcmp="define"
2440 $ perl_d_gettimeod="define"
2441 $ perl_d_uname="define"
2442 $ perl_d_sigaction="define"
2443 $ perl_d_truncate="define"
2444 $ perl_d_wait4="define"
2445 $ perl_d_index="define"
2446 $ perl_pidtype="pid_t"
2447 $ perl_sig_name="ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM ABRT USR1 USR2 SPARE18 SPARE19 CHLD CONT STOP TSTP TTIN TTOU DEBUG SPARE27 SPARE28 SPARE29 SPARE30 SPARE31 SPARE32 RTMIN RTMAX"",0"
2448 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
2449 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",""SPARE18"",""SPARE19"",""CHLD"",""CONT"",""STOP"",""TSTP"","
2450 $ psnwc3="""TTIN"",""TTOU"",""DEBUG"",""SPARE27"",""SPARE28"",""SPARE29"",""SPARE30"",""SPARE31"",""SPARE32"",""RTMIN"",""RTMAX"",0"
2451 $perl_sig_name_with_commas = psnwc1 + psnwc2 + psnwc3
2452 $ perl_sig_num="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 64"","0"
2453 $ perl_sig_num_init="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,64,0"
2454 $ perl_sig_num_with_commas=perl_sig_num_init
2455 $ perl_uidtype="uid_t"
2456 $ perl_d_pathconf="define"
2457 $ perl_d_fpathconf="define"
2458 $ perl_d_sysconf="define"
2459 $ perl_d_sigsetjmp="define"
2461 $ perl_pidtype="unsigned int"
2462 $ perl_d_gettimeod="undef"
2463 $ perl_d_bcmp="undef"
2464 $ perl_d_uname="undef"
2465 $ perl_d_sigaction="undef"
2466 $ perl_d_truncate="undef"
2467 $ perl_d_wait4="undef"
2468 $ perl_d_index="undef"
2469 $ perl_sig_name="ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM ABRT USR1 USR2"",0"
2470 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
2471 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",0"
2472 $ perl_sig_name_with_commas = psnwc1 + psnwc2
2473 $ perl_sig_num="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 16 17"",0"
2474 $ perl_sig_num_init="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,0"
2475 $ perl_sig_num_with_commas=perl_sig_num_init
2476 $ perl_uidtype="unsigned int"
2477 $ perl_d_pathconf="undef"
2478 $ perl_d_fpathconf="undef"
2479 $ perl_d_sysconf="undef"
2480 $ perl_d_sigsetjmp="undef"
2484 $ IF ("''Using_Dec_C'".EQS."Yes")
2486 $ perl_d_mbstowcs="define"
2487 $ perl_d_mbtowc="define"
2488 $ perl_d_stdiobase="define"
2489 $ perl_d_stdio_ptr_lval="define"
2490 $ perl_d_stdio_cnt_lval="define"
2491 $ perl_d_stdstdio="define"
2492 $ perl_d_wcstombs="define"
2493 $ perl_d_mblen="define"
2494 $ perl_d_mktime="define"
2495 $ perl_d_strcoll="define"
2496 $ perl_d_strxfrm="define"
2497 $ perl_d_wctomb="define"
2498 $ perl_i_locale="define"
2499 $ perl_d_locconv="define"
2500 $ perl_d_setlocale="define"
2501 $ perl_vms_cc_type="decc"
2503 $ perl_d_mbstowcs="undef"
2504 $ perl_d_mbtowc="undef"
2505 $ perl_d_stdiobase="undef"
2506 $ perl_d_stdio_ptr_lval="undef"
2507 $ perl_d_stdio_cnt_lval="undef"
2508 $ perl_d_stdstdio="undef"
2509 $ perl_d_wcstombs="undef"
2510 $ perl_d_mblen="undef"
2511 $ perl_d_mktime="undef"
2512 $ perl_d_strcoll="undef"
2513 $ perl_d_strxfrm="undef"
2514 $ perl_d_wctomb="undef"
2515 $ perl_i_locale="undef"
2516 $ perl_d_locconv="undef"
2517 $ perl_d_setlocale="undef"
2521 $ if ("''Using_Vax_C'".EQS."Yes")
2523 $ perl_vms_cc_type="vaxc"
2528 $ if ("''Has_Socketshr'".EQS."T").OR.("''Has_Dec_C_Sockets'".EQS."T")
2530 $ perl_d_vms_do_sockets="define"
2531 $ perl_d_htonl="define"
2532 $ perl_d_socket="define"
2533 $ perl_d_select="define"
2534 $ perl_netdb_host_type="char *"
2535 $ perl_netdb_hlen_type="int"
2536 $ perl_netdb_name_type="char *"
2537 $ perl_netdb_net_type="long"
2538 $ perl_d_gethbyaddr="define"
2539 $ perl_d_gethbyname="define"
2540 $ perl_d_getnbyaddr="define"
2541 $ perl_d_getnbyname="define"
2542 $ perl_d_getpbynumber="define"
2543 $ perl_d_getpbyname="define"
2544 $ perl_d_getsbyport="define"
2545 $ perl_d_getsbyname="define"
2546 $ perl_d_gethostprotos="define"
2547 $ perl_d_getnetprotos="define"
2548 $ perl_d_getprotoprotos="define"
2549 $ perl_d_getservprotos="define"
2551 $ perl_d_vms_do_sockets="undef"
2552 $ perl_d_htonl="undef"
2553 $ perl_d_socket="undef"
2554 $ perl_d_select="undef"
2555 $ perl_netdb_host_type="char *"
2556 $ perl_netdb_hlen_type="int"
2557 $ perl_netdb_name_type="char *"
2558 $ perl_netdb_net_type="long"
2559 $ perl_d_gethbyaddr="undef"
2560 $ perl_d_gethbyname="undef"
2561 $ perl_d_getnbyaddr="undef"
2562 $ perl_d_getnbyname="undef"
2563 $ perl_d_getpbynumber="undef"
2564 $ perl_d_getpbyname="undef"
2565 $ perl_d_getsbyport="undef"
2566 $ perl_d_getsbyname="undef"
2567 $ perl_d_gethostprotos="undef"
2568 $ perl_d_getnetprotos="undef"
2569 $ perl_d_getprotoprotos="undef"
2570 $ perl_d_getservprotos="undef"
2573 $ if ("''use_threads'".eqs."T")
2575 $ perl_usethreads="define"
2576 $ perl_d_pthreads_created_joinable="define"
2577 $ if ("''VMS_VER'".ges."7.0")
2579 $ perl_d_oldpthreads="undef"
2581 $ perl_d_oldpthreads="define"
2584 $ perl_d_oldpthreads="undef"
2585 $ perl_usethreads="undef"
2587 $ perl_d_pthreads_created_joinable="undef"
2591 $! Finally the composite ones. All config
2592 $ perl_installarchlib="''perl_prefix':[lib.''perl_arch'.''localperlver']"
2593 $ perl_installsitearch="''perl_prefix':[lib.site_perl.''perl_arch']"
2594 $ perl_myhostname="''myhostname'"
2595 $ perl_mydomain="''mydomain'"
2596 $ perl_perladmin="''perladmin'"
2597 $ perl_cf_email="''cf_email'"
2598 $ perl_myuname:="VMS ''myname' ''f$edit(perl_osvers, "TRIM")' ''f$edit(hwname, "TRIM")'"
2599 $ perl_archlibexp="''perl_prefix':[lib.''perl_arch'.''localperlver']"
2600 $ perl_archlib="''perl_prefix':[lib.''perl_arch'.''lovalperlver']"
2601 $ perl_oldarchlibexp="''perl_prefix':[lib.''perl_arch']"
2602 $ perl_oldarchlib="''perl_prefix':[lib.''perl_arch']"
2603 $ perl_sitearchexp="''perl_prefix':[lib.site_perl.''perl_arch']"
2604 $ perl_sitearch="''perl_prefix':[lib.site_perl.''perl_arch']"
2605 $ if "''Using_Dec_C'" .eqs. "Yes"
2607 $ perl_ccflags="/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=''perl_obj_ext'/NoList''cc_flags'"
2609 $ IF "''Using_Vax_C'" .eqs. "Yes"
2611 $ perl_ccflags="/Include=[]/Obj=''perl_obj_ext'/NoList''cc_flags'"
2615 $! Finally clean off any leading zeros from the patchlevel or subversion
2616 $ perl_patchlevel = perl_patchlevel + 0
2617 $ perl_subversion = perl_subversion + 0
2619 $! Okay, we've got everything configured. Now go write out a config.sh.
2620 $ open/write CONFIGSH [-]config.sh
2621 $ WC := "write CONFIGSH"
2623 $ WC "# This file generated by Configure.COM on a VMS system."
2624 $ WC "# Time: " + perl_cf_time
2626 $ WC "package='" + perl_package + "'"
2627 $ WC "CONFIG='" + perl_config + "'"
2628 $ WC "cf_time='" + perl_cf_time + "'"
2629 $ WC "cf_by='" + perl_cf_by+ "'"
2630 $ WC "cpp_stuff='" + perl_cpp_stuff + "'"
2631 $ WC "ccdlflags='" + perl_ccdlflags + "'"
2632 $ WC "cccdlflags='" + perl_cccdlflags + "'"
2633 $ WC "mab='" + perl_mab + "'"
2634 $ WC "libpth='" + perl_libpth + "'"
2635 $ WC "ld='" + perl_ld + "'"
2636 $ WC "lddlflags='" + perl_lddlflags + "'"
2637 $ WC "ranlib='" + perl_ranlib + "'"
2638 $ WC "ar='" + perl_ar + "'"
2639 $ WC "eunicefix='" + perl_eunicefix + "'"
2640 $ WC "hint='" + perl_hint +"'"
2641 $ WC "hintfile='" + perl_hintfile + "'"
2642 $ WC "shrplib='" + perl_shrplib + "'"
2643 $ WC "usemymalloc='" + perl_usemymalloc + "'"
2644 $ WC "usevfork='" + perl_usevfork + "'"
2645 $ WC "useposix='false'"
2646 $ WC "spitshell='write sys$output '"
2647 $ WC "dlsrc='dl_vms.c'"
2648 $ WC "binexp='" + perl_binexp + "'"
2649 $ WC "man1ext='" + perl_man1ext + "'"
2650 $ WC "man3ext='" + perl_man3ext + "'"
2651 $ WC "arch='" + perl_arch + "'"
2652 $ WC "archname='" + perl_archname + "'"
2653 $ WC "osvers='" + perl_osvers + "'"
2654 $ WC "prefix='" + perl_prefix + "'"
2655 $ WC "builddir='" + perl_builddir + "'"
2656 $ WC "installbin='" + perl_installbin + "'"
2657 $ WC "installscript='" + perl_installscript + "'"
2658 $ WC "installman1dir='" + perl_installman1dir + "'"
2659 $ WC "installman3dir='" + perl_installman3dir + "'"
2660 $ WC "installprivlib='" + perl_installprivlib + "'"
2661 $ WC "installarchlib='" + perl_installarchlib + "'"
2662 $ WC "installsitelib='" + perl_installsitelib + "'"
2663 $ WC "installsitearch='" + perl_installsitearch + "'"
2664 $ WC "path_sep='" + perl_path_sep + "'"
2665 $ WC "vms_cc_type='" + perl_vms_cc_type + "'"
2666 $ WC "d_attribut='" + perl_d_attribut + "'"
2667 $ WC "cc='" + perl_cc + "'"
2668 $ WC "ccflags='" + perl_ccflags + "'"
2669 $ WC "d_vms_do_sockets='" + perl_d_vms_do_sockets + "'"
2670 $ WC "d_socket='" + perl_d_socket + "'"
2671 $ WC "d_sockpair='" + perl_d_sockpair + "'"
2672 $ WC "d_gethent='" + perl_d_gethent + "'"
2673 $ WC "d_getsent='" + perl_d_getsent + "'"
2674 $ WC "d_select='" + perl_d_select + "'"
2675 $ WC "i_niin='" + perl_i_niin + "'"
2676 $ WC "i_neterrno='" + perl_i_neterrno + "'"
2677 $ WC "d_stdstdio='" + perl_d_stdstdio + "'"
2678 $ WC "d_stdio_ptr_lval='" + perl_d_stdio_ptr_lval + "'"
2679 $ WC "d_stdio_cnt_lval='" + perl_d_stdio_cnt_lval + "'"
2680 $ WC "d_stdiobase='" + perl_d_stdiobase + "'"
2681 $ WC "d_locconv='" + perl_d_locconv + "'"
2682 $ WC "d_setlocale='" + perl_d_setlocale + "'"
2683 $ WC "i_locale='" + perl_i_locale + "'"
2684 $ WC "d_mbstowcs='" + perl_d_mbstowcs + "'"
2685 $ WC "d_mbtowc='" + perl_d_mbtowc + "'"
2686 $ WC "d_wcstombs='" + perl_d_wcstombs + "'"
2687 $ WC "d_wctomb='" + perl_d_wctomb + "'"
2688 $ WC "d_mblen='" + perl_d_mblen + "'"
2689 $ WC "d_mktime='" + perl_d_mktime + "'"
2690 $ WC "d_strcoll='" + perl_d_strcoll + "'"
2691 $ WC "d_strxfrm='" + perl_d_strxfrm + "'"
2692 $ WC "ldflags='" + perl_ldflags + "'"
2693 $ WC "dlobj='" + perl_dlobj + "'"
2694 $ WC "obj_ext='" + perl_obj_ext + "'"
2695 $ WC "so='" + perl_so + "'"
2696 $ WC "dlext='" + perl_dlext + "'"
2697 $ WC "exe_ext='" + perl_exe_ext + "'"
2698 $ WC "lib_ext='" + perl_lib_ext + "'"
2699 $ WC "myhostname='" + perl_myhostname + "'"
2700 $ WC "mydomain='" + perl_mydomain + "'"
2701 $ WC "perladmin='" + perl_perladmin + "'"
2702 $ WC "cf_email='" + perl_cf_email + "'"
2703 $ WC "myuname='" + perl_myuname + "'"
2704 $ WC "alignbytes='" + perl_alignbytes + "'"
2705 $ WC "osname='" + perl_osname + "'"
2706 $ WC "d_archlib='" + perl_d_archlib + "'"
2707 $ WC "archlibexp='" + perl_archlibexp + "'"
2708 $ WC "archlib='" + perl_archlib + "'"
2709 $ WC "archname='" + perl_archname + "'"
2710 $ WC "d_bincompat3='" + perl_d_bincompat3 + "'"
2711 $ WC "cppstdin='" + perl_cppstdin + "'"
2712 $ WC "cppminus='" + perl_cppminus + "'"
2713 $ WC "d_bcmp='" + perl_d_bcmp + "'"
2714 $ WC "d_bcopy='" + perl_d_bcopy + "'"
2715 $ WC "d_bzero='" + perl_d_bzero + "'"
2716 $ WC "d_castneg='" + perl_d_castneg + "'"
2717 $ WC "castflags='" + perl_castflags + "'"
2718 $ WC "d_chsize='" + perl_d_chsize + "'"
2719 $ WC "d_const='" + perl_d_const + "'"
2720 $ WC "d_crypt='" + perl_d_crypt + "'"
2721 $ WC "byteorder='" + perl_byteorder + "'"
2722 $ WC "full_csh='" + perl_full_csh + "'"
2723 $ WC "d_csh='" + perl_d_csh + "'"
2724 $ WC "d_dup2='" + perl_d_dup2 + "'"
2725 $ WC "d_fchmod='" + perl_d_fchmod + "'"
2726 $ WC "d_fchown='" + perl_d_fchown + "'"
2727 $ WC "d_fcntl='" + perl_d_fcntl + "'"
2728 $ WC "d_fgetpos='" + perl_d_fgetpos + "'"
2729 $ WC "d_flexfnam='" + perl_d_flexfnam + "'"
2730 $ WC "d_flock='" + perl_d_flock + "'"
2731 $ WC "d_fsetpos='" + perl_d_fsetpos + "'"
2732 $ WC "d_gettimeod='" + perl_d_gettimeod + "'"
2733 $ WC "d_getgrps='" + perl_d_getgrps + "'"
2734 $ WC "d_setgrps='" + perl_d_setgrps + "'"
2735 $ WC "d_uname='" + perl_d_uname + "'"
2736 $ WC "d_getprior='" + perl_d_getprior + "'"
2737 $ WC "d_killpg='" + perl_d_killpg + "'"
2738 $ WC "d_link='" + perl_d_link + "'"
2739 $ WC "d_lstat='" + perl_d_lstat + "'"
2740 $ WC "d_lockf='" + perl_d_lockf + "'"
2741 $ WC "d_memcmp='" + perl_d_memcmp + "'"
2742 $ WC "d_memcpy='" + perl_d_memcpy + "'"
2743 $ WC "d_memmove='" + perl_d_memmove + "'"
2744 $ WC "d_memset='" + perl_d_memset + "'"
2745 $ WC "d_mkdir='" + perl_d_mkdir + "'"
2746 $ WC "d_msg='" + perl_d_msg + "'"
2747 $ WC "d_open3='" + perl_d_open3 + "'"
2748 $ WC "d_poll='" + perl_d_poll + "'"
2749 $ WC "d_readdir='" + perl_d_readdir + "'"
2750 $ WC "d_seekdir='" + perl_d_seekdir + "'"
2751 $ WC "d_telldir='" + perl_d_telldir + "'"
2752 $ WC "d_rewinddir='" + perl_d_rewinddir + "'"
2753 $ WC "d_rename='" + perl_d_rename + "'"
2754 $ WC "d_rmdir='" + perl_d_rmdir + "'"
2755 $ WC "d_sem='" + perl_d_sem + "'"
2756 $ WC "d_setegid='" + perl_d_setegid + "'"
2757 $ WC "d_seteuid='" + perl_d_seteuid + "'"
2758 $ WC "d_setprior='" + perl_d_setprior + "'"
2759 $ WC "d_setregid='" + perl_d_setregid + "'"
2760 $ WC "d_setresgid='" + perl_d_setresgid + "'"
2761 $ WC "d_setreuid='" + perl_d_setreuid + "'"
2762 $ WC "d_setresuid='" + perl_d_setresuid + "'"
2763 $ WC "d_setrgid='" + perl_d_setrgid + "'"
2764 $ WC "d_setruid='" + perl_d_setruid + "'"
2765 $ WC "d_setsid='" + perl_d_setsid + "'"
2766 $ WC "d_shm='" + perl_d_shm + "'"
2767 $ WC "d_shmatprototype='" + perl_d_shmatprototype + "'"
2768 $ WC "d_sigaction='" + perl_d_sigaction + "'"
2769 $ WC "d_statblks='" + perl_d_statblks + "'"
2770 $ WC "stdio_ptr='" + perl_stdio_ptr + "'"
2771 $ WC "stdio_cnt='" + perl_stdio_cnt + "'"
2772 $ WC "stdio_base='" + perl_stdio_base + "'"
2773 $ WC "stdio_bufsiz='" + perl_stdio_bufsiz + "'"
2774 $ WC "d_strctcpy='" + perl_d_strctcpy + "'"
2775 $ WC "d_strerror='" + perl_d_strerror + "'"
2776 $ WC "d_syserrlst='" + perl_d_syserrlst + "'"
2777 $ WC "d_strerrm='" + perl_d_strerrm + "'"
2778 $ WC "d_symlink='" + perl_d_symlink + "'"
2779 $ WC "d_syscall='" + perl_d_syscall + "'"
2780 $ WC "d_system='" + perl_d_system + "'"
2781 $ WC "timetype='" + perl_timetype + "'"
2782 $ WC "d_truncate='" + perl_d_truncate + "'"
2783 $ WC "d_vfork='" + perl_d_vfork + "'"
2784 $ WC "signal_t='" + perl_signal_t + "'"
2785 $ WC "d_volatile='" + perl_d_volatile + "'"
2786 $ WC "d_vprintf='" + perl_d_vprintf + "'"
2787 $ WC "d_charvspr='" + perl_d_charvspr + "'"
2788 $ WC "d_wait4='" + perl_d_wait4 + "'"
2789 $ WC "d_waitpid='" + perl_d_waitpid + "'"
2790 $ WC "i_dirent='" + perl_i_dirent + "'"
2791 $ WC "d_dirnamlen='" + perl_d_dirnamlen + "'"
2792 $ WC "direntrytype='" + perl_direntrytype + "'"
2793 $ WC "i_fcntl='" + perl_i_fcntl + "'"
2794 $ WC "i_grp='" + perl_i_grp + "'"
2795 $ WC "i_limits='" + perl_i_limits + "'"
2796 $ WC "i_memory='" + perl_i_memory + "'"
2797 $ WC "i_ndbm='" + perl_i_ndbm + "'"
2798 $ WC "i_stdarg='" + perl_i_stdarg + "'"
2799 $ WC "i_pwd='" + perl_i_pwd + "'"
2800 $ WC "d_pwquota='" + perl_d_pwquota + "'"
2801 $ WC "d_pwage='" + perl_d_pwage + "'"
2802 $ WC "d_pwchange='" + perl_d_pwchange + "'"
2803 $ WC "d_pwclass='" + perl_d_pwclass + "'"
2804 $ WC "d_pwexpire='" + perl_d_pwexpire + "'"
2805 $ WC "d_pwcomment='" + perl_d_pwcomment + "'"
2806 $ WC "i_stddef='" + perl_i_stddef + "'"
2807 $ WC "i_stdlib='" + perl_i_stdlib + "'"
2808 $ WC "i_string='" + perl_i_string + "'"
2809 $ WC "i_sysdir='" + perl_i_sysdir + "'"
2810 $ WC "i_sysfile='" + perl_i_sysfile + "'"
2811 $ WC "i_sysioctl='" + perl_i_sysioctl + "'"
2812 $ WC "i_sysndir='" + perl_i_sysndir + "'"
2813 $ WC "i_sysresrc='" + perl_i_sysresrc + "'"
2814 $ WC "i_sysselct='" + perl_i_sysselct + "'"
2815 $ WC "i_dbm='" + perl_i_dbm + "'"
2816 $ WC "i_rpcsvcdbm='" + perl_i_rpcsvcdbm + "'"
2817 $ WC "i_sfio='" + perl_i_sfio + "'"
2818 $ WC "i_sysstat='" + perl_i_sysstat + "'"
2819 $ WC "i_systimes='" + perl_i_systimes + "'"
2820 $ WC "i_systypes='" + perl_i_systypes + "'"
2821 $ WC "i_sysun='" + perl_i_sysun + "'"
2822 $ WC "i_syswait='" + perl_i_syswait + "'"
2823 $ WC "i_termio='" + perl_i_termio + "'"
2824 $ WC "i_sgtty='" + perl_i_sgtty + "'"
2825 $ WC "i_termios='" + perl_i_termios + "'"
2826 $ WC "i_time='" + perl_i_time + "'"
2827 $ WC "i_systime='" + perl_i_systime + "'"
2828 $ WC "i_systimek='" + perl_i_systimek + "'"
2829 $ WC "i_unistd='" + perl_i_unistd + "'"
2830 $ WC "i_utime='" + perl_i_utime + "'"
2831 $ WC "i_varargs='" + perl_i_varargs + "'"
2832 $ WC "i_vfork='" + perl_i_vfork + "'"
2833 $ WC "prototype='" + perl_prototype + "'"
2834 $ WC "randbits='" + perl_randbits +"'"
2835 $ WC "selecttype='" + perl_selecttype + "'"
2836 $ WC "stdchar='" + perl_stdchar + "'"
2837 $ WC "d_unlink_all_versions='" + perl_d_unlink_all_versions + "'"
2838 $ WC "full_sed='" + perl_full_sed + "'"
2839 $ WC "bin='" + perl_bin + "'"
2840 $ WC "binexp='" + perl_binexp + "'"
2841 $ WC "d_alarm='" + perl_d_alarm + "'"
2842 $ WC "d_casti32='" + perl_d_casti32 + "'"
2843 $ WC "d_chown='" + perl_d_chown + "'"
2844 $ WC "d_chroot='" + perl_d_chroot + "'"
2845 $ WC "d_cuserid='" + perl_d_cuserid + "'"
2846 $ WC "d_dbl_dig='" + perl_d_dbl_dig + "'"
2847 $ WC "d_difftime='" + perl_d_difftime + "'"
2848 $ WC "d_fork='" + perl_d_fork + "'"
2849 $ WC "d_getlogin='" + perl_d_getlogin + "'"
2850 $ WC "d_getppid='" + perl_d_getppid + "'"
2851 $ WC "d_htonl='" + perl_d_htonl + "'"
2852 $ WC "d_nice='" + perl_d_nice + "'"
2853 $ WC "d_pause='" + perl_d_pause + "'"
2854 $ WC "d_pipe='" + perl_d_pipe + "'"
2855 $ WC "d_readlink='" + perl_d_readlink + "'"
2856 $ WC "d_setlinebuf='" + perl_d_setlinebuf + "'"
2857 $ WC "d_strchr='" + perl_d_strchr + "'"
2858 $ WC "d_index='" + perl_d_index + "'"
2859 $ WC "d_strtod='" + perl_d_strtod + "'"
2860 $ WC "d_strtol='" + perl_d_strtol + "'"
2861 $ WC "d_strtoul='" + perl_d_strtoul + "'"
2862 $ WC "d_tcgetpgrp='" + perl_d_tcgetpgrp + "'"
2863 $ WC "d_tcsetpgrp='" + perl_d_tcsetpgrp + "'"
2864 $ WC "d_times='" + perl_d_times + "'"
2865 $ WC "d_tzname='" + perl_d_tzname + "'"
2866 $ WC "d_umask='" + perl_d_umask + "'"
2867 $ WC "fpostype='" + perl_fpostype + "'"
2868 $ WC "i_dlfcn='" + perl_i_dlfcn + "'"
2869 $ WC "i_float='" + perl_i_float + "'"
2870 $ WC "i_math='" + perl_i_math + "'"
2871 $ WC "intsize='" + perl_intsize + "'"
2872 $ WC "longsize='" + perl_longsize + "'"
2873 $ WC "shortsize='" + perl_shortsize + "'"
2874 $ WC "lseektype='" + perl_lseektype + "'"
2875 $ WC "i_values='" + perl_i_values + "'"
2876 $ WC "malloctype='" + perl_malloctype + "'"
2877 $ WC "freetype='" + perl_freetype + "'"
2878 $ WC "d_mymalloc='" + perl_d_mymalloc + "'"
2879 $ WC "sh='" + perl_sh + "'"
2880 $ WC "sig_name='" + perl_sig_name + "'"
2881 $ WC "sig_num='" + perl_sig_num + "'"
2882 $ tempsym = "sig_name_init='" + perl_sig_name_with_commas + "'"
2884 $ WC "modetype='" + perl_modetype + "'"
2885 $ WC "ssizetype='" + perl_ssizetype + "'"
2886 $ WC "o_nonblock='" + perl_o_nonblock + "'"
2887 $ WC "eagain='" + perl_eagain + "'"
2888 $ WC "rd_nodata='" + perl_rd_nodata + "'"
2889 $ WC "d_eofnblk='" + perl_d_eofnblk + "'"
2890 $ WC "d_oldarchlib='" + perl_d_oldarchlib + "'"
2891 $ WC "oldarchlibexp='" + perl_oldarchlibexp + "'"
2892 $ WC "oldarchlib='" + perl_oldarchlib + "'"
2893 $ WC "privlibexp='" + perl_privlibexp + "'"
2894 $ WC "privlib='" + perl_privlib + "'"
2895 $ WC "sitelibexp='" + perl_sitelibexp + "'"
2896 $ WC "sitelib='" + perl_sitelib + "'"
2897 $ WC "sitearchexp='" + perl_sitearchexp + "'"
2898 $ WC "sitearch='" + perl_sitearch + "'"
2899 $ WC "sizetype='" + perl_sizetype + "'"
2900 $ WC "i_sysparam='" + perl_i_sysparam + "'"
2901 $ WC "d_void_closedir='" + perl_d_void_closedir + "'"
2902 $ WC "d_dlerror='" + perl_d_dlerror + "'"
2903 $ WC "d_dlsymun='" + perl_d_dlsymun + "'"
2904 $ WC "d_suidsafe='" + perl_d_suidsafe + "'"
2905 $ WC "d_dosuid='" + perl_d_dosuid + "'"
2906 $ WC "d_inetaton='" + perl_d_inetaton + "'"
2907 $ WC "d_isascii='" + perl_d_isascii + "'"
2908 $ WC "d_mkfifo='" + perl_d_mkfifo + "'"
2909 $ WC "d_pathconf='" + perl_d_pathconf + "'"
2910 $ WC "d_fpathconf='" + perl_d_fpathconf + "'"
2911 $ WC "d_safebcpy='" + perl_d_safebcpy + "'"
2912 $ WC "d_safemcpy='" + perl_d_safemcpy + "'"
2913 $ WC "d_sanemcmp='" + perl_d_sanemcmp + "'"
2914 $ WC "d_setpgrp='" + perl_d_setpgrp + "'"
2915 $ WC "d_bsdsetpgrp='" + perl_d_bsdsetpgrp + "'"
2916 $ WC "d_bsdpgrp='" + perl_d_bsdpgrp + "'"
2917 $ WC "d_setpgid='" + perl_d_setpgid + "'"
2918 $ WC "d_setpgrp2='" + perl_d_setpgrp2 + "'"
2919 $ WC "d_sysconf='" + perl_d_sysconf + "'"
2920 $ WC "d_Gconvert='" + perl_d_Gconvert + "'"
2921 $ WC "d_getpgid='" + perl_d_getpgid + "'"
2922 $ WC "d_getpgrp='" + perl_d_getpgrp + "'"
2923 $ WC "d_bsdgetpgrp='" + perl_d_bsdgetpgrp + "'"
2924 $ WC "d_getpgrp2='" + perl_d_getpgrp2 + "'"
2925 $ WC "d_sfio='" + perl_d_sfio + "'"
2926 $ WC "d_sigsetjmp='" + perl_d_sigsetjmp + "'"
2927 $ WC "usedl='" + perl_usedl + "'"
2928 $ WC "startperl=" + perl_startperl ! This one's special--no enclosing single quotes
2929 $ WC "db_hashtype='" + perl_db_hashtype + "'"
2930 $ WC "db_prefixtype='" + perl_db_prefixtype + "'"
2931 $ WC "useperlio='" + perl_useperlio + "'"
2932 $ WC "defvoidused='" + perl_defvoidused + "'"
2933 $ WC "voidflags='" + perl_voidflags + "'"
2934 $ WC "d_eunice='" + perl_d_eunice + "'"
2935 $ WC "libs='" + perl_libs + "'"
2936 $ WC "libc='" + perl_libc + "'"
2937 $ tempstring = "PERL_VERSION='" + "''perl_patchlevel'" + "'"
2939 $ tempstring = "PERL_SUBVERSION='" + "''perl_patchlevel'" + "'"
2941 $ tempstring = "PATCHLEVEL='" + "''perl_patchlevel'" + "'"
2943 $ tempstring = "SUBVERSION='" + "''perl_SUBVERSION'" + "'"
2945 $ WC "pager='" + perl_pager + "'"
2946 $ WC "uidtype='" + perl_uidtype + "'"
2947 $ WC "gidtype='" + perl_gidtype + "'"
2948 $ WC "usethreads='" + perl_usethreads + "'"
2949 $ WC "d_pthread_yield='" + perl_d_pthread_yield + "'"
2950 $ WC "d_pthreads_created_joinable='" + perl_d_pthreads_created_joinable + "'"
2951 $ WC "d_gnulibc='" + perl_d_gnulibc + "'"
2952 $ WC "i_netdb='" + perl_i_netdb + "'"
2953 $ WC "pidtype='" + perl_pidtype + "'"
2954 $ WC "netdb_host_type='" + perl_netdb_host_type + "'"
2955 $ WC "netdb_hlen_type='" + perl_netdb_hlen_type + "'"
2956 $ WC "netdb_name_type='" + perl_netdb_name_type + "'"
2957 $ WC "netdb_net_type='" + perl_netdb_net_type + "'"
2958 $ WC "baserev='" + perl_baserev + "'"
2959 $ WC "doublesize='" + perl_doublesize + "'"
2960 $ WC "ptrsize='" + perl_ptrsize + "'"
2961 $ WC "d_gethbyaddr='" + perl_d_gethbyaddr + "'"
2962 $ WC "d_gethbyname='" + perl_d_gethbyname + "'"
2963 $ WC "d_getnbyaddr='" + perl_d_getnbyaddr + "'"
2964 $ WC "d_getnbyname='" + perl_d_getnbyname + "'"
2965 $ WC "d_getpbynumber='" + perl_d_getpbynumber + "'"
2966 $ WC "d_getpbyname='" + perl_d_getpbyname + "'"
2967 $ WC "d_getsbyport='" + perl_d_getsbyport + "'"
2968 $ WC "d_getsbyname='" + perl_d_getsbyname + "'"
2969 $ WC "d_sethent='" + perl_d_sethent + "'"
2970 $ WC "d_oldpthreads='" + perl_d_oldpthreads + "'"
2971 $ WC "d_longdbl='" + perl_d_longdbl + "'"
2972 $ WC "longdblsize='" + perl_longdblsize + "'"
2973 $ WC "d_longlong='" + perl_d_longlong + "'"
2974 $ WC "longlongsize='" + perl_longlongsize + "'"
2975 $ WC "d_mkstemp='" + perl_d_mkstemp + "'"
2976 $ WC "d_setvbuf='" + perl_d_setvbuf + "'"
2977 $ WC "d_endhent='" + perl_d_endhent + "'"
2978 $ WC "d_endnent='" + perl_d_endsent + "'"
2979 $ WC "d_endpent='" + perl_d_endpent + "'"
2980 $ WC "d_endsent='" + perl_d_endsent + "'"
2981 $ WC "d_gethent='" + perl_d_gethent + "'"
2982 $ WC "d_getnent='" + perl_d_getsent + "'"
2983 $ WC "d_getpent='" + perl_d_getpent + "'"
2984 $ WC "d_getsent='" + perl_d_getsent + "'"
2985 $ WC "d_sethent='" + perl_d_sethent + "'"
2986 $ WC "d_setnent='" + perl_d_setsent + "'"
2987 $ WC "d_setpent='" + perl_d_setpent + "'"
2988 $ WC "ebcdic='" + perl_ebcdic + "'"
2989 $ WC "d_setsent='" + perl_d_setsent + "'"
2990 $ WC "d_gethostprotos='" + perl_d_gethostprotos + "'"
2991 $ WC "d_getnetprotos='" + perl_d_getnetprotos + "'"
2992 $ WC "d_getprotoprotos='" + perl_d_getprotoprotos + "'"
2993 $ WC "d_getservprotos='" + perl_d_getservprotos + "'"
2994 $ WC "d_pwgecos='" + perl_d_pwgecos + "'"
2995 $ WC "d_sched_yield='" + perl_d_sched_yield + "'"
2996 $ WC "d_lchown='" + perl_d_lchown + "'"
2997 $ WC "d_union_semun='" + perl_d_union_semun + "'"
2998 $ WC "i_arpainet='" + perl_i_arpainet + "'"
2999 $ WC "d_grpasswd='" + perl_d_grpasswd + "'"
3000 $ WC "d_setgrent='" + perl_d_setgrent + "'"
3001 $ WC "d_getgrent='" + perl_d_getgrent + "'"
3002 $ WC "d_endgrent='" + perl_d_endgrent + "'"
3003 $ WC "d_pwpasswd='" + perl_d_pwpasswd + "'"
3004 $ WC "d_setpwent='" + perl_d_setpwent + "'"
3005 $ WC "d_getpwent='" + perl_d_getpwent + "'"
3006 $ WC "d_endpwent='" + perl_d_endpwent + "'"
3007 $ WC "d_semctl_semun='" + perl_d_semctl_semun + "'"
3008 $ WC "d_semctl_semid_ds='" + perl_d_semctl_semid_ds + "'"
3009 $ WC "extensions='" + perl_extensions + "'"
3010 $ WC "d_mknod='" + perl_d_mknod + "'"
3011 $ WC "devtype='" + perl_devtype + "'"
3012 $ WC "d_gethname='" + perl_d_gethname + "'"
3013 $ WC "d_phostname='" + perl_d_phostname + "'"
3014 $ WC "d_accessx='" + perl_d_accessx + "'"
3015 $ WC "d_eaccess='" + perl_d_eaccess + "'"
3016 $ WC "i_sysaccess='" + perl_i_sysaccess + "'"
3017 $ WC "i_syssecrt='" + perl_i_syssecrt + "'"
3018 $ WC "d_fd_set='" + perl_d_fd_set + "'"
3019 $ WC "d_access='" + perl_d_access + "'"
3020 $ WC "d_msg_ctrunc='" + perl_d_msg_ctrunc + "'"
3021 $ WC "d_msg_dontroute='" + perl_d_msg_dontroute + "'"
3022 $ WC "d_msg_oob='" + perl_d_msg_oob + "'"
3023 $ WC "d_msg_peek='" + perl_d_msg_peek + "'"
3024 $ WC "d_msg_proxy='" + perl_d_msg_proxy + "'"
3025 $ WC "d_scm_rights='" + perl_d_scm_rights + "'"
3026 $ WC "d_sendmsg='" + perl_d_sendmsg + "'"
3027 $ WC "d_recvmsg='" + perl_d_recvmsg + "'"
3028 $ WC "d_msghdr_s='" + perl_d_msghdr_s + "'"
3029 $ WC "d_cmsghdr_s='" + perl_d_cmsghdr_s + "'"
3030 $ WC "i_sysuio='" + perl_i_sysuio + "'"
3031 $ WC "d_fseeko='" + perl_d_fseeko + "'"
3032 $ WC "d_ftello='" + perl_d_ftello + "'"
3033 $ WC "d_readv='" + perl_d_readv + "'"
3034 $ WC "d_writev='" + perl_d_writev + "'"
3035 $ WC "i_machcthr='" + perl_i_machcthr + "'"
3036 $ WC "usemultiplicity='" + perl_usemultiplicity + "'"
3037 $ WC "d_dbminit64='" + perl_d_dbminit64 + "'"
3038 $ WC "d_dbmclose64='" + perl_d_dbmclose64 + "'"
3039 $ WC "d_fetch64='" + perl_d_fetch64 + "'"
3040 $ WC "d_store64='" + perl_d_store64 + "'"
3041 $ WC "d_delete64='" + perl_d_delete64 + "'"
3042 $ WC "d_firstkey64='" + perl_d_firstkey64 + "'"
3043 $ WC "d_nextkey64='" + perl_d_nextkey64 + "'"
3044 $ WC "i_poll='" + perl_i_poll + "'"
3045 $ WC "i_inttypes='" + perl_i_inttypes + "'"
3046 $ WC "d_int64t='" + perl_d_int64t + "'"
3047 $ WC "d_off64t='" + perl_d_off64t + "'"
3048 $ WC "d_fstat64='" + perl_d_fstat64 + "'"
3049 $ WC "d_ftruncate64='" + perl_d_ftruncate64 + "'"
3050 $ WC "d_lseek64='" + perl_d_lseek64 + "'"
3051 $ WC "d_lstat64='" + perl_d_lstat64 + "'"
3052 $ WC "d_open64='" + perl_d_open64 + "'"
3053 $ WC "d_opendir64='" + perl_d_opendir64 + "'"
3054 $ WC "d_readdir64='" + perl_d_readdir64 + "'"
3055 $ WC "d_seekdir64='" + perl_d_seekdir64 + "'"
3056 $ WC "d_stat64='" + perl_d_stat64 + "'"
3057 $ WC "d_telldir64='" + perl_d_telldir64 + "'"
3058 $ WC "d_truncate64='" + perl_d_truncate64 + "'"
3059 $ WC "d_dirent64_s='" + perl_d_dirent64_s + "'"
3060 $ WC "use64bits='" + perl_use64bits + "'"
3061 $ WC "d_fgetpos64='" + perl_d_fgetpos64 + "'"
3062 $ WC "d_fopen64='" + perl_d_fopen64 + "'"
3063 $ WC "d_freopen64='" + perl_d_freopen64 + "'"
3064 $ WC "d_fseek64='" + perl_d_fseek64 + "'"
3065 $ WC "d_fseeko64='" + perl_d_fseeko64 + "'"
3066 $ WC "d_fsetpos64='" + perl_d_fsetpos64 + "'"
3067 $ WC "d_ftell64='" + perl_d_ftell64 + "'"
3068 $ WC "d_ftello64='" + perl_d_ftello64 + "'"
3069 $ WC "d_tmpfile64='" + perl_d_tmpfile64 + "'"
3070 $ WC "d_drand48proto='" + perl_d_drand48proto + "'"
3071 $ WC "d_pthread_create_joinable='" + perl_d_pthread_create_joinable + "'"
3072 $ WC "pthread_create_joinable='" + perl_pthread_create_joinable + "'"
3073 $ WC "d_old_pthread_create_joinable='" + perl_d_old_pthread_create_joinable + "'"
3074 $ WC "old_pthread_create_joinable='" + perl_old_pthread_create_joinable + "'"
3075 $ WC "drand01='" + perl_drand01 + "'"
3076 $ WC "randseedtype='" + perl_randseedtype + "'"
3077 $ WC "seedfunc='" + perl_seedfunc + "'"
3078 $ WC "sig_num_init='" + perl_sig_num_with_commas + "'"
3079 $ WC "i_sysmount='" + perl_i_sysmount + "'"
3080 $ WC "d_fstatfs='" + perl_d_fstatfs + "'"
3081 $ WC "d_statfsflags='" + perl_d_statfsflags + "'"
3082 $ WC "i_sysstatvfs='" + perl_i_sysstatvfs + "'"
3083 $ WC "i_machcthreads='" + perl_i_machcthreads + "'"
3084 $ WC "i_pthread='" + perl_i_pthread + "'"
3085 $ WC "d_fstatvfs='" + perl_d_fstatvfs + "'"
3086 $ WC "i_mntent='" + perl_i_mntent + "'"
3087 $ WC "d_getmntent='" + perl_d_getmntent + "'"
3088 $ WC "d_hasmntopt='" + perl_d_hasmntopt + "'"
3089 $ WC "d_telldirproto='" + perl_d_telldirproto + "'"
3090 $ WC "d_madvise='" + perl_d_madvise + "'"
3091 $ WC "d_msync='" + perl_d_msync + "'"
3092 $ WC "d_mprotect='" + perl_d_mprotect + "'"
3093 $ WC "d_munmap='" + perl_d_munmap + "'"
3094 $ WC "d_mmap='" + perl_d_mmap + "'"
3095 $ WC "i_sysmman='" + perl_i_sysmman + "'"
3096 $ WC "installusrbinperl='" + perl_installusrbinperl + "'"
3097 $ WC "crosscompile='" + perl_crosscompile + "'"
3098 $ WC "multiarch='" + perl_multiarch + "'"
3100 $! ##WRITE NEW CONSTANTS HERE##
3104 $! Okay, we've gotten here. Build munchconfig and run it
3105 $ 'Perl_CC' munchconfig.c
3106 $ If (Needs_Opt.eqs."Yes")
3108 $ open/write OPTCHAN []munchconfig.opt
3109 $ IF ("''using_gnu_c'".eqs."Yes")
3111 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
3113 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
3115 $ link munchconfig.obj,munchconfig.opt/opt
3116 $ delete munchconfig.opt;*
3118 $ link munchconfig.obj
3120 $ WRITE_RESULT "Writing config.h"
3122 $ ! we need an fdl file
3123 $ CREATE [-]CONFIG.FDL
3126 $ CREATE /FDL=[-]CONFIG.FDL [-]CONFIG.LOCAL
3127 $ ! First spit out the header info with the local defines (to get
3128 $ ! around the 255 character command line limit)
3129 $ OPEN/APPEND CONFIG [-]config.local
3130 $ if use_debugging_perl.eqs."Y"
3132 $ WRITE CONFIG "#define DEBUGGING"
3134 $ if preload_env.eqs."Y"
3136 $ WRITE CONFIG "#define PRIME_ENV_AT_STARTUP"
3138 $ if use_two_pot_malloc.eqs."Y"
3140 $ WRITE CONFIG "#define TWO_POT_OPTIMIZE"
3142 $ if mymalloc.eqs."Y"
3144 $ WRITE CONFIG "#define EMBEDMYMALLOC"
3146 $ if use_pack_malloc.eqs."Y"
3148 $ WRITE CONFIG "#define PACK_MALLOC"
3150 $ if use_debugmalloc.eqs."Y"
3152 $ write config "#define DEBUGGING_MSTATS"
3154 $ if "''Using_Gnu_C'" .eqs."Yes"
3156 $ WRITE CONFIG "#define GNUC_ATTRIBUTE_CHECK"
3158 $ if "''Has_Dec_C_Sockets'".eqs."T"
3160 $ WRITE CONFIG "#define VMS_DO_SOCKETS"
3161 $ WRITE CONFIG "#define DECCRTL_SOCKETS"
3163 $ if "''Has_Socketshr'".eqs."T"
3165 $ WRITE CONFIG "#define VMS_DO_SOCKETS"
3169 $! Now build the normal config.h
3170 $ define/user sys$output [-]config.main
3171 $ mcr []munchconfig [-]config.sh [-]config_h.sh
3172 $ ! Concatenate them together
3173 $ copy [-]config.local,[-]config.main [-]config.h
3175 $ DELETE/NOLOG [-]CONFIG.MAIN;*
3176 $ DELETE/NOLOG [-]CONFIG.LOCAL;*
3177 $ DELETE/NOLOG [-]CONFIG.FDL;*
3179 $ if "''Using_Dec_C'" .eqs."Yes"
3181 $ DECC_REPLACE = "DECC=decc=1"
3183 $ DECC_REPLACE = "DECC="
3185 $ if "''Using_Gnu_C'" .eqs."Yes"
3187 $ GNUC_REPLACE = "GNUC=gnuc=1"
3189 $ GNUC_REPLACE = "GNUC="
3191 $ if "''Has_Dec_C_Sockets'" .eqs."T"
3193 $ SOCKET_REPLACE = "SOCKET=DECC_SOCKETS=1"
3195 $ if "''Has_Socketshr'" .eqs."T"
3197 $ SOCKET_REPLACE = "SOCKET=SOCKETSHR_SOCKETS=1"
3199 $ SOCKET_REPLACE = "SOCKET="
3202 $ IF ("''Use_Threads'".eqs."T")
3204 $ if ("''VMS_VER'".LES."6.2")
3206 $ THREAD_REPLACE = "THREAD=OLDTHREADED=1"
3208 $ THREAD_REPLACE = "THREAD=THREADED=1"
3211 $ THREAD_REPLACE = "THREAD="
3213 $ if mymalloc.eqs."Y"
3215 $ MALLOC_REPLACE = "MALLOC=MALLOC=1"
3217 $ MALLOC_REPLACE = "MALLOC="
3219 $ if f$getsyi("HW_MODEL").ge.1024
3221 $ ARCH_TYPE = "ARCH-TYPE=__AXP__"
3223 $ ARCH_TYPE = "ARCH-TYPE=__VAX__"
3225 $ WRITE_RESULT "Writing DESCRIP.MMS"
3227 $ define/user sys$output [-]descrip.mms
3228 $ mcr []munchconfig [-]config.sh descrip_mms.template "''DECC_REPLACE'" "''ARCH_TYPE'" "''GNUC_REPLACE'" "''SOCKET_REPLACE'" "''THREAD_REPLACE'" "''C_Compiler_Replace'" "''MALLOC_REPLACE'" "''Thread_Live_Dangerously'" "PV=''LocalPerlVer'"
3231 $! Clean up after ourselves
3232 $ delete/nolog munchconfig.exe;*
3233 $ delete/nolog munchconfig.obj;*