1 | |
---|
2 | $FreeBSD$ |
---|
3 | |
---|
4 | --- configure.orig |
---|
5 | +++ configure |
---|
6 | @@ -322,13 +322,19 @@ |
---|
7 | |
---|
8 | echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings |
---|
9 | |
---|
10 | -for i in /lib /usr/lib /usr/local/lib; do |
---|
11 | - if [ -f $i/libresolv.a ]; then |
---|
12 | +if [ $arch = FreeBSD ]; then |
---|
13 | + if [ `strings /lib/libc.so.7 |grep res_query |wc -l` -gt 0 ]; then |
---|
14 | echo '#define HAVE_RESOLV_A' >> config.h |
---|
15 | - echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings |
---|
16 | - break |
---|
17 | - fi |
---|
18 | -done |
---|
19 | + fi; |
---|
20 | +else |
---|
21 | + for i in /lib /usr/lib /usr/local/lib; do |
---|
22 | + if [ -f $i/libresolv.a ]; then |
---|
23 | + echo '#define HAVE_RESOLV_A' >> config.h |
---|
24 | + echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings |
---|
25 | + break |
---|
26 | + fi |
---|
27 | + done |
---|
28 | +fi; |
---|
29 | |
---|
30 | STORAGES="text xml" |
---|
31 | |
---|