diff options
Diffstat (limited to 'lang/f2c')
-rw-r--r-- | lang/f2c/files/f2c.mk | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lang/f2c/files/f2c.mk b/lang/f2c/files/f2c.mk index 7e81ac6d287..eef846c2d09 100644 --- a/lang/f2c/files/f2c.mk +++ b/lang/f2c/files/f2c.mk @@ -41,13 +41,12 @@ CPPFLAGS+= -I$(F2CSRCDIR) # grammar DPSRCS+= sysdep.hd +# Handle obsolete systems like Solaris: sysdep.hd: - echo '/*OK*/' > $@ # stub -# sysdep.hd: -# if $(CC) sysdeptest.c; then echo '/*OK*/' > sysdep.hd;\ -# elif $(CC) -DNO_MKDTEMP sysdeptest.c; then echo '#define NO_MKDTEMP' >sysdep.hd;\ -# else echo '#define NO_MKDTEMP' >sysdep.hd; echo '#define NO_MKSTEMP' >>sysdep.hd; fi -# rm -f a.out + if $(CC) sysdeptest.c; then echo '/*OK*/' > sysdep.hd; \ + elif $(CC) -DNO_MKDTEMP sysdeptest.c; then echo '#define NO_MKDTEMP' > sysdep.hd; \ + else { echo '#define NO_MKDTEMP'; echo '#define NO_MKSTEMP'; } > sysdep.hd; fi + rm -f a.out CLEANFILES+= sysdep.hd # sysdep.hd tokdefs.h f2c.t |