-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
642 lines (557 loc) · 15.2 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.61])
AC_INIT([naev],
[0.8.-3],
[https://github.com/naev/naev/issues],
[naev],
[https://naev.org/])
AC_CONFIG_SRCDIR([src/naev.c])
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build])
AM_GNU_GETTEXT([external])
# Currently steam packages 0.19.7 which is the limiting factor here
AM_GNU_GETTEXT_VERSION([0.19.7])
GETTEXT_PACKAGE=${PACKAGE_NAME}
AC_SUBST(GETTEXT_PACKAGE)
IT_PROG_INTLTOOL
AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign subdir-objects])
# M4 defines __unix__ to be the empty string on UNIX-like systems. This
# causes AC_DEFINE to fail if it is used to define __unix__. This seems to
# fix the problem.
ifdef([__unix__], define([__unix__], [[__unix__]]))
#
# Utility functions
#
# If A='$B' and B='hello', then "expand_variable A" will cause A='hello'
expand_variable()
{
while true; do
eval local value=\$$1
eval "$1=\"$value\""
echo "$value" | grep -qE '(^|[^\\])\$' || break
done
}
# Temporarily changes the value of a variable, until it is restored later.
# $1: name of variable
# $2: temporary value
define([VAR_SAVE], [
OLD_$1="$$1"
$1=$2
])
# Restores the saved variable.
# $1: name of variable
define([VAR_RESTORE], [
$1="$OLD_$1"
])
#
# Checks for variables
#
# Fix missing prefix
AS_IF([test "$prefix" = "NONE"], [
prefix="$ac_default_prefix"
])
AS_IF([test "$exec_prefix" = "NONE"], [
exec_prefix="$prefix"
])
#
# Checks for programs.
#
AC_PROG_CC
AC_PROG_OBJC
AC_PROG_LN_S
AC_PROG_RANLIB
AM_PROG_AR
PKG_PROG_PKG_CONFIG
AC_CHECK_PROG([CUT], [cut], [cut])
AS_IF([test -z "$CUT"],[
AC_ERROR([cut not found])
])
AC_CHECK_PROG([DOXYGEN], [doxygen], [doxygen])
AC_CHECK_PROG([LDOC], [ldoc], [ldoc])
AC_CHECK_PROG([GIT], [git], [git])
AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
#
# Checks for build environment
#
AC_MSG_CHECKING([whether we are building utils])
AS_IF([test -d "$srcdir/utils"], [
have_utils=yes
], [
have_utils=no
])
AC_MSG_RESULT([$have_utils])
AC_MSG_CHECKING([whether we have data])
AS_IF([test -d "$srcdir/dat"], [
have_data=yes
], [
have_data=no
])
AC_MSG_RESULT([$have_data])
AC_MSG_CHECKING([whether we have docs])
AS_IF([test -d "$srcdir/docs"], [
have_docs=yes
], [
have_docs=no
])
AC_MSG_RESULT([$have_docs])
#
# Platform checks
#
AC_CANONICAL_HOST
AC_MSG_CHECKING([[if we need a __unix__ define]])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#ifndef __unix__
# if defined __APPLE__ /* add other known platforms here */
# error should have __unix__ but don't
# endif
#endif
])], [AC_MSG_RESULT([no])],
[
AC_MSG_RESULT([yes])
AC_DEFINE([__unix__], 1,
[Define to 1 if running on a UNIX-like system where __unix__ is missing])
])
#
# Checks for command-line arguments
#
# --enable-debug
AC_MSG_CHECKING([whether to enable debug mode])
AC_ARG_ENABLE([debug],
AC_HELP_STRING([--enable-debug=@<:@no|yes|paranoid@:>@],
[enable debug mode (default: yes)]), [
case "$enableval" in
no)
enable_debug=no
;;
paranoid)
enable_debug=paranoid
;;
*)
enable_debug=yes
;;
esac
], [
enable_debug=yes
])
AC_MSG_RESULT([$enable_debug])
AS_IF([test "x$enable_debug" != "xno"], [
AS_IF([test "x$ac_cv_prog_cc_g" = "xyes"], [CFLAGS="$CFLAGS -W -Wall -Wextra -Wunused -Wshadow -Wpointer-arith -Wmissing-prototypes -Winline -Wcast-align -Wmissing-declarations -Wredundant-decls -Wno-long-long -Wcast-align -Wformat -Wformat-security"], [])
AX_CHECK_COMPILE_FLAG([-Wformat-truncation=0 -Werror],[CFLAGS="$CFLAGS -Wformat-truncation=0"],[])
case "$host" in
*-linux-gnu)
AC_CHECK_LIB([bfd], [bfd_init], [
AC_CHECK_HEADERS([bfd.h], [
have_bfd=yes
], [
AC_WARN([debug mode is enabled but bfd.h is missing; disabling])
have_bfd=no
])
], [
AC_WARN([debug mode is enabled but libbfd is missing; disabling])
have_bfd=no
])
;;
esac
])
# --with-openal
AC_MSG_CHECKING([whether to use OpenAL])
AC_ARG_WITH([openal],
AC_HELP_STRING([--with-openal],
[use the OpenAL sound backend (default: yes)]), [
AS_IF([test "x$withval" = "xyes"], [
with_openal=yes
], [
with_openal=no
])
], [
with_openal=yes
])
AC_MSG_RESULT([$with_openal])
# --with-sdlmixer
AC_MSG_CHECKING([whether to use SDL_mixer])
AC_ARG_WITH([sdlmixer],
AC_HELP_STRING([--with-sdlmixer],
[use the SDL_mixer sound backend (default: yes)]), [
AS_IF([test "x$withval" = "xyes"], [
with_sdlmixer=yes
], [
with_sdlmixer=no
])
], [
with_sdlmixer=yes
])
AC_MSG_RESULT([$with_sdlmixer])
# --enable-lua
AC_MSG_CHECKING([which lua to use])
AC_ARG_ENABLE([lua],
AC_HELP_STRING([--enable-lua=@<:@internal|shared|luajit@:>@],
[lua to use (default: luajit)]), [
case "$enableval" in
luajit)
used_lua=luajit
;;
shared)
used_lua=shared
;;
*)
used_lua=internal
;;
esac
], [
used_lua=luajit
])
AC_MSG_RESULT([$used_lua])
#
# Checks for libraries.
#
# "Newish" GCC
AC_CHECK_HEADERS([stdalign.h])
AC_CHECK_DECLS([setenv])
AC_CHECK_DECLS([_putenv_s]) # Windows only alternative to setenv
# SDL
AM_PATH_SDL2(2.0.0, [], [
AC_MSG_ERROR([SDL 2 not found])
])
# libxml2
PKG_CHECK_MODULES([XML], [libxml-2.0])
# FreeType
PKG_CHECK_MODULES([FREETYPE], [freetype2])
# vorbis
PKG_CHECK_MODULES([VORBIS], [vorbis])
# vorbisfile
PKG_CHECK_MODULES([VORBISFILE], [vorbisfile])
# libpng
PKG_CHECK_MODULES([PNG], [libpng])
# lua
case "$used_lua" in
luajit)
PKG_CHECK_MODULES([LUA], [luajit], [
have_lua=yes
LUA_CFLAGS="$LUA_CFLAGS -DHAVE_LUAJIT"
], [
AC_WARN([Lua is set to LuaJIT but can not find library; using internal Lua])
have_lua=no
])
;;
shared)
have_lua=no
m4_foreach([pkgname], [lua-5.1, lua5.1, lua51, lua], [
AS_IF([test "x$have_lua" = "xno"], [
PKG_CHECK_MODULES([LUA], [pkgname], [have_lua=yes], [have_lua=no])
])
])
AS_IF([test "x$have_lua" = "xno"], [AC_WARN([Lua is set to shared but can not find library; using internal Lua])])
;;
*)
have_lua=no
;;
esac
AS_IF([test "x$have_lua" = "xno"], [
LUA_CFLAGS="-I\"\$(top_srcdir)/lib/lua\""
LUA_LIBS="\$(top_builddir)/lib/lua/liblua.a"
have_lua=yes
used_lua=internal
])
# sqrt is required for system csparse to work
AC_SEARCH_LIBS([sqrt], [m])
# csparse
AC_CHECK_LIB([csparse], [cs_spalloc], [have_csparse_lib=yes], [have_csparse_lib=no])
AC_CHECK_LIB([cxsparse], [cs_di_spalloc], [have_cxsparse_lib=yes], [have_cxsparse_lib=no])
AS_IF([test "x$have_csparse_lib" = "xyes" -a "x$have_cxsparse_lib" = "xyes"], [
AC_CHECK_HEADERS([cs.h], [have_cs_h=yes], [have_cs_h=no])
AC_CHECK_HEADERS([suitesparse/cs.h], [have_suitesparse_cs_h=yes], [have_suitesparse_cs_h=no])
AS_IF([test $have_cs_h = yes -o $have_suitesparse_cs_h = yes], [
used_csparse=shared
CSPARSE_LIBS="-lcsparse -lcxsparse"
], [
used_csparse=internal
])
], [
used_csparse=internal
])
AS_IF([test "x$used_csparse" = "xinternal"], [
CSPARSE_CFLAGS="-I\"\$(top_srcdir)/lib/csparse\""
CSPARSE_LIBS="\$(top_builddir)/lib/csparse/libcsparse.a"
])
# OpenAL
AS_IF([test "x$with_openal" = "xyes"], [
PKG_CHECK_MODULES([OPENAL], [openal], [have_openal=yes], [have_openal=no])
], [have_openal=no])
# SDL_mixer
AS_IF([test "x$with_sdlmixer" = "xyes"], [
PKG_CHECK_MODULES([SDLMIXER], [SDL2_mixer], [have_sdlmixer=yes], [have_sdlmixer=no])
], [have_sdlmixer=no])
# SDL_image
VAR_SAVE([LIBS])
AC_SEARCH_LIBS([IMG_Load], [SDL2_image], [
SDLIMAGE_CFLAGS=
SDLIMAGE_LIBS="$LIBS"
have_mkspr=yes
], [
SDLIMAGE_CFLAGS=
SDLIMAGE_LIBS=
have_mkspr=no
], [])
VAR_RESTORE([LIBS])
# OpenGL
AM_PATH_OPENGL([], [
AC_MSG_ERROR([OpenGL not found])
])
#
# Compiler flags
#
case "$host" in
*-linux*)
SDL_CFLAGS="$SDL_CFLAGS -D_GNU_SOURCE=1"
;;
esac
# global
GLOBAL_CFLAGS="-include \"\$(top_builddir)/src/config.h\" -I\"\$(top_srcdir)/src\" -DPKGDATADIR=\\\"\$(pkgdatadir)\\\""
GLOBAL_LIBS=
AS_IF([test "x$enable_debug" != "xno"], [
GLOBAL_CFLAGS="$GLOBAL_CFLAGS -DLUA_USE_APICHECK"
])
case "$host" in
*-linux*)
GLOBAL_LIBS="$NAEV_LIBS -lm" # feels so wrong
;;
*-mingw*)
GLOBAL_LIBS="$NAEV_LIBS -lwsock32"
;;
esac
AC_SUBST([GLOBAL_CFLAGS])
AC_SUBST([GLOBAL_LIBS])
# naev
WIDGET_LIBS="\$(top_builddir)/src/tk/widget/libwidget.a"
NAEV_CFLAGS="$GLOBAL_CFLAGS"
NAEV_LIBS="$GLOBAL_LIBS $WIDGET_LIBS"
# glad requires libdl on non-Windows platforms
case "$host" in
*-mingw*)
;;
*)
NAEV_LIBS="$NAEV_LIBS -ldl"
;;
esac
AS_IF([test "x$enable_debug" != "xno"], [
AC_DEFINE([DEBUGGING], 1, [Define to 1 to enable debug code])
AC_DEFINE([DEBUG], 1, [Define to 1 to enable debug code])
AS_IF([test "x$have_bfd" != "xno"], [
case "$host" in
*-linux-gnu)
AC_DEFINE([HAS_BFD], 1, [Define to 1 to enable bfd backtrace code])
NAEV_LIBS="$NAEV_LIBS -lbfd -liberty -rdynamic -ldl"
;;
esac
])
])
AS_IF([test "x$enable_debug" = "xparanoid"], [
AC_DEFINE([DEBUG_PARANOID], 1, [Define to 1 to enable paranoid debug code])
])
NAEV_CFLAGS="$NAEV_CFLAGS $CSPARSE_CFLAGS $SDL_CFLAGS $XML_CFLAGS \
$FREETYPE_CFLAGS $LUA_CFLAGS $VORBIS_CFLAGS $VORBISFILE_CFLAGS \
$PNG_CFLAGS $OPENGL_CFLAGS"
NAEV_LIBS="$NAEV_LIBS $CSPARSE_LIBS $SDL_LIBS $XML_LIBS \
$FREETYPE_LIBS $LUA_LIBS $VORBIS_LIBS $VORBISFILE_LIBS \
$PNG_LIBS $OPENGL_LIBS"
AS_IF([test "x$have_openal" = "xyes"], [
NAEV_CFLAGS="$NAEV_CFLAGS $OPENAL_CFLAGS"
NAEV_LIBS="$NAEV_LIBS $OPENAL_LIBS"
])
AS_IF([test "x$have_sdlmixer" = "xyes"], [
NAEV_CFLAGS="$NAEV_CFLAGS $SDLMIXER_CFLAGS"
NAEV_LIBS="$NAEV_LIBS $SDLMIXER_LIBS"
])
case "$host" in
*-mingw*)
NAEV_LIBS="$NAEV_LIBS -mwindows"
;;
*-darwin*)
NAEV_LIBS="$NAEV_LIBS -framework Foundation"
;;
esac
# This is a list of in-tree static libs that naev depends on. It is used by
# automake to detect when the binary needs recompiling after a library has been
# changed.
NAEV_DEPENDENCIES="$WIDGET_LIBS"
AS_IF([test "x$used_lua" = "xinternal"], [
NAEV_DEPENDENCIES="$NAEV_DEPENDENCIES $LUA_LIBS"
])
AS_IF([test "x$used_csparse" = "xinternal"], [
NAEV_DEPENDENCIES="$NAEV_DEPENDENCIES $CSPARSE_LIBS"
])
AC_SUBST([NAEV_CFLAGS])
AC_SUBST([NAEV_LIBS])
AC_SUBST([NAEV_DEPENDENCIES])
# liblua
LIBLUA_CFLAGS="$GLOBAL_CFLAGS"
case "$host" in
*-mingw*)
LIBLUA_CFLAGS="$LIBLUA_CFLAGS -DLUA_ANSI"
;;
*)
LIBLUA_CFLAGS="$LIBLUA_CFLAGS -DLUA_USE_POSIX"
;;
esac
AC_SUBST([LIBLUA_CFLAGS])
MKSPR_CFLAGS="$GLOBAL_CFLAGS $SDL_CFLAGS $SDLIMAGE_CFLAGS $PNG_CFLAGS -DNOLOGPRINTFCONSOLE"
MKSPR_LIBS="$GLOBAL_LIBS $SDL_LIBS $SDLIMAGE_LIBS $PNG_LIBS"
AC_SUBST([MKSPR_CFLAGS])
AC_SUBST([MKSPR_LIBS])
#
# Checks for headers
#
AC_CHECK_HEADERS([fenv.h])
#
# Checks for typedefs, structures, and compiler characteristics.
#
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
#
# Checks for functions
#
AC_CHECK_FUNCS([setlocale])
VAR_SAVE([LIBS], ["-lm"])
AC_CHECK_FUNCS([feenableexcept])
VAR_RESTORE([LIBS])
AC_CHECK_FUNCS([clock_gettime])
# if it is not available directly, check it in librt (glibc does this).
AS_IF([test $ac_cv_func_clock_gettime = no], [
AC_CHECK_LIB(rt, clock_gettime,
[LIBS="-lrt $LIBS"])
], [])
VAR_SAVE([CFLAGS], ["$VORBISFILE_CFLAGS"])
VAR_SAVE([LIBS], ["$VORBISFILE_LIBS"])
AC_CHECK_FUNCS([ov_read_filter])
VAR_RESTORE([CFLAGS])
VAR_RESTORE([LIBS])
#
# Misc checks
#
AC_MSG_CHECKING([for the current Git commit identifier])
AS_IF([test -n "$GIT" && test -d "$srcdir/.git"], [
GIT_COMMIT=$(cd "$srcdir" && "$GIT" rev-parse --short HEAD)
AC_MSG_RESULT([$GIT_COMMIT])
], [
GIT_COMMIT=
AC_MSG_RESULT([unknown])
])
#
# Defines in config.h
#
# Version variables
VMAJOR=$(echo "$VERSION" | cut -d. -f1)
VMINOR=$(echo "$VERSION" | cut -d. -f2)
VREV=$(echo "$VERSION" | cut -d. -f3)
AC_DEFINE_UNQUOTED([VMAJOR], [$VMAJOR], [Define to the major version component])
AC_DEFINE_UNQUOTED([VMINOR], [$VMINOR], [Define to the minor version component])
AC_DEFINE_UNQUOTED([VREV], [$VREV], [Define to the revision version component])
AC_SUBST([VMAJOR])
AC_SUBST([VMINOR])
AC_SUBST([VREV])
AC_DEFINE_UNQUOTED([HOST], ["$host"], [Host triple])
# USE_OPENAL
AS_IF([test "x$have_openal" = "xyes"], [
AC_DEFINE([USE_OPENAL], 1, [Define to 1 if using OpenAL])
])
# USE_SDLMIX
AS_IF([test "x$have_sdlmixer" = "xyes"], [
AC_DEFINE([USE_SDLMIX], 1, [Define to 1 if using SDL_mixer])
])
# Operating system
case "$host" in
*-linux*)
AC_DEFINE([LINUX], 1, [Define to 1 if running on Linux])
;;
*-freebsd*)
AC_DEFINE([FREEBSD], 1, [Define to 1 if running on FreeBSD])
;;
*-mingw*)
AC_CHECK_TOOL(WINDRES, windres)
AC_DEFINE([WIN32], 1, [Define to 1 if running on Windows])
;;
*-darwin*)
AC_DEFINE([MACOS], 1, [Define to 1 if running on macOS])
have_macos=yes
;;
esac
# GIT_COMMIT
AS_IF([test -n "$GIT_COMMIT"], [
AC_DEFINE_UNQUOTED([GIT_COMMIT], ["$GIT_COMMIT"],
[Define to the current Git commit identifier])
AC_SUBST([GIT_COMMIT])
])
#
# Automake conditionals
#
AM_CONDITIONAL([HAVE_WINDRES], [test -n "$WINDRES"])
AM_CONDITIONAL([HAVE_MACOS], [test "x$have_macos" = "xyes"])
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
AM_CONDITIONAL([HAVE_LDOC], [test -n "$LDOC"])
AM_CONDITIONAL([HAVE_UTILS], [test "x$have_utils" = "xyes"])
AM_CONDITIONAL([HAVE_DATA], [test "x$have_data" = "xyes"])
AM_CONDITIONAL([HAVE_DOCS], [test "x$have_docs" = "xyes"])
AM_CONDITIONAL([HAVE_MKSPR], [test "x$have_mkspr" = "xyes"])
AM_CONDITIONAL([LUA_INTERNAL], [test "x$used_lua" = "xinternal"])
AM_CONDITIONAL([CSPARSE_INTERNAL], [test "x$used_csparse" = "xinternal"])
AM_CONDITIONAL([HAVE_NLS], [test "x$USE_NLS" = "xyes" && test -d "$srcdir/po"])
AM_CONDITIONAL([HAVE_ITSTOOL], [test -n "$ITSTOOL"])
# AC_CHECK_FILE breaks cross-compiling, so we check directly
AM_CONDITIONAL([HAVE_SHADERS_C_GEN], [test -f "$srcdir/src/shaders_c_gen.c"])
#AC_CHECK_FILE([$srcdir/src/shaders_c_gen.c],
# AM_CONDITIONAL([HAVE_SHADERS_C_GEN],true),
# AM_CONDITIONAL([HAVE_SHADERS_C_GEN],false))
#
# Output
#
SHAVE_INIT([build], [enable])
AC_CONFIG_FILES([Makefile
po/Makefile.in
lib/Makefile
src/Makefile
src/tk/Makefile
src/tk/widget/Makefile
build/shave])
AS_IF([test "x$have_utils" = "xyes"], [
AC_CONFIG_FILES([utils/Makefile
utils/mkspr/Makefile])
])
AS_IF([test "x$have_docs" = "xyes"], [
AC_CONFIG_FILES([docs/Makefile])
])
AS_IF([test "x$used_lua" = "xinternal"], [
AC_CONFIG_FILES([lib/lua/Makefile])
])
AS_IF([test "x$used_csparse" = "xinternal"], [
AC_CONFIG_FILES([lib/csparse/Makefile])
])
AC_OUTPUT
echo
AC_MSG_NOTICE([prefix: $prefix])
echo
AC_MSG_NOTICE([sound backends:])
AC_MSG_NOTICE([ OpenAL: $have_openal])
AC_MSG_NOTICE([ SDL_mixer: $have_sdlmixer])
echo
AC_MSG_NOTICE([lib:])
AC_MSG_NOTICE([ csparse: $used_csparse])
AC_MSG_NOTICE([ lua: $used_lua])
echo
AC_MSG_NOTICE([utils: $have_utils])
AC_MSG_NOTICE([ mkspr: $have_mkspr])
echo
AC_MSG_NOTICE([debug mode: $enable_debug])
AS_IF([test "x$enable_debug" != "xno"], [
case "$host" in
*-linux*)
AC_MSG_NOTICE([ bfd: $have_bfd])
;;
esac
])