null+****@clear*****
null+****@clear*****
2012年 4月 29日 (日) 09:23:07 JST
Kouhei Sutou 2012-04-29 09:23:07 +0900 (Sun, 29 Apr 2012) New Revision: 74b910ac9c8e288e0efa5b618def612da8dd85f4 Log: Support relative --with-mysql-source-dir Modified files: configure.ac Modified: configure.ac (+8 -0) =================================================================== --- configure.ac 2012-04-29 09:20:51 +0900 (f8efcbc) +++ configure.ac 2012-04-29 09:23:07 +0900 (49068ec) @@ -102,6 +102,14 @@ AC_DEFUN([CONFIG_OPTION_MYSQL],[ [ ac_mysql_source_dir="$withval" if test -f "$ac_mysql_source_dir/sql/handler.h"; then + case "$ac_mysql_source_dir" in + /*) + : + ;; + *) + ac_mysql_source_dir="\$(top_builddir)/$ac_mysql_source_dir" + ;; + esac MYSQL_INC="-I$ac_mysql_source_dir/sql" MYSQL_INC="$MYSQL_INC -I$ac_mysql_source_dir/include" MYSQL_INC="$MYSQL_INC -I$ac_mysql_source_dir/regex"