1 We would normally patch configure.ac instead, but when running autoreconf or |
1 We would normally patch configure.ac instead, but when running autoreconf or |
2 autogen.sh, it blows up in various places, depending on how hard we try. Simply |
2 autogen.sh, it blows up in various places, depending on how hard we try. Simply |
3 patching configure is far simpler. |
3 patching configure is far simpler. |
4 |
4 |
5 --- graphviz-2.28.0/configure Fri May 6 20:27:36 2011 |
5 --- graphviz-2.28.0/configure.orig 2012-10-22 05:49:36.151525827 -0700 |
6 +++ graphviz-2.28.0/configure Fri May 27 15:30:42 2011 |
6 +++ graphviz-2.28.0/configure 2012-10-22 05:55:46.475647464 -0700 |
7 @@ -20679,7 +20679,7 @@ |
7 @@ -20679,7 +20679,17 @@ |
8 |
8 |
9 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua compiling and linking" >&5 |
9 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua compiling and linking" >&5 |
10 $as_echo_n "checking for Lua compiling and linking... " >&6; } |
10 $as_echo_n "checking for Lua compiling and linking... " >&6; } |
11 - LUA_TEST=`LT=luatest.c ; echo "#include <lua.h>" > $LT; echo "#include <lualib.h>" >> $LT; echo "int main() { luaopen_base((lua_State *)lua_open()); return 0; }" >> $LT ; $CC -Wall $LT -o $LT.out $LUA_INCLUDES $LUA_LIBS $CFLAGS $LDFLAGS 1>/dev/null 2>&1 ; echo $?; rm -f $LT $LT.out 1>/dev/null 2>&1` |
11 - LUA_TEST=`LT=luatest.c ; echo "#include <lua.h>" > $LT; echo "#include <lualib.h>" >> $LT; echo "int main() { luaopen_base((lua_State *)lua_open()); return 0; }" >> $LT ; $CC -Wall $LT -o $LT.out $LUA_INCLUDES $LUA_LIBS $CFLAGS $LDFLAGS 1>/dev/null 2>&1 ; echo $?; rm -f $LT $LT.out 1>/dev/null 2>&1` |
12 + LUA_TEST=`LT=luatest.c ; echo "#include <lua.h>" > $LT; echo "#include <lualib.h>" >> $LT; echo "int main() { luaopen_base((lua_State *)lua_open()); return 0; }" >> $LT ; $CC $LT -o $LT.out $LUA_INCLUDES $LUA_LIBS $CFLAGS $LDFLAGS 1>/dev/null 2>&1 ; echo $?; rm -f $LT $LT.out 1>/dev/null 2>&1` |
12 + LUA_TEST=`LT=luatest.c ; \ |
|
13 + echo "#include <lua.h>" > $LT; \ |
|
14 + echo "#include <lualib.h>" >> $LT; \ |
|
15 + echo "#if LUA_VERSION_NUM >= 502" >> $LT; \ |
|
16 + echo "#include <lauxlib.h>" >> $LT; \ |
|
17 + echo "int main() { luaopen_base((lua_State *)luaL_newstate());" >> $LT; \ |
|
18 + echo "#else" >> $LT; \ |
|
19 + echo "int main() { luaopen_base((lua_State *)lua_open());" >> $LT; \ |
|
20 + echo "#endif" >> $LT; \ |
|
21 + echo "return 0; }" >> $LT ; \ |
|
22 + $CC $LT -o $LT.out $LUA_INCLUDES $LUA_LIBS $CFLAGS $LDFLAGS 1>/dev/null 2>&1 ; echo $?; rm -f $LT $LT.out 1>/dev/null 2>&1` |
13 if test "x$LUA_TEST" != "x0" ; then |
23 if test "x$LUA_TEST" != "x0" ; then |
14 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15 $as_echo "no" >&6; } |
25 $as_echo "no" >&6; } |