~ubuntu-branches/ubuntu/trusty/curl/trusty-proposed

« back to all changes in this revision

Viewing changes to packages/vms/build_vms.com

  • Committer: Package Import Robot
  • Author(s): Ubuntu Merge-o-Matic
  • Date: 2013-08-12 15:39:32 UTC
  • mfrom: (3.4.41 sid)
  • Revision ID: package-import@ubuntu.com-20130812153932-pmn0qwvy9vghe66x
Tags: 7.32.0-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
* Fixes freeipa-client join. (LP: #1220928)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
$!              build done.)
19
19
$!
20
20
$!    64        Compile with 64-bit pointers.
21
 
$!              Note, you must match the pointer size that the OpenSSL
22
 
$!              shared image expects.
23
 
$!              Currently curl is not building properly with 64 bit pointers
24
 
$!              on VMS because it is trying to cast pointers to 32 bit
25
 
$!              integers.
 
21
$!              Note, you must match the pointer size that the OpenSSL
 
22
$!              shared image expects.
 
23
$!              Currently curl is not building properly with 64 bit pointers
 
24
$!              on VMS because it is trying to cast pointers to 32 bit
 
25
$!              integers and some OpenVMS library routines called by curl
 
26
$!              do not yet support 64 bit pointers.
26
27
$!    CCQUAL=x  Add "x" to the C compiler qualifiers.
27
 
$!              Default qualifiers are:
28
 
$!              /standard=relaxed
29
 
$!              /names=(as_is, shortened)
30
 
$!              /repository=[.'arch']
31
 
$!              /nested_include_directory=none
32
 
$!              /define=(_LARGEFILE=1,_USE_STD_STAT=1) (non-vax)
33
 
$!              /float=ieee/ieee_mode=denorm_results (non-vax)
 
28
$!              Default qualifiers are:
 
29
$!                  /standard=relaxed
 
30
$!                  /names=(as_is, shortened)
 
31
$!                  /repository=[.'arch']
 
32
$!                  /nested_include_directory=none
 
33
$!                  /define=(_LARGEFILE=1,_USE_STD_STAT=1) (non-vax)
 
34
$!                  /float=ieee/ieee_mode=denorm_results (non-vax)
34
35
$!    DEBUG     Compile debug and nooptimize
35
 
$!              Alpha/IA64 always compiles /debug.
36
 
$!              Always link a debug image.
 
36
$!              Alpha/IA64 always compiles /debug.
 
37
$!              Always link a debug image.
37
38
$!    NOIEEE    Do not use IEEE floating point.  (Alpha/I64)
38
 
$!              VAX must use DFLOAT
 
39
$!              VAX must always use DFLOAT
39
40
$!    NOLARGE   Disable large-file support if large file support available.
40
 
$!              (Non-VAX, VMS >= V7.2.)
 
41
$!              (Non-VAX, VMS >= V7.2.)
41
42
$!    NOLDAP    Disable LDAP support if LDAP is available.
42
43
$!    NOKERBEROS   Disable Kerberos support if Kerberos is available.
43
44
$!    LIST      Create C compiler listings and linker maps.
44
 
$!              /list/show=(expan,includ)/machine
 
45
$!                 /list/show=(expan,includ)/machine
45
46
$!    FULLLIST  Full detailed listing.
46
 
$!              /list/show=(all, nomessages)/machine
 
47
$!                 /list/show=(all, nomessages)/machine
47
48
$!    NOHPSSL   Don't use HP SSL, even if available.
48
 
$!              Note, you must match the pointer size that the OpenSSL
49
 
$!              shared image expects.  This procedure will select the
50
 
$!              correct HP OpenSSL image.
 
49
$!              Note, you must match the pointer size that the OpenSSL
 
50
$!              shared image expects.  This procedure will select the
 
51
$!              correct HP OpenSSL image.
51
52
$!    NOSSL     Don't use any SSL, even if available.
52
53
$!    OSSLOLB   Use OpenSSL object libraries (.OLB), even if shared
53
54
$!              images (.EXE) are available.
54
 
$!    NOZLIB    Don't use GNV$ZLIB shared image even if available.
 
55
$!    NOZLIB    Don't use GNV$ZLIB shared image even if available.
 
56
$!    REALCLEAN Delete product files for all host architectures.  (No
 
57
$!              build done.)  Alias for CLEAN_ALL
55
58
$!
56
59
$! DCL Symbols:
57
60
$!
108
111
$!                   line-too-long problems.
109
112
$!                   Changed "vo_c" messages to show the CC qualifiers
110
113
$!                   once, not with every compile command.
111
 
$! 01-Jan-2013  J. Malmberg
112
 
$!                   VMS build procedures need to be able to work with
113
 
$!                   the default set to a search list, with created or
114
 
$!                   modified files only in the first member of the search
115
 
$!                   list.
116
 
$!                   Whitespace change to be more compatible with current
117
 
$!                   practices.
118
 
$!                   One pass option parsing instead of loop.
119
 
$!                   GNV ZLIB shared image support.
120
 
$!                   KERBEROS support where available.
121
 
$!                   LDAP default to on where available
122
 
$!                   LARGEFILE default to on where available
123
 
$!                   IEEE float default to on where available.
124
 
$!                   Generate the curl_config.h file from system inspection.
125
 
$!                   Linker finds ldap with out option file.
 
114
$! 01-Jan-2013  J. Malmberg
 
115
$!                   VMS build procedures need to be able to work with
 
116
$!                   the default set to a search list, with created or
 
117
$!                   modified files only in the first member of the search
 
118
$!                   list.
 
119
$!                   Whitespace change to be more compatible with current
 
120
$!                   practices.
 
