--- embedaddon/strongswan/configure 2020/06/03 09:46:43 1.1.1.1 +++ embedaddon/strongswan/configure 2021/03/17 00:20:08 1.1.1.2 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for strongSwan 5.8.4. +# Generated by GNU Autoconf 2.69 for strongSwan 5.9.2. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -587,8 +587,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='strongSwan' PACKAGE_TARNAME='strongswan' -PACKAGE_VERSION='5.8.4' -PACKAGE_STRING='strongSwan 5.8.4' +PACKAGE_VERSION='5.9.2' +PACKAGE_STRING='strongSwan 5.9.2' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1058,6 +1058,7 @@ attest_plugins pool_plugins starter_plugins charon_plugins +GIT_VERSION PERL_CPAN_INSTALL_FALSE PERL_CPAN_INSTALL_TRUE PYTHON_EGGS_INSTALL_FALSE @@ -1513,6 +1514,7 @@ enable_perl_cpan_install enable_tss_trousers enable_tss_tss2 enable_coverage +enable_git_version enable_leak_detective enable_lock_profiler enable_log_thread_ids @@ -2128,7 +2130,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures strongSwan 5.8.4 to adapt to many kinds of systems. +\`configure' configures strongSwan 5.9.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -2199,7 +2201,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of strongSwan 5.8.4:";; + short | recursive ) echo "Configuration of strongSwan 5.9.2:";; esac cat <<\_ACEOF @@ -2450,6 +2452,8 @@ Optional Features: Stack --enable-tss-tss2 enable the use of the TSS 2.0 Trusted Software Stack --enable-coverage enable lcov coverage report generation. + --enable-git-version use output of 'git describe' as version information + in executables. --enable-leak-detective enable malloc hooks to find memory leaks. --enable-lock-profiler enable lock/mutex profiling code. --enable-log-thread-ids use thread ID, if available, instead of an @@ -2700,7 +2704,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -strongSwan configure 5.8.4 +strongSwan configure 5.9.2 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -3222,7 +3226,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by strongSwan $as_me 5.8.4, which was +It was created by strongSwan $as_me 5.9.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -4085,7 +4089,7 @@ fi # Define the identity of the package. PACKAGE='strongswan' - VERSION='5.8.4' + VERSION='5.9.2' cat >>confdefs.h <<_ACEOF @@ -7930,6 +7934,22 @@ fi disabled_by_default=${disabled_by_default}" coverage" +# Check whether --enable-git-version was given. +if test "${enable_git_version+set}" = set; then : + enableval=$enable_git_version; git_version_given=true + if test x$enableval = xyes; then + git_version=true + else + git_version=false + fi +else + git_version=false + git_version_given=false + +fi + + disabled_by_default=${disabled_by_default}" git_version" + # Check whether --enable-leak-detective was given. if test "${enable_leak_detective+set}" = set; then : enableval=$enable_leak_detective; leak_detective_given=true @@ -19326,7 +19346,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ fi -for ac_func in prctl mallinfo getpass closefrom getpwnam_r getgrnam_r getpwuid_r +for ac_func in prctl mallinfo getpass closefrom getpwnam_r getgrnam_r getpwuid_r chown do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -21415,7 +21435,7 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -if test x$imc_swima = xtrue -o $imv_swima = xtrue; then +if test x$imc_swima = xtrue -o x$imv_swima = xtrue; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json" >&5 @@ -22318,6 +22338,65 @@ if test -n "$botan_CFLAGS"; then pkg_cv_botan_CFLAGS="$botan_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"botan-3\""; } >&5 + ($PKG_CONFIG --exists --print-errors "botan-3") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_botan_CFLAGS=`$PKG_CONFIG --cflags "botan-3" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$botan_LIBS"; then + pkg_cv_botan_LIBS="$botan_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"botan-3\""; } >&5 + ($PKG_CONFIG --exists --print-errors "botan-3") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_botan_LIBS=`$PKG_CONFIG --libs "botan-3" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + botan_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "botan-3" 2>&1` + else + botan_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "botan-3" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$botan_PKG_ERRORS" >&5 + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for botan" >&5 +$as_echo_n "checking for botan... " >&6; } + +if test -n "$botan_CFLAGS"; then + pkg_cv_botan_CFLAGS="$botan_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"botan-2\""; } >&5 ($PKG_CONFIG --exists --print-errors "botan-2") 2>&5 ac_status=$? @@ -22400,10 +22479,125 @@ else $as_echo "yes" >&6; } fi +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for botan" >&5 +$as_echo_n "checking for botan... " >&6; } +if test -n "$botan_CFLAGS"; then + pkg_cv_botan_CFLAGS="$botan_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"botan-2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "botan-2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_botan_CFLAGS=`$PKG_CONFIG --cflags "botan-2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes fi + else + pkg_failed=untried +fi +if test -n "$botan_LIBS"; then + pkg_cv_botan_LIBS="$botan_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"botan-2\""; } >&5 + ($PKG_CONFIG --exists --print-errors "botan-2") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_botan_LIBS=`$PKG_CONFIG --libs "botan-2" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + botan_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "botan-2" 2>&1` + else + botan_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "botan-2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$botan_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (botan-2) were not met: + +$botan_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables botan_CFLAGS +and botan_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables botan_CFLAGS +and botan_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + botan_CFLAGS=$pkg_cv_botan_CFLAGS + botan_LIBS=$pkg_cv_botan_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +else + botan_CFLAGS=$pkg_cv_botan_CFLAGS + botan_LIBS=$pkg_cv_botan_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + + saved_LIBS=$LIBS + LIBS="$botan_LIBS" + for ac_func in botan_rng_init_custom +do : + ac_fn_c_check_func "$LINENO" "botan_rng_init_custom" "ac_cv_func_botan_rng_init_custom" +if test "x$ac_cv_func_botan_rng_init_custom" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_BOTAN_RNG_INIT_CUSTOM 1 +_ACEOF + +fi +done + + LIBS=$saved_LIBS +fi + if test x$uci = xtrue; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uci_alloc_context in -luci" >&5 $as_echo_n "checking for uci_alloc_context in -luci... " >&6; } @@ -23544,6 +23738,31 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version from Git repository" >&5 +$as_echo_n "checking version from Git repository... " >&6; } +GIT_VERSION=$($srcdir/scripts/git-version "$srcdir") + +case "$GIT_VERSION" in + "$PACKAGE_VERSION"*) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_VERSION" >&5 +$as_echo "$GIT_VERSION" >&6; } + ;; + UNKNOWN) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_VERSION (could be due to insufficient clone depth)" >&5 +$as_echo "$GIT_VERSION (could be due to insufficient clone depth)" >&6; } + ;; + *) + as_fn_error $? "$PACKAGE_VERSION is not a prefix of $GIT_VERSION, tag missing?" "$LINENO" 5 + ;; +esac + +if test x$git_version = xtrue -a "$GIT_VERSION" != "UNKNOWN"; then + cat >>confdefs.h <<_ACEOF +#define VERSION "$GIT_VERSION" +_ACEOF + +fi + # =============================================== # collect plugin list for strongSwan components # =============================================== @@ -27877,7 +28096,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by strongSwan $as_me 5.8.4, which was +This file was extended by strongSwan $as_me 5.9.2, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -27943,7 +28162,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -strongSwan config.status 5.8.4 +strongSwan config.status 5.9.2 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\"