1 $! $Id: defines.com,v 1.1.1.1 2008-09-23 16:32:05 hoffman Exp $
3 $! Define where to look for the curl include directory, where to put the
4 $! exes and objects, and the openssl stuff. If you have hp's SSL product
5 $! installed you won't need these openssl, libssl and libcrypto defines.
7 $! Be cautioned, though. If you build using these defines at the process
8 $! level and then try to build against hp's SSL product, you will need to
9 $! deassign the openssl logical at the process level or the link will most
10 $! probably fail, or define CURL_BUILD_NOHPSSL to anything.
12 $! 8-FEB-2005, MSK, changed the openssl, libssl and libcrypto defines
13 $! to not override previously defined logicals.
15 $ proc = f$environment( "PROCEDURE")
16 $ thisdev = f$parse( proc,,,"DEVICE")
17 $ thisdir = f$parse( proc,,,"DIRECTORY") - ".PACKAGES.VMS]"
18 $ newdir = f$parse( proc,,,"DEVICE") + f$parse( proc,,,"DIRECTORY")
19 $ exedir = newdir - "]"
21 $ arch = f$getsyi("ARCH_TYPE")
24 $ exedir = exedir + ".VAX]"
29 $ exedir = exedir + ".AXP]"
32 $ exedir = exedir + ".IA64]"
36 $ def/nolog exedir 'exedir'
37 $ def/nolog objdir 'exedir'
38 $ def/nolog lisdir 'exedir'
40 $ def/nolog curl 'THISDEV''THISDIR'.INCLUDE.CURL]
41 $ def/nolog libsrc 'THISDEV''THISDIR'.LIB]
42 $ def/nolog curlsrc 'THISDEV''THISDIR'.SRC]
44 $! If you're going to build against an OpenSSL dist, you'll want to define
45 $! the following logicals to point to the dist location.
47 $ if ( f$trnlnm( "openssl") .eqs. "")
49 $ def/nolog openssl 'THISDEV'[OPENSSL.OPENSSL-0_9_7E.INCLUDE.OPENSSL]
51 $ if ( f$trnlnm( "libssl") .eqs. "")
53 $ def/nolog libssl 'THISDEV'[OPENSSL.OPENSSL-0_9_7E.'ssldir'.EXE.SSL]LIBSSL.OLB
55 $ if ( f$trnlnm( "libcrypto") .eqs. "")
57 $ def/nolog libcrypto 'THISDEV'[OPENSSL.OPENSSL-0_9_7E.'ssldir'.EXE.CRYPTO]LIBCRYPTO.OLB
60 $! If you have hp's SSL product installed, and you still want to build
61 $! against an OpenSSL distribution, you'll need to define the following
62 $! logical. The CURL_BUILD_NOHPSSL logical is used by BUILD_VMS.COM.
64 $ def/nolog CURL_BUILD_NOHPSSL true
66 $! The curl code has some mixed up includes where a user include is done
67 $! with <> and a system include is done with "". Define a broader include
68 $! path to make the compile work "right".
70 $ def/nolog decc$system_include libsrc:,curlsrc:
72 $! The build_vms.com checks to see if the curl_defines_done logical is
73 $! defined. If it isn't it will invoke this procedure. If it is, and
74 $! you change something in here, you'll have to run the procedure yourself.
76 $ def/nolog curl_defines_done true