121
$!                   One pass option parsing instead of loop.
 
122
$!                   GNV ZLIB shared image support.
 
123
$!                   KERBEROS support where available.
 
124
$!                   LDAP default to on where available
 
125
$!                   LARGEFILE default to on where available
 
126
$!                   IEEE float default to on where available.
 
127
$!                   Generate the curl_config.h file from system inspection.
 
128
$!                   Linker finds ldap with out option file.
126
129
$! 13-Mar-2013, Tom Grace
127
130
$!                   Added missing slash in cc_full_list.
128
131
$!                   Removed unwanted extra quotes inside symbol tool_main
133
136
$!                   set to exended in versions of VMS greater than 7.3-1.
134
137
$!                   Remove curlbuild.h generation as it should be pre-built
135
138
$!                   in the curl release or daily tarball.
 
139
$! 12-Jul-2013, John Malmberg
 
140
$!                   Adjust to find and use ZLIB from the Jean-Francois
 
141
$!                   Pieronne shared image and newer GNV ZLIB kit that
 
142
$!                   is upward compatible with Jean-Francois's kit.
 
143
$!                   Remove tabs from file.
 
144
$!                   Fixed DCL formatting as follows:
 
145
$!                      * Labels have no space after leading $.
 
146
$!                      * 1 space after $ for first level.
 
147
$!                      * 3 spaces after $ for second level.  Line start + 4.
 
148
$!                      * 7 spaces after $ for third level.  Line start + 8.
 
149
$!                      * Each level after that indents 4 characters.
 
150
$!                      * then/else/endif same indentation as if statement.
136
151
$!
137
152
$!===========================================================================
138
153
$!
297
312
$ args_len = f$length(args)
298
313
$ args_lower_len = f$length(args_lower)
299
314
$!
 
315
$ clean = 0
300
316
$ if f$locate(",clean,", args_lower) .lt. args_lower_len
301
 
$    then
302
 
$       prods = "''exedir'*.*;*"
 
317
$ then
 
318
$   clean = 1
 
319
$ endif
 
320
$ clean_all = 0
 
321
$ if f$locate(",clean_all,", args_lower) .lt. args_lower_len
 
322
$ then
 
323
$    clean = 1
 
324
$    clean_all = 1
 
325
$ endif
 
326
$ if f$locate(",realclean,", args_lower) .lt. args_lower_len
 
327
$ then
 
328
$    clean = 1
 
329
$    clean_all = 1
 
330
$ endif
 
331
$!
 
332
$ if clean .ne. 0
 
333
$ then
 
334
$   prods = "''exedir'*.*;*"
303
335
$   if (f$search(prods) .nes. "") then delete /log 'prods'
304
336
$   prods = proc_dev_dir + arch_name + ".DIR;1"
305
337
$   if (f$search(prods) .nes. "") then set prot=o:rwed 'prods'
306
338
$   if (f$search(prods) .nes. "") then delete /log 'prods'
307
339
$   file = "[]config_vms.h"
308
340
$   if f$search(file) .nes. "" then delete/log 'file';*
 
341
$   file = "[]config.h"
 
342
$   if f$search(file) .nes. "" then delete/log 'file';*
 
343
$   file = "[]curl-config."
 
344
$   if f$search(file) .nes. "" then delete/log 'file';*
 
345
$   file = "[]libcurl.pc"
 
346
$   if f$search(file) .nes. "" then delete/log 'file';*
 
347
$   file = "[.lib.cxx_repository]cxx$demangler_db."
 
348
$   if f$search(file) .nes. "" then delete/log 'file';*
 
349
$   file = "[.src.cxx_repository]cxx$demangler_db."
 
350
$   if f$search(file) .nes. "" then delete/log 'file';*
309
351
$   file = "[.lib]config_vms.h"
310
352
$   if f$search(file) .nes. "" then delete/log 'file';*
311
 
$       goto Common_Exit
312
 
$    endif
313
 
$!
314
 
$ if f$locate(",clean_all,", args_lower) .lt. args_lower_len
315
 
$    then
 
353
$   file = "[...]curl_crtl_init"
 
354
$   if f$search("''file'.lis") .nes. "" then delete/log 'file'.lis;*
 
355
$   if f$search("''file'.obj") .nes. "" then delete/log 'file'.obj;*
 
356
$   file = "[...]gnv$curlmsg"
 
357
$   if f$search("''file'.lis") .nes. "" then delete/log 'file'.lis;*
 
358
$   if f$search("''file'.obj") .nes. "" then delete/log 'file'.obj;*
 
359
$   if f$search("''file'.exe") .nes. "" then delete/log 'file'.exe;*
 
360
$   file = "[...]curlmsg"
 
361
$   if f$search("''file'.lis") .nes. "" then delete/log 'file'.lis;*
 
362
$   if f$search("''file'.obj") .nes. "" then delete/log 'file'.obj;*
 
363
$   if f$search("''file'.exe") .nes. "" then delete/log 'file'.exe;*
 
364
$   file = "[...]report_openssl_version"
 
365
$   if f$search("''file'.lis") .nes. "" then delete/log 'file'.lis;*
 
366
$   if f$search("''file'.obj") .nes. "" then delete/log 'file'.obj;*
 
367
$   if f$search("''file'.exe") .nes. "" then delete/log 'file'.exe;*
 
368
$   file = "[...]hp_ssl_release_info.txt"
 
369
$   if f$search(file) .nes. "" then delete/log 'file';*
 
370
$   file = "[...]gnv_libcurl_xfer.mar_exact"
 
371
$   if f$search(file) .nes. "" then delete/log 'file';*
 
