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