| @@ -1,21 +1,30 @@ | | | @@ -1,21 +1,30 @@ |
1 | $NetBSD: patch-ac,v 1.5 2011/08/18 05:03:10 dholland Exp $ | | 1 | $NetBSD: patch-ac,v 1.6 2013/05/28 19:03:49 joerg Exp $ |
2 | | | 2 | |
3 | Config for pkgsrc. | | 3 | Config for pkgsrc. |
4 | DESTDIR support. | | 4 | DESTDIR support. |
5 | Make the SYMLINK relative. | | 5 | Make the SYMLINK relative. |
6 | | | 6 | |
7 | --- unix/tfconfig.orig 2011-08-18 04:45:11.000000000 +0000 | | 7 | --- unix/tfconfig.orig 2013-05-28 16:51:21.000000000 +0000 |
8 | +++ unix/tfconfig | | 8 | +++ unix/tfconfig |
| | | 9 | @@ -35,7 +35,7 @@ echo "Configuring $TFVERSION"; echo |
| | | 10 | |
| | | 11 | ### Initialize variables, just in case they're already defined. |
| | | 12 | |
| | | 13 | -AOUT=tfconfig.out |
| | | 14 | +AOUT=`pwd`/tfconfig.out |
| | | 15 | BINDIR='' |
| | | 16 | # CC='' ;# Use the value from the environment if there is one. |
| | | 17 | CCFLAGS=${TFDEV_CCFLAGS-'-O'} |
9 | @@ -168,18 +168,18 @@ fi | | 18 | @@ -168,18 +168,18 @@ fi |
10 | # The cd;pwd is needed to normalize the directory name in case of links, etc. | | 19 | # The cd;pwd is needed to normalize the directory name in case of links, etc. |
11 | | | 20 | |
12 | DIR1=`echo $TF | sed 's;/[^/]*$;;'` | | 21 | DIR1=`echo $TF | sed 's;/[^/]*$;;'` |
13 | -DIR1=`cd $DIR1 && pwd` | | 22 | -DIR1=`cd $DIR1 && pwd` |
14 | +#DIR1=`cd $DIR1 && pwd` | | 23 | +#DIR1=`cd $DIR1 && pwd` |
15 | DIR2=`echo $LIBDIR | sed 's;/[^/]*$;;'` | | 24 | DIR2=`echo $LIBDIR | sed 's;/[^/]*$;;'` |
16 | -DIR2=`cd $DIR2 && pwd` | | 25 | -DIR2=`cd $DIR2 && pwd` |
17 | +#DIR2=`cd $DIR2 && pwd` | | 26 | +#DIR2=`cd $DIR2 && pwd` |
18 | DIR3=`echo $SYMLINK | sed 's;/[^/]*$;;'` | | 27 | DIR3=`echo $SYMLINK | sed 's;/[^/]*$;;'` |
19 | -DIR3=`cd $DIR3 && pwd` | | 28 | -DIR3=`cd $DIR3 && pwd` |
20 | +#DIR3=`cd $DIR3 && pwd` | | 29 | +#DIR3=`cd $DIR3 && pwd` |
21 | | | 30 | |
| @@ -59,13 +68,29 @@ Make the SYMLINK relative. | | | @@ -59,13 +68,29 @@ Make the SYMLINK relative. |
59 | | | 68 | |
60 | rm -f ../src/Makefile ${AOUT} | | 69 | rm -f ../src/Makefile ${AOUT} |
61 | @@ -246,8 +246,10 @@ else | | 70 | @@ -246,8 +246,10 @@ else |
62 | fi | | 71 | fi |
63 | | | 72 | |
64 | echo "MAKE = ${MAKE}" >&5 | | 73 | echo "MAKE = ${MAKE}" >&5 |
65 | +echo "DESTDIR = ${DESTDIR}" >&5 | | 74 | +echo "DESTDIR = ${DESTDIR}" >&5 |
66 | echo "TF = ${TF}" >&5 | | 75 | echo "TF = ${TF}" >&5 |
67 | echo "SYMLINK = ${SYMLINK}" >&5 | | 76 | echo "SYMLINK = ${SYMLINK}" >&5 |
68 | +echo "SYMLINKTARGET = ${SYMLINKTARGET}" >&5 | | 77 | +echo "SYMLINKTARGET = ${SYMLINKTARGET}" >&5 |
69 | echo "LIBDIR = ${LIBDIR}" >&5 | | 78 | echo "LIBDIR = ${LIBDIR}" >&5 |
70 | echo "MAILDIR = ${MAILDIR}" >&5 | | 79 | echo "MAILDIR = ${MAILDIR}" >&5 |
71 | echo "MANPAGE = ${MANPAGE}" >&5 | | 80 | echo "MANPAGE = ${MANPAGE}" >&5 |
| | | 81 | @@ -654,11 +656,13 @@ echo "Testing type of signal handlers... |
| | | 82 | cat >test.c <<EOF |
| | | 83 | #include <sys/types.h> |
| | | 84 | #include <signal.h> |
| | | 85 | +#include <stdlib.h> |
| | | 86 | #undef signal |
| | | 87 | -extern void (*signal())(); |
| | | 88 | +typedef void (*my_sighandler_t)(int); |
| | | 89 | +extern my_sighandler_t signal(int, my_sighandler_t); |
| | | 90 | main() { exit(0); } |
| | | 91 | EOF |
| | | 92 | -if ${CC} ${CCFLAGS} -c test.c -o ${AOUT}>/dev/null 2>&1; then |
| | | 93 | +if ${CC} ${CCFLAGS} -c test.c -o ${AOUT}; then |
| | | 94 | echo "Signal handlers return void, as they should." |
| | | 95 | echo '#define RETSIG void' >&4 |
| | | 96 | else |