summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dns/bind/files/bind-9.7.3-odbc-dlz-detect.patch')
-rw-r--r--net-dns/bind/files/bind-9.7.3-odbc-dlz-detect.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/net-dns/bind/files/bind-9.7.3-odbc-dlz-detect.patch b/net-dns/bind/files/bind-9.7.3-odbc-dlz-detect.patch
new file mode 100644
index 000000000000..1577d578ddd4
--- /dev/null
+++ b/net-dns/bind/files/bind-9.7.3-odbc-dlz-detect.patch
@@ -0,0 +1,21 @@
+diff --git a/contrib/dlz/config.dlz.in b/contrib/dlz/config.dlz.in
+index ff3783a..bd7a700 100644
+--- a/contrib/dlz/config.dlz.in
++++ b/contrib/dlz/config.dlz.in
+@@ -407,10 +407,13 @@ then
+ odbcdirs="/usr /usr/local /usr/pkg"
+ for d in $odbcdirs
+ do
+- if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
++ if test -f $d/include/sql.h
+ then
+- use_dlz_odbc=$d
+- break
++ if test -f $d/lib/libodbc.a -o -f $d/lib/libodbc.la -o $d/lib/libodbc.so
++ then
++ use_dlz_odbc=$d
++ break
++ fi
+ fi
+ done
+ fi