pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/f2c/files Detect absense of mkdtemp and mkstemp f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/25cfb49e28c3
branches:  trunk
changeset: 568869:25cfb49e28c3
user:      asau <asau%pkgsrc.org@localhost>
date:      Wed Dec 23 00:32:17 2009 +0000

description:
Detect absense of mkdtemp and mkstemp functions.
Should unbreak build on Solaris. PR pkg/42428

diffstat:

 lang/f2c/files/f2c.mk |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (22 lines):

diff -r 62e7e084804d -r 25cfb49e28c3 lang/f2c/files/f2c.mk
--- a/lang/f2c/files/f2c.mk     Tue Dec 22 23:24:59 2009 +0000
+++ b/lang/f2c/files/f2c.mk     Wed Dec 23 00:32:17 2009 +0000
@@ -41,13 +41,12 @@
 
 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
 



Home | Main Index | Thread Index | Old Index