At 5:47 PM -0800 2/14/2000, [EMAIL PROTECTED] wrote:
>We may need a test in subconfigure.com to '$ gosub findhdr "<iconv.h>"'
>('findhdr' is the name of the mini script that Configure writes out
>on unix BTW).

Hmm.  I guess  a key lookup in sys$library:decc$rtldef.tlb would be the right way to 
do this in the long run (i.e., a status "LBR-E-KEYNOTFND, key not found" means we 
don't have the header.  But do we know everybody has the text library in the right 
place and named the right thing?  If so, tests like this could work; we'd want to 
suppress messaging and then check the status:

$ library/extract=iconv/output=nl: sys$library:decc$rtldef.tlb
$ sh sym $status
  $STATUS == "%X10000001"
$ library/extract=nonexistent_header/output=nl: sys$library:decc$rtldef.tlb
%LIBRAR-E-LOOKUPERR, error looking up NONEXISTENT_HEADER in SYS$COMMON:[SYSLIB]D
ECC$RTLDEF.TLB;2
-LBR-E-KEYNOTFND, key not found
$ sh sym $status
  $STATUS == "%X108680F2"


On the other hand, iconv.h contains the following wrapped around the entire header 
file:

#if __VMS_VER >= 60200000  /*  Support that is new in OpenVMS V6.2  */

so for this particular item it'd be safe to test for OS version.  Any thoughts on the 
better way to go here?

Thanks for the pointers on the other issues.

____________________________________________
Craig A. Berry                   
mailto:[EMAIL PROTECTED]

Reply via email to