trunk: changeset 1970
[notion/jeffpc.git] / system-ac.mk.in
blobf923eef862e66d38fcdd935b76fe0e48de5ce4ba
1 ##
2 ## System settings
3 ##
6 ##
7 ## Installation paths
8 ##
10 prefix=@prefix@
11 exec_prefix=@exec_prefix@
13 # Unless you are creating a package conforming to some OS's standards, you
14 # probably do not want to modify the following directories:
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
44 ## Modules
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@
51 # Flags to link with libdl.
52 DL_LIBS=@DL_LIBS@
56 ## Lua
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@
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
76 ## X libraries, includes and options
79 #X11_PREFIX=/usr/X11R6
80 # SunOS/Solaris
81 #X11_PREFIX=/usr/openwin
83 X11_LIBS=@X_EXTRA_LIBS@ @X_PRE_LIBS@ -lX11 @X_LIBS@
84 X11_INCLUDES=@X_CFLAGS@
86 # Change commenting to disable Xinerama support
87 XINERAMA_LIBS=@XINERAMA_LIBS@
88 DEFINES += @_DCF_NO_XINERAMA@
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@
95 # Use the Xutf8 routines (XFree86 extension) instead of Xmb routines in
96 # an UTF8 locale given the -i18n command line option?
97 DEFINES += @_DCF_DE_USE_XUTF8@
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@
105 ## libc
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@
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@
122 ## C compiler
125 CC=@CC@
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
133 CFLAGS=@CFLAGS@ $(WARN) $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
134 LDFLAGS=@LDFLAGS@ $(EXTRA_LIBS) $(LIBS)
136 # The following options are mainly for development use and can be used
137 # to check that the code seems to conform to some standards. Depending
138 # on the version and vendor of you libc, the options may or may not have
139 # expected results. If you define one of C99_SOURCE or XOPEN_SOURCE, you
140 # may also have to define the other.
142 #C89_SOURCE=-ansi
144 #POSIX_SOURCE=@_D_POSIX_SOURCE@
146 # Most systems
147 #XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
148 # SunOS, (Irix)
149 #XOPEN_SOURCE=-D__EXTENSIONS__
151 #C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
153 # The -DCF_HAS_VA_COPY option should allow for some optimisations, and
154 # in some cases simply defining
155 C99_SOURCE=@_DCF_HAS_VA_COPY@
156 # might allow for those optimisations to be taken without any special
157 # libc or compiler options.
161 ## make depend
164 DEPEND_FILE=.depend
165 DO_MAKE_DEPEND=$(CC) -MM $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
166 MAKE_DEPEND=$(DO_MAKE_DEPEND) $(SOURCES) > $(DEPEND_FILE)
169 ## AR
172 AR=@AR@
173 ARFLAGS=cr
174 RANLIB=@RANLIB@
178 ## Install & strip
181 INSTALL=@INSTALL@
182 INSTALLDIR=mkdir -p
184 BIN_MODE=755
185 DATA_MODE=644
187 STRIP=@STRIP@
189 RM=rm