2 $! - build a config.sh for VMS Perl.
3 $! - use built config.sh to take config_h.SH -> config.h
4 $! - also take vms/descrip_mms.template -> descrip.mms (VMS Makefile)
6 $! Note for folks from other platforms changing things in here:
7 $! Fancy changes (based on compiler capabilities or VMS version or
8 $! whatever) are tricky, so go ahead and punt on those.
10 $! Simple changes, though (say, always setting something to 1, or undef,
11 $! or something like that) are straightforward. Adding a new item for the
12 $! ultimately created config.sh requires adding two lines to this file.
14 $! First, a line in the format:
16 $! after the line tagged ##ADD NEW CONSTANTS HERE##. Replace foo with the
17 $! variable name as it appears in config.sh.
19 $! Second, add a line in the format:
20 $! $ WC "foo='" + perl_foo + "'"
21 $! after the line tagged ##WRITE NEW CONSTANTS HERE##. Careful of the
22 $! quoting, as it can be tricky.
24 $! This .COM file expects to be called by configure.com, and thus expects
25 $! a few symbols in the environment. Notably:
27 $! One of: Using_Dec_C, Using_Gnu_C set to "YES"
28 $! Dec_C_Version set to the Dec C version (defaults to 0 if not specified)
29 $! Has_Socketshr set to "T" if using socketshr
30 $! Has_Dec_C_Sockets set to "T" if using Dec C sockets
31 $! Use_Threads set to "T" if they're using threads
32 $! C_Compiler_Invoke is the command needed to invoke the C compiler
34 $! We'll be playing with Sys$Output; don't clutter it
37 $! Set Dec_C_Version to something
38 $ WRITE_RESULT := "WRITE SYS$OUTPUT ""%CONFIG-I-RESULT "" + "
39 $ echo = "Write Sys$Output "
40 $ Dec_C_Version := "''Dec_C_Version'"
41 $ Dec_C_Version = Dec_C_Version + 0
42 $ Vms_Ver := "''f$extract(1,3, f$getsyi(""version""))'"
43 $ perl_extensions := "''extensions'"
44 $ IF F$LENGTH(Mcc) .EQ. 0 THEN Mcc := "cc"
45 $ MCC = f$edit(mcc, "UPCASE")
46 $ C_Compiler_Replace := "CC=CC=''Mcc'''CC_flags'"
49 $ Checkcc := "''Mcc'/prefix=all"
53 $ cc_flags = cc_flags + extra_flags
54 $ IF be_case_sensitive
56 $ d_vms_be_case_sensitive = "define"
58 $ d_vms_be_case_sensitive = "undef"
62 $ perl_usemultiplicity = "define"
64 $ perl_usemultiplicity = "undef"
66 $! Some constant defaults.
67 $ hwname = f$getsyi("HW_NAME")
69 $ IF myname .EQS. "" THEN myname = F$TRNLNM("SYS$NODE")
71 $! ##ADD NEW CONSTANTS HERE##
75 $ perl_gidformat = "lu"
78 $ perl_groupstype = "Gid_t"
79 $ perl_stdio_stream_array = ""
80 $ perl_uidformat = "lu"
83 $ perl_d_getcwd = "undef"
84 $ perl_d_nv_preserves_uv = "define"
85 $ perl_d_fs_data_s = "undef"
86 $ perl_d_getmnt = "undef"
87 $ perl_d_sqrtl = "define"
88 $ perl_d_statfs_f_flags = "undef"
89 $ perl_d_statfs_s = "undef"
90 $ perl_d_ustat = "undef"
91 $ perl_i_ieeefp = "undef"
92 $ perl_i_sunmath = "undef"
93 $ perl_i_sysstatfs = "undef"
94 $ perl_i_sysvfs = "undef"
95 $ perl_i_ustat = "undef"
96 $ perl_d_llseek="undef"
97 $ perl_d_iconv="undef"
98 $ perl_d_madvise="undef"
99 $ perl_selectminbits="32"
100 $ perl_d_vendorarch="undef"
101 $ perl_vendorarchexp=""
102 $ perl_d_msync="undef"
103 $ perl_d_mprotect="undef"
104 $ perl_d_munmap="undef"
105 $ perl_crosscompile="undef"
106 $ perl_multiarch="undef"
107 $ perl_d_mmap="undef"
108 $ perl_i_sysmman="undef"
109 $ perl_d_telldirproto="define"
110 $ perl_i_sysmount="undef"
111 $ perl_d_bincompat="undef"
112 $ perl_d_endspent="undef
113 $ perl_d_getspent="undef
114 $ perl_d_getspnam="undef
115 $ perl_d_setspent="undef
116 $ perl_d_fstatfs="undef"
117 $ perl_d_getfsstat="undef"
118 $ perl_i_machcthreads="undef"
119 $ perl_i_pthread="define"
120 $ perl_d_fstatvfs="undef"
121 $ perl_usesocks="undef"
122 $ perl_d_vendorlib="undef"
123 $ perl_vendorlibexp=""
124 $ perl_vendorlib_stem=""
125 $ perl_d_statfsflags="undef"
126 $ perl_i_sysstatvfs="undef"
127 $ perl_i_mntent="undef"
128 $ perl_d_getmntent="undef"
129 $ perl_d_hasmntopt="undef"
130 $ perl_package="''package'"
131 $ perl_baserev = "''baserev'"
133 $ perl_installusrbinperl="undef"
135 $ perl_d_fseeko="undef"
136 $ perl_d_ftello="undef"
137 $ perl_d_qgcvt="undef"
138 $ perl_d_readv="undef"
139 $ perl_d_writev="undef"
140 $ perl_i_machcthr="undef"
141 $ perl_i_netdb="undef"
142 $ perl_d_gnulibc="undef"
146 $ perl_drand01 = "drand48()"
147 $ perl_randseedtype = "long int"
148 $ perl_seedfunc = "srand48"
149 $ perl_d_msg_ctrunc = "undef"
150 $ perl_d_msg_dontroute = "undef"
151 $ perl_d_msg_oob = "undef"
152 $ perl_d_msg_peek = "undef"
153 $ perl_d_msg_proxy = "undef"
154 $ perl_d_scm_rights = "undef"
155 $ perl_d_sendmsg = "undef"
156 $ perl_d_recvmsg = "undef"
157 $ perl_d_msghdr_s = "undef"
158 $ perl_d_cmsghdr_s = "undef"
161 $ perl_use64bitint = "define"
162 $ perl_uselargefiles = "define"
163 $ perl_uselongdouble = "define"
164 $ perl_usemorebits = "define"
166 $ perl_use64bitint = "undef"
167 $ perl_uselargefiles = "undef"
168 $ perl_uselongdouble = "undef"
169 $ perl_usemorebits = "undef"
173 $ perl_use64bitall = "define"
175 $ perl_use64bitall = "undef"
177 $ perl_d_drand48proto = "define"
178 $ perl_d_lseekproto = "define"
179 $ perl_libpth="/sys$share /sys$library"
181 $ perl_lddlflags="/Share"
187 $ perl_i_arpainet="undef"
188 $ perl_d_grpasswd="undef"
189 $ perl_d_setgrent="undef"
190 $ perl_d_getgrent="define"
191 $ perl_d_endgrent="define"
192 $ perl_d_pwpasswd="define"
193 $ perl_d_setpwent="define"
194 $ perl_d_getpwent="define"
195 $ perl_d_endpwent="define"
196 $ perl_d_phostname="undef"
197 $ perl_d_accessx="undef"
198 $ perl_d_eaccess="undef"
199 $ perl_ebcdic="undef"
201 $ perl_shrplib="define"
202 $ perl_usemymalloc=mymalloc
203 $ perl_usevfork="true"
204 $ perl_useposix="false"
205 $ perl_spitshell="write sys$output "
206 $ perl_dlsrc="dl_vms.c"
209 $ perl_prefix="perl_root"
210 $ perl_binexp="''perl_prefix':[000000]"
211 $ perl_builddir="''perl_prefix':[000000]"
212 $ perl_installbin="''perl_prefix':[000000]"
213 $ perl_installscript="''perl_prefix':[utils]"
214 $ perl_installman1dir="''perl_prefix':[man.man1]"
215 $ perl_installman3dir="''perl_prefix':[man.man3]"
216 $ perl_installprivlib="''perl_prefix':[lib]"
217 $ perl_installsitelib="''perl_prefix':[lib.site_perl]"
220 $ perl_d_sockpair="undef"
221 $ perl_i_neterrno="define"
222 $ perl_ldflags="/NoTrace/NoMap"
223 $ perl_d_lchown="undef"
224 $ perl_d_mknod="undef"
225 $ perl_d_union_semun="undef"
226 $ perl_d_semctl_semun="undef"
227 $ perl_d_semctl_semid_ds="undef"
228 $ IF (sharedperl .AND. F$GETSYI("HW_MODEL") .GE. 1024)
230 $ perl_obj_ext=".abj"
233 $ perl_exe_ext=".axe"
234 $ perl_lib_ext=".alb"
236 $ perl_obj_ext=".obj"
239 $ perl_exe_ext=".exe"
240 $ perl_lib_ext=".olb"
242 $ perl_dlobj="dl_vms''perl_obj_ext'"
244 $ perl_d_archlib="define"
245 $ perl_d_bincompat3="undef"
246 $ perl_cppstdin="''Perl_CC'/noobj/preprocess=sys$output sys$input"
248 $ perl_cpprun="''Perl_CC'/noobj/preprocess=sys$output sys$input"
251 $ perl_d_castneg="define"
253 $ perl_d_chsize="undef"
254 $ perl_d_const="define"
255 $ perl_d_crypt="define"
256 $ perl_byteorder="1234"
259 $ perl_d_dup2="define"
260 $ perl_d_fchmod="undef"
261 $ perl_d_fchown="undef"
262 $ perl_d_fcntl="undef"
263 $ perl_d_fgetpos="define"
264 $ perl_d_flexfnam="define"
265 $ perl_d_flock="undef"
266 $ perl_d_fsetpos="define"
267 $ perl_d_getgrps="undef"
268 $ perl_d_setgrps="undef"
269 $ perl_d_getprior="undef"
270 $ perl_d_killpg="undef"
271 $ perl_d_link="undef"
272 $ perl_d_lstat="undef"
273 $ perl_d_lockf="undef"
274 $ perl_d_memcmp="define"
275 $ perl_d_memcpy="define"
276 $ perl_d_memmove="define"
277 $ perl_d_memset="define"
278 $ perl_d_mkdir="define"
280 $ perl_d_open3="define"
281 $ perl_d_poll="undef"
282 $ perl_d_readdir="define"
283 $ perl_d_seekdir="define"
284 $ perl_d_telldir="define"
285 $ perl_d_rewinddir="define"
286 $ perl_d_rename="define"
287 $ perl_d_rmdir="define"
289 $ perl_d_setegid="undef"
290 $ perl_d_seteuid="undef"
291 $ perl_d_setprior="undef"
292 $ perl_d_setregid="undef"
293 $ perl_d_setresgid="undef"
294 $ perl_d_setreuid="undef"
295 $ perl_d_setresuid="undef"
296 $ perl_d_setrgid="undef"
297 $ perl_d_setruid="undef"
298 $ perl_d_setsid="undef"
300 $ perl_d_shmatprototype="undef"
301 $ perl_d_statblks="undef"
302 $ perl_stdio_ptr="((*fp)->_ptr)"
303 $ perl_stdio_cnt="((*fp)->_cnt)"
304 $ perl_stdio_base="((*fp)->_base)"
305 $ perl_stdio_bufsiz="((*fp)->_cnt + (*fp)->_ptr - (*fp)->_base)"
306 $ perl_d_strctcpy="define"
307 $ perl_d_strerror="define"
308 $ perl_d_syserrlst="undef"
309 $ perl_d_strerrm="strerror((e),vaxc$errno)"
310 $ perl_d_symlink="undef"
311 $ perl_d_syscall="undef"
312 $ perl_d_system="define"
313 $ perl_timetype="time_t"
314 $ perl_d_vfork="define"
315 $ perl_signal_t="void"
316 $ perl_d_volatile="define"
317 $ perl_d_vprintf="define"
318 $ perl_d_charvspr="undef"
319 $ perl_d_waitpid="define"
320 $ perl_i_dirent="undef"
321 $ perl_d_dirnamlen="define"
322 $ perl_direntrytype="struct dirent"
323 $ perl_i_fcntl="undef"
325 $ perl_i_limits="define"
326 $ perl_i_memory="undef"
327 $ perl_i_ndbm="undef"
328 $ perl_i_stdarg="define"
330 $ perl_d_pwquota="undef"
331 $ perl_d_pwage="undef"
332 $ perl_d_pwchange="undef"
333 $ perl_d_pwclass="undef"
334 $ perl_d_pwexpire="undef"
335 $ perl_d_pwcomment="define"
336 $ perl_i_stddef="define"
337 $ perl_i_stdlib="define"
338 $ perl_i_string="define"
339 $ perl_i_sysdir="undef"
340 $ perl_i_sysfile="undef"
341 $ perl_i_sysioctl="undef"
342 $ perl_i_sysndir="undef"
343 $ perl_i_sysresrc="undef"
344 $ perl_i_sysselct="undef"
346 $ perl_i_rpcsvcdbm="undef"
347 $ perl_i_sfio="undef"
348 $ perl_i_sysstat="define"
349 $ perl_i_systimes="undef"
350 $ perl_i_systypes="define"
351 $ perl_i_sysun="undef"
352 $ perl_i_syswait="undef"
353 $ perl_i_termio="undef"
354 $ perl_i_sgtty="undef"
355 $ perl_i_termios="undef"
356 $ perl_i_time="define"
357 $ perl_i_systime="undef"
358 $ perl_i_systimek="undef"
359 $! perl_i_unistd="undef"
360 $ perl_i_utime="undef"
361 $ perl_i_varargs="undef"
362 $ perl_i_vfork="undef"
363 $ perl_prototype="define"
365 $ perl_stdchar="char"
366 $ perl_d_unlink_all_versions="undef"
367 $ perl_full_sed="_NLA0:"
368 $ perl_bin="/''perl_prefix'/000000"
369 $ perl_binexp="''perl_prefix':[000000]"
370 $ perl_d_alarm="define"
371 $ perl_d_casti32="define"
372 $ perl_d_chown="define"
373 $ perl_d_chroot="undef"
374 $ perl_d_cuserid="define"
375 $ perl_d_dbl_dig="define"
376 $ perl_d_ldbl_dig="define"
377 $ perl_d_difftime="define"
378 $ perl_d_fork="undef"
379 $ perl_d_getlogin="define"
380 $ perl_d_getppid="undef"
381 $ perl_d_nice="define"
382 $ perl_d_pause="define"
383 $ perl_d_pipe="define"
384 $ perl_d_readlink="undef"
385 $ perl_d_setlinebuf="undef"
386 $ perl_d_strchr="define"
387 $ perl_d_strtod="define"
388 $ perl_d_strtol="define"
389 $ perl_d_strtoul="define"
390 $ perl_d_tcgetpgrp="undef"
391 $ perl_d_tcsetpgrp="undef"
392 $ perl_d_times="define"
393 $ perl_d_tzname="undef"
394 $ perl_d_umask="define"
395 $ perl_fpostype="fpos_t"
396 $ perl_i_dlfcn="undef"
397 $ perl_i_float="define"
398 $ perl_i_math="define"
399 $ perl_lseektype="int"
400 $ perl_i_values="undef"
401 $ perl_malloctype="void *"
402 $ perl_freetype="void"
405 $ perl_d_mymalloc="define"
407 $ perl_d_mymalloc="undef"
410 $ perl_modetype="unsigned int"
411 $ perl_ssizetype="int"
412 $ perl_o_nonblock=" "
415 $ perl_d_eofnblk="undef"
416 $ perl_d_oldarchlib="define"
417 $ perl_privlibexp="''perl_prefix':[lib]"
418 $ perl_privlib="''perl_prefix':[lib]"
419 $ perl_sitelibexp="''perl_prefix':[lib.site_perl]"
420 $ perl_sitelib="''perl_prefix':[lib.site_perl]"
421 $ perl_sitelib_stem="''perl_prefix':[lib.site_perl]"
422 $ perl_sizetype="size_t"
423 $ perl_i_sysparam="undef"
424 $ perl_d_void_closedir="define"
425 $ perl_d_dlerror="undef"
426 $ perl_d_dlsymun="undef"
427 $ perl_d_suidsafe="undef"
428 $ perl_d_dosuid="undef"
429 $ perl_d_inetaton="undef"
430 $ perl_d_isascii="define"
431 $ perl_d_mkfifo="undef"
432 $ perl_d_safebcpy="undef"
433 $ perl_d_safemcpy="define"
434 $ perl_d_sanemcmp="define"
435 $ perl_d_setpgrp="undef"
436 $ perl_d_bsdsetpgrp="undef"
437 $ perl_d_bsdpgrp="undef"
438 $ perl_d_setpgid="undef"
439 $ perl_d_setpgrp2="undef"
440 $ perl_d_Gconvert="my_gconvert(x,n,t,b)"
441 $ perl_d_getpgid="undef"
442 $ perl_d_getpgrp="undef"
443 $ perl_d_bsdgetpgrp="undef"
444 $ perl_d_getpgrp2="undef"
445 $ perl_d_sfio="undef"
446 $ perl_usedl="define"
447 $ perl_startperl="""$ perl 'f$env(\""procedure\"")' 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8' !\n$ exit++ + ++$status != 0 and $exit = $status = undef;"""
448 $ perl_db_hashtype=" "
449 $ perl_db_prefixtype=" "
450 $ perl_useperlio="undef"
451 $ perl_defvoidused="15"
452 $ perl_voidflags="15"
453 $ perl_d_eunice="undef"
454 $ perl_d_pwgecos="define"
455 $ IF ((Use_Threads) .AND. (VMS_VER .LES. "6.2"))
457 $ 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"
463 $ perl_libc="(DECCRTL)"
473 $ perl_d_PRIfldbl = "define"
474 $ perl_d_PRIgldbl = "define"
475 $ perl_d_PRId64 = "define"
476 $ perl_d_PRIu64 = "define"
477 $ perl_d_PRIo64 = "define"
478 $ perl_d_PRIx64 = "define"
479 $ perl_sPRIfldbl = """Lf"""
480 $ perl_sPRIgldbl = """Lg"""
481 $ perl_sPRId64 = """Ld"""
482 $ perl_sPRIu64 = """Lu"""
483 $ perl_sPRIo64 = """Lo"""
484 $ perl_sPRIx64 = """Lx"""
485 $ perl_d_quad = "define"
486 $ perl_quadtype = "long long"
487 $ perl_uquadtype = "unsigned long long"
488 $ perl_quadkind = "QUAD_IS_LONG_LONG"
490 $ perl_d_PRIfldbl = "undef"
491 $ perl_d_PRIgldbl = "undef"
492 $ perl_d_PRId64 = "undef"
493 $ perl_d_PRIu64 = "undef"
494 $ perl_d_PRIo64 = "undef"
495 $ perl_d_PRIx64 = "undef"
496 $ perl_sPRIfldbl = ""
497 $ perl_sPRIgldbl = ""
502 $ perl_d_quad = "undef"
503 $ perl_quadtype = "long"
504 $ perl_uquadtype = "unsigned long"
505 $ perl_quadkind = "QUAD_IS_LONG"
508 $! Now some that we build up
512 $ if use_5005_threads
514 $ arch = "''arch'-thread"
515 $ archname = "''archname'-thread"
516 $ perl_d_old_pthread_create_joinable = "undef"
517 $ perl_old_pthread_create_joinable = " "
518 $ perl_use5005threads = "define"
519 $ perl_useithreads = "undef"
521 $ arch = "''arch'-ithread"
522 $ archname = "''archname'-ithread"
523 $ perl_d_old_pthread_create_joinable = "undef"
524 $ perl_old_pthread_create_joinable = " "
525 $ perl_use5005threads = "undef"
526 $ perl_useithreads = "define"
529 $ perl_d_old_pthread_create_joinable = "undef"
530 $ perl_old_pthread_create_joinable = " "
531 $ perl_use5005threads = "undef"
532 $ perl_useithreads = "undef"
535 $! Some that we need to invoke the compiler for
536 $ OS := "open/write SOURCECHAN []temp.c"
537 $ WS := "write SOURCECHAN"
538 $ CS := "close SOURCECHAN"
539 $ DS := "delete/nolog []temp.*;*"
543 $ open/write OPTCHAN []temp.opt
544 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
545 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
550 $! Check for __STDC__
554 $ WS "#include <stdlib.h>
556 $ WS "#include <stdio.h>
559 $ WS "#ifdef __STDC__
560 $ WS "printf(""42\n"");
562 $ WS "printf(""1\n"");
567 $ DEFINE SYS$ERROR _NLA0:
568 $ DEFINE SYS$OUTPUT _NLA0:
569 $ ON ERROR THEN CONTINUE
570 $ ON WARNING THEN CONTINUE
574 $ link temp.obj,temp.opt/opt
578 $ DEASSIGN SYS$OUTPUT
580 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
581 $ DEFINE SYS$ERROR TEMPOUT
582 $ DEFINE SYS$OUTPUT TEMPOUT
585 $ DEASSIGN SYS$OUTPUT
587 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
590 $ DELETE/NOLOG [-.uu]tempout.lis;
591 $ perl_cpp_stuff=line
592 $ WRITE_RESULT "cpp_stuff is ''perl_cpp_stuff'"
594 $! Check for double size
598 $ WS "#include <stdlib.h>
600 $ WS "#include <stdio.h>
604 $ WS "foo = sizeof(double);
605 $ WS "printf(""%d\n"", foo);
609 $ DEFINE SYS$ERROR _NLA0:
610 $ DEFINE SYS$OUTPUT _NLA0:
611 $ ON ERROR THEN CONTINUE
612 $ ON WARNING THEN CONTINUE
616 $ link temp.obj,temp.opt/opt
620 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
621 $ DEASSIGN SYS$OUTPUT
623 $ DEFINE SYS$ERROR TEMPOUT
624 $ DEFINE SYS$OUTPUT TEMPOUT
627 $ DEASSIGN SYS$OUTPUT
629 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
632 $ DELETE/NOLOG [-.uu]tempout.lis;
634 $ perl_doublesize=line
635 $ WRITE_RESULT "doublesize is ''perl_doublesize'"
637 $! Check for long double size
641 $ WS "#include <stdlib.h>
643 $ WS "#include <stdio.h>
646 $ WS "printf(""%d\n"", sizeof(long double));
650 $ DEFINE SYS$ERROR _NLA0:
651 $ DEFINE SYS$OUTPUT _NLA0:
652 $ ON ERROR THEN CONTINUE
653 $ ON WARNING THEN CONTINUE
655 $ teststatus = f$extract(9,1,$status)
656 $ if (teststatus.nes."1")
658 $ perl_longdblsize="0"
659 $ perl_d_longdbl="undef"
661 $ ON ERROR THEN CONTINUE
662 $ ON WARNING THEN CONTINUE
665 $ link temp.obj,temp.opt/opt
669 $ teststatus = f$extract(9,1,$status)
670 $ DEASSIGN SYS$OUTPUT
672 $ IF (teststatus.nes."1")
674 $ perl_longdblsize="0"
675 $ perl_d_longdbl="undef"
677 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
678 $ DEFINE SYS$ERROR TEMPOUT
679 $ DEFINE SYS$OUTPUT TEMPOUT
682 $ DEASSIGN SYS$OUTPUT
684 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
687 $ DELETE/NOLOG [-.uu]tempout.lis;
688 $ perl_longdblsize=line
689 $ perl_d_longdbl="define"
692 $ WRITE_RESULT "longdblsize is ''perl_longdblsize'"
693 $ WRITE_RESULT "d_longdbl is ''perl_d_longdbl'"
695 $! Check for long long existance and size
699 $ WS "#include <stdlib.h>
701 $ WS "#include <stdio.h>
704 $ WS "printf(""%d\n"", sizeof(long long));
708 $ DEFINE SYS$ERROR _NLA0:
709 $ DEFINE SYS$OUTPUT _NLA0:
710 $ on error then continue
711 $ on warning then continue
715 $ link temp.obj,temp.opt/opt
719 $ teststatus = f$extract(9,1,$status)
720 $ DEASSIGN SYS$OUTPUT
722 $ if (teststatus.nes."1")
724 $ perl_longlongsize="0"
725 $ perl_d_longlong="undef"
727 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
728 $ DEFINE SYS$ERROR TEMPOUT
729 $ DEFINE SYS$OUTPUT TEMPOUT
732 $ DEASSIGN SYS$OUTPUT
734 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
737 $ DELETE/NOLOG [-.uu]tempout.lis;
738 $ perl_longlongsize=line
739 $ perl_d_longlong="define"
741 $ WRITE_RESULT "longlongsize is ''perl_longlongsize'"
742 $ WRITE_RESULT "d_longlong is ''perl_d_longlong'"
744 $! Check the prototype for getgid
748 $ WS "#include <stdlib.h>
750 $ WS "#include <stdio.h>
751 $ WS "#include <types.h>
752 $ WS "#include <unistd.h>
759 $ DEFINE SYS$ERROR _NLA0:
760 $ DEFINE SYS$OUTPUT _NLA0:
761 $ on error then continue
762 $ on warning then continue
764 $ teststatus = f$extract(9,1,$status)
765 $ DEASSIGN SYS$OUTPUT
767 $ if (teststatus.nes."1")
769 $! Okay, gid_t failed. Must be unsigned int
770 $ perl_gidtype = "unsigned int"
772 $ perl_gidtype = "gid_t"
774 $ WRITE_RESULT "Gid_t is ''perl_gidtype'"
776 $! Check to see if we've got dev_t
780 $ WS "#include <stdlib.h>
782 $ WS "#include <stdio.h>
783 $ WS "#include <types.h>
784 $ WS "#include <unistd.h>
791 $ DEFINE SYS$ERROR _NLA0:
792 $ DEFINE SYS$OUTPUT _NLA0:
793 $ on error then continue
794 $ on warning then continue
796 $ teststatus = f$extract(9,1,$status)
797 $ DEASSIGN SYS$OUTPUT
799 $ if (teststatus.nes."1")
801 $! Okay, dev_t failed. Must be unsigned int
802 $ perl_devtype = "unsigned int"
804 $ perl_devtype = "dev_t"
806 $ WRITE_RESULT "Dev_t is ''perl_devtype'"
808 $! Check to see if we've got unistd.h (which we ought to, but you never know)
812 $ WS "#include <stdlib.h>
814 $ 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, failed. Must not have it
831 $ perl_i_unistd = "undef"
833 $ perl_i_unistd = "define"
835 $ WRITE_RESULT "i_unistd is ''perl_i_unistd'"
837 $! Check to see if we've got shadow.h (probably not, but...)
841 $ WS "#include <stdlib.h>
843 $ WS "#include <shadow.h>
849 $ DEFINE SYS$ERROR _NLA0:
850 $ DEFINE SYS$OUTPUT _NLA0:
851 $ on error then continue
852 $ on warning then continue
854 $ teststatus = f$extract(9,1,$status)
855 $ DEASSIGN SYS$OUTPUT
857 $ if (teststatus.nes."1")
859 $! Okay, failed. Must not have it
860 $ perl_i_shadow = "undef"
862 $ perl_i_shadow = "define"
864 $ WRITE_RESULT "i_shadow is ''perl_i_shadow'"
866 $! Check to see if we've got socks.h (probably not, but...)
870 $ WS "#include <stdlib.h>
872 $ WS "#include <socks.h>
878 $ DEFINE SYS$ERROR _NLA0:
879 $ DEFINE SYS$OUTPUT _NLA0:
880 $ on error then continue
881 $ on warning then continue
883 $ teststatus = f$extract(9,1,$status)
884 $ DEASSIGN SYS$OUTPUT
886 $ if (teststatus.nes."1")
888 $! Okay, failed. Must not have it
889 $ perl_i_socks = "undef"
891 $ perl_i_socks = "define"
893 $ WRITE_RESULT "i_socks is ''perl_i_socks'"
895 $! Check the prototype for select
897 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
901 $ WS "#include <stdlib.h>
903 $ WS "#include <stdio.h>
904 $ WS "#include <types.h>
905 $ WS "#include <unistd.h>
908 $ WS "#include <socketshr.h>"
910 $ WS "#include <time.h>
911 $ WS "#include <socket.h>
918 $ WS "bar = select(2, foo, foo, foo, NULL);
922 $ DEFINE SYS$ERROR _NLA0:
923 $ DEFINE SYS$OUTPUT _NLA0:
924 $ on error then continue
925 $ on warning then continue
927 $ teststatus = f$extract(9,1,$status)
928 $ DEASSIGN SYS$OUTPUT
930 $ if (teststatus.nes."1")
932 $! Okay, fd_set failed. Must be an int
933 $ perl_selecttype = "int *"
935 $ perl_selecttype="fd_set *"
938 $ ! No sockets, so stick in an int *
939 $ perl_selecttype = "int *"
941 $ WRITE_RESULT "selectype is ''perl_selecttype'"
943 $! Check to see if fd_set exists
947 $ WS "#include <stdlib.h>
949 $ WS "#include <stdio.h>
950 $ WS "#include <types.h>
951 $ WS "#include <unistd.h>
954 $ WS "#include <socketshr.h>"
956 $ IF Has_Dec_C_Sockets
958 $ WS "#include <time.h>
959 $ WS "#include <socket.h>
968 $ DEFINE SYS$ERROR _NLA0:
969 $ DEFINE SYS$OUTPUT _NLA0:
970 $ on error then continue
971 $ on warning then continue
973 $ teststatus = f$extract(9,1,$status)
974 $ DEASSIGN SYS$OUTPUT
976 $ if (teststatus.nes."1")
978 $! Okay, fd_set failed. Must not exist
979 $ perl_d_fd_set = "undef"
981 $ perl_d_fd_set="define"
983 $ WRITE_RESULT "d_fd_set is ''perl_d_fd_set'"
985 $! Check for inttypes.h
989 $ WS "#include <stdlib.h>
991 $ WS "#include <stdio.h>
992 $ WS "#include <unistd.h>
993 $ WS "#include <inttypes.h>
999 $ DEFINE SYS$ERROR _NLA0:
1000 $ DEFINE SYS$OUTPUT _NLA0:
1001 $ on error then continue
1002 $ on warning then continue
1004 $ savedstatus = $status
1005 $ teststatus = f$extract(9,1,savedstatus)
1006 $ if (teststatus.nes."1")
1008 $ perl_i_inttypes="undef"
1009 $ DEASSIGN SYS$OUTPUT
1010 $ DEASSIGN SYS$ERROR
1014 $ link temp.obj,temp.opt/opt
1018 $ savedstatus = $status
1019 $ teststatus = f$extract(9,1,savedstatus)
1020 $ DEASSIGN SYS$OUTPUT
1021 $ DEASSIGN SYS$ERROR
1022 $ if (teststatus.nes."1")
1024 $ perl_i_inttypes="undef"
1026 $ perl_i_inttypes="define"
1029 $ WRITE_RESULT "i_inttypes is ''perl_i_inttypes'"
1031 $! Check for h_errno
1035 $ WS "#include <stdlib.h>
1037 $ WS "#include <stdio.h>
1038 $ WS "#include <unistd.h>
1039 $ WS "#include <netdb.h>
1046 $ DEFINE SYS$ERROR _NLA0:
1047 $ DEFINE SYS$OUTPUT _NLA0:
1048 $ on error then continue
1049 $ on warning then continue
1051 $ savedstatus = $status
1052 $ teststatus = f$extract(9,1,savedstatus)
1053 $ if (teststatus.nes."1")
1055 $ perl_d_herrno="undef"
1056 $ DEASSIGN SYS$OUTPUT
1057 $ DEASSIGN SYS$ERROR
1061 $ link temp.obj,temp.opt/opt
1065 $ savedstatus = $status
1066 $ teststatus = f$extract(9,1,savedstatus)
1067 $ DEASSIGN SYS$OUTPUT
1068 $ DEASSIGN SYS$ERROR
1069 $ if (teststatus.nes."1")
1071 $ perl_d_herrno="undef"
1073 $ perl_d_herrno="define"
1076 $ WRITE_RESULT "d_herrno is ''perl_d_herrno'"
1078 $! Check to see if int64_t exists
1082 $ WS "#include <stdlib.h>
1084 $ WS "#include <stdio.h>
1085 $ WS "#include <types.h>
1086 $ WS "#''perl_i_inttypes IIH
1088 $ WS "#include <inttypes.h>
1090 $ WS "#include <unistd.h>
1097 $ DEFINE SYS$ERROR _NLA0:
1098 $ DEFINE SYS$OUTPUT _NLA0:
1099 $ on error then continue
1100 $ on warning then continue
1102 $ teststatus = f$extract(9,1,$status)
1103 $ DEASSIGN SYS$OUTPUT
1104 $ DEASSIGN SYS$ERROR
1105 $ if (teststatus.nes."1")
1107 $! Okay, int64_t failed. Must not exist
1108 $ perl_d_int64_t = "undef"
1110 $ perl_d_int64_t="define"
1112 $ WRITE_RESULT "d_int64_t is ''perl_d_int64_t'"
1114 $! Check to see if off64_t exists
1118 $ WS "#include <stdlib.h>
1120 $ WS "#include <stdio.h>
1121 $ WS "#include <types.h>
1122 $ WS "#''perl_i_inttypes IIH
1124 $ WS "#include <inttypes.h>
1126 $ WS "#include <unistd.h>
1133 $ DEFINE SYS$ERROR _NLA0:
1134 $ DEFINE SYS$OUTPUT _NLA0:
1135 $ on error then continue
1136 $ on warning then continue
1138 $ teststatus = f$extract(9,1,$status)
1139 $ DEASSIGN SYS$OUTPUT
1140 $ DEASSIGN SYS$ERROR
1141 $ if (teststatus.nes."1")
1143 $! Okay, off64_t failed. Must not exist
1144 $ perl_d_off64_t = "undef"
1146 $ perl_d_off64_t="define"
1148 $ WRITE_RESULT "d_off64_t is ''perl_d_off64_t'"
1150 $! Check to see if fpos64_t exists
1154 $ WS "#include <stdlib.h>
1156 $ WS "#include <stdio.h>
1157 $ WS "#include <types.h>
1158 $ WS "#''perl_i_inttypes IIH
1160 $ WS "#include <inttypes.h>
1162 $ WS "#include <unistd.h>
1169 $ DEFINE SYS$ERROR _NLA0:
1170 $ DEFINE SYS$OUTPUT _NLA0:
1171 $ on error then continue
1172 $ on warning then continue
1174 $ teststatus = f$extract(9,1,$status)
1175 $ DEASSIGN SYS$OUTPUT
1176 $ DEASSIGN SYS$ERROR
1177 $ if (teststatus.nes."1")
1179 $! Okay, fpos64_t failed. Must not exist
1180 $ perl_d_fpos64_t = "undef"
1182 $ perl_d_fpos64_t="define"
1184 $ WRITE_RESULT "d_fpos64_t is ''perl_d_fpos64_t'"
1186 $! Check to see if gethostname exists
1188 $ IF (Has_Dec_C_Sockets .OR. Has_Socketshr)
1192 $ WS "#include <stdlib.h>
1194 $ WS "#include <stdio.h>
1195 $ WS "#include <types.h>
1196 $ WS "#include <unistd.h>
1199 $ WS "#include <socketshr.h>"
1201 $ WS "#include <time.h>
1202 $ WS "#include <socket.h>
1206 $ WS "char name[100];
1209 $ WS "baz = gethostname(name, bar);
1213 $ DEFINE SYS$ERROR _NLA0:
1214 $ DEFINE SYS$OUTPUT _NLA0:
1215 $ on error then continue
1216 $ on warning then continue
1218 $ teststatus = f$extract(9,1,$status)
1219 $ DEASSIGN SYS$OUTPUT
1220 $ DEASSIGN SYS$ERROR
1221 $ if (teststatus.nes."1")
1223 $! Okay, compile failed. Must not have it
1224 $ perl_d_gethname = "undef"
1228 $ link temp.obj,temp.opt/opt
1232 $ savedstatus = $status
1233 $ teststatus = f$extract(9,1,savedstatus)
1234 $ if (teststatus.nes."1")
1236 $ perl_d_gethname="undef"
1238 $ perl_d_gethname="define"
1242 $ ! No sockets, so no gethname
1243 $ perl_d_gethname = "undef"
1245 $ WRITE_RESULT "d_gethname is ''perl_d_gethname'"
1247 $! Check for sys/file.h
1251 $ WS "#include <stdlib.h>
1253 $ WS "#include <stdio.h>
1254 $ WS "#include <unistd.h>
1255 $ WS "#include <sys/file.h>
1261 $ DEFINE SYS$ERROR _NLA0:
1262 $ DEFINE SYS$OUTPUT _NLA0:
1263 $ on error then continue
1264 $ on warning then continue
1266 $ savedstatus = $status
1267 $ teststatus = f$extract(9,1,savedstatus)
1268 $ if (teststatus.nes."1")
1270 $ perl_i_sysfile="undef"
1271 $ DEASSIGN SYS$OUTPUT
1272 $ DEASSIGN SYS$ERROR
1276 $ link temp.obj,temp.opt/opt
1280 $ savedstatus = $status
1281 $ teststatus = f$extract(9,1,savedstatus)
1282 $ DEASSIGN SYS$OUTPUT
1283 $ DEASSIGN SYS$ERROR
1284 $ if (teststatus.nes."1")
1286 $ perl_i_sysfile="undef"
1288 $ perl_i_sysfile="define"
1291 $ WRITE_RESULT "i_sysfile is ''perl_i_sysfile'"
1293 $! Check for sys/utsname.h
1297 $ WS "#include <stdlib.h>
1299 $ WS "#include <stdio.h>
1300 $ WS "#include <unistd.h>
1301 $ WS "#include <sys/utsname.h>
1307 $ DEFINE SYS$ERROR _NLA0:
1308 $ DEFINE SYS$OUTPUT _NLA0:
1309 $ on error then continue
1310 $ on warning then continue
1312 $ savedstatus = $status
1313 $ teststatus = f$extract(9,1,savedstatus)
1314 $ if (teststatus.nes."1")
1316 $ perl_i_sysutsname="undef"
1317 $ DEASSIGN SYS$OUTPUT
1318 $ DEASSIGN SYS$ERROR
1322 $ link temp.obj,temp.opt/opt
1326 $ savedstatus = $status
1327 $ teststatus = f$extract(9,1,savedstatus)
1328 $ DEASSIGN SYS$OUTPUT
1329 $ DEASSIGN SYS$ERROR
1330 $ if (teststatus.nes."1")
1332 $ perl_i_sysutsname="undef"
1334 $ perl_i_sysutsname="define"
1337 $ WRITE_RESULT "i_sysutsname is ''perl_i_sysutsname'"
1339 $! Check for syslog.h
1343 $ WS "#include <stdlib.h>
1345 $ WS "#include <stdio.h>
1346 $ WS "#include <unistd.h>
1347 $ WS "#include <syslog.h>
1353 $ DEFINE SYS$ERROR _NLA0:
1354 $ DEFINE SYS$OUTPUT _NLA0:
1355 $ on error then continue
1356 $ on warning then continue
1358 $ savedstatus = $status
1359 $ teststatus = f$extract(9,1,savedstatus)
1360 $ if (teststatus.nes."1")
1362 $ perl_i_syslog="undef"
1363 $ DEASSIGN SYS$OUTPUT
1364 $ DEASSIGN SYS$ERROR
1368 $ link temp.obj,temp.opt/opt
1372 $ savedstatus = $status
1373 $ teststatus = f$extract(9,1,savedstatus)
1374 $ DEASSIGN SYS$OUTPUT
1375 $ DEASSIGN SYS$ERROR
1376 $ if (teststatus.nes."1")
1378 $ perl_i_syslog="undef"
1380 $ perl_i_syslog="define"
1383 $ WRITE_RESULT "i_syslog is ''perl_i_syslog'"
1389 $ WS "#include <stdlib.h>
1391 $ WS "#include <stdio.h>
1392 $ WS "#include <unistd.h>
1393 $ WS "#include <poll.h>
1399 $ DEFINE SYS$ERROR _NLA0:
1400 $ DEFINE SYS$OUTPUT _NLA0:
1401 $ on error then continue
1402 $ on warning then continue
1404 $ savedstatus = $status
1405 $ teststatus = f$extract(9,1,savedstatus)
1406 $ if (teststatus.nes."1")
1408 $ perl_i_poll="undef"
1409 $ DEASSIGN SYS$OUTPUT
1410 $ DEASSIGN SYS$ERROR
1414 $ link temp.obj,temp.opt/opt
1418 $ savedstatus = $status
1419 $ teststatus = f$extract(9,1,savedstatus)
1420 $ DEASSIGN SYS$OUTPUT
1421 $ DEASSIGN SYS$ERROR
1422 $ if (teststatus.nes."1")
1424 $ perl_i_poll="undef"
1426 $ perl_i_poll="define"
1429 $ WRITE_RESULT "i_poll is ''perl_i_poll'"
1431 $! Check for sys/uio.h
1435 $ WS "#include <stdlib.h>
1437 $ WS "#include <stdio.h>
1438 $ WS "#include <unistd.h>
1439 $ WS "#include <sys/uio.h>
1445 $ DEFINE SYS$ERROR _NLA0:
1446 $ DEFINE SYS$OUTPUT _NLA0:
1447 $ on error then continue
1448 $ on warning then continue
1450 $ savedstatus = $status
1451 $ teststatus = f$extract(9,1,savedstatus)
1452 $ if (teststatus.nes."1")
1454 $ perl_i_sysuio="undef"
1455 $ DEASSIGN SYS$OUTPUT
1456 $ DEASSIGN SYS$ERROR
1460 $ link temp.obj,temp.opt/opt
1464 $ savedstatus = $status
1465 $ teststatus = f$extract(9,1,savedstatus)
1466 $ DEASSIGN SYS$OUTPUT
1467 $ DEASSIGN SYS$ERROR
1468 $ if (teststatus.nes."1")
1470 $ perl_i_sysuio="undef"
1472 $ perl_i_sysuio="define"
1475 $ WRITE_RESULT "i_sysuio is ''perl_i_sysuio'"
1477 $! Check for sys/mode.h
1481 $ WS "#include <stdlib.h>
1483 $ WS "#include <stdio.h>
1484 $ WS "#include <unistd.h>
1485 $ WS "#include <sys/mode.h>
1491 $ DEFINE SYS$ERROR _NLA0:
1492 $ DEFINE SYS$OUTPUT _NLA0:
1493 $ on error then continue
1494 $ on warning then continue
1496 $ savedstatus = $status
1497 $ teststatus = f$extract(9,1,savedstatus)
1498 $ if (teststatus.nes."1")
1500 $ perl_i_sysmode="undef"
1501 $ DEASSIGN SYS$OUTPUT
1502 $ DEASSIGN SYS$ERROR
1504 $ If (Needs_Opt.eqs."Yes")
1506 $ link temp.obj,temp.opt/opt
1510 $ savedstatus = $status
1511 $ teststatus = f$extract(9,1,savedstatus)
1512 $ DEASSIGN SYS$OUTPUT
1513 $ DEASSIGN SYS$ERROR
1514 $ if (teststatus.nes."1")
1516 $ perl_i_sysmode="undef"
1518 $ perl_i_sysmode="define"
1521 $ WRITE_RESULT "i_sysmode is ''perl_i_sysmode'"
1523 $! Check for sys/access.h
1527 $ WS "#include <stdlib.h>
1529 $ WS "#include <stdio.h>
1530 $ WS "#include <unistd.h>
1531 $ WS "#include <sys/access.h>
1537 $ DEFINE SYS$ERROR _NLA0:
1538 $ DEFINE SYS$OUTPUT _NLA0:
1539 $ on error then continue
1540 $ on warning then continue
1542 $ savedstatus = $status
1543 $ teststatus = f$extract(9,1,savedstatus)
1544 $ if (teststatus.nes."1")
1546 $ perl_i_sysaccess="undef"
1547 $ DEASSIGN SYS$OUTPUT
1548 $ DEASSIGN SYS$ERROR
1550 $ If (Needs_Opt.eqs."Yes")
1552 $ link temp.obj,temp.opt/opt
1556 $ savedstatus = $status
1557 $ teststatus = f$extract(9,1,savedstatus)
1558 $ DEASSIGN SYS$OUTPUT
1559 $ DEASSIGN SYS$ERROR
1560 $ if (teststatus.nes."1")
1562 $ perl_i_sysaccess="undef"
1564 $ perl_i_sysaccess="define"
1567 $ WRITE_RESULT "i_sysaccess is ''perl_i_sysaccess'"
1569 $! Check for sys/security.h
1573 $ WS "#include <stdlib.h>
1575 $ WS "#include <stdio.h>
1576 $ WS "#include <unistd.h>
1577 $ WS "#include <sys/security.h>
1583 $ DEFINE SYS$ERROR _NLA0:
1584 $ DEFINE SYS$OUTPUT _NLA0:
1585 $ on error then continue
1586 $ on warning then continue
1588 $ savedstatus = $status
1589 $ teststatus = f$extract(9,1,savedstatus)
1590 $ if (teststatus.nes."1")
1592 $ perl_i_syssecrt="undef"
1593 $ DEASSIGN SYS$OUTPUT
1594 $ DEASSIGN SYS$ERROR
1596 $ If (Needs_Opt.eqs."Yes")
1598 $ link temp.obj,temp.opt/opt
1602 $ savedstatus = $status
1603 $ teststatus = f$extract(9,1,savedstatus)
1604 $ DEASSIGN SYS$OUTPUT
1605 $ DEASSIGN SYS$ERROR
1606 $ if (teststatus.nes."1")
1608 $ perl_i_syssecrt="undef"
1610 $ perl_i_syssecrt="define"
1613 $ WRITE_RESULT "i_syssecrt is ''perl_i_syssecrt'"
1615 $! Check for fcntl.h
1619 $ WS "#include <stdlib.h>
1621 $ WS "#include <stdio.h>
1622 $ WS "#include <unistd.h>
1623 $ WS "#include <fcntl.h>
1629 $ DEFINE SYS$ERROR _NLA0:
1630 $ DEFINE SYS$OUTPUT _NLA0:
1631 $ on error then continue
1632 $ on warning then continue
1634 $ savedstatus = $status
1635 $ teststatus = f$extract(9,1,savedstatus)
1636 $ if (teststatus.nes."1")
1638 $ perl_i_fcntl="undef"
1639 $ DEASSIGN SYS$OUTPUT
1640 $ DEASSIGN SYS$ERROR
1642 $ If (Needs_Opt.eqs."Yes")
1644 $ link temp.obj,temp.opt/opt
1648 $ savedstatus = $status
1649 $ teststatus = f$extract(9,1,savedstatus)
1650 $ DEASSIGN SYS$OUTPUT
1651 $ DEASSIGN SYS$ERROR
1652 $ if (teststatus.nes."1")
1654 $ perl_i_fcntl="undef"
1656 $ perl_i_fcntl="define"
1659 $ WRITE_RESULT "i_fcntl is ''perl_i_fcntl'"
1665 $ WS "#include <stdlib.h>
1667 $ WS "#include <stdio.h>
1668 $ WS "#include <unistd.h>
1669 $ WS "#include <fcntl.h>
1676 $ DEFINE SYS$ERROR _NLA0:
1677 $ DEFINE SYS$OUTPUT _NLA0:
1678 $ on error then continue
1679 $ on warning then continue
1681 $ savedstatus = $status
1682 $ teststatus = f$extract(9,1,savedstatus)
1683 $ if (teststatus.nes."1")
1685 $ perl_d_fcntl="undef"
1686 $ DEASSIGN SYS$OUTPUT
1687 $ DEASSIGN SYS$ERROR
1689 $ If (Needs_Opt.eqs."Yes")
1691 $ link temp.obj,temp.opt/opt
1695 $ savedstatus = $status
1696 $ teststatus = f$extract(9,1,savedstatus)
1697 $ DEASSIGN SYS$OUTPUT
1698 $ DEASSIGN SYS$ERROR
1699 $ if (teststatus.nes."1")
1701 $ perl_d_fcntl="undef"
1703 $ perl_d_fcntl="define"
1706 $ WRITE_RESULT "d_fcntl is ''perl_d_fcntl'"
1712 $ WS "#include <stdlib.h>
1714 $ WS "#include <string.h>
1718 $ WS "place = memchr(""foo"", 47, 3)
1722 $ DEFINE SYS$ERROR _NLA0:
1723 $ DEFINE SYS$OUTPUT _NLA0:
1724 $ on error then continue
1725 $ on warning then continue
1727 $ savedstatus = $status
1728 $ teststatus = f$extract(9,1,savedstatus)
1729 $ if (teststatus.nes."1")
1731 $ perl_d_memchr="undef"
1732 $ DEASSIGN SYS$OUTPUT
1733 $ DEASSIGN SYS$ERROR
1735 $ If (Needs_Opt.eqs."Yes")
1737 $ link temp.obj,temp.opt/opt
1741 $ savedstatus = $status
1742 $ teststatus = f$extract(9,1,savedstatus)
1743 $ DEASSIGN SYS$OUTPUT
1744 $ DEASSIGN SYS$ERROR
1745 $ if (teststatus.nes."1")
1747 $ perl_d_memchr="undef"
1749 $ perl_d_memchr="define"
1752 $ WRITE_RESULT "d_memchr is ''perl_d_memchr'"
1754 $! Check for strtoull
1758 $ WS "#include <stdlib.h>
1760 $ WS "#include <string.h>
1763 $ WS "unsigned __int64 result;
1764 $ WS "result = strtoull(""123123"", NULL, 10);
1768 $ DEFINE SYS$ERROR _NLA0:
1769 $ DEFINE SYS$OUTPUT _NLA0:
1770 $ on error then continue
1771 $ on warning then continue
1773 $ savedstatus = $status
1774 $ teststatus = f$extract(9,1,savedstatus)
1775 $ if (teststatus.nes."1")
1777 $ perl_d_strtoull="undef"
1778 $ DEASSIGN SYS$OUTPUT
1779 $ DEASSIGN SYS$ERROR
1781 $ If (Needs_Opt.eqs."Yes")
1783 $ link temp.obj,temp.opt/opt
1787 $ savedstatus = $status
1788 $ teststatus = f$extract(9,1,savedstatus)
1789 $ DEASSIGN SYS$OUTPUT
1790 $ DEASSIGN SYS$ERROR
1791 $ if (teststatus.nes."1")
1793 $ perl_d_strtoull="undef"
1795 $ perl_d_strtoull="define"
1798 $ WRITE_RESULT "d_strtoull is ''perl_d_strtoull'"
1800 $! Check for strtouq
1804 $ WS "#include <stdlib.h>
1806 $ WS "#include <string.h>
1809 $ WS "unsigned __int64 result;
1810 $ WS "result = strtouq(""123123"", NULL, 10);
1814 $ DEFINE SYS$ERROR _NLA0:
1815 $ DEFINE SYS$OUTPUT _NLA0:
1816 $ on error then continue
1817 $ on warning then continue
1819 $ savedstatus = $status
1820 $ teststatus = f$extract(9,1,savedstatus)
1821 $ if (teststatus.nes."1")
1823 $ perl_d_strtouq="undef"
1824 $ DEASSIGN SYS$OUTPUT
1825 $ DEASSIGN SYS$ERROR
1827 $ If (Needs_Opt.eqs."Yes")
1829 $ link temp.obj,temp.opt/opt
1833 $ savedstatus = $status
1834 $ teststatus = f$extract(9,1,savedstatus)
1835 $ DEASSIGN SYS$OUTPUT
1836 $ DEASSIGN SYS$ERROR
1837 $ if (teststatus.nes."1")
1839 $ perl_d_strtouq="undef"
1841 $ perl_d_strtouq="define"
1844 $ WRITE_RESULT "d_strtouq is ''perl_d_strtouq'"
1846 $! Check for strtoll
1850 $ WS "#include <stdlib.h>
1852 $ WS "#include <string.h>
1855 $ WS "__int64 result;
1856 $ WS "result = strtoll(""123123"", NULL, 10);
1860 $ DEFINE SYS$ERROR _NLA0:
1861 $ DEFINE SYS$OUTPUT _NLA0:
1862 $ on error then continue
1863 $ on warning then continue
1865 $ savedstatus = $status
1866 $ teststatus = f$extract(9,1,savedstatus)
1867 $ if (teststatus.nes."1")
1869 $ perl_d_strtoll="undef"
1870 $ DEASSIGN SYS$OUTPUT
1871 $ DEASSIGN SYS$ERROR
1873 $ If (Needs_Opt.eqs."Yes")
1875 $ link temp.obj,temp.opt/opt
1879 $ savedstatus = $status
1880 $ teststatus = f$extract(9,1,savedstatus)
1881 $ DEASSIGN SYS$OUTPUT
1882 $ DEASSIGN SYS$ERROR
1883 $ if (teststatus.nes."1")
1885 $ perl_d_strtoll="undef"
1887 $ perl_d_strtoll="define"
1890 $ WRITE_RESULT "d_strtoll is ''perl_d_strtoll'"
1892 $! Check for strtold
1896 $ WS "#include <stdlib.h>
1898 $ WS "#include <string.h>
1901 $ WS "long double result;
1902 $ WS "result = strtold(""123123"", NULL, 10);
1906 $ DEFINE SYS$ERROR _NLA0:
1907 $ DEFINE SYS$OUTPUT _NLA0:
1908 $ on error then continue
1909 $ on warning then continue
1911 $ savedstatus = $status
1912 $ teststatus = f$extract(9,1,savedstatus)
1913 $ if (teststatus.nes."1")
1915 $ perl_d_strtold="undef"
1916 $ DEASSIGN SYS$OUTPUT
1917 $ DEASSIGN SYS$ERROR
1919 $ If (Needs_Opt.eqs."Yes")
1921 $ link temp.obj,temp.opt/opt
1925 $ savedstatus = $status
1926 $ teststatus = f$extract(9,1,savedstatus)
1927 $ DEASSIGN SYS$OUTPUT
1928 $ DEASSIGN SYS$ERROR
1929 $ if (teststatus.nes."1")
1931 $ perl_d_strtold="undef"
1933 $ perl_d_strtold="define"
1936 $ WRITE_RESULT "d_strtold is ''perl_d_strtold'"
1942 $ WS "#include <stdlib.h>
1944 $ WS "#include <string.h>
1947 $ WS " __int64 result;
1948 $ WS "result = atoll(""123123"");
1952 $ DEFINE SYS$ERROR _NLA0:
1953 $ DEFINE SYS$OUTPUT _NLA0:
1954 $ on error then continue
1955 $ on warning then continue
1957 $ savedstatus = $status
1958 $ teststatus = f$extract(9,1,savedstatus)
1959 $ if (teststatus.nes."1")
1961 $ perl_d_atoll="undef"
1962 $ DEASSIGN SYS$OUTPUT
1963 $ DEASSIGN SYS$ERROR
1965 $ If (Needs_Opt.eqs."Yes")
1967 $ link temp.obj,temp.opt/opt
1971 $ savedstatus = $status
1972 $ teststatus = f$extract(9,1,savedstatus)
1973 $ DEASSIGN SYS$OUTPUT
1974 $ DEASSIGN SYS$ERROR
1975 $ if (teststatus.nes."1")
1977 $ perl_d_atoll="undef"
1979 $ perl_d_atoll="define"
1982 $ WRITE_RESULT "d_atoll is ''perl_d_atoll'"
1988 $ WS "#include <stdlib.h>
1990 $ WS "#include <string.h>
1994 $ WS "result = atolf(""123123"");
1998 $ DEFINE SYS$ERROR _NLA0:
1999 $ DEFINE SYS$OUTPUT _NLA0:
2000 $ on error then continue
2001 $ on warning then continue
2003 $ savedstatus = $status
2004 $ teststatus = f$extract(9,1,savedstatus)
2005 $ if (teststatus.nes."1")
2007 $ perl_d_atolf="undef"
2008 $ DEASSIGN SYS$OUTPUT
2009 $ DEASSIGN SYS$ERROR
2011 $ If (Needs_Opt.eqs."Yes")
2013 $ link temp.obj,temp.opt/opt
2017 $ savedstatus = $status
2018 $ teststatus = f$extract(9,1,savedstatus)
2019 $ DEASSIGN SYS$OUTPUT
2020 $ DEASSIGN SYS$ERROR
2021 $ if (teststatus.nes."1")
2023 $ perl_d_atolf="undef"
2025 $ perl_d_atolf="define"
2028 $ WRITE_RESULT "d_atolf is ''perl_d_atolf'"
2034 $ WS "#include <stdlib.h>
2036 $ WS "#include <stdio.h>
2037 $ WS "#include <unistd.h>
2040 $ WS "access("foo", F_OK);
2044 $ DEFINE SYS$ERROR _NLA0:
2045 $ DEFINE SYS$OUTPUT _NLA0:
2046 $ on error then continue
2047 $ on warning then continue
2049 $ savedstatus = $status
2050 $ teststatus = f$extract(9,1,savedstatus)
2051 $ if (teststatus.nes."1")
2053 $ perl_d_access="undef"
2054 $ DEASSIGN SYS$OUTPUT
2055 $ DEASSIGN SYS$ERROR
2057 $ If (Needs_Opt.eqs."Yes")
2059 $ link temp.obj,temp.opt/opt
2063 $ savedstatus = $status
2064 $ teststatus = f$extract(9,1,savedstatus)
2065 $ DEASSIGN SYS$OUTPUT
2066 $ DEASSIGN SYS$ERROR
2067 $ if (teststatus.nes."1")
2069 $ perl_d_access="undef"
2071 $ perl_d_access="define"
2074 $ WRITE_RESULT "d_access is ''perl_d_access'"
2080 $ WS "#include <stdlib.h>
2082 $ WS "#include <stdio.h>
2083 $ WS "#include <strings.h>
2087 $ WS "bzero(foo, 10);
2091 $ DEFINE SYS$ERROR _NLA0:
2092 $ DEFINE SYS$OUTPUT _NLA0:
2093 $ on error then continue
2094 $ on warning then continue
2096 $ savedstatus = $status
2097 $ teststatus = f$extract(9,1,savedstatus)
2098 $ if (teststatus.nes."1")
2100 $ perl_d_bzero="undef"
2101 $ DEASSIGN SYS$OUTPUT
2102 $ DEASSIGN SYS$ERROR
2104 $ If (Needs_Opt.eqs."Yes")
2106 $ link temp.obj,temp.opt/opt
2110 $ savedstatus = $status
2111 $ teststatus = f$extract(9,1,savedstatus)
2112 $ DEASSIGN SYS$OUTPUT
2113 $ DEASSIGN SYS$ERROR
2114 $ if (teststatus.nes."1")
2116 $ perl_d_bzero="undef"
2118 $ perl_d_bzero="define"
2121 $ WRITE_RESULT "d_bzero is ''perl_d_bzero'"
2127 $ WS "#include <stdlib.h>
2129 $ WS "#include <stdio.h>
2130 $ WS "#include <strings.h>
2133 $ WS "char foo[10], bar[10];
2134 $ WS "bcopy(""foo"", bar, 3);
2138 $ DEFINE SYS$ERROR _NLA0:
2139 $ DEFINE SYS$OUTPUT _NLA0:
2140 $ on error then continue
2141 $ on warning then continue
2143 $ savedstatus = $status
2144 $ teststatus = f$extract(9,1,savedstatus)
2145 $ if (teststatus.nes."1")
2147 $ perl_d_bcopy="undef"
2148 $ DEASSIGN SYS$OUTPUT
2149 $ DEASSIGN SYS$ERROR
2151 $ If (Needs_Opt.eqs."Yes")
2153 $ link temp.obj,temp.opt/opt
2157 $ savedstatus = $status
2158 $ teststatus = f$extract(9,1,savedstatus)
2159 $ DEASSIGN SYS$OUTPUT
2160 $ DEASSIGN SYS$ERROR
2161 $ if (teststatus.nes."1")
2163 $ perl_d_bcopy="undef"
2165 $ perl_d_bcopy="define"
2168 $ WRITE_RESULT "d_bcopy is ''perl_d_bcopy'"
2170 $! Check for mkstemp
2174 $ WS "#include <stdlib.h>
2176 $ WS "#include <stdio.h>
2179 $ WS "mkstemp(""foo"");
2183 $ DEFINE SYS$ERROR _NLA0:
2184 $ DEFINE SYS$OUTPUT _NLA0:
2185 $ on error then continue
2186 $ on warning then continue
2188 $ If (Needs_Opt.eqs."Yes")
2190 $ link temp.obj,temp.opt/opt
2194 $ savedstatus = $status
2195 $ teststatus = f$extract(9,1,savedstatus)
2196 $ DEASSIGN SYS$OUTPUT
2197 $ DEASSIGN SYS$ERROR
2198 $ if (teststatus.nes."1")
2200 $ perl_d_mkstemp="undef"
2202 $ perl_d_mkstemp="define"
2204 $ WRITE_RESULT "d_mkstemp is ''perl_d_mkstemp'"
2206 $! Check for mkstemps
2210 $ WS "#include <stdlib.h>
2212 $ WS "#include <stdio.h>
2215 $ WS "mkstemps(""foo"", 1);
2219 $ DEFINE SYS$ERROR _NLA0:
2220 $ DEFINE SYS$OUTPUT _NLA0:
2221 $ on error then continue
2222 $ on warning then continue
2224 $ If (Needs_Opt.eqs."Yes")
2226 $ link temp.obj,temp.opt/opt
2230 $ savedstatus = $status
2231 $ teststatus = f$extract(9,1,savedstatus)
2232 $ DEASSIGN SYS$OUTPUT
2233 $ DEASSIGN SYS$ERROR
2234 $ if (teststatus.nes."1")
2236 $ perl_d_mkstemps="undef"
2238 $ perl_d_mkstemps="define"
2240 $ WRITE_RESULT "d_mkstemps is ''perl_d_mkstemps'"
2246 $ WS "#include <stdlib.h>
2248 $ WS "#include <stdio.h>
2249 $ WS "#include <iconv.h>
2252 $ WS " iconv_t cd = (iconv_t)0;"
2253 $ WS " char *inbuf, *outbuf;"
2254 $ WS " size_t inleft, outleft;"
2255 $ WS " iconv(cd, &inbuf, &inleft, &outbuf, &outleft);"
2259 $ DEFINE SYS$ERROR _NLA0:
2260 $ DEFINE SYS$OUTPUT _NLA0:
2261 $ on error then continue
2262 $ on warning then continue
2264 $ savedstatus = $status
2265 $ teststatus = f$extract(9,1,savedstatus)
2266 $ if (teststatus.nes."1")
2268 $ perl_d_iconv="undef"
2269 $ perl_i_iconv="undef"
2270 $ DEASSIGN SYS$OUTPUT
2271 $ DEASSIGN SYS$ERROR
2273 $ If (Needs_Opt.eqs."Yes")
2275 $ link temp.obj,temp.opt/opt
2279 $ savedstatus = $status
2280 $ teststatus = f$extract(9,1,savedstatus)
2281 $ DEASSIGN SYS$OUTPUT
2282 $ DEASSIGN SYS$ERROR
2283 $ if (teststatus.nes."1")
2285 $ perl_d_iconv="undef"
2286 $ perl_i_iconv="undef"
2288 $ perl_d_iconv="define"
2289 $ perl_i_iconv="define"
2292 $ WRITE_RESULT "d_iconv is ''perl_d_iconv'"
2293 $ WRITE_RESULT "i_iconv is ''perl_i_iconv'"
2295 $! Check for mkdtemp
2299 $ WS "#include <stdlib.h>
2301 $ WS "#include <stdio.h>
2304 $ WS "mkdtemp(""foo"");
2308 $ DEFINE SYS$ERROR _NLA0:
2309 $ DEFINE SYS$OUTPUT _NLA0:
2310 $ on error then continue
2311 $ on warning then continue
2313 $ If (Needs_Opt.eqs."Yes")
2315 $ link temp.obj,temp.opt/opt
2319 $ savedstatus = $status
2320 $ teststatus = f$extract(9,1,savedstatus)
2321 $ DEASSIGN SYS$OUTPUT
2322 $ DEASSIGN SYS$ERROR
2323 $ if (teststatus.nes."1")
2325 $ perl_d_mkdtemp="undef"
2327 $ perl_d_mkdtemp="define"
2329 $ WRITE_RESULT "d_mkdtemp is ''perl_d_mkdtemp'"
2331 $! Check for setvbuf
2335 $ WS "#include <stdlib.h>
2337 $ WS "#include <stdio.h>
2341 $ WS "char Buffer[99];
2342 $ WS "foo = fopen(""foo"", ""r"");
2343 $ WS "setvbuf(foo, Buffer, 0, 0);
2347 $ DEFINE SYS$ERROR _NLA0:
2348 $ DEFINE SYS$OUTPUT _NLA0:
2349 $ on error then continue
2350 $ on warning then continue
2352 $ If (Needs_Opt.eqs."Yes")
2354 $ link temp.obj,temp.opt/opt
2358 $ teststatus = f$extract(9,1,$status)
2359 $ DEASSIGN SYS$OUTPUT
2360 $ DEASSIGN SYS$ERROR
2361 $ if (teststatus.nes."1")
2363 $ perl_d_setvbuf="undef"
2365 $ perl_d_setvbuf="define"
2367 $ WRITE_RESULT "d_setvbuf is ''perl_d_setvbuf'"
2373 $ WS "#include <stdlib.h>
2375 $ WS "#include <stdio.h>
2378 $ WS "setenv(""FOO"", ""BAR"", 0);
2382 $ DEFINE SYS$ERROR _NLA0:
2383 $ DEFINE SYS$OUTPUT _NLA0:
2384 $ on error then continue
2385 $ on warning then continue
2387 $ If (Needs_Opt.eqs."Yes")
2389 $ link temp,temp/opt
2393 $ teststatus = f$extract(9,1,$status)
2394 $ DEASSIGN SYS$OUTPUT
2395 $ DEASSIGN SYS$ERROR
2396 $ if (teststatus.nes."1")
2398 $ perl_d_setenv="undef"
2400 $ perl_d_setenv="define"
2402 $ WRITE_RESULT "d_setenv is ''perl_d_setenv'"
2404 $! Check for <netinet/in.h>
2406 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2410 $ WS "#include <stdlib.h>
2412 $ WS "#include <stdio.h>
2413 $ if ("''Has_Socketshr'".eqs."T")
2415 $ WS "#include <socketshr.h>"
2417 $ WS "#include <netdb.h>
2419 $ WS "#include <netinet/in.h>"
2425 $ DEFINE SYS$ERROR _NLA0:
2426 $ DEFINE SYS$OUTPUT _NLA0:
2427 $ on error then continue
2428 $ on warning then continue
2430 $ If (Needs_Opt.eqs."Yes")
2432 $ link temp.obj,temp.opt/opt
2436 $ teststatus = f$extract(9,1,$status)
2437 $ DEASSIGN SYS$OUTPUT
2438 $ DEASSIGN SYS$ERROR
2439 $ if (teststatus.nes."1")
2441 $ perl_i_niin="undef"
2443 $ perl_i_niin="define"
2446 $ perl_i_niin="undef"
2448 $ WRITE_RESULT "i_niin is ''perl_i_niin'"
2450 $! Check for <netinet/tcp.h>
2452 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2456 $ WS "#include <stdlib.h>
2458 $ WS "#include <stdio.h>
2459 $ if ("''Has_Socketshr'".eqs."T")
2461 $ WS "#include <socketshr.h>"
2463 $ WS "#include <netdb.h>
2465 $ WS "#include <netinet/tcp.h>"
2471 $ DEFINE SYS$ERROR _NLA0:
2472 $ DEFINE SYS$OUTPUT _NLA0:
2473 $ on error then continue
2474 $ on warning then continue
2476 $ If (Needs_Opt.eqs."Yes")
2478 $ link temp.obj,temp.opt/opt
2482 $ teststatus = f$extract(9,1,$status)
2483 $ DEASSIGN SYS$OUTPUT
2484 $ DEASSIGN SYS$ERROR
2485 $ if (teststatus.nes."1")
2487 $ perl_i_netinettcp="undef"
2489 $ perl_i_netinettcp="define"
2492 $ perl_i_netinettcp="undef"
2494 $ WRITE_RESULT "i_netinettcp is ''perl_i_netinettcp'"
2496 $! Check for endhostent
2498 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2502 $ WS "#include <stdlib.h>
2504 $ WS "#include <stdio.h>
2505 $ if ("''Has_Socketshr'".eqs."T")
2507 $ WS "#include <socketshr.h>"
2509 $ WS "#include <netdb.h>
2517 $ DEFINE SYS$ERROR _NLA0:
2518 $ DEFINE SYS$OUTPUT _NLA0:
2519 $ on error then continue
2520 $ on warning then continue
2522 $ If (Needs_Opt.eqs."Yes")
2524 $ link temp.obj,temp.opt/opt
2528 $ teststatus = f$extract(9,1,$status)
2529 $ DEASSIGN SYS$OUTPUT
2530 $ DEASSIGN SYS$ERROR
2531 $ if (teststatus.nes."1")
2533 $ perl_d_endhent="undef"
2535 $ perl_d_endhent="define"
2538 $ perl_d_endhent="undef"
2540 $ WRITE_RESULT "d_endhent is ''perl_d_endhent'"
2542 $! Check for endnetent
2544 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2548 $ WS "#include <stdlib.h>
2550 $ WS "#include <stdio.h>
2551 $ if ("''Has_Socketshr'".eqs."T")
2553 $ WS "#include <socketshr.h>"
2555 $ WS "#include <netdb.h>
2563 $ DEFINE SYS$ERROR _NLA0:
2564 $ DEFINE SYS$OUTPUT _NLA0:
2565 $ on error then continue
2566 $ on warning then continue
2568 $ If (Needs_Opt.eqs."Yes")
2570 $ link temp.obj,temp.opt/opt
2574 $ teststatus = f$extract(9,1,$status)
2575 $ DEASSIGN SYS$OUTPUT
2576 $ DEASSIGN SYS$ERROR
2577 $ if (teststatus.nes."1")
2579 $ perl_d_endnent="undef"
2581 $ perl_d_endnent="define"
2584 $ perl_d_endnent="undef"
2586 $ WRITE_RESULT "d_endnent is ''perl_d_endnent'"
2588 $! Check for endprotoent
2590 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2594 $ WS "#include <stdlib.h>
2596 $ WS "#include <stdio.h>
2597 $ if ("''Has_Socketshr'".eqs."T")
2599 $ WS "#include <socketshr.h>"
2601 $ WS "#include <netdb.h>
2605 $ WS "endprotoent();
2609 $ DEFINE SYS$ERROR _NLA0:
2610 $ DEFINE SYS$OUTPUT _NLA0:
2611 $ on error then continue
2612 $ on warning then continue
2614 $ If (Needs_Opt.eqs."Yes")
2616 $ link temp.obj,temp.opt/opt
2620 $ teststatus = f$extract(9,1,$status)
2621 $ DEASSIGN SYS$OUTPUT
2622 $ DEASSIGN SYS$ERROR
2623 $ if (teststatus.nes."1")
2625 $ perl_d_endpent="undef"
2627 $ perl_d_endpent="define"
2630 $ perl_d_endpent="undef"
2632 $ WRITE_RESULT "d_endpent is ''perl_d_endpent'"
2634 $! Check for endservent
2636 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2640 $ WS "#include <stdlib.h>
2642 $ WS "#include <stdio.h>
2643 $ if ("''Has_Socketshr'".eqs."T")
2645 $ WS "#include <socketshr.h>"
2647 $ WS "#include <netdb.h>
2655 $ DEFINE SYS$ERROR _NLA0:
2656 $ DEFINE SYS$OUTPUT _NLA0:
2657 $ on error then continue
2658 $ on warning then continue
2660 $ If (Needs_Opt.eqs."Yes")
2662 $ link temp.obj,temp.opt/opt
2666 $ teststatus = f$extract(9,1,$status)
2667 $ DEASSIGN SYS$OUTPUT
2668 $ DEASSIGN SYS$ERROR
2669 $ if (teststatus.nes."1")
2671 $ perl_d_endsent="undef"
2673 $ perl_d_endsent="define"
2676 $ perl_d_endsent="undef"
2678 $ WRITE_RESULT "d_endsent is ''perl_d_endsent'"
2680 $! Check for sethostent
2682 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2686 $ WS "#include <stdlib.h>
2688 $ WS "#include <stdio.h>
2689 $ if ("''Has_Socketshr'".eqs."T")
2691 $ WS "#include <socketshr.h>"
2693 $ WS "#include <netdb.h>
2697 $ WS "sethostent(1);
2701 $ DEFINE SYS$ERROR _NLA0:
2702 $ DEFINE SYS$OUTPUT _NLA0:
2703 $ on error then continue
2704 $ on warning then continue
2706 $ If (Needs_Opt.eqs."Yes")
2708 $ link temp.obj,temp.opt/opt
2712 $ teststatus = f$extract(9,1,$status)
2713 $ DEASSIGN SYS$OUTPUT
2714 $ DEASSIGN SYS$ERROR
2715 $ if (teststatus.nes."1")
2717 $ perl_d_sethent="undef"
2719 $ perl_d_sethent="define"
2722 $ perl_d_sethent="undef"
2724 $ WRITE_RESULT "d_sethent is ''perl_d_sethent'"
2726 $! Check for setnetent
2728 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2732 $ WS "#include <stdlib.h>
2734 $ WS "#include <stdio.h>
2735 $ if ("''Has_Socketshr'".eqs."T")
2737 $ WS "#include <socketshr.h>"
2739 $ WS "#include <netdb.h>
2747 $ DEFINE SYS$ERROR _NLA0:
2748 $ DEFINE SYS$OUTPUT _NLA0:
2749 $ on error then continue
2750 $ on warning then continue
2752 $ If (Needs_Opt.eqs."Yes")
2754 $ link temp.obj,temp.opt/opt
2758 $ teststatus = f$extract(9,1,$status)
2759 $ DEASSIGN SYS$OUTPUT
2760 $ DEASSIGN SYS$ERROR
2761 $ if (teststatus.nes."1")
2763 $ perl_d_setnent="undef"
2765 $ perl_d_setnent="define"
2768 $ perl_d_setnent="undef"
2770 $ WRITE_RESULT "d_setnent is ''perl_d_setnent'"
2772 $! Check for setprotoent
2774 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2778 $ WS "#include <stdlib.h>
2780 $ WS "#include <stdio.h>
2781 $ if ("''Has_Socketshr'".eqs."T")
2783 $ WS "#include <socketshr.h>"
2785 $ WS "#include <netdb.h>
2789 $ WS "setprotoent(1);
2793 $ DEFINE SYS$ERROR _NLA0:
2794 $ DEFINE SYS$OUTPUT _NLA0:
2795 $ on error then continue
2796 $ on warning then continue
2798 $ If (Needs_Opt.eqs."Yes")
2800 $ link temp.obj,temp.opt/opt
2804 $ teststatus = f$extract(9,1,$status)
2805 $ DEASSIGN SYS$OUTPUT
2806 $ DEASSIGN SYS$ERROR
2807 $ if (teststatus.nes."1")
2809 $ perl_d_setpent="undef"
2811 $ perl_d_setpent="define"
2814 $ perl_d_setpent="undef"
2816 $ WRITE_RESULT "d_setpent is ''perl_d_setpent'"
2818 $! Check for setservent
2820 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2824 $ WS "#include <stdlib.h>
2826 $ WS "#include <stdio.h>
2827 $ if ("''Has_Socketshr'".eqs."T")
2829 $ WS "#include <socketshr.h>"
2831 $ WS "#include <netdb.h>
2835 $ WS "setservent(1);
2839 $ DEFINE SYS$ERROR _NLA0:
2840 $ DEFINE SYS$OUTPUT _NLA0:
2841 $ on error then continue
2842 $ on warning then continue
2844 $ If (Needs_Opt.eqs."Yes")
2846 $ link temp.obj,temp.opt/opt
2850 $ teststatus = f$extract(9,1,$status)
2851 $ DEASSIGN SYS$OUTPUT
2852 $ DEASSIGN SYS$ERROR
2853 $ if (teststatus.nes."1")
2855 $ perl_d_setsent="undef"
2857 $ perl_d_setsent="define"
2860 $ perl_d_setsent="undef"
2862 $ WRITE_RESULT "d_setsent is ''perl_d_setsent'"
2864 $! Check for gethostent
2866 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2870 $ WS "#include <stdlib.h>
2872 $ WS "#include <stdio.h>
2873 $ if ("''Has_Socketshr'".eqs."T")
2875 $ WS "#include <socketshr.h>"
2877 $ WS "#include <netdb.h>
2885 $ DEFINE SYS$ERROR _NLA0:
2886 $ DEFINE SYS$OUTPUT _NLA0:
2887 $ on error then continue
2888 $ on warning then continue
2890 $ If (Needs_Opt.eqs."Yes")
2892 $ link temp.obj,temp.opt/opt
2896 $ teststatus = f$extract(9,1,$status)
2897 $ DEASSIGN SYS$OUTPUT
2898 $ DEASSIGN SYS$ERROR
2899 $ if (teststatus.nes."1")
2901 $ perl_d_gethent="undef"
2903 $ perl_d_gethent="define"
2906 $ perl_d_gethent="undef"
2908 $ WRITE_RESULT "d_gethent is ''perl_d_gethent'"
2910 $! Check for getnetent
2912 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2916 $ WS "#include <stdlib.h>
2918 $ WS "#include <stdio.h>
2919 $ if ("''Has_Socketshr'".eqs."T")
2921 $ WS "#include <socketshr.h>"
2923 $ WS "#include <netdb.h>
2931 $ DEFINE SYS$ERROR _NLA0:
2932 $ DEFINE SYS$OUTPUT _NLA0:
2933 $ on error then continue
2934 $ on warning then continue
2936 $ If (Needs_Opt.eqs."Yes")
2938 $ link temp.obj,temp.opt/opt
2942 $ teststatus = f$extract(9,1,$status)
2943 $ DEASSIGN SYS$OUTPUT
2944 $ DEASSIGN SYS$ERROR
2945 $ if (teststatus.nes."1")
2947 $ perl_d_getnent="undef"
2949 $ perl_d_getnent="define"
2952 $ perl_d_getnent="undef"
2954 $ WRITE_RESULT "d_getnent is ''perl_d_getnent'"
2956 $! Check for getprotoent
2958 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2962 $ WS "#include <stdlib.h>
2964 $ WS "#include <stdio.h>
2965 $ if ("''Has_Socketshr'".eqs."T")
2967 $ WS "#include <socketshr.h>"
2969 $ WS "#include <netdb.h>
2973 $ WS "getprotoent();
2977 $ DEFINE SYS$ERROR _NLA0:
2978 $ DEFINE SYS$OUTPUT _NLA0:
2979 $ on error then continue
2980 $ on warning then continue
2982 $ If (Needs_Opt.eqs."Yes")
2984 $ link temp.obj,temp.opt/opt
2988 $ teststatus = f$extract(9,1,$status)
2989 $ DEASSIGN SYS$OUTPUT
2990 $ DEASSIGN SYS$ERROR
2991 $ if (teststatus.nes."1")
2993 $ perl_d_getpent="undef"
2995 $ perl_d_getpent="define"
2998 $ perl_d_getpent="undef"
3000 $ WRITE_RESULT "d_getpent is ''perl_d_getpent'"
3002 $! Check for getservent
3004 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
3008 $ WS "#include <stdlib.h>
3010 $ WS "#include <stdio.h>
3011 $ if ("''Has_Socketshr'".eqs."T")
3013 $ WS "#include <socketshr.h>"
3015 $ WS "#include <netdb.h>
3023 $ DEFINE SYS$ERROR _NLA0:
3024 $ DEFINE SYS$OUTPUT _NLA0:
3025 $ on error then continue
3026 $ on warning then continue
3028 $ If (Needs_Opt.eqs."Yes")
3030 $ link temp.obj,temp.opt/opt
3034 $ teststatus = f$extract(9,1,$status)
3035 $ DEASSIGN SYS$OUTPUT
3036 $ DEASSIGN SYS$ERROR
3037 $ if (teststatus.nes."1")
3039 $ perl_d_getsent="undef"
3041 $ perl_d_getsent="define"
3044 $ perl_d_getsent="undef"
3046 $ WRITE_RESULT "d_getsent is ''perl_d_getsent'"
3048 $! Check for socklen_t
3050 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
3054 $ WS "#include <stdlib.h>
3056 $ WS "#include <stdio.h>
3057 $ IF ("''Has_Socketshr'".eqs."T")
3059 $ WS "#include <socketshr.h>"
3061 $ WS "#include <netdb.h>
3065 $ WS "socklen_t x = 16;
3069 $ DEFINE SYS$ERROR _NLA0:
3070 $ DEFINE SYS$OUTPUT _NLA0:
3071 $ on error then continue
3072 $ on warning then continue
3074 $ If (Needs_Opt.eqs."Yes")
3076 $ link temp.obj,temp.opt/opt
3080 $ teststatus = f$extract(9,1,$status)
3081 $ DEASSIGN SYS$OUTPUT
3082 $ DEASSIGN SYS$ERROR
3083 $ if (teststatus.nes."1")
3085 $ perl_d_socklen_t="undef"
3087 $ perl_d_socklen_t="define"
3090 $ perl_d_socklen_t="undef"
3092 $ WRITE_RESULT "d_socklen_t is ''perl_d_socklen_t'"
3094 $! Check for pthread_yield
3096 $ if ("''use_threads'".eqs."T")
3100 $ WS "#include <stdlib.h>
3102 $ WS "#include <pthread.h>
3103 $ WS "#include <stdio.h>
3106 $ WS "pthread_yield();
3110 $ DEFINE SYS$ERROR _NLA0:
3111 $ DEFINE SYS$OUTPUT _NLA0:
3112 $ on error then continue
3113 $ on warning then continue
3115 $ teststatus = f$extract(9,1,$status)
3116 $ DEASSIGN SYS$OUTPUT
3117 $ DEASSIGN SYS$ERROR
3118 $ if (teststatus.nes."1")
3120 $ perl_d_pthread_yield="undef"
3122 $ perl_d_pthread_yield="define"
3125 $ perl_d_pthread_yield="undef"
3127 $ WRITE_RESULT "d_pthread_yield is ''perl_d_pthread_yield'"
3129 $! Check for sched_yield
3131 $ if ("''use_threads'".eqs."T")
3135 $ WS "#include <stdlib.h>
3137 $ WS "#include <pthread.h>
3138 $ WS "#include <stdio.h>
3141 $ WS "sched_yield();
3145 $ DEFINE SYS$ERROR _NLA0:
3146 $ DEFINE SYS$OUTPUT _NLA0:
3147 $ on error then continue
3148 $ on warning then continue
3150 $ teststatus = f$extract(9,1,$status)
3151 $ DEASSIGN SYS$OUTPUT
3152 $ DEASSIGN SYS$ERROR
3153 $ if (teststatus.nes."1")
3155 $ perl_d_sched_yield="undef"
3156 $ perl_sched_yield = " "
3158 $ perl_d_sched_yield="define"
3159 $ perl_sched_yield = "sched_yield"
3162 $ perl_d_sched_yield="undef"
3163 $ perl_sched_yield = " "
3165 $ WRITE_RESULT "d_sched_yield is ''perl_d_sched_yield'"
3166 $ WRITE_RESULT "sched_yield is ''perl_sched_yield'"
3168 $! Check for generic pointer size
3172 $ WS "#include <stdlib.h>
3174 $ WS "#include <stdio.h>
3178 $ WS "foo = sizeof(char *);
3179 $ WS "printf(""%d\n"", foo);
3183 $ DEFINE SYS$ERROR _NLA0:
3184 $ DEFINE SYS$OUTPUT _NLA0:
3185 $ ON ERROR THEN CONTINUE
3186 $ ON WARNING THEN CONTINUE
3188 $ If (Needs_Opt.eqs."Yes")
3190 $ link temp.obj,temp.opt/opt
3194 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
3195 $ DEASSIGN SYS$OUTPUT
3196 $ DEASSIGN SYS$ERROR
3197 $ DEFINE SYS$ERROR TEMPOUT
3198 $ DEFINE SYS$OUTPUT TEMPOUT
3201 $ DEASSIGN SYS$OUTPUT
3202 $ DEASSIGN SYS$ERROR
3203 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
3206 $ DELETE/NOLOG [-.uu]tempout.lis;
3209 $ WRITE_RESULT "ptrsize is ''perl_ptrsize'"
3211 $! Check for size_t size
3215 $ WS "#include <stdlib.h>
3217 $ WS "#include <stdio.h>
3221 $ WS "foo = sizeof(size_t);
3222 $ WS "printf(""%d\n"", foo);
3226 $ DEFINE SYS$ERROR _NLA0:
3227 $ DEFINE SYS$OUTPUT _NLA0:
3228 $ ON ERROR THEN CONTINUE
3229 $ ON WARNING THEN CONTINUE
3233 $ link temp.obj,temp.opt/opt
3237 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
3238 $ DEASSIGN SYS$OUTPUT
3239 $ DEASSIGN SYS$ERROR
3240 $ DEFINE SYS$ERROR TEMPOUT
3241 $ DEFINE SYS$OUTPUT TEMPOUT
3244 $ DEASSIGN SYS$OUTPUT
3245 $ DEASSIGN SYS$ERROR
3246 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
3249 $ DELETE/NOLOG [-.uu]tempout.lis;
3251 $ perl_sizesize=line
3252 $ WRITE_RESULT "sizesize is ''perl_sizesize'"
3254 $! Check rand48 and its ilk
3258 $ WS "#include <stdlib.h>
3260 $ WS "#include <stdio.h>
3263 $ WS "srand48(12L);"
3268 $ DEFINE SYS$ERROR _NLA0:
3269 $ DEFINE SYS$OUTPUT _NLA0:
3270 $ ON ERROR THEN CONTINUE
3271 $ ON WARNING THEN CONTINUE
3273 $ If (Needs_Opt.eqs."Yes")
3275 $ link temp,temp.opt/opt
3279 $ teststatus = f$extract(9,1,$status)
3280 $ DEASSIGN SYS$OUTPUT
3281 $ DEASSIGN SYS$ERROR
3282 $ if (teststatus.nes."1")
3284 $ perl_drand01="random()"
3285 $ perl_randseedtype = "unsigned"
3286 $ perl_seedfunc = "srandom"
3290 $ WS "#include <stdlib.h>
3292 $ WS "#include <stdio.h>
3299 $! copy temp.c sys$output
3301 $ DEFINE SYS$ERROR _NLA0:
3302 $ DEFINE SYS$OUTPUT _NLA0:
3303 $ ON ERROR THEN CONTINUE
3304 $ ON WARNING THEN CONTINUE
3306 $ If (Needs_Opt.eqs."Yes")
3308 $ link temp,temp.opt/opt
3312 $ teststatus = f$extract(9,1,$status)
3313 $ DEASSIGN SYS$OUTPUT
3314 $ DEASSIGN SYS$ERROR
3315 $ if (teststatus.nes."1")
3317 $ perl_drand01="(((float)rand())/((float)RAND_MAX))"
3318 $ perl_randseedtype = "unsigned"
3319 $ perl_seedfunc = "srand"
3321 $ WRITE_RESULT "drand01 is ''perl_drand01'"
3324 $! Done with compiler checks. Clean up.
3325 $ if f$search("temp.c").nes."" then DELETE/NOLOG temp.c;*
3326 $ if f$search("temp.obj").nes."" then DELETE/NOLOG temp.obj;*
3327 $ if f$search("temp.exe").nes."" then DELETE/NOLOG temp.exe;*
3328 $ if f$search("temp.opt").nes."" then DELETE/NOLOG Temp.opt;*
3331 $! Some that are compiler or VMS version sensitive
3334 $ IF "''Using_Gnu_C'".EQS."Yes"
3336 $ perl_d_attribut="define"
3337 $ perl_vms_cc_type="gcc"
3339 $ perl_vms_cc_type="cc"
3340 $ perl_d_attribut="undef"
3343 $! Dec C >= 5.2 and VMS ver >= 7.0
3344 $ IF (Using_Dec_C).AND.(F$INTEGER(Dec_C_Version).GE.50200000).AND.(VMS_VER .GES. "7.0")
3346 $ perl_d_bcmp="define"
3347 $ perl_d_gettimeod="define"
3348 $ perl_d_uname="define"
3349 $ perl_d_sigaction="define"
3350 $ perl_d_truncate="define"
3351 $ perl_d_wait4="define"
3352 $ perl_d_index="define"
3353 $ perl_pidtype="pid_t"
3354 $ 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"
3355 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
3356 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",""SPARE18"",""SPARE19"",""CHLD"",""CONT"",""STOP"",""TSTP"","
3357 $ psnwc3="""TTIN"",""TTOU"",""DEBUG"",""SPARE27"",""SPARE28"",""SPARE29"",""SPARE30"",""SPARE31"",""SPARE32"",""RTMIN"",""RTMAX"",0"
3358 $perl_sig_name_with_commas = psnwc1 + psnwc2 + psnwc3
3359 $ 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"
3360 $ 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"
3361 $ perl_sig_num_with_commas=perl_sig_num_init
3362 $ perl_uidtype="uid_t"
3363 $ perl_d_pathconf="define"
3364 $ perl_d_fpathconf="define"
3365 $ perl_d_sysconf="define"
3366 $ perl_d_sigsetjmp="define"
3368 $ perl_pidtype="unsigned int"
3369 $ perl_d_gettimeod="undef"
3370 $ perl_d_bcmp="undef"
3371 $ perl_d_uname="undef"
3372 $ perl_d_sigaction="undef"
3373 $ perl_d_truncate="undef"
3374 $ perl_d_wait4="undef"
3375 $ perl_d_index="undef"
3376 $ perl_sig_name="ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM ABRT USR1 USR2"",0"
3377 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
3378 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",0"
3379 $ perl_sig_name_with_commas = psnwc1 + psnwc2
3380 $ perl_sig_num="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 16 17"",0"
3381 $ perl_sig_num_init="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,0"
3382 $ perl_sig_num_with_commas=perl_sig_num_init
3383 $ perl_uidtype="unsigned int"
3384 $ perl_d_pathconf="undef"
3385 $ perl_d_fpathconf="undef"
3386 $ perl_d_sysconf="undef"
3387 $ perl_d_sigsetjmp="undef"
3391 $ IF ("''Using_Dec_C'".EQS."Yes")
3393 $ perl_d_mbstowcs="define"
3394 $ perl_d_mbtowc="define"
3395 $ perl_d_stdiobase="define"
3396 $ perl_d_stdio_ptr_lval="define"
3397 $ perl_d_stdio_cnt_lval="define"
3398 $ perl_d_stdstdio="define"
3399 $ perl_d_wcstombs="define"
3400 $ perl_d_mblen="define"
3401 $ perl_d_mktime="define"
3402 $ perl_d_strcoll="define"
3403 $ perl_d_strxfrm="define"
3404 $ perl_d_wctomb="define"
3405 $ perl_i_locale="define"
3406 $ perl_d_locconv="define"
3407 $ perl_d_setlocale="define"
3408 $ perl_vms_cc_type="decc"
3410 $ perl_d_mbstowcs="undef"
3411 $ perl_d_mbtowc="undef"
3412 $ perl_d_stdiobase="undef"
3413 $ perl_d_stdio_ptr_lval="undef"
3414 $ perl_d_stdio_cnt_lval="undef"
3415 $ perl_d_stdstdio="undef"
3416 $ perl_d_wcstombs="undef"
3417 $ perl_d_mblen="undef"
3418 $ perl_d_mktime="undef"
3419 $ perl_d_strcoll="undef"
3420 $ perl_d_strxfrm="undef"
3421 $ perl_d_wctomb="undef"
3422 $ perl_i_locale="undef"
3423 $ perl_d_locconv="undef"
3424 $ perl_d_setlocale="undef"
3428 $ if ("''Has_Socketshr'".EQS."T").OR.("''Has_Dec_C_Sockets'".EQS."T")
3430 $ perl_d_vms_do_sockets="define"
3431 $ perl_d_htonl="define"
3432 $ perl_d_socket="define"
3433 $ perl_d_select="define"
3434 $ perl_netdb_host_type="char *"
3435 $ perl_netdb_hlen_type="int"
3436 $ perl_netdb_name_type="char *"
3437 $ perl_netdb_net_type="long"
3438 $ perl_d_gethbyaddr="define"
3439 $ perl_d_gethbyname="define"
3440 $ perl_d_getnbyaddr="define"
3441 $ perl_d_getnbyname="define"
3442 $ perl_d_getpbynumber="define"
3443 $ perl_d_getpbyname="define"
3444 $ perl_d_getsbyport="define"
3445 $ perl_d_getsbyname="define"
3446 $ perl_d_gethostprotos="define"
3447 $ perl_d_getnetprotos="define"
3448 $ perl_d_getprotoprotos="define"
3449 $ perl_d_getservprotos="define"
3450 $ IF ("''Using_Dec_C'".EQS."Yes")
3452 $ perl_socksizetype="unsigned int"
3454 $ perl_socksizetype="int *"
3457 $ perl_d_vms_do_sockets="undef"
3458 $ perl_d_htonl="undef"
3459 $ perl_d_socket="undef"
3460 $ perl_d_select="undef"
3461 $ perl_netdb_host_type="char *"
3462 $ perl_netdb_hlen_type="int"
3463 $ perl_netdb_name_type="char *"
3464 $ perl_netdb_net_type="long"
3465 $ perl_d_gethbyaddr="undef"
3466 $ perl_d_gethbyname="undef"
3467 $ perl_d_getnbyaddr="undef"
3468 $ perl_d_getnbyname="undef"
3469 $ perl_d_getpbynumber="undef"
3470 $ perl_d_getpbyname="undef"
3471 $ perl_d_getsbyport="undef"
3472 $ perl_d_getsbyname="undef"
3473 $ perl_d_gethostprotos="undef"
3474 $ perl_d_getnetprotos="undef"
3475 $ perl_d_getprotoprotos="undef"
3476 $ perl_d_getservprotos="undef"
3477 $ perl_socksizetype="undef"
3482 $ perl_usethreads="define"
3483 $ perl_d_pthreads_created_joinable="define"
3484 $ if (VMS_VER .GES. "7.0")
3486 $ perl_d_oldpthreads="undef"
3488 $ perl_d_oldpthreads="define"
3491 $ perl_d_oldpthreads="undef"
3492 $ perl_usethreads="undef"
3494 $ perl_d_pthreads_created_joinable="undef"
3497 $! new (5.005_62++) typedefs for primitives
3499 $ perl_ivtype="long"
3500 $ perl_uvtype="unsigned long"
3501 $ perl_i8type="char"
3502 $ perl_u8type="unsigned char"
3503 $ perl_i16type="short"
3504 $ perl_u16type="unsigned short"
3505 $ perl_i32type="int"
3506 $ perl_u32type="unsigned int"
3507 $ perl_i64type="long long"
3508 $ perl_u64type="unsigned long long"
3509 $ perl_nvtype="double"
3511 $ GOTO beyond_type_size_check
3515 $! Check for type sizes
3519 $ WS "#include <stdlib.h>
3521 $ WS "#include <stdio.h>
3524 $ WS "printf(""%d\n"", sizeof(''type'));"
3528 $ DEFINE SYS$ERROR _NLA0:
3529 $ DEFINE SYS$OUTPUT _NLA0:
3530 $ ON ERROR THEN CONTINUE
3531 $ ON WARNING THEN CONTINUE
3533 $ If (Needs_Opt.eqs."Yes")
3535 $ link temp.obj,temp.opt/opt
3539 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
3540 $ DEASSIGN SYS$OUTPUT
3541 $ DEASSIGN SYS$ERROR
3542 $ DEFINE SYS$ERROR TEMPOUT
3543 $ DEFINE SYS$OUTPUT TEMPOUT
3546 $ DEASSIGN SYS$OUTPUT
3547 $ DEASSIGN SYS$ERROR
3548 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
3551 $ DELETE/NOLOG [-.uu]tempout.lis;
3552 $ WRITE_RESULT "''size_name' is ''line'"
3556 $beyond_type_size_check:
3559 $ type = "''perl_ivtype'"
3560 $ size_name = "ivsize"
3561 $ gosub type_size_check
3562 $ perl_ivsize="''line'"
3563 $ IF type .eqs. "long"
3564 $ THEN perl_longsize = "''line'"
3567 $ size_name = "longsize"
3568 $ gosub type_size_check
3569 $ perl_longsize="''line'"
3572 $ type = "''perl_uvtype'"
3573 $ size_name = "uvsize"
3574 $ gosub type_size_check
3575 $ perl_uvsize="''line'"
3577 $ type = "''perl_i8type'"
3578 $ size_name = "i8size"
3579 $ gosub type_size_check
3580 $ perl_i8size="''line'"
3582 $ type = "''perl_u8type'"
3583 $ size_name = "u8size"
3584 $ gosub type_size_check
3585 $ perl_u8size="''line'"
3587 $ type = "''perl_i16type'"
3588 $ size_name = "i16size"
3589 $ gosub type_size_check
3590 $ perl_i16size="''line'"
3591 $ IF type .eqs. "short"
3592 $ THEN perl_shortsize="''line'"
3594 $ type = "''perl_i16type'"
3595 $ size_name = "shortsize"
3596 $ gosub type_size_check
3597 $ perl_shortsize="''line'"
3600 $ type = "''perl_u16type'"
3601 $ size_name = "u16size"
3602 $ gosub type_size_check
3603 $ perl_u16size="''line'"
3605 $ type = "''perl_i32type'"
3606 $ size_name = "i32size"
3607 $ gosub type_size_check
3608 $ perl_i32size="''line'"
3609 $ IF type .eqs. "int"
3610 $ THEN perl_intsize="''perl_i32size'"
3613 $ size_name = "intsize"
3614 $ gosub type_size_check
3615 $ perl_intsize="''line'"
3618 $ type = "''perl_u32type'"
3619 $ size_name = "u32size"
3620 $ gosub type_size_check
3621 $ perl_u32size="''line'"
3625 $ type = "''perl_i64type'"
3626 $ size_name = "i64size"
3627 $ gosub type_size_check
3628 $ perl_i64size="''line'"
3629 $ perl_ivtype="''perl_i64type'"
3631 $ type = "''perl_u64type'"
3632 $ size_name = "u64size"
3633 $ gosub type_size_check
3634 $ perl_u64size="''line'"
3635 $ perl_uvtype="''perl_u64type'"
3636 $ perl_nvtype="long double"
3638 $ perl_i64size="undef"
3639 $ perl_u64size="undef"
3642 $ perl_ivdformat="""ld"""
3643 $ perl_uvuformat="""lu"""
3644 $ perl_uvoformat="""lo"""
3645 $ perl_uvxformat="""lx"""
3647 $! Finally the composite ones. All config
3648 $ perl_installarchlib="''perl_prefix':[lib.''archname'.''version']"
3649 $ perl_installsitearch="''perl_prefix':[lib.site_perl.''archname']"
3650 $ perl_myhostname="''myhostname'"
3651 $ perl_mydomain="''mydomain'"
3652 $ perl_perladmin="''perladmin'"
3653 $ perl_myuname:="''osname' ''myname' ''osvers' ''f$edit(hwname, "TRIM")'"
3654 $ perl_archlibexp="''perl_prefix':[lib.''archname'.''version']"
3655 $ perl_archlib="''perl_prefix':[lib.''archname'.''version']"
3656 $ perl_oldarchlibexp="''perl_prefix':[lib.''archname']"
3657 $ perl_oldarchlib="''perl_prefix':[lib.''archname']"
3658 $ perl_sitearchexp="''perl_prefix':[lib.site_perl.''archname']"
3659 $ perl_sitearch="''perl_prefix':[lib.site_perl.''archname']"
3662 $ perl_ccflags="/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=''perl_obj_ext'/NoList''cc_flags'"
3664 $ if use_vmsdebug_perl .eqs. "Y"
3666 $ perl_optimize="/Debug/NoOpt"
3667 $ perl_dbgprefix = "DBG"
3670 $ perl_dbgprefix = ""
3673 $! Okay, we've got everything configured. Now go write out a config.sh.
3674 $ echo4 "Creating config.sh..."
3675 $ open/write CONFIG [-]config.sh
3676 $ WC := "write CONFIG"
3678 $ WC "# This file generated by Configure.COM on a VMS system."
3679 $ WC "# Time: " + cf_time
3681 $ WC "CONFIGDOTSH=true"
3682 $ WC "package='" + perl_package + "'"
3683 $ WC "config_args='" + config_args + "'"
3684 $ WC "d_nv_preserves_uv='" + perl_d_nv_preserves_uv + "'"
3685 $ WC "use5005threads='" + perl_use5005threads + "'"
3686 $ WC "useithreads='" + perl_useithreads + "'"
3687 $ WC "CONFIG='" + perl_config + "'"
3688 $ WC "cf_time='" + cf_time + "'"
3689 $ WC "cf_by='" + cf_by + "'"
3690 $ WC "cpp_stuff='" + perl_cpp_stuff + "'"
3691 $ WC "ccdlflags='" + perl_ccdlflags + "'"
3692 $ WC "cccdlflags='" + perl_cccdlflags + "'"
3693 $ WC "mab='" + perl_mab + "'"
3694 $ WC "libpth='" + perl_libpth + "'"
3695 $ WC "ld='" + perl_ld + "'"
3696 $ WC "lddlflags='" + perl_lddlflags + "'"
3697 $ WC "ranlib='" + perl_ranlib + "'"
3698 $ WC "ar='" + perl_ar + "'"
3699 $ WC "full_ar='" + perl_full_ar + "'"
3700 $ WC "eunicefix='" + perl_eunicefix + "'"
3701 $ WC "hint='" + perl_hint +"'"
3702 $ WC "hintfile='" + perl_hintfile + "'"
3703 $ WC "shrplib='" + perl_shrplib + "'"
3704 $ WC "usemymalloc='" + perl_usemymalloc + "'"
3705 $ WC "usevfork='" + perl_usevfork + "'"
3706 $ WC "useposix='false'"
3707 $ WC "spitshell='write sys$output '"
3708 $ WC "dlsrc='dl_vms.c'"
3709 $ WC "binexp='" + perl_binexp + "'"
3710 $ WC "man1ext='" + perl_man1ext + "'"
3711 $ WC "man3ext='" + perl_man3ext + "'"
3712 $ WC "archname='" + archname + "'"
3713 $ WC "osvers='" + osvers + "'"
3714 $ WC "prefix='" + perl_prefix + "'"
3715 $ WC "builddir='" + perl_builddir + "'"
3716 $ WC "installbin='" + perl_installbin + "'"
3717 $ WC "installscript='" + perl_installscript + "'"
3718 $ WC "installman1dir='" + perl_installman1dir + "'"
3719 $ WC "installman3dir='" + perl_installman3dir + "'"
3720 $ WC "installprivlib='" + perl_installprivlib + "'"
3721 $ WC "installarchlib='" + perl_installarchlib + "'"
3722 $ WC "installsitelib='" + perl_installsitelib + "'"
3723 $ WC "installsitearch='" + perl_installsitearch + "'"
3724 $ WC "path_sep='" + perl_path_sep + "'"
3725 $ WC "vms_cc_type='" + perl_vms_cc_type + "'"
3726 $ WC "d_attribut='" + perl_d_attribut + "'"
3727 $ WC "cc='" + perl_cc + "'"
3728 $ WC "ccflags='" + perl_ccflags + "'"
3729 $ WC "optimize='" + perl_optimize + "'"
3730 $ WC "dbgprefix='" + perl_dbgprefix + "'"
3731 $ WC "d_vms_do_sockets='" + perl_d_vms_do_sockets + "'"
3732 $ WC "d_socket='" + perl_d_socket + "'"
3733 $ WC "d_sockpair='" + perl_d_sockpair + "'"
3734 $ WC "d_gethent='" + perl_d_gethent + "'"
3735 $ WC "d_getsent='" + perl_d_getsent + "'"
3736 $ WC "d_socklen_t='" + perl_d_socklen_t + "'"
3737 $ WC "d_select='" + perl_d_select + "'"
3738 $ WC "i_niin='" + perl_i_niin + "'"
3739 $ WC "i_netinettcp='" + perl_i_netinettcp + "'"
3740 $ WC "i_neterrno='" + perl_i_neterrno + "'"
3741 $ WC "d_stdstdio='" + perl_d_stdstdio + "'"
3742 $ WC "d_stdio_ptr_lval='" + perl_d_stdio_ptr_lval + "'"
3743 $ WC "d_stdio_cnt_lval='" + perl_d_stdio_cnt_lval + "'"
3744 $ WC "d_stdiobase='" + perl_d_stdiobase + "'"
3745 $ WC "d_locconv='" + perl_d_locconv + "'"
3746 $ WC "d_setlocale='" + perl_d_setlocale + "'"
3747 $ WC "i_locale='" + perl_i_locale + "'"
3748 $ WC "d_mbstowcs='" + perl_d_mbstowcs + "'"
3749 $ WC "d_mbtowc='" + perl_d_mbtowc + "'"
3750 $ WC "d_wcstombs='" + perl_d_wcstombs + "'"
3751 $ WC "d_wctomb='" + perl_d_wctomb + "'"
3752 $ WC "d_mblen='" + perl_d_mblen + "'"
3753 $ WC "d_mktime='" + perl_d_mktime + "'"
3754 $ WC "d_strcoll='" + perl_d_strcoll + "'"
3755 $ WC "d_strxfrm='" + perl_d_strxfrm + "'"
3756 $ WC "ldflags='" + perl_ldflags + "'"
3757 $ WC "dlobj='" + perl_dlobj + "'"
3758 $ WC "obj_ext='" + perl_obj_ext + "'"
3759 $ WC "so='" + perl_so + "'"
3760 $ WC "dlext='" + perl_dlext + "'"
3761 $ WC "exe_ext='" + perl_exe_ext + "'"
3762 $ WC "lib_ext='" + perl_lib_ext + "'"
3763 $ WC "myhostname='" + perl_myhostname + "'"
3764 $ WC "mydomain='" + perl_mydomain + "'"
3765 $ WC "perladmin='" + perl_perladmin + "'"
3766 $ WC "cf_email='" + cf_email + "'"
3767 $ WC "myuname='" + perl_myuname + "'"
3768 $ WC "alignbytes='" + alignbytes + "'"
3769 $ WC "osname='" + perl_osname + "'"
3770 $ WC "d_archlib='" + perl_d_archlib + "'"
3771 $ WC "archlibexp='" + perl_archlibexp + "'"
3772 $ WC "archlib='" + perl_archlib + "'"
3773 $ WC "archname='" + archname + "'"
3774 $ WC "d_bincompat3='" + perl_d_bincompat3 + "'"
3775 $ WC "cppstdin='" + perl_cppstdin + "'"
3776 $ WC "cppminus='" + perl_cppminus + "'"
3777 $ WC "cpprun='" + perl_cpprun + "'"
3778 $ WC "cpplast='" + perl_cpplast + "'"
3779 $ WC "d_bcmp='" + perl_d_bcmp + "'"
3780 $ WC "d_bcopy='" + perl_d_bcopy + "'"
3781 $ WC "d_bzero='" + perl_d_bzero + "'"
3782 $ WC "d_castneg='" + perl_d_castneg + "'"
3783 $ WC "castflags='" + perl_castflags + "'"
3784 $ WC "d_chsize='" + perl_d_chsize + "'"
3785 $ WC "d_const='" + perl_d_const + "'"
3786 $ WC "d_crypt='" + perl_d_crypt + "'"
3787 $ WC "byteorder='" + perl_byteorder + "'"
3788 $ WC "full_csh='" + perl_full_csh + "'"
3789 $ WC "d_csh='" + perl_d_csh + "'"
3790 $ WC "d_dup2='" + perl_d_dup2 + "'"
3791 $ WC "d_fchmod='" + perl_d_fchmod + "'"
3792 $ WC "d_fchown='" + perl_d_fchown + "'"
3793 $ WC "d_fcntl='" + perl_d_fcntl + "'"
3794 $ WC "d_fgetpos='" + perl_d_fgetpos + "'"
3795 $ WC "d_flexfnam='" + perl_d_flexfnam + "'"
3796 $ WC "d_flock='" + perl_d_flock + "'"
3797 $ WC "d_fsetpos='" + perl_d_fsetpos + "'"
3798 $ WC "d_gettimeod='" + perl_d_gettimeod + "'"
3799 $ WC "d_getgrps='" + perl_d_getgrps + "'"
3800 $ WC "d_setgrps='" + perl_d_setgrps + "'"
3801 $ WC "groupstype='" + perl_groupstype + "'"
3802 $ WC "d_uname='" + perl_d_uname + "'"
3803 $ WC "d_getprior='" + perl_d_getprior + "'"
3804 $ WC "d_killpg='" + perl_d_killpg + "'"
3805 $ WC "d_link='" + perl_d_link + "'"
3806 $ WC "d_lstat='" + perl_d_lstat + "'"
3807 $ WC "d_lockf='" + perl_d_lockf + "'"
3808 $ WC "d_memcmp='" + perl_d_memcmp + "'"
3809 $ WC "d_memcpy='" + perl_d_memcpy + "'"
3810 $ WC "d_memmove='" + perl_d_memmove + "'"
3811 $ WC "d_memset='" + perl_d_memset + "'"
3812 $ WC "d_mkdir='" + perl_d_mkdir + "'"
3813 $ WC "d_msg='" + perl_d_msg + "'"
3814 $ WC "d_open3='" + perl_d_open3 + "'"
3815 $ WC "d_poll='" + perl_d_poll + "'"
3816 $ WC "d_readdir='" + perl_d_readdir + "'"
3817 $ WC "d_seekdir='" + perl_d_seekdir + "'"
3818 $ WC "d_telldir='" + perl_d_telldir + "'"
3819 $ WC "d_rewinddir='" + perl_d_rewinddir + "'"
3820 $ WC "d_rename='" + perl_d_rename + "'"
3821 $ WC "d_rmdir='" + perl_d_rmdir + "'"
3822 $ WC "d_sem='" + perl_d_sem + "'"
3823 $ WC "d_setegid='" + perl_d_setegid + "'"
3824 $ WC "d_seteuid='" + perl_d_seteuid + "'"
3825 $ WC "d_setprior='" + perl_d_setprior + "'"
3826 $ WC "d_setregid='" + perl_d_setregid + "'"
3827 $ WC "d_setresgid='" + perl_d_setresgid + "'"
3828 $ WC "d_setreuid='" + perl_d_setreuid + "'"
3829 $ WC "d_setresuid='" + perl_d_setresuid + "'"
3830 $ WC "d_setrgid='" + perl_d_setrgid + "'"
3831 $ WC "d_setruid='" + perl_d_setruid + "'"
3832 $ WC "d_setsid='" + perl_d_setsid + "'"
3833 $ WC "d_shm='" + perl_d_shm + "'"
3834 $ WC "d_shmatprototype='" + perl_d_shmatprototype + "'"
3835 $ WC "shmattype='" + perl_shmattype + "'"
3836 $ WC "d_sigaction='" + perl_d_sigaction + "'"
3837 $ WC "d_statblks='" + perl_d_statblks + "'"
3838 $ WC "stdio_ptr='" + perl_stdio_ptr + "'"
3839 $ WC "stdio_cnt='" + perl_stdio_cnt + "'"
3840 $ WC "stdio_base='" + perl_stdio_base + "'"
3841 $ WC "stdio_bufsiz='" + perl_stdio_bufsiz + "'"
3842 $ WC "d_strctcpy='" + perl_d_strctcpy + "'"
3843 $ WC "d_strerror='" + perl_d_strerror + "'"
3844 $ WC "d_syserrlst='" + perl_d_syserrlst + "'"
3845 $ WC "d_strerrm='" + perl_d_strerrm + "'"
3846 $ WC "d_symlink='" + perl_d_symlink + "'"
3847 $ WC "d_syscall='" + perl_d_syscall + "'"
3848 $ WC "d_system='" + perl_d_system + "'"
3849 $ WC "timetype='" + perl_timetype + "'"
3850 $ WC "d_truncate='" + perl_d_truncate + "'"
3851 $ WC "d_vfork='" + perl_d_vfork + "'"
3852 $ WC "signal_t='" + perl_signal_t + "'"
3853 $ WC "d_volatile='" + perl_d_volatile + "'"
3854 $ WC "d_vprintf='" + perl_d_vprintf + "'"
3855 $ WC "d_charvspr='" + perl_d_charvspr + "'"
3856 $ WC "d_wait4='" + perl_d_wait4 + "'"
3857 $ WC "d_waitpid='" + perl_d_waitpid + "'"
3858 $ WC "i_dirent='" + perl_i_dirent + "'"
3859 $ WC "d_dirnamlen='" + perl_d_dirnamlen + "'"
3860 $ WC "direntrytype='" + perl_direntrytype + "'"
3861 $ WC "i_fcntl='" + perl_i_fcntl + "'"
3862 $ WC "i_grp='" + perl_i_grp + "'"
3863 $ WC "i_limits='" + perl_i_limits + "'"
3864 $ WC "i_memory='" + perl_i_memory + "'"
3865 $ WC "i_ndbm='" + perl_i_ndbm + "'"
3866 $ WC "i_stdarg='" + perl_i_stdarg + "'"
3867 $ WC "i_pwd='" + perl_i_pwd + "'"
3868 $ WC "d_pwquota='" + perl_d_pwquota + "'"
3869 $ WC "d_pwage='" + perl_d_pwage + "'"
3870 $ WC "d_pwchange='" + perl_d_pwchange + "'"
3871 $ WC "d_pwclass='" + perl_d_pwclass + "'"
3872 $ WC "d_pwexpire='" + perl_d_pwexpire + "'"
3873 $ WC "d_pwcomment='" + perl_d_pwcomment + "'"
3874 $ WC "i_stddef='" + perl_i_stddef + "'"
3875 $ WC "i_stdlib='" + perl_i_stdlib + "'"
3876 $ WC "i_string='" + perl_i_string + "'"
3877 $ WC "i_sysdir='" + perl_i_sysdir + "'"
3878 $ WC "i_sysfile='" + perl_i_sysfile + "'"
3879 $ WC "i_sysioctl='" + perl_i_sysioctl + "'"
3880 $ WC "i_sysndir='" + perl_i_sysndir + "'"
3881 $ WC "i_sysresrc='" + perl_i_sysresrc + "'"
3882 $ WC "i_sysselct='" + perl_i_sysselct + "'"
3883 $ WC "i_dbm='" + perl_i_dbm + "'"
3884 $ WC "i_rpcsvcdbm='" + perl_i_rpcsvcdbm + "'"
3885 $ WC "i_sfio='" + perl_i_sfio + "'"
3886 $ WC "i_sysstat='" + perl_i_sysstat + "'"
3887 $ WC "i_systimes='" + perl_i_systimes + "'"
3888 $ WC "i_systypes='" + perl_i_systypes + "'"
3889 $ WC "i_sysun='" + perl_i_sysun + "'"
3890 $ WC "i_syswait='" + perl_i_syswait + "'"
3891 $ WC "i_termio='" + perl_i_termio + "'"
3892 $ WC "i_sgtty='" + perl_i_sgtty + "'"
3893 $ WC "i_termios='" + perl_i_termios + "'"
3894 $ WC "i_time='" + perl_i_time + "'"
3895 $ WC "i_systime='" + perl_i_systime + "'"
3896 $ WC "i_systimek='" + perl_i_systimek + "'"
3897 $ WC "i_unistd='" + perl_i_unistd + "'"
3898 $ WC "i_utime='" + perl_i_utime + "'"
3899 $ WC "i_varargs='" + perl_i_varargs + "'"
3900 $ WC "i_vfork='" + perl_i_vfork + "'"
3901 $ WC "prototype='" + perl_prototype + "'"
3902 $ WC "randbits='" + perl_randbits +"'"
3903 $ WC "selecttype='" + perl_selecttype + "'"
3904 $ WC "selectminbits='" + perl_selectminbits + "'"
3905 $ WC "stdchar='" + perl_stdchar + "'"
3906 $ WC "d_unlink_all_versions='" + perl_d_unlink_all_versions + "'"
3907 $ WC "full_sed='" + perl_full_sed + "'"
3908 $ WC "bin='" + perl_bin + "'"
3909 $ WC "binexp='" + perl_binexp + "'"
3910 $ WC "d_alarm='" + perl_d_alarm + "'"
3911 $ WC "d_casti32='" + perl_d_casti32 + "'"
3912 $ WC "d_chown='" + perl_d_chown + "'"
3913 $ WC "d_chroot='" + perl_d_chroot + "'"
3914 $ WC "d_cuserid='" + perl_d_cuserid + "'"
3915 $ WC "d_dbl_dig='" + perl_d_dbl_dig + "'"
3916 $ WC "d_ldbl_dig='" + perl_d_ldbl_dig + "'"
3917 $ WC "d_difftime='" + perl_d_difftime + "'"
3918 $ WC "d_fork='" + perl_d_fork + "'"
3919 $ WC "d_getlogin='" + perl_d_getlogin + "'"
3920 $ WC "d_getppid='" + perl_d_getppid + "'"
3921 $ WC "d_htonl='" + perl_d_htonl + "'"
3922 $ WC "d_nice='" + perl_d_nice + "'"
3923 $ WC "d_pause='" + perl_d_pause + "'"
3924 $ WC "d_pipe='" + perl_d_pipe + "'"
3925 $ WC "d_readlink='" + perl_d_readlink + "'"
3926 $ WC "d_setlinebuf='" + perl_d_setlinebuf + "'"
3927 $ WC "d_strchr='" + perl_d_strchr + "'"
3928 $ WC "d_index='" + perl_d_index + "'"
3929 $ WC "d_strtod='" + perl_d_strtod + "'"
3930 $ WC "d_strtol='" + perl_d_strtol + "'"
3931 $ WC "d_strtoul='" + perl_d_strtoul + "'"
3932 $ WC "d_tcgetpgrp='" + perl_d_tcgetpgrp + "'"
3933 $ WC "d_tcsetpgrp='" + perl_d_tcsetpgrp + "'"
3934 $ WC "d_times='" + perl_d_times + "'"
3935 $ WC "d_tzname='" + perl_d_tzname + "'"
3936 $ WC "d_umask='" + perl_d_umask + "'"
3937 $ WC "fpostype='" + perl_fpostype + "'"
3938 $ WC "i_dlfcn='" + perl_i_dlfcn + "'"
3939 $ WC "i_float='" + perl_i_float + "'"
3940 $ WC "i_math='" + perl_i_math + "'"
3941 $ WC "intsize='" + perl_intsize + "'"
3942 $ WC "longsize='" + perl_longsize + "'"
3943 $ WC "shortsize='" + perl_shortsize + "'"
3944 $ WC "lseektype='" + perl_lseektype + "'"
3945 $ WC "lseeksize='4'"
3946 $ WC "i_values='" + perl_i_values + "'"
3947 $ WC "malloctype='" + perl_malloctype + "'"
3948 $ WC "freetype='" + perl_freetype + "'"
3949 $ WC "d_mymalloc='" + perl_d_mymalloc + "'"
3950 $ WC "sh='" + perl_sh + "'"
3951 $ WC "sig_name='" + perl_sig_name + "'"
3952 $ WC "sig_num='" + perl_sig_num + "'"
3953 $ tempsym = "sig_name_init='" + perl_sig_name_with_commas + "'"
3955 $ WC "modetype='" + perl_modetype + "'"
3956 $ WC "ssizetype='" + perl_ssizetype + "'"
3957 $ WC "o_nonblock='" + perl_o_nonblock + "'"
3958 $ WC "eagain='" + perl_eagain + "'"
3959 $ WC "rd_nodata='" + perl_rd_nodata + "'"
3960 $ WC "d_eofnblk='" + perl_d_eofnblk + "'"
3961 $ WC "d_oldarchlib='" + perl_d_oldarchlib + "'"
3962 $ WC "oldarchlibexp='" + perl_oldarchlibexp + "'"
3963 $ WC "oldarchlib='" + perl_oldarchlib + "'"
3964 $ WC "privlibexp='" + perl_privlibexp + "'"
3965 $ WC "privlib='" + perl_privlib + "'"
3966 $ WC "sitelibexp='" + perl_sitelibexp + "'"
3967 $ WC "sitelib='" + perl_sitelib + "'"
3968 $ WC "sitelib_stem='" + perl_sitelib_stem + "'"
3969 $ WC "sitearchexp='" + perl_sitearchexp + "'"
3970 $ WC "sitearch='" + perl_sitearch + "'"
3971 $ WC "sizetype='" + perl_sizetype + "'"
3972 $ WC "i_sysparam='" + perl_i_sysparam + "'"
3973 $ WC "d_void_closedir='" + perl_d_void_closedir + "'"
3974 $ WC "d_dlerror='" + perl_d_dlerror + "'"
3975 $ WC "d_dlsymun='" + perl_d_dlsymun + "'"
3976 $ WC "d_suidsafe='" + perl_d_suidsafe + "'"
3977 $ WC "d_dosuid='" + perl_d_dosuid + "'"
3978 $ WC "d_inetaton='" + perl_d_inetaton + "'"
3979 $ WC "d_int64_t='" + perl_d_int64_t + "'"
3980 $ WC "d_isascii='" + perl_d_isascii + "'"
3981 $ WC "d_mkfifo='" + perl_d_mkfifo + "'"
3982 $ WC "d_pathconf='" + perl_d_pathconf + "'"
3983 $ WC "d_fpathconf='" + perl_d_fpathconf + "'"
3984 $ WC "d_safebcpy='" + perl_d_safebcpy + "'"
3985 $ WC "d_safemcpy='" + perl_d_safemcpy + "'"
3986 $ WC "d_sanemcmp='" + perl_d_sanemcmp + "'"
3987 $ WC "d_setpgrp='" + perl_d_setpgrp + "'"
3988 $ WC "d_bsdsetpgrp='" + perl_d_bsdsetpgrp + "'"
3989 $ WC "d_bsdpgrp='" + perl_d_bsdpgrp + "'"
3990 $ WC "d_setpgid='" + perl_d_setpgid + "'"
3991 $ WC "d_setpgrp2='" + perl_d_setpgrp2 + "'"
3992 $ WC "d_sysconf='" + perl_d_sysconf + "'"
3993 $ WC "d_Gconvert='" + perl_d_Gconvert + "'"
3994 $ WC "d_getpgid='" + perl_d_getpgid + "'"
3995 $ WC "d_getpgrp='" + perl_d_getpgrp + "'"
3996 $ WC "d_bsdgetpgrp='" + perl_d_bsdgetpgrp + "'"
3997 $ WC "d_getpgrp2='" + perl_d_getpgrp2 + "'"
3998 $ WC "d_sfio='" + perl_d_sfio + "'"
3999 $ WC "d_sigsetjmp='" + perl_d_sigsetjmp + "'"
4000 $ WC "usedl='" + perl_usedl + "'"
4001 $ WC "startperl=" + perl_startperl ! This one's special--no enclosing single quotes
4002 $ WC "db_hashtype='" + perl_db_hashtype + "'"
4003 $ WC "db_prefixtype='" + perl_db_prefixtype + "'"
4004 $ WC "useperlio='" + perl_useperlio + "'"
4005 $ WC "defvoidused='" + perl_defvoidused + "'"
4006 $ WC "voidflags='" + perl_voidflags + "'"
4007 $ WC "d_eunice='" + perl_d_eunice + "'"
4008 $ WC "libs='" + perl_libs + "'"
4009 $ WC "libc='" + perl_libc + "'"
4010 $ WC "xs_apiversion='" + version + "'"
4011 $ WC "pm_apiversion='" + version + "'"
4012 $ WC "PERL_VERSION='" + patchlevel + "'"
4013 $ WC "PERL_SUBVERSION='" + subversion + "'"
4014 $ WC "pager='" + perl_pager + "'"
4015 $ WC "uidtype='" + perl_uidtype + "'"
4016 $ WC "uidformat='" + perl_uidformat + "'"
4017 $ WC "uidsize='" + perl_uidsize + "'"
4018 $ WC "uidsign='" + perl_uidsign + "'"
4019 $ WC "gidtype='" + perl_gidtype + "'"
4020 $ WC "gidformat='" + perl_gidformat + "'"
4021 $ WC "gidsize='" + perl_gidsize + "'"
4022 $ WC "gidsign='" + perl_gidsign + "'"
4023 $ WC "usethreads='" + perl_usethreads + "'"
4024 $ WC "d_pthread_yield='" + perl_d_pthread_yield + "'"
4025 $ WC "d_pthreads_created_joinable='" + perl_d_pthreads_created_joinable + "'"
4026 $ WC "d_gnulibc='" + perl_d_gnulibc + "'"
4027 $ WC "i_netdb='" + perl_i_netdb + "'"
4028 $ WC "pidtype='" + perl_pidtype + "'"
4029 $ WC "netdb_host_type='" + perl_netdb_host_type + "'"
4030 $ WC "netdb_hlen_type='" + perl_netdb_hlen_type + "'"
4031 $ WC "netdb_name_type='" + perl_netdb_name_type + "'"
4032 $ WC "netdb_net_type='" + perl_netdb_net_type + "'"
4033 $ WC "socksizetype='" + perl_socksizetype + "'"
4034 $ WC "baserev='" + perl_baserev + "'"
4035 $ WC "doublesize='" + perl_doublesize + "'"
4036 $ WC "ptrsize='" + perl_ptrsize + "'"
4037 $ WC "d_gethbyaddr='" + perl_d_gethbyaddr + "'"
4038 $ WC "d_gethbyname='" + perl_d_gethbyname + "'"
4039 $ WC "d_getnbyaddr='" + perl_d_getnbyaddr + "'"
4040 $ WC "d_getnbyname='" + perl_d_getnbyname + "'"
4041 $ WC "d_getpbynumber='" + perl_d_getpbynumber + "'"
4042 $ WC "d_getpbyname='" + perl_d_getpbyname + "'"
4043 $ WC "d_getsbyport='" + perl_d_getsbyport + "'"
4044 $ WC "d_getsbyname='" + perl_d_getsbyname + "'"
4045 $ WC "d_sethent='" + perl_d_sethent + "'"
4046 $ WC "d_oldpthreads='" + perl_d_oldpthreads + "'"
4047 $ WC "d_longdbl='" + perl_d_longdbl + "'"
4048 $ WC "longdblsize='" + perl_longdblsize + "'"
4049 $ WC "d_longlong='" + perl_d_longlong + "'"
4050 $ WC "longlongsize='" + perl_longlongsize + "'"
4051 $ WC "d_mkstemp='" + perl_d_mkstemp + "'"
4052 $ WC "d_mkstemps='" + perl_d_mkstemps + "'"
4053 $ WC "d_mkdtemp='" + perl_d_mkdtemp + "'"
4054 $ WC "d_setvbuf='" + perl_d_setvbuf + "'"
4055 $ WC "d_setenv='" + perl_d_setenv + "'"
4056 $ WC "d_endhent='" + perl_d_endhent + "'"
4057 $ WC "d_endnent='" + perl_d_endsent + "'"
4058 $ WC "d_endpent='" + perl_d_endpent + "'"
4059 $ WC "d_endsent='" + perl_d_endsent + "'"
4060 $ WC "d_gethent='" + perl_d_gethent + "'"
4061 $ WC "d_getnent='" + perl_d_getsent + "'"
4062 $ WC "d_getpent='" + perl_d_getpent + "'"
4063 $ WC "d_getsent='" + perl_d_getsent + "'"
4064 $ WC "d_sethent='" + perl_d_sethent + "'"
4065 $ WC "d_setnent='" + perl_d_setsent + "'"
4066 $ WC "d_setpent='" + perl_d_setpent + "'"
4067 $ WC "ebcdic='" + perl_ebcdic + "'"
4068 $ WC "d_setsent='" + perl_d_setsent + "'"
4069 $ WC "d_gethostprotos='" + perl_d_gethostprotos + "'"
4070 $ WC "d_getnetprotos='" + perl_d_getnetprotos + "'"
4071 $ WC "d_getprotoprotos='" + perl_d_getprotoprotos + "'"
4072 $ WC "d_getservprotos='" + perl_d_getservprotos + "'"
4073 $ WC "d_pwgecos='" + perl_d_pwgecos + "'"
4074 $ WC "d_sched_yield='" + perl_d_sched_yield + "'"
4075 $ WC "d_lchown='" + perl_d_lchown + "'"
4076 $ WC "d_union_semun='" + perl_d_union_semun + "'"
4077 $ WC "i_arpainet='" + perl_i_arpainet + "'"
4078 $ WC "d_grpasswd='" + perl_d_grpasswd + "'"
4079 $ WC "d_setgrent='" + perl_d_setgrent + "'"
4080 $ WC "d_getgrent='" + perl_d_getgrent + "'"
4081 $ WC "d_endgrent='" + perl_d_endgrent + "'"
4082 $ WC "d_pwpasswd='" + perl_d_pwpasswd + "'"
4083 $ WC "d_setpwent='" + perl_d_setpwent + "'"
4084 $ WC "d_getpwent='" + perl_d_getpwent + "'"
4085 $ WC "d_endpwent='" + perl_d_endpwent + "'"
4086 $ WC "d_semctl_semun='" + perl_d_semctl_semun + "'"
4087 $ WC "d_semctl_semid_ds='" + perl_d_semctl_semid_ds + "'"
4088 $ WC "extensions='" + perl_extensions + "'"
4089 $ WC "known_extensions='" + perl_known_extensions + "'"
4090 $ WC "static_ext='" + "'"
4091 $ WC "dynamic_ext='" + perl_extensions + "'"
4092 $ WC "d_mknod='" + perl_d_mknod + "'"
4093 $ WC "devtype='" + perl_devtype + "'"
4094 $ WC "d_gethname='" + perl_d_gethname + "'"
4095 $ WC "d_phostname='" + perl_d_phostname + "'"
4096 $ WC "aphostname='" + perl_aphostname + "'"
4097 $ WC "d_accessx='" + perl_d_accessx + "'"
4098 $ WC "d_eaccess='" + perl_d_eaccess + "'"
4099 $ WC "i_ieeefp='" + perl_i_ieeefp + "'"
4100 $ WC "i_sunmath='" + perl_i_sunmath + "'"
4101 $ WC "i_sysaccess='" + perl_i_sysaccess + "'"
4102 $ WC "i_syssecrt='" + perl_i_syssecrt + "'"
4103 $ WC "d_fd_set='" + perl_d_fd_set + "'"
4104 $ WC "d_access='" + perl_d_access + "'"
4105 $ WC "d_msg_ctrunc='" + perl_d_msg_ctrunc + "'"
4106 $ WC "d_msg_dontroute='" + perl_d_msg_dontroute + "'"
4107 $ WC "d_msg_oob='" + perl_d_msg_oob + "'"
4108 $ WC "d_msg_peek='" + perl_d_msg_peek + "'"
4109 $ WC "d_msg_proxy='" + perl_d_msg_proxy + "'"
4110 $ WC "d_scm_rights='" + perl_d_scm_rights + "'"
4111 $ WC "d_sendmsg='" + perl_d_sendmsg + "'"
4112 $ WC "d_recvmsg='" + perl_d_recvmsg + "'"
4113 $ WC "d_msghdr_s='" + perl_d_msghdr_s + "'"
4114 $ WC "d_cmsghdr_s='" + perl_d_cmsghdr_s + "'"
4115 $ WC "i_sysuio='" + perl_i_sysuio + "'"
4116 $ WC "d_fseeko='" + perl_d_fseeko + "'"
4117 $ WC "d_ftello='" + perl_d_ftello + "'"
4118 $ WC "d_qgcvt='" + perl_d_qgcvt + "'"
4119 $ WC "d_readv='" + perl_d_readv + "'"
4120 $ WC "d_writev='" + perl_d_writev + "'"
4121 $ WC "i_machcthr='" + perl_i_machcthr + "'"
4122 $ WC "usemultiplicity='" + perl_usemultiplicity + "'"
4123 $ WC "i_poll='" + perl_i_poll + "'"
4124 $ WC "i_inttypes='" + perl_i_inttypes + "'"
4125 $ WC "d_off64_t='" + perl_d_off64_t + "'"
4126 $ WC "d_fpos64_t='" + perl_d_fpos64_t + "'"
4127 $ WC "use64bitall='" + perl_use64bitall + "'"
4128 $ WC "use64bitint='" + perl_use64bitint + "'"
4129 $ WC "d_drand48proto='" + perl_d_drand48proto + "'"
4130 $ WC "d_lseekproto='" + perl_d_drand48proto + "'"
4131 $ WC "d_old_pthread_create_joinable='" + perl_d_old_pthread_create_joinable + "'"
4132 $ WC "old_pthread_create_joinable='" + perl_old_pthread_create_joinable + "'"
4133 $ WC "drand01='" + perl_drand01 + "'"
4134 $ WC "randseedtype='" + perl_randseedtype + "'"
4135 $ WC "seedfunc='" + perl_seedfunc + "'"
4136 $ WC "sig_num_init='" + perl_sig_num_with_commas + "'"
4137 $ WC "i_sysmount='" + perl_i_sysmount + "'"
4138 $ WC "d_fstatfs='" + perl_d_fstatfs + "'"
4139 $ WC "d_getfsstat='" + perl_d_getfsstat + "'"
4140 $ WC "d_memchr='" + perl_d_memchr + "'"
4141 $ WC "d_statfsflags='" + perl_d_statfsflags + "'"
4142 $ WC "fflushNULL='define'"
4143 $ WC "fflushall='undef'"
4144 $ WC "d_stdio_stream_array='undef'"
4145 $ WC "stdio_stream_array='" + perl_stdio_stream_array + "'"
4146 $ WC "i_sysstatvfs='" + perl_i_sysstatvfs + "'"
4147 $ WC "i_syslog='" + perl_i_syslog + "'"
4148 $ WC "i_sysmode='" + perl_i_sysmode + "'"
4149 $ WC "i_sysutsname='" + perl_i_sysutsname + "'"
4150 $ WC "i_machcthreads='" + perl_i_machcthreads + "'"
4151 $ WC "i_pthread='" + perl_i_pthread + "'"
4152 $ WC "d_fstatvfs='" + perl_d_fstatvfs + "'"
4153 $ WC "i_mntent='" + perl_i_mntent + "'"
4154 $ WC "d_getmntent='" + perl_d_getmntent + "'"
4155 $ WC "d_hasmntopt='" + perl_d_hasmntopt + "'"
4156 $ WC "d_telldirproto='" + perl_d_telldirproto + "'"
4157 $ WC "d_madvise='" + perl_d_madvise + "'"
4158 $ WC "d_msync='" + perl_d_msync + "'"
4159 $ WC "d_mprotect='" + perl_d_mprotect + "'"
4160 $ WC "d_munmap='" + perl_d_munmap + "'"
4161 $ WC "d_mmap='" + perl_d_mmap + "'"
4162 $ WC "mmaptype='" + perl_mmaptype + "'"
4163 $ WC "i_sysmman='" + perl_i_sysmman + "'"
4164 $ WC "installusrbinperl='" + perl_installusrbinperl + "'"
4165 $! WC "selectminbits='" + perl_selectminbits + "'"
4166 $ WC "crosscompile='" + perl_crosscompile + "'"
4167 $ WC "multiarch='" + perl_multiarch + "'"
4168 $ WC "sched_yield='" + perl_sched_yield + "'"
4169 $ WC "d_strtoull='" + perl_d_strtoull + "'"
4170 $ WC "d_strtouq='" + perl_d_strtouq + "'"
4171 $ WC "d_strtoll='" + perl_d_strtoll + "'"
4172 $ WC "d_strtold='" + perl_d_strtold + "'"
4173 $ WC "usesocks='" + perl_usesocks + "'"
4174 $ WC "d_vendorlib='" + perl_d_vendorlib + "'"
4175 $ WC "vendorlibexp='" + perl_vendorlibexp + "'"
4176 $ WC "vendorlib_stem='" + perl_vendorlib_stem + "'"
4177 $ WC "d_atolf='" + perl_d_atolf + "'"
4178 $ WC "d_atoll='" + perl_d_atoll + "'"
4179 $ WC "d_bincompat5005='" + perl_d_bincompat + "'"
4180 $ WC "d_endspent='" + perl_d_endspent + "'"
4181 $ WC "d_getspent='" + perl_d_getspent + "'"
4182 $ WC "d_getspnam='" + perl_d_getspnam + "'"
4183 $ WC "d_setspent='" + perl_d_setspent + "'"
4184 $ WC "i_shadow='" + perl_i_shadow + "'"
4185 $ WC "i_socks='" + perl_i_socks + "'"
4186 $ WC "d_PRIfldbl='" + perl_d_PRIfldbl + "'"
4187 $ WC "d_PRIgldbl='" + perl_d_PRIgldbl + "'"
4188 $ WC "d_PRId64='" + perl_d_PRId64 + "'"
4189 $ WC "d_PRIu64='" + perl_d_PRIu64 + "'"
4190 $ WC "d_PRIo64='" + perl_d_PRIo64 + "'"
4191 $ WC "d_PRIx64='" + perl_d_PRIx64 + "'"
4192 $ WC "sPRIfldbl='" + perl_sPRIfldbl + "'"
4193 $ WC "sPRIgldbl='" + perl_sPRIgldbl + "'"
4194 $ WC "sPRId64='" + perl_sPRId64 + "'"
4195 $ WC "sPRIu64='" + perl_sPRIu64 + "'"
4196 $ WC "sPRIo64='" + perl_sPRIo64 + "'"
4197 $ WC "sPRIx64='" + perl_sPRIx64 + "'"
4198 $ WC "d_llseek='" + perl_d_llseek + "'"
4199 $ WC "d_iconv='" + perl_d_iconv +"'"
4200 $ WC "i_iconv='" + perl_i_iconv +"'"
4201 $ WC "inc_version_list='0'"
4202 $ WC "inc_version_list_init='0'"
4203 $ WC "uselargefiles='" + perl_uselargefiles + "'"
4204 $ WC "uselongdouble='" + perl_uselongdouble + "'"
4205 $ WC "usemorebits='" + perl_usemorebits + "'"
4206 $ WC "d_quad='" + perl_d_quad + "'"
4207 $ WC "quadtype='" + perl_quadtype + "'"
4208 $ WC "uquadtype='" + perl_uquadtype + "'"
4209 $ WC "quadkind='" + perl_quadkind + "'"
4210 $ WC "d_fs_data_s='" + perl_d_fs_data_s + "'"
4211 $ WC "d_getcwd='" + perl_d_getcwd + "'"
4212 $ WC "d_getmnt='" + perl_d_getmnt + "'"
4213 $ WC "d_sqrtl='" + perl_d_sqrtl + "'"
4214 $ WC "d_statfs_f_flags='" + perl_d_statfs_f_flags + "'"
4215 $ WC "d_statfs_s='" + perl_d_statfs_s + "'"
4216 $ WC "d_ustat='" + perl_d_ustat + "'"
4217 $ WC "d_vendorarch='" + perl_d_vendorarch + "'"
4218 $ WC "vendorarchexp='" + perl_vendorarchexp + "'"
4219 $ WC "i_sysstatfs='" + perl_i_sysstatfs + "'"
4220 $ WC "i_sysvfs='" + perl_i_sysvfs + "'"
4221 $ WC "i_ustat='" + perl_i_ustat + "'"
4222 $ WC "ivtype='" + perl_ivtype + "'"
4223 $ WC "uvtype='" + perl_uvtype + "'"
4224 $ WC "i8type='" + perl_i8type + "'"
4225 $ WC "i16type='" + perl_i16type + "'"
4226 $ WC "u8type='" + perl_u8type + "'"
4227 $ WC "u16type='" + perl_u16type + "'"
4228 $ WC "i32type='" + perl_i32type + "'"
4229 $ WC "u32type='" + perl_u32type + "'"
4230 $ WC "i64type='" + perl_i64type + "'"
4231 $ WC "u64type='" + perl_u64type + "'"
4232 $ WC "nvtype='" + perl_nvtype + "'"
4233 $ WC "ivsize='" + perl_ivsize + "'"
4234 $ WC "uvsize='" + perl_uvsize + "'"
4235 $ WC "i8size='" + perl_i8size + "'"
4236 $ WC "u8size='" + perl_u8size + "'"
4237 $ WC "i16size='" + perl_i16size + "'"
4238 $ WC "u16size='" + perl_u16size + "'"
4239 $ WC "i32size='" + perl_i32size + "'"
4240 $ WC "u32size='" + perl_u32size + "'"
4241 $ WC "i64size='" + perl_i64size + "'"
4242 $ WC "u64size='" + perl_u64size + "'"
4243 $ WC "ivdformat='" + perl_ivdformat + "'"
4244 $ WC "uvuformat='" + perl_uvuformat + "'"
4245 $ WC "uvoformat='" + perl_uvoformat + "'"
4246 $ WC "uvxformat='" + perl_uvxformat + "'"
4247 $ WC "d_vms_case_sensitive_symbols='" + d_vms_be_case_sensitive + "'"
4248 $ WC "sizesize='" + perl_sizesize + "'"
4250 $! ##WRITE NEW CONSTANTS HERE##
4254 $! Okay, we've gotten here. Build munchconfig and run it
4255 $ 'Perl_CC' munchconfig.c
4256 $ If (Needs_Opt.eqs."Yes")
4258 $ open/write OPTCHAN []munchconfig.opt
4259 $ IF ("''using_gnu_c'".eqs."Yes")
4261 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
4263 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
4265 $ link munchconfig.obj,munchconfig.opt/opt
4266 $ delete munchconfig.opt;*
4268 $ link munchconfig.obj
4271 $ echo "Doing variable substitutions on .SH files..."
4272 $ echo "Extracting config.h (with variable substitutions)"
4274 $ ! we need an fdl file
4275 $ CREATE [-]CONFIG.FDL
4278 $ CREATE /FDL=[-]CONFIG.FDL [-]CONFIG.LOCAL
4279 $ ! First spit out the header info with the local defines (to get
4280 $ ! around the 255 character command line limit)
4281 $ OPEN/APPEND CONFIG [-]config.local
4282 $ IF use_debugging_perl THEN WC "#define DEBUGGING"
4283 $ IF use_two_pot_malloc THEN WC "#define TWO_POT_OPTIMIZE"
4284 $ IF mymalloc THEN WC "#define EMBEDMYMALLOC"
4285 $ IF use_pack_malloc THEN WC "#define PACK_MALLOC"
4286 $ IF use_debugmalloc THEN WC "#define DEBUGGING_MSTATS"
4287 $ IF Using_Gnu_C THEN WC "#define GNUC_ATTRIBUTE_CHECK"
4288 $ IF (Has_Dec_C_Sockets)
4290 $ WC "#define VMS_DO_SOCKETS"
4291 $ WC "#define DECCRTL_SOCKETS"
4293 $ IF Has_Socketshr THEN WC "#define VMS_DO_SOCKETS"
4295 $! This is VMS-specific for now
4296 $ WC "#''perl_d_setenv' HAS_SETENV"
4297 $ IF d_secintgenv THEN WC "#define SECURE_INTERNAL_GETENV"
4298 $ if d_alwdeftype THEN WC "#define ALWAYS_DEFTYPES"
4301 $ WC "#define USE_64_BIT_INT"
4302 $ WC "#define USE_LONG_DOUBLE"
4304 $ IF use64bitall THEN WC "#define USE_64_BIT_ALL"
4305 $ IF be_case_sensitive THEN WC "#define VMS_WE_ARE_CASE_SENSITIVE"
4306 $ if perl_d_herrno .eqs. "undef"
4308 $ WC "#define NEED_AN_H_ERRNO"
4310 $ WC "#define HAS_ENVGETENV"
4311 $ WC "#define PERL_EXTERNAL_GLOB"
4314 $! Now build the normal config.h
4315 $ define/user sys$output [-]config.main
4316 $ mcr []munchconfig [-]config.sh [-]config_h.sh
4317 $ ! Concatenate them together
4318 $ copy [-]config.local,[-]config.main [-]config.h
4320 $ DELETE/NOLOG [-]CONFIG.MAIN;*
4321 $ DELETE/NOLOG [-]CONFIG.LOCAL;*
4322 $ DELETE/NOLOG [-]CONFIG.FDL;*
4326 $ DECC_REPLACE = "DECC=decc=1"
4328 $ DECC_REPLACE = "DECC="
4332 $ GNUC_REPLACE = "GNUC=gnuc=1"
4334 $ GNUC_REPLACE = "GNUC="
4336 $ IF Has_Dec_C_Sockets
4338 $ SOCKET_REPLACE = "SOCKET=DECC_SOCKETS=1"
4342 $ SOCKET_REPLACE = "SOCKET=SOCKETSHR_SOCKETS=1"
4344 $ SOCKET_REPLACE = "SOCKET="
4349 $ IF (VMS_VER .LES. "6.2")
4351 $ THREAD_REPLACE = "THREAD=OLDTHREADED=1"
4353 $ THREAD_REPLACE = "THREAD=THREADED=1"
4356 $ THREAD_REPLACE = "THREAD="
4360 $ MALLOC_REPLACE = "MALLOC=MALLOC=1"
4362 $ MALLOC_REPLACE = "MALLOC="
4364 $ echo "Extracting ''defmakefile' (with variable substitutions)"
4366 $ define/user sys$output 'UUmakefile
4367 $ mcr []munchconfig [-]config.sh descrip_mms.template "''DECC_REPLACE'" "''ARCH_TYPE'" "''GNUC_REPLACE'" "''SOCKET_REPLACE'" "''THREAD_REPLACE'" -
4368 "''C_Compiler_Replace'" "''MALLOC_REPLACE'" "''Thread_Live_Dangerously'" "PV=''version'" "FLAGS=FLAGS=''extra_flags'"
4369 $ echo "Extracting Build_Ext.Com (without variable substitutions)"
4370 $ Create Sys$Disk:[-]Build_Ext.Com
4371 $ Deck/Dollar="$EndOfTpl$"
4373 $! NOTE: This file is extracted as part of the VMS configuration process.
4374 $! Any changes made to it directly will be lost. If you need to make any
4375 $! changes, please edit the template in [.vms]SubConfigure.Com instead.
4376 $ def = F$Environment("Default")
4377 $ exts1 = F$Edit(p1,"Compress")
4378 $ p2 = F$Edit(p2,"Upcase,Compress,Trim")
4379 $ If F$Locate("MCR ",p2).eq.0 Then p2 = F$Extract(3,255,p2)
4380 $ miniperl = "$" + F$Search(F$Parse(p2,".Exe"))
4382 $ if f$type('p3') .nes. "" then makeutil = 'p3'
4383 $ targ = F$Edit(p4,"Lowercase")
4386 $ ext = F$Element(i," ",p1)
4387 $ If ext .eqs. " " Then Goto done
4388 $ Define/User Perl_Env_Tables CLISYM_LOCAL
4390 ($extdir = $ENV{'ext'}) =~ s/::/./g;
4392 if ($extdir =~ /^vms/i) { $extdir =~ s/vms/.vms.ext/i; }
4393 else { $extdir = ".ext.$extdir"; }
4394 ($ENV{'extdir'} = "[$extdir]");
4395 ($ENV{'up'} = ('-') x ($extdir =~ tr/././));
4396 $ Set Default &extdir
4398 $ If F$Locate("clean",targ) .eqs. F$Length(targ)
4400 $ Write Sys$Output "Building ''ext' . . ."
4401 $ On Error Then Goto done
4402 $ If F$Search("Descrip.MMS") .eqs. ""
4406 $ If F$CvTime(F$File("Descrip.MMS","rdt")) .lts. -
4407 F$CvTime(F$File("Makefile.PL","rdt")) Then redesc = 1
4410 $ Write Sys$Output "''targ'ing ''ext' . . ."
4411 $ On Error Then Continue
4414 miniperl "-I[''up'.lib]" Makefile.PL "INST_LIB=[''up'.lib]" "INST_ARCHLIB=[''up'.lib]"
4428 $! Clean up after ourselves
4429 $ DELETE/NOLOG/NOCONFIRM munchconfig.exe;
4430 $ DELETE/NOLOG/NOCONFIRM munchconfig.obj;