Skip to content

Commit

Permalink
Add /usr/local/unixodbc/lib and /usr/local/unixodbc/include to defaul…
Browse files Browse the repository at this point in the history
…t search path for unixodbc
  • Loading branch information
arr2036 committed May 5, 2015
1 parent 6b1c03e commit 0d0de18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/modules/rlm_sql/drivers/rlm_sql_unixodbc/configure
Expand Up @@ -1843,7 +1843,7 @@ if test "${with_unixodbc_dir+set}" = set; then :
fi
smart_try_dir="$unixodbc_lib_dir"
smart_try_dir="$unixodbc_lib_dir /usr/local/unixodbc/lib"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Expand Down Expand Up @@ -2812,7 +2812,7 @@ fi
fail="$fail libodbc"
fi
smart_try_dir="$unixodbc_include_dir"
smart_try_dir="$unixodbc_include_dir /usr/local/unixodbc/include"
ac_safe=`echo "sql.h" | sed 'y%./+-%__pm%'`
Expand Down
4 changes: 2 additions & 2 deletions src/modules/rlm_sql/drivers/rlm_sql_unixodbc/configure.ac
Expand Up @@ -57,14 +57,14 @@ if test x$with_[]modname != xno; then
esac])

dnl Check for SQLConnect in -lodbc
smart_try_dir="$unixodbc_lib_dir"
smart_try_dir="$unixodbc_lib_dir /usr/local/unixodbc/lib"
FR_SMART_CHECK_LIB(odbc, SQLConnect)
if test "x$ac_cv_lib_odbc_SQLConnect" != xyes; then
fail="$fail libodbc"
fi

dnl Check for sql.h
smart_try_dir="$unixodbc_include_dir"
smart_try_dir="$unixodbc_include_dir /usr/local/unixodbc/include"
FR_SMART_CHECK_INCLUDE(sql.h)
if test "x$ac_cv_header_sql_h" != xyes; then
fail="$fail sql.h"
Expand Down

0 comments on commit 0d0de18

Please sign in to comment.