372
$   file = "[...]gnv_libcurl_xfer"
 
373
$   if f$search("''file'.lis") .nes. "" then delete/log 'file'.lis;*
 
374
$   if f$search("''file'.obj") .nes. "" then delete/log 'file'.obj;*
 
375
$   if f$search("''file'.opt") .nes. "" then delete/log 'file'.opt;*
 
376
$   file = "[...]curl-*_original_src.bck"
 
377
$   if f$search(file) .nes. "" then delete/log 'file';*
 
378
$   file = "[...]curl-*_vms_src.bck"
 
379
$   if f$search(file) .nes. "" then delete/log 'file';*
 
380
$   file = "[...]curl-*.release_notes"
 
381
$   if f$search(file) .nes. "" then delete/log 'file';*
 
382
$   file = "[...]*curl*.pcsi$desc"
 
383
$   if f$search(file) .nes. "" then delete/log 'file';*
 
384
$   file = "[...]*curl*.pcsi$text"
 
385
$   if f$search(file) .nes. "" then delete/log 'file';*
 
386
$!
 
387
$   if clean_all .eq. 0 then goto Common_Exit
 
388
$ endif
 
389
$!
 
390
$!
 
391
$ if clean_all .ne. 0
 
392
$ then
 
393
$   file = "[...]gnv$libcurl"
 
394
$   if f$search("''file'.exe") .nes. "" then delete/log 'file'.exe;*
 
395
$   if f$search("''file'.map") .nes. "" then delete/log 'file'.map;*
 
396
$   if f$search("''file'.dsf") .nes. "" then delete/log 'file'.dsf;*
 
397
$   file = "[.src]curl"
 
398
$   if f$search("''file'.exe") .nes. "" then delete/log 'file'.exe;*
 
399
$   if f$search("''file'.map") .nes. "" then delete/log 'file'.map;*
 
400
$   if f$search("''file'.dsf") .nes. "" then delete/log 'file'.dsf;*
316
401
$   prods = proc_dev_dir - delim + ".ALPHA" + delim + "*.*;*"
317
402
$   if (f$search(prods) .nes. "") then delete /log 'prods'
318
403
$   prods = proc_dev_dir + "ALPHA" + ".DIR;1"
328
413
$   prods = proc_dev_dir + "VAX"+ ".DIR;1"
329
414
$   if (f$search(prods) .nes. "") then set prot=o:rwed 'prods'
330
415
$   if (f$search(prods) .nes. "") then delete /log 'prods'
331
 
$       goto Common_Exit
332
 
$    endif
 
416
$   file = "[...]macro32_exactcase"
 
417
$   if f$search("''file'.exe") .nes. "" then delete/log 'file'.exe;*
 
418
$   if f$search("''file'.jnl") .nes. "" then delete/log 'file'.jnl;*
 
419
$   goto Common_Exit
 
420
$ endif
333
421
$!
334
422
$ build_64 = 0
335
423
$ if f$locate(",64,", args_lower) .lt. args_lower_len
336
 
$    then
 
424
$ then
337
425
$   cc_qual1 = cc_qual1 + " /POINTER = 64"
338
426
$   build_64 = 1
339
 
$    endif
 
427
$ endif
340
428
$!
341
429
$ args_loc = f$locate(",ccqual=", args_lower)
342
430
$ if args_loc .lt. args_lower_len
343
 
$    then
 
431
$ then
344
432
$   arg = f$extract(args_loc + 1, args_lower_len, args_lower)
345
433
$   arg_val = f$element(0, ",", arg)
346
434
$   cc_qual2 = f$element(1, "=", arg_val);
347
 
$    endif
 
435
$ endif
348
436
$!
349
437
$! On Alpha/IA64 no size penalty for compiling /debug/optimize
350
438
$! by default.
351
439
$ if f$locate(",debug,", args_lower) .lt. args_lower_len
352
 
$    then
 
440
$ then
353
441
$   cc_debug = "/debug/nooptimize"
354
 
$       goto arg_loop_end
355
 
$    endif
 
442
$ endif
356
443
$!
357
444
$! We normally want IEEE float if it is available.  Programs that are
358
445
$! calling libcurl will typically prefer IEEE behavior, unless on the
359
446
$! VAX where we have no choice.
360
447
$!
361
448
$ if f$locate(",noieee,", args_lower) .lt. args_lower_len
362
 
$    then
 
449
$ then
363
450
$   cc_float = ""
364
 
$       goto arg_loop_end
365
 
$    endif
 
451
$ endif
366
452
$!
367
453
$! Normally we want large file if it is available.
368
454
$ if f$locate(",nolarge,", args_lower) .lt. args_lower_len
369
 
$    then
 
455
$ then
370
456
$   write sys$output "Handling of large files disabled."
371
457
$   cc_large = ""
372
 
$       endif
 
458
$ endif
373
459
$ if cc_large .nes. ""
374
460
$ then
375
461
$   cc_defs = cc_defs + cc_large
376
 
$    endif
 
462
$ endif
377
463
$!
378
464
$ if f$locate(",noldap,", args_lower) .lt. args_lower_len
379
 
$    then
 
465
$ then
380
466
$   ldap = 0
381
 
$    endif
 
467
$ endif
382
468
$!
383
469
$ if f$locate(",list,", args_lower) .lt. args_lower_len
384
 
$    then
385
 
$       list = 1
 
470
$ then
 
471
$   list = 1
386
472
$ endif
387
473
$ if f$locate(",fulllist,", args_lower) .lt. args_lower_len
388
474
$ then
389
475
$    list = 1
390
476
$    full_list = 1
391
 
$    endif
 
