; ========================     Start-ARexx     ==========================
; Loads the libraries required by ARexx and starts the ARexx server.
; This could be placed in your startup-sequence to activate ARexx.

; N.B. The double-precision math library mathieeedoubbas.library must
; be in the LIBS: directory.  If this is not convenient, copy it into
; this disk's :libs directory and uncomment the following line ...
; ARexx_Disk:c/loadlib ARexx_Disk:libs/mathieeedoubbas.library

  loadlib libs:rexxsyslib.library
  if error
     echo "Couldn't load rexxsyslib.lbrary"
     quit 20
     endif
  loadlib libs:rexxsupport.library

; Start the ARexx server if it's not already active
  waitforport -i AREXX
  if warn
     rexxmast
     waitforport AREXX
     endif

; Make the support library available
  rxlib rexxsupport.library 0 -30 0

