wmgenmenu: Add French and Spanish translations
[wmaker-crm.git] / configure.ac
Commit [+]AuthorDateLineData
c1f19bc9 dan2001-07-30 21:44:15 +00001dnl
2dnl Window Maker autoconf input.
3dnl
4dnl Process with:
5dnl aclocal
6dnl autoheader
7dnl autoconf
8dnl libtoolize --force --automake
9dnl automake -a --gnu --include-deps
10dnl
11dnl
12
13
27dcdd37 Andreas Metzler2010-08-29 14:41:33 +020014AC_INIT(WindowMaker, 0.94.0-crm, , WindowMaker, http://www.windowmaker.info/)
2031a258 Carlos R. Mafra2010-08-24 16:04:33 +020015AC_CONFIG_SRCDIR(src/WindowMaker.h)
6b5cfc88 Tamas TEVESZ2010-04-08 21:38:03 +020016AC_CONFIG_MACRO_DIR([m4])
060ba6a9 Brad Jorsch2010-09-29 16:12:33 -040017AM_CONFIG_HEADER(config.h)
5c8eb580 Carlos R. Mafra2010-08-24 17:06:27 +020018AM_INIT_AUTOMAKE([1.11 silent-rules])
c1f19bc9 dan2001-07-30 21:44:15 +000019
060ba6a9
BJ
Brad Jorsch2010-09-29 16:12:33 -040020AH_BOTTOM([#include "config-paths.h"])
21
d872b738
AM
Andreas Metzler2010-08-29 16:13:39 +020022dnl libtool library versioning
23dnl =======================
24dnl
25dnl current
26dnl revision
27dnl age
28dnl
29dnl 1. Start with version information of ‘0:0:0’ for each libtool library.
30dnl 2. Update the version information only immediately before a public
31dnl release of your software. More frequent updates are unnecessary, and
32dnl only guarantee that the current interface number gets larger faster.
33dnl 3. If the library source code has changed at all since the last
34dnl update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
35dnl 4. If any interfaces have been added, removed, or changed since the
36dnl last update, increment current, and set revision to 0.
37dnl 5. If any interfaces have been added since the last public release,
38dnl then increment age.
39dnl 6. If any interfaces have been removed or changed since the last
40dnl public release, then set age to 0.
41dnl
42dnl libwraster
43WRASTER_CURRENT=4
44WRASTER_REVISION=0
45WRASTER_AGE=1
46WRASTER_VERSION=$WRASTER_CURRENT:$WRASTER_REVISION:$WRASTER_AGE
47AC_SUBST(WRASTER_VERSION)
48dnl
49dnl libWINGs
50WINGS_CURRENT=2
51WINGS_REVISION=1
52WINGS_AGE=0
53WINGS_VERSION=$WINGS_CURRENT:$WINGS_REVISION:$WINGS_AGE
54AC_SUBST(WINGS_VERSION)
55dnl
56dnl libWUtil
091c9c36
TT
Tamas TEVESZ2010-09-23 02:46:00 +020057WUTIL_CURRENT=2
58WUTIL_REVISION=0
d872b738
AM
Andreas Metzler2010-08-29 16:13:39 +020059WUTIL_AGE=0
60WUTIL_VERSION=$WUTIL_CURRENT:$WUTIL_REVISION:$WUTIL_AGE
61AC_SUBST(WUTIL_VERSION)
62
63
c1f19bc9 dan2001-07-30 21:44:15 +000064dnl Checks for host/os name
65dnl =======================
5fe90167 dan2002-03-03 20:33:44 +000066dnl AC_CANONICAL_HOST -- already done by AC_PROG_LIBTOOL
c1f19bc9 dan2001-07-30 21:44:15 +000067
c1f19bc9 dan2001-07-30 21:44:15 +000068dnl Checks for programs.
69dnl ===================
70AC_ISC_POSIX
71AC_PROG_CC
c1f19bc9 dan2001-07-30 21:44:15 +000072AC_PROG_LN_S
73AC_PROG_GCC_TRADITIONAL
6b5cfc88 Tamas TEVESZ2010-04-08 21:38:03 +020074AC_PROG_LIBTOOL
c1f19bc9 dan2001-07-30 21:44:15 +000075
1bc042c1 Tamas TEVESZ2010-03-31 04:54:11 +020076AX_CFLAGS_GCC_OPTION(-Wall)
ce9b375b Carlos R. Mafra2010-09-23 11:32:41 +020077AX_CFLAGS_GCC_OPTION(-Wextra -Wno-sign-compare -Wno-unused-parameter)
1bc042c1 Tamas TEVESZ2010-03-31 04:54:11 +020078
55959b4f
TT
Tamas TEVESZ2010-03-23 20:27:53 +010079dnl Platform-specific Makefile setup
80dnl ================================
81
82case "${host}" in
71aa4f28 Tamas TEVESZ2010-03-26 20:25:27 +010083 *-*-linux*|*-*-cygwin*)
55959b4f
TT
Tamas TEVESZ2010-03-23 20:27:53 +010084 WM_OSDEP="linux"
85 ;;
86 *-*-freebsd*)
87 WM_OSDEP="bsd"
88 CFLAGS="$CFLAGS -DFREEBSD"
89 ;;
90 *-*-netbsd*)
91 WM_OSDEP="bsd"
92 CFLAGS="$CFLAGS -DNETBSD"
93 ;;
94 *-*-openbsd*)
95 WM_OSDEP="bsd"
96 CFLAGS="$CFLAGS -DOPENBSD"
97 ;;
98 *-*-dragonfly*)
99 WM_OSDEP="bsd"
100 CFLAGS="$CFLAGS -DDRAGONFLYBSD"
101 ;;
102 *-apple-darwin*)
103 WM_OSDEP="darwin"
104 ;;
105 *-*-solaris*)
106 WM_OSDEP="stub" # solaris.c when done
107 ;;
108 *)
109 WM_OSDEP="stub"
110 ;;
111esac
112AC_SUBST(WM_OSDEP)
113
c1f19bc9 dan2001-07-30 21:44:15 +0000114
115dnl the prefix
116dnl ==========
117dnl
118dnl move this earlier in the script... anyone know why this is handled
119dnl in such a bizarre way?
120
121test "x$prefix" = xNONE && prefix=$ac_default_prefix
122dnl Let make expand exec_prefix.
123test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
124
125
126_bindir=`eval echo $bindir`
127_bindir=`eval echo $_bindir`
128
060ba6a9 Brad Jorsch2010-09-29 16:12:33 -0400129lib_search_path='-L${libdir}'
c1f19bc9 dan2001-07-30 21:44:15 +0000130
060ba6a9 Brad Jorsch2010-09-29 16:12:33 -0400131inc_search_path='-I${includedir}'
c1f19bc9 dan2001-07-30 21:44:15 +0000132
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200133dnl ===============================================
c1f19bc9 dan2001-07-30 21:44:15 +0000134dnl Specify paths to look for libraries and headers
135dnl ===============================================
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200136AC_ARG_WITH(libs-from, AS_HELP_STRING([--with-libs-from], [pass compiler flags to look for libraries]),
c1f19bc9 dan2001-07-30 21:44:15 +0000137 [lib_search_path="$withval $lib_search_path"])
138
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200139AC_ARG_WITH(incs-from, AS_HELP_STRING([--with-incs-from], [pass compiler flags to look for header files]),
c1f19bc9 dan2001-07-30 21:44:15 +0000140 [inc_search_path="$withval $inc_search_path"])
141
4a9d561c
TT
Tamas TEVESZ2010-09-22 18:00:34 +0200142
143dnl Boehm GC
144dnl ========
145with_boehm_gc=no
146AC_ARG_ENABLE([boehm-gc],
147 [AS_HELP_STRING([--enable-boehm-gc], [use Boehm GC instead of the default libc malloc() [default=no]])],
148 [with_boehm_gc=$enableval])
149
150AS_IF([test "x$with_boehm_gc" = "xyes"],
151 AC_SEARCH_LIBS([GC_malloc], [gc],
152 [AC_DEFINE(USE_BOEHM_GC, 1, [Define if Boehm GC is to be used])],
153 [AC_MSG_FAILURE([--enable-boehm-gc specified but test for libgc failed])]
154 )
155)
156
ffda48bd
TT
Tamas TEVESZ2010-09-29 17:15:55 +0200157dnl LCOV
158dnl ====
159AC_ARG_ENABLE([lcov],
160 [AS_HELP_STRING([--enable-lcov[=output-directory]], [enable coverage data generation using LCOV (GCC only) [default=no]])],
161 [],
162 [enable_lcov=no])
163
164AS_IF([test "x$enable_lcov" != "xno"],
165 [AX_CFLAGS_GCC_OPTION(-fprofile-arcs -ftest-coverage)
166 if test "x$enable_lcov" = "xyes"; then
167 lcov_output_directory="coverage-report"
168 else
169 lcov_output_directory="${enable_lcov}/coverage-report"
170 fi
171 AC_SUBST(lcov_output_directory)]
172)
173AM_CONDITIONAL([USE_LCOV], [test "x$enable_lcov" != "xno"])
174
4a9d561c Tamas TEVESZ2010-09-22 18:00:34 +0200175dnl
be05b0f0
CM
Carlos R. Mafra2010-08-24 15:10:44 +0200176dnl ============================
177dnl Checks for library functions
c1f19bc9 dan2001-07-30 21:44:15 +0000178dnl ============================
179dnl not used anywhere
7374fe59 Tamas TEVESZ2010-09-20 14:31:43 +0200180AC_FUNC_MEMCMP
c1f19bc9 dan2001-07-30 21:44:15 +0000181AC_FUNC_VPRINTF
3c847aa5 Tamas TEVESZ2010-09-23 02:19:42 +0200182AC_CHECK_FUNCS(gethostname select poll strcasecmp strncasecmp \
d8eea6a1 Tamas TEVESZ2010-09-29 00:02:03 +0200183 setsid mallinfo mkstemp sysconf)
c1f19bc9 dan2001-07-30 21:44:15 +0000184
d2853c85
TT
Tamas TEVESZ2010-09-23 23:23:29 +0200185dnl Check for strlcat/strlcpy
186dnl =========================
8ca05fd4
BJ
Brad Jorsch2010-09-24 14:37:57 -0400187AC_ARG_WITH([libbsd],
188 [AS_HELP_STRING([--without-libbsd], [do not use libbsd for strlcat and strlcpy [default=check]])],
189 [AS_IF([test "x$with_libbsd" != "xno"],
190 [with_libbsd=bsd]
191 [with_libbsd=]
192 )],
193 [with_libbsd=bsd])
194
195tmp_libs=$LIBS
196AC_SEARCH_LIBS([strlcat],[$with_libbsd],
197 [AC_DEFINE(HAVE_STRLCAT, 1, [Define if strlcat is available])],
198 []
199)
200AC_SEARCH_LIBS([strlcpy],[$with_libbsd],
201 [AC_DEFINE(HAVE_STRLCAT, 1, [Define if strlcpy is available])],
202 []
203)
204LIBS=$tmp_libs
205
206LIBBSD=
207AS_IF([test "x$ac_cv_search_strlcat" = "x-lbsd" -o "x$ac_cv_search_strlcpy" = "x-lbsd"],
208 [LIBBSD=-lbsd
209 AC_CHECK_HEADERS([bsd/string.h])]
210)
211AC_SUBST(LIBBSD)
d2853c85 Tamas TEVESZ2010-09-23 23:23:29 +0200212
c7868fa4
TT
Tamas TEVESZ2010-03-18 19:18:18 +0100213dnl Check for inotify
214dnl =================
215AC_CHECK_HEADERS(sys/inotify.h, AC_DEFINE(HAVE_INOTIFY, 1, Check for inotify))
c1f19bc9 dan2001-07-30 21:44:15 +0000216
217dnl Check CPP
218dnl =========
219if test "x$CPP_PATH" = x; then
220 AC_PATH_PROG(CPP_PATH, cpp, notfound,
221 $PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib)
222fi
223
224dnl
225dnl Tell stupid Solaris cpp that the files it will process have C++ like syntax
226dnl RedHat 5.x is broken too, so it won't make a symlink from cpp to the
227dnl standard locations
228dnl
229if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
230 if test "$GCC" = "yes"; then
231 CPP_PATH="gcc -E -x c"
232 else
233 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
234 CPP_PATH="$CPP_PATH -B"
235 else
236 echo "cpp, the C preprocessor was not found in your system."
237 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
238 exit
239 fi
240 fi
241fi
c1f19bc9 dan2001-07-30 21:44:15 +0000242
243
244
245dnl Checks for header files.
246dnl =======================
c1f19bc9 dan2001-07-30 21:44:15 +0000247AC_HEADER_SYS_WAIT
248AC_HEADER_TIME
1420e44b
TT
Tamas TEVESZ2010-09-29 02:52:19 +0200249AC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h libintl.h poll.h malloc.h ctype.h \
250 string.h strings.h)
c1f19bc9 dan2001-07-30 21:44:15 +0000251
252
253dnl Checks for typedefs, structures, and compiler characteristics.
254dnl ==============================================================
255AC_DECL_SYS_SIGLIST
256AC_C_CONST
51236308
TT
Tamas TEVESZ2010-09-23 17:09:46 +0200257AC_TYPE_SIZE_T
258AC_TYPE_PID_T
c1f19bc9 dan2001-07-30 21:44:15 +0000259AC_TYPE_SIGNAL
260
1941aaf3 dan2002-09-30 12:39:22 +0000261
64468fcf dan2003-06-10 01:56:26 +0000262dnl pkg-config
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200263dnl ==========
64468fcf dan2003-06-10 01:56:26 +0000264dnl AC_ARG_VAR(PKGCONFIG, [pkg-config command])
265AC_CHECK_PROG(PKGCONFIG, pkg-config, pkg-config)
266
c1f19bc9 dan2001-07-30 21:44:15 +0000267dnl gettext
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200268dnl =======
c1f19bc9 dan2001-07-30 21:44:15 +0000269
270dnl AM_GNU_GETTEXT
271
c1f19bc9 dan2001-07-30 21:44:15 +0000272INTLIBS=""
273
274AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"],
275 AC_CHECK_LIB(intl, gettext, [INTLIBS="-lintl" HAVEGETTEXT="yes"],
276 INTLIBS="" ))
277
278AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
279
280if test "$XGETTEXT" != ""; then
281 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
282 echo "xgettext isn't GNU version"
283 XGETTEXT=""
284 fi
285fi
286
287if test "$LINGUAS" != ""; then
288 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
a2b404b5 dan2002-10-08 08:26:06 +0000289 AC_DEFINE(I18N, 1, [Internationalization (I18N) support (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000290 PO=""
c1f19bc9 dan2001-07-30 21:44:15 +0000291 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
292 else
293 LINGUAS=""
294 PO=""
295 echo "xgettext and libintl.a don't both exist; will not build i18n support"
296 fi
297else
298 INTLIBS=""
299 MOFILES=""
300 WPMOFILES=""
18618802 Carlos R. Mafra2010-01-25 10:55:33 +0100301 UTILMOFILES=""
c1f19bc9 dan2001-07-30 21:44:15 +0000302 PO=""
303fi
304
305
306dnl The Tower of Babel
307dnl ==================
308
309dnl List of supported locales
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200310dnl =========================
7f457fa2 Norayr Chilignaryan2009-09-21 12:28:24 +0500311supported_locales="be bg bs ca cs da de el es et fi fr gl hr hu hy it ja ko ms nl no pl pt ro ru sk sv tr zh_CN zh_TW"
d63a0b48 kojima2004-10-27 02:54:32 +0000312supported_wprefs_locales="bg ca cs de es et fi fr hr hu it ja ko pt ru sk zh_CN zh_TW"
528243bb dan2003-04-06 23:18:07 +0000313supported_wings_locales="bg ca cs de fr sk"
077a2eaa Camille d'Alméras2011-02-07 19:34:57 +0000314supported_util_locales="de es fr"
c1f19bc9 dan2001-07-30 21:44:15 +0000315
316for lang in $LINGUAS; do
317 ok=0
318 for l in $supported_locales; do
319 if test "$l" = "$lang"; then
320 ok=1
321 break
322 fi
323 done
324 if test "$ok" = 1; then
325 MOFILES="$MOFILES $lang.mo"
326 else
327 echo "Locale $lang is not supported."
328 fi
329 ok=0
330 for l in $supported_wprefs_locales; do
331 if test "$l" = "$lang"; then
332 ok=1
333 break
334 fi
335 done
336 if test "$ok" = 1; then
337 WPMOFILES="$WPMOFILES $lang.mo"
338 fi
339 ok=0
18618802
CM
Carlos R. Mafra2010-01-25 10:55:33 +0100340 for l in $supported_util_locales; do
341 if test "$l" = "$lang"; then
342 ok=1
343 break
344 fi
345 done
346 if test "$ok" = 1; then
347 UTILMOFILES="$UTILMOFILES $lang.mo"
348 fi
349 ok=0
c1f19bc9 dan2001-07-30 21:44:15 +0000350 for l in $supported_wings_locales; do
351 if test "$l" = "$lang"; then
352 ok=1
353 break
354 fi
355 done
356 if test "$ok" = 1; then
357 WINGSMOFILES="$WINGSMOFILES $lang.mo"
358 fi
359done
360
361
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200362dnl Added by Oliver - Support for NLSDIR option
c1f19bc9 dan2001-07-30 21:44:15 +0000363dnl ===========================================
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200364AC_ARG_WITH(nlsdir, AS_HELP_STRING([--with-nlsdir=PATH], [specify where the locale stuff should go]))
c1f19bc9 dan2001-07-30 21:44:15 +0000365
366if test "x$NLSDIR" = "x"; then
367 if test "x$with_nlsdir" != "x"; then
368 NLSDIR=$with_nlsdir
369 else
370 NLSDIR='$(prefix)/lib/locale'
371 fi
372fi
373
060ba6a9 Brad Jorsch2010-09-29 16:12:33 -0400374menutextdomain=
ca1c29cd
AF
Alexey I. Froloff2010-09-10 20:51:02 +0400375AC_ARG_WITH(menu-textdomain, AS_HELP_STRING([--with-menu-textdomain=DOMAIN], [specify gettext domain used for menu translations]),
376 [if test "x$withval" != "xno"; then
060ba6a9 Brad Jorsch2010-09-29 16:12:33 -0400377 menutextdomain=$withval
ca1c29cd Alexey I. Froloff2010-09-10 20:51:02 +0400378 fi])
060ba6a9 Brad Jorsch2010-09-29 16:12:33 -0400379AC_SUBST(menutextdomain)
ca1c29cd Alexey I. Froloff2010-09-10 20:51:02 +0400380
c1f19bc9 dan2001-07-30 21:44:15 +0000381AC_SUBST(INTLIBS)
382AC_SUBST(NLSDIR)
383AC_SUBST(MOFILES)
384AC_SUBST(WPMOFILES)
18618802 Carlos R. Mafra2010-01-25 10:55:33 +0100385AC_SUBST(UTILMOFILES)
c1f19bc9 dan2001-07-30 21:44:15 +0000386AC_SUBST(WINGSMOFILES)
387AC_SUBST(supported_locales)
388
c1f19bc9 dan2001-07-30 21:44:15 +0000389dnl ===========================================
390dnl Stuff that uses X
391dnl ===========================================
392
393AC_PATH_XTRA
394
395if test $no_x; then
396 AC_MSG_ERROR([The path for the X11 files not found!
397Make sure you have X and it's headers and libraries (the -devel packages
398in Linux) installed.])
399fi
400
401X_LIBRARY_PATH=$x_libraries
c1f19bc9 dan2001-07-30 21:44:15 +0000402XCFLAGS="$X_CFLAGS"
c1f19bc9 dan2001-07-30 21:44:15 +0000403XLFLAGS="$X_LIBS"
f38aa69e
BJ
Brad Jorsch2010-09-24 16:08:12 -0400404XLIBS="-lX11 $X_EXTRA_LIBS"
405LIBXMU="-lXmu"
406AC_SUBST(LIBXMU)
c1f19bc9 dan2001-07-30 21:44:15 +0000407
c1f19bc9 dan2001-07-30 21:44:15 +0000408lib_search_path="$lib_search_path $XLFLAGS"
409inc_search_path="$inc_search_path $XCFLAGS"
410
c1f19bc9 dan2001-07-30 21:44:15 +0000411AC_SUBST(X_LIBRARY_PATH)
412
c1f19bc9 dan2001-07-30 21:44:15 +0000413dnl Decide which locale function to use, setlocale() or _Xsetlocale()
414dnl by MANOME Tomonori
415dnl ===========================================
416use_locale=yes
be05b0f0
CM
Carlos R. Mafra2010-08-24 15:10:44 +0200417AC_ARG_ENABLE(locale, AS_HELP_STRING([--disable-locale], [disable use of X locale support]),
418 use_locale=no)
c1f19bc9 dan2001-07-30 21:44:15 +0000419
420if test "$use_locale" = yes; then
a2b404b5 dan2002-10-08 08:26:06 +0000421 AC_CHECK_LIB(X11, _Xsetlocale,
422 AC_DEFINE(X_LOCALE, 1, [define if you want support for X window's X_LOCALE (set by configure)]),,
423 $XLFLAGS $XLIBS)
c1f19bc9 dan2001-07-30 21:44:15 +0000424fi
425
c1f19bc9 dan2001-07-30 21:44:15 +0000426dnl Check whether XInternAtoms() exist
427dnl ==================================
a2b404b5 dan2002-10-08 08:26:06 +0000428AC_CHECK_LIB(X11, XInternAtoms,
429 AC_DEFINE(HAVE_XINTERNATOMS, 1, [define if your X server has XInternAtoms() (set by configure)]),,
430 $XLFLAGS $XLIBS)
c1f19bc9 dan2001-07-30 21:44:15 +0000431
5ef342d9 kojima2001-09-06 21:42:28 +0000432dnl Check whether XConvertCase() exist
433dnl ==================================
a2b404b5 dan2002-10-08 08:26:06 +0000434AC_CHECK_LIB(X11, XConvertCase,
435 AC_DEFINE(HAVE_XCONVERTCASE, 1, [define if your X server has XConvertCase() (set by configure)]),,
436 $XLFLAGS $XLIBS)
5ef342d9 kojima2001-09-06 21:42:28 +0000437
c1f19bc9 dan2001-07-30 21:44:15 +0000438dnl XKB keyboard language status
439dnl ============================
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200440AC_ARG_ENABLE(modelock, AS_HELP_STRING([--enable-modelock], [XKB keyboard language status support]),
a2b404b5 dan2002-10-08 08:26:06 +0000441 AC_DEFINE(XKB_MODELOCK, 1, [whether XKB language MODELOCK should be enabled]))
c1f19bc9 dan2001-07-30 21:44:15 +0000442
c1f19bc9 dan2001-07-30 21:44:15 +0000443dnl Shape support
444dnl =============
445shape=yes
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200446AC_ARG_ENABLE(shape, AS_HELP_STRING([--disable-shape], [disable shaped window extension support]),
c1f19bc9 dan2001-07-30 21:44:15 +0000447 shape=$enableval, shape=yes)
c1f19bc9 dan2001-07-30 21:44:15 +0000448added_xext=no
449
450if test "$shape" = yes; then
451 AC_CHECK_LIB(Xext, XShapeSelectInput, [XLIBS="-lXext $XLIBS"
452 added_xext=yes
a2b404b5 dan2002-10-08 08:26:06 +0000453 AC_DEFINE(SHAPE, 1, [define if you want support for shaped windows (set by configure)])],
454 shape=no, $XLFLAGS $XLIBS)
c1f19bc9 dan2001-07-30 21:44:15 +0000455fi
456
c201e161 Carlos R. Mafra2010-08-22 19:05:07 +0200457dnl XRandR support
51236308 Tamas TEVESZ2010-09-23 17:09:46 +0200458dnl ==============
09c56140
CM
Carlos R. Mafra2010-10-07 08:39:32 +0200459xrandr=no
460AC_ARG_ENABLE(xrandr, AS_HELP_STRING([--enable-xrandr], [enable XRandR window extension support]),
461 xrandr=$enableval, xrandr=no)
c201e161
CM
Carlos R. Mafra2010-08-22 19:05:07 +0200462added_xext=no
463
f38aa69e Brad Jorsch2010-09-24 16:08:12 -0400464LIBXRANDR=
c201e161 Carlos R. Mafra2010-08-22 19:05:07 +0200465if test "$xrandr" = yes; then
f38aa69e Brad Jorsch2010-09-24 16:08:12 -0400466 AC_CHECK_LIB(Xrandr, XRRQueryExtension, [LIBXRANDR=-lXrandr
c201e161
CM
Carlos R. Mafra2010-08-22 19:05:07 +0200467 added_xext=yes
468 AC_DEFINE(HAVE_XRANDR, 1, [define if you want support for XRandR (set by configure)])],
469 xrandr=no, $XLFLAGS $XLIBS)
470fi
f38aa69e Brad Jorsch2010-09-24 16:08:12 -0400471AC_SUBST(LIBXRANDR)
c1f19bc9 dan2001-07-30 21:44:15 +0000472
3f27b998 Andreas Metzler2010-08-01 15:19:27 +0200473dnl
c238d841
AM
Andreas Metzler2010-08-01 16:07:22 +0200474dnl libWINGS uses math functions, check whether usage requires linking
475dnl against libm
476dnl
477AC_CHECK_FUNC(atan,[mathneedslibm=no;LIBM=],[mathneedslibm=dunno])
478if test "x$mathneedslibm" = "xdunno" ; then
479 AC_CHECK_LIB(m, atan, [LIBM=-lm])
480fi
481AC_SUBST(LIBM)
482
483
484dnl
3f27b998
AM
Andreas Metzler2010-08-01 15:19:27 +0200485dnl libWINGS uses FcPatternDel from libfontconfig
486dnl
487AC_MSG_CHECKING([for fontconfig library])
488FCLIBS=`$PKGCONFIG fontconfig --libs`
489if test "x$FCLIBS" = "x" ; then
490 AC_MSG_RESULT([not found])
491else
492 AC_MSG_RESULT([found])
493fi
494AC_SUBST(FCLIBS)
495
496
51c2edf8 dan2004-10-23 02:26:13 +0000497dnl Xft2 antialiased font support
498dnl =============================
9aca0d5f dan2004-10-12 01:34:32 +0000499
17f26077 dan2002-10-09 05:14:28 +0000500xft=yes
501XFTLIBS=""
9aca0d5f dan2004-10-12 01:34:32 +0000502
503if test "x$PKGCONFIG" != x -a "`$PKGCONFIG xft; echo $?`" = 0; then
504 XFTCONFIG="$PKGCONFIG xft"
505 pkgconfig_xft=yes
506else
507 AC_CHECK_PROG(XFTCONFIG, xft-config, xft-config)
508fi
509
510AC_MSG_CHECKING([for the Xft2 library])
511
512if test "x$XFTCONFIG" != x; then
513 XFTLIBS=`$XFTCONFIG --libs`
514 XFTFLAGS=`$XFTCONFIG --cflags`
515 AC_MSG_RESULT([found])
516else
517 AC_MSG_RESULT([not found])
518 echo
519 echo "ERROR!!! libXft2 is not installed or could not be found."
520 echo " Xft2 is a requirement for building Window Maker."
521 echo " Please install it (along with fontconfig) before continuing."
522 echo
523 exit 1
109bb540 dan2004-07-16 18:18:36 +0000524fi
525
3b46cf38 dan2004-10-31 00:57:25 +0000526minXFT="2.1.0"
9aca0d5f dan2004-10-12 01:34:32 +0000527goodxft="no"
528
529dnl
530dnl The macro below will use $XFTFLAGS (defined above) to find Xft.h
531dnl
532WM_CHECK_XFT_VERSION($minXFT, goodxft=yes, goodxft=no)
533
534if test "$goodxft" = no; then
535 echo
536 echo "ERROR!!! libXft on this system is an old version."
537 echo " Please consider upgrading to at least version ${minXFT}."
538 echo
539 exit 1
540fi
541
542AC_SUBST(XFTFLAGS)
543AC_SUBST(XFTLIBS)
9aca0d5f dan2004-10-12 01:34:32 +0000544
545
c1f19bc9 dan2001-07-30 21:44:15 +0000546dnl XINERAMA support
547dnl ================
39d25088 dan2002-12-02 03:44:10 +0000548xinerama=no
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200549AC_ARG_ENABLE(xinerama, AS_HELP_STRING([--enable-xinerama], [enable Xinerama extension support]),
39d25088 dan2002-12-02 03:44:10 +0000550 xinerama=$enableval, xinerama=no)
c1f19bc9 dan2001-07-30 21:44:15 +0000551
f38aa69e Brad Jorsch2010-09-24 16:08:12 -0400552LIBXINERAMA=
c1f19bc9 dan2001-07-30 21:44:15 +0000553if test "$xinerama" = yes; then
5dbb770a kojima2003-06-04 18:57:03 +0000554 AC_CHECK_LIB(Xinerama, XineramaQueryScreens,
f38aa69e Brad Jorsch2010-09-24 16:08:12 -0400555 [LIBXINERAMA=-lXinerama
ed0d234d kojima2003-06-04 20:40:00 +0000556 xfxine=yes],
557 xfxine=no, $XLFLAGS $XLIBS)
5dbb770a kojima2003-06-04 18:57:03 +0000558
559 AC_CHECK_LIB(Xext, XineramaGetInfo,
ed0d234d kojima2003-06-04 20:40:00 +0000560 [sunxine=yes
561 ], sunxine=no, $XLFLAGS $XLIBS)
562
563 if test "$xfxine" = yes; then
564 xine=1
565 fi
566
567 if test "$sunxine" = yes; then
568 xine=1
569 AC_DEFINE(SOLARIS_XINERAMA, 1,
570 [define if you want support for the XINERAMA extension and are in Solaris (set by configure)])
571 fi
572
573 if test "$xine" = 1; then
574 AC_DEFINE(XINERAMA, 1,
575 [define if you want support for the XINERAMA extension (set by configure)])
576 fi
c1f19bc9 dan2001-07-30 21:44:15 +0000577fi
f38aa69e Brad Jorsch2010-09-24 16:08:12 -0400578AC_SUBST(LIBXINERAMA)
c1f19bc9 dan2001-07-30 21:44:15 +0000579
580
581dnl MIT-SHM support
582dnl ===============
583shm=yes
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200584AC_ARG_ENABLE(shm, AS_HELP_STRING([--disable-shm], [disable usage of MIT-SHM extension]),
c1f19bc9 dan2001-07-30 21:44:15 +0000585 shm=$enableval, shm=yes)
586
587if test "$shm" = yes; then
588 AC_CHECK_LIB(Xext, XShmAttach, ok=yes, ok=no, $XLFLAGS $XLIBS)
589
590 if test "$ok" = yes; then
591 AC_CHECK_FUNC(shmget, ok=yes, ok=no)
592 fi
593
594 if test "$ok" = yes; then
595 if test "$added_xext" = no; then
596 XLIBS="-lXext $XLIBS"
597 fi
a2b404b5 dan2002-10-08 08:26:06 +0000598 AC_DEFINE(XSHM, 1, [define if X's shared memory extension is available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000599 fi
600fi
601
602
603dnl R6 Style Session Management Support
604dnl ===================================
605
606#
607#
608#AC_DEFINE(R6SM)
609#AC_SUBST(XSMPLIBS)
610#
611
612
c1f19bc9 dan2001-07-30 21:44:15 +0000613dnl ==============================================
614dnl Graphic Format Libraries
615dnl ==============================================
616
c1f19bc9 dan2001-07-30 21:44:15 +0000617dnl XPM Support
618dnl ===========
619xpm=yes
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200620AC_ARG_ENABLE(xpm, AS_HELP_STRING([--disable-xpm], [disable use of XPM pixmaps through libXpm]),
c1f19bc9 dan2001-07-30 21:44:15 +0000621 xpm=$enableval, xpm=yes)
622
623if test "$xpm" = yes; then
624 WM_CHECK_LIB(Xpm, XpmCreatePixmapFromData, [$XLFLAGS $XLIBS])
625
626 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
627 WM_CHECK_HEADER(X11/xpm.h)
628 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
629 GFXLIBS="$GFXLIBS -lXpm"
630 supported_gfx="XPM"
a2b404b5 dan2002-10-08 08:26:06 +0000631 AC_DEFINE(USE_XPM, 1, [define if XPM libraries are available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000632 else
633 supported_gfx="builtin-XPM"
634 fi
635 fi
636fi
637
c1f19bc9 dan2001-07-30 21:44:15 +0000638AC_SUBST(XLFLAGS)
639AC_SUBST(XLIBS)
c1f19bc9 dan2001-07-30 21:44:15 +0000640AC_SUBST(X_EXTRA_LIBS)
641
642dnl ===============================================
643dnl End of stuff that uses X
644dnl ===============================================
645
c1f19bc9 dan2001-07-30 21:44:15 +0000646dnl PNG Support
647dnl ===========
648png=yes
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200649AC_ARG_ENABLE(png, AS_HELP_STRING([--disable-png], [disable PNG support through libpng]),
c1f19bc9 dan2001-07-30 21:44:15 +0000650 png=$enableval, png=yes, png=no)
651
c1f19bc9 dan2001-07-30 21:44:15 +0000652if test "$png" = yes ; then
f38aa69e
BJ
Brad Jorsch2010-09-24 16:08:12 -0400653 my_libname=""
654 WM_CHECK_LIB(png, png_get_valid, [-lm])
655 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
656 my_libname="-lpng"
657 fi
658dnl
659dnl Retry with zlib
660dnl
661 if test "x$my_libname" = x; then
662 unset ac_cv_lib_png_png_get_valid
663 WM_CHECK_LIB(png, png_get_valid, [-lz -lm])
664 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
665 my_libname="-lpng -lz"
666 fi
667 fi
c1f19bc9 dan2001-07-30 21:44:15 +0000668
669 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
670 WM_CHECK_HEADER(png.h)
671 if test "x$ac_cv_header_png_h" = xyes; then
f38aa69e Brad Jorsch2010-09-24 16:08:12 -0400672 GFXLIBS="$GFXLIBS $my_libname"
c1f19bc9 dan2001-07-30 21:44:15 +0000673 supported_gfx="$supported_gfx PNG"
a2b404b5 dan2002-10-08 08:26:06 +0000674 AC_DEFINE(USE_PNG, 1, [define if PNG libraries are available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000675 fi
676 fi
677fi
678
679
680dnl JPEG Support
681dnl ============
682jpeg=yes
683ljpeg=""
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200684AC_ARG_ENABLE(jpeg, AS_HELP_STRING([--disable-jpeg], [disable JPEG support through libjpeg]),
c1f19bc9 dan2001-07-30 21:44:15 +0000685 jpeg=$enableval, jpeg=yes, jpeg=no)
686
687if test "$jpeg" = yes; then
688 WM_CHECK_LIB(jpeg, jpeg_destroy_compress)
689
690 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
691
692 ljpeg="-ljpeg"
693
694 WM_CHECK_HEADER(jpeglib.h)
695 if test "x$ac_cv_header_jpeglib_h" = xyes; then
696 GFXLIBS="$GFXLIBS -ljpeg"
697 supported_gfx="$supported_gfx JPEG"
a2b404b5 dan2002-10-08 08:26:06 +0000698 AC_DEFINE(USE_JPEG, 1, [define if JPEG libraries are available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000699 fi
700 fi
701fi
702
703
704dnl GIF Support
705dnl ============
706gif=yes
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200707AC_ARG_ENABLE(gif, AS_HELP_STRING([--disable-gif], [disable GIF support through libgif or libungif]),
c1f19bc9 dan2001-07-30 21:44:15 +0000708 gif=$enableval, gif=yes, gif=no)
709
710if test "$gif" = yes; then
711 my_libname=""
712 WM_CHECK_LIB(ungif, DGifOpenFileName, [$XLFLAGS $XLIBS])
713 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
714 my_libname=-lungif
715 fi
716dnl
717dnl libungif is the same thing as libgif for all practical purposes.
718dnl
719 if test "x$my_libname" = x; then
720 WM_CHECK_LIB(gif, DGifOpenFileName, [$XLFLAGS $XLIBS])
721 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
722 my_libname=-lgif
723 fi
724 fi
725
726 if test "$my_libname" != x; then
727 WM_CHECK_HEADER(gif_lib.h)
728 if test "x$ac_cv_header_gif_lib_h" = xyes; then
729 GFXLIBS="$GFXLIBS $my_libname"
730 supported_gfx="$supported_gfx GIF"
a2b404b5 dan2002-10-08 08:26:06 +0000731 AC_DEFINE(USE_GIF, 1, [define if GIF libraries are available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000732 fi
733 fi
734fi
735
736
737
738dnl TIFF Support
739dnl ============
740AC_ARG_ENABLE(tiff,
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200741AS_HELP_STRING([--disable-tiff], [disable use of TIFF images through libtiff]),
c1f19bc9 dan2001-07-30 21:44:15 +0000742 tif=$enableval, tif=yes, tif=no)
743
744#
745# TIFF can optionally have JPEG and/or zlib support. Must find out
746# when they are supported so that correct library flags are passed during
747# detection and linkage
748#
749#
750# By default use xpm icons if tiff is not found.
751ICONEXT="xpm"
752#
753
754if test "$tif" = yes; then
755 my_libname=""
756 WM_CHECK_LIB(tiff, TIFFGetVersion, [-lm])
757 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
758 my_libname="-ltiff"
759 fi
760dnl
761dnl Retry with zlib
762dnl
763 unset ac_cv_lib_tiff_TIFFGetVersion
764 if test "x$my_libname" = x; then
765 WM_CHECK_LIB(tiff, TIFFGetVersion, [$ljpeg -lz -lm])
766 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
767 my_libname="-ltiff -lz"
768 fi
769 fi
770
771 if test "x$my_libname" = x; then
772 WM_CHECK_LIB(tiff34, TIFFGetVersion, [$ljpeg -lm])
773 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
774 my_libname="-ltiff34"
775 fi
776 fi
777
778
779 if test "x$my_libname" != x; then
780 WM_CHECK_HEADER(tiffio.h)
781 if test "x$ac_cv_header_tiffio_h" = xyes; then
782 GFXLIBS="$my_libname $GFXLIBS"
783 ICONEXT="tiff"
784 supported_gfx="$supported_gfx TIFF"
a2b404b5 dan2002-10-08 08:26:06 +0000785 AC_DEFINE(USE_TIFF, 1, [define if TIFF libraries are available (set by configure)])
c1f19bc9 dan2001-07-30 21:44:15 +0000786 fi
787 fi
788fi
789
790LIBRARY_SEARCH_PATH="$lib_search_path"
791HEADER_SEARCH_PATH="$inc_search_path"
792
793AC_SUBST(LIBRARY_SEARCH_PATH)
794AC_SUBST(HEADER_SEARCH_PATH)
795
796
797AC_SUBST(GFXLIBS)
798AC_SUBST(ICONEXT)
799
800
801dnl ==============================================
802dnl End of Graphic Format Libraries
803dnl ==============================================
804
805
2d6f7571 dan2001-09-18 11:48:15 +0000806dnl
807dnl stdlib.h is checked here, because of conflict in jpeglib.h
808AC_CHECK_HEADERS(stdlib.h)
809
c1f19bc9 dan2001-07-30 21:44:15 +0000810# AC_PREFIX_PROGRAM(wmaker)
811
812dnl Support for PIXMAPDIR option
813dnl ============================
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200814AC_ARG_WITH(pixmapdir, AS_HELP_STRING([--with-pixmapdir=PATH], [specify where pixmaps are located [DATADIR/pixmaps]]))
c1f19bc9 dan2001-07-30 21:44:15 +0000815
816if test "x$with_pixmapdir" != "x"; then
817 pixmapdir=$with_pixmapdir
818else
060ba6a9 Brad Jorsch2010-09-29 16:12:33 -0400819 pixmapdir='${datadir}/pixmaps'
c1f19bc9 dan2001-07-30 21:44:15 +0000820fi
060ba6a9 Brad Jorsch2010-09-29 16:12:33 -0400821AC_SUBST(pixmapdir)
c1f19bc9 dan2001-07-30 21:44:15 +0000822
c1f19bc9 dan2001-07-30 21:44:15 +0000823
824dnl Support for GNUSTEP_LOCAL_ROOT, for WPrefs.app
825dnl ==============================================
826
b042d2be Brad Jorsch2010-09-22 10:24:46 -0400827AC_ARG_WITH(gnustepdir, AS_HELP_STRING([--with-gnustepdir=PATH], [specify the directory for GNUstep applications]))
bde572f6 dan2004-11-14 00:11:20 +0000828
5f0a357b dan2005-07-05 08:44:00 +0000829if test "x`echo $with_gnustepdir | grep ^/`" != "x"; then
830 appspath=$with_gnustepdir
831fi
c1f19bc9 dan2001-07-30 21:44:15 +0000832
bde572f6 dan2004-11-14 00:11:20 +0000833if test "x$appspath$GNUSTEP_LOCAL_ROOT" = "x"; then
9f89695c dan2004-11-06 20:20:05 +0000834 wprefs_base_dir=${prefix}
acc868d9 kojima2004-11-01 00:50:19 +0000835 wprefs_datadir="${datadir}/WPrefs"
836 wprefs_bindir="${bindir}"
837else
838 gnustepdir=$appspath
c1f19bc9 dan2001-07-30 21:44:15 +0000839
840 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
841 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
842 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
843 fi
844
9f89695c dan2004-11-06 20:20:05 +0000845 wprefs_base_dir=$gnustepdir/Applications
846 wprefs_datadir=$wprefs_base_dir/WPrefs.app
847 wprefs_bindir=$wprefs_base_dir/WPrefs.app
c1f19bc9 dan2001-07-30 21:44:15 +0000848fi
849
acc868d9 kojima2004-11-01 00:50:19 +0000850AC_SUBST(wprefs_datadir)
851AC_SUBST(wprefs_bindir)
c1f19bc9 dan2001-07-30 21:44:15 +0000852
853
854dnl Enable User Defined Menu thing
51236308 Tamas TEVESZ2010-09-23 17:09:46 +0200855dnl ==============================
be05b0f0 Carlos R. Mafra2010-08-24 15:10:44 +0200856AC_ARG_ENABLE(usermenu, AS_HELP_STRING([--enable-usermenu], [user defined menus for applications]),
c1f19bc9 dan2001-07-30 21:44:15 +0000857if test "$enableval" = yes; then
a2b404b5 dan2002-10-08 08:26:06 +0000858 AC_DEFINE(USER_MENU, 1, [define if you want user defined menus for applications])
c1f19bc9 dan2001-07-30 21:44:15 +0000859fi
860)
861
7e5b8e41
AM
Andreas Metzler2010-08-29 16:13:41 +0200862gl_LD_VERSION_SCRIPT
863
67a8a826 Tamas TEVESZ2010-03-23 17:13:47 +0100864AC_OUTPUT(Makefile po/Makefile util/Makefile util/po/Makefile \
c1f19bc9 dan2001-07-30 21:44:15 +0000865 WINGs/Makefile WINGs/WINGs/Makefile WINGs/Documentation/Makefile \
866 WINGs/Examples/Makefile WINGs/Resources/Makefile WINGs/Tests/Makefile \
867 WINGs/Extras/Makefile WINGs/po/Makefile \
67a8a826 Tamas TEVESZ2010-03-23 17:13:47 +0100868 wrlib/Makefile wrlib/tests/Makefile \
71f1d7f1 dan2005-01-06 15:48:42 +0000869 src/Makefile src/wconfig.h \
bbe55ba2 Brad Jorsch2010-04-09 10:40:51 -0400870 doc/Makefile doc/sk/Makefile doc/cs/Makefile \
ce32e2b5 NIR Ginko2010-08-18 18:44:37 +0400871 doc/ru/Makefile \
c1f19bc9 dan2001-07-30 21:44:15 +0000872 WindowMaker/Makefile WindowMaker/Backgrounds/Makefile \
873 WindowMaker/Defaults/Makefile WindowMaker/IconSets/Makefile \
874 WindowMaker/Icons/Makefile WindowMaker/Pixmaps/Makefile \
875 WindowMaker/Styles/Makefile WindowMaker/Themes/Makefile \
876 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
c960ae62 Tamas TEVESZ2010-04-09 03:44:23 +0200877 WPrefs.app/po/Makefile )
c1f19bc9 dan2001-07-30 21:44:15 +0000878
879
c1f19bc9 dan2001-07-30 21:44:15 +0000880dnl Output some helpful data for compiling wraster and WINGs/WUtil apps
881dnl ===================================================================
c1f19bc9 dan2001-07-30 21:44:15 +0000882
883dnl echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
884dnl echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
885dnl | sed -e 's|\$(prefix)|'"$prefix|" >> WINGs-flags
886
887dnl The #lp# and #rp# stuff below is a hack because [ and ] get lost when
888dnl parsed by m4
889
060ba6a9
BJ
Brad Jorsch2010-09-29 16:12:33 -0400890AC_SUBST(lib_search_path)
891AC_SUBST(inc_search_path)
c1f19bc9 dan2001-07-30 21:44:15 +0000892
893dnl
894dnl Spit out the configuration
895dnl ==========================
896
897supported_gfx="$supported_gfx builtin-PPM"
898
899if test "x$MOFILES" = "x"; then
9aca0d5f dan2004-10-12 01:34:32 +0000900 mof=None
c1f19bc9 dan2001-07-30 21:44:15 +0000901else
ab511aca dan2002-12-02 04:42:13 +0000902 mof=`echo $MOFILES`
903fi
904
905if test "x$MOFILES" = "x"; then
9aca0d5f dan2004-10-12 01:34:32 +0000906 languages=None
ab511aca dan2002-12-02 04:42:13 +0000907else
908 languages=`echo $MOFILES | sed 's/.mo//g'`
c1f19bc9 dan2001-07-30 21:44:15 +0000909fi
910
c1f19bc9 dan2001-07-30 21:44:15 +0000911echo
912echo "Window Maker was configured as follows:"
913echo
ab511aca dan2002-12-02 04:42:13 +0000914echo "Installation path prefix : $prefix"
915echo "Installation path for binaries : $_bindir"
9f89695c dan2004-11-06 20:20:05 +0000916echo "Installation path for WPrefs.app : $wprefs_base_dir" | sed -e 's|\${prefix}|'"$prefix|"
ab511aca dan2002-12-02 04:42:13 +0000917echo "Supported graphic format libraries : $supported_gfx"
9aca0d5f dan2004-10-12 01:34:32 +0000918echo "Antialiased text support in WINGs : $xft"
919echo "Xinerama extension support : $xinerama"
c201e161 Carlos R. Mafra2010-08-22 19:05:07 +0200920echo "XRandR extension support : $xrandr"
ab511aca dan2002-12-02 04:42:13 +0000921echo "Translated message files to install : $mof"
922dnl echo "Supported languages beside English : $languages"
c1f19bc9 dan2001-07-30 21:44:15 +0000923if test "x$MOFILES" != "x"; then
ab511aca dan2002-12-02 04:42:13 +0000924 echo "Installation path for translations : $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
c1f19bc9 dan2001-07-30 21:44:15 +0000925fi
ab511aca dan2002-12-02 04:42:13 +0000926echo
c1f19bc9 dan2001-07-30 21:44:15 +0000927
928dnl WM_PRINT_REDCRAP_BUG_STATUS
929
930if test "x$ac_cv_header_jpeglib_h" != xyes; then
931echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
932echo
933echo "JPEG support will not be included because the JPEG library is"
934echo "not installed correctly or was not found. Background images"
935echo "from themes will not display as they usually are JPEG files."
936echo
937echo "To fix, download and install the jpeg library and/or make sure you"
938echo "installed all jpeg related packages, SPECIALLY the development packages"
939echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
940echo
941echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
942fi
943
944
945dnl This is for Emacs. I'm lazy, I know... (nicolai)
946dnl ================================================
947dnl Local Variables:
948dnl compile-command: "autoconf"
949dnl End:
950