From: Jay L. <Ja...@re...> - 2000-05-02 16:22:56
|
Perhaps for testing for the operating system, you could use the uname command. It exists on all unixes I'm aware of and is pretty standard. Switching from sh to csh seems like it would cause lots of problems going from a bourne type shell to a c-shell type. Maybe it would be better to switch from sh to bash if you really need to. Most unix boxes have bash installed these days. Of course, nothing is more universal that plain ol' sh. Hope that helps, jay -----Original Message----- From: Bruce Winter [mailto:br...@mi...] Sent: Tuesday, May 02, 2000 9:09 AM To: mis...@li... Subject: RE: [misterhouse-users] FreeBSD and termios.h/SerialPort.pm Thanks for the info. A couple of questions for any takers: - Suggestions on what I could test in the configure script to detect FreeBsd -vs- others? Looks like on linux, the var OSTYPE is set. Is that true foe FreeBsd? - I the csh installed by default on all OSes so I could switch to that from sh? Bruce -----Original Message----- so a correct configure script (h2ph part) for FreeBSD would be : -------------- echo Converting C headers to Perl headers for mh/lib/site/Device/SerialPort.pm pushd /usr/include h2ph sys/termios.h h2ph sys/ioctl.h popd --------------- The choosen shell (#!/bin/sh) doesn't support popd and pushd, therefore you need to run with #!/bin/csh on FreeBSD. ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |