因工作需要在交叉编译php,但下载完成后,在configure时,老是报错,flock_struct unknow,因此需要更改configure文件,可以参考如下进行更改
-
--- configure
-
+++ configure_entware副本
-
@@ -64995,7 +64995,7 @@
-
flock_type=unknown
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether flock struct is linux ordered\"" >&5
-
$as_echo_n "checking \"whether flock struct is linux ordered\"... " >&6; }
-
-if test "$cross_compiling" = yes; then :
-
+if test "$cross_compiling" = no; then :
-
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-
as_fn_error $? "cannot run test program while cross compiling
-
@@ -65014,9 +65014,8 @@
-
}
-
-
_ACEOF
-
-if ac_fn_c_try_run "$LINENO"; then :
-
-
-
- flock_type=linux
-
+flock_type=linux
-
+if test "$flock_type" == "linux"; then
-
-
$as_echo "#define HAVE_FLOCK_LINUX /**/" >>confdefs.h
-
-
@@ -65034,7 +65033,7 @@
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether flock struct is BSD ordered\"" >&5
-
$as_echo_n "checking \"whether flock struct is BSD ordered\"... " >&6; }
-
-if test "$cross_compiling" = yes; then :
-
+if test "$cross_compiling" = no; then :
-
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-
as_fn_error $? "cannot run test program while cross compiling
-
@@ -65070,7 +65069,7 @@
-
conftest.$ac_objext conftest.beam conftest.$ac_ext
-
fi
-
-
-
-
+flock_type=linux
-
if test "$flock_type" == "unknown"; then
-
as_fn_error $? "Don't know how to define struct flock on this system, set --enable-opcache=no" "$LINENO" 5
-
fi
更改完成后,可以生成makefile
阅读(4752) | 评论(0) | 转发(0) |