1 diff -ur lua-5.1.orig/etc/lua.pc lua-5.1/etc/lua.pc
2 --- lua-5.1.orig/etc/lua.pc 2006-03-21 11:51:53.000000000 +0100
3 +++ lua-5.1/etc/lua.pc 2006-03-21 11:52:05.000000000 +0100
7 # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
10 INSTALL_BIN= ${prefix}/bin
11 INSTALL_INC= ${prefix}/include
12 INSTALL_LIB= ${prefix}/lib
13 diff -ur lua-5.1.orig/src/Makefile lua-5.1/src/Makefile
14 --- lua-5.1.orig/src/Makefile 2006-03-21 11:51:53.000000000 +0100
15 +++ lua-5.1/src/Makefile 2006-03-21 11:52:09.000000000 +0100
17 PLATS= aix ansi bsd generic linux macosx mingw posix solaris
21 CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
22 lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \
23 lundump.o lvm.o lzio.o
25 LUAC_O= luac.o print.o
27 ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
28 -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
29 +ALL_T= $(LUA_A) $(LUA_SO) $(LUA_T) $(LUAC_T)
37 +$(LUA_SO): $(CORE_O) $(LIB_O)
38 + $(CC) -shared -ldl -Wl,-soname,liblua.so -o $@.5.1 $? $(MYLDFLAGS)
41 $(LUA_T): $(LUA_O) $(LUA_A)
42 $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
44 diff -ur lua-5.1.orig/src/luaconf.h lua-5.1/src/luaconf.h
45 --- lua-5.1.orig/src/luaconf.h 2006-03-21 11:51:53.000000000 +0100
46 +++ lua-5.1/src/luaconf.h 2006-03-21 11:52:05.000000000 +0100
48 ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
51 -#define LUA_ROOT "/usr/local/"
52 +#define LUA_ROOT "/usr/"
53 #define LUA_LDIR LUA_ROOT "share/lua/5.1/"
54 #define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
55 #define LUA_PATH_DEFAULT \