aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2022-09-27 05:17:12 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2022-11-28 04:54:54 -0300
commit245e4cca6271355bf6be0dcc5ffb3d9bc359a4e9 (patch)
treed2796cbeb78cf8838c38fffa6a1df61605997f30
parentconfigure*: remove extraneous blank lines (warning) (diff)
downloadfirejail-245e4cca6271355bf6be0dcc5ffb3d9bc359a4e9.tar.gz
firejail-245e4cca6271355bf6be0dcc5ffb3d9bc359a4e9.tar.zst
firejail-245e4cca6271355bf6be0dcc5ffb3d9bc359a4e9.zip
configure*: wrap long shell command output lines
Instead of binding them together with conditionals in a single line, split shell commands into multiple lines to make them more readable. Note that for the macro arguments in question, the content inside [] quotes is output literally into ./configure, so the commands can be written as if they were in a shell script directly (save for any special characters/tokens in Autoconf). Misc: Relates to commit 2c64d1fdd ("use AX_CHECK_COMPILE_FLAG to check for spectre flags", 2019-06-21).
-rwxr-xr-xconfigure21
-rw-r--r--configure.ac38
2 files changed, 36 insertions, 23 deletions
diff --git a/configure b/configure
index 1f5be1cba..52b9143b6 100755
--- a/configure
+++ b/configure
@@ -2914,7 +2914,9 @@ fi
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mindirect_branch_thunk" >&5 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mindirect_branch_thunk" >&5
2915$as_echo "$ax_cv_check_cflags___mindirect_branch_thunk" >&6; } 2915$as_echo "$ax_cv_check_cflags___mindirect_branch_thunk" >&6; }
2916if test "x$ax_cv_check_cflags___mindirect_branch_thunk" = xyes; then : 2916if test "x$ax_cv_check_cflags___mindirect_branch_thunk" = xyes; then :
2917 HAVE_SPECTRE="yes" && EXTRA_CFLAGS="$EXTRA_CFLAGS -mindirect-branch=thunk" 2917
2918 HAVE_SPECTRE="yes"
2919 EXTRA_CFLAGS="$EXTRA_CFLAGS -mindirect-branch=thunk"
2918 2920
2919else 2921else
2920 : 2922 :
@@ -2950,7 +2952,9 @@ fi
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mretpoline" >&5 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mretpoline" >&5
2951$as_echo "$ax_cv_check_cflags___mretpoline" >&6; } 2953$as_echo "$ax_cv_check_cflags___mretpoline" >&6; }
2952if test "x$ax_cv_check_cflags___mretpoline" = xyes; then : 2954if test "x$ax_cv_check_cflags___mretpoline" = xyes; then :
2953 HAVE_SPECTRE="yes" && EXTRA_CFLAGS="$EXTRA_CFLAGS -mretpoline" 2955
2956 HAVE_SPECTRE="yes"
2957 EXTRA_CFLAGS="$EXTRA_CFLAGS -mretpoline"
2954 2958
2955else 2959else
2956 : 2960 :
@@ -2986,7 +2990,9 @@ fi
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_clash_protection" >&5 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_clash_protection" >&5
2987$as_echo "$ax_cv_check_cflags___fstack_clash_protection" >&6; } 2991$as_echo "$ax_cv_check_cflags___fstack_clash_protection" >&6; }
2988if test "x$ax_cv_check_cflags___fstack_clash_protection" = xyes; then : 2992if test "x$ax_cv_check_cflags___fstack_clash_protection" = xyes; then :
2989 HAVE_SPECTRE="yes" && EXTRA_CFLAGS="$EXTRA_CFLAGS -fstack-clash-protection" 2993
2994 HAVE_SPECTRE="yes"
2995 EXTRA_CFLAGS="$EXTRA_CFLAGS -fstack-clash-protection"
2990 2996
2991else 2997else
2992 : 2998 :
@@ -3022,7 +3028,9 @@ fi
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_strong" >&5 3028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_strong" >&5
3023$as_echo "$ax_cv_check_cflags___fstack_protector_strong" >&6; } 3029$as_echo "$ax_cv_check_cflags___fstack_protector_strong" >&6; }
3024if test "x$ax_cv_check_cflags___fstack_protector_strong" = xyes; then : 3030if test "x$ax_cv_check_cflags___fstack_protector_strong" = xyes; then :
3025 HAVE_SPECTRE="yes" && EXTRA_CFLAGS="$EXTRA_CFLAGS -fstack-protector-strong" 3031
3032 HAVE_SPECTRE="yes"
3033 EXTRA_CFLAGS="$EXTRA_CFLAGS -fstack-protector-strong"
3026 3034
3027else 3035else
3028 : 3036 :
@@ -3323,7 +3331,10 @@ else
3323 AA_LIBS=$pkg_cv_AA_LIBS 3331 AA_LIBS=$pkg_cv_AA_LIBS
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3325$as_echo "yes" >&6; } 3333$as_echo "yes" >&6; }
3326 EXTRA_CFLAGS="$EXTRA_CFLAGS $AA_CFLAGS" && EXTRA_LDFLAGS="$EXTRA_LDFLAGS $AA_LIBS" 3334
3335 EXTRA_CFLAGS="$EXTRA_CFLAGS $AA_CFLAGS"
3336 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $AA_LIBS"
3337
3327fi 3338fi
3328 3339
3329fi 3340fi
diff --git a/configure.ac b/configure.ac
index a78688e09..9cc20d94a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,22 +21,22 @@ AC_CONFIG_MACRO_DIR([m4])
21AC_PROG_CC 21AC_PROG_CC
22 22
23HAVE_SPECTRE="no" 23HAVE_SPECTRE="no"
24AX_CHECK_COMPILE_FLAG( 24AX_CHECK_COMPILE_FLAG([-mindirect-branch=thunk], [
25 [-mindirect-branch=thunk], 25 HAVE_SPECTRE="yes"
26 [HAVE_SPECTRE="yes" && EXTRA_CFLAGS="$EXTRA_CFLAGS -mindirect-branch=thunk"] 26 EXTRA_CFLAGS="$EXTRA_CFLAGS -mindirect-branch=thunk"
27) 27])
28AX_CHECK_COMPILE_FLAG( 28AX_CHECK_COMPILE_FLAG([-mretpoline], [
29 [-mretpoline], 29 HAVE_SPECTRE="yes"
30 [HAVE_SPECTRE="yes" && EXTRA_CFLAGS="$EXTRA_CFLAGS -mretpoline"] 30 EXTRA_CFLAGS="$EXTRA_CFLAGS -mretpoline"
31) 31])
32AX_CHECK_COMPILE_FLAG( 32AX_CHECK_COMPILE_FLAG([-fstack-clash-protection], [
33 [-fstack-clash-protection], 33 HAVE_SPECTRE="yes"
34 [HAVE_SPECTRE="yes" && EXTRA_CFLAGS="$EXTRA_CFLAGS -fstack-clash-protection"] 34 EXTRA_CFLAGS="$EXTRA_CFLAGS -fstack-clash-protection"
35) 35])
36AX_CHECK_COMPILE_FLAG( 36AX_CHECK_COMPILE_FLAG([-fstack-protector-strong], [
37 [-fstack-protector-strong], 37 HAVE_SPECTRE="yes"
38 [HAVE_SPECTRE="yes" && EXTRA_CFLAGS="$EXTRA_CFLAGS -fstack-protector-strong"] 38 EXTRA_CFLAGS="$EXTRA_CFLAGS -fstack-protector-strong"
39) 39])
40 40
41AC_ARG_ENABLE([analyzer], 41AC_ARG_ENABLE([analyzer],
42 [AS_HELP_STRING([--enable-analyzer], [enable GCC static analyzer])]) 42 [AS_HELP_STRING([--enable-analyzer], [enable GCC static analyzer])])
@@ -68,8 +68,10 @@ AC_ARG_ENABLE([apparmor],
68 [AS_HELP_STRING([--enable-apparmor], [enable apparmor])]) 68 [AS_HELP_STRING([--enable-apparmor], [enable apparmor])])
69AS_IF([test "x$enable_apparmor" = "xyes"], [ 69AS_IF([test "x$enable_apparmor" = "xyes"], [
70 HAVE_APPARMOR="-DHAVE_APPARMOR" 70 HAVE_APPARMOR="-DHAVE_APPARMOR"
71 PKG_CHECK_MODULES([AA], [libapparmor], 71 PKG_CHECK_MODULES([AA], [libapparmor], [
72 [EXTRA_CFLAGS="$EXTRA_CFLAGS $AA_CFLAGS" && EXTRA_LDFLAGS="$EXTRA_LDFLAGS $AA_LIBS"]) 72 EXTRA_CFLAGS="$EXTRA_CFLAGS $AA_CFLAGS"
73 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $AA_LIBS"
74 ])
73]) 75])
74 76
75HAVE_SELINUX="" 77HAVE_SELINUX=""