4 # * Copyright (C) 2021 The Geeqie Team
6 # * Author: Colin Clark
8 # * This program is free software; you can redistribute it and/or modify
9 # * it under the terms of the GNU General Public License as published by
10 # * the Free Software Foundation; either version 2 of the License, or
11 # * (at your option) any later version.
13 # * This program is distributed in the hope that it will be useful,
14 # * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # * GNU General Public License for more details.
18 # * You should have received a copy of the GNU General Public License along
19 # * with this program; if not, write to the Free Software Foundation, Inc.,
20 # * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 ## @brief Check that Geeqie compiles with both gcc and clang,
25 ## for both GTK2 and GTK3, and with and without optional modules.
32 # Cannot have --enable-debug-flags with --disable-gtk3
33 set -- "$disable_list --disable-gtk3" "--disable-gtk3" "$disable_list --enable-debug-flags" "--enable-debug-flags" "$disable_list" ""
41 if [ "$variant" != "${variant%gtk3*}" ]
47 if [ "$variant" != "${variant%disable-threads*}" ]
49 disabled="all disabled"
51 disabled="none disabled"
53 if [ "$variant" != "${variant%--enable-debug-flags*}" ]
55 debug_flags="enable-debug-flags"
60 printf '\e[32m%s\n' "$compiler $gtk $debug_flags $disabled"
61 sudo make maintainer-clean > /dev/null 2>&1
62 ./autogen.sh "$variant" > /dev/null 2>&1
69 disable_list=" "$(awk -F '[][]' '/AC_HELP_STRING\(\[--disable-/ {if ($2 != "gtk3") print $2}' configure.ac | tr '\n' ' ')
71 printf '%s\n' "Disabled list: :$disable_list"
73 export CFLAGS="-Wno-deprecated-declarations"