Fix "Trying to put -1529999752 into 8 bits" type warnings after loading
[freeciv.git] / m4 / features.m4
blob5b204be14d433951a69570fed0dbb96518745875
1 # Macros to list feature set
4 AC_DEFUN([FC_FEATURE],
6   if test "x$2" = "xmissing" ; then
7     missing_list="${missing_list}
8 $1"
9     if test "x$3" != "x" ; then
10       missing_list="${missing_list} - requires $3"
11     fi
12   fi
15 # List features that were not enabled due to some missing dependency
16 AC_DEFUN([FC_MISSING_FEATURES],
18 AC_ARG_WITH([missinglist],
19   AS_HELP_STRING([--with-missinglist], [list missing features after configure]),
20   [list_missing_features=${withval}], [list_missing_features=no])
22 if test "x$list_missing_features" = "xyes" ; then
23   FC_FEATURE([readline], [$feature_readline])
24   FC_FEATURE([sound], [$feature_sound], [SDL_mixer])
25   FC_FEATURE([additional mapimg formats], [$feature_magickwand], [MagickWand])
26   FC_FEATURE([bz2 savegame compression], [$feature_bz2], [libbz2])
27   FC_FEATURE([xz savegame compression], [$feature_xz], [liblzma])
28   FC_FEATURE([threads suitable for threaded ai], [$feature_thr_cond], [pthreads])
29   FC_FEATURE([lua linked from system], [$feature_syslua], [lua-5.2])
30   FC_FEATURE([IPv6 support], [$feature_ipv6], [IPv6 functions])
32   if test "x$missing_list" = "x" ; then
33     AC_MSG_NOTICE([
34 ************** No optional features missing ***************])
35   else
36     AC_MSG_NOTICE([
37 **************** Missing optional features ****************
38 $missing_list])
39   fi