~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to packages/vms/build_vms.com

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-05-07 12:16:37 UTC
  • mfrom: (3.4.37 sid)
  • Revision ID: package-import@ubuntu.com-20130507121637-9t3i98qgsyr9dw5d
Tags: 7.30.0-1ubuntu1
* Resynchronize on Debian. 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.
* Add warning to debian/patches/series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
$!                   IEEE float default to on where available.
124
124
$!                   Generate the curl_config.h file from system inspection.
125
125
$!                   Linker finds ldap with out option file.
 
126
$! 13-Mar-2013, Tom Grace
 
127
$!                   Added missing slash in cc_full_list.
 
128
$!                   Removed unwanted extra quotes inside symbol tool_main
 
129
$!                   for non-VAX architectures that triggered link failure.
 
130
$!                   Replaced curl_sys_inc with sys_inc.
 
131
$! 19-Mar-2013, John Malmberg
 
132
$!                   symbol tool_main needs to be quoted when parse style is
 
133
$!                   set to exended in versions of VMS greater than 7.3-1.
 
134
$!                   Remove curlbuild.h generation as it should be pre-built
 
135
$!                   in the curl release or daily tarball.
126
136
$!
127
137
$!===========================================================================
128
138
$!
193
203
$! Define the architecture-specific product file destination directory
194
204
$! name(s).
195
205
$!
 
206
$ parse_style = "TRADITIONAL"
196
207
$ if (f$getsyi("HW_MODEL") .lt. 1024)
197
208
$ then
198
209
$    arch_name = "VAX"
200
211
$    arch_name = ""
201
212
$    arch_name = arch_name + f$edit(f$getsyi("ARCH_NAME"), "UPCASE")
202
213
$    if (arch_name .eqs. "") then arch_name = "UNK"
 
214
$!
 
215
$!   Extended parsing option starts with VMS 7.3-1.
 
216
$!   There is no 7.4, so that simplifies the parse a bit.
 
217
$!
 
218
$    node_swvers = f$getsyi("node_swvers")
 
219
$    version_patch = f$extract(1, f$length(node_swvers), node_swvers)
 
220
$    maj_ver = f$element(0, ".", version_patch)
 
221
$    min_ver_patch = f$element(1, ".", version_patch)
 
222
$    min_ver = f$element(0, "-", min_ver_patch)
 
223
$    patch = f$element(1, "-", min_ver_patch)
 
224
$    if patch .eqs. "-" then patch = ""
 
225
$    parse_x = 0
 
226
$    if maj_ver .ges. "8"
 
227
$    then
 
228
$       parse_x = 1
 
229
$    else
 
230
$       if maj_ver .eqs. "7" .and. min_ver .ges. "3" .and. patch .nes. ""
 
231
$       then
 
232
$          parse_x = 1
 
233
$       endif
 
234
$    endif
 
235
$    if parse_x
 
236
$    then
 
237
$       parse_style = f$getjpi("", "parse_style_perm")
 
238
$    endif
203
239
$ endif
204
240
$!
205
241
$ exedir = proc_dev_dir - delim + ".''arch_name'" + delim
226
262
$ cc_names = "/names=(shortened, as_is)/repository='exedir'
227
263
$ cc_defs = "HAVE_CONFIG_H=1"
228
264
$ cc_list = "/list='objdir'/show=(expan, includ)/machine
229
 
$ cc_full_list = "list='objdir'/show=(all, nomessages)/machine
 
265
$ cc_full_list = "/list='objdir'/show=(all, nomessages)/machine
230
266
$ link_qual = ""
231
267
$ if arch_name .eqs. "VAX"
232
268
$ then
270
306
$   if (f$search(prods) .nes. "") then delete /log 'prods'
271
307
$   file = "[]config_vms.h"
272
308
$   if f$search(file) .nes. "" then delete/log 'file';*
273
 
$   file = "[.include.curl]curlbuild.h"
274
 
$   if f$search(file) .nes. "" then delete/log 'file';*
275
309
$   file = "[.lib]config_vms.h"
276
310
$   if f$search(file) .nes. "" then delete/log 'file';*
277
311
$       goto Common_Exit
649
683
$endif
650
684
$!
651
685
$!
652
 
$write sys$output "Creating the new curlbuild.h"
653
 
$new_conf = f$search("[.include.curl]curlbuild.h")
654
 
$if new_conf .eqs. ""
655
 
$then
656
 
$!   set ver
657
 
$   @'proc_dev_dir'build_curlbuild_h.com
658
 
$!   set nover
659
 
$endif
660
 
$!
661
686
$!
662
687
$ on control_y then goto Common_Exit
663
688
$!
669
694
$ endif
670
695
$ if curl_sys_zlibinc .nes. ""
671
696
$ then
672
 
$   curl_sys_inc = sys_inc + ",''curl_sys_zlibinc'"
 
697
$   sys_inc = sys_inc + ",''curl_sys_zlibinc'"
673
698
$ endif
674
699
$ call build "[--.lib]" "*.c" "''objdir'CURLLIB.OLB" "amigaos, nwlib, nwos"
675
700
$ if ($status .eq. ctrl_y) then goto Common_Exit
722
747
$! If we are not on VAX, then we want the debug symbol table in
723
748
$! a separate file.
724
749
$! VAX needs the tool_main unquoted in uppercase,
725
 
$! Alpha and IA64 need tool_main quoted in exact case.
 
750
$! Alpha and IA64 need tool_main quoted in exact case when parse style is
 
751
$! extended.
726
752
$ link_dsf1 = ""
727
753
$ link_dsf2 = ""
728
754
$ tool_main = "tool_main"
729
755
$ if arch_name .nes. "VAX"
730
756
$ then
731
 
$   tool_main = """tool_main"""
 
757
$   if parse_style .eqs. "EXTENDED"
 
758
$   then
 
759
$      tool_main = """tool_main"""
 
760
$   endif
732
761
$   link_dsf1 = "/dsf=" + exedir + "CURL.DSF"
733
762
$   link_dsf2 = "/dsf=" + exedir + "CURL_DEBUG.DSF"
734
763
$ endif
838
867
$       'vo_c' "CC (opts) ", file
839
868
$       define/user curl 'curl_logical'
840
869
$       if curl_sys_krbinc .nes. "" then define/user gssapi 'curl_sys_krbinc'
841
 
$       define/user decc$system_include 'curl_sys_inc'
 
870
$       define/user decc$system_include 'sys_inc'
842
871
$       CC 'cc_defs' -
843
872
         'cc_qual1' -
844
873
         'cc_qual2' -