Posted to tcl by kbk at Sun Dec 28 20:48:39 GMT 2008view raw

  1. TDBCMYSQL_SAVED_CPPFLAGS="${CPPFLAGS}"
  2. AC_ARG_WITH(mysql-includedir,
  3. AC_HELP_STRING([--with-mysql-includedir],
  4. [directory where MySQL header files reside]),
  5. with_mysqlincludedir=${withval})
  6. if test x"${with_mysqlincludedir}" != x ; then
  7. AC_MSG_WARN(mysql includes in ${with_mysqlincludedir})
  8. CPPFLAGS="${CPPFLAGS} -I\"${with_mysqlincludedir}\""
  9. MYSQL_INCLUDE_SPEC="-I\"${with_mysqlincludedir}\""
  10. fi
  11. AC_MSG_WARN(looking for mysql.h with ${CPPFLAGS})
  12. AC_CHECK_HEADER(mysql.h, AC_MSG_WARN(OK), AC_MSG_ERROR("cannot find a working mysql.h"))
  13. CPPFLAGS="${TDBCMYSQL_SAVED_CPPLFAGS}"
  14. TEA_ADD_INCLUDES([${MYSQL_INCLUDE_SPEC}])
  15.  
  16. ----
  17. configure: WARNING: mysql includes in /opt/lampp/include/mysql
  18. configure: WARNING: looking for mysql.h with -I"/opt/lampp/include/mysql"
  19. checking mysql.h usability... no
  20. checking mysql.h presence... no
  21. checking for mysql.h... no
  22. configure: error: "cannot find a working mysql.h"