Imported from ../lua-4.0.1.tar.gz.
[lua.git] / config
blob6a271eaf8722426517efbcb2e24a5769ab9b1e45
1 # configuration file for making Lua
2 # see INSTALL for installation instructions
4 # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
6 # ------------------------------------------------------------------ Lua
8 # Lua uses double for numbers. To change this, uncomment one of the lines below.
9 #NUMBER= -DLUA_NUM_TYPE=double
10 #NUMBER= -DLUA_NUM_TYPE=float
11 #NUMBER= -DLUA_NUM_TYPE=long
12 # Optionally, you may also want change how numbers are converted to strings,
13 # and vice-versa. Look for LUA_NUMBER in llimits.h and in the rest of the code.
15 # If you want support for pipes, uncomment the following line.
16 # You need popen in your C library.
17 #POPEN= -DPOPEN
19 # If you need compatibility with previous versions, edit and uncomment the
20 # definition of COMPAT below.
21 # Use -DLUA_COMPAT_READPATTERN if you need complex read patterns.
22 # Use -DLUA_COMPAT_ARGRET if you need the old semantics that used only the
23 # first value returned by a function when it is called as the last parameter.
24 # Use -DLUA_DEPRECATEDFUNCS if you need the obsolete functions in the standard 
25 # Lua library (not recommended).
26 #COMPAT= -DLUA_COMPAT_READPATTERN -DLUA_COMPAT_ARGRET -DLUA_DEPRECATEDFUNCS
28 # ------------------------------------------------------------------ C compiler
30 # You need an ANSI C compiler. gcc is a popular one.
31 CC= gcc
32 WARN= -ansi -pedantic -Wall
34 # On IRIX, cc is a good ANSI compiler.
35 #CC= cc
36 #WARN= -ansi -fullwarn
38 # On Solaris, cc is optional. You may have to add -Dsparc if you use -Xc.
39 #CC= cc
40 #WARN= -Xc # -Dsparc
42 # ------------------------------------------------------------------ C library
44 # If your C library is not POSIX compliant, comment the following line.
45 POSIX= -D_POSIX_SOURCE
47 # If your C library does not have the newer ANSI functions strerror, strcoll,
48 # and locale support, uncomment the following line. SunOs 4.1.x is one example.
49 #OLD_ANSI= -DOLD_ANSI
51 # In SunOs 4.1.x, standard headers in /usr/include are not ANSI,
52 # so uncomment the following line to avoid prototypes warnings.
53 #EXTRA_INCS= -I/usr/5include
55 # The stand-alone Lua interpreter needs the math functions, which are usually
56 # in libm.a (-lm).  If your C library already includes the math functions,
57 # or if you are using a modified interpreter that does not need them,
58 # then comment the following line.
59 EXTRA_LIBS= -lm
61 # ------------------------------------------------------------------ librarian
63 # This should work in all Unix systems.
64 AR= ar rcu
66 # If your system doesn't have (or need) ranlib, use RANLIB=true.
67 # On some systems, "ar s" does what ranlib would do.
68 RANLIB= ranlib
69 #RANLIB= ar s
70 #RANLIB= true
72 # ------------------------------------------------------------------ install
74 # Locations for "make install". You may need to be root do "make install".
75 INSTALL_ROOT= /usr/local
76 INSTALL_BIN= $(INSTALL_ROOT)/bin
77 INSTALL_INC= $(INSTALL_ROOT)/include
78 INSTALL_LIB= $(INSTALL_ROOT)/lib
79 INSTALL_MAN= $(INSTALL_ROOT)/man/man1
81 # You might prefer to use "install" if you have it.
82 INSTALL_EXEC= cp
83 INSTALL_DATA= cp
84 #INSTALL_EXEC= install -m 0755
85 #INSTALL_DATA= install -m 0644
87 # == END OF USER SETTINGS. DO NOT CHANGE ANYTHING BELOW THIS LINE =============
89 BIN= $(LUA)/bin
90 INC= $(LUA)/include
91 LIB= $(LUA)/lib
93 INCS= -I$(INC) $(EXTRA_INCS)
94 DEFS= $(COMPAT) $(NUMBER) $(OLD_ANSI) $(EXTRA_DEFS)
96 CFLAGS= -O2 $(WARN) $(INCS) $(DEFS)
98 V=4.0
100 # (end of config)