477
$ endif
392
478
$!
393
479
$ if f$locate(",nohpssl,", args_lower) .lt. args_lower_len
394
 
$    then
395
 
$       nohpssl = 1
396
 
$    endif
 
480
$ then
 
481
$   nohpssl = 1
 
482
$ endif
397
483
$!
398
484
$ if f$locate(",nossl,", args_lower) .lt. args_lower_len
399
 
$    then
400
 
$       nossl = 1
401
 
$    endif
 
485
$ then
 
486
$   nossl = 1
 
487
$ endif
402
488
$!
403
489
$ if f$locate(",osslolb,", args_lower) .lt. args_lower_len
404
 
$    then
405
 
$       osslolb = 1
406
 
$    endif
 
490
$ then
 
491
$    osslolb = 1
 
492
$ endif
407
493
$!
408
494
$ if f$locate(",nozlib,", args_lower) .lt. args_lower_len
409
495
$ then
427
513
$ else
428
514
$   msg_qual = msg_qual + "/list='objdir'"
429
515
$   if (full_list .ne. 0)
430
 
$ then
431
 
$       cc_qual1 = cc_qual1 + cc_full_list
 
516
$   then
 
517
$       cc_qual1 = cc_qual1 + cc_full_list
432
518
$   else
433
 
$       cc_qual1 = cc_qual1 + cc_list
 
519
$       cc_qual1 = cc_qual1 + cc_list
434
520
$   endif
435
521
$ endif
436
522
$ cc_qual1 = cc_qual1 + cc_names + cc_float + cc_debug
448
534
$ libcryptoshr_line = ""
449
535
$ if (.not. nossl)
450
536
$ then
451
 
$    if (f$trnlnm("OPENSSL") .nes. "")
452
 
$    then
453
 
$!       cc_defs = cc_defs + ", USE_SSLEAY=1"
454
 
$       if ((f$trnlnm("SSL$INCLUDE") .nes. "") .and. (.not. nohpssl))
455
 
$       then
456
 
$!         Use HP SSL.
457
 
$          hpssl = 1
 
537
$   if (f$trnlnm("OPENSSL") .nes. "")
 
538
$   then
 
539
$!        cc_defs = cc_defs + ", USE_SSLEAY=1"
 
540
$        if ((f$trnlnm("SSL$INCLUDE") .nes. "") .and. (.not. nohpssl))
 
541
$        then
 
542
$!          Use HP SSL.
 
543
$           hpssl = 1
458
544
$!
459
 
$!          Older SSL only has lib*_shr32 images
 
545
$!          Older SSL only has lib*_shr32 images
460
546
$!-----------------------------------------------
461
 
$           libsslshr = "sys$share:ssl$libssl_shr"
462
 
$           if (f$search("''libsslshr'.exe") .eqs. "") .or. (.not. build_64)
463
 
$           then
464
 
$               libsslshr = libsslshr + "32"
465
 
$           endif
466
 
$           libcryptoshr = "sys$share:ssl$libcrypto_shr"
467
 
$           if (f$search("''libcryptoshr'.exe") .eqs. "") .or. (.not. build_64)
468
 
$           then
469
 
$               libcryptoshr = libcryptoshr + "32"
470
 
$           endif
471
 
$           libsslshr_line = "''libsslshr'.exe/share"
472
 
$           libcryptoshr_line = "''libcryptoshr'.exe/share"
 
547
$           libsslshr = "sys$share:ssl$libssl_shr"
 
548
$           if (f$search("''libsslshr'.exe") .eqs. "") .or. (.not. build_64)
 
549
$           then
 
550
$               libsslshr = libsslshr + "32"
 
551
$           endif
 
552
$           libcryptoshr = "sys$share:ssl$libcrypto_shr"
 
553
$           if (f$search("''libcryptoshr'.exe") .eqs. "") .or. (.not. build_64)
 
554
$           then
 
555
$               libcryptoshr = libcryptoshr + "32"
 
556
$           endif
 
557
$           libsslshr_line = "''libsslshr'.exe/share"
 
558
$           libcryptoshr_line = "''libcryptoshr'.exe/share"
473
559
$       else
474
 
$!         Use OpenSSL.  Assume object libraries, unless shared images
475
 
$!         are found (and not prohibited).
476
 
$!         TODO: We do not know how to automatically choose based on the
477
 
$!         pointer size.
 
560
$!          Use OpenSSL.  Assume object libraries, unless shared images
 
561
$!          are found (and not prohibited).
 
562
$!          TODO: We do not know how to automatically choose based on the
 
563
$!          pointer size.
478
564
$!
479
 
$          openssl = 1
480
 
$           libsslshr_line = "ssllib:libssl.olb/lib"
481
 
$           libcryptoshr_line = "ssllib:libcrypto.olb/lib"
482
 
$          ssl_opt = ", ssllib:libssl.olb /library" + -
483
 
            ", ssllib:libcrypto.olb /library"
484
 
$          if (osslolb .eq. 0)
485
 
$          then
486
 
               if ((f$search("ssllib:ssl_libcrypto.exe") .nes. "")  .and. -
487
 
                  (f$search("ssllib:ssl_libssl.exe") .nes. ""))
488
 
$             then
489
 
$!               OpenSSL shared images with "SSL_xxx.EXE names.
490
 
$                openssl = 2
491
 
$                  libsslshr_line = "ssllib:ssl_libssl_shr.exe/share"
492
 
$                  libcryptoshr_line = "ssllib:ssl_libcrypto_shr.exe/share"
493
 
$             else
494
 
$                  if ((f$search("ssllib:libcrypto.exe") .nes. "") .and. -
495
 
                      (f$search("ssllib:libssl.exe") .nes. ""))
 
