]> git.decadent.org.uk Git - ion3.git/blob - build/ac/system-ac.mk.in
[svn-upgrade] Integrating new upstream version, ion3 (20070318)
[ion3.git] / build / ac / system-ac.mk.in
1 ##
2 ## System settings
3 ##
4
5
6 ##
7 ## Installation paths
8 ##
9
10 prefix=@prefix@
11 exec_prefix=@exec_prefix@
12
13 # Unless you are creating a package conforming to some OS's standards, you
14 # probably do not want to modify the following directories:
15
16 # Main binaries
17 BINDIR=@bindir@
18 # Configuration .lua files
19 ETCDIR=@sysconfdir@/@PACKAGE_TARNAME@
20 # Some .lua files and ion-* shell scripts
21 SHAREDIR=@datadir@/@PACKAGE_TARNAME@
22 # Manual pages
23 MANDIR=@datadir@/man
24 # Some documents
25 DOCDIR=@datadir@/doc/@PACKAGE_TARNAME@
26 # Nothing at the moment
27 INCDIR=@includedir@
28 # Nothing at the moment
29 LIBDIR=@libdir@
30 # Modules
31 MODULEDIR=@libdir@/@PACKAGE_TARNAME@/mod
32 # Compiled Lua source code
33 LCDIR=@libdir@/@PACKAGE_TARNAME@/lc
34 # ion-completefile (does not belong in SHAREDIR being a binary file)
35 EXTRABINDIR=@libexecdir@/@PACKAGE_TARNAME@/bin
36 # For ion-completeman system-wide cache
37 #VARDIR=@localstatedir@/cache/@PACKAGE_TARNAME@
38 VARDIR=/var/cache/@PACKAGE_TARNAME@
39 # Message catalogs
40 LOCALEDIR=@prefix@/share/locale
41
42
43 ##
44 ## Modules
45 ##
46
47 # Set PRELOAD_MODULES=1 if your system does not support dynamically loaded
48 # modules through 'libdl' or has non-standard naming conventions.
49 PRELOAD_MODULES=@PRELOAD_MODULES@
50
51 # Flags to link with libdl.
52 DL_LIBS=@DL_LIBS@
53
54
55 ##
56 ## Lua
57 ##
58
59 # If you have installed Lua 5.0 from the official tarball without changing
60 # paths, this should do it.
61 #LUA_DIR=/usr/local
62 LUA_LIBS = @LUA_LIBS@
63 LUA_INCLUDES = @LUA_INCLUDES@
64 LUA=@LUA@
65 LUAC=@LUAC@
66
67 # If you are using the Debian packages, the following settings should be
68 # what you want.
69 #LUA_LIBS=`lua-config50 --libs`
70 #LUA_INCLUDES=`lua-config50 --include`
71 #LUA=lua50
72 #LUAC=luac50
73
74
75 ##
76 ## X libraries, includes and options
77 ##
78
79 #X11_PREFIX=/usr/X11R6
80 # SunOS/Solaris
81 #X11_PREFIX=/usr/openwin
82
83 X11_LIBS=@X_EXTRA_LIBS@ @X_PRE_LIBS@ -lX11 @X_LIBS@
84 X11_INCLUDES=@X_CFLAGS@
85
86 # Change commenting to disable Xinerama support
87 XINERAMA_LIBS=@XINERAMA_LIBS@
88 DEFINES += @_DCF_NO_XINERAMA@
89
90 # XFree86 libraries up to 4.3.0 have a bug that will cause Ion to segfault
91 # if Opera is used when i18n support is enabled. The following setting
92 # should work around that situation.
93 DEFINES += @_DCF_XFREE86_TEXTPROP_BUG_WORKAROUND@
94
95 # Use the Xutf8 routines (XFree86 extension) instead of Xmb routines in
96 # an UTF8 locale.
97 DEFINES += @_DCF_DE_USE_XUTF8@
98
99 # Remap F11 key to SunF36 and F12 to SunF37? You may want to set this
100 # on SunOS.
101 DEFINES += @_DCF_SUN_F1X_REMAP@
102
103
104 ##
105 ## libc
106 ##
107
108 # You may uncomment this if you know your system has
109 # asprintf and vasprintf in the c library. (gnu libc has.)
110 # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
111 # in sprintf_2.2/ is used.
112 HAS_SYSTEM_ASPRINTF=@HAS_SYSTEM_ASPRINTF@
113
114
115 # If you're on an archaic system (such as relatively recent *BSD releases)
116 # without even dummy multibyte/widechar and localisation support, you may
117 # have to uncomment the following line:
118 DEFINES += @_DCF_NO_LOCALE@
119
120
121 ##
122 ## C compiler
123 ##
124
125 CC=@CC@
126
127 # Same as '-Wall -pedantic' without '-Wunused' as callbacks often
128 # have unused variables.
129 WARN=   -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
130         -Wtrigraphs -Wformat -Wchar-subscripts \
131         -Wparentheses -pedantic -Wuninitialized
132
133 CFLAGS=@CFLAGS@ $(WARN) $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
134 LDFLAGS=@LDFLAGS@ $(EXTRA_LIBS) $(LIBS)
135 EXPORT_DYNAMIC=-Xlinker --export-dynamic
136
137 # The following options are mainly for development use and can be used
138 # to check that the code seems to conform to some standards. Depending
139 # on the version and vendor of you libc, the options may or may not have
140 # expected results. If you define one of C99_SOURCE or XOPEN_SOURCE, you
141 # may also have to define the other.
142
143 #C89_SOURCE=-ansi
144
145 #POSIX_SOURCE=@_D_POSIX_SOURCE@
146
147 # Most systems
148 #XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
149 # SunOS, (Irix)
150 #XOPEN_SOURCE=-D__EXTENSIONS__
151
152 #C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
153
154 # The -DCF_HAS_VA_COPY option should allow for some optimisations, and
155 # in some cases simply defining
156 C99_SOURCE=@_DCF_HAS_VA_COPY@
157 # might allow for those optimisations to be taken without any  special
158 # libc or compiler options.
159
160
161 ##
162 ## make depend
163 ##
164
165 DEPEND_FILE=.depend
166 DO_MAKE_DEPEND=$(CC) -MM $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
167 MAKE_DEPEND=$(DO_MAKE_DEPEND) $(SOURCES) > $(DEPEND_FILE)
168
169 ##
170 ## AR
171 ##
172
173 AR=@AR@
174 ARFLAGS=cr
175 RANLIB=@RANLIB@
176
177
178 ##
179 ## Install & strip
180 ##
181
182 INSTALL=@INSTALL@
183 INSTALLDIR=mkdir -p
184
185 BIN_MODE=755
186 DATA_MODE=644
187
188 STRIP=@STRIP@
189
190 RM=rm