diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-11-16 14:25:08 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-11-16 14:25:08 -0200 |
commit | 33b4dec1cb44cff41db626960facfe10fa8d4c66 (patch) | |
tree | 79b4660dc295219df69aa58ace164ec07e70c1ed | |
parent | 7dd10a1d7e0b6fa44c03060c6ce2d4de64830339 (diff) | |
download | lua-github-33b4dec1cb44cff41db626960facfe10fa8d4c66.tar.gz |
-rw-r--r-- | luaconf.h | 28 | ||||
-rw-r--r-- | makefile | 2 |
2 files changed, 16 insertions, 14 deletions
@@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.72 2005/11/08 19:45:58 roberto Exp roberto $ +** $Id: luaconf.h,v 1.73 2005/11/16 11:56:28 roberto Exp $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -28,26 +28,24 @@ #define LUA_ANSI #endif - -#if !defined(LUA_ANSI) - -#if defined(__linux__) +#if defined(LUA_USE_LINUX) #define LUA_USE_POSIX +#define LUA_USE_DLOPEN /* needs an extra library: -ldl */ +#define LUA_USE_READLINE /* needs some extra libraries */ #endif -#if defined(__APPLE__) && defined(__MACH__) +#if defined(LUA_USE_MACOSX) #define LUA_USE_POSIX -#define LUA_DL_DYLD -#endif - -#if defined(_WIN32) -#define LUA_DL_DLL -#endif - +#define LUA_DL_DYLD /* does not need extra library */ #endif +/* +@@ LUA_USE_POSIX includes all functionallity listed as X/Open System +@* Interfaces Extension (XSI). +** CHANGE it (define it) if your system is XSI compatible. +*/ #if defined(LUA_USE_POSIX) #define LUA_USE_MKSTEMP #define LUA_USE_ISATTY @@ -677,6 +675,10 @@ union luai_Cast { double l_d; long l_l; }; #define LUA_DL_DLOPEN #endif +#if !defined(LUA_ANSI) && defined(_WIN32) +#define LUA_DL_DLL +#endif + /* @@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State @@ -29,7 +29,7 @@ MYLIBS= # enable Linux goodies -MYCFLAGS= $(LOCAL) -DLUA_USE_DLOPEN -DLUA_USE_READLINE +MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX MYLDFLAGS= -Wl,-E MYLIBS= -ldl -lreadline -lhistory -lncurses |