@@ -1103,50 +1103,50 @@ EOF
1103
1103
thirdparty/nghttp2/nghttp2_hd_huffman_data.c"
1104
1104
fi
1105
1105
1106
- if test -z "$PHP_VERSION"; then
1107
- if test -z "$PHP_CONFIG"; then
1108
- AC_MSG_ERROR ( [ php-config not found] )
1109
- fi
1110
- PHP_VERSION=`$PHP_CONFIG --version`
1106
+ if test -z "$PHP_CONFIG"; then
1107
+ AC_MSG_ERROR ( [ php-config not found] )
1111
1108
fi
1112
1109
1113
- PHP_VERSION_ID=`echo "${PHP_VERSION}" | $AWK 'BEGIN { FS = "."; } { printf "%d", ([ $] 1 * 10 + [ $] 2); }'`
1110
+ SW_PHP_VERSION=`$PHP_CONFIG --version`
1111
+ SW_PHP_VERSION_ID=`echo "${SW_PHP_VERSION}" | $AWK 'BEGIN { FS = "."; } { printf "%d", ([ $] 1 * 10 + [ $] 2); }'`
1114
1112
1115
- if test "$PHP_VERSION_ID " = "82"; then
1116
- PHP_THIRDPARTY_DIR ="thirdparty/php81"
1113
+ if test "$SW_PHP_VERSION_ID " = "82"; then
1114
+ SW_PHP_THIRDPARTY_DIR ="thirdparty/php81"
1117
1115
else
1118
- PHP_THIRDPARTY_DIR ="thirdparty/php${PHP_VERSION_ID }"
1116
+ SW_PHP_THIRDPARTY_DIR ="thirdparty/php${SW_PHP_VERSION_ID }"
1119
1117
fi
1120
1118
1119
+ AC_MSG_NOTICE ( [ php version: $SW_PHP_VERSION, version_id: $SW_PHP_VERSION_ID, thirdparty_dir: $SW_PHP_THIRDPARTY_DIR] )
1120
+
1121
1121
if test "$PHP_SWOOLE_PGSQL" != "no"; then
1122
1122
swoole_source_file="$swoole_source_file \
1123
- ${PHP_THIRDPARTY_DIR }/pdo_pgsql/pgsql_driver.c \
1124
- ${PHP_THIRDPARTY_DIR }/pdo_pgsql/pgsql_statement.c"
1125
- if test "$PHP_VERSION_ID " -ge "84"; then
1123
+ ${SW_PHP_THIRDPARTY_DIR }/pdo_pgsql/pgsql_driver.c \
1124
+ ${SW_PHP_THIRDPARTY_DIR }/pdo_pgsql/pgsql_statement.c"
1125
+ if test "$SW_PHP_VERSION_ID " -ge "84"; then
1126
1126
swoole_source_file="$swoole_source_file \
1127
- ${PHP_THIRDPARTY_DIR }/pdo_pgsql/pgsql_sql_parser.c"
1127
+ ${SW_PHP_THIRDPARTY_DIR }/pdo_pgsql/pgsql_sql_parser.c"
1128
1128
fi
1129
1129
fi
1130
1130
1131
1131
if test "$PHP_SWOOLE_ORACLE" != "no"; then
1132
1132
swoole_source_file="$swoole_source_file \
1133
- ${PHP_THIRDPARTY_DIR }/pdo_oci/oci_driver.c \
1134
- ${PHP_THIRDPARTY_DIR }/pdo_oci/oci_statement.c"
1133
+ ${SW_PHP_THIRDPARTY_DIR }/pdo_oci/oci_driver.c \
1134
+ ${SW_PHP_THIRDPARTY_DIR }/pdo_oci/oci_statement.c"
1135
1135
fi
1136
1136
1137
1137
if test "$PHP_SWOOLE_ODBC" != "no"; then
1138
1138
swoole_source_file="$swoole_source_file \
1139
- ${PHP_THIRDPARTY_DIR }/pdo_odbc/odbc_driver.c \
1140
- ${PHP_THIRDPARTY_DIR }/pdo_odbc/odbc_stmt.c"
1139
+ ${SW_PHP_THIRDPARTY_DIR }/pdo_odbc/odbc_driver.c \
1140
+ ${SW_PHP_THIRDPARTY_DIR }/pdo_odbc/odbc_stmt.c"
1141
1141
fi
1142
1142
1143
1143
if test "$PHP_SWOOLE_SQLITE" != "no"; then
1144
1144
swoole_source_file="$swoole_source_file \
1145
- ${PHP_THIRDPARTY_DIR }/pdo_sqlite/sqlite_driver.c \
1146
- ${PHP_THIRDPARTY_DIR }/pdo_sqlite/sqlite_statement.c"
1147
- if test "$PHP_VERSION_ID " -ge "84"; then
1145
+ ${SW_PHP_THIRDPARTY_DIR }/pdo_sqlite/sqlite_driver.c \
1146
+ ${SW_PHP_THIRDPARTY_DIR }/pdo_sqlite/sqlite_statement.c"
1147
+ if test "$SW_PHP_VERSION_ID " -ge "84"; then
1148
1148
swoole_source_file="$swoole_source_file \
1149
- ${PHP_THIRDPARTY_DIR }/pdo_sqlite/sqlite_sql_parser.c"
1149
+ ${SW_PHP_THIRDPARTY_DIR }/pdo_sqlite/sqlite_sql_parser.c"
1150
1150
fi
1151
1151
fi
1152
1152
0 commit comments