[package] fix killing and starting of dhcp (#6919)
[packages.git] / net / freeswitch / patches / 201-odbc.patch
1 --- a/build/config/odbc.m4
2 +++ b/build/config/odbc.m4
3 @@ -112,12 +112,13 @@ AC_ARG_WITH(odbc-include,
4         fi])
5  
6         if test "X$with_odbc" != "X"; then
7 -         if test "$with_odbc" != "yes"; then
8 -           ac_cv_odbc_where_lib=$with_odbc
9 +         if test "$with_odbc" != "yes" -o "$with_odbc" != "no"; then
10 +           ac_cv_odbc_where_lib=$with_odbc/lib
11             ac_cv_odbc_where_inc=$with_odbc/include
12           fi
13         fi
14  
15 +       if test "$with_odbc" != "no"; then
16         if test "X$with_odbc_include" != "X"; then
17           ac_cv_odbc_where_inc=$with_odbc_include
18         fi
19 @@ -159,5 +160,6 @@ AC_ARG_WITH(odbc-include,
20           AC_SUBST(ODBC_LIB_FLAGS)
21           AC_DEFINE([HAVE_ODBC],[1],[libodbc])
22         fi
23 +       fi ## test "$with_odbc" != "no" ##
24         ])
25