summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-11-16 14:25:08 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-11-16 14:25:08 -0200
commit33b4dec1cb44cff41db626960facfe10fa8d4c66 (patch)
tree79b4660dc295219df69aa58ace164ec07e70c1ed
parent7dd10a1d7e0b6fa44c03060c6ce2d4de64830339 (diff)
downloadlua-33b4dec1cb44cff41db626960facfe10fa8d4c66.tar.gz
lua-33b4dec1cb44cff41db626960facfe10fa8d4c66.tar.bz2
lua-33b4dec1cb44cff41db626960facfe10fa8d4c66.zip
no more "auto-detection"v5.1-beta
-rw-r--r--luaconf.h28
-rw-r--r--makefile2
2 files changed, 16 insertions, 14 deletions
diff --git a/luaconf.h b/luaconf.h
index cba433c8..0e0b8f5d 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.72 2005/11/08 19:45:58 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.73 2005/11/16 11:56:28 roberto Exp $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -28,26 +28,24 @@
28#define LUA_ANSI 28#define LUA_ANSI
29#endif 29#endif
30 30
31 31#if defined(LUA_USE_LINUX)
32#if !defined(LUA_ANSI)
33
34#if defined(__linux__)
35#define LUA_USE_POSIX 32#define LUA_USE_POSIX
33#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
34#define LUA_USE_READLINE /* needs some extra libraries */
36#endif 35#endif
37 36
38#if defined(__APPLE__) && defined(__MACH__) 37#if defined(LUA_USE_MACOSX)
39#define LUA_USE_POSIX 38#define LUA_USE_POSIX
40#define LUA_DL_DYLD 39#define LUA_DL_DYLD /* does not need extra library */
41#endif
42
43#if defined(_WIN32)
44#define LUA_DL_DLL
45#endif
46
47#endif 40#endif
48 41
49 42
50 43
44/*
45@@ LUA_USE_POSIX includes all functionallity listed as X/Open System
46@* Interfaces Extension (XSI).
47** CHANGE it (define it) if your system is XSI compatible.
48*/
51#if defined(LUA_USE_POSIX) 49#if defined(LUA_USE_POSIX)
52#define LUA_USE_MKSTEMP 50#define LUA_USE_MKSTEMP
53#define LUA_USE_ISATTY 51#define LUA_USE_ISATTY
@@ -677,6 +675,10 @@ union luai_Cast { double l_d; long l_l; };
677#define LUA_DL_DLOPEN 675#define LUA_DL_DLOPEN
678#endif 676#endif
679 677
678#if !defined(LUA_ANSI) && defined(_WIN32)
679#define LUA_DL_DLL
680#endif
681
680 682
681/* 683/*
682@@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State 684@@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State
diff --git a/makefile b/makefile
index 53cf4ca1..516677d6 100644
--- a/makefile
+++ b/makefile
@@ -29,7 +29,7 @@ MYLIBS=
29 29
30 30
31# enable Linux goodies 31# enable Linux goodies
32MYCFLAGS= $(LOCAL) -DLUA_USE_DLOPEN -DLUA_USE_READLINE 32MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX
33MYLDFLAGS= -Wl,-E 33MYLDFLAGS= -Wl,-E
34MYLIBS= -ldl -lreadline -lhistory -lncurses 34MYLIBS= -ldl -lreadline -lhistory -lncurses
35 35