diff options
author | Lukas Larsson <[email protected]> | 2013-11-21 10:57:16 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2013-11-21 10:57:16 +0100 |
commit | 90c8450bb691a7b57ce326fddd1f44ef01db390f (patch) | |
tree | 2d85e105d50d4ac74d2045076836239a362acce2 | |
parent | 4bace5d7cd5dfa9351cce25ea8c6882b5965f4c4 (diff) | |
parent | fd897ffd34857cb55ff1249a51c2f80c1af7706f (diff) | |
download | otp-90c8450bb691a7b57ce326fddd1f44ef01db390f.tar.gz otp-90c8450bb691a7b57ce326fddd1f44ef01db390f.tar.bz2 otp-90c8450bb691a7b57ce326fddd1f44ef01db390f.zip |
Merge branch 'ia/odbc/sql.h/OTP-11483' into maint
* ia/odbc/sql.h/OTP-11483:
odbc: Add configure check for sql.h
-rw-r--r-- | lib/odbc/configure.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/odbc/configure.in b/lib/odbc/configure.in index 83f7a47434..531ad84fb9 100644 --- a/lib/odbc/configure.in +++ b/lib/odbc/configure.in @@ -105,6 +105,7 @@ AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h netdb.h stdlib.h string.h sys/socket.h winsock2.h]) +AC_CHECK_HEADERS([sql.h, sqlext.h], [odbc_required_headers=yes], [odbc_required_headers=no]) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST @@ -203,6 +204,10 @@ AC_SUBST(TARGET_FLAGS) ;; esac +if test $odbc_required_headers = no; then + AC_MSG_WARN(["ODBC library - header check failed"]) + echo "ODBC library - header check failed" > $ERL_TOP/lib/odbc/SKIP +fi if test $odbc_lib_link_success = no; then AC_MSG_WARN(["ODBC library - link check failed"]) echo "ODBC library - link check failed" > $ERL_TOP/lib/odbc/SKIP |