syncthing: Update from 0.14.45 to 0.14.47
[termux-packages] / packages / zip / unix-configure.patch
CommitLineData
b9aa6df3
FF
1diff -u -r ../zip30/unix/configure ./unix/configure
2--- ../zip30/unix/configure 2008-06-20 05:32:20.000000000 +0200
3+++ ./unix/configure 2017-07-07 08:53:36.218772657 +0200
4@@ -509,83 +509,6 @@
5 # Check for missing functions
6 # add NO_'function_name' to flags if missing
7
8-for func in rmdir strchr strrchr rename mktemp mktime mkstemp
9-do
10- echo Check for $func
11- echo "int main(){ $func(); return 0; }" > conftest.c
12- $CC $BFLAG -o conftest conftest.c >/dev/null 2>/dev/null
13- [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_`echo $func | tr '[a-z]' '[A-Z]'`"
14-done
15-
16-
17-echo Check for memset
18-echo "int main(){ char k; memset(&k,0,0); return 0; }" > conftest.c
19-$CC -o conftest conftest.c >/dev/null 2>/dev/null
20-[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DZMEM"
21-
22-
23-echo Check for memmove
24-cat > conftest.c << _EOF_
25-#include <string.h>
26-int main() { int a; int b = 0; memmove( &a, &b, sizeof( a)); return a; }
27-_EOF_
28-$CC -o conftest conftest.c >/dev/null 2>/dev/null
29-[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNEED_MEMMOVE"
30-
31-
32-echo Check for strerror
33-cat > conftest.c << _EOF_
34-#include <string.h>
35-int main() { strerror( 0); return 0; }
36-_EOF_
37-$CC -o conftest conftest.c >/dev/null 2>/dev/null
38-[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNEED_STRERROR"
39-
40-echo Check for errno declaration
41-cat > conftest.c << _EOF_
42-#include <errno.h>
43-main()
44-{
45- errno = 0;
46- return 0;
47-}
48-_EOF_
49-$CC $CFLAGS -c conftest.c >/dev/null 2>/dev/null
50-[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_ERRNO"
51-
52-
53-echo Check for directory libraries
54-cat > conftest.c << _EOF_
55-int main() { return closedir(opendir(".")); }
56-_EOF_
57-
58-$CC -o conftest conftest.c >/dev/null 2>/dev/null
59-if [ $? -ne 0 ]; then
60- OPT=""
61- for lib in ndir dir ucb bsd BSD PW x dirent
62- do
63- $CC -o conftest conftest.c -l$lib >/dev/null 2>/dev/null
64- [ $? -eq 0 ] && OPT=-l$lib && break
65- done
66- if [ ${OPT} ]; then
67- LFLAGS2="${LFLAGS2} ${OPT}"
68- else
69- CFLAGS="${CFLAGS} -DNO_DIR"
70- fi
71-fi
72-
73-
74-# Dynix/ptx 1.3 needed this
75-
76-echo Check for readlink
77-echo "int main(){ return readlink(); }" > conftest.c
78-$CC -o conftest conftest.c >/dev/null 2>/dev/null
79-if [ $? -ne 0 ]; then
80- $CC -o conftest conftest.c -lseq >/dev/null 2>/dev/null
81- [ $? -eq 0 ] && LFLAGS2="${LFLAGS2} -lseq"
82-fi
83-
84-
85 echo Check for directory include file
86 OPT=""
87 for inc in dirent.h sys/ndir.h ndir.h sys/dir.h