diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 836 |
1 files changed, 523 insertions, 313 deletions
@@ -625,6 +625,9 @@ ac_includes_default="\ | |||
625 | ac_subst_vars='LTLIBOBJS | 625 | ac_subst_vars='LTLIBOBJS |
626 | LIBOBJS | 626 | LIBOBJS |
627 | HAVE_SECCOMP_H | 627 | HAVE_SECCOMP_H |
628 | EGREP | ||
629 | GREP | ||
630 | CPP | ||
628 | HAVE_CONTRIB_INSTALL | 631 | HAVE_CONTRIB_INSTALL |
629 | HAVE_GCOV | 632 | HAVE_GCOV |
630 | BUSYBOX_WORKAROUND | 633 | BUSYBOX_WORKAROUND |
@@ -641,11 +644,13 @@ HAVE_SECCOMP | |||
641 | HAVE_PRIVATE_HOME | 644 | HAVE_PRIVATE_HOME |
642 | HAVE_OVERLAYFS | 645 | HAVE_OVERLAYFS |
643 | EXTRA_LDFLAGS | 646 | EXTRA_LDFLAGS |
644 | EGREP | ||
645 | GREP | ||
646 | CPP | ||
647 | HAVE_APPARMOR | ||
648 | EXTRA_CFLAGS | 647 | EXTRA_CFLAGS |
648 | HAVE_APPARMOR | ||
649 | AA_LIBS | ||
650 | AA_CFLAGS | ||
651 | PKG_CONFIG_LIBDIR | ||
652 | PKG_CONFIG_PATH | ||
653 | PKG_CONFIG | ||
649 | RANLIB | 654 | RANLIB |
650 | INSTALL_DATA | 655 | INSTALL_DATA |
651 | INSTALL_SCRIPT | 656 | INSTALL_SCRIPT |
@@ -724,6 +729,11 @@ CFLAGS | |||
724 | LDFLAGS | 729 | LDFLAGS |
725 | LIBS | 730 | LIBS |
726 | CPPFLAGS | 731 | CPPFLAGS |
732 | PKG_CONFIG | ||
733 | PKG_CONFIG_PATH | ||
734 | PKG_CONFIG_LIBDIR | ||
735 | AA_CFLAGS | ||
736 | AA_LIBS | ||
727 | CPP' | 737 | CPP' |
728 | 738 | ||
729 | 739 | ||
@@ -1373,6 +1383,13 @@ Some influential environment variables: | |||
1373 | LIBS libraries to pass to the linker, e.g. -l<library> | 1383 | LIBS libraries to pass to the linker, e.g. -l<library> |
1374 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 1384 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1375 | you have headers in a nonstandard directory <include dir> | 1385 | you have headers in a nonstandard directory <include dir> |
1386 | PKG_CONFIG path to pkg-config utility | ||
1387 | PKG_CONFIG_PATH | ||
1388 | directories to add to pkg-config's search path | ||
1389 | PKG_CONFIG_LIBDIR | ||
1390 | path overriding pkg-config's built-in search path | ||
1391 | AA_CFLAGS C compiler flags for AA, overriding pkg-config | ||
1392 | AA_LIBS linker flags for AA, overriding pkg-config | ||
1376 | CPP C preprocessor | 1393 | CPP C preprocessor |
1377 | 1394 | ||
1378 | Use these variables to override the choices made by `configure' or to help | 1395 | Use these variables to override the choices made by `configure' or to help |
@@ -1494,6 +1511,52 @@ fi | |||
1494 | 1511 | ||
1495 | } # ac_fn_c_try_compile | 1512 | } # ac_fn_c_try_compile |
1496 | 1513 | ||
1514 | # ac_fn_c_try_link LINENO | ||
1515 | # ----------------------- | ||
1516 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1517 | ac_fn_c_try_link () | ||
1518 | { | ||
1519 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1520 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1521 | if { { ac_try="$ac_link" | ||
1522 | case "(($ac_try" in | ||
1523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1524 | *) ac_try_echo=$ac_try;; | ||
1525 | esac | ||
1526 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1527 | $as_echo "$ac_try_echo"; } >&5 | ||
1528 | (eval "$ac_link") 2>conftest.err | ||
1529 | ac_status=$? | ||
1530 | if test -s conftest.err; then | ||
1531 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1532 | cat conftest.er1 >&5 | ||
1533 | mv -f conftest.er1 conftest.err | ||
1534 | fi | ||
1535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1536 | test $ac_status = 0; } && { | ||
1537 | test -z "$ac_c_werror_flag" || | ||
1538 | test ! -s conftest.err | ||
1539 | } && test -s conftest$ac_exeext && { | ||
1540 | test "$cross_compiling" = yes || | ||
1541 | test -x conftest$ac_exeext | ||
1542 | }; then : | ||
1543 | ac_retval=0 | ||
1544 | else | ||
1545 | $as_echo "$as_me: failed program was:" >&5 | ||
1546 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1547 | |||
1548 | ac_retval=1 | ||
1549 | fi | ||
1550 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1551 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1552 | # interfere with the next link command; also delete a directory that is | ||
1553 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1554 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1555 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1556 | as_fn_set_status $ac_retval | ||
1557 | |||
1558 | } # ac_fn_c_try_link | ||
1559 | |||
1497 | # ac_fn_c_try_cpp LINENO | 1560 | # ac_fn_c_try_cpp LINENO |
1498 | # ---------------------- | 1561 | # ---------------------- |
1499 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 1562 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
@@ -1694,52 +1757,6 @@ $as_echo "$ac_res" >&6; } | |||
1694 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 1757 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1695 | 1758 | ||
1696 | } # ac_fn_c_check_header_compile | 1759 | } # ac_fn_c_check_header_compile |
1697 | |||
1698 | # ac_fn_c_try_link LINENO | ||
1699 | # ----------------------- | ||
1700 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1701 | ac_fn_c_try_link () | ||
1702 | { | ||
1703 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1704 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1705 | if { { ac_try="$ac_link" | ||
1706 | case "(($ac_try" in | ||
1707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1708 | *) ac_try_echo=$ac_try;; | ||
1709 | esac | ||
1710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1711 | $as_echo "$ac_try_echo"; } >&5 | ||
1712 | (eval "$ac_link") 2>conftest.err | ||
1713 | ac_status=$? | ||
1714 | if test -s conftest.err; then | ||
1715 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1716 | cat conftest.er1 >&5 | ||
1717 | mv -f conftest.er1 conftest.err | ||
1718 | fi | ||
1719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1720 | test $ac_status = 0; } && { | ||
1721 | test -z "$ac_c_werror_flag" || | ||
1722 | test ! -s conftest.err | ||
1723 | } && test -s conftest$ac_exeext && { | ||
1724 | test "$cross_compiling" = yes || | ||
1725 | test -x conftest$ac_exeext | ||
1726 | }; then : | ||
1727 | ac_retval=0 | ||
1728 | else | ||
1729 | $as_echo "$as_me: failed program was:" >&5 | ||
1730 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1731 | |||
1732 | ac_retval=1 | ||
1733 | fi | ||
1734 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1735 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1736 | # interfere with the next link command; also delete a directory that is | ||
1737 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1738 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1739 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1740 | as_fn_set_status $ac_retval | ||
1741 | |||
1742 | } # ac_fn_c_try_link | ||
1743 | cat >config.log <<_ACEOF | 1760 | cat >config.log <<_ACEOF |
1744 | This file contains any messages produced by compilers while | 1761 | This file contains any messages produced by compilers while |
1745 | running configure, to aid debugging if configure makes a mistake. | 1762 | running configure, to aid debugging if configure makes a mistake. |
@@ -2093,7 +2110,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu | |||
2093 | 2110 | ||
2094 | 2111 | ||
2095 | 2112 | ||
2096 | #AC_CONFIG_HEADERS([config.h]) | ||
2097 | 2113 | ||
2098 | 2114 | ||
2099 | 2115 | ||
@@ -2886,7 +2902,6 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |||
2886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 2902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 2903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2888 | 2904 | ||
2889 | #AC_PROG_CXX | ||
2890 | ac_aux_dir= | 2905 | ac_aux_dir= |
2891 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 2906 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2892 | if test -f "$ac_dir/install-sh"; then | 2907 | if test -f "$ac_dir/install-sh"; then |
@@ -3177,18 +3192,473 @@ else | |||
3177 | fi | 3192 | fi |
3178 | 3193 | ||
3179 | 3194 | ||
3180 | |||
3181 | HAVE_APPARMOR="" | 3195 | HAVE_APPARMOR="" |
3182 | # Check whether --enable-apparmor was given. | 3196 | # Check whether --enable-apparmor was given. |
3183 | if test "${enable_apparmor+set}" = set; then : | 3197 | if test "${enable_apparmor+set}" = set; then : |
3184 | enableval=$enable_apparmor; | 3198 | enableval=$enable_apparmor; |
3185 | fi | 3199 | fi |
3186 | 3200 | ||
3201 | |||
3202 | |||
3203 | |||
3204 | |||
3205 | |||
3206 | |||
3207 | |||
3208 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
3209 | if test -n "$ac_tool_prefix"; then | ||
3210 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
3211 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3213 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3214 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | ||
3215 | $as_echo_n "(cached) " >&6 | ||
3216 | else | ||
3217 | case $PKG_CONFIG in | ||
3218 | [\\/]* | ?:[\\/]*) | ||
3219 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
3220 | ;; | ||
3221 | *) | ||
3222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3223 | for as_dir in $PATH | ||
3224 | do | ||
3225 | IFS=$as_save_IFS | ||
3226 | test -z "$as_dir" && as_dir=. | ||
3227 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3228 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3229 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
3230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3231 | break 2 | ||
3232 | fi | ||
3233 | done | ||
3234 | done | ||
3235 | IFS=$as_save_IFS | ||
3236 | |||
3237 | ;; | ||
3238 | esac | ||
3239 | fi | ||
3240 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
3241 | if test -n "$PKG_CONFIG"; then | ||
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
3243 | $as_echo "$PKG_CONFIG" >&6; } | ||
3244 | else | ||
3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3246 | $as_echo "no" >&6; } | ||
3247 | fi | ||
3248 | |||
3249 | |||
3250 | fi | ||
3251 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
3252 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
3253 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
3254 | set dummy pkg-config; ac_word=$2 | ||
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3256 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3257 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | ||
3258 | $as_echo_n "(cached) " >&6 | ||
3259 | else | ||
3260 | case $ac_pt_PKG_CONFIG in | ||
3261 | [\\/]* | ?:[\\/]*) | ||
3262 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
3263 | ;; | ||
3264 | *) | ||
3265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3266 | for as_dir in $PATH | ||
3267 | do | ||
3268 | IFS=$as_save_IFS | ||
3269 | test -z "$as_dir" && as_dir=. | ||
3270 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3271 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3272 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
3273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3274 | break 2 | ||
3275 | fi | ||
3276 | done | ||
3277 | done | ||
3278 | IFS=$as_save_IFS | ||
3279 | |||
3280 | ;; | ||
3281 | esac | ||
3282 | fi | ||
3283 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
3284 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
3286 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
3287 | else | ||
3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3289 | $as_echo "no" >&6; } | ||
3290 | fi | ||
3291 | |||
3292 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
3293 | PKG_CONFIG="" | ||
3294 | else | ||
3295 | case $cross_compiling:$ac_tool_warned in | ||
3296 | yes:) | ||
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3298 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3299 | ac_tool_warned=yes ;; | ||
3300 | esac | ||
3301 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
3302 | fi | ||
3303 | else | ||
3304 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
3305 | fi | ||
3306 | |||
3307 | fi | ||
3308 | if test -n "$PKG_CONFIG"; then | ||
3309 | _pkg_min_version=0.9.0 | ||
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
3311 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
3312 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3314 | $as_echo "yes" >&6; } | ||
3315 | else | ||
3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3317 | $as_echo "no" >&6; } | ||
3318 | PKG_CONFIG="" | ||
3319 | fi | ||
3320 | fi | ||
3187 | if test "x$enable_apparmor" = "xyes"; then : | 3321 | if test "x$enable_apparmor" = "xyes"; then : |
3188 | 3322 | ||
3189 | HAVE_APPARMOR="-DHAVE_APPARMOR" | 3323 | HAVE_APPARMOR="-DHAVE_APPARMOR" |
3190 | 3324 | ||
3325 | pkg_failed=no | ||
3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AA" >&5 | ||
3327 | $as_echo_n "checking for AA... " >&6; } | ||
3328 | |||
3329 | if test -n "$AA_CFLAGS"; then | ||
3330 | pkg_cv_AA_CFLAGS="$AA_CFLAGS" | ||
3331 | elif test -n "$PKG_CONFIG"; then | ||
3332 | if test -n "$PKG_CONFIG" && \ | ||
3333 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libapparmor\""; } >&5 | ||
3334 | ($PKG_CONFIG --exists --print-errors "libapparmor") 2>&5 | ||
3335 | ac_status=$? | ||
3336 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3337 | test $ac_status = 0; }; then | ||
3338 | pkg_cv_AA_CFLAGS=`$PKG_CONFIG --cflags "libapparmor" 2>/dev/null` | ||
3339 | test "x$?" != "x0" && pkg_failed=yes | ||
3340 | else | ||
3341 | pkg_failed=yes | ||
3342 | fi | ||
3343 | else | ||
3344 | pkg_failed=untried | ||
3345 | fi | ||
3346 | if test -n "$AA_LIBS"; then | ||
3347 | pkg_cv_AA_LIBS="$AA_LIBS" | ||
3348 | elif test -n "$PKG_CONFIG"; then | ||
3349 | if test -n "$PKG_CONFIG" && \ | ||
3350 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libapparmor\""; } >&5 | ||
3351 | ($PKG_CONFIG --exists --print-errors "libapparmor") 2>&5 | ||
3352 | ac_status=$? | ||
3353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3354 | test $ac_status = 0; }; then | ||
3355 | pkg_cv_AA_LIBS=`$PKG_CONFIG --libs "libapparmor" 2>/dev/null` | ||
3356 | test "x$?" != "x0" && pkg_failed=yes | ||
3357 | else | ||
3358 | pkg_failed=yes | ||
3359 | fi | ||
3360 | else | ||
3361 | pkg_failed=untried | ||
3362 | fi | ||
3363 | |||
3364 | |||
3365 | |||
3366 | if test $pkg_failed = yes; then | ||
3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3368 | $as_echo "no" >&6; } | ||
3369 | |||
3370 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
3371 | _pkg_short_errors_supported=yes | ||
3372 | else | ||
3373 | _pkg_short_errors_supported=no | ||
3374 | fi | ||
3375 | if test $_pkg_short_errors_supported = yes; then | ||
3376 | AA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libapparmor" 2>&1` | ||
3377 | else | ||
3378 | AA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libapparmor" 2>&1` | ||
3379 | fi | ||
3380 | # Put the nasty error message in config.log where it belongs | ||
3381 | echo "$AA_PKG_ERRORS" >&5 | ||
3382 | |||
3383 | as_fn_error $? "Package requirements (libapparmor) were not met: | ||
3384 | |||
3385 | $AA_PKG_ERRORS | ||
3386 | |||
3387 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
3388 | installed software in a non-standard prefix. | ||
3389 | |||
3390 | Alternatively, you may set the environment variables AA_CFLAGS | ||
3391 | and AA_LIBS to avoid the need to call pkg-config. | ||
3392 | See the pkg-config man page for more details." "$LINENO" 5 | ||
3393 | elif test $pkg_failed = untried; then | ||
3394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3395 | $as_echo "no" >&6; } | ||
3396 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3397 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3398 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
3399 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
3400 | path to pkg-config. | ||
3401 | |||
3402 | Alternatively, you may set the environment variables AA_CFLAGS | ||
3403 | and AA_LIBS to avoid the need to call pkg-config. | ||
3404 | See the pkg-config man page for more details. | ||
3405 | |||
3406 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
3407 | See \`config.log' for more details" "$LINENO" 5; } | ||
3408 | else | ||
3409 | AA_CFLAGS=$pkg_cv_AA_CFLAGS | ||
3410 | AA_LIBS=$pkg_cv_AA_LIBS | ||
3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3412 | $as_echo "yes" >&6; } | ||
3413 | EXTRA_CFLAGS+=" $AA_CFLAGS" && EXTRA_LDFLAGS+=" $AA_LIBS" | ||
3414 | fi | ||
3415 | |||
3416 | |||
3417 | fi | ||
3418 | |||
3419 | |||
3420 | |||
3421 | |||
3422 | |||
3423 | HAVE_OVERLAYFS="" | ||
3424 | # Check whether --enable-overlayfs was given. | ||
3425 | if test "${enable_overlayfs+set}" = set; then : | ||
3426 | enableval=$enable_overlayfs; | ||
3427 | fi | ||
3428 | |||
3429 | if test "x$enable_overlayfs" != "xno"; then : | ||
3430 | |||
3431 | HAVE_OVERLAYFS="-DHAVE_OVERLAYFS" | ||
3432 | |||
3433 | |||
3434 | fi | ||
3435 | |||
3436 | HAVE_PRIVATEHOME="" | ||
3437 | # Check whether --enable-private-home was given. | ||
3438 | if test "${enable_private_home+set}" = set; then : | ||
3439 | enableval=$enable_private_home; | ||
3440 | fi | ||
3441 | |||
3442 | if test "x$enable_private_home" != "xno"; then : | ||
3443 | |||
3444 | HAVE_PRIVATE_HOME="-DHAVE_PRIVATE_HOME" | ||
3445 | |||
3446 | |||
3447 | fi | ||
3448 | |||
3449 | HAVE_SECCOMP="" | ||
3450 | # Check whether --enable-seccomp was given. | ||
3451 | if test "${enable_seccomp+set}" = set; then : | ||
3452 | enableval=$enable_seccomp; | ||
3453 | fi | ||
3454 | |||
3455 | if test "x$enable_seccomp" != "xno"; then : | ||
3456 | |||
3457 | HAVE_SECCOMP="-DHAVE_SECCOMP" | ||
3458 | |||
3459 | |||
3460 | fi | ||
3461 | |||
3462 | HAVE_CHROOT="" | ||
3463 | # Check whether --enable-chroot was given. | ||
3464 | if test "${enable_chroot+set}" = set; then : | ||
3465 | enableval=$enable_chroot; | ||
3466 | fi | ||
3467 | |||
3468 | if test "x$enable_chroot" != "xno"; then : | ||
3469 | |||
3470 | HAVE_CHROOT="-DHAVE_CHROOT" | ||
3471 | |||
3472 | |||
3473 | fi | ||
3474 | |||
3475 | HAVE_GLOBALCFG="" | ||
3476 | # Check whether --enable-globalcfg was given. | ||
3477 | if test "${enable_globalcfg+set}" = set; then : | ||
3478 | enableval=$enable_globalcfg; | ||
3479 | fi | ||
3480 | |||
3481 | if test "x$enable_globalcfg" != "xno"; then : | ||
3482 | |||
3483 | HAVE_GLOBALCFG="-DHAVE_GLOBALCFG" | ||
3484 | |||
3485 | |||
3486 | fi | ||
3487 | |||
3488 | HAVE_NETWORK="" | ||
3489 | # Check whether --enable-network was given. | ||
3490 | if test "${enable_network+set}" = set; then : | ||
3491 | enableval=$enable_network; | ||
3492 | fi | ||
3493 | |||
3494 | if test "x$enable_network" != "xno"; then : | ||
3495 | |||
3496 | HAVE_NETWORK="-DHAVE_NETWORK" | ||
3497 | |||
3498 | |||
3499 | fi | ||
3500 | |||
3501 | HAVE_USERNS="" | ||
3502 | # Check whether --enable-userns was given. | ||
3503 | if test "${enable_userns+set}" = set; then : | ||
3504 | enableval=$enable_userns; | ||
3505 | fi | ||
3506 | |||
3507 | if test "x$enable_userns" != "xno"; then : | ||
3508 | |||
3509 | HAVE_USERNS="-DHAVE_USERNS" | ||
3510 | |||
3511 | |||
3512 | fi | ||
3513 | |||
3514 | HAVE_X11="" | ||
3515 | # Check whether --enable-x11 was given. | ||
3516 | if test "${enable_x11+set}" = set; then : | ||
3517 | enableval=$enable_x11; | ||
3518 | fi | ||
3519 | |||
3520 | if test "x$enable_x11" != "xno"; then : | ||
3521 | |||
3522 | HAVE_X11="-DHAVE_X11" | ||
3523 | |||
3524 | |||
3525 | fi | ||
3526 | |||
3527 | HAVE_FILE_TRANSFER="" | ||
3528 | # Check whether --enable-file-transfer was given. | ||
3529 | if test "${enable_file_transfer+set}" = set; then : | ||
3530 | enableval=$enable_file_transfer; | ||
3531 | fi | ||
3532 | |||
3533 | if test "x$enable_file_transfer" != "xno"; then : | ||
3534 | |||
3535 | HAVE_FILE_TRANSFER="-DHAVE_FILE_TRANSFER" | ||
3536 | |||
3537 | |||
3538 | fi | ||
3539 | |||
3540 | HAVE_WHITELIST="" | ||
3541 | # Check whether --enable-whitelist was given. | ||
3542 | if test "${enable_whitelist+set}" = set; then : | ||
3543 | enableval=$enable_whitelist; | ||
3544 | fi | ||
3545 | |||
3546 | if test "x$enable_whitelist" != "xno"; then : | ||
3547 | |||
3548 | HAVE_WHITELIST="-DHAVE_WHITELIST" | ||
3549 | |||
3550 | |||
3551 | fi | ||
3552 | |||
3553 | HAVE_SUID="" | ||
3554 | # Check whether --enable-suid was given. | ||
3555 | if test "${enable_suid+set}" = set; then : | ||
3556 | enableval=$enable_suid; | ||
3557 | fi | ||
3558 | |||
3559 | if test "x$enable_suid" = "xno"; then : | ||
3560 | HAVE_SUID="no" | ||
3561 | else | ||
3562 | HAVE_SUID="yes" | ||
3563 | |||
3564 | fi | ||
3565 | |||
3566 | |||
3567 | HAVE_FATAL_WARNINGS="" | ||
3568 | # Check whether --enable-fatal_warnings was given. | ||
3569 | if test "${enable_fatal_warnings+set}" = set; then : | ||
3570 | enableval=$enable_fatal_warnings; | ||
3571 | fi | ||
3572 | |||
3573 | if test "x$enable_fatal_warnings" = "xyes"; then : | ||
3574 | |||
3575 | HAVE_FATAL_WARNINGS="-W -Wall -Werror" | ||
3576 | |||
3577 | |||
3578 | fi | ||
3579 | |||
3580 | BUSYBOX_WORKAROUND="no" | ||
3581 | # Check whether --enable-busybox-workaround was given. | ||
3582 | if test "${enable_busybox_workaround+set}" = set; then : | ||
3583 | enableval=$enable_busybox_workaround; | ||
3584 | fi | ||
3585 | |||
3586 | if test "x$enable_busybox_workaround" = "xyes"; then : | ||
3587 | |||
3588 | BUSYBOX_WORKAROUND="yes" | ||
3589 | |||
3590 | |||
3591 | fi | ||
3592 | |||
3593 | |||
3594 | HAVE_GCOV="" | ||
3595 | # Check whether --enable-gcov was given. | ||
3596 | if test "${enable_gcov+set}" = set; then : | ||
3597 | enableval=$enable_gcov; | ||
3598 | fi | ||
3599 | |||
3600 | if test "x$enable_gcov" = "xyes"; then : | ||
3601 | |||
3602 | HAVE_GCOV="--coverage -DHAVE_GCOV " | ||
3603 | EXTRA_LDFLAGS+=" -lgcov --coverage " | ||
3604 | |||
3605 | |||
3606 | fi | ||
3607 | |||
3608 | HAVE_CONTRIB_INSTALL="yes" | ||
3609 | # Check whether --enable-contrib-install was given. | ||
3610 | if test "${enable_contrib_install+set}" = set; then : | ||
3611 | enableval=$enable_contrib_install; | ||
3612 | fi | ||
3613 | |||
3614 | if test "x$enable_contrib_install" = "xno"; then : | ||
3615 | HAVE_CONTRIB_INSTALL="no" | ||
3616 | else | ||
3617 | HAVE_CONTRIB_INSTALL="yes" | ||
3618 | |||
3619 | fi | ||
3620 | |||
3621 | |||
3622 | # checking pthread library | ||
3623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 | ||
3624 | $as_echo_n "checking for main in -lpthread... " >&6; } | ||
3625 | if ${ac_cv_lib_pthread_main+:} false; then : | ||
3626 | $as_echo_n "(cached) " >&6 | ||
3627 | else | ||
3628 | ac_check_lib_save_LIBS=$LIBS | ||
3629 | LIBS="-lpthread $LIBS" | ||
3630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3631 | /* end confdefs.h. */ | ||
3632 | |||
3633 | |||
3634 | int | ||
3635 | main () | ||
3636 | { | ||
3637 | return main (); | ||
3638 | ; | ||
3639 | return 0; | ||
3640 | } | ||
3641 | _ACEOF | ||
3642 | if ac_fn_c_try_link "$LINENO"; then : | ||
3643 | ac_cv_lib_pthread_main=yes | ||
3644 | else | ||
3645 | ac_cv_lib_pthread_main=no | ||
3646 | fi | ||
3647 | rm -f core conftest.err conftest.$ac_objext \ | ||
3648 | conftest$ac_exeext conftest.$ac_ext | ||
3649 | LIBS=$ac_check_lib_save_LIBS | ||
3650 | fi | ||
3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5 | ||
3652 | $as_echo "$ac_cv_lib_pthread_main" >&6; } | ||
3653 | if test "x$ac_cv_lib_pthread_main" = xyes; then : | ||
3654 | cat >>confdefs.h <<_ACEOF | ||
3655 | #define HAVE_LIBPTHREAD 1 | ||
3656 | _ACEOF | ||
3657 | |||
3658 | LIBS="-lpthread $LIBS" | ||
3191 | 3659 | ||
3660 | else | ||
3661 | as_fn_error $? "*** POSIX thread support not installed ***" "$LINENO" 5 | ||
3192 | fi | 3662 | fi |
3193 | 3663 | ||
3194 | ac_ext=c | 3664 | ac_ext=c |
@@ -3588,266 +4058,6 @@ fi | |||
3588 | done | 4058 | done |
3589 | 4059 | ||
3590 | 4060 | ||
3591 | if test "x$enable_apparmor" = "xyes"; then : | ||
3592 | |||
3593 | ac_fn_c_check_header_mongrel "$LINENO" "sys/apparmor.h" "ac_cv_header_sys_apparmor_h" "$ac_includes_default" | ||
3594 | if test "x$ac_cv_header_sys_apparmor_h" = xyes; then : | ||
3595 | |||
3596 | else | ||
3597 | as_fn_error $? "Couldn't find sys/apparmor.h... please install apparmor user space library and development files " "$LINENO" 5 | ||
3598 | fi | ||
3599 | |||
3600 | |||
3601 | |||
3602 | fi | ||
3603 | if test "x$enable_apparmor" = "xyes"; then : | ||
3604 | |||
3605 | EXTRA_LDFLAGS+=" -lapparmor " | ||
3606 | |||
3607 | fi | ||
3608 | |||
3609 | |||
3610 | HAVE_OVERLAYFS="" | ||
3611 | # Check whether --enable-overlayfs was given. | ||
3612 | if test "${enable_overlayfs+set}" = set; then : | ||
3613 | enableval=$enable_overlayfs; | ||
3614 | fi | ||
3615 | |||
3616 | if test "x$enable_overlayfs" != "xno"; then : | ||
3617 | |||
3618 | HAVE_OVERLAYFS="-DHAVE_OVERLAYFS" | ||
3619 | |||
3620 | |||
3621 | fi | ||
3622 | |||
3623 | HAVE_PRIVATEHOME="" | ||
3624 | # Check whether --enable-private-home was given. | ||
3625 | if test "${enable_private_home+set}" = set; then : | ||
3626 | enableval=$enable_private_home; | ||
3627 | fi | ||
3628 | |||
3629 | if test "x$enable_private_home" != "xno"; then : | ||
3630 | |||
3631 | HAVE_PRIVATE_HOME="-DHAVE_PRIVATE_HOME" | ||
3632 | |||
3633 | |||
3634 | fi | ||
3635 | |||
3636 | HAVE_SECCOMP="" | ||
3637 | # Check whether --enable-seccomp was given. | ||
3638 | if test "${enable_seccomp+set}" = set; then : | ||
3639 | enableval=$enable_seccomp; | ||
3640 | fi | ||
3641 | |||
3642 | if test "x$enable_seccomp" != "xno"; then : | ||
3643 | |||
3644 | HAVE_SECCOMP="-DHAVE_SECCOMP" | ||
3645 | |||
3646 | |||
3647 | fi | ||
3648 | |||
3649 | HAVE_CHROOT="" | ||
3650 | # Check whether --enable-chroot was given. | ||
3651 | if test "${enable_chroot+set}" = set; then : | ||
3652 | enableval=$enable_chroot; | ||
3653 | fi | ||
3654 | |||
3655 | if test "x$enable_chroot" != "xno"; then : | ||
3656 | |||
3657 | HAVE_CHROOT="-DHAVE_CHROOT" | ||
3658 | |||
3659 | |||
3660 | fi | ||
3661 | |||
3662 | HAVE_GLOBALCFG="" | ||
3663 | # Check whether --enable-globalcfg was given. | ||
3664 | if test "${enable_globalcfg+set}" = set; then : | ||
3665 | enableval=$enable_globalcfg; | ||
3666 | fi | ||
3667 | |||
3668 | if test "x$enable_globalcfg" != "xno"; then : | ||
3669 | |||
3670 | HAVE_GLOBALCFG="-DHAVE_GLOBALCFG" | ||
3671 | |||
3672 | |||
3673 | fi | ||
3674 | |||
3675 | HAVE_NETWORK="" | ||
3676 | # Check whether --enable-network was given. | ||
3677 | if test "${enable_network+set}" = set; then : | ||
3678 | enableval=$enable_network; | ||
3679 | fi | ||
3680 | |||
3681 | if test "x$enable_network" != "xno"; then : | ||
3682 | |||
3683 | HAVE_NETWORK="-DHAVE_NETWORK" | ||
3684 | |||
3685 | |||
3686 | fi | ||
3687 | |||
3688 | HAVE_USERNS="" | ||
3689 | # Check whether --enable-userns was given. | ||
3690 | if test "${enable_userns+set}" = set; then : | ||
3691 | enableval=$enable_userns; | ||
3692 | fi | ||
3693 | |||
3694 | if test "x$enable_userns" != "xno"; then : | ||
3695 | |||
3696 | HAVE_USERNS="-DHAVE_USERNS" | ||
3697 | |||
3698 | |||
3699 | fi | ||
3700 | |||
3701 | HAVE_X11="" | ||
3702 | # Check whether --enable-x11 was given. | ||
3703 | if test "${enable_x11+set}" = set; then : | ||
3704 | enableval=$enable_x11; | ||
3705 | fi | ||
3706 | |||
3707 | if test "x$enable_x11" != "xno"; then : | ||
3708 | |||
3709 | HAVE_X11="-DHAVE_X11" | ||
3710 | |||
3711 | |||
3712 | fi | ||
3713 | |||
3714 | HAVE_FILE_TRANSFER="" | ||
3715 | # Check whether --enable-file-transfer was given. | ||
3716 | if test "${enable_file_transfer+set}" = set; then : | ||
3717 | enableval=$enable_file_transfer; | ||
3718 | fi | ||
3719 | |||
3720 | if test "x$enable_file_transfer" != "xno"; then : | ||
3721 | |||
3722 | HAVE_FILE_TRANSFER="-DHAVE_FILE_TRANSFER" | ||
3723 | |||
3724 | |||
3725 | fi | ||
3726 | |||
3727 | HAVE_WHITELIST="" | ||
3728 | # Check whether --enable-whitelist was given. | ||
3729 | if test "${enable_whitelist+set}" = set; then : | ||
3730 | enableval=$enable_whitelist; | ||
3731 | fi | ||
3732 | |||
3733 | if test "x$enable_whitelist" != "xno"; then : | ||
3734 | |||
3735 | HAVE_WHITELIST="-DHAVE_WHITELIST" | ||
3736 | |||
3737 | |||
3738 | fi | ||
3739 | |||
3740 | HAVE_SUID="" | ||
3741 | # Check whether --enable-suid was given. | ||
3742 | if test "${enable_suid+set}" = set; then : | ||
3743 | enableval=$enable_suid; | ||
3744 | fi | ||
3745 | |||
3746 | if test "x$enable_suid" = "xno"; then : | ||
3747 | HAVE_SUID="no" | ||
3748 | else | ||
3749 | HAVE_SUID="yes" | ||
3750 | |||
3751 | fi | ||
3752 | |||
3753 | |||
3754 | HAVE_FATAL_WARNINGS="" | ||
3755 | # Check whether --enable-fatal_warnings was given. | ||
3756 | if test "${enable_fatal_warnings+set}" = set; then : | ||
3757 | enableval=$enable_fatal_warnings; | ||
3758 | fi | ||
3759 | |||
3760 | if test "x$enable_fatal_warnings" = "xyes"; then : | ||
3761 | |||
3762 | HAVE_FATAL_WARNINGS="-W -Wall -Werror" | ||
3763 | |||
3764 | |||
3765 | fi | ||
3766 | |||
3767 | BUSYBOX_WORKAROUND="no" | ||
3768 | # Check whether --enable-busybox-workaround was given. | ||
3769 | if test "${enable_busybox_workaround+set}" = set; then : | ||
3770 | enableval=$enable_busybox_workaround; | ||
3771 | fi | ||
3772 | |||
3773 | if test "x$enable_busybox_workaround" = "xyes"; then : | ||
3774 | |||
3775 | BUSYBOX_WORKAROUND="yes" | ||
3776 | |||
3777 | |||
3778 | fi | ||
3779 | |||
3780 | |||
3781 | HAVE_GCOV="" | ||
3782 | # Check whether --enable-gcov was given. | ||
3783 | if test "${enable_gcov+set}" = set; then : | ||
3784 | enableval=$enable_gcov; | ||
3785 | fi | ||
3786 | |||
3787 | if test "x$enable_gcov" = "xyes"; then : | ||
3788 | |||
3789 | HAVE_GCOV="--coverage -DHAVE_GCOV " | ||
3790 | EXTRA_LDFLAGS+=" -lgcov --coverage " | ||
3791 | |||
3792 | |||
3793 | fi | ||
3794 | |||
3795 | HAVE_CONTRIB_INSTALL="yes" | ||
3796 | # Check whether --enable-contrib-install was given. | ||
3797 | if test "${enable_contrib_install+set}" = set; then : | ||
3798 | enableval=$enable_contrib_install; | ||
3799 | fi | ||
3800 | |||
3801 | if test "x$enable_contrib_install" = "xno"; then : | ||
3802 | HAVE_CONTRIB_INSTALL="no" | ||
3803 | else | ||
3804 | HAVE_CONTRIB_INSTALL="yes" | ||
3805 | |||
3806 | fi | ||
3807 | |||
3808 | |||
3809 | # checking pthread library | ||
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 | ||
3811 | $as_echo_n "checking for main in -lpthread... " >&6; } | ||
3812 | if ${ac_cv_lib_pthread_main+:} false; then : | ||
3813 | $as_echo_n "(cached) " >&6 | ||
3814 | else | ||
3815 | ac_check_lib_save_LIBS=$LIBS | ||
3816 | LIBS="-lpthread $LIBS" | ||
3817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3818 | /* end confdefs.h. */ | ||
3819 | |||
3820 | |||
3821 | int | ||
3822 | main () | ||
3823 | { | ||
3824 | return main (); | ||
3825 | ; | ||
3826 | return 0; | ||
3827 | } | ||
3828 | _ACEOF | ||
3829 | if ac_fn_c_try_link "$LINENO"; then : | ||
3830 | ac_cv_lib_pthread_main=yes | ||
3831 | else | ||
3832 | ac_cv_lib_pthread_main=no | ||
3833 | fi | ||
3834 | rm -f core conftest.err conftest.$ac_objext \ | ||
3835 | conftest$ac_exeext conftest.$ac_ext | ||
3836 | LIBS=$ac_check_lib_save_LIBS | ||
3837 | fi | ||
3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5 | ||
3839 | $as_echo "$ac_cv_lib_pthread_main" >&6; } | ||
3840 | if test "x$ac_cv_lib_pthread_main" = xyes; then : | ||
3841 | cat >>confdefs.h <<_ACEOF | ||
3842 | #define HAVE_LIBPTHREAD 1 | ||
3843 | _ACEOF | ||
3844 | |||
3845 | LIBS="-lpthread $LIBS" | ||
3846 | |||
3847 | else | ||
3848 | as_fn_error $? "*** POSIX thread support not installed ***" "$LINENO" 5 | ||
3849 | fi | ||
3850 | |||
3851 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | 4061 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
3852 | if test "x$ac_cv_header_pthread_h" = xyes; then : | 4062 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
3853 | 4063 | ||