565
$           openssl = 1
 
566
$           libsslshr_line = "ssllib:libssl.olb/lib"
 
567
$           libcryptoshr_line = "ssllib:libcrypto.olb/lib"
 
568
$           ssl_opt = ", ssllib:libssl.olb /library" + -
 
569
                ", ssllib:libcrypto.olb /library"
 
570
$           if (osslolb .eq. 0)
 
571
$           then
 
572
                if ((f$search("ssllib:ssl_libcrypto.exe") .nes. "")  .and. -
 
573
                    (f$search("ssllib:ssl_libssl.exe") .nes. ""))
496
574
$                then
497
 
$!                  OpenSSL shared images with "xxx.EXE names.
498
 
$                   openssl = 3
499
 
$                      libsslshr_line = "ssllib:libssl_shr.exe/share"
500
 
$                      libcryptoshr_line = "ssllib:libcrypto_shr.exe/share"
 
575
$!                   OpenSSL shared images with "SSL_xxx.EXE names.
 
576
$                    openssl = 2
 
577
$                    libsslshr_line = "ssllib:ssl_libssl_shr.exe/share"
 
578
$                    libcryptoshr_line = "ssllib:ssl_libcrypto_shr.exe/share"
 
579
$                else
 
580
$                    if ((f$search("ssllib:libcrypto.exe") .nes. "") .and. -
 
581
                         (f$search("ssllib:libssl.exe") .nes. ""))
 
582
$                    then
 
583
$!                       OpenSSL shared images with "xxx.EXE names.
 
584
$                        openssl = 3
 
585
$                        libsslshr_line = "ssllib:libssl_shr.exe/share"
 
586
$                        libcryptoshr_line = "ssllib:libcrypto_shr.exe/share"
 
587
$                    endif
501
588
$                endif
502
 
$             endif
503
 
$          endif
 
589
$           endif
504
590
$       endif
505
 
$    endif
 
591
$   endif
506
592
$ endif
507
593
$!
508
594
$! LDAP.
537
623
$! LIBZ
538
624
$ libzshr_line = ""
539
625
$ try_shr = "gnv$libzshr"
 
626
$ if build_64
 
627
$ then
 
628
$!  First look for 64 bit
 
629
$   if f$search("''try_shr'64") .eqs. ""
 
630
$   then
 
631
$!      Second look for the J.F. Pieronne 64 bit shared image
 
632
$       try_shr = "LIBZ_SHR64"
 
633
$       if f$search(try_shr) .eqs. "" then nozlib = 1
 
634
$   endif
 
635
$ else
 
636
$!  First look for 32 bit
 
637
$   if f$search("''try_shr'32") .eqs. ""
 
638
$   then
 
639
$!      Second look for old 32 bit image
 
640
$       if f$search(try_shr) .eqs. ""
 
641
$       then
 
642
$!          Third look for the J.F. Pieronne 32 bit shared image
 
643
$           try_shr = "LIBZ_SHR32"
 
644
$           if f$search(try_shr) .eqs. "" then nozlib = 1
 
645
$       endif
 
646
$   endif
 
647
$ endif
540
648
$ if f$search(try_shr) .eqs. ""
541
649
$ then
542
650
$   nozlib = 1
544
652
$ curl_sys_zlibinc = ""
545
653
$ if nozlib .eq. 0
546
654
$ then
547
 
$   'vo_c' "%CURL-I-BLDGNVLIBZ, building with GNV LIBZ support"
548
655
$   libzshr_line = "''try_shr'/share"
549
 
$   curl_sys_zlibinc = "GNV$ZLIB_INCLUDE:"
 
656
$   if f$locate("LIBZ", try_shr) .eq. 0
 
657
$   then
 
658
$       'vo_c' "%CURL-I-BLDJFPLIBZ, building with JFP LIBZ support"
 
659
$       curl_sys_zlibinc = "LIBZ:"
 
660
$   else
 
661
$       'vo_c' "%CURL-I-BLDGNVLIBZ, building with GNV LIBZ support"
 
662
$       curl_sys_zlibinc = "GNV$ZLIB_INCLUDE:"
 
663
$   endif
550
664
$ endif
551
665
$!
552
 
$!
553
666
$! Form CC qualifiers.
554
667
$!
555
668
$ cc_defs = "/define = (''cc_defs')"
591
704
$!
592
705
$ if (openssl .ne. 0)
593
706
$ then
594
 
$    ssllib = f$trnlnm("ssllib")
595
 
$    if (ssllib .eqs. "")
596
 
$    then
597
 
$        ssllib = "(undefined)"
598
 
$    endif
599
 
$    'vo_c' "   SSLLIB = ''ssllib'"
 
707
$   ssllib = f$trnlnm("ssllib")
 
708
$   if (ssllib .eqs. "")
 
709
$   then
 
710
$       ssllib = "(undefined)"
 
711
$   endif
 
712
$   'vo_c' "   SSLLIB = ''ssllib'"
600
713
$!
601
714
$! TODO: Why are we translating the logical name?
602
715
$! The logical aname used to find the shared image should just be used
603
716
$! as translating it could result in the wrong location at run time.
604
 
$    if (openssl .eq. 1)
605
 
$    then
 
717
$   if (openssl .eq. 1)
 
718
$   then
606
719
$       ossl_lib1 = f$trnlnm("ssllib")+ "LIBSSL.OLB"
607
720
$       ossl_lib2 = f$trnlnm("ssllib")+ "LIBCRYPTO.OLB"
608
721
$       msg = "object libraries"
609
 
$    else
 
722
$   else
610
723
$       if (openssl .eq. 2)
611
724
$       then
612
 
