Kouhei Sutou
null+****@clear*****
Sun Nov 23 18:44:13 JST 2014
Kouhei Sutou 2014-11-23 18:44:13 +0900 (Sun, 23 Nov 2014) New Revision: 108d1f3bb7468630d8fe7e8ec05146570bbc15dc https://github.com/groonga/groonga/commit/108d1f3bb7468630d8fe7e8ec05146570bbc15dc Message: groonga-httpd: use "mingw" for detecting cross compile Modified files: src/httpd/configure Modified: src/httpd/configure (+5 -3) =================================================================== --- src/httpd/configure 2014-11-23 18:38:22 +0900 (f65353b) +++ src/httpd/configure 2014-11-23 18:44:13 +0900 (f731b74) @@ -5,7 +5,7 @@ set -u srcdir="." builddir="." -host="" +is_mingw="no" for argument in "$@"; do case "$argument" in @@ -13,7 +13,9 @@ for argument in "$@"; do srcdir="$(echo "${argument}" | sed -e 's/--srcdir=//')" ;; --host=*) - host="$(echo "${argument}" | sed -e 's/--host=//')" + if echo "${argument}" | grep -q mingw; then + is_mingw="yes" + fi ;; esac done @@ -54,7 +56,7 @@ if [ "${abs_top_srcdir}/src/httpd" != "$(pwd)" ]; then fi configure_args="" -if [ -n "${host}" ]; then +if [ "${is_mingw}" = "yes" ]; then configure_args="${configure_args} --crossbuild=win32" configure_args="${configure_args} --with-cc=${host}-gcc" configure_args="${configure_args} --with-cpp=${host}-c++" -------------- next part -------------- HTML����������������������������... ダウンロード