$          ossl_lib1 = f$trnlnm("ssllib")+ "SSL_LIBSSL.EXE"
613
 
$          ossl_lib2 = f$trnlnm("ssllib")+ "SSL_LIBCRYPTO.EXE"
 
725
$           ossl_lib1 = f$trnlnm("ssllib")+ "SSL_LIBSSL.EXE"
 
726
$           ossl_lib2 = f$trnlnm("ssllib")+ "SSL_LIBCRYPTO.EXE"
614
727
$       else
615
 
$          ossl_lib1 = f$trnlnm("ssllib")+ "LIBSSL.EXE"
616
 
$          ossl_lib2 = f$trnlnm("ssllib")+ "LIBCRYPTO.EXE"
 
728
$           ossl_lib1 = f$trnlnm("ssllib")+ "LIBSSL.EXE"
 
729
$           ossl_lib2 = f$trnlnm("ssllib")+ "LIBCRYPTO.EXE"
617
730
$       endif
618
731
$       msg = "shared images"
619
 
$    endif
620
 
$    if ((f$search(ossl_lib1) .eqs. "") .or. -
621
 
      (f$search(ossl_lib2) .eqs. ""))
622
 
$    then
 
732
$   endif
 
733
$   if ((f$search(ossl_lib1) .eqs. "") .or. -
 
734
        (f$search(ossl_lib2) .eqs. ""))
 
735
$   then
623
736
$       write sys$output "Can't find OpenSSL ''msg':"
624
737
$       write sys$output "   ''ossl_lib1'"
625
738
$       write sys$output "   ''ossl_lib2'"
626
739
$       goto Common_Exit
627
 
$    endif
 
740
$   endif
628
741
$ endif
629
742
$!
630
743
$! Define the "curl" (process) logical name for "#include <curl/xxx.h>".
632
745
$ curl = f$trnlnm("curl", "LNM$PROCESS")
633
746
$ if (curl .nes. "")
634
747
$ then
635
 
$    write sys$output ""
636
 
$    write sys$output -
 
748
$   write sys$output ""
 
749
$   write sys$output -
637
750
 "Process logical name ""curl"" is already defined, but this procedure"
638
 
$    write sys$output -
 
751
$   write sys$output -
639
752
 "would override that definition.  Use a command like"
640
 
$    write sys$output -
 
753
$   write sys$output -
641
754
 "      deassign /process curl"
642
 
$    write sys$output -
 
755
$   write sys$output -
643
756
 "to cancel that logical name definition, and then and re-run this procedure."
644
 
$    write sys$output ""
645
 
$    goto Common_Exit
 
757
$   write sys$output ""
 
758
$   goto Common_Exit
646
759
$ endif
647
760
$ curl_logical = top_dev_dir + ".include.curl" + delim
648
761
$ curl_sys_inc2 = curl_logical
653
766
$!
654
767
$! call MoveIfDiff [.lib]config-vms.h 'objdir'curl_config.h
655
768
$!
656
 
$conf_params = ""
657
 
$if nossl .ne. 0 then conf_params = conf_params + ",nossl"
658
 
$if nohpssl .ne. 0 then conf_params = conf_params + ",nohpssl,"
659
 
$if ldap .eq. 0 then conf_params = conf_params + ",noldap,"
660
 
$if nozlib .ne. 0 then conf_params = conf_params + ",nozlib,"
661
 
$if nokerberos .ne. 0 then conf_params = conf_params + ",nokerberos"
662
 
$conf_params = conf_params - ","
663
 
$!
664
 
$!
665
 
$new_conf = f$search("''objdir'curl_config.h")
666
 
$if new_conf .eqs. ""
667
 
$then
 
769
$ conf_params = ""
 
770
$ if nossl .ne. 0 then conf_params = conf_params + ",nossl"
 
771
$ if nohpssl .ne. 0 then conf_params = conf_params + ",nohpssl,"
 
772
$ if ldap .eq. 0 then conf_params = conf_params + ",noldap,"
 
773
$ if nozlib .ne. 0 then conf_params = conf_params + ",nozlib,"
 
774
$ if nokerberos .ne. 0 then conf_params = conf_params + ",nokerberos"
 
775
$ conf_params = conf_params - ","
 
776
$!
 
777
$!
 
778
$ new_conf = f$search("''objdir'curl_config.h")
 
779
$ if new_conf .eqs. ""
 
780
$ then
668
781
$!   set ver
669
782
$   write sys$output "Generating curl custom config_vms.h"
670
783
$   @'proc_dev_dir'generate_config_vms_h_curl.com ''conf_params'
673
786
$   conf_in = f$search("[.lib]curl_config*.*in")
674
787
$   if conf_in .eqs. ""
675
788
$   then
676
 
$       write sys$output "Can not find [.lib]curl_config*.*in file!"
677
 
$       goto common_exit
 
789
$       write sys$output "Can not find [.lib]curl_config*.*in file!"
 
790
$       goto common_exit
678
791
$   endif
679
792
$   @'proc_dev_dir'config_h.com 'conf_in'
680
793
$   copy config.h 'objdir'curl_config.h
681
794
$   delete config.h;
682
795
$!   set nover
683
 
$endif
 
796
$ endif
684
797
$!
685
798
$!
686
799
$!
706
819
$!
707
820
$ if (openssl .ne. 0)
708
821
$ then
709
 
$    if (openssl .eq. 1)
710
 
$    then
 
822
$   if (openssl .eq. 1)
 
823
$   then
711
824
$       'vo_l' "%CURL-I-LINK_OSSL, linking with OpenSSL (object library)"
712
 
$    else
 
825
$   else
713
826
$       'vo_l' "%CURL-I-LINK_HPSSL, linking with OpenSSL (shared image)"
714
 
$    endif
 
827
$   endif
715
828
$ else
716
 
$    if (hpssl)
717
 
$    then
 
829
$   if (hpssl)
 
830
$   then
718
831
$       'vo_l' "%CURL-I-LINK_HPSSL, linking with HP SSL"
719
 
$    else
 
832
$   else
720
833
$       'vo_l' "%CURL-I-LINK_NOSSL, linking with NO SSL support"
721
 
$    endif
 
834
$   endif
722
835
$ endif
723
836
$!
724
837
$!
725
838
$! GNV helper files for building the test curl binary.
726
839
$!-----------------------------------------------
727
 
$create 'exedir'gnv$curl.opt
728
 
$open/append opt 'exedir'gnv$curl.opt
729
 
$if libzshr_line .nes. "" then write opt libzshr_line
730
 
$if gssrtlshr_line .nes. "" then write opt gssrtlshr_line
731
 
$if libcryptoshr_line .nes. "" then write opt libcryptoshr_line
732
 
$if libsslshr_line .nes. "" then write opt libsslshr_line
733
 
$close opt
 
840
$ create 'exedir'gnv$curl.opt
 
841
$ open/append opt 'exedir'gnv$curl.opt
 
842
$ if libzshr_line .nes. "" then write opt libzshr_line
 
843
$ if gssrtlshr_line .nes. "" then write opt gssrtlshr_line
 
844
$ if libcryptoshr_line .nes. "" then write opt libcryptoshr_line
 
845
$ if libsslshr_line .nes. "" then write opt libsslshr_line
 
846
$ close opt
734
847
$!
735
848
$!
736
849
$! Create the libcurl
737
850
$!------------------------------------------------------
738
 
$create 'exedir'gnv_libcurl_linker.opt
739
 
$open/append opt 'exedir'gnv_libcurl_linker.opt
740
 
$if libzshr_line .nes. "" then write opt libzshr_line
741
 
$if gssrtlshr_line .nes. "" then write opt gssrtlshr_line
742
 
$if libcryptoshr_line .nes. "" then write opt libcryptoshr_line
743
 
$if libsslshr_line .nes. "" then write opt libsslshr_line
744
 
$close opt
 
851
$ create 'exedir'gnv_libcurl_linker.opt
 
852
$ open/append opt 'exedir'gnv_libcurl_linker.opt
 
853
$ if libzshr_line .nes. "" then write opt libzshr_line
 
854
$ if gssrtlshr_line .nes. "" then write opt gssrtlshr_line
 
855
$ if libcryptoshr_line .nes. "" then write opt libcryptoshr_line
 
856
$ if libsslshr_line .nes. "" then write opt libsslshr_line
 
857
$ close opt
745
858
$!
746
859
$!
747
860
$! If we are not on VAX, then we want the debug symbol table in
783
896
   'objdir'curlsrc.olb /library /include = ('tool_main', curlmsg), -
784
897
   'objdir'curllib.olb /library, -
785
898
   'exedir'gnv$curl.opt/opt
786
 
$set nover
 
899
$ set nover
787
900
$!
788
901
$ goto Common_Exit
789
902
$!
792
905
$! via P3.  Exclude items in P4.
793
906
$!
794
907
$build:   subroutine
795
 
$    build_def = f$environment("default")
796
 
$    on control_y then goto EndLoop ! SS$_CONTROLY
797
 
$    sts = 1 ! SS$_NORMAL.
798
 
$!    set noon
799
 
$    set default 'p1'
800
 
$    search = p2
801
 
$    reset = f$search("reset")
802
 
$    if f$search( p3) .eqs. ""
803
 
$    then
 
908
$   build_def = f$environment("default")
 
909
$   on control_y then goto EndLoop ! SS$_CONTROLY
 
910
$   sts = 1 ! SS$_NORMAL.
 
911
$!   set noon
 
912
$   set default 'p1'
 
913
$   search = p2
 
914
$   reset = f$search("reset")
 
915
$   if f$search( p3) .eqs. ""
 
916
$   then
804
917
$       librarian /create /object 'p3'
805
 
$    endif
806
 
$    reject_list__ = "," + f$edit(p4, "COLLAPSE, UPCASE") + ","
807
 
$    reject_list___len = f$length(reject_list__)
808
 
$    reset = f$search( "reset", 1)
 
918
$   endif
 
919
$   reject_list__ = "," + f$edit(p4, "COLLAPSE, UPCASE") + ","
 
920
$   reject_list___len = f$length(reject_list__)
 
921
$   reset = f$search( "reset", 1)
809
922
$Loop:
810
 
$    file = f$search( search, 1)
811
 
$    if file .eqs. "" then goto EndLoop
812
 
$!      Skip a name if it's in the P4 exclusion list.
813
 
$       if (p4 .nes. "")
814
 
$       then
815
 
$          name__ = "," + -
 
923
$   file = f$search( search, 1)
 
924
$   if file .eqs. "" then goto EndLoop
 
925
$!  Skip a name if it's in the P4 exclusion list.
 
926
$   if (p4 .nes. "")
 
927
$   then
 
928
$       name__ = "," + -
816
929
            f$edit(f$parse(file, , , "NAME", "SYNTAX_ONLY"), "UPCASE") + -
817
930
            ","
818
 
$          if (f$locate(name__, reject_list__) .lt. reject_list___len)
819
 
$          then
820
 
$             goto Loop
821
 
$          endif
 
931
$       if (f$locate(name__, reject_list__) .lt. reject_list___len)
 
932
$       then
 
933
$          goto Loop
822
934
$       endif
823
 
$       objfile = f$parse("''objdir'.OBJ;", file)
824
 
$       obj = f$search(objfile, 2)
825
 
$       if (obj .nes. "")
 
935
$   endif
 
936
$   objfile = f$parse("''objdir'.OBJ;", file)
 
937
$   obj = f$search(objfile, 2)
 
938
$   if (obj .nes. "")
 
939
$   then
 
940
$       if (f$cvtime(f$file(file,"rdt")) .gts. f$cvtime(f$file(obj,"rdt")))
826
941
$       then
827
 
$          if (f$cvtime(f$file(file,"rdt")) .gts. f$cvtime(f$file(obj,"rdt")))
828
 
$          then
829
 
$             call compile 'file'
830
 
$             sts = $status
831
 
$             if .not. sts
832
 
$             then
833
 
$                goto EndLoop
834
 
$             endif
835
 
$             librarian /object 'p3' 'objfile'
836
 
$          else
837
 
$             'vo_o' "%CURL-I-OBJUTD, ", objfile, " is up to date"
838
 
$          endif
 
942
$           call compile 'file'
 
943
$           sts = $status
 
944
$           if .not. sts
 
945
$           then
 
946
$               goto EndLoop
 
947
$           endif
 
948
$           librarian /object 'p3' 'objfile'
839
949
$       else
840
 
$          'vo_o' "%CURL-I-OBJDNE, ", file, " does not exist"
841
 
$          call compile 'file'
842
 
$          sts = $status
843
 
$          if .not. sts
844
 
$          then
845
 
$             goto EndLoop
846
 
$          endif
847
 
$          librarian /object 'p3' 'objfile'
848
 
$       endif
849
 
$    goto Loop
 
950
$           'vo_o' "%CURL-I-OBJUTD, ", objfile, " is up to date"
 
951
$       endif
 
952
$   else
 
953
$       'vo_o' "%CURL-I-OBJDNE, ", file, " does not exist"
 
954
$       call compile 'file'
 
955
$       sts = $status
 
956
$       if .not. sts
 
957
$       then
 
958
$           goto EndLoop
 
959
$       endif
 
960
$       librarian /object 'p3' 'objfile'
 
961
$   endif
 
962
$   goto Loop
850
963
$EndLoop:
851
964
$!!!    purge
852
 
$    set default 'build_def'
853
 
$    exit 'sts'
 
965
$   set default 'build_def'
 
966
$   exit 'sts'
854
967
$ endsubroutine   ! Build
855
968
$!
856
969
$! Based on the file TYPE, do the right compile command.
857
970
$! Only C and MSG supported.
858
971
$!
859
972
$compile:   subroutine
860
 
$    on control_y then return ctrl_y ! SS$_CONTROLY
861
 
$!    set noon
862
 
$    file = p1
863
 
$    qual = p2+ p3+ p4+ p5+ p6+ p7+ p8
864
 
$    typ = f$edit(f$parse(file, , , "TYPE"), "UPCASE") - "."
865
 
$    if (typ .eqs. "C")
866
 
$    then
 
973
$   on control_y then return ctrl_y ! SS$_CONTROLY
 
974
$!   set noon
 
975
$   file = p1
 
976
$   qual = p2+ p3+ p4+ p5+ p6+ p7+ p8
 
977
$   typ = f$edit(f$parse(file, , , "TYPE"), "UPCASE") - "."
 
978
$   if (typ .eqs. "C")
 
979
$   then
867
980
$       'vo_c' "CC (opts) ", file
868
 
$       define/user curl 'curl_logical'
869
 
$       if curl_sys_krbinc .nes. "" then define/user gssapi 'curl_sys_krbinc'
870
 
$       define/user decc$system_include 'sys_inc'
 
981
$       define/user curl 'curl_logical'
 
982
$       if curl_sys_krbinc .nes. "" then define/user gssapi 'curl_sys_krbinc'
 
983
$       define/user decc$system_include 'sys_inc'
871
984
$       CC 'cc_defs' -
872
985
         'cc_qual1' -
873
986
         'cc_qual2' -
874
987
         'file'
875
 
$    else
 
988
$   else
876
989
$       cmd_msg = "MESSAGE " + msg_qual
877
990
$       x = cmd_'typ'
878
991
$       'vo_c' x, " ", file
879
992
$       'x' 'file'
880
 
$    endif
 
993
$   endif
881
994
$ ENDSUBROUTINE   ! Compile
882
995
$!
883
996
$! Do a diff of the file specified in P1 with that in P2.  If different
885
998
$! is an invalid filespec.
886
999
$!
887
1000
$MoveIfDiff:  subroutine
888
 
$    set NoOn
889
 
$    define /user_mode sys$error nl:
890
 
$    define /user_mode sys$output nl:
891
 
$    differences 'p1' 'p2'
892
 
$    status = $status
893
 
$    if (status .ne. %X006C8009) ! if status is not "no diff"
894
 
$    then
 
1001
$   set NoOn
 
1002
$   define /user_mode sys$error nl:
 
1003
$   define /user_mode sys$output nl:
 
1004
$   differences 'p1' 'p2'
 
1005
$   status = $status
 
1006
$   if (status .ne. %X006C8009) ! if status is not "no diff"
 
1007
$   then
895
1008
$       copy 'p1' 'p2'
896
1009
$       purge /nolog 'p2'
897
 
$    endif
898
 
$    on control_y then return ctrl_y ! SS$_CONTROLY
 
1010
$   endif
 
1011
$   on control_y then return ctrl_y ! SS$_CONTROLY
899
1012
$ ENDSUBROUTINE   ! MoveIfDiff
900
1013
$!
901
1014
$Common_Exit: