From 6707ce0754e85f92fe4e4a73353443781a920a7a Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Mon, 2 Sep 2024 12:51:59 +0200 Subject: [PATCH 1/9] build: use meson for version info --- contrib/fedora/rpm/build.sh | 9 +-------- contrib/fedora/rpm/configure-for-system.sh | 9 +-------- contrib/fedora/rpm/release.sh | 6 +++--- 3 files changed, 5 insertions(+), 19 deletions(-) diff --git a/contrib/fedora/rpm/build.sh b/contrib/fedora/rpm/build.sh index 8160b915e6..0ad5f6789f 100755 --- a/contrib/fedora/rpm/build.sh +++ b/contrib/fedora/rpm/build.sh @@ -76,14 +76,7 @@ abs_path() { } get_version() { - local major minor micro - local F="${1:-"$GITDIR/configure.ac"}" - - vars="$(sed -n 's/^m4_define(\[nm_\(major\|minor\|micro\)_version\], *\[\([0-9]\+\)\]) *$/local \1='\''\2'\''/p' "$F" 2>/dev/null)" - eval "$vars" - - [[ -n "$major" && -n "$minor" && "$micro" ]] || return 1 - echo "$major.$minor.$micro" + grep -E -m1 '^\s+version:' "$GITDIR/meson.build" | cut -d"'" -f2 } write_changelog() { diff --git a/contrib/fedora/rpm/configure-for-system.sh b/contrib/fedora/rpm/configure-for-system.sh index 37966ae40c..ee017d6e5c 100755 --- a/contrib/fedora/rpm/configure-for-system.sh +++ b/contrib/fedora/rpm/configure-for-system.sh @@ -44,14 +44,7 @@ usage() { } get_version() { - local major minor micro - local F="./configure.ac" - - vars="$(sed -n 's/^m4_define(\[nm_\(major\|minor\|micro\)_version\], *\[\([0-9]\+\)\]) *$/local \1='\''\2'\''/p' "$F" 2>/dev/null)" - eval "$vars" - - [[ -n "$major" && -n "$minor" && "$micro" ]] || return 1 - echo "$major.$minor.$micro" + grep -E -m1 '^\s+version:' meson.build | cut -d"'" -f2 } bool() { diff --git a/contrib/fedora/rpm/release.sh b/contrib/fedora/rpm/release.sh index fd48f487d4..5cfd403e4b 100755 --- a/contrib/fedora/rpm/release.sh +++ b/contrib/fedora/rpm/release.sh @@ -94,9 +94,9 @@ do_command() { } parse_version() { - local MAJ="$(sed -n '1,20 s/^m4_define(\[nm_major_version\], \[\([0-9]\+\)\])$/\1/p' ./configure.ac)" - local MIN="$(sed -n '1,20 s/^m4_define(\[nm_minor_version\], \[\([0-9]\+\)\])$/\1/p' ./configure.ac)" - local MIC="$(sed -n '1,20 s/^m4_define(\[nm_micro_version\], \[\([0-9]\+\)\])$/\1/p' ./configure.ac)" + local VERSION=$(grep -E -m1 '^\s+version:' "$GITDIR/meson.build" \ + | cut -d"'" -f2 \ + | sed 's/\./ /g') re='^(0|[1-9][0-9]*) (0|[1-9][0-9]*) (0|[1-9][0-9]*)$' [[ "$MAJ $MIN $MIC" =~ $re ]] || return 1 From 1b0bd9b9b65ca1c9e6814cf6d3a471ccdeebbf5e Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Thu, 22 Aug 2024 13:23:09 +0200 Subject: [PATCH 2/9] build/release: stop trying to bump version in autotools --- contrib/fedora/rpm/release.sh | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/contrib/fedora/rpm/release.sh b/contrib/fedora/rpm/release.sh index 5cfd403e4b..33a8b5f361 100755 --- a/contrib/fedora/rpm/release.sh +++ b/contrib/fedora/rpm/release.sh @@ -144,25 +144,12 @@ check_gitlab_pipeline() { return 0 } -set_version_number_autotools() { - sed -i \ - -e '1,20 s/^m4_define(\[nm_major_version\], \[\([0-9]\+\)\])$/m4_define([nm_major_version], ['"$1"'])/' \ - -e '1,20 s/^m4_define(\[nm_minor_version\], \[\([0-9]\+\)\])$/m4_define([nm_minor_version], ['"$2"'])/' \ - -e '1,20 s/^m4_define(\[nm_micro_version\], \[\([0-9]\+\)\])$/m4_define([nm_micro_version], ['"$3"'])/' \ - ./configure.ac -} - -set_version_number_meson() { +set_version_number() { sed -i \ -e '1,20 s/^\( *version: *'\''\)[0-9]\+\.[0-9]\+\.[0-9]\+\('\'',\)$/\1'"$1.$2.$3"'\2/' \ meson.build } -set_version_number() { - set_version_number_autotools "$@" && - set_version_number_meson "$@" -} - check_news() { local mode="$1" shift From 82a6a820316edda8576812a8f57d1612916c55d7 Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Thu, 22 Aug 2024 13:12:29 +0200 Subject: [PATCH 3/9] gitlab-ci: use meson for check-tree --- .gitlab-ci.yml | 12 ++++++------ .gitlab-ci/ci.template | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d1098453b..c86377e9a1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,11 +60,11 @@ variables: # # This is done by running `ci-fairy generate-template` and possibly bumping # ".default_tag". - ALPINE_TAG: 'tag-5fca51298172' - CENTOS_TAG: 'tag-40039d32d4e4' - DEBIAN_TAG: 'tag-410ffa3d1295' - FEDORA_TAG: 'tag-40039d32d4e4' - UBUNTU_TAG: 'tag-410ffa3d1295' + ALPINE_TAG: 'tag-94fd546ecdd9' + CENTOS_TAG: 'tag-ec274fe113f5' + DEBIAN_TAG: 'tag-cae73089725c' + FEDORA_TAG: 'tag-ec274fe113f5' + UBUNTU_TAG: 'tag-cae73089725c' ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh' CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh' @@ -638,7 +638,7 @@ check-tree: - date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc - date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n - date '+%Y%m%d-%H%M%S'; ci-fairy generate-template && git diff --exit-code - - date '+%Y%m%d-%H%M%S'; ./autogen.sh --disable-autotools-deprecation && [ "$(LANG=C make -C po update-po 2>&1 1>/dev/null | grep -c 'warning:')" = 0 ] + - date '+%Y%m%d-%H%M%S'; meson setup build && [ "$(LANG=C ninja -C build NetworkManager-update-po 2>&1 1>/dev/null | grep -c 'warning:')" = 0 ] pages: stage: deploy diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index 208c34903c..d1a421f840 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -219,7 +219,7 @@ check-tree: - date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc - date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n - date '+%Y%m%d-%H%M%S'; ci-fairy generate-template && git diff --exit-code - - date '+%Y%m%d-%H%M%S'; ./autogen.sh --disable-autotools-deprecation && [ "$(LANG=C make -C po update-po 2>&1 1>/dev/null | grep -c 'warning:')" = 0 ] + - date '+%Y%m%d-%H%M%S'; meson setup build && [ "$(LANG=C ninja -C build NetworkManager-update-po 2>&1 1>/dev/null | grep -c 'warning:')" = 0 ] pages: stage: deploy From 12b5b8317bb6cd396541acc2328f77c37b63e3a1 Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Thu, 22 Aug 2024 13:14:01 +0200 Subject: [PATCH 4/9] build: remove autotools configuration from scripts --- .gitlab-ci.yml | 12 +- .gitlab-ci/ci.template | 2 +- .gitlab-ci/run-test.sh | 6 +- contrib/fedora/rpm/build_clean.sh | 126 +++------- contrib/fedora/rpm/configure-for-system.sh | 265 +++++++-------------- contrib/scripts/nm-ci-run.sh | 220 +++++------------ tools/create-exports-NetworkManager.sh | 36 --- tools/nm-guest-data/bin-nm-deploy.sh.in | 7 +- tools/nm-guest-data/etc-bashrc.my.in | 1 - tools/nm-in-container | 1 - tools/run-nm-test.sh | 22 +- tools/test-build.sh | 56 ----- 12 files changed, 196 insertions(+), 558 deletions(-) delete mode 100755 tools/test-build.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c86377e9a1..981689dc55 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,11 +60,11 @@ variables: # # This is done by running `ci-fairy generate-template` and possibly bumping # ".default_tag". - ALPINE_TAG: 'tag-94fd546ecdd9' - CENTOS_TAG: 'tag-ec274fe113f5' - DEBIAN_TAG: 'tag-cae73089725c' - FEDORA_TAG: 'tag-ec274fe113f5' - UBUNTU_TAG: 'tag-cae73089725c' + ALPINE_TAG: 'tag-ee13da0f38c7' + CENTOS_TAG: 'tag-5d3b59c9dd4b' + DEBIAN_TAG: 'tag-b274cbc4bddd' + FEDORA_TAG: 'tag-5d3b59c9dd4b' + UBUNTU_TAG: 'tag-b274cbc4bddd' ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh' CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh' @@ -680,7 +680,7 @@ coverity: - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "weekly" script: - dnf install -y curl - - BUILD_TYPE=meson CC=gcc CONFIGURE_ONLY=1 contrib/scripts/nm-ci-run.sh + - CC=gcc CONFIGURE_ONLY=1 contrib/scripts/nm-ci-run.sh - cd build - ../.gitlab-ci/coverity.sh download - cov-analysis-linux64-*/bin/cov-build --dir cov-int ninja diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index d1a421f840..e7a7c0e55e 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -261,7 +261,7 @@ coverity: - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE_NAME == "weekly" script: - dnf install -y curl - - BUILD_TYPE=meson CC=gcc CONFIGURE_ONLY=1 contrib/scripts/nm-ci-run.sh + - CC=gcc CONFIGURE_ONLY=1 contrib/scripts/nm-ci-run.sh - cd build - ../.gitlab-ci/coverity.sh download - cov-analysis-linux64-*/bin/cov-build --dir cov-int ninja diff --git a/.gitlab-ci/run-test.sh b/.gitlab-ci/run-test.sh index 4091cdd40a..2ae72f28eb 100755 --- a/.gitlab-ci/run-test.sh +++ b/.gitlab-ci/run-test.sh @@ -107,11 +107,11 @@ check_run_clean() { } if check_run_clean meson+gcc+docs+valgrind ; then - BUILD_TYPE=meson CC=gcc WITH_DOCS=1 WITH_VALGRIND=1 contrib/scripts/nm-ci-run.sh + CC=gcc WITH_DOCS=1 WITH_VALGRIND=1 contrib/scripts/nm-ci-run.sh mv INST/share/gtk-doc/html "$ARTIFACT_DIR/docs-html" fi -check_run_clean meson+clang && BUILD_TYPE=meson CC=clang WITH_DOCS=0 contrib/scripts/nm-ci-run.sh +check_run_clean meson+clang && CC=clang WITH_DOCS=0 contrib/scripts/nm-ci-run.sh check_run_clean rpm+meson && test $IS_FEDORA = 1 && ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test -w meson if check_run_clean tarball && [ "$NM_BUILD_TARBALL" = 1 ]; then @@ -121,7 +121,7 @@ if check_run_clean tarball && [ "$NM_BUILD_TARBALL" = 1 ]; then do_clean fi -check_run_clean tarball+meson && BUILD_TYPE=meson CC=gcc WITH_DOCS=1 CONFIGURE_ONLY=1 contrib/scripts/nm-ci-run.sh +check_run_clean tarball+meson && CC=gcc WITH_DOCS=1 CONFIGURE_ONLY=1 contrib/scripts/nm-ci-run.sh ############################################################################### diff --git a/contrib/fedora/rpm/build_clean.sh b/contrib/fedora/rpm/build_clean.sh index 37436c1b63..3300877f5b 100755 --- a/contrib/fedora/rpm/build_clean.sh +++ b/contrib/fedora/rpm/build_clean.sh @@ -21,8 +21,6 @@ usage() { echo " -g|--git: create tarball from current git HEAD (skips make dist)" echo " -Q|--quick: only create the distribution tarball, without running checks" echo " -N|--no-dist: skip creating the source tarball if you already did \`make dist\`" - echo " -m|--meson: (default) use meson to create the source tarball" - echo " -A|--autotools: use autotools to create the source tarball" echo " -w|--with \$OPTION: pass --with \$OPTION to rpmbuild. For example --with debug" echo " -W|--without \$OPTION: pass --without \$OPTION to rpmbuild. For example --without debug" echo " -s|--snapshot TEXT: use TEXT as the snapshot version for the new package (overwrites \$NM_BUILD_SNAPSHOT environment)" @@ -99,14 +97,6 @@ while [[ $# -gt 0 ]]; do IGNORE_DIRTY=1 SOURCE_FROM_GIT=1 ;; - -m|--meson) - [ "$USE_AUTOTOOLS" = 1 ] && die "conflicting argument: $A when building with autotools is requested"; - USE_MESON=1 - ;; - -A|--autotools) - [ "$USE_MESON" = 1 ] && die "conflicting argument: $A when building with meson is explicitly requested"; - USE_AUTOTOOLS=1 - ;; -Q|--quick) QUICK=1 ;; @@ -203,96 +193,48 @@ get_version_meson() { } if [[ $NO_DIST != 1 ]]; then - if [[ $USE_AUTOTOOLS != 1 ]]; then - meson setup "$GITDIR/build" \ - --prefix=/usr \ - --bindir=/usr/bin \ - --sbindir=/usr/sbin \ - --sysconfdir=/etc \ - --datadir=/usr/share \ - --includedir=/usr/include \ - --libdir=/usr/lib \ - --libexecdir=/usr/libexec \ - --localstatedir=/var \ - --sharedstatedir=/var/lib \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - -Ddocs=true \ - -Dintrospection=true \ - -Difcfg_rh=true \ - -Difupdown=true \ - -Dconfig_logging_backend_default=syslog \ - -Dconfig_wifi_backend_default=wpa_supplicant \ - -Dlibaudit=yes-disabled-by-default \ - -Dpolkit=true \ - -Dnm_cloud_setup=true \ - -Ddhclient=/usr/sbin/dhclient \ - -Dconfig_dhcp_default=internal \ - -Dconfig_dns_rc_manager_default=auto \ - -Diptables=/usr/sbin/iptables \ - -Dnft=/usr/bin/nft \ - || die "Error meson setup" + meson setup "$GITDIR/build" \ + --prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --includedir=/usr/include \ + --libdir=/usr/lib \ + --libexecdir=/usr/libexec \ + --localstatedir=/var \ + --sharedstatedir=/var/lib \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + -Ddocs=true \ + -Dintrospection=true \ + -Difcfg_rh=true \ + -Difupdown=true \ + -Dconfig_logging_backend_default=syslog \ + -Dconfig_wifi_backend_default=wpa_supplicant \ + -Dlibaudit=yes-disabled-by-default \ + -Dpolkit=true \ + -Dnm_cloud_setup=true \ + -Ddhclient=/usr/sbin/dhclient \ + -Dconfig_dhcp_default=internal \ + -Dconfig_dns_rc_manager_default=auto \ + -Diptables=/usr/sbin/iptables \ + -Dnft=/usr/bin/nft \ + || die "Error meson setup" - VERSION="${VERSION:-$(get_version_meson || die "Could not read $VERSION")}" - if [[ $QUICK == 1 ]]; then - meson dist --allow-dirty -C "$GITDIR/build/" --no-tests || die "Error meson dist" - else - meson dist --allow-dirty -C "$GITDIR/build/" || die "Error meson dist with tests" - fi - export SOURCE="$(ls -1 "$GITDIR/build/meson-dist/NetworkManager-${VERSION}.tar.xz" 2>/dev/null | head -n1)" - else - ./autogen.sh \ - --with-runstatedir=/run \ - --program-prefix= \ - --prefix=/usr \ - --exec-prefix=/usr \ - --bindir=/usr/bin \ - --sbindir=/usr/sbin \ - --sysconfdir=/etc \ - --datadir=/usr/share \ - --includedir=/usr/include \ - --libdir=/usr/lib \ - --libexecdir=/usr/libexec \ - --localstatedir=/var \ - --sharedstatedir=/var/lib \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - \ - --disable-dependency-tracking \ - --enable-gtk-doc \ - --enable-introspection \ - --enable-ifcfg-rh \ - --enable-ifupdown \ - --with-config-logging-backend-default=syslog \ - --with-config-wifi-backend-default=wpa_supplicant \ - --with-libaudit=yes-disabled-by-default \ - --enable-polkit=yes \ - --with-nm-cloud-setup=yes \ - --with-dhclient=yes \ - --with-config-dhcp-default=internal \ - --with-config-dns-rc-manager-default=auto \ - \ - --with-iptables=/usr/sbin/iptables \ - --with-nft=/usr/sbin/nft \ - --disable-autotools-deprecation \ - \ - || die "Error autogen.sh" - if [[ $QUICK == 1 ]]; then - make dist -j 7 || die "Error make dist" - else - make distcheck -j 7 || die "Error make distcheck" - fi + VERSION="${VERSION:-$(get_version_meson || die "Could not read $VERSION")}" + TEST_FLAG="" + if [[ $QUICK == 1 ]]; then + TEST_FLAG="--no-tests" fi + meson dist --allow-dirty -C "$GITDIR/build/" $TEST_FLAG || die "Error meson dist" + export SOURCE="$(ls -1 "$GITDIR/build/meson-dist/NetworkManager-${VERSION}.tar.xz" 2>/dev/null | head -n1)" fi if [[ "$ADD_WITH_TEST" == 1 ]]; then WITH_LIST=("${WITH_LIST[@]}" "--with" "test") fi -if [[ "$USE_AUTOTOOLS" != 1 ]]; then - WITH_LIST=("${WITH_LIST[@]}" "--with" "meson") -fi - export SOURCE_FROM_GIT export BUILDTYPE export NM_RPMBUILD_ARGS="${WITH_LIST[@]}" diff --git a/contrib/fedora/rpm/configure-for-system.sh b/contrib/fedora/rpm/configure-for-system.sh index ee017d6e5c..5b61a18051 100755 --- a/contrib/fedora/rpm/configure-for-system.sh +++ b/contrib/fedora/rpm/configure-for-system.sh @@ -30,7 +30,7 @@ vars_with_vals() { } usage() { - echo "$ $0 [-m|--meson ] [-a|--autotools] [-s|--show] [-B|--no-build] [-h|--help]" + echo "$ $0 [-m|--meson ] [-s|--show] [-B|--no-build] [-h|--help]" echo "" echo "Configure NetworkManager in a way that is similar to when building" echo "RPMs of NetworkManager for Fedora/RHEL. The effect is that \`make install\`" @@ -142,7 +142,6 @@ P_NOBUILD="${NOBUILD-0}" P_DEBUG="${DEBUG-1}" -P_BUILD_TYPE="${BUILD_TYPE-meson}" P_MESON_BUILDDIR="${MESON_BUILDDIR-./build}" [ -n "$MESON_BUILDDIR" ] && P_MESON_BUILDDIR_FORCE=1 P_CFLAGS="${CFLAGS-}" @@ -306,14 +305,10 @@ while [[ $# -gt 0 ]] ; do shift case "$A" in --meson|-m) - P_BUILD_TYPE=meson P_MESON_BUILDDIR="$1" P_MESON_BUILDDIR_FORCE=1 shift ;; - --autotools|-a) - P_BUILD_TYPE=autotools - ;; -s|--show) SHOW_CMD=show_cmd ;; @@ -331,7 +326,7 @@ while [[ $# -gt 0 ]] ; do esac done -if [ "$P_BUILD_TYPE" = meson -a "$P_MESON_BUILDDIR_FORCE" != 1 ]; then +if [ "$P_MESON_BUILDDIR_FORCE" != 1 ]; then if [ -d "$P_MESON_BUILDDIR" ]; then echo "Build directory '$P_MESON_BUILDDIR' chosen by default, but it exists and will be overwritten." \ "If you really want that, pass '--meson \"$P_MESON_BUILDDIR\"'." >&2 @@ -341,181 +336,89 @@ fi vars_with_vals -if [ "$P_BUILD_TYPE" == meson ] ; then - MESON_RECONFIGURE= - if test -d "$P_MESON_BUILDDIR" ; then - MESON_RECONFIGURE="--reconfigure" - fi - - $SHOW_CMD \ - env \ - CC="$P_CC" \ - CFLAGS="$P_CFLAGS" \ - meson setup\ - $MESON_RECONFIGURE \ - --buildtype=plain \ - --prefix="$D_PREFIX" \ - --libdir="$D_LIBDIR" \ - --libexecdir="$D_LIBEXECDIR" \ - --bindir="$D_BINDIR" \ - --sbindir="$D_SBINDIR" \ - --includedir="$D_INCLUDEDIR" \ - --datadir="$D_DATADIR" \ - --mandir="$D_MANDIR" \ - --infodir="$D_INFODIR" \ - --localedir="$D_DATADIR"/locale \ - --sysconfdir="$D_SYSCONFDIR" \ - --localstatedir="$D_LOCALSTATEDIR" \ - --sharedstatedir="$D_SHAREDSTATEDIR" \ - --wrap-mode=nodownload \ - --auto-features=enabled \ - -Db_ndebug=false \ - --warnlevel 2 \ - $(args_enable "$P_TEST" --werror) \ - -Dnft="${D_SBINDIR}/nft" \ - -Diptables="${D_SBINDIR}/iptables" \ - -Ddhclient="${D_SBINDIR}/dhclient" \ - -Ddhcpcanon=no \ - -Ddhcpcd=no \ - -Dconfig_dhcp_default="$P_DHCP_DEFAULT" \ - "-Dcrypto=$P_CRYPTO" \ - $(args_enable "$P_DEBUG" -Dmore_logging=true -Dmore_asserts=10000) \ - $(args_enable "$(bool_not_true "$P_DEBUG")" -Dmore_logging=false -Dmore_asserts=0 ) \ - -Dld_gc=true \ - -Db_lto="$(bool_true "$P_LTO")" \ - -Dlibaudit=yes-disabled-by-default \ - -Dmodem_manager="$(bool_true "$P_MODEM_MANAGER_1")" \ - $(args_enable "$P_WIFI" -Dwifi=true -Dwext="$(bool_true "$P_FEDORA")") \ - $(args_enable "$(bool_not_true "$P_WIFI")" -Dwifi=false ) \ - -Diwd="$(bool_true "$P_IWD")" \ - -Dbluez5_dun="$(bool_true "$P_BLUETOOTH")" \ - -Dnmtui="$(bool_true "$P_NMTUI")" \ - -Dnm_cloud_setup="$(bool_true "$P_NM_CLOUD_SETUP")" \ - -Dvapi=true \ - -Dintrospection=true \ - -Ddocs="$(bool_true "$P_REGEN_DOCS")" \ - -Dteamdctl="$(bool_true "$P_TEAM")" \ - -Dovs="$(bool_true "$P_OVS")" \ - -Dselinux=true \ - -Dpolkit=true \ - -Dconfig_auth_polkit_default=true \ - -Dmodify_system=true \ - -Dconcheck=true \ - -Dlibpsl="$(bool_true "$P_FEDORA")" \ - -Debpf="$(bool_true "$P_EBPF_ENABLED")" \ - -Dsession_tracking=systemd \ - -Dsuspend_resume=systemd \ - -Dsystemdsystemunitdir=/usr/lib/systemd/system \ - -Dsystem_ca_path=/etc/pki/tls/cert.pem \ - -Ddbus_conf_dir="$P_DBUS_SYS_DIR" \ - -Dtests=yes \ - -Dvalgrind=no \ - -Difcfg_rh=true \ - -Difupdown=false \ - $(args_enable "$P_PPP" -Dppp=true -Dpppd="$D_SBINDIR/pppd" -Dpppd_plugin_dir="$D_LIBDIR/pppd/$P_PPP_VERSION") \ - $(args_enable "$(bool_not_true "$P_PPP")" -Dppp=false ) \ - -Dfirewalld_zone="$(bool_true "$P_FIREWALLD_ZONE}")" \ - -Ddist_version="$P_VERSION-$P_RELEASE" \ - $(args_enable "$P_CONFIG_PLUGINS_DEFAULT_IFCFG_RH" -Dconfig_plugins_default=ifcfg-rh) \ - -Dresolvconf=no \ - -Dnetconfig=no \ - -Dconfig_dns_rc_manager_default="$P_DNS_RC_MANAGER_DEFAULT" \ - -Dconfig_logging_backend_default="$P_LOGGING_BACKEND_DEFAULT" \ - \ - "$P_MESON_BUILDDIR" \ - ; -else - if ! test -x ./configure ; then - if [ -z "$SHOW_CMD" ]; then - NOCONFIGURE=yes ./autogen.sh - fi - fi - $SHOW_CMD \ - ./configure \ - --build=x86_64-redhat-linux-gnu \ - --host=x86_64-redhat-linux-gnu \ - --program-prefix= \ - --prefix="$D_PREFIX" \ - --exec-prefix=/usr \ - --bindir="$D_BINDIR" \ - --sbindir="$D_SBINDIR" \ - --sysconfdir="$D_SYSCONFDIR" \ - --datadir="$D_DATADIR" \ - --includedir="$D_INCLUDEDIR" \ - --libdir="$D_LIBDIR" \ - --libexecdir="$D_LIBEXECDIR" \ - --localstatedir="$D_LOCALSTATEDIR" \ - --sharedstatedir="$D_SHAREDSTATEDIR" \ - --mandir="$D_MANDIR" \ - --infodir="$D_INFODIR" \ - \ - CC="$P_CC" \ - CFLAGS="$P_CFLAGS" \ - \ - --enable-dependency-tracking=yes \ - \ - --with-runstatedir="$D_RUNDIR" \ - --enable-silent-rules="$(bool_yes "$P_SILENT_RULES")" \ - --enable-static=no \ - --with-nft="${D_SBINDIR}/nft" \ - --with-iptables="${D_SBINDIR}/iptables" \ - --with-dhclient="${D_SBINDIR}/dhclient" \ - --with-dhcpcd=no \ - --with-dhcpcanon=no \ - --with-config-dhcp-default="$P_DHCP_DEFAULT" \ - --with-crypto="$P_CRYPTO" \ - $(args_enable "$P_SANITIZER" --with-address-sanitizer=exec --enable-undefined-sanitizer="$( (bool "$P_FEDORA" || test "$P_RHEL" -ge 8) && echo yes || echo no)" ) \ - $(args_enable "$(bool_not_true "$P_SANITIZER")" --with-address-sanitizer=no --enable-undefined-sanitizer=no ) \ - $(args_enable "$P_DEBUG" --enable-more-logging=yes --with-more-asserts=10000) \ - $(args_enable "$(bool_not_true "$P_DEBUG")" --enable-more-logging=no --with-more-asserts=0 ) \ - --enable-ld-gc=yes \ - --enable-lto="$(bool_yes "$P_LTO")" \ - --with-libaudit=yes-disabled-by-default \ - --with-modem-manager-1="$(bool_yes "$P_MODEM_MANAGER_1")" \ - $(args_enable "$P_WIFI" --enable-wifi=yes --with-wext="$(bool_yes "$P_FEDORA")") \ - $(args_enable "$(bool_not_true "$P_WIFI")" --enable-wifi=no ) \ - --with-iwd="$(bool_yes "$P_IWD")" \ - --enable-bluez5-dun="$(bool_yes "$P_BLUETOOTH")" \ - --with-nmtui="$(bool_yes "$P_NMTUI")" \ - --with-nm-cloud-setup="$(bool_yes "$P_NM_CLOUD_SETUP")" \ - --enable-vala=yes \ - --enable-introspection=yes \ - --enable-gtk-doc="$(bool_yes "$P_REGEN_DOCS")" \ - --enable-teamdctl="$(bool_yes "$P_TEAM")" \ - --enable-ovs="$(bool_yes "$P_OVS")" \ - --with-selinux=yes \ - --enable-polkit=yes \ - --enable-modify-system=yes \ - --enable-concheck=yes \ - --with-libpsl="$(bool_yes "$P_FEDORA")" \ - --with-ebpf="$(bool_yes "$P_EBPF_ENABLED")" \ - --with-session-tracking=systemd \ - --with-suspend-resume=systemd \ - --with-systemdsystemunitdir=/usr/lib/systemd/system \ - --with-system-ca-path=/etc/pki/tls/cert.pem \ - --with-dbus-sys-dir="$P_DBUS_SYS_DIR" \ - --with-tests=yes \ - --enable-more-warnings="$(bool "$P_TEST" && echo error || echo yes)" \ - --with-valgrind=no \ - --enable-ifcfg-rh=yes \ - --enable-ifupdown=no \ - $(args_enable "$P_PPP" --enable-ppp=yes --with-pppd="$D_SBINDIR/pppd" --with-pppd-plugin-dir="$D_LIBDIR/pppd/$P_PPP_VERSION") \ - $(args_enable "$(bool_not_true "$P_PPP")" --enable-ppp=no ) \ - --enable-firewalld-zone="$(bool_yes "$P_FIREWALLD_ZONE")" \ - --with-dist-version="$P_VERSION-$P_RELEASE" \ - $(args_enable "$P_CONFIG_PLUGINS_DEFAULT_IFCFG_RH" --with-config-plugins-default=ifcfg-rh) \ - --with-resolvconf=no \ - --with-netconfig=no \ - --with-config-dns-rc-manager-default="$P_DNS_RC_MANAGER_DEFAULT" \ - --with-config-logging-backend-default="$P_LOGGING_BACKEND_DEFAULT" \ - --disable-autotools-deprecation \ - ; +MESON_RECONFIGURE= +if test -d "$P_MESON_BUILDDIR" ; then + MESON_RECONFIGURE="--reconfigure" fi +$SHOW_CMD \ +env \ +CC="$P_CC" \ +CFLAGS="$P_CFLAGS" \ +meson setup\ + $MESON_RECONFIGURE \ + --buildtype=plain \ + --prefix="$D_PREFIX" \ + --libdir="$D_LIBDIR" \ + --libexecdir="$D_LIBEXECDIR" \ + --bindir="$D_BINDIR" \ + --sbindir="$D_SBINDIR" \ + --includedir="$D_INCLUDEDIR" \ + --datadir="$D_DATADIR" \ + --mandir="$D_MANDIR" \ + --infodir="$D_INFODIR" \ + --localedir="$D_DATADIR"/locale \ + --sysconfdir="$D_SYSCONFDIR" \ + --localstatedir="$D_LOCALSTATEDIR" \ + --sharedstatedir="$D_SHAREDSTATEDIR" \ + --wrap-mode=nodownload \ + --auto-features=enabled \ + -Db_ndebug=false \ + --warnlevel 2 \ + $(args_enable "$P_TEST" --werror) \ + -Dnft="${D_SBINDIR}/nft" \ + -Diptables="${D_SBINDIR}/iptables" \ + -Ddhclient="${D_SBINDIR}/dhclient" \ + -Ddhcpcanon=no \ + -Ddhcpcd=no \ + -Dconfig_dhcp_default="$P_DHCP_DEFAULT" \ + "-Dcrypto=$P_CRYPTO" \ + $(args_enable "$P_DEBUG" -Dmore_logging=true -Dmore_asserts=10000) \ + $(args_enable "$(bool_not_true "$P_DEBUG")" -Dmore_logging=false -Dmore_asserts=0 ) \ + -Dld_gc=true \ + -Db_lto="$(bool_true "$P_LTO")" \ + -Dlibaudit=yes-disabled-by-default \ + -Dmodem_manager="$(bool_true "$P_MODEM_MANAGER_1")" \ + $(args_enable "$P_WIFI" -Dwifi=true -Dwext="$(bool_true "$P_FEDORA")") \ + $(args_enable "$(bool_not_true "$P_WIFI")" -Dwifi=false ) \ + -Diwd="$(bool_true "$P_IWD")" \ + -Dbluez5_dun="$(bool_true "$P_BLUETOOTH")" \ + -Dnmtui="$(bool_true "$P_NMTUI")" \ + -Dnm_cloud_setup="$(bool_true "$P_NM_CLOUD_SETUP")" \ + -Dvapi=true \ + -Dintrospection=true \ + -Ddocs="$(bool_true "$P_REGEN_DOCS")" \ + -Dteamdctl="$(bool_true "$P_TEAM")" \ + -Dovs="$(bool_true "$P_OVS")" \ + -Dselinux=true \ + -Dpolkit=true \ + -Dconfig_auth_polkit_default=true \ + -Dmodify_system=true \ + -Dconcheck=true \ + -Dlibpsl="$(bool_true "$P_FEDORA")" \ + -Debpf="$(bool_true "$P_EBPF_ENABLED")" \ + -Dsession_tracking=systemd \ + -Dsuspend_resume=systemd \ + -Dsystemdsystemunitdir=/usr/lib/systemd/system \ + -Dsystem_ca_path=/etc/pki/tls/cert.pem \ + -Ddbus_conf_dir="$P_DBUS_SYS_DIR" \ + -Dtests=yes \ + -Dvalgrind=no \ + -Difcfg_rh=true \ + -Difupdown=false \ + $(args_enable "$P_PPP" -Dppp=true -Dpppd="$D_SBINDIR/pppd" -Dpppd_plugin_dir="$D_LIBDIR/pppd/$P_PPP_VERSION") \ + $(args_enable "$(bool_not_true "$P_PPP")" -Dppp=false ) \ + -Dfirewalld_zone="$(bool_true "$P_FIREWALLD_ZONE}")" \ + -Ddist_version="$P_VERSION-$P_RELEASE" \ + $(args_enable "$P_CONFIG_PLUGINS_DEFAULT_IFCFG_RH" -Dconfig_plugins_default=ifcfg-rh) \ + -Dresolvconf=no \ + -Dnetconfig=no \ + -Dconfig_dns_rc_manager_default="$P_DNS_RC_MANAGER_DEFAULT" \ + -Dconfig_logging_backend_default="$P_LOGGING_BACKEND_DEFAULT" \ + \ + "$P_MESON_BUILDDIR" \ + ; + if ! bool "$P_NOBUILD" ; then - if [ "$P_BUILD_TYPE" == meson ] ; then - $SHOW_CMD ninja -C "$P_MESON_BUILDDIR" - else - $SHOW_CMD make -j 10 - fi + $SHOW_CMD ninja -C "$P_MESON_BUILDDIR" fi diff --git a/contrib/scripts/nm-ci-run.sh b/contrib/scripts/nm-ci-run.sh index 162b9da188..09fdc21b03 100755 --- a/contrib/scripts/nm-ci-run.sh +++ b/contrib/scripts/nm-ci-run.sh @@ -3,7 +3,6 @@ # Arguments via environment variables: # - CI # - CC -# - BUILD_TYPE # - CFLAGS # - WITH_DOCS @@ -50,23 +49,13 @@ grep -q '^NAME=.*\(Alpine\)' /etc/os-release && IS_ALPINE=1 ############################################################################### -if [ "$BUILD_TYPE" == meson ]; then - _TRUE=true - _FALSE=false -elif [ "$BUILD_TYPE" == autotools ]; then - _TRUE=yes - _FALSE=no -else - die "invalid \$BUILD_TYPE \"$BUILD_TYPE\"" -fi - _WITH_CRYPTO="gnutls" _WITH_WERROR=1 -_WITH_LIBTEAM="$_TRUE" -_WITH_DOCS="$_TRUE" -_WITH_SYSTEMD_LOGIND="$_TRUE" +_WITH_LIBTEAM="true" +_WITH_DOCS="true" +_WITH_SYSTEMD_LOGIND="true" if [ $IS_ALPINE = 1 ]; then - _WITH_SYSTEMD_LOGIND="$_FALSE" + _WITH_SYSTEMD_LOGIND="false" fi if [ -z "${NMTST_SEED_RAND+x}" ]; then @@ -92,9 +81,9 @@ fi if [ "$WITH_DOCS" != "" ]; then if _is_true "$WITH_DOCS"; then - _WITH_DOCS="$_TRUE" + _WITH_DOCS="true" else - _WITH_DOCS="$_FALSE" + _WITH_DOCS="false" fi fi @@ -149,149 +138,72 @@ _print_test_logs() { fi } -run_autotools() { - NOCONFIGURE=1 ./autogen.sh - mkdir ./build - if [ "$_WITH_WERROR" == 1 ]; then - _WITH_WERROR_VAL="error" - else - _WITH_WERROR_VAL="yes" - fi - DISABLE_DEPENDENCY_TRACKING= - if [ $IS_ALPINE = 1 ]; then - DISABLE_DEPENDENCY_TRACKING='--disable-dependency-tracking' - fi - pushd ./build - ../configure \ - --prefix="$PWD/INST" \ - $DISABLE_DEPENDENCY_TRACKING \ - \ - --enable-introspection=$_WITH_DOCS \ - --enable-gtk-doc=$_WITH_DOCS \ - --with-systemd-logind=$_WITH_SYSTEMD_LOGIND \ - --enable-more-warnings="$_WITH_WERROR_VAL" \ - --enable-tests=yes \ - --with-crypto=$_WITH_CRYPTO \ - \ - --with-ebpf=no \ - \ - --with-iwd=yes \ - --with-ofono=yes \ - --enable-teamdctl=$_WITH_LIBTEAM \ - \ - --with-dhcpcanon=yes \ - --with-dhcpcd=yes \ - --with-dhclient=yes \ - \ - --with-netconfig=/bin/nowhere/netconfig \ - --with-resolvconf=/bin/nowhere/resolvconf \ - \ - --enable-ifcfg-rh=yes \ - --enable-ifupdown=yes \ - --disable-autotools-deprecation \ - \ - #end - - if [ "$CONFIGURE_ONLY" != 1 ]; then - make -j 6 - make install - - export NM_TEST_CLIENT_CHECK_L10N=1 - - if ! make check -j 6 -k ; then - _print_test_logs "first-test" - echo ">>>> RUN SECOND TEST (start)" - NMTST_DEBUG="debug,TRACE,no-expect-message" make check -k || : - echo ">>>> RUN SECOND TEST (done)" - _print_test_logs "second-test" - die "autotools test failed" - fi - - if _with_valgrind; then - if ! NMTST_USE_VALGRIND=1 make check -j 3 -k ; then - _print_test_logs "(valgrind test)" - die "autotools+valgrind test failed" - fi - fi - fi - popd -} - ############################################################################### -run_meson() { - if [ "$_WITH_WERROR" == 1 ]; then - _WITH_WERROR_VAL="--werror" - else - _WITH_WERROR_VAL="" +if [ "$_WITH_WERROR" == 1 ]; then + _WITH_WERROR_VAL="--werror" +else + _WITH_WERROR_VAL="" +fi + +meson setup build \ + \ + -Dprefix="$PWD/INST" \ + \ + --warnlevel 2 \ + $_WITH_WERROR_VAL \ + \ + -D ld_gc=false \ + -D session_tracking=no \ + -D systemdsystemunitdir=no \ + -D systemd_journal=false \ + -D selinux=false \ + -D libaudit=no \ + -D libpsl=false \ + -D vapi=false \ + -D introspection=$_WITH_DOCS \ + -D qt=false \ + -D crypto=$_WITH_CRYPTO \ + -D docs=$_WITH_DOCS \ + \ + -D ebpf=false \ + \ + -D iwd=true \ + -D ofono=true \ + -D teamdctl=$_WITH_LIBTEAM \ + \ + -D dhclient=/bin/nowhere/dhclient \ + -D dhcpcanon=/bin/nowhere/dhcpcanon \ + -D dhcpcd=/bin/nowhere/dhcpd \ + \ + -D netconfig=/bin/nowhere/netconfig \ + -D resolvconf=/bin/nowhere/resolvconf \ + \ + -D ifcfg_rh=false \ + -D ifupdown=true \ + \ + #end + +export NM_TEST_CLIENT_CHECK_L10N=1 + +if [ "$CONFIGURE_ONLY" != 1 ]; then + ninja -C build -v + ninja -C build install + + if ! meson test -C build -v --print-errorlogs ; then + echo ">>>> RUN SECOND TEST (start)" + NMTST_DEBUG="debug,TRACE,no-expect-message" \ + meson test -C build -v --print-errorlogs || : + echo ">>>> RUN SECOND TEST (done)" + die "meson test failed" fi - meson setup build \ - \ - -Dprefix="$PWD/INST" \ - \ - --warnlevel 2 \ - $_WITH_WERROR_VAL \ - \ - -D ld_gc=false \ - -D session_tracking=no \ - -D systemdsystemunitdir=no \ - -D systemd_journal=false \ - -D selinux=false \ - -D libaudit=no \ - -D libpsl=false \ - -D vapi=false \ - -D introspection=$_WITH_DOCS \ - -D qt=false \ - -D crypto=$_WITH_CRYPTO \ - -D docs=$_WITH_DOCS \ - \ - -D ebpf=false \ - \ - -D iwd=true \ - -D ofono=true \ - -D teamdctl=$_WITH_LIBTEAM \ - \ - -D dhclient=/bin/nowhere/dhclient \ - -D dhcpcanon=/bin/nowhere/dhcpcanon \ - -D dhcpcd=/bin/nowhere/dhcpd \ - \ - -D netconfig=/bin/nowhere/netconfig \ - -D resolvconf=/bin/nowhere/resolvconf \ - \ - -D ifcfg_rh=false \ - -D ifupdown=true \ - \ - #end - export NM_TEST_CLIENT_CHECK_L10N=1 - - if [ "$CONFIGURE_ONLY" != 1 ]; then - ninja -C build -v - ninja -C build install - - if ! meson test -C build -v --print-errorlogs ; then - echo ">>>> RUN SECOND TEST (start)" - NMTST_DEBUG="debug,TRACE,no-expect-message" \ - meson test -C build -v --print-errorlogs || : - echo ">>>> RUN SECOND TEST (done)" - die "meson test failed" - fi - - if _with_valgrind; then - if ! NMTST_USE_VALGRIND=1 meson test -C build -v --print-errorlogs ; then - _print_test_logs "(valgrind test)" - die "meson+valgrind test failed" - fi + if _with_valgrind; then + if ! NMTST_USE_VALGRIND=1 meson test -C build -v --print-errorlogs ; then + _print_test_logs "(valgrind test)" + die "meson+valgrind test failed" fi fi -} - -############################################################################### - -if [ "$BUILD_TYPE" == autotools ]; then - run_autotools -elif [ "$BUILD_TYPE" == meson ]; then - run_meson fi if [ "$USE_CCACHE" = 1 ]; then diff --git a/tools/create-exports-NetworkManager.sh b/tools/create-exports-NetworkManager.sh index 855d837520..38bcdaf68c 100755 --- a/tools/create-exports-NetworkManager.sh +++ b/tools/create-exports-NetworkManager.sh @@ -13,24 +13,6 @@ die() { # plugins. Note that this depends on how NetworkManager and # the plugins are build. For example, compiling without # --with-more-asserts will yield less symbols. -# -# _build re-builds NetworkManager with relevant compile time -# options to yield the most symbols. -_build() { - git clean -fdx - ./autogen.sh --enable-ld-gc \ - --enable-ifcfg-rh \ - --enable-ifupdown \ - --enable-teamdctl \ - --enable-wifi \ - --with-modem-manager-1 \ - --with-ofono \ - --with-more-asserts \ - --with-more-logging \ - --disable-autotools-deprecation - make -j20 -} - _sort() { LANG=C sort -u } @@ -75,16 +57,6 @@ pretty() { sed 's/.*/\t&;/' } -do_build() { - do_update - make -} - -do_rebuild() { - _build - do_build -} - do_update() { do_generate > ./src/core/NetworkManager.ver } @@ -117,14 +89,6 @@ EOF test -f ./src/core/${libs}libNetworkManager.a || die "must be called from NetworkManager top build dir after building the tree" case "$1" in - rebuild) - [ -n "$from_meson" ] && die "can't do a build when called from meson" - do_rebuild - ;; - build) - [ -n "$from_meson" ] && die "can't do a build when called from meson" - do_build - ;; --called-from-build) if test -z "${NM_BUILD_NO_CREATE_EXPORTS+x}"; then do_update diff --git a/tools/nm-guest-data/bin-nm-deploy.sh.in b/tools/nm-guest-data/bin-nm-deploy.sh.in index 9b5385b1eb..77b51d0ca6 100644 --- a/tools/nm-guest-data/bin-nm-deploy.sh.in +++ b/tools/nm-guest-data/bin-nm-deploy.sh.in @@ -4,11 +4,6 @@ set -ex cd /NetworkManager -if [ -f ./config.log ] ; then - make -j 5 install -else - meson install -C build -fi - +meson install -C build systemctl daemon-reload systemctl restart NetworkManager.service diff --git a/tools/nm-guest-data/etc-bashrc.my.in b/tools/nm-guest-data/etc-bashrc.my.in index 88f2f9aa2c..f6936c4db1 100644 --- a/tools/nm-guest-data/etc-bashrc.my.in +++ b/tools/nm-guest-data/etc-bashrc.my.in @@ -1,4 +1,3 @@ -alias m="make -j 8" alias n="ninja -C build" alias l='ls -l --color=auto' diff --git a/tools/nm-in-container b/tools/nm-in-container index c6884cd584..755d8d502c 100755 --- a/tools/nm-in-container +++ b/tools/nm-in-container @@ -229,7 +229,6 @@ RUN dnf install -y \\ libtool \\ libubsan \\ libuuid-devel \\ - make \\ meson \\ mlocate \\ mobile-broadband-provider-info-devel \\ diff --git a/tools/run-nm-test.sh b/tools/run-nm-test.sh index 264fc48d01..9f0a65319a 100755 --- a/tools/run-nm-test.sh +++ b/tools/run-nm-test.sh @@ -35,9 +35,7 @@ usage() { echo " the automatism to always launch a D-Bus session" echo " --no-launch-dbus|-D: prevent launching a D-Bus session" echo " --no-libtool: when running with valgrind, the script tries automatically to" - echo " use libtool as necessary. This disables libtool usage" - echo " --make-first|-m: before running the test, make it (only works with autotools build)" - echo " --no-make-first|-M: disable --make-first option" + echo " use libtool as necessary. This disables libtool usage" echo " --valgrind|-v: run under valgrind" echo " --no-valgrind|-V: disable running under valgrind (overrides NMTST_USE_VALGRIND=1)" echo " -d: set NMTST_DEBUG=d" @@ -126,8 +124,6 @@ if [ "$CALLED_FROM_MAKE" == 1 ]; then NMTST_LAUNCH_DBUS=0 fi TEST="$1"; shift - NMTST_MAKE_FIRST=0 - TEST_ARGV=("$@") else if [[ -z "${NMTST_USE_VALGRIND+x}" ]]; then @@ -162,14 +158,6 @@ else NMTST_LIBTOOL=() shift ;; - --make-first|-m) - NMTST_MAKE_FIRST=1 - shift - ;; - --no-make-first|-M) - NMTST_MAKE_FIRST=0 - shift - ;; "--valgrind"|-v) NMTST_USE_VALGRIND=1 shift; @@ -235,14 +223,6 @@ fi [ -n "$TEST" ] || die "Missing test name. Specify it on the command line." -if _is_true "$NMTST_MAKE_FIRST" 0; then - git_dir="$(readlink -f "$(git rev-parse --show-toplevel)")" - rel_path="$(realpath --relative-to="$git_dir" -m "$TEST" 2>/dev/null)" || die "cannot resolve test-name \"$TEST\". Did you call the script properly?" - cd "$git_dir" - make -j5 "$rel_path" || die "make of $TEST failed ($git_dir / $rel_path)" - cd - 1>/dev/null -fi - [ -x "$TEST" ] || die "Test \"$TEST\" does not exist" TEST_PATH="$(readlink -f "$(dirname "$TEST")")" TEST_NAME="${TEST##*/}" diff --git a/tools/test-build.sh b/tools/test-build.sh deleted file mode 100755 index 04d33b6ae4..0000000000 --- a/tools/test-build.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -set -e - -die() { - echo "$@" - exit 1 -} - -if [[ "x$(LANG=C git clean -ndx)" != x ]]; then - die "The working directory is not clean. Refuse to run. Try \`git clean -dx -n\`" -fi -if [[ "x$(git status --porcelain)" != x ]]; then - die "The working directory has local changes. Refuse to run. Try \`git reset --hard\`" -fi - -build_out_of_tree() { - local TARGET="$1" - local C="$2" - local M="$3" - ( - git clean -fdx || return 1 - NOCONFIGURE=x ./autogen.sh || return 1 - mkdir -p x/y || return 1 - cd x/y || return 1 - ../../configure $C $NMTST_CONFIGURE || return 1 - make $TARGET $M $NMTST_MAKE || return 1 - ) -} - -TARGETS=("$@") -if [ "${#TARGETS}" -lt 1 ]; then - TARGETS=( - dispatcher/nm-dispatcher - src/core/NetworkManager - src/core/dhcp/nm-dhcp-helper - src/core/ndisc/tests/test-ndisc-linux - src/core/platform/tests/monitor - src/nm-online/nm-online - src/nmcli/nmcli - src/nmtui/nmtui - $(git grep -h '\.l\?a\>' Makefile.am | sed 's/[a-zA-Z.0-9_-/]\+/\n\0\n/g' | sort -u | grep '\.l\?a$') - ) -fi - -set -x - -cd "$(dirname "$(readlink -f "$0")")/.." - -IDX=($(seq 0 $((${#TARGETS[@]} - 1)))) -IDX=($(printf '%s\n' "${IDX[@]}" | sort -R)) -for idx in "${IDX[@]}"; do - TARGET="${TARGETS[$idx]}" - echo "### $idx: TARGET=$TARGET" - build_out_of_tree "$TARGET" "--enable-gtk-doc" "-j 5" -done From 28ada2f0b63ed31c8b3df1facf8d9503daa26ada Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Thu, 22 Aug 2024 13:14:14 +0200 Subject: [PATCH 5/9] build/specfile: remove autotools configuration --- contrib/fedora/rpm/NetworkManager.spec | 170 +------------------------ 1 file changed, 1 insertion(+), 169 deletions(-) diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec index 3c44d7f9e7..369d5015fb 100644 --- a/contrib/fedora/rpm/NetworkManager.spec +++ b/contrib/fedora/rpm/NetworkManager.spec @@ -49,10 +49,8 @@ ############################################################################### %if 0%{?fedora} > 40 || 0%{?rhel} >= 10 -%bcond_without meson %bcond_with dhclient %else -%bcond_with meson %bcond_without dhclient %endif %bcond_without adsl @@ -256,12 +254,7 @@ BuildRequires: make BuildRequires: gcc BuildRequires: libtool BuildRequires: pkgconfig -%if %{with meson} BuildRequires: meson -%else -BuildRequires: automake -BuildRequires: autoconf -%endif BuildRequires: gettext-devel >= 0.19.8 BuildRequires: dbus-devel >= %{dbus_version} @@ -594,7 +587,6 @@ Preferably use nmcli instead. %build -%if %{with meson} %meson \ -Db_ndebug=false \ --warnlevel 2 \ @@ -727,158 +719,8 @@ Preferably use nmcli instead. %meson_build -%else -# autotools -%if %{with regen_docs} -gtkdocize -%endif -autoreconf --install --force -%configure \ - --with-runstatedir=%{_rundir} \ - --enable-silent-rules=no \ - --enable-static=no \ - --with-nft=%{_sbindir}/nft \ - --with-iptables=%{_sbindir}/iptables \ -%if %{with dhclient} - --with-dhclient=%{_sbindir}/dhclient \ -%else - --with-dhclient=no \ -%endif - --with-dhcpcd=no \ - --with-dhcpcanon=no \ - --with-crypto=gnutls \ -%if %{with sanitizer} - --with-address-sanitizer=exec \ - --enable-undefined-sanitizer=yes \ -%else - --with-address-sanitizer=no \ - --enable-undefined-sanitizer=no \ -%endif -%if %{with debug} - --enable-more-logging=yes \ - --with-more-asserts=10000 \ -%else - --enable-more-logging=no \ - --with-more-asserts=0 \ -%endif - --enable-ld-gc=yes \ -%if %{with lto} - --enable-lto=yes \ -%else - --enable-lto=no \ -%endif - --with-libaudit=yes-disabled-by-default \ -%if 0%{?with_modem_manager_1} - --with-modem-manager-1=yes \ -%else - --with-modem-manager-1=no \ -%endif -%if %{with wifi} - --enable-wifi=yes \ -%if 0%{?fedora} - --with-wext=yes \ -%else - --with-wext=no \ -%endif -%else - --enable-wifi=no \ -%endif -%if %{with iwd} - --with-iwd=yes \ -%else - --with-iwd=no \ -%endif -%if %{with bluetooth} - --enable-bluez5-dun=yes \ -%else - --enable-bluez5-dun=no \ -%endif -%if %{with nmtui} - --with-nmtui=yes \ -%else - --with-nmtui=no \ -%endif -%if %{with nm_cloud_setup} - --with-nm-cloud-setup=yes \ -%else - --with-nm-cloud-setup=no \ -%endif - --enable-vala=yes \ - --enable-introspection=yes \ -%if %{with regen_docs} - --enable-gtk-doc=yes \ -%else - --enable-gtk-doc=no \ -%endif -%if %{with team} - --enable-teamdctl=yes \ -%else - --enable-teamdctl=no \ -%endif -%if %{with ovs} - --enable-ovs=yes \ -%else - --enable-ovs=no \ -%endif - --with-selinux=yes \ - --enable-polkit=yes \ - --enable-modify-system=yes \ - --enable-concheck=yes \ -%if 0%{?fedora} - --with-libpsl=yes \ -%else - --with-libpsl=no \ -%endif - --with-ebpf=%{ebpf_enabled} \ - --with-session-tracking=systemd \ - --with-suspend-resume=systemd \ - --with-systemdsystemunitdir=%{_unitdir} \ - --with-system-ca-path=/etc/pki/tls/cert.pem \ - --with-dbus-sys-dir=%{dbus_sys_dir} \ - --with-tests=yes \ -%if %{with test} - --enable-more-warnings=error \ -%else - --enable-more-warnings=yes \ -%endif - --with-valgrind=no \ -%if %{with ifcfg_rh} - --enable-ifcfg-rh=yes \ -%else - --enable-ifcfg-rh=no \ -%endif - --enable-ifupdown=no \ -%if %{with ppp} - --enable-ppp=yes \ - --with-pppd="%{_sbindir}/pppd" \ - --with-pppd-plugin-dir="%{_libdir}/pppd/%{ppp_version}" \ -%else - --enable-ppp=no \ -%endif - --enable-firewalld-zone=yes \ - --with-dist-version=%{version}-%{release} \ -%if %{with default_ifcfg_rh} - --with-config-plugins-default=ifcfg-rh \ -%endif -%if %{with ifcfg_migrate} - --with-config-migrate-ifcfg-rh-default=yes \ -%endif - --with-resolvconf=no \ - --with-netconfig=no \ - --with-config-dns-rc-manager-default=%{dns_rc_manager_default} \ - --with-config-logging-backend-default=journal \ - --disable-autotools-deprecation - -%make_build - -%endif - %install -%if %{with meson} %meson_install -%else -%make_install -%endif cp %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/ @@ -918,7 +760,7 @@ rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la rm -f %{buildroot}%{nmplugindir}/*.la # Ensure the documentation timestamps are constant to avoid multilib conflicts -find %{buildroot}%{_datadir}/gtk-doc -exec touch --reference configure.ac '{}' \+ +find %{buildroot}%{_datadir}/gtk-doc -exec touch --reference meson.build '{}' \+ %if 0%{?__debug_package} && ! 0%{?flatpak} mkdir -p %{buildroot}%{_prefix}/src/debug/NetworkManager-%{real_version} @@ -932,21 +774,11 @@ touch %{buildroot}%{_sbindir}/ifdown %check -%if %{with meson} %if %{with test} %meson_test %else %ninja_test -C %{_vpath_builddir} || : %endif -%else -# autotools -%if %{with test} -make -k %{?_smp_mflags} check -%else -make -k %{?_smp_mflags} check || : -%endif -%endif - %pre if [ -f "%{_unitdir}/network-online.target.wants/NetworkManager-wait-online.service" ] ; then From c6de9b8f1b747153ae16ef4b1c9a202249b4b010 Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Thu, 22 Aug 2024 13:02:43 +0200 Subject: [PATCH 6/9] build: remove autotools files --- Makefile.am | 5949 ------------------------------------- Makefile.examples | 221 -- Makefile.glib | 168 -- Makefile.vapigen | 62 - autogen.sh | 31 - config-extra.h.mk | 27 - configure.ac | 1503 ---------- docs/api/Makefile.am | 140 - docs/libnm/Makefile.am | 117 - m4/attributes.m4 | 290 -- m4/ax_lib_readline.m4 | 158 - m4/ax_pthread.m4 | 522 ---- m4/compiler_options.m4 | 227 -- m4/git-sha-record.m4 | 15 - m4/gnome-code-coverage.m4 | 142 - m4/introspection.m4 | 92 - m4/vapigen.m4 | 87 - 17 files changed, 9751 deletions(-) delete mode 100644 Makefile.am delete mode 100644 Makefile.examples delete mode 100644 Makefile.glib delete mode 100644 Makefile.vapigen delete mode 100755 autogen.sh delete mode 100644 config-extra.h.mk delete mode 100644 configure.ac delete mode 100644 docs/api/Makefile.am delete mode 100644 docs/libnm/Makefile.am delete mode 100644 m4/attributes.m4 delete mode 100644 m4/ax_lib_readline.m4 delete mode 100644 m4/ax_pthread.m4 delete mode 100644 m4/compiler_options.m4 delete mode 100644 m4/git-sha-record.m4 delete mode 100644 m4/gnome-code-coverage.m4 delete mode 100644 m4/introspection.m4 delete mode 100644 m4/vapigen.m4 diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index edf77e8542..0000000000 --- a/Makefile.am +++ /dev/null @@ -1,5949 +0,0 @@ -include $(GLIB_MAKEFILE) --include $(INTROSPECTION_MAKEFILE) -include Makefile.vapigen - -@GNOME_CODE_COVERAGE_RULES@ - -@NM_LOG_COMPILER@ - -############################################################################### - -AUTOMAKE_OPTIONS = subdir-objects - -noinst_LTLIBRARIES = -check_LTLIBRARIES = -noinst_PROGRAMS = -noinst_LIBRARIES = -check_PROGRAMS = -noinst_DATA = -sbin_PROGRAMS = -bin_PROGRAMS = -libexec_PROGRAMS = -dist_libexec_SCRIPTS = -lib_LTLIBRARIES = -plugin_LTLIBRARIES = -core_plugins = -service_DATA = -man_MANS = -examples_DATA = -CLEANFILES = -DISTCLEANFILES = -EXTRA_DIST = -EXTRA_LTLIBRARIES = -dist_hook = -dist_dependencies = -dist_configure_check = -install_data_hook = -install_exec_hook = -uninstall_hook = -TESTS = -BUILT_SOURCES = -GLIB_GENERATED = -man_pages = -man_pages_autogen = -check_programs = -check_programs_norun = -check_ltlibraries = -check_local = -VAPIGEN_VAPIS = -dbusservice_DATA = -dbusactivation_DATA = -systemdsystemunit_DATA = - -INTROSPECTION_GIRS = -INTROSPECTION_SCANNER_ARGS = -INTROSPECTION_COMPILER_ARGS = -# Pass SANITIZER_ENV where a command that uses built libraries is -# executed, to suppress possible errors -INTROSPECTION_SCANNER_ENV = $(SANITIZER_ENV) LDFLAGS="$(SANITIZER_LIB_LDFLAGS)" - -libnmincludedir = $(includedir)/libnm -libnminclude_HEADERS = -nodist_libnminclude_HEADERS = - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = - -pppd_plugindir = $(PPPD_PLUGIN_DIR) -pppd_plugin_LTLIBRARIES = - -vapidir = $(datadir)/vala/vapi -vapi_DATA = - -examplesdir = $(docdir)/examples - -rundir=$(runstatedir)/NetworkManager -statedir=$(localstatedir)/lib/NetworkManager - -plugindir=$(pkglibdir)/$(NM_DIST_VERSION) - -dbusactivationdir = $(datadir)/dbus-1/system-services - -servicedir = $(datadir)/dbus-1/system-services - -completiondir = $(datadir)/bash-completion/completions - -nmlocaledir = $(datadir)/locale - -INTROSPECTION_EXTRA_CFLAGS = -Wno-incompatible-pointer-types-discards-qualifiers - -GLIB_MKENUMS_H_FLAGS = --identifier-prefix NM -GLIB_MKENUMS_C_FLAGS = --identifier-prefix NM - -SUBDIRS = \ - . \ - po - -if HAVE_DOCS - -SUBDIRS += \ - docs/libnm \ - docs/api - -endif - -dflt_cppflags = -std=gnu11 - -############################################################################### - -include config-extra.h.mk - -DISTCLEANFILES += config-extra.h - -$(src_libnm_core_public_mkenums_c): config-extra.h -$(src_libnm_core_public_mkenums_h): config-extra.h -src/core/dhcp/.dirstamp: config-extra.h -src/libnm-base/.dirstamp: config-extra.h -src/libnm-client-public/.dirstamp: config-extra.h -src/libnm-client-public/.dirstamp: config-extra.h -src/libnm-core-impl/.dirstamp: config-extra.h -src/libnm-core-impl/.dirstamp: config-extra.h -src/libnm-crypto/.dirstamp: config-extra.h -src/libnm-glib-aux/.dirstamp: config-extra.h -src/libnm-glib-aux/tests/.dirstamp: config-extra.h -src/libnm-log-core/.dirstamp: config-extra.h -src/libnm-log-null/.dirstamp: config-extra.h -src/libnm-platform/.dirstamp: config-extra.h -src/libnm-platform/tests/.dirstamp: config-extra.h -src/libnm-platform/wifi/.dirstamp: config-extra.h -src/libnm-platform/wpan/.dirstamp: config-extra.h -src/libnm-std-aux/.dirstamp: config-extra.h -src/libnm-systemd-shared/.dirstamp: config-extra.h -src/libnm-systemd-shared/src/basic/.dirstamp: config-extra.h -src/libnm-systemd-shared/src/fundamental/.dirstamp: config-extra.h -src/libnm-systemd-shared/src/shared/.dirstamp: config-extra.h -src/libnm-udev-aux/.dirstamp: config-extra.h - -############################################################################### - -set_sanitizer_env = \ - [ -n "$(SANITIZER_ENV)" ] && export $(SANITIZER_ENV) ; \ - if echo $(SANITIZER_LIB_CFLAGS) $(SANITIZER_EXEC_CFLAGS) | grep -e -fsanitize=address > /dev/null; then \ - [ -n "$(1)" ] && export LD_PRELOAD="$${LD_PRELOAD}:$$(ldd $(1) | grep libasan\.so\.. -o | head -n 1)"; \ - [ -n "$(2)" ] && export LD_PRELOAD="$${LD_PRELOAD}:$$(ldd $(2) | grep libasan\.so\.. -o | head -n 1)"; \ - fi - -check_so_symbols = \ - $(call set_sanitizer_env,$(1),$(builddir)/src/core/NetworkManager); \ - LD_BIND_NOW=1 LD_PRELOAD=$${LD_PRELOAD}:$(1) $(builddir)/src/core/NetworkManager --version >/dev/null - -############################################################################### - -DISTCHECK_CONFIGURE_FLAGS = \ - --enable-tests=yes \ - --with-valgrind=no \ - --enable-gtk-doc \ - --enable-more-warnings=error \ - --with-udev-dir=$$dc_install_base/lib/udev \ - --with-wext=no \ - --enable-ifcfg-rh \ - --with-dhclient=yes \ - --enable-ifupdown \ - --disable-dependency-tracking \ - --disable-autotools-deprecation \ - $(NULL) - -dist-configure-check: - @echo "*** 'make dist' requires '--enable-gtk-doc --enable-introspection'. ***" - @false -if !BUILD_DOCS -dist_configure_check += dist-configure-check -endif - -# Gettext's Makefile has a race with parallel builds during dist. -# Hack around that. -# See also: -# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1094#note_1435313 -# https://lists.gnu.org/archive/html/bug-gettext/2022-06/msg00022.html -# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1405 -po/.Makefile.patched: - sed -i \ - -e 's#^dist2: \$$(srcdir)/stamp-po \$$(DISTFILES)#dist2: \$$(srcdir)/stamp-po\n\t\$$(MAKE) \$$(DISTFILES)#' \ - -e 's#^dist2: stamp-po \$$(DISTFILES)#dist2: stamp-po\n\t\$$(MAKE) \$$(DISTFILES)#' \ - "$(builddir)/po/Makefile" && \ - touch "$(builddir)/po/.Makefile.patched" - -DISTCLEANFILES += po/.Makefile.patched - -dist: po/.Makefile.patched - -dist: $(dist_configure_check) $(dist_dependencies) - -############################################################################### - -install-data-hook-dirs: - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/conf.d - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/system-connections - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/dnsmasq.d - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/dnsmasq-shared.d - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/conf.d - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/VPN - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/system-connections - $(mkinstalldirs) -m 0700 $(DESTDIR)$(nmstatedir) - $(mkinstalldirs) -m 0755 $(DESTDIR)$(plugindir) - -install_data_hook += install-data-hook-dirs - -############################################################################### - -data_edit = sed \ - -e 's|@NM_VERSION[@]|$(NM_VERSION)|g' \ - -e 's|@bindir[@]|$(bindir)|g' \ - -e 's|@sbindir[@]|$(sbindir)|g' \ - -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ - -e 's|@nmrundir[@]|$(nmrundir)|g' \ - -e 's|@nmstatedir[@]|$(nmstatedir)|g' \ - -e 's|@localstatedir[@]|$(localstatedir)|g' \ - -e 's|@libexecdir[@]|$(libexecdir)|g' \ - -e 's|@DISTRO_NETWORK_SERVICE[@]|$(DISTRO_NETWORK_SERVICE)|g' \ - -e 's|@NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT_TEXT[@]|$(NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT_TEXT)|g' \ - -e 's|@NM_CONFIG_DEFAULT_LOGGING_BACKEND_TEXT[@]|$(NM_CONFIG_DEFAULT_LOGGING_BACKEND_TEXT)|g' \ - -e 's|@NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT[@]|$(NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT)|g' \ - -e 's|@NM_CONFIG_DEFAULT_MAIN_RC_MANAGER[@]|$(NM_CONFIG_DEFAULT_MAIN_RC_MANAGER)|g' \ - -e 's|@NM_CONFIG_DEFAULT_MAIN_DHCP[@]|$(NM_CONFIG_DEFAULT_MAIN_DHCP)|g' \ - -e 's|@NM_CONFIG_DEFAULT_MAIN_MIGRATE_IFCFG_RH_TEXT[@]|$(NM_CONFIG_DEFAULT_MAIN_MIGRATE_IFCFG_RH_TEXT)|g' \ - -e 's|@NM_CONFIG_DEFAULT_WIFI_BACKEND_TEXT[@]|$(NM_CONFIG_DEFAULT_WIFI_BACKEND_TEXT)|g' - -############################################################################### - -polkit_policydir = $(datadir)/polkit-1/actions - -dist_polkit_policy_in_in_files = \ - data/org.freedesktop.NetworkManager.policy.in.in - -dist_polkit_policy_in_files = $(dist_polkit_policy_in_in_files:.policy.in.in=.policy.in) - -polkit_policy_DATA = $(dist_polkit_policy_in_files:.policy.in=.policy) - -$(polkit_policy_DATA): $(dist_polkit_policy_in_files) - $(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ - -DISTCLEANFILES += $(polkit_policy_DATA) - -############################################################################### - -EXTRA_DIST += \ - src/c-stdaux/src/c-stdaux-generic.h \ - src/c-stdaux/src/c-stdaux-gnuc.h \ - src/c-stdaux/src/c-stdaux-unix.h \ - src/c-stdaux/src/c-stdaux.h \ - $(NULL) - -############################################################################### - -noinst_LTLIBRARIES += src/c-siphash/libc-siphash.la - -src_c_siphash_libc_siphash_la_CFLAGS = \ - $(AM_CFLAGS) \ - -std=c11 \ - -I$(srcdir)/src/c-stdaux/src \ - $(NULL) - -src_c_siphash_libc_siphash_la_CPPFLAGS = \ - $(CODE_COVERAGE_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_c_siphash_libc_siphash_la_LDFLAGS = \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_c_siphash_libc_siphash_la_SOURCES = \ - src/c-siphash/src/c-siphash.c \ - src/c-siphash/src/c-siphash.h \ - $(NULL) - -############################################################################### - -noinst_LTLIBRARIES += src/c-rbtree/libc-rbtree.la - -src_c_rbtree_libc_rbtree_la_CFLAGS = \ - $(AM_CFLAGS) \ - -std=c11 \ - -I$(srcdir)/src/c-stdaux/src \ - $(NULL) - -src_c_rbtree_libc_rbtree_la_CPPFLAGS = \ - $(CODE_COVERAGE_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_c_rbtree_libc_rbtree_la_LDFLAGS = \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_c_rbtree_libc_rbtree_la_SOURCES = \ - src/c-rbtree/src/c-rbtree.c \ - src/c-rbtree/src/c-rbtree.h \ - src/c-rbtree/src/c-rbtree-private.h \ - $(NULL) - -############################################################################### - -noinst_LTLIBRARIES += src/n-acd/libn-acd.la - -src_n_acd_libn_acd_la_CFLAGS = \ - $(AM_CFLAGS) \ - -std=c11 \ - -Wno-pointer-arith \ - -Wno-vla \ - $(NULL) - -src_n_acd_libn_acd_la_CPPFLAGS = \ - -D_GNU_SOURCE \ - -DSO_ATTACH_BPF=50 \ - $(CODE_COVERAGE_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - -I$(srcdir)/src/c-stdaux/src \ - -I$(srcdir)/src/c-list/src \ - -I$(srcdir)/src/c-siphash/src \ - -I$(srcdir)/src/c-rbtree/src \ - $(NULL) - -src_n_acd_libn_acd_la_LDFLAGS = \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_n_acd_libn_acd_la_SOURCES = \ - src/n-acd/src/n-acd.c \ - src/n-acd/src/n-acd.h \ - src/n-acd/src/n-acd-private.h \ - src/n-acd/src/n-acd-probe.c \ - src/n-acd/src/util/timer.c \ - src/n-acd/src/util/timer.h \ - $(NULL) - -if WITH_EBPF -src_n_acd_libn_acd_la_SOURCES += src/n-acd/src/n-acd-bpf.c -else -src_n_acd_libn_acd_la_SOURCES += src/n-acd/src/n-acd-bpf-fallback.c -endif - -############################################################################### - -noinst_LTLIBRARIES += src/n-dhcp4/libn-dhcp4.la - -src_n_dhcp4_libn_dhcp4_la_CFLAGS = \ - $(AM_CFLAGS) \ - -std=c11 \ - -Wno-error=declaration-after-statement \ - -Wno-pointer-arith \ - $(NULL) - -src_n_dhcp4_libn_dhcp4_la_CPPFLAGS = \ - -D_GNU_SOURCE \ - $(CODE_COVERAGE_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - -I$(srcdir)/src/c-stdaux/src \ - -I$(srcdir)/src/c-list/src \ - -I$(srcdir)/src/c-siphash/src \ - $(NULL) - -src_n_dhcp4_libn_dhcp4_la_LDFLAGS = \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_n_dhcp4_libn_dhcp4_la_SOURCES = \ - src/n-dhcp4/src/n-dhcp4-c-connection.c \ - src/n-dhcp4/src/n-dhcp4-c-lease.c \ - src/n-dhcp4/src/n-dhcp4-c-probe.c \ - src/n-dhcp4/src/n-dhcp4-client.c \ - src/n-dhcp4/src/n-dhcp4-incoming.c \ - src/n-dhcp4/src/n-dhcp4-outgoing.c \ - src/n-dhcp4/src/n-dhcp4-private.h \ - src/n-dhcp4/src/n-dhcp4-socket.c \ - src/n-dhcp4/src/n-dhcp4.h \ - src/n-dhcp4/src/util/packet.c \ - src/n-dhcp4/src/util/packet.h \ - src/n-dhcp4/src/util/socket.c \ - src/n-dhcp4/src/util/socket.h \ - $(NULL) - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-std-aux/libnm-std-aux.la - -src_libnm_std_aux_libnm_std_aux_la_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_libnm_std_aux_libnm_std_aux_la_SOURCES = \ - src/c-list/src/c-list.h \ - src/libnm-std-aux/c-list-util.c \ - src/libnm-std-aux/c-list-util.h \ - src/libnm-std-aux/nm-dbus-compat.h \ - src/libnm-std-aux/nm-default-std.h \ - src/libnm-std-aux/nm-linux-compat.h \ - src/libnm-std-aux/nm-networkmanager-compilation.h \ - src/libnm-std-aux/nm-std-aux.h \ - src/libnm-std-aux/nm-std-utils.c \ - src/libnm-std-aux/nm-std-utils.h \ - src/libnm-std-aux/unaligned-fundamental.h \ - src/libnm-std-aux/unaligned.h \ - $(NULL) - -src_libnm_std_aux_libnm_std_aux_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -EXTRA_DIST += src/libnm-std-aux/meson.build - -############################################################################### - -src_libnm_glib_aux_cppflags = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(NULL) - -noinst_LTLIBRARIES += src/libnm-glib-aux/libnm-glib-aux.la - -src_libnm_glib_aux_libnm_glib_aux_la_CPPFLAGS = \ - $(src_libnm_glib_aux_cppflags) \ - $(NULL) - -src_libnm_glib_aux_libnm_glib_aux_la_SOURCES = \ - src/libnm-glib-aux/nm-c-list.h \ - src/libnm-glib-aux/nm-dbus-aux.c \ - src/libnm-glib-aux/nm-dbus-aux.h \ - src/libnm-glib-aux/nm-dedup-multi.c \ - src/libnm-glib-aux/nm-dedup-multi.h \ - src/libnm-glib-aux/nm-default-glib-i18n-lib.h \ - src/libnm-glib-aux/nm-default-glib-i18n-prog.h \ - src/libnm-glib-aux/nm-default-glib.h \ - src/libnm-glib-aux/nm-enum-utils.c \ - src/libnm-glib-aux/nm-enum-utils.h \ - src/libnm-glib-aux/nm-errno.c \ - src/libnm-glib-aux/nm-errno.h \ - src/libnm-glib-aux/nm-gassert-patch.h \ - src/libnm-glib-aux/nm-glib.h \ - src/libnm-glib-aux/nm-hash-utils.c \ - src/libnm-glib-aux/nm-hash-utils.h \ - src/libnm-glib-aux/nm-inet-utils.c \ - src/libnm-glib-aux/nm-inet-utils.h \ - src/libnm-glib-aux/nm-io-utils.c \ - src/libnm-glib-aux/nm-io-utils.h \ - src/libnm-glib-aux/nm-jansson.h \ - src/libnm-glib-aux/nm-json-aux.c \ - src/libnm-glib-aux/nm-json-aux.h \ - src/libnm-glib-aux/nm-keyfile-aux.c \ - src/libnm-glib-aux/nm-keyfile-aux.h \ - src/libnm-glib-aux/nm-logging-base.c \ - src/libnm-glib-aux/nm-logging-base.h \ - src/libnm-glib-aux/nm-logging-fwd.h \ - src/libnm-glib-aux/nm-logging-syslog.h \ - src/libnm-glib-aux/nm-macros-internal.h \ - src/libnm-glib-aux/nm-obj.h \ - src/libnm-glib-aux/nm-prioq.c \ - src/libnm-glib-aux/nm-prioq.h \ - src/libnm-glib-aux/nm-random-utils.c \ - src/libnm-glib-aux/nm-random-utils.h \ - src/libnm-glib-aux/nm-ref-string.c \ - src/libnm-glib-aux/nm-ref-string.h \ - src/libnm-glib-aux/nm-secret-utils.c \ - src/libnm-glib-aux/nm-secret-utils.h \ - src/libnm-glib-aux/nm-shared-utils.c \ - src/libnm-glib-aux/nm-shared-utils.h \ - src/libnm-glib-aux/nm-str-buf.h \ - src/libnm-glib-aux/nm-test-utils.h \ - src/libnm-glib-aux/nm-time-utils.c \ - src/libnm-glib-aux/nm-time-utils.h \ - src/libnm-glib-aux/nm-uuid.c \ - src/libnm-glib-aux/nm-uuid.h \ - src/libnm-glib-aux/nm-value-type.h \ - $(NULL) - -src_libnm_glib_aux_libnm_glib_aux_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_libnm_glib_aux_libnm_glib_aux_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -EXTRA_DIST += src/libnm-glib-aux/meson.build - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-udev-aux/libnm-udev-aux.la - -src_libnm_udev_aux_libnm_udev_aux_la_CPPFLAGS = \ - $(src_libnm_glib_aux_cppflags) \ - $(LIBUDEV_CFLAGS) \ - $(NULL) - -src_libnm_udev_aux_libnm_udev_aux_la_SOURCES = \ - src/libnm-udev-aux/nm-udev-utils.c \ - src/libnm-udev-aux/nm-udev-utils.h \ - $(NULL) - -src_libnm_udev_aux_libnm_udev_aux_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_libnm_udev_aux_libnm_udev_aux_la_LIBADD = \ - $(GLIB_LIBS) \ - $(LIBUDEV_LIBS) \ - $(NULL) - -EXTRA_DIST += src/libnm-udev-aux/meson.build - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-lldp/libnm-lldp.la - -src_libnm_lldp_libnm_lldp_la_CFLAGS = \ - $(src_libnm_glib_aux_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(NULL) - -src_libnm_lldp_libnm_lldp_la_CPPFLAGS = \ - $(CODE_COVERAGE_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_libnm_lldp_libnm_lldp_la_LDFLAGS = \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_libnm_lldp_libnm_lldp_la_SOURCES = \ - src/libnm-lldp/nm-lldp-neighbor.c \ - src/libnm-lldp/nm-lldp-neighbor.h \ - src/libnm-lldp/nm-lldp-network.c \ - src/libnm-lldp/nm-lldp-network.h \ - src/libnm-lldp/nm-lldp-rx-internal.h \ - src/libnm-lldp/nm-lldp-rx.c \ - src/libnm-lldp/nm-lldp-rx.h \ - src/libnm-lldp/nm-lldp.h \ - $(NULL) - -EXTRA_DIST += src/libnm-lldp/meson.build - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-base/libnm-base.la - -src_libnm_base_libnm_base_la_CPPFLAGS = \ - $(src_libnm_glib_aux_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(NULL) - -src_libnm_base_libnm_base_la_SOURCES = \ - src/libnm-base/nm-base.c \ - src/libnm-base/nm-base.h \ - src/libnm-base/nm-config-base.h \ - src/libnm-base/nm-ethtool-base.c \ - src/libnm-base/nm-ethtool-base.h \ - src/libnm-base/nm-ethtool-utils-base.h \ - src/libnm-base/nm-net-aux.c \ - src/libnm-base/nm-net-aux.h \ - src/libnm-base/nm-priv-helper-utils.c \ - src/libnm-base/nm-priv-helper-utils.h \ - $(NULL) - -src_libnm_base_libnm_base_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_libnm_base_libnm_base_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -EXTRA_DIST += src/libnm-base/meson.build - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-log-core/libnm-log-core.la - -src_libnm_log_core_libnm_log_core_la_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(SYSTEMD_JOURNAL_CFLAGS) \ - $(NULL) - -src_libnm_log_core_libnm_log_core_la_SOURCES = \ - src/libnm-log-core/nm-logging.c \ - src/libnm-log-core/nm-logging.h \ - $(NULL) - -src_libnm_log_core_libnm_log_core_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_libnm_log_core_libnm_log_core_la_LIBADD = \ - $(GLIB_LIBS) \ - $(SYSTEMD_JOURNAL_LIBS) \ - $(NULL) - -EXTRA_DIST += src/libnm-log-core/meson.build - -noinst_LTLIBRARIES += src/libnm-log-null/libnm-log-null.la - -src_libnm_log_null_libnm_log_null_la_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(NULL) - -src_libnm_log_null_libnm_log_null_la_SOURCES = \ - src/libnm-log-null/nm-logging-null.c \ - $(NULL) - -src_libnm_log_null_libnm_log_null_la_LIBADD = \ - $(GLIB_LIBS) \ - $(CODE_COVERAGE_LDFLAGS) \ - $(NULL) - -EXTRA_DIST += src/libnm-log-null/meson.build - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-platform/libnm-platform.la - -src_libnm_platform_libnm_platform_la_CPPFLAGS = \ - $(src_libnm_glib_aux_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(NULL) - -src_libnm_platform_libnm_platform_la_SOURCES = \ - \ - src/linux-headers/ethtool.h \ - src/linux-headers/mptcp.h \ - src/linux-headers/nl802154.h \ - \ - src/nm-compat-headers/linux/if_addr.h \ - \ - src/libnm-platform/nm-linux-platform.c \ - src/libnm-platform/nm-linux-platform.h \ - src/libnm-platform/nm-netlink.c \ - src/libnm-platform/nm-netlink.h \ - src/libnm-platform/nm-platform-private.h \ - src/libnm-platform/nm-platform-utils.c \ - src/libnm-platform/nm-platform-utils.h \ - src/libnm-platform/nm-platform.c \ - src/libnm-platform/nm-platform.h \ - src/libnm-platform/nmp-base.c \ - src/libnm-platform/nmp-base.h \ - src/libnm-platform/nmp-global-tracker.c \ - src/libnm-platform/nmp-global-tracker.h \ - src/libnm-platform/nmp-netns.c \ - src/libnm-platform/nmp-netns.h \ - src/libnm-platform/nmp-object.c \ - src/libnm-platform/nmp-object.h \ - src/libnm-platform/nmp-plobj.c \ - src/libnm-platform/nmp-plobj.h \ - src/libnm-platform/devlink/nm-devlink.c \ - src/libnm-platform/devlink/nm-devlink.h \ - src/libnm-platform/wifi/nm-wifi-utils-nl80211.c \ - src/libnm-platform/wifi/nm-wifi-utils-nl80211.h \ - src/libnm-platform/wifi/nm-wifi-utils-private.h \ - src/libnm-platform/wifi/nm-wifi-utils.c \ - src/libnm-platform/wifi/nm-wifi-utils.h \ - src/libnm-platform/wpan/nm-wpan-utils.c \ - src/libnm-platform/wpan/nm-wpan-utils.h \ - \ - $(NULL) - -if WITH_WEXT -src_libnm_platform_libnm_platform_la_SOURCES += \ - src/libnm-platform/wifi/nm-wifi-utils-wext.c \ - src/libnm-platform/wifi/nm-wifi-utils-wext.h \ - $(NULL) -endif - -src_libnm_platform_libnm_platform_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_libnm_platform_libnm_platform_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -EXTRA_DIST += src/libnm-platform/meson.build - -############################################################################### - -check_programs += src/libnm-platform/tests/test-nm-platform - -src_libnm_platform_tests_test_nm_platform_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(SYSTEMD_JOURNAL_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_libnm_platform_tests_test_nm_platform_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_libnm_platform_tests_test_nm_platform_LDADD = \ - src/libnm-platform/libnm-platform.la \ - src/libnm-udev-aux/libnm-udev-aux.la \ - src/libnm-base/libnm-base.la \ - src/libnm-log-core/libnm-log-core.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(SYSTEMD_JOURNAL_LIBS) \ - $(GLIB_LIBS) \ - $(NULL) - -EXTRA_DIST += \ - src/libnm-platform/tests/meson.build \ - $(NULL) - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-core-aux-intern/libnm-core-aux-intern.la - -src_libnm_core_aux_intern_libnm_core_aux_intern_la_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(builddir)/src \ - -I$(srcdir)/src \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-core-public \ - $(CODE_COVERAGE_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_libnm_core_aux_intern_libnm_core_aux_intern_la_SOURCES = \ - src/libnm-core-aux-intern/nm-auth-subject.c \ - src/libnm-core-aux-intern/nm-auth-subject.h \ - src/libnm-core-aux-intern/nm-common-macros.h \ - src/libnm-core-aux-intern/nm-libnm-core-utils.c \ - src/libnm-core-aux-intern/nm-libnm-core-utils.h \ - $(NULL) - -src_libnm_core_aux_intern_libnm_core_aux_intern_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_libnm_core_aux_intern_libnm_core_aux_intern_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -$(src_libnm_core_aux_intern_libnm_core_aux_intern_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/libnm-core-aux-intern/README.md \ - src/libnm-core-aux-intern/meson.build \ - $(NULL) - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-core-aux-extern/libnm-core-aux-extern.la - -src_libnm_core_aux_extern_libnm_core_aux_extern_la_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-core-public \ - -I$(srcdir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_libnm_core_aux_extern_libnm_core_aux_extern_la_SOURCES = \ - src/libnm-core-aux-extern/nm-dispatcher-api.h \ - src/libnm-core-aux-extern/nm-libnm-core-aux.c \ - src/libnm-core-aux-extern/nm-libnm-core-aux.h \ - $(NULL) - -src_libnm_core_aux_extern_libnm_core_aux_extern_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_libnm_core_aux_extern_libnm_core_aux_extern_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -$(src_libnm_core_aux_extern_libnm_core_aux_extern_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/libnm-core-aux-extern/README.md \ - src/libnm-core-aux-extern/meson.build \ - $(NULL) - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-client-aux-extern/libnm-client-aux-extern.la - -src_libnm_client_aux_extern_libnm_client_aux_extern_la_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-client-public \ - -I$(builddir)/src/libnm-client-public \ - $(CODE_COVERAGE_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_libnm_client_aux_extern_libnm_client_aux_extern_la_SOURCES = \ - src/libnm-client-aux-extern/nm-libnm-aux.c \ - src/libnm-client-aux-extern/nm-libnm-aux.h \ - $(NULL) - -src_libnm_client_aux_extern_libnm_client_aux_extern_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_libnm_client_aux_extern_libnm_client_aux_extern_la_LIBADD = \ - $(GLIB_LIBS) \ - src/libnm-client-impl/libnm.la \ - $(NULL) - -$(src_libnm_client_aux_extern_libnm_client_aux_extern_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnm_client_aux_extern_libnm_client_aux_extern_la_OBJECTS): $(src_libnm_client_public_mkenums_h) - -EXTRA_DIST += \ - src/libnm-client-aux-extern/README.md \ - src/libnm-client-aux-extern/meson.build \ - src/libnm-client-aux-extern/tests/meson.build \ - $(NULL) - -############################################################################### - -check_programs += src/libnm-client-aux-extern/tests/test-libnm-client-aux - -src_libnm_client_aux_extern_tests_test_libnm_client_aux_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src/libnm-core-public \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-client-public \ - -I$(builddir)/src/libnm-client-public \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_libnm_client_aux_extern_tests_test_libnm_client_aux_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_libnm_client_aux_extern_tests_test_libnm_client_aux_LDADD = \ - src/libnm-core-aux-extern/libnm-core-aux-extern.la \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) \ - $(NULL) - -$(src_libnm_client_aux_extern_tests_test_libnm_client_aux_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnm_client_aux_extern_tests_test_libnm_client_aux_OBJECTS): $(src_libnm_client_public_mkenums_h) - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-client-test/libnm-client-test.la - -src_libnm_client_test_libnm_client_test_la_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-client-public \ - -I$(builddir)/src/libnm-client-public \ - $(CODE_COVERAGE_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_libnm_client_test_libnm_client_test_la_SOURCES = \ - src/libnm-client-test/nm-test-libnm-utils.h \ - src/libnm-client-test/nm-test-utils-impl.c \ - $(NULL) - -src_libnm_client_test_libnm_client_test_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -src_libnm_client_test_libnm_client_test_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -$(src_libnm_client_test_libnm_client_test_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnm_client_test_libnm_client_test_la_OBJECTS): $(src_libnm_client_public_mkenums_h) - -EXTRA_DIST += \ - src/libnm-client-test/meson.build \ - $(NULL) - -############################################################################### - -EXTRA_DIST += \ - src/libnm-glib-aux/tests/meson.build \ - $(NULL) - -check_programs += src/libnm-glib-aux/tests/test-shared-general - -src_libnm_glib_aux_tests_test_shared_general_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_libnm_glib_aux_tests_test_shared_general_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_libnm_glib_aux_tests_test_shared_general_LDADD = \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(GLIB_LIBS) \ - $(NULL) - -############################################################################### - -if WITH_JANSSON - -check_programs += src/libnm-glib-aux/tests/test-json-aux - -src_libnm_glib_aux_tests_test_json_aux_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(JANSSON_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_libnm_glib_aux_tests_test_json_aux_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_libnm_glib_aux_tests_test_json_aux_LDADD = \ - $(JANSSON_LIBS) \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(GLIB_LIBS) \ - $(NULL) - -endif - -############################################################################### - -noinst_LTLIBRARIES += introspection/libnmdbus.la - -introspection_libnmdbus_la_CPPFLAGS = \ - $(GLIB_CFLAGS) \ - $(INTROSPECTION_EXTRA_CFLAGS) \ - $(NULL) - -introspection_sources = \ - introspection/org.freedesktop.NetworkManager.AccessPoint.c \ - introspection/org.freedesktop.NetworkManager.AccessPoint.h \ - introspection/org.freedesktop.NetworkManager.AgentManager.c \ - introspection/org.freedesktop.NetworkManager.AgentManager.h \ - introspection/org.freedesktop.NetworkManager.Checkpoint.c \ - introspection/org.freedesktop.NetworkManager.Checkpoint.h \ - introspection/org.freedesktop.NetworkManager.Connection.Active.c \ - introspection/org.freedesktop.NetworkManager.Connection.Active.h \ - introspection/org.freedesktop.NetworkManager.DHCP4Config.c \ - introspection/org.freedesktop.NetworkManager.DHCP4Config.h \ - introspection/org.freedesktop.NetworkManager.DHCP6Config.c \ - introspection/org.freedesktop.NetworkManager.DHCP6Config.h \ - introspection/org.freedesktop.NetworkManager.Device.Adsl.c \ - introspection/org.freedesktop.NetworkManager.Device.Adsl.h \ - introspection/org.freedesktop.NetworkManager.Device.Bluetooth.c \ - introspection/org.freedesktop.NetworkManager.Device.Bluetooth.h \ - introspection/org.freedesktop.NetworkManager.Device.Bond.c \ - introspection/org.freedesktop.NetworkManager.Device.Bond.h \ - introspection/org.freedesktop.NetworkManager.Device.Bridge.c \ - introspection/org.freedesktop.NetworkManager.Device.Bridge.h \ - introspection/org.freedesktop.NetworkManager.Device.Dummy.c \ - introspection/org.freedesktop.NetworkManager.Device.Dummy.h \ - introspection/org.freedesktop.NetworkManager.Device.Generic.c \ - introspection/org.freedesktop.NetworkManager.Device.Generic.h \ - introspection/org.freedesktop.NetworkManager.Device.Hsr.c \ - introspection/org.freedesktop.NetworkManager.Device.Hsr.h \ - introspection/org.freedesktop.NetworkManager.Device.IPTunnel.c \ - introspection/org.freedesktop.NetworkManager.Device.IPTunnel.h \ - introspection/org.freedesktop.NetworkManager.Device.Infiniband.c \ - introspection/org.freedesktop.NetworkManager.Device.Infiniband.h \ - introspection/org.freedesktop.NetworkManager.Device.Loopback.c \ - introspection/org.freedesktop.NetworkManager.Device.Loopback.h \ - introspection/org.freedesktop.NetworkManager.Device.Lowpan.c \ - introspection/org.freedesktop.NetworkManager.Device.Lowpan.h \ - introspection/org.freedesktop.NetworkManager.Device.Macsec.c \ - introspection/org.freedesktop.NetworkManager.Device.Macsec.h \ - introspection/org.freedesktop.NetworkManager.Device.Macvlan.c \ - introspection/org.freedesktop.NetworkManager.Device.Macvlan.h \ - introspection/org.freedesktop.NetworkManager.Device.Modem.c \ - introspection/org.freedesktop.NetworkManager.Device.Modem.h \ - introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.c \ - introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.h \ - introspection/org.freedesktop.NetworkManager.Device.OvsBridge.c \ - introspection/org.freedesktop.NetworkManager.Device.OvsBridge.h \ - introspection/org.freedesktop.NetworkManager.Device.OvsInterface.c \ - introspection/org.freedesktop.NetworkManager.Device.OvsInterface.h \ - introspection/org.freedesktop.NetworkManager.Device.OvsPort.c \ - introspection/org.freedesktop.NetworkManager.Device.OvsPort.h \ - introspection/org.freedesktop.NetworkManager.Device.Ppp.c \ - introspection/org.freedesktop.NetworkManager.Device.Ppp.h \ - introspection/org.freedesktop.NetworkManager.Device.Statistics.c \ - introspection/org.freedesktop.NetworkManager.Device.Statistics.h \ - introspection/org.freedesktop.NetworkManager.Device.Team.c \ - introspection/org.freedesktop.NetworkManager.Device.Team.h \ - introspection/org.freedesktop.NetworkManager.Device.Tun.c \ - introspection/org.freedesktop.NetworkManager.Device.Tun.h \ - introspection/org.freedesktop.NetworkManager.Device.Veth.c \ - introspection/org.freedesktop.NetworkManager.Device.Veth.h \ - introspection/org.freedesktop.NetworkManager.Device.Vlan.c \ - introspection/org.freedesktop.NetworkManager.Device.Vlan.h \ - introspection/org.freedesktop.NetworkManager.Device.Vrf.c \ - introspection/org.freedesktop.NetworkManager.Device.Vrf.h \ - introspection/org.freedesktop.NetworkManager.Device.Vxlan.c \ - introspection/org.freedesktop.NetworkManager.Device.Vxlan.h \ - introspection/org.freedesktop.NetworkManager.Device.WiMax.c \ - introspection/org.freedesktop.NetworkManager.Device.WiMax.h \ - introspection/org.freedesktop.NetworkManager.Device.WifiP2P.c \ - introspection/org.freedesktop.NetworkManager.Device.WifiP2P.h \ - introspection/org.freedesktop.NetworkManager.Device.WireGuard.c \ - introspection/org.freedesktop.NetworkManager.Device.WireGuard.h \ - introspection/org.freedesktop.NetworkManager.Device.Wired.c \ - introspection/org.freedesktop.NetworkManager.Device.Wired.h \ - introspection/org.freedesktop.NetworkManager.Device.Wireless.c \ - introspection/org.freedesktop.NetworkManager.Device.Wireless.h \ - introspection/org.freedesktop.NetworkManager.Device.Wpan.c \ - introspection/org.freedesktop.NetworkManager.Device.Wpan.h \ - introspection/org.freedesktop.NetworkManager.Device.c \ - introspection/org.freedesktop.NetworkManager.Device.h \ - introspection/org.freedesktop.NetworkManager.DnsManager.c \ - introspection/org.freedesktop.NetworkManager.DnsManager.h \ - introspection/org.freedesktop.NetworkManager.IP4Config.c \ - introspection/org.freedesktop.NetworkManager.IP4Config.h \ - introspection/org.freedesktop.NetworkManager.IP6Config.c \ - introspection/org.freedesktop.NetworkManager.IP6Config.h \ - introspection/org.freedesktop.NetworkManager.WifiP2PPeer.c \ - introspection/org.freedesktop.NetworkManager.WifiP2PPeer.h \ - introspection/org.freedesktop.NetworkManager.PPP.c \ - introspection/org.freedesktop.NetworkManager.PPP.h \ - introspection/org.freedesktop.NetworkManager.SecretAgent.c \ - introspection/org.freedesktop.NetworkManager.SecretAgent.h \ - introspection/org.freedesktop.NetworkManager.Settings.Connection.c \ - introspection/org.freedesktop.NetworkManager.Settings.Connection.h \ - introspection/org.freedesktop.NetworkManager.Settings.c \ - introspection/org.freedesktop.NetworkManager.Settings.h \ - introspection/org.freedesktop.NetworkManager.VPN.Connection.c \ - introspection/org.freedesktop.NetworkManager.VPN.Connection.h \ - introspection/org.freedesktop.NetworkManager.VPN.Plugin.c \ - introspection/org.freedesktop.NetworkManager.VPN.Plugin.h \ - introspection/org.freedesktop.NetworkManager.c \ - introspection/org.freedesktop.NetworkManager.h \ - $(NULL) - -nodist_introspection_libnmdbus_la_SOURCES = $(introspection_sources) - -DBUS_INTERFACE_DOCS = \ - docs/api/dbus-org.freedesktop.NetworkManager.AccessPoint.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.AgentManager.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Checkpoint.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Connection.Active.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.DHCP4Config.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.DHCP6Config.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Adsl.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Bluetooth.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Bond.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Bridge.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Dummy.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Generic.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Hsr.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.IPTunnel.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Infiniband.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Loopback.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Lowpan.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Macsec.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Macvlan.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Modem.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.OlpcMesh.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.OvsBridge.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.OvsInterface.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.OvsPort.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Ppp.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Statistics.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Team.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Tun.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Veth.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Vlan.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Vrf.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Vxlan.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.WiMax.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.WifiP2P.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.WireGuard.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Wired.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Wireless.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.Wpan.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Device.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.DnsManager.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.IP4Config.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.IP6Config.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.PPP.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.SecretAgent.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Settings.Connection.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.Settings.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.VPN.Connection.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.VPN.Plugin.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.WifiP2PPeer.xml \ - docs/api/dbus-org.freedesktop.NetworkManager.xml \ - $(NULL) - -introspection/%.c: introspection/%.xml - @$(MKDIR_P) introspection/ - $(AM_V_GEN) gdbus-codegen \ - --generate-c-code $(basename $@) \ - --generate-docbook docs/api/dbus \ - --c-namespace NMDBus \ - --interface-prefix org.freedesktop.NetworkManager \ - $< - -introspection/%.h: introspection/%.c - $() - -docs/api/dbus-%.xml: introspection/%.c - $() - -dbusinterfacesdir = $(datadir)/dbus-1/interfaces - -dbusinterfaces_DATA = \ - introspection/org.freedesktop.NetworkManager.AccessPoint.xml \ - introspection/org.freedesktop.NetworkManager.AgentManager.xml \ - introspection/org.freedesktop.NetworkManager.Checkpoint.xml \ - introspection/org.freedesktop.NetworkManager.Connection.Active.xml \ - introspection/org.freedesktop.NetworkManager.DHCP4Config.xml \ - introspection/org.freedesktop.NetworkManager.DHCP6Config.xml \ - introspection/org.freedesktop.NetworkManager.Device.Adsl.xml \ - introspection/org.freedesktop.NetworkManager.Device.Bluetooth.xml \ - introspection/org.freedesktop.NetworkManager.Device.Bond.xml \ - introspection/org.freedesktop.NetworkManager.Device.Bridge.xml \ - introspection/org.freedesktop.NetworkManager.Device.Dummy.xml \ - introspection/org.freedesktop.NetworkManager.Device.Generic.xml \ - introspection/org.freedesktop.NetworkManager.Device.Hsr.xml \ - introspection/org.freedesktop.NetworkManager.Device.IPTunnel.xml \ - introspection/org.freedesktop.NetworkManager.Device.Infiniband.xml \ - introspection/org.freedesktop.NetworkManager.Device.Loopback.xml \ - introspection/org.freedesktop.NetworkManager.Device.Lowpan.xml \ - introspection/org.freedesktop.NetworkManager.Device.Macsec.xml \ - introspection/org.freedesktop.NetworkManager.Device.Macvlan.xml \ - introspection/org.freedesktop.NetworkManager.Device.Modem.xml \ - introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.xml \ - introspection/org.freedesktop.NetworkManager.Device.OvsBridge.xml \ - introspection/org.freedesktop.NetworkManager.Device.OvsInterface.xml \ - introspection/org.freedesktop.NetworkManager.Device.OvsPort.xml \ - introspection/org.freedesktop.NetworkManager.Device.Ppp.xml \ - introspection/org.freedesktop.NetworkManager.Device.Statistics.xml \ - introspection/org.freedesktop.NetworkManager.Device.Team.xml \ - introspection/org.freedesktop.NetworkManager.Device.Tun.xml \ - introspection/org.freedesktop.NetworkManager.Device.Veth.xml \ - introspection/org.freedesktop.NetworkManager.Device.Vlan.xml \ - introspection/org.freedesktop.NetworkManager.Device.Vrf.xml \ - introspection/org.freedesktop.NetworkManager.Device.Vxlan.xml \ - introspection/org.freedesktop.NetworkManager.Device.WiMax.xml \ - introspection/org.freedesktop.NetworkManager.Device.WifiP2P.xml \ - introspection/org.freedesktop.NetworkManager.Device.WireGuard.xml \ - introspection/org.freedesktop.NetworkManager.Device.Wired.xml \ - introspection/org.freedesktop.NetworkManager.Device.Wireless.xml \ - introspection/org.freedesktop.NetworkManager.Device.Wpan.xml \ - introspection/org.freedesktop.NetworkManager.Device.xml \ - introspection/org.freedesktop.NetworkManager.DnsManager.xml \ - introspection/org.freedesktop.NetworkManager.IP4Config.xml \ - introspection/org.freedesktop.NetworkManager.IP6Config.xml \ - introspection/org.freedesktop.NetworkManager.PPP.xml \ - introspection/org.freedesktop.NetworkManager.SecretAgent.xml \ - introspection/org.freedesktop.NetworkManager.Settings.Connection.xml \ - introspection/org.freedesktop.NetworkManager.Settings.xml \ - introspection/org.freedesktop.NetworkManager.VPN.Connection.xml \ - introspection/org.freedesktop.NetworkManager.VPN.Plugin.xml \ - introspection/org.freedesktop.NetworkManager.WiMax.Nsp.xml \ - introspection/org.freedesktop.NetworkManager.WifiP2PPeer.xml \ - introspection/org.freedesktop.NetworkManager.xml \ - $(NULL) - -CLEANFILES += $(introspection_sources) -CLEANFILES += $(DBUS_INTERFACE_DOCS) - -$(src_libnm_client_impl_libnm_client_impl_la_OBJECTS): $(introspection_sources) -$(src_libnm_client_impl_libnm_la_OBJECTS): $(introspection_sources) - -EXTRA_DIST += \ - $(dbusinterfaces_DATA) \ - introspection/meson.build - -check-docs: - $(srcdir)/tools/check-docs.sh "$(srcdir)" "$(builddir)" - -check_local += check-docs - -############################################################################### - -src_libnm_core_impl_lib_h_pub_real = \ - src/libnm-core-public/nm-connection.h \ - src/libnm-core-public/nm-core-types.h \ - src/libnm-core-public/nm-dbus-interface.h \ - src/libnm-core-public/nm-errors.h \ - src/libnm-core-public/nm-keyfile.h \ - src/libnm-core-public/nm-setting-6lowpan.h \ - src/libnm-core-public/nm-setting-8021x.h \ - src/libnm-core-public/nm-setting-adsl.h \ - src/libnm-core-public/nm-setting-bluetooth.h \ - src/libnm-core-public/nm-setting-bond-port.h \ - src/libnm-core-public/nm-setting-bond.h \ - src/libnm-core-public/nm-setting-bridge-port.h \ - src/libnm-core-public/nm-setting-bridge.h \ - src/libnm-core-public/nm-setting-cdma.h \ - src/libnm-core-public/nm-setting-connection.h \ - src/libnm-core-public/nm-setting-dcb.h \ - src/libnm-core-public/nm-setting-dummy.h \ - src/libnm-core-public/nm-setting-ethtool.h \ - src/libnm-core-public/nm-setting-generic.h \ - src/libnm-core-public/nm-setting-gsm.h \ - src/libnm-core-public/nm-setting-hostname.h \ - src/libnm-core-public/nm-setting-hsr.h \ - src/libnm-core-public/nm-setting-infiniband.h \ - src/libnm-core-public/nm-setting-ip-config.h \ - src/libnm-core-public/nm-setting-ip-tunnel.h \ - src/libnm-core-public/nm-setting-ip4-config.h \ - src/libnm-core-public/nm-setting-ip6-config.h \ - src/libnm-core-public/nm-setting-link.h \ - src/libnm-core-public/nm-setting-loopback.h \ - src/libnm-core-public/nm-setting-macsec.h \ - src/libnm-core-public/nm-setting-macvlan.h \ - src/libnm-core-public/nm-setting-match.h \ - src/libnm-core-public/nm-setting-olpc-mesh.h \ - src/libnm-core-public/nm-setting-ovs-bridge.h \ - src/libnm-core-public/nm-setting-ovs-dpdk.h \ - src/libnm-core-public/nm-setting-ovs-external-ids.h \ - src/libnm-core-public/nm-setting-ovs-interface.h \ - src/libnm-core-public/nm-setting-ovs-other-config.h \ - src/libnm-core-public/nm-setting-ovs-patch.h \ - src/libnm-core-public/nm-setting-ovs-port.h \ - src/libnm-core-public/nm-setting-ppp.h \ - src/libnm-core-public/nm-setting-pppoe.h \ - src/libnm-core-public/nm-setting-proxy.h \ - src/libnm-core-public/nm-setting-serial.h \ - src/libnm-core-public/nm-setting-sriov.h \ - src/libnm-core-public/nm-setting-tc-config.h \ - src/libnm-core-public/nm-setting-team-port.h \ - src/libnm-core-public/nm-setting-team.h \ - src/libnm-core-public/nm-setting-tun.h \ - src/libnm-core-public/nm-setting-user.h \ - src/libnm-core-public/nm-setting-veth.h \ - src/libnm-core-public/nm-setting-vlan.h \ - src/libnm-core-public/nm-setting-vpn.h \ - src/libnm-core-public/nm-setting-vrf.h \ - src/libnm-core-public/nm-setting-vxlan.h \ - src/libnm-core-public/nm-setting-wifi-p2p.h \ - src/libnm-core-public/nm-setting-wimax.h \ - src/libnm-core-public/nm-setting-wired.h \ - src/libnm-core-public/nm-setting-wireguard.h \ - src/libnm-core-public/nm-setting-wireless-security.h \ - src/libnm-core-public/nm-setting-wireless.h \ - src/libnm-core-public/nm-setting-wpan.h \ - src/libnm-core-public/nm-setting.h \ - src/libnm-core-public/nm-simple-connection.h \ - src/libnm-core-public/nm-utils.h \ - src/libnm-core-public/nm-version-macros.h \ - src/libnm-core-public/nm-version.h \ - src/libnm-core-public/nm-vpn-dbus-interface.h \ - src/libnm-core-public/nm-vpn-editor-plugin.h \ - src/libnm-core-public/nm-vpn-plugin-info.h \ - $(NULL) -src_libnm_core_public_mkenums_h = \ - src/libnm-core-public/nm-core-enum-types.h \ - $(NULL) -src_libnm_core_impl_lib_h_priv = \ - src/libnm-core-impl/nm-connection-private.h \ - src/libnm-core-impl/nm-default-libnm-core.h \ - src/libnm-core-impl/nm-setting-private.h \ - src/libnm-core-impl/nm-team-utils.h \ - src/libnm-core-impl/nm-utils-private.h \ - src/libnm-core-intern/nm-core-internal.h \ - src/libnm-core-intern/nm-keyfile-internal.h \ - src/libnm-core-intern/nm-keyfile-utils.h \ - src/libnm-core-intern/nm-meta-setting-base-impl.h \ - src/libnm-core-intern/nm-meta-setting-base.h \ - $(NULL) -src_libnm_core_impl_lib_c_settings_real = \ - src/libnm-core-impl/nm-setting-6lowpan.c \ - src/libnm-core-impl/nm-setting-8021x.c \ - src/libnm-core-impl/nm-setting-adsl.c \ - src/libnm-core-impl/nm-setting-bluetooth.c \ - src/libnm-core-impl/nm-setting-bond-port.c \ - src/libnm-core-impl/nm-setting-bond.c \ - src/libnm-core-impl/nm-setting-bridge-port.c \ - src/libnm-core-impl/nm-setting-bridge.c \ - src/libnm-core-impl/nm-setting-cdma.c \ - src/libnm-core-impl/nm-setting-connection.c \ - src/libnm-core-impl/nm-setting-dcb.c \ - src/libnm-core-impl/nm-setting-dummy.c \ - src/libnm-core-impl/nm-setting-ethtool.c \ - src/libnm-core-impl/nm-setting-generic.c \ - src/libnm-core-impl/nm-setting-gsm.c \ - src/libnm-core-impl/nm-setting-hostname.c \ - src/libnm-core-impl/nm-setting-hsr.c \ - src/libnm-core-impl/nm-setting-infiniband.c \ - src/libnm-core-impl/nm-setting-ip-config.c \ - src/libnm-core-impl/nm-setting-ip-tunnel.c \ - src/libnm-core-impl/nm-setting-ip4-config.c \ - src/libnm-core-impl/nm-setting-ip6-config.c \ - src/libnm-core-impl/nm-setting-link.c \ - src/libnm-core-impl/nm-setting-loopback.c \ - src/libnm-core-impl/nm-setting-macsec.c \ - src/libnm-core-impl/nm-setting-macvlan.c \ - src/libnm-core-impl/nm-setting-match.c \ - src/libnm-core-impl/nm-setting-olpc-mesh.c \ - src/libnm-core-impl/nm-setting-ovs-bridge.c \ - src/libnm-core-impl/nm-setting-ovs-dpdk.c \ - src/libnm-core-impl/nm-setting-ovs-external-ids.c \ - src/libnm-core-impl/nm-setting-ovs-interface.c \ - src/libnm-core-impl/nm-setting-ovs-other-config.c \ - src/libnm-core-impl/nm-setting-ovs-patch.c \ - src/libnm-core-impl/nm-setting-ovs-port.c \ - src/libnm-core-impl/nm-setting-ppp.c \ - src/libnm-core-impl/nm-setting-pppoe.c \ - src/libnm-core-impl/nm-setting-proxy.c \ - src/libnm-core-impl/nm-setting-serial.c \ - src/libnm-core-impl/nm-setting-sriov.c \ - src/libnm-core-impl/nm-setting-tc-config.c \ - src/libnm-core-impl/nm-setting-team-port.c \ - src/libnm-core-impl/nm-setting-team.c \ - src/libnm-core-impl/nm-setting-tun.c \ - src/libnm-core-impl/nm-setting-user.c \ - src/libnm-core-impl/nm-setting-veth.c \ - src/libnm-core-impl/nm-setting-vlan.c \ - src/libnm-core-impl/nm-setting-vpn.c \ - src/libnm-core-impl/nm-setting-vrf.c \ - src/libnm-core-impl/nm-setting-vxlan.c \ - src/libnm-core-impl/nm-setting-wifi-p2p.c \ - src/libnm-core-impl/nm-setting-wimax.c \ - src/libnm-core-impl/nm-setting-wired.c \ - src/libnm-core-impl/nm-setting-wireguard.c \ - src/libnm-core-impl/nm-setting-wireless-security.c \ - src/libnm-core-impl/nm-setting-wireless.c \ - src/libnm-core-impl/nm-setting-wpan.c \ - $(NULL) -src_libnm_core_impl_lib_c_real = \ - $(src_libnm_core_impl_lib_c_settings_real) \ - src/libnm-core-impl/nm-connection.c \ - src/libnm-core-impl/nm-errors.c \ - src/libnm-core-impl/nm-keyfile-utils.c \ - src/libnm-core-impl/nm-keyfile.c \ - src/libnm-core-impl/nm-meta-setting-base-impl.c \ - src/libnm-core-impl/nm-setting.c \ - src/libnm-core-impl/nm-simple-connection.c \ - src/libnm-core-impl/nm-team-utils.c \ - src/libnm-core-impl/nm-utils.c \ - src/libnm-core-impl/nm-vpn-editor-plugin.c \ - src/libnm-core-impl/nm-vpn-plugin-info.c \ - $(NULL) - -src_libnm_core_public_mkenums_c = \ - src/libnm-core-public/nm-core-enum-types.c \ - $(NULL) - -libnminclude_HEADERS += \ - $(src_libnm_core_impl_lib_h_pub_real) - -nodist_libnminclude_HEADERS += \ - $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/libnm-core-impl/README.md \ - src/libnm-core-impl/meson.build \ - src/libnm-core-intern/README.md \ - src/libnm-core-intern/meson.build \ - src/libnm-core-public/README.md \ - src/libnm-core-public/meson.build \ - $(NULL) - -############################################################################### - -dflt_cppflags_libnm_core = \ - $(dflt_cppflags) \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-core-public \ - -I$(srcdir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(LIBUDEV_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -noinst_LTLIBRARIES += src/libnm-core-impl/libnm-core-impl.la - -src/libnm-client-public/nm-enum-types.h.stamp: src/libnm-client-public/.dirstamp -src/libnm-client-public/nm-enum-types.c.stamp: src/libnm-client-public/.dirstamp - -GLIB_GENERATED += \ - $(src_libnm_core_public_mkenums_h) \ - $(src_libnm_core_public_mkenums_c) \ - $(NULL) -nm_core_enum_types_sources = $(src_libnm_core_impl_lib_h_pub_real) - -nm_core_enum_types_MKENUMS_C_FLAGS = --fhead '\#undef G_LOG_DOMAIN\n\#include "src/libnm-core-impl/nm-default-libnm-core.h"\n' - -src/libnm-core-public/nm-core-enum-types.h.stamp: src/libnm-core-public/.dirstamp -src/libnm-core-public/nm-core-enum-types.c.stamp: src/libnm-core-public/.dirstamp - -$(src_nm_dispatcher_libnm_dispatcher_core_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nm_dispatcher_nm_dispatcher_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnm_core_impl_libnm_core_impl_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnm_client_impl_libnm_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_contrib_tests_libnm_vpn_plugin_utils_test_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_NetworkManager_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_devices_adsl_libnm_device_plugin_adsl_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_devices_bluetooth_libnm_device_plugin_bluetooth_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_devices_team_libnm_device_plugin_team_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_devices_wifi_libnm_device_plugin_wifi_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_devices_wwan_libnm_device_plugin_wwan_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_devices_ovs_libnm_device_plugin_ovs_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -src_libnm_core_impl_libnm_core_impl_la_CPPFLAGS = \ - $(dflt_cppflags_libnm_core) \ - -I$(srcdir)/src/libnm-core-intern/ \ - $(NULL) - -src_libnm_core_impl_libnm_core_impl_la_SOURCES = \ - $(src_libnm_core_impl_lib_h_pub_real) \ - $(src_libnm_core_impl_lib_h_priv) \ - $(src_libnm_core_impl_lib_c_real) - -nodist_src_libnm_core_impl_libnm_core_impl_la_SOURCES = \ - $(src_libnm_core_public_mkenums_h) \ - $(src_libnm_core_public_mkenums_c) \ - $(NULL) - -src_libnm_core_impl_libnm_core_impl_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -src_libnm_core_impl_libnm_core_impl_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -EXTRA_DIST += \ - src/libnm-core-impl/meson.build \ - $(NULL) - -src/libnm-core-public/nm-vpn-dbus-types.xml: src/libnm-core-public/nm-vpn-dbus-interface.h tools/enums-to-docbook.pl - @$(MKDIR_P) src/libnm-core-public/ - $(AM_V_GEN) @PERL@ $(srcdir)/tools/enums-to-docbook.pl 'nm-vpn-dbus-types' 'VPN Plugin D-Bus API Types' $< >$@ - -src/libnm-core-public/nm-dbus-types.xml: src/libnm-core-public/nm-dbus-interface.h tools/enums-to-docbook.pl - @$(MKDIR_P) src/libnm-core-public/ - $(AM_V_GEN) @PERL@ $(srcdir)/tools/enums-to-docbook.pl 'nm-dbus-types' 'NetworkManager D-Bus API Types' $< >$@ - -BUILT_SOURCES += \ - src/libnm-core-public/nm-vpn-dbus-types.xml \ - src/libnm-core-public/nm-dbus-types.xml - -dist_dependencies += \ - src/libnm-core-public/nm-vpn-dbus-types.xml \ - src/libnm-core-public/nm-dbus-types.xml - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-crypto/libnm-crypto.la - -src_libnm_crypto_libnm_crypto_la_SOURCES = \ - src/libnm-crypto/nm-crypto-impl.h \ - src/libnm-crypto/nm-crypto.c \ - src/libnm-crypto/nm-crypto.h \ - $(NULL) - -src_libnm_crypto_libnm_crypto_la_CPPFLAGS = \ - $(dflt_cppflags_libnm_core) \ - $(NULL) - -src_libnm_crypto_libnm_crypto_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -src_libnm_crypto_libnm_crypto_la_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - $(NULL) - -if HAVE_CRYPTO_GNUTLS -if WITH_GNUTLS -libnm_crypto_lib = src/libnm-crypto/libnm-crypto-gnutls.la -else -check_ltlibraries += src/libnm-crypto/libnm-crypto-gnutls.la -endif - -src_libnm_crypto_libnm_crypto_gnutls_la_SOURCES = src/libnm-crypto/nm-crypto-gnutls.c -src_libnm_crypto_libnm_crypto_gnutls_la_CPPFLAGS = \ - $(src_libnm_core_impl_libnm_core_impl_la_CPPFLAGS) \ - $(GNUTLS_CFLAGS) -src_libnm_crypto_libnm_crypto_gnutls_la_LDFLAGS = \ - $(src_libnm_core_impl_libnm_core_impl_la_LDFLAGS) -src_libnm_crypto_libnm_crypto_gnutls_la_LIBADD = \ - $(GLIB_LIBS) \ - $(GNUTLS_LIBS) -endif - -if HAVE_CRYPTO_NSS -if WITH_NSS -libnm_crypto_lib = src/libnm-crypto/libnm-crypto-nss.la -else -check_ltlibraries += src/libnm-crypto/libnm-crypto-nss.la -endif - -src_libnm_crypto_libnm_crypto_nss_la_SOURCES = src/libnm-crypto/nm-crypto-nss.c -src_libnm_crypto_libnm_crypto_nss_la_CPPFLAGS = \ - $(src_libnm_core_impl_libnm_core_impl_la_CPPFLAGS) \ - $(NSS_CFLAGS) -src_libnm_crypto_libnm_crypto_nss_la_LDFLAGS = \ - $(src_libnm_core_impl_libnm_core_impl_la_LDFLAGS) -src_libnm_crypto_libnm_crypto_nss_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NSS_LIBS) -endif - -if !WITH_GNUTLS -if !WITH_NSS -libnm_crypto_lib = src/libnm-crypto/libnm-crypto-null.la -else -check_ltlibraries += src/libnm-crypto/libnm-crypto-null.la -endif -else -check_ltlibraries += src/libnm-crypto/libnm-crypto-null.la -endif - -src_libnm_crypto_libnm_crypto_null_la_SOURCES = src/libnm-crypto/nm-crypto-null.c -src_libnm_crypto_libnm_crypto_null_la_CPPFLAGS = \ - $(src_libnm_core_impl_libnm_core_impl_la_CPPFLAGS) \ - $(NULL) -src_libnm_crypto_libnm_crypto_null_la_LDFLAGS = \ - $(src_libnm_core_impl_libnm_core_impl_la_LDFLAGS) \ - $(NULL) -src_libnm_crypto_libnm_crypto_null_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -noinst_LTLIBRARIES += $(libnm_crypto_lib) - -EXTRA_DIST += \ - src/libnm-crypto/README.md \ - src/libnm-crypto/meson.build \ - src/libnm-crypto/nm-crypto-gnutls.c \ - src/libnm-crypto/nm-crypto-nss.c \ - $(NULL) - -############################################################################### - -check_programs += \ - src/libnm-core-impl/tests/test-crypto \ - src/libnm-core-impl/tests/test-general \ - src/libnm-core-impl/tests/test-keyfile \ - src/libnm-core-impl/tests/test-secrets \ - src/libnm-core-impl/tests/test-setting \ - src/libnm-core-impl/tests/test-settings-defaults - -GLIB_GENERATED += \ - src/libnm-core-impl/tests/nm-core-tests-enum-types.h \ - src/libnm-core-impl/tests/nm-core-tests-enum-types.c -nm_core_tests_enum_types_sources = src/libnm-core-impl/tests/test-general-enums.h -nm_core_tests_enum_types_MKENUMS_C_FLAGS = --fhead '\#undef G_LOG_DOMAIN\n\#include "src/libnm-core-impl/nm-default-libnm-core.h"\n' - -src/libnm-core-impl/tests/nm-core-tests-enum-types.h.stamp: src/libnm-core-impl/tests/.dirstamp -src/libnm-core-impl/tests/nm-core-tests-enum-types.c.stamp: src/libnm-core-impl/tests/.dirstamp - -$(src_libnm_core_impl_tests_test_general_OBJECTS): src/libnm-core-impl/tests/nm-core-tests-enum-types.h - -src_libnm_core_impl_tests_cppflags = \ - -I$(builddir)/src/libnm-core-impl/tests \ - -I$(srcdir)/src/libnm-core-impl/tests \ - -I$(srcdir)/src/libnm-core-impl \ - -I$(srcdir)/src/ \ - -I$(builddir)/src/ \ - $(dflt_cppflags_libnm_core) \ - $(SANITIZER_EXEC_CFLAGS) \ - $(NULL) - -src_libnm_core_impl_tests_test_crypto_CPPFLAGS = $(src_libnm_core_impl_tests_cppflags) -src_libnm_core_impl_tests_test_general_CPPFLAGS = $(src_libnm_core_impl_tests_cppflags) -src_libnm_core_impl_tests_test_keyfile_CPPFLAGS = $(src_libnm_core_impl_tests_cppflags) -src_libnm_core_impl_tests_test_secrets_CPPFLAGS = $(src_libnm_core_impl_tests_cppflags) -src_libnm_core_impl_tests_test_setting_CPPFLAGS = $(src_libnm_core_impl_tests_cppflags) -src_libnm_core_impl_tests_test_settings_defaults_CPPFLAGS = $(src_libnm_core_impl_tests_cppflags) - -src_libnm_core_impl_tests_test_general_SOURCES = \ - src/libnm-core-impl/tests/test-general-enums.h \ - src/libnm-core-impl/tests/test-general.c \ - $(NULL) - -nodist_src_libnm_core_impl_tests_test_general_SOURCES = \ - src/libnm-core-impl/tests/nm-core-tests-enum-types.c \ - src/libnm-core-impl/tests/nm-core-tests-enum-types.h \ - $(NULL) - -src_libnm_core_impl_tests_ldadd = \ - src/libnm-core-aux-extern/libnm-core-aux-extern.la \ - src/libnm-core-impl/libnm-core-impl.la \ - src/libnm-crypto/libnm-crypto.la \ - $(libnm_crypto_lib) \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-base/libnm-base.la \ - src/libnm-systemd-shared/libnm-systemd-shared.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(GLIB_LIBS) \ - $(NULL) - -src_libnm_core_impl_tests_ldflags = \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_libnm_core_impl_tests_test_crypto_LDADD = $(src_libnm_core_impl_tests_ldadd) -src_libnm_core_impl_tests_test_general_LDADD = $(src_libnm_core_impl_tests_ldadd) -src_libnm_core_impl_tests_test_keyfile_LDADD = $(src_libnm_core_impl_tests_ldadd) -src_libnm_core_impl_tests_test_secrets_LDADD = $(src_libnm_core_impl_tests_ldadd) -src_libnm_core_impl_tests_test_setting_LDADD = $(src_libnm_core_impl_tests_ldadd) -src_libnm_core_impl_tests_test_settings_defaults_LDADD = $(src_libnm_core_impl_tests_ldadd) - -src_libnm_core_impl_tests_test_crypto_LDFLAGS = $(src_libnm_core_impl_tests_ldflags) -src_libnm_core_impl_tests_test_general_LDFLAGS = $(src_libnm_core_impl_tests_ldflags) -src_libnm_core_impl_tests_test_keyfile_LDFLAGS = $(src_libnm_core_impl_tests_ldflags) -src_libnm_core_impl_tests_test_secrets_LDFLAGS = $(src_libnm_core_impl_tests_ldflags) -src_libnm_core_impl_tests_test_setting_LDFLAGS = $(src_libnm_core_impl_tests_ldflags) -src_libnm_core_impl_tests_test_settings_defaults_LDFLAGS = $(src_libnm_core_impl_tests_ldflags) - -$(src_libnm_core_impl_tests_test_crypto_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnm_core_impl_tests_test_general_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnm_core_impl_tests_test_keyfile_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnm_core_impl_tests_test_secrets_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnm_core_impl_tests_test_setting_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnm_core_impl_tests_test_settings_defaults_OBJECTS): $(src_libnm_core_public_mkenums_h) - -# test-cert.p12 created with: -# -# openssl pkcs12 -export \ -# -in test_key_and_cert.pem \ -# -inkey test_key_and_cert.pem \ -# -certfile test_ca_cert.pem \ -# -name "test-pkcs12" \ -# -out test-cert.p12 - -EXTRA_DIST += \ - src/libnm-core-impl/tests/certs/ca-no-ending-newline.pem \ - src/libnm-core-impl/tests/certs/pkcs8-decrypted.der \ - src/libnm-core-impl/tests/certs/pkcs8-enc-key.pem \ - src/libnm-core-impl/tests/certs/pkcs8-noenc-key.pem \ - src/libnm-core-impl/tests/certs/test2_ca_cert.pem \ - src/libnm-core-impl/tests/certs/test2-cert.p12 \ - src/libnm-core-impl/tests/certs/test2_key_and_cert.pem \ - src/libnm-core-impl/tests/certs/test-aes-128-key.pem \ - src/libnm-core-impl/tests/certs/test-aes-256-key.pem \ - src/libnm-core-impl/tests/certs/test-aes-128-ec-key.pem \ - src/libnm-core-impl/tests/certs/test-aes-256-ec-key.pem \ - src/libnm-core-impl/tests/certs/test_ca_cert.der \ - src/libnm-core-impl/tests/certs/test_ca_cert.pem \ - src/libnm-core-impl/tests/certs/test-ca-cert.pem \ - src/libnm-core-impl/tests/certs/test-cert.p12 \ - src/libnm-core-impl/tests/certs/test_key_and_cert.pem \ - src/libnm-core-impl/tests/certs/test-key-and-cert.pem \ - src/libnm-core-impl/tests/certs/test-key-only-decrypted.der \ - src/libnm-core-impl/tests/certs/test-key-only-decrypted.pem \ - src/libnm-core-impl/tests/certs/test-ec-key-only-decrypted.der \ - src/libnm-core-impl/tests/certs/test-ec-key-only-decrypted.pem \ - src/libnm-core-impl/tests/certs/test-key-only.pem \ - src/libnm-core-impl/tests/certs/test-tpm2wrapped-key.pem \ - src/libnm-core-impl/tests/nm-core-tests-enum-types.c.template \ - src/libnm-core-impl/tests/nm-core-tests-enum-types.h.template \ - src/libnm-core-impl/tests/meson.build - -############################################################################### - -libnm_lib_h_pub_real = \ - src/libnm-client-public/NetworkManager.h \ - src/libnm-client-public/nm-access-point.h \ - src/libnm-client-public/nm-active-connection.h \ - src/libnm-client-public/nm-autoptr.h \ - src/libnm-client-public/nm-checkpoint.h \ - src/libnm-client-public/nm-client.h \ - src/libnm-client-public/nm-conn-utils.h \ - src/libnm-client-public/nm-device-6lowpan.h \ - src/libnm-client-public/nm-device-adsl.h \ - src/libnm-client-public/nm-device-bond.h \ - src/libnm-client-public/nm-device-bridge.h \ - src/libnm-client-public/nm-device-bt.h \ - src/libnm-client-public/nm-device-dummy.h \ - src/libnm-client-public/nm-device-ethernet.h \ - src/libnm-client-public/nm-device-generic.h \ - src/libnm-client-public/nm-device-hsr.h \ - src/libnm-client-public/nm-device-infiniband.h \ - src/libnm-client-public/nm-device-ip-tunnel.h \ - src/libnm-client-public/nm-device-loopback.h \ - src/libnm-client-public/nm-device-macsec.h \ - src/libnm-client-public/nm-device-macvlan.h \ - src/libnm-client-public/nm-device-modem.h \ - src/libnm-client-public/nm-device-olpc-mesh.h \ - src/libnm-client-public/nm-device-ovs-bridge.h \ - src/libnm-client-public/nm-device-ovs-interface.h \ - src/libnm-client-public/nm-device-ovs-port.h \ - src/libnm-client-public/nm-device-ppp.h \ - src/libnm-client-public/nm-device-team.h \ - src/libnm-client-public/nm-device-tun.h \ - src/libnm-client-public/nm-device-veth.h \ - src/libnm-client-public/nm-device-vlan.h \ - src/libnm-client-public/nm-device-vrf.h \ - src/libnm-client-public/nm-device-vxlan.h \ - src/libnm-client-public/nm-device-wifi-p2p.h \ - src/libnm-client-public/nm-device-wifi.h \ - src/libnm-client-public/nm-device-wimax.h \ - src/libnm-client-public/nm-device-wireguard.h \ - src/libnm-client-public/nm-device-wpan.h \ - src/libnm-client-public/nm-device.h \ - src/libnm-client-public/nm-dhcp-config.h \ - src/libnm-client-public/nm-ethtool-utils.h \ - src/libnm-client-public/nm-ip-config.h \ - src/libnm-client-public/nm-object.h \ - src/libnm-client-public/nm-remote-connection.h \ - src/libnm-client-public/nm-secret-agent-old.h \ - src/libnm-client-public/nm-vpn-connection.h \ - src/libnm-client-public/nm-vpn-editor.h \ - src/libnm-client-public/nm-vpn-plugin-old.h \ - src/libnm-client-public/nm-vpn-service-plugin.h \ - src/libnm-client-public/nm-wifi-p2p-peer.h \ - src/libnm-client-public/nm-wimax-nsp.h \ - $(NULL) -src_libnm_client_public_mkenums_h = \ - src/libnm-client-public/nm-enum-types.h \ - $(NULL) -libnm_lib_h_priv = \ - src/libnm-client-impl/nm-dbus-helpers.h \ - src/libnm-client-aux-extern/nm-default-client.h \ - src/libnm-client-impl/nm-default-libnm.h \ - src/libnm-client-impl/nm-device-private.h \ - src/libnm-client-impl/nm-dhcp4-config.h \ - src/libnm-client-impl/nm-dhcp6-config.h \ - src/libnm-client-impl/nm-dns-manager.h \ - src/libnm-client-impl/nm-ip4-config.h \ - src/libnm-client-impl/nm-ip6-config.h \ - src/libnm-client-impl/nm-libnm-utils.h \ - src/libnm-client-impl/nm-object-private.h \ - src/libnm-client-impl/nm-remote-connection-private.h \ - $(NULL) -libnm_lib_c_real = \ - src/libnm-client-impl/nm-client.c \ - src/libnm-client-impl/nm-object.c \ - src/libnm-client-impl/nm-device.c \ - src/libnm-client-impl/nm-active-connection.c \ - \ - src/libnm-client-impl/nm-access-point.c \ - src/libnm-client-impl/nm-checkpoint.c \ - src/libnm-client-impl/nm-conn-utils.c \ - src/libnm-client-impl/nm-dbus-helpers.c \ - src/libnm-client-impl/nm-device-6lowpan.c \ - src/libnm-client-impl/nm-device-adsl.c \ - src/libnm-client-impl/nm-device-bond.c \ - src/libnm-client-impl/nm-device-bridge.c \ - src/libnm-client-impl/nm-device-bt.c \ - src/libnm-client-impl/nm-device-dummy.c \ - src/libnm-client-impl/nm-device-ethernet.c \ - src/libnm-client-impl/nm-device-generic.c \ - src/libnm-client-impl/nm-device-hsr.c \ - src/libnm-client-impl/nm-device-infiniband.c \ - src/libnm-client-impl/nm-device-ip-tunnel.c \ - src/libnm-client-impl/nm-device-loopback.c \ - src/libnm-client-impl/nm-device-macsec.c \ - src/libnm-client-impl/nm-device-macvlan.c \ - src/libnm-client-impl/nm-device-modem.c \ - src/libnm-client-impl/nm-device-olpc-mesh.c \ - src/libnm-client-impl/nm-device-ovs-bridge.c \ - src/libnm-client-impl/nm-device-ovs-interface.c \ - src/libnm-client-impl/nm-device-ovs-port.c \ - src/libnm-client-impl/nm-device-ppp.c \ - src/libnm-client-impl/nm-device-team.c \ - src/libnm-client-impl/nm-device-tun.c \ - src/libnm-client-impl/nm-device-veth.c \ - src/libnm-client-impl/nm-device-vlan.c \ - src/libnm-client-impl/nm-device-vrf.c \ - src/libnm-client-impl/nm-device-vxlan.c \ - src/libnm-client-impl/nm-device-wifi-p2p.c \ - src/libnm-client-impl/nm-device-wifi.c \ - src/libnm-client-impl/nm-device-wimax.c \ - src/libnm-client-impl/nm-device-wireguard.c \ - src/libnm-client-impl/nm-device-wpan.c \ - src/libnm-client-impl/nm-dhcp-config.c \ - src/libnm-client-impl/nm-dhcp4-config.c \ - src/libnm-client-impl/nm-dhcp6-config.c \ - src/libnm-client-impl/nm-dns-manager.c \ - src/libnm-client-impl/nm-ip-config.c \ - src/libnm-client-impl/nm-ip4-config.c \ - src/libnm-client-impl/nm-ip6-config.c \ - src/libnm-client-impl/nm-libnm-utils.c \ - src/libnm-client-impl/nm-remote-connection.c \ - src/libnm-client-impl/nm-secret-agent-old.c \ - src/libnm-client-impl/nm-vpn-connection.c \ - src/libnm-client-impl/nm-vpn-editor.c \ - src/libnm-client-impl/nm-vpn-plugin-old.c \ - src/libnm-client-impl/nm-vpn-service-plugin.c \ - src/libnm-client-impl/nm-wifi-p2p-peer.c \ - src/libnm-client-impl/nm-wimax-nsp.c \ - $(NULL) -src_libnm_client_public_mkenums_c = \ - src/libnm-client-public/nm-enum-types.c \ - $(NULL) - -libnminclude_HEADERS += \ - $(libnm_lib_h_pub_real) - -nodist_libnminclude_HEADERS += \ - $(src_libnm_client_public_mkenums_h) - -EXTRA_DIST += src/libnm-client-public/meson.build - -check-local-nm-autoptr: - $(srcdir)/tools/check-nm-autoptr.sh - -check_local += check-local-nm-autoptr - -############################################################################### - -noinst_PROGRAMS += src/libnm-core-impl/gen-metadata-nm-settings-libnm-core - -src_libnm_core_impl_gen_metadata_nm_settings_libnm_core_SOURCES = \ - src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.c \ - $(NULL) - -src_libnm_core_impl_gen_metadata_nm_settings_libnm_core_CPPFLAGS = \ - $(clients_cppflags) \ - $(NULL) - -src_libnm_core_impl_gen_metadata_nm_settings_libnm_core_LDADD = \ - src/libnm-core-impl/libnm-core-impl.la \ - src/libnm-crypto/libnm-crypto.la \ - $(libnm_crypto_lib) \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-base/libnm-base.la \ - src/libnm-systemd-shared/libnm-systemd-shared.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(GLIB_LIBS) \ - $(NULL) - -src_libnm_core_impl_gen_metadata_nm_settings_libnm_core_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/linker-script-binary.ver" \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -$(src_libnm_core_impl_gen_metadata_nm_settings_libnm_core_OBJECTS): $(src_libnm_core_public_mkenums_h) - -############################################################################### - -noinst_LTLIBRARIES += src/libnm-client-impl/libnm-client-impl.la - -src_libnm_client_impl_libnm_client_impl_la_CPPFLAGS = \ - -I$(builddir)/src/libnm-client-public \ - -I$(srcdir)/src/libnm-client-public \ - -I$(srcdir)/src \ - $(dflt_cppflags_libnm_core) \ - $(INTROSPECTION_CFLAGS) \ - $(NULL) - -src_libnm_client_impl_libnm_client_impl_la_SOURCES = \ - $(libnm_lib_c_real) \ - $(NULL) - -nodist_src_libnm_client_impl_libnm_client_impl_la_SOURCES = \ - $(src_libnm_client_public_mkenums_h) \ - $(src_libnm_client_public_mkenums_c) \ - $(NULL) - -src_libnm_client_impl_libnm_client_impl_la_LIBADD = \ - src/libnm-core-aux-extern/libnm-core-aux-extern.la \ - src/libnm-core-impl/libnm-core-impl.la \ - src/libnm-crypto/libnm-crypto.la \ - $(libnm_crypto_lib) \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-base/libnm-base.la \ - introspection/libnmdbus.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-systemd-shared/libnm-systemd-shared.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-udev-aux/libnm-udev-aux.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(GLIB_LIBS) \ - $(DL_LIBS) \ - $(LIBUDEV_LIBS) \ - $(NULL) - -$(src_libnm_client_impl_libnm_client_impl_la_OBJECTS) : $(src_libnm_client_public_mkenums_h) -$(src_libnm_client_impl_libnm_client_impl_la_OBJECTS) : $(src_libnm_core_public_mkenums_h) - -############################################################################### - -lib_LTLIBRARIES += src/libnm-client-impl/libnm.la - -GLIB_GENERATED += \ - $(src_libnm_client_public_mkenums_h) \ - $(src_libnm_client_public_mkenums_c) -nm_enum_types_sources = \ - $(src_libnm_client_public_mkenums_h) \ - $(libnm_lib_h_pub_real) -nm_enum_types_MKENUMS_H_FLAGS = --fhead '\#include "nm-core-enum-types.h"\n' -nm_enum_types_MKENUMS_C_FLAGS = --fhead '\#undef G_LOG_DOMAIN\n\#include "libnm-client-impl/nm-default-libnm.h"\n' - -$(src_nm_dispatcher_nm_dispatcher_OBJECTS): $(src_libnm_client_public_mkenums_h) -$(src_nm_dispatcher_libnm_dispatcher_core_la_OBJECTS): $(src_libnm_client_public_mkenums_h) -$(src_libnm_client_impl_libnm_la_OBJECTS): $(src_libnm_client_public_mkenums_h) -$(src_contrib_tests_libnm_vpn_plugin_utils_test_la_OBJECTS): $(src_libnm_client_public_mkenums_h) - -src_libnm_client_impl_libnm_la_CPPFLAGS = \ - -I$(builddir)/src/libnm-client-public \ - -I$(srcdir)/src/libnm-client-public \ - -I$(srcdir)/src \ - $(dflt_cppflags_libnm_core) \ - $(LIBUDEV_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_libnm_client_impl_libnm_la_SOURCES = \ - $(libnm_lib_h_pub_real) \ - $(libnm_lib_h_priv) \ - $(NULL) - -EXTRA_src_libnm_client_impl_libnm_la_DEPENDENCIES = \ - src/libnm-client-impl/libnm.ver - -src_libnm_client_impl_libnm_la_LIBADD = \ - src/libnm-client-impl/libnm-client-impl.la \ - $(NULL) - -src_libnm_client_impl_libnm_la_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/src/libnm-client-impl/libnm.ver" \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_LIB_LDFLAGS) \ - -version-info "1:0:1" - -check-local-exports-libnm: src/libnm-client-impl/libnm.la - $(srcdir)/tools/check-exports.sh "$(builddir)/src/libnm-client-impl/.libs/libnm.so" "$(srcdir)/src/libnm-client-impl/libnm.ver" - -check_local += check-local-exports-libnm - -pkgconfig_DATA += src/libnm-client-impl/libnm.pc - -DISTCLEANFILES += \ - src/libnm-client-impl/libnm.pc - -EXTRA_DIST += \ - src/libnm-client-public/nm-enum-types.c.template \ - src/libnm-client-public/nm-enum-types.h.template \ - \ - src/libnm-client-impl/libnm.pc.in \ - src/libnm-client-impl/libnm.ver - -############################################################################### - -src/libnm-client-impl/NM-1.0.gir: src/libnm-client-impl/libnm.la -src_libnm_client_impl_NM_1_0_gir_INCLUDES = Gio-2.0 -src_libnm_client_impl_NM_1_0_gir_PACKAGES = gio-2.0 -src_libnm_client_impl_NM_1_0_gir_EXPORT_PACKAGES = libnm -src_libnm_client_impl_NM_1_0_gir_CFLAGS = \ - $(filter-out -DGLIB_VERSION_%, $(src_libnm_client_impl_libnm_la_CPPFLAGS)) \ - -DNETWORKMANAGER_COMPILATION \ - $(NULL) -src_libnm_client_impl_NM_1_0_gir_LIBS = src/libnm-client-impl/libnm.la -src_libnm_client_impl_NM_1_0_gir_FILES = \ - $(src_libnm_core_public_mkenums_h) \ - $(src_libnm_core_impl_lib_h_pub_real) \ - $(src_libnm_core_public_mkenums_c) \ - $(src_libnm_core_impl_lib_c_real) \ - $(src_libnm_client_public_mkenums_h) \ - $(libnm_lib_h_pub_real) \ - $(src_libnm_client_public_mkenums_c) \ - $(libnm_lib_c_real) -src_libnm_client_impl_NM_1_0_gir_SCANNERFLAGS = --warn-all --identifier-prefix=NM --symbol-prefix=nm --c-include="NetworkManager.h" - -src/libnm-client-impl/libnm.typelib: src/libnm-client-impl/libnm.gir - $(INTROSPECTION_COMPILER) --includedir=$(srcdir)/src/libnm-core-public --includedir=$(builddir)/src/libnm-core-public --includedir=$(srcdir)/libnm-client-public --includedir=$(builddir)/libnm-client-public $< -o $@ - - -libnm_noinst_data = \ - src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml \ - src/nmcli/gen-metadata-nm-settings-nmcli.xml \ - man/nm-settings-docs-dbus.xml \ - man/nm-settings-docs-nmcli.xml \ - src/libnm-client-impl/nm-property-infos-dbus.xml \ - src/libnm-client-impl/nm-property-infos-ifcfg-rh.xml \ - src/libnm-client-impl/nm-property-infos-keyfile.xml \ - src/libnm-client-impl/nm-property-infos-nmcli.xml \ - src/libnm-client-impl/nm-settings-docs-gir-dbus.xml \ - src/libnm-client-impl/nm-settings-docs-gir-ifcfg-rh.xml \ - src/libnm-client-impl/nm-settings-docs-gir-keyfile.xml \ - src/libnm-client-impl/nm-settings-docs-gir-nmcli.xml \ - src/libnmc-setting/settings-docs-input.xml \ - $(NULL) - -if HAVE_INTROSPECTION -INTROSPECTION_GIRS += src/libnm-client-impl/NM-1.0.gir -noinst_DATA += $(libnm_noinst_data) -DISTCLEANFILES += $(libnm_noinst_data) - -EXTRA_DIST += \ - src/nmcli/gen-metadata-nm-settings-nmcli.xml.in \ - src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml.in - -src_libnm_client_impl_NM_1_0_typelib = src/libnm-client-impl/NM-1.0.typelib -else -src_libnm_client_impl_NM_1_0_typelib = -endif - -############################################################################### - -if BUILD_DOCS -src/nmcli/gen-metadata-nm-settings-nmcli.xml: src/nmcli/gen-metadata-nm-settings-nmcli - $(AM_V_GEN) src/nmcli/gen-metadata-nm-settings-nmcli > "$@" -check-local-gen-metadata-nm-settings-nmcli: src/nmcli/gen-metadata-nm-settings-nmcli.xml - $(srcdir)/tools/check-compare-generated.sh "$(srcdir)/src/nmcli/gen-metadata-nm-settings-nmcli.xml.in" "$(builddir)/src/nmcli/gen-metadata-nm-settings-nmcli.xml" -check_local += check-local-gen-metadata-nm-settings-nmcli -DISTCLEANFILES += src/nmcli/gen-metadata-nm-settings-nmcli.xml - -src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml: src/libnm-core-impl/gen-metadata-nm-settings-libnm-core - $(AM_V_GEN) src/libnm-core-impl/gen-metadata-nm-settings-libnm-core > "$@" -check-local-gen-metadata-nm-settings-libnm-core: src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml - $(srcdir)/tools/check-compare-generated.sh "$(srcdir)/src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml.in" "$(builddir)/src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml" -check_local += check-local-gen-metadata-nm-settings-libnm-core -DISTCLEANFILES += src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml -else -src/nmcli/gen-metadata-nm-settings-nmcli.xml: src/nmcli/gen-metadata-nm-settings-nmcli.xml.in - $(AM_V_GEN) cp $^ $@ -check-local-gen-metadata-nm-settings-nmcli: - -src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml: src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml.in - $(AM_V_GEN) cp $^ $@ -check-local-gen-metadata-nm-settings-libnm-core: -endif - -libnm_docs_sources = $(src_libnm_core_impl_lib_c_settings_real) - -src/libnm-client-impl/nm-property-infos-%.xml: tools/generate-docs-nm-property-infos.py src/libnm-core-impl/libnm-core-impl.la src/libnm-client-impl/NM-1.0.gir $(libnm_docs_sources) - $(AM_V_GEN) \ - "$(PYTHON)" \ - $(srcdir)/tools/generate-docs-nm-property-infos.py \ - $(patsubst nm-property-infos-%.xml,%,$(notdir $@)) \ - $@ \ - $(wordlist 3,1000,$^) - -src/libnm-client-impl/nm-settings-docs-gir-%.xml: tools/generate-docs-nm-settings-docs-gir.py src/libnm-client-impl/NM-1.0.gir src/libnm-client-impl/NM-1.0.typelib src/libnm-client-impl/libnm.la $(libnm_docs_sources) - $(AM_V_GEN) \ - export GI_TYPELIB_PATH=$(abs_builddir)/src/libnm-client-impl$${GI_TYPELIB_PATH:+:$$GI_TYPELIB_PATH}; \ - export LD_LIBRARY_PATH=$(abs_builddir)/src/libnm-client-impl/.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}; \ - $(call set_sanitizer_env,$(abs_builddir)/src/libnm-client-impl/.libs/libnm.so); \ - "$(PYTHON)" \ - $(srcdir)/tools/generate-docs-nm-settings-docs-gir.py \ - --gir $(builddir)/src/libnm-client-impl/NM-1.0.gir \ - --output $@ \ - --target $(patsubst nm-settings-docs-gir-%.xml,%,$(notdir $@)) - -man/nm-settings-docs-nmcli.xml: src/nmcli/gen-metadata-nm-settings-nmcli.xml src/libnm-client-impl/nm-property-infos-nmcli.xml src/libnm-client-impl/nm-settings-docs-gir-nmcli.xml tools/generate-docs-nm-settings-docs-merge.py man/common.ent - $(AM_V_GEN) \ - "$(PYTHON)" \ - "$(srcdir)/tools/generate-docs-nm-settings-docs-merge.py" \ - "$@" \ - --only-properties-from \ - "$<" \ - $(wordlist 1,3,$^) - -src/libnmc-setting/settings-docs-input.xml: src/libnm-client-impl/nm-property-infos-nmcli.xml src/libnm-client-impl/nm-settings-docs-gir-nmcli.xml tools/generate-docs-nm-settings-docs-merge.py - $(AM_V_GEN) "$(PYTHON)" $(srcdir)/tools/generate-docs-nm-settings-docs-merge.py $@ $(wordlist 1,2,$^) - -man/nm-settings-docs-%.xml: src/libnm-client-impl/nm-property-infos-%.xml src/libnm-client-impl/nm-settings-docs-gir-%.xml tools/generate-docs-nm-settings-docs-merge.py man/common.ent - $(AM_V_GEN) "$(PYTHON)" $(srcdir)/tools/generate-docs-nm-settings-docs-merge.py $@ $(wordlist 1,2,$^) - - -EXTRA_DIST += \ - tools/generate-docs-nm-property-infos.py \ - tools/generate-docs-nm-settings-docs-merge.py \ - tools/generate-docs-nm-settings-docs-gir.py \ - src/libnm-client-impl/meson.build \ - $(NULL) - -############################################################################### - -check_programs += src/libnm-client-impl/tests/test-libnm - -src_libnm_client_impl_tests_programs_req_introspection = \ - src/libnm-client-impl/tests/test-nm-client \ - src/libnm-client-impl/tests/test-remote-settings-client \ - src/libnm-client-impl/tests/test-secret-agent - -check-local-libnm-gir: $(builddir)/src/libnm-client-impl/NM-1.0.gir -check-local-libnm-gir: $(srcdir)/src/libnm-client-impl/libnm.ver -check-local-libnm-gir: - "$(PYTHON)" $(srcdir)/src/libnm-client-impl/tests/test-gir.py \ - --gir $(builddir)/src/libnm-client-impl/NM-1.0.gir \ - --ver $(srcdir)/src/libnm-client-impl/libnm.ver - -if HAVE_INTROSPECTION -check_programs += $(src_libnm_client_impl_tests_programs_req_introspection) -check_local += check-local-libnm-gir -else -check_programs_norun += $(src_libnm_client_impl_tests_programs_req_introspection) -endif - -src_libnm_client_impl_tests_cppflags = \ - -I$(srcdir)/src/libnm-client-public \ - -I$(builddir)/src/libnm-client-public \ - $(dflt_cppflags_libnm_core) \ - $(SANITIZER_EXEC_CFLAGS) \ - $(NULL) - -src_libnm_client_impl_tests_ldadd = \ - src/libnm-client-test/libnm-client-test.la \ - src/libnm-client-impl/libnm-client-impl.la \ - $(GLIB_LIBS) \ - $(NULL) - -src_libnm_client_impl_tests_ldflags = \ - $(SANITIZER_EXEC_LDFLAGS) - -src_libnm_client_impl_tests_test_libnm_CPPFLAGS = $(src_libnm_client_impl_tests_cppflags) -src_libnm_client_impl_tests_test_nm_client_CPPFLAGS = $(src_libnm_client_impl_tests_cppflags) -src_libnm_client_impl_tests_test_remote_settings_client_CPPFLAGS = $(src_libnm_client_impl_tests_cppflags) -src_libnm_client_impl_tests_test_secret_agent_CPPFLAGS = $(src_libnm_client_impl_tests_cppflags) - -src_libnm_client_impl_tests_test_libnm_SOURCES = \ - src/contrib/nm-compat.c \ - src/contrib/nm-compat.h \ - src/libnm-client-impl/tests/test-libnm.c \ - $(NULL) - -src_libnm_client_impl_tests_test_libnm_LDADD = $(src_libnm_client_impl_tests_ldadd) -src_libnm_client_impl_tests_test_nm_client_LDADD = $(src_libnm_client_impl_tests_ldadd) -src_libnm_client_impl_tests_test_remote_settings_client_LDADD = $(src_libnm_client_impl_tests_ldadd) -src_libnm_client_impl_tests_test_secret_agent_LDADD = $(src_libnm_client_impl_tests_ldadd) - -src_libnm_client_impl_tests_test_libnm_LDFLAGS = $(src_libnm_client_impl_tests_ldflags) -src_libnm_client_impl_tests_test_nm_client_LDFLAGS = $(src_libnm_client_impl_tests_ldflags) -src_libnm_client_impl_tests_test_remote_settings_client_LDFLAGS = $(src_libnm_client_impl_tests_ldflags) -src_libnm_client_impl_tests_test_secret_agent_LDFLAGS = $(src_libnm_client_impl_tests_ldflags) - -$(src_libnm_client_impl_tests_test_libnm_OBJECTS): $(src_libnm_core_public_mkenums_h) $(src_libnm_client_public_mkenums_h) -$(src_libnm_client_impl_tests_test_nm_client_OBJECTS): $(src_libnm_core_public_mkenums_h) $(src_libnm_client_public_mkenums_h) -$(src_libnm_client_impl_tests_test_remote_settings_client_OBJECTS): $(src_libnm_core_public_mkenums_h) $(src_libnm_client_public_mkenums_h) -$(src_libnm_client_impl_tests_test_secret_agent_OBJECTS): $(src_libnm_core_public_mkenums_h) $(src_libnm_client_public_mkenums_h) - -# tools/test-networkmanager-service.py uses libnm's typelib. Ensure it -# is built first. -$(src_libnm_client_impl_tests_test_nm_client_OBJECTS): $(src_libnm_client_impl_NM_1_0_typelib) -$(src_libnm_client_impl_tests_test_remote_settings_client_OBJECTS): $(src_libnm_client_impl_NM_1_0_typelib) -$(src_libnm_client_impl_tests_test_secret_agent_OBJECTS): $(src_libnm_client_impl_NM_1_0_typelib) - -EXTRA_DIST += \ - src/libnm-client-impl/tests/meson.build \ - src/libnm-client-impl/tests/test-gir.py - -############################################################################### - -# just test, that we can build "nm-vpn-plugin-utils.c" - -check_ltlibraries += src/contrib/tests/libnm-vpn-plugin-utils-test.la - -src_contrib_tests_libnm_vpn_plugin_utils_test_la_SOURCES = \ - src/contrib/nm-vpn-plugin-utils.c \ - src/contrib/nm-vpn-plugin-utils.h \ - $(NULL) - -src_contrib_tests_libnm_vpn_plugin_utils_test_la_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-client-public \ - -I$(builddir)/src/libnm-client-public \ - $(GLIB_CFLAGS) \ - $(SANITIZER_EXEC_CFLAGS) \ - $(NULL) - -src_contrib_tests_libnm_vpn_plugin_utils_test_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -EXTRA_DIST += \ - src/contrib/meson.build \ - src/contrib/tests/meson.build \ - $(NULL) - -############################################################################### -# src/core/ -############################################################################### - -src_core_cppflags_base = \ - -I$(srcdir)/src/core \ - $(dflt_cppflags_libnm_core) \ - $(SANITIZER_EXEC_CFLAGS) \ - $(NULL) - -src_core_cppflags_base_test = \ - $(src_core_cppflags_base) \ - $(NULL) - -src_core_cppflags_device_plugin = \ - $(src_core_cppflags_base) - -src_core_cppflags = \ - $(src_core_cppflags_base) \ - \ - $(LIBNDP_CFLAGS) \ - $(LIBPSL_CFLAGS) \ - $(LIBCURL_CFLAGS) \ - $(SELINUX_CFLAGS) \ - $(LIBAUDIT_CFLAGS) \ - $(SYSTEMD_LOGIN_CFLAGS) \ - $(SYSTEMD_JOURNAL_CFLAGS) \ - \ - $(NULL) - -src_core_cppflags_test = \ - $(src_core_cppflags) \ - $(NULL) - -if REQUIRE_ROOT_TESTS -src_core_cppflags_test += -DREQUIRE_ROOT_TESTS=1 -endif - -src_core_ldflags = $(CODE_COVERAGE_LDFLAGS) - -sbin_PROGRAMS += \ - src/core/NetworkManager - -noinst_LTLIBRARIES += \ - src/core/libNetworkManagerBase.la \ - src/core/libNetworkManager.la \ - src/libnm-systemd-core/libnm-systemd-core.la \ - $(NULL) - -check-config-options: - $(srcdir)/tools/check-config-options.sh "$(srcdir)" - -check_local += check-config-options - -############################################################################### - -libsystemd_cppflags = \ - $(dflt_cppflags) \ - -I$(srcdir)/src/ \ - -I$(builddir)/src/ \ - -I$(srcdir)/src/libnm-systemd-shared/ \ - -I$(srcdir)/src/libnm-systemd-shared/sd-adapt-shared \ - -I$(srcdir)/src/libnm-systemd-shared/src/basic \ - -I$(srcdir)/src/libnm-systemd-shared/src/fundamental \ - -I$(srcdir)/src/libnm-systemd-shared/src/shared \ - $(LIBSYSTEMD_NM_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(CODE_COVERAGE_CFLAGS) \ - $(NULL) - -noinst_LTLIBRARIES += src/libnm-systemd-shared/libnm-systemd-shared.la - -src_libnm_systemd_shared_libnm_systemd_shared_la_CPPFLAGS = \ - $(libsystemd_cppflags) \ - $(NULL) - -src_libnm_systemd_shared_libnm_systemd_shared_la_SOURCES = \ - src/libnm-systemd-shared/nm-default-systemd-shared.h \ - src/libnm-systemd-shared/nm-sd-utils-shared.c \ - src/libnm-systemd-shared/nm-sd-utils-shared.h \ - src/libnm-systemd-shared/sd-adapt-shared/architecture.h \ - src/libnm-systemd-shared/sd-adapt-shared/argv-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/arphrd-list.h \ - src/libnm-systemd-shared/sd-adapt-shared/blockdev-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/build.h \ - src/libnm-systemd-shared/sd-adapt-shared/chase-symlinks.h \ - src/libnm-systemd-shared/sd-adapt-shared/chase.h \ - src/libnm-systemd-shared/sd-adapt-shared/copy.h \ - src/libnm-systemd-shared/sd-adapt-shared/dhcp-server-internal.h \ - src/libnm-systemd-shared/sd-adapt-shared/dirent-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/errno-list.h \ - src/libnm-systemd-shared/sd-adapt-shared/filesystems.h \ - src/libnm-systemd-shared/sd-adapt-shared/glob-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/gunicode.h \ - src/libnm-systemd-shared/sd-adapt-shared/hmac.h \ - src/libnm-systemd-shared/sd-adapt-shared/idn-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/ioprio.h \ - src/libnm-systemd-shared/sd-adapt-shared/mallinfo-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/memfd-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/memstream-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/missing_fs.h \ - src/libnm-systemd-shared/sd-adapt-shared/missing_ioprio.h \ - src/libnm-systemd-shared/sd-adapt-shared/missing_keyctl.h \ - src/libnm-systemd-shared/sd-adapt-shared/missing_magic.h \ - src/libnm-systemd-shared/sd-adapt-shared/missing_network.h \ - src/libnm-systemd-shared/sd-adapt-shared/missing_sched.h \ - src/libnm-systemd-shared/sd-adapt-shared/missing_syscall_def.h \ - src/libnm-systemd-shared/sd-adapt-shared/missing_timerfd.h \ - src/libnm-systemd-shared/sd-adapt-shared/mkdir.h \ - src/libnm-systemd-shared/sd-adapt-shared/mountpoint-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/namespace-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/nm-sd-adapt-shared.h \ - src/libnm-systemd-shared/sd-adapt-shared/nulstr-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/os-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/psi-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/raw-clone.h \ - src/libnm-systemd-shared/sd-adapt-shared/rlimit-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/sync-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/sysctl-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/terminal-util.h \ - src/libnm-systemd-shared/sd-adapt-shared/unaligned-fundamental.h \ - src/libnm-systemd-shared/sd-adapt-shared/unaligned.h \ - src/libnm-systemd-shared/sd-adapt-shared/virt.h \ - src/libnm-systemd-shared/src/basic/alloc-util.c \ - src/libnm-systemd-shared/src/basic/alloc-util.h \ - src/libnm-systemd-shared/src/basic/arphrd-util.h \ - src/libnm-systemd-shared/src/basic/btrfs.c \ - src/libnm-systemd-shared/src/basic/btrfs.h \ - src/libnm-systemd-shared/src/basic/cgroup-util.h \ - src/libnm-systemd-shared/src/basic/chase.h \ - src/libnm-systemd-shared/src/basic/constants.h \ - src/libnm-systemd-shared/src/basic/devnum-util.c \ - src/libnm-systemd-shared/src/basic/devnum-util.h \ - src/libnm-systemd-shared/src/basic/dns-def.h \ - src/libnm-systemd-shared/src/basic/env-file.c \ - src/libnm-systemd-shared/src/basic/env-file.h \ - src/libnm-systemd-shared/src/basic/env-util.c \ - src/libnm-systemd-shared/src/basic/env-util.h \ - src/libnm-systemd-shared/src/basic/errno-util.h \ - src/libnm-systemd-shared/src/basic/escape.c \ - src/libnm-systemd-shared/src/basic/escape.h \ - src/libnm-systemd-shared/src/basic/ether-addr-util.c \ - src/libnm-systemd-shared/src/basic/ether-addr-util.h \ - src/libnm-systemd-shared/src/basic/extract-word.c \ - src/libnm-systemd-shared/src/basic/extract-word.h \ - src/libnm-systemd-shared/src/basic/fd-util.c \ - src/libnm-systemd-shared/src/basic/fd-util.h \ - src/libnm-systemd-shared/src/basic/fileio.c \ - src/libnm-systemd-shared/src/basic/fileio.h \ - src/libnm-systemd-shared/src/basic/format-util.c \ - src/libnm-systemd-shared/src/basic/format-util.h \ - src/libnm-systemd-shared/src/basic/fs-util.c \ - src/libnm-systemd-shared/src/basic/fs-util.h \ - src/libnm-systemd-shared/src/basic/glyph-util.c \ - src/libnm-systemd-shared/src/basic/glyph-util.h \ - src/libnm-systemd-shared/src/basic/hash-funcs.c \ - src/libnm-systemd-shared/src/basic/hash-funcs.h \ - src/libnm-systemd-shared/src/basic/hashmap.c \ - src/libnm-systemd-shared/src/basic/hashmap.h \ - src/libnm-systemd-shared/src/basic/hexdecoct.c \ - src/libnm-systemd-shared/src/basic/hexdecoct.h \ - src/libnm-systemd-shared/src/basic/hostname-util.c \ - src/libnm-systemd-shared/src/basic/hostname-util.h \ - src/libnm-systemd-shared/src/basic/in-addr-util.c \ - src/libnm-systemd-shared/src/basic/in-addr-util.h \ - src/libnm-systemd-shared/src/basic/inotify-util.c \ - src/libnm-systemd-shared/src/basic/inotify-util.h \ - src/libnm-systemd-shared/src/basic/io-util.c \ - src/libnm-systemd-shared/src/basic/io-util.h \ - src/libnm-systemd-shared/src/basic/iovec-util.h \ - src/libnm-systemd-shared/src/basic/label.c \ - src/libnm-systemd-shared/src/basic/label.h \ - src/libnm-systemd-shared/src/basic/list.h \ - src/libnm-systemd-shared/src/basic/locale-util.c \ - src/libnm-systemd-shared/src/basic/locale-util.h \ - src/libnm-systemd-shared/src/basic/lock-util.h \ - src/libnm-systemd-shared/src/basic/log.h \ - src/libnm-systemd-shared/src/basic/macro.h \ - src/libnm-systemd-shared/src/basic/memory-util.c \ - src/libnm-systemd-shared/src/basic/memory-util.h \ - src/libnm-systemd-shared/src/basic/mempool.c \ - src/libnm-systemd-shared/src/basic/mempool.h \ - src/libnm-systemd-shared/src/basic/missing_fcntl.h \ - src/libnm-systemd-shared/src/basic/missing_random.h \ - src/libnm-systemd-shared/src/basic/missing_socket.h \ - src/libnm-systemd-shared/src/basic/missing_stat.h \ - src/libnm-systemd-shared/src/basic/missing_syscall.h \ - src/libnm-systemd-shared/src/basic/missing_threads.h \ - src/libnm-systemd-shared/src/basic/missing_type.h \ - src/libnm-systemd-shared/src/basic/namespace-util.h \ - src/libnm-systemd-shared/src/basic/ordered-set.c \ - src/libnm-systemd-shared/src/basic/ordered-set.h \ - src/libnm-systemd-shared/src/basic/origin-id.h \ - src/libnm-systemd-shared/src/basic/parse-util.c \ - src/libnm-systemd-shared/src/basic/parse-util.h \ - src/libnm-systemd-shared/src/basic/path-util.c \ - src/libnm-systemd-shared/src/basic/path-util.h \ - src/libnm-systemd-shared/src/basic/pidref.h \ - src/libnm-systemd-shared/src/basic/prioq.c \ - src/libnm-systemd-shared/src/basic/prioq.h \ - src/libnm-systemd-shared/src/basic/process-util.c \ - src/libnm-systemd-shared/src/basic/process-util.h \ - src/libnm-systemd-shared/src/basic/random-util.c \ - src/libnm-systemd-shared/src/basic/random-util.h \ - src/libnm-systemd-shared/src/basic/ratelimit.c \ - src/libnm-systemd-shared/src/basic/ratelimit.h \ - src/libnm-systemd-shared/src/basic/set.h \ - src/libnm-systemd-shared/src/basic/signal-util.c \ - src/libnm-systemd-shared/src/basic/signal-util.h \ - src/libnm-systemd-shared/src/basic/siphash24.h \ - src/libnm-systemd-shared/src/basic/socket-util.c \ - src/libnm-systemd-shared/src/basic/socket-util.h \ - src/libnm-systemd-shared/src/basic/sort-util.h \ - src/libnm-systemd-shared/src/basic/sparse-endian.h \ - src/libnm-systemd-shared/src/basic/stat-util.c \ - src/libnm-systemd-shared/src/basic/stat-util.h \ - src/libnm-systemd-shared/src/basic/stdio-util.h \ - src/libnm-systemd-shared/src/basic/string-table.c \ - src/libnm-systemd-shared/src/basic/string-table.h \ - src/libnm-systemd-shared/src/basic/string-util.c \ - src/libnm-systemd-shared/src/basic/string-util.h \ - src/libnm-systemd-shared/src/basic/strv.c \ - src/libnm-systemd-shared/src/basic/strv.h \ - src/libnm-systemd-shared/src/basic/strxcpyx.c \ - src/libnm-systemd-shared/src/basic/strxcpyx.h \ - src/libnm-systemd-shared/src/basic/time-util.c \ - src/libnm-systemd-shared/src/basic/time-util.h \ - src/libnm-systemd-shared/src/basic/tmpfile-util.c \ - src/libnm-systemd-shared/src/basic/tmpfile-util.h \ - src/libnm-systemd-shared/src/basic/umask-util.h \ - src/libnm-systemd-shared/src/basic/user-util.h \ - src/libnm-systemd-shared/src/basic/utf8.c \ - src/libnm-systemd-shared/src/basic/utf8.h \ - src/libnm-systemd-shared/src/fundamental/logarithm.h \ - src/libnm-systemd-shared/src/fundamental/macro-fundamental.h \ - src/libnm-systemd-shared/src/fundamental/memory-util-fundamental.h \ - src/libnm-systemd-shared/src/fundamental/sha256.c \ - src/libnm-systemd-shared/src/fundamental/sha256.h \ - src/libnm-systemd-shared/src/fundamental/string-util-fundamental.c \ - src/libnm-systemd-shared/src/fundamental/string-util-fundamental.h \ - src/libnm-systemd-shared/src/shared/dns-domain.c \ - src/libnm-systemd-shared/src/shared/dns-domain.h \ - src/libnm-systemd-shared/src/shared/log-link.h \ - src/libnm-systemd-shared/src/shared/web-util.c \ - src/libnm-systemd-shared/src/shared/web-util.h \ - $(NULL) - -src_libnm_systemd_shared_libnm_systemd_shared_la_LIBADD = \ - $(GLIB_LIBS) \ - $(CODE_COVERAGE_LDFLAGS) \ - $(NULL) - -EXTRA_DIST += src/libnm-systemd-shared/meson.build - -############################################################################### - -src_libnm_systemd_core_libnm_systemd_core_la_cppflags = \ - $(libsystemd_cppflags) \ - -I$(srcdir)/src/libnm-systemd-core/sd-adapt-core \ - -I$(srcdir)/src/libnm-systemd-core/src/systemd \ - -I$(srcdir)/src/libnm-systemd-core/src/libsystemd-network \ - -I$(srcdir)/src/libnm-systemd-core/src/libsystemd/sd-device \ - -I$(srcdir)/src/libnm-systemd-core/src/libsystemd/sd-event \ - $(NULL) - -src_libnm_systemd_core_libnm_systemd_core_la_libadd = \ - $(GLIB_LIBS) \ - $(CODE_COVERAGE_LDFLAGS) \ - $(NULL) - -src_libnm_systemd_core_libnm_systemd_core_la_SOURCES = \ - src/libnm-systemd-core/nm-default-systemd-core.h \ - src/libnm-systemd-core/nm-sd.c \ - src/libnm-systemd-core/nm-sd.h \ - src/libnm-systemd-core/sd-adapt-core/condition.h \ - src/libnm-systemd-core/sd-adapt-core/conf-parser.h \ - src/libnm-systemd-core/sd-adapt-core/khash.h \ - src/libnm-systemd-core/sd-adapt-core/netif-util.c \ - src/libnm-systemd-core/sd-adapt-core/netif-util.h \ - src/libnm-systemd-core/sd-adapt-core/network-util.h \ - src/libnm-systemd-core/sd-adapt-core/nm-sd-adapt-core.c \ - src/libnm-systemd-core/sd-adapt-core/nm-sd-adapt-core.h \ - src/libnm-systemd-core/sd-adapt-core/sd-daemon.h \ - src/libnm-systemd-core/sd-adapt-core/sd-messages.h \ - src/libnm-systemd-core/sd-adapt-core/udev-util.h \ - src/libnm-systemd-core/src/libsystemd-network/sd-dhcp-duid.c \ - src/libnm-systemd-core/src/libsystemd-network/dhcp-duid-internal.h \ - src/libnm-systemd-core/src/libsystemd-network/dhcp6-client-internal.h \ - src/libnm-systemd-core/src/libsystemd-network/dhcp6-internal.h \ - src/libnm-systemd-core/src/libsystemd-network/dhcp6-lease-internal.h \ - src/libnm-systemd-core/src/libsystemd-network/dhcp6-network.c \ - src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c \ - src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.h \ - src/libnm-systemd-core/src/libsystemd-network/dhcp6-protocol.c \ - src/libnm-systemd-core/src/libsystemd-network/dhcp6-protocol.h \ - src/libnm-systemd-core/src/libsystemd-network/network-common.c \ - src/libnm-systemd-core/src/libsystemd-network/network-common.h \ - src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c \ - src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-lease.c \ - src/libnm-systemd-core/src/libsystemd/sd-device/device-internal.h \ - src/libnm-systemd-core/src/libsystemd/sd-device/device-private.c \ - src/libnm-systemd-core/src/libsystemd/sd-device/device-private.h \ - src/libnm-systemd-core/src/libsystemd/sd-device/device-util.h \ - src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c \ - src/libnm-systemd-core/src/libsystemd/sd-event/event-source.h \ - src/libnm-systemd-core/src/libsystemd/sd-event/event-util.c \ - src/libnm-systemd-core/src/libsystemd/sd-event/event-util.h \ - src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c \ - src/libnm-systemd-core/src/libsystemd/sd-id128/id128-util.c \ - src/libnm-systemd-core/src/libsystemd/sd-id128/id128-util.h \ - src/libnm-systemd-core/src/libsystemd/sd-id128/sd-id128.c \ - src/libnm-systemd-core/src/systemd/_sd-common.h \ - src/libnm-systemd-core/src/systemd/sd-device.h \ - src/libnm-systemd-core/src/systemd/sd-dhcp-duid.h \ - src/libnm-systemd-core/src/systemd/sd-dhcp6-client.h \ - src/libnm-systemd-core/src/systemd/sd-dhcp6-lease.h \ - src/libnm-systemd-core/src/systemd/sd-dhcp6-option.h \ - src/libnm-systemd-core/src/systemd/sd-dhcp6-protocol.h \ - src/libnm-systemd-core/src/systemd/sd-event.h \ - src/libnm-systemd-core/src/systemd/sd-id128.h \ - src/libnm-systemd-core/src/systemd/sd-ndisc.h \ - $(NULL) - -src_libnm_systemd_core_libnm_systemd_core_la_CPPFLAGS = $(src_libnm_systemd_core_libnm_systemd_core_la_cppflags) -src_libnm_systemd_core_libnm_systemd_core_la_LIBADD = \ - $(GLIB_LIBS) \ - $(CODE_COVERAGE_LDFLAGS) \ - $(NULL) -$(src_libnm_systemd_core_libnm_systemd_core_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += src/libnm-systemd-core/meson.build - -############################################################################### - -src_core_libNetworkManagerBase_la_CPPFLAGS = \ - $(libsystemd_cppflags) \ - $(src_core_cppflags) - -src_core_libNetworkManagerBase_la_SOURCES = \ - \ - src/core/nm-core-utils.c \ - src/core/nm-core-utils.h \ - \ - src/core/NetworkManagerUtils.c \ - src/core/NetworkManagerUtils.h \ - \ - src/core/ndisc/nm-lndp-ndisc.c \ - src/core/ndisc/nm-lndp-ndisc.h \ - src/core/ndisc/nm-ndisc.c \ - src/core/ndisc/nm-ndisc.h \ - src/core/ndisc/nm-ndisc-private.h \ - \ - src/core/nm-dbus-utils.c \ - src/core/nm-dbus-utils.h \ - src/core/nm-dbus-object.c \ - src/core/nm-dbus-object.h \ - src/core/nm-netns.c \ - src/core/nm-netns.h \ - src/core/nm-l3-config-data.c \ - src/core/nm-l3-config-data.h \ - src/core/nm-l3-ipv4ll.c \ - src/core/nm-l3-ipv4ll.h \ - src/core/nm-l3-ipv6ll.c \ - src/core/nm-l3-ipv6ll.h \ - src/core/nm-l3cfg.c \ - src/core/nm-l3cfg.h \ - src/core/nm-ip-config.c \ - src/core/nm-ip-config.h \ - src/core/nm-bond-manager.c \ - src/core/nm-bond-manager.h \ - \ - src/core/dhcp/nm-dhcp-client.c \ - src/core/dhcp/nm-dhcp-client.h \ - src/core/dhcp/nm-dhcp-client-logging.h \ - src/core/dhcp/nm-dhcp-nettools.c \ - src/core/dhcp/nm-dhcp-utils.c \ - src/core/dhcp/nm-dhcp-utils.h \ - src/core/dhcp/nm-dhcp-options.c \ - src/core/dhcp/nm-dhcp-options.h \ - src/core/dhcp/nm-dhcp-systemd.c \ - src/core/dhcp/nm-dhcp-manager.c \ - src/core/dhcp/nm-dhcp-manager.h \ - \ - src/core/main-utils.c \ - src/core/main-utils.h \ - \ - $(NULL) - -src_core_libNetworkManagerBase_la_LIBADD = \ - $(GLIB_LIBS) \ - $(LIBUDEV_LIBS) \ - $(NULL) - -$(src_core_libNetworkManagerBase_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -############################################################################### - -src_core_libNetworkManager_la_CPPFLAGS = $(src_core_cppflags) - -src_core_libNetworkManager_la_SOURCES = \ - \ - src/core/nm-default-daemon.h \ - \ - src/core/nm-checkpoint.c \ - src/core/nm-checkpoint.h \ - src/core/nm-checkpoint-manager.c \ - src/core/nm-checkpoint-manager.h \ - \ - src/core/devices/nm-lldp-listener.c \ - src/core/devices/nm-lldp-listener.h \ - src/core/devices/nm-device-utils.c \ - src/core/devices/nm-device-utils.h \ - src/core/devices/nm-device.c \ - src/core/devices/nm-device.h \ - src/core/devices/nm-device-ethernet-utils.c \ - src/core/devices/nm-device-ethernet-utils.h \ - src/core/devices/nm-device-factory.c \ - src/core/devices/nm-device-factory.h \ - src/core/devices/nm-device-generic.c \ - src/core/devices/nm-device-generic.h \ - src/core/devices/nm-device-logging.h \ - src/core/devices/nm-device-private.h \ - \ - src/core/devices/nm-device-6lowpan.c \ - src/core/devices/nm-device-6lowpan.h \ - src/core/devices/nm-device-bond.c \ - src/core/devices/nm-device-bond.h \ - src/core/devices/nm-device-bridge.c \ - src/core/devices/nm-device-bridge.h \ - src/core/devices/nm-device-dummy.c \ - src/core/devices/nm-device-dummy.h \ - src/core/devices/nm-device-ethernet.c \ - src/core/devices/nm-device-ethernet.h \ - src/core/devices/nm-device-hsr.c \ - src/core/devices/nm-device-hsr.h \ - src/core/devices/nm-device-infiniband.c \ - src/core/devices/nm-device-infiniband.h \ - src/core/devices/nm-device-ip-tunnel.c \ - src/core/devices/nm-device-ip-tunnel.h \ - src/core/devices/nm-device-loopback.c \ - src/core/devices/nm-device-loopback.h \ - src/core/devices/nm-device-macsec.c \ - src/core/devices/nm-device-macsec.h \ - src/core/devices/nm-device-macvlan.c \ - src/core/devices/nm-device-macvlan.h \ - src/core/devices/nm-device-ppp.c \ - src/core/devices/nm-device-ppp.h \ - src/core/devices/nm-device-tun.c \ - src/core/devices/nm-device-tun.h \ - src/core/devices/nm-device-veth.c \ - src/core/devices/nm-device-veth.h \ - src/core/devices/nm-device-vlan.c \ - src/core/devices/nm-device-vlan.h \ - src/core/devices/nm-device-vrf.c \ - src/core/devices/nm-device-vrf.h \ - src/core/devices/nm-device-vxlan.c \ - src/core/devices/nm-device-vxlan.h \ - src/core/devices/nm-device-wireguard.c \ - src/core/devices/nm-device-wireguard.h \ - src/core/devices/nm-device-wpan.c \ - src/core/devices/nm-device-wpan.h \ - \ - src/core/dhcp/nm-dhcp-dhcpcanon.c \ - src/core/dhcp/nm-dhcp-dhclient.c \ - src/core/dhcp/nm-dhcp-dhcpcd.c \ - src/core/dhcp/nm-dhcp-helper-api.h \ - src/core/dhcp/nm-dhcp-listener.c \ - src/core/dhcp/nm-dhcp-listener.h \ - src/core/dhcp/nm-dhcp-dhclient-utils.c \ - src/core/dhcp/nm-dhcp-dhclient-utils.h \ - \ - src/core/dns/nm-dns-manager.c \ - src/core/dns/nm-dns-manager.h \ - src/core/dns/nm-dns-plugin.c \ - src/core/dns/nm-dns-plugin.h \ - src/core/dns/nm-dns-dnsmasq.c \ - src/core/dns/nm-dns-dnsmasq.h \ - src/core/dns/nm-dns-systemd-resolved.c \ - src/core/dns/nm-dns-systemd-resolved.h \ - \ - src/core/dnsmasq/nm-dnsmasq-manager.c \ - src/core/dnsmasq/nm-dnsmasq-manager.h \ - src/core/dnsmasq/nm-dnsmasq-utils.c \ - src/core/dnsmasq/nm-dnsmasq-utils.h \ - \ - src/core/ppp/nm-ppp-mgr.c \ - src/core/ppp/nm-ppp-mgr.h \ - src/core/ppp/nm-ppp-manager-call.c \ - src/core/ppp/nm-ppp-manager-call.h \ - src/core/ppp/nm-ppp-manager.h \ - src/core/ppp/nm-ppp-status.h \ - \ - src/core/nm-hostname-manager.c \ - src/core/nm-hostname-manager.h \ - \ - src/core/settings/nm-agent-manager.c \ - src/core/settings/nm-agent-manager.h \ - src/core/settings/nm-secret-agent.c \ - src/core/settings/nm-secret-agent.h \ - src/core/settings/nm-settings-connection.c \ - src/core/settings/nm-settings-connection.h \ - src/core/settings/nm-settings-storage.c \ - src/core/settings/nm-settings-storage.h \ - src/core/settings/nm-settings-plugin.c \ - src/core/settings/nm-settings-plugin.h \ - src/core/settings/nm-settings.c \ - src/core/settings/nm-settings.h \ - src/core/settings/nm-settings-utils.c \ - src/core/settings/nm-settings-utils.h \ - \ - src/core/settings/plugins/keyfile/nms-keyfile-storage.c \ - src/core/settings/plugins/keyfile/nms-keyfile-storage.h \ - src/core/settings/plugins/keyfile/nms-keyfile-plugin.c \ - src/core/settings/plugins/keyfile/nms-keyfile-plugin.h \ - src/core/settings/plugins/keyfile/nms-keyfile-reader.c \ - src/core/settings/plugins/keyfile/nms-keyfile-reader.h \ - src/core/settings/plugins/keyfile/nms-keyfile-utils.c \ - src/core/settings/plugins/keyfile/nms-keyfile-utils.h \ - src/core/settings/plugins/keyfile/nms-keyfile-writer.c \ - src/core/settings/plugins/keyfile/nms-keyfile-writer.h \ - \ - src/core/supplicant/nm-supplicant-config.c \ - src/core/supplicant/nm-supplicant-config.h \ - src/core/supplicant/nm-supplicant-interface.c \ - src/core/supplicant/nm-supplicant-interface.h \ - src/core/supplicant/nm-supplicant-manager.c \ - src/core/supplicant/nm-supplicant-manager.h \ - src/core/supplicant/nm-supplicant-settings-verify.c \ - src/core/supplicant/nm-supplicant-settings-verify.h \ - src/core/supplicant/nm-supplicant-types.h \ - \ - src/core/vpn/nm-vpn-connection.c \ - src/core/vpn/nm-vpn-connection.h \ - src/core/vpn/nm-vpn-manager.c \ - src/core/vpn/nm-vpn-manager.h \ - \ - src/core/nm-act-request.c \ - src/core/nm-act-request.h \ - src/core/nm-active-connection.c \ - src/core/nm-active-connection.h \ - src/core/nm-audit-manager.c \ - src/core/nm-audit-manager.h \ - src/core/nm-dbus-manager.c \ - src/core/nm-dbus-manager.h \ - src/core/nm-config.c \ - src/core/nm-config.h \ - src/core/nm-config-data.c \ - src/core/nm-config-data.h \ - src/core/nm-connectivity.c \ - src/core/nm-connectivity.h \ - src/core/nm-dcb.c \ - src/core/nm-dcb.h \ - src/core/nm-dhcp-config.c \ - src/core/nm-dhcp-config.h \ - src/core/nm-dispatcher.c \ - src/core/nm-dispatcher.h \ - src/core/nm-firewall-utils.c \ - src/core/nm-firewall-utils.h \ - src/core/nm-firewalld-manager.c \ - src/core/nm-firewalld-manager.h \ - src/core/nm-auth-manager.c \ - src/core/nm-auth-manager.h \ - src/core/nm-auth-utils.c \ - src/core/nm-auth-utils.h \ - src/core/nm-manager.c \ - src/core/nm-manager.h \ - src/core/nm-pacrunner-manager.c \ - src/core/nm-pacrunner-manager.h \ - src/core/nm-policy.c \ - src/core/nm-policy.h \ - src/core/nm-rfkill-manager.c \ - src/core/nm-rfkill-manager.h \ - src/core/nm-session-monitor.c \ - src/core/nm-session-monitor.h \ - src/core/nm-priv-helper-call.c \ - src/core/nm-priv-helper-call.h \ - src/core/nm-keep-alive.c \ - src/core/nm-keep-alive.h \ - src/core/nm-power-monitor.c \ - src/core/nm-power-monitor.h \ - src/core/nm-types.h \ - \ - $(NULL) - -src_core_libNetworkManager_la_LIBADD = \ - src/core/libNetworkManagerBase.la \ - src/libnm-core-aux-extern/libnm-core-aux-extern.la \ - src/libnm-core-impl/libnm-core-impl.la \ - src/libnm-crypto/libnm-crypto.la \ - $(libnm_crypto_lib) \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-platform/libnm-platform.la \ - src/libnm-base/libnm-base.la \ - src/libnm-log-core/libnm-log-core.la \ - src/libnm-lldp/libnm-lldp.la \ - src/libnm-udev-aux/libnm-udev-aux.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/libnm-systemd-core/libnm-systemd-core.la \ - src/libnm-systemd-shared/libnm-systemd-shared.la \ - src/n-acd/libn-acd.la \ - src/n-dhcp4/libn-dhcp4.la \ - src/c-rbtree/libc-rbtree.la \ - src/c-siphash/libc-siphash.la \ - $(GLIB_LIBS) \ - $(LIBUDEV_LIBS) \ - $(SYSTEMD_LOGIN_LIBS) \ - $(SYSTEMD_JOURNAL_LIBS) \ - $(LIBNDP_LIBS) \ - $(DL_LIBS) \ - $(SELINUX_LIBS) \ - $(LIBAUDIT_LIBS) \ - $(LIBPSL_LIBS) \ - $(LIBCURL_LIBS) \ - $(NULL) - -$(src_core_libNetworkManager_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -############################################################################### - -check_ltlibraries += src/core/libNetworkManagerTest.la - -src_core_tests_cppflags_fake = $(src_core_cppflags_test) -DSETUP=nm_fake_platform_setup -src_core_tests_cppflags_linux = $(src_core_cppflags_test) -DSETUP=nm_linux_platform_setup - -src_core_libNetworkManagerTest_la_CPPFLAGS = $(src_core_cppflags_test) - -src_core_libNetworkManagerTest_la_SOURCES = \ - src/core/ndisc/nm-fake-ndisc.c \ - src/core/ndisc/nm-fake-ndisc.h \ - src/core/platform/nm-fake-platform.c \ - src/core/platform/nm-fake-platform.h \ - src/core/platform/tests/test-common.c \ - src/core/platform/tests/test-common.h \ - $(NULL) - -src_core_libNetworkManagerTest_la_LIBADD = \ - src/core/libNetworkManager.la \ - $(CODE_COVERAGE_LDFLAGS) \ - $(GLIB_LIBS) \ - $(LIBUDEV_LIBS) \ - $(PTHREAD_LIBS) \ - $(NULL) - -$(src_core_libNetworkManagerTest_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -############################################################################### - -noinst_PROGRAMS += src/core/NetworkManager-all-sym - -src_core_NetworkManager_all_sym_CPPFLAGS = $(src_core_cppflags) - -src_core_NetworkManager_all_sym_SOURCES = \ - src/core/main.c - -src_core_NetworkManager_all_sym_LDADD = \ - src/core/libNetworkManager.la \ - $(GLIB_LIBS) \ - $(NULL) - -src_core_NetworkManager_all_sym_LDFLAGS = \ - -rdynamic \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -$(src_core_NetworkManager_all_sym_OBJECTS): $(src_libnm_core_public_mkenums_h) - -src/core/NetworkManager.ver: src/core/NetworkManager-all-sym $(core_plugins) - $(AM_V_GEN) LIBTOOL="$(LIBTOOL)" NM="$(NM)" "$(srcdir)/tools/create-exports-NetworkManager.sh" --called-from-build "$(srcdir)" - -CLEANFILES += src/core/NetworkManager.ver - -EXTRA_src_core_NetworkManager_DEPENDENCIES = \ - src/core/NetworkManager.ver - -src_core_NetworkManager_CPPFLAGS = $(src_core_cppflags) - -src_core_NetworkManager_SOURCES = \ - src/core/main.c - -src_core_NetworkManager_LDADD = \ - src/core/libNetworkManager.la \ - $(GLIB_LIBS) \ - $(NULL) - -src_core_NetworkManager_LDFLAGS = \ - -rdynamic \ - -Wl,--version-script="src/core/NetworkManager.ver" \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -$(src_core_NetworkManager_OBJECTS): $(src_libnm_core_public_mkenums_h) - -############################################################################### - -noinst_LTLIBRARIES += src/nm-initrd-generator/libnmi-core.la - -src_nm_initrd_generator_libnmi_core_la_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src/libnm-core-public \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(LIBUDEV_CFLAGS) \ - $(SYSTEMD_JOURNAL_CFLAGS) \ - $(SANITIZER_LIB_CFLAGS) \ - $(NULL) - -src_nm_initrd_generator_libnmi_core_la_SOURCES = \ - src/nm-initrd-generator/nm-initrd-generator.h \ - src/nm-initrd-generator/nmi-cmdline-reader.c \ - src/nm-initrd-generator/nmi-dt-reader.c \ - src/nm-initrd-generator/nmi-ibft-reader.c \ - $(NULL) - -libexec_PROGRAMS += src/nm-initrd-generator/nm-initrd-generator - -src_nm_initrd_generator_nm_initrd_generator_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src/libnm-core-public \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(CODE_COVERAGE_CFLAGS) \ - $(GLIB_CFLAGS) \ - $(LIBUDEV_CFLAGS) \ - $(SYSTEMD_JOURNAL_CFLAGS) \ - $(SANITIZER_EXEC_CFLAGS) \ - $(NULL) - -src_nm_initrd_generator_nm_initrd_generator_LDADD = \ - src/nm-initrd-generator/libnmi-core.la \ - src/libnm-core-impl/libnm-core-impl.la \ - src/libnm-crypto/libnm-crypto.la \ - $(libnm_crypto_lib) \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-platform/libnm-platform.la \ - src/libnm-base/libnm-base.la \ - src/libnm-log-core/libnm-log-core.la \ - src/libnm-platform/libnm-platform.la \ - src/libnm-udev-aux/libnm-udev-aux.la \ - src/libnm-systemd-shared/libnm-systemd-shared.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(SYSTEMD_JOURNAL_LIBS) \ - $(GLIB_LIBS) \ - $(NULL) - -src_nm_initrd_generator_nm_initrd_generator_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/linker-script-binary.ver" \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -check_programs += src/nm-initrd-generator/tests/test-dt-reader - -src_nm_initrd_generator_tests_test_dt_reader_CPPFLAGS = \ - $(src_nm_initrd_generator_nm_initrd_generator_CPPFLAGS) - -src_nm_initrd_generator_tests_test_dt_reader_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_nm_initrd_generator_tests_test_dt_reader_LDADD = \ - $(src_nm_initrd_generator_nm_initrd_generator_LDADD) - -check_programs += src/nm-initrd-generator/tests/test-ibft-reader - -src_nm_initrd_generator_tests_test_ibft_reader_CPPFLAGS = \ - $(src_nm_initrd_generator_nm_initrd_generator_CPPFLAGS) - -src_nm_initrd_generator_tests_test_ibft_reader_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_nm_initrd_generator_tests_test_ibft_reader_LDADD = \ - $(src_nm_initrd_generator_nm_initrd_generator_LDADD) - -check_programs += src/nm-initrd-generator/tests/test-cmdline-reader - -src_nm_initrd_generator_tests_test_cmdline_reader_CPPFLAGS = \ - $(src_nm_initrd_generator_nm_initrd_generator_CPPFLAGS) - -src_nm_initrd_generator_tests_test_cmdline_reader_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_nm_initrd_generator_tests_test_cmdline_reader_LDADD = \ - $(src_nm_initrd_generator_nm_initrd_generator_LDADD) - -$(src_nm_initrd_generator_libnmi_core_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nm_initrd_generator_nm_initrd_generator_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nm_initrd_generator_tests_test_cmdline_reader_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nm_initrd_generator_tests_test_ibft_reader_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nm_initrd_generator_tests_test_dt_reader_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/nm-initrd-generator/meson.build \ - src/nm-initrd-generator/tests/meson.build \ - src/nm-initrd-generator/tests/sysfs/class/net/eth0/address \ - src/nm-initrd-generator/tests/sysfs/class/net/eth2/address \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/prefix-len \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/hostname \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/gateway \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/mac \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/vlan \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/primary-dns \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/dhcp \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/origin \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/secondary-dns \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/ip-addr \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/subnet-mask \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/index \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet0/flags \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/initiator/isns-server \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/initiator/initiator-name \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/initiator/pri-radius-server \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/initiator/slp-server \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/initiator/sec-radius-server \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/initiator/index \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/initiator/flags \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target0/nic-assoc \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target0/ip-addr \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target0/chap-type \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target0/index \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target0/lun \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target0/flags \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target0/port \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target2/target-name \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target2/nic-assoc \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target2/ip-addr \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target2/chap-type \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target2/index \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target2/lun \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target2/flags \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/target2/port \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/acpi_header/oem_table_id \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/acpi_header/oem_id \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/acpi_header/signature \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/prefix-len \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/hostname \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/gateway \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/mac \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/vlan \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/primary-dns \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/dhcp \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/origin \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/secondary-dns \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/ip-addr \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/subnet-mask \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/index \ - src/nm-initrd-generator/tests/sysfs/firmware/ibft/ethernet2/flags \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/class/net/eth0/address \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/ethernet0/prefix-len \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/ethernet0/gateway \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/ethernet0/mac \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/ethernet0/vlan \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/ethernet0/primary-dns \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/ethernet0/origin \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/ethernet0/secondary-dns \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/ethernet0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/ethernet0/subnet-mask \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/ethernet0/index \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/initiator/initiator-name \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/target0/target-name \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/target0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/target0/index \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/target0/lun \ - src/nm-initrd-generator/tests/sysfs-bad-dns1/firmware/ibft/target0/port \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/class/net/eth0/address \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/ethernet0/prefix-len \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/ethernet0/gateway \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/ethernet0/mac \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/ethernet0/vlan \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/ethernet0/primary-dns \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/ethernet0/origin \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/ethernet0/secondary-dns \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/ethernet0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/ethernet0/subnet-mask \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/ethernet0/index \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/initiator/initiator-name \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/target0/target-name \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/target0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/target0/index \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/target0/lun \ - src/nm-initrd-generator/tests/sysfs-bad-dns2/firmware/ibft/target0/port \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/class/net/eth0/address \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/ethernet0/prefix-len \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/ethernet0/gateway \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/ethernet0/mac \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/ethernet0/vlan \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/ethernet0/primary-dns \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/ethernet0/origin \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/ethernet0/secondary-dns \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/ethernet0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/ethernet0/subnet-mask \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/ethernet0/index \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/initiator/initiator-name \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/target0/target-name \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/target0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/target0/index \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/target0/lun \ - src/nm-initrd-generator/tests/sysfs-bad-gateway/firmware/ibft/target0/port \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/class/net/eth0/address \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/ethernet0/prefix-len \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/ethernet0/gateway \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/ethernet0/mac \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/ethernet0/vlan \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/ethernet0/primary-dns \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/ethernet0/origin \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/ethernet0/secondary-dns \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/ethernet0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/ethernet0/subnet-mask \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/ethernet0/index \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/initiator/initiator-name \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/target0/target-name \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/target0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/target0/index \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/target0/lun \ - src/nm-initrd-generator/tests/sysfs-bad-ipaddr/firmware/ibft/target0/port \ - src/nm-initrd-generator/tests/sysfs-dhcp/class/net/eth0/address \ - src/nm-initrd-generator/tests/sysfs-dhcp/class/net/eth1/address \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet0/gateway \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet0/mac \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet0/vlan \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet0/primary-dns \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet0/origin \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet0/secondary-dns \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet0/index \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/initiator/initiator-name \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/target0/target-name \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/target0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/target0/index \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/target0/lun \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/target0/port \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet1/gateway \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet1/mac \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet1/vlan \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet1/primary-dns \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet1/origin \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet1/secondary-dns \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/ethernet1/index \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/target1/target-name \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/target1/ip-addr \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/target1/index \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/target1/lun \ - src/nm-initrd-generator/tests/sysfs-dhcp/firmware/ibft/target1/port \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/bootpath \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/bootp-request \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/bootp-response \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/broadcast-ip \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/client-ip \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/client-name \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/domain-name \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/gateway-ip \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/name \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/netmask-ip \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/root-path \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/server-ip \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/tftp-file \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/chosen/vendor-options \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/ethernet/device_type \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/ethernet/local-mac-address \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/ethernet/mac-address \ - src/nm-initrd-generator/tests/sysfs-dt/firmware/devicetree/base/ethernet/name \ - src/nm-initrd-generator/tests/sysfs-dt-tftp/firmware/devicetree/base/chosen/bootpath \ - src/nm-initrd-generator/tests/sysfs-static/class/net/eth0/address \ - src/nm-initrd-generator/tests/sysfs-static/class/net/eth1/address \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet0/prefix-len \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet0/gateway \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet0/mac \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet0/vlan \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet0/primary-dns \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet0/origin \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet0/secondary-dns \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet0/subnet-mask \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet0/index \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/initiator/initiator-name \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/target0/target-name \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/target0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/target0/index \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/target0/lun \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/target0/port \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet1/gateway \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet1/mac \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet1/vlan \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet1/primary-dns \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet1/origin \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet1/secondary-dns \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/ethernet1/index \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/target1/target-name \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/target1/ip-addr \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/target1/index \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/target1/lun \ - src/nm-initrd-generator/tests/sysfs-static/firmware/ibft/target1/port \ - src/nm-initrd-generator/tests/sysfs-vlan/class/net/eth0/address \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/ethernet0/prefix-len \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/ethernet0/mac \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/ethernet0/vlan \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/ethernet0/origin \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/ethernet0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/ethernet0/subnet-mask \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/ethernet0/index \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/initiator/initiator-name \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/target0/target-name \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/target0/ip-addr \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/target0/index \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/target0/lun \ - src/nm-initrd-generator/tests/sysfs-vlan/firmware/ibft/target0/port \ - $(NULL) - -############################################################################### - -EXTRA_DIST += \ - src/core/org.freedesktop.NetworkManager.conf \ - src/core/nm-test-utils-core.h \ - src/core/meson.build - -############################################################################### -# src/core/dhcp -############################################################################### - -libexec_PROGRAMS += src/core/dhcp/nm-dhcp-helper - -src_core_dhcp_nm_dhcp_helper_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(GLIB_CFLAGS) \ - $(NULL) - -src_core_dhcp_nm_dhcp_helper_SOURCES = \ - src/core/dhcp/nm-dhcp-helper.c \ - src/core/dhcp/nm-dhcp-helper-api.h \ - $(NULL) - -src_core_dhcp_nm_dhcp_helper_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/linker-script-binary.ver" - -src_core_dhcp_nm_dhcp_helper_LDADD = $(GLIB_LIBS) - -EXTRA_DIST += \ - src/core/dhcp/meson.build - -############################################################################### -# src/core/dhcp/tests -############################################################################### - -src_core_dhcp_tests_cppflags = $(src_core_cppflags_test) - -src_core_dhcp_tests_ldadd = \ - src/core/libNetworkManagerTest.la - -check_programs += \ - src/core/dhcp/tests/test-dhcp-dhclient \ - src/core/dhcp/tests/test-dhcp-utils - -src_core_dhcp_tests_test_dhcp_dhclient_CPPFLAGS = $(src_core_dhcp_tests_cppflags) -src_core_dhcp_tests_test_dhcp_utils_CPPFLAGS = $(src_core_dhcp_tests_cppflags) - -src_core_dhcp_tests_test_dhcp_dhclient_LDADD = $(src_core_dhcp_tests_ldadd) -src_core_dhcp_tests_test_dhcp_utils_LDADD = $(src_core_dhcp_tests_ldadd) - -src_core_dhcp_tests_test_dhcp_dhclient_LDFLAGS = $(src_core_tests_ldflags) -src_core_dhcp_tests_test_dhcp_utils_LDFLAGS = $(src_core_tests_ldflags) - -$(src_core_dhcp_tests_test_dhcp_dhclient_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_dhcp_tests_test_dhcp_utils_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/core/dhcp/tests/test-dhclient-duid.leases \ - src/core/dhcp/tests/test-dhclient-commented-duid.leases \ - src/core/dhcp/tests/meson.build - -############################################################################### -# src/core/ppp -############################################################################### - -if WITH_PPP - -core_plugins += src/core/ppp/libnm-ppp-plugin.la - -pppd_plugin_LTLIBRARIES += src/core/ppp/nm-pppd-plugin.la - -src_core_ppp_nm_pppd_plugin_la_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-core-public \ - $(GLIB_CFLAGS) \ - $(PPPD_CFLAGS) \ - $(NULL) - -src_core_ppp_nm_pppd_plugin_la_SOURCES = \ - src/core/ppp/nm-pppd-compat.c \ - src/core/ppp/nm-pppd-compat.h \ - src/core/ppp/nm-pppd-plugin.c \ - src/core/ppp/nm-pppd-plugin.h \ - src/core/ppp/nm-ppp-status.h - -src_core_ppp_nm_pppd_plugin_la_LDFLAGS = \ - -module -avoid-version - -src_core_ppp_nm_pppd_plugin_la_LIBADD = \ - $(GLIB_LIBS) \ - $(DL_LIBS) \ - $(NULL) - -$(src_core_ppp_nm_pppd_plugin_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -src_core_ppp_libnm_ppp_plugin_la_SOURCES = \ - src/core/ppp/nm-pppd-plugin.h \ - src/core/ppp/nm-ppp-manager.c \ - src/core/ppp/nm-ppp-manager.h \ - src/core/ppp/nm-ppp-plugin-api.h \ - src/core/ppp/nm-ppp-status.h \ - $(NULL) - -EXTRA_src_core_ppp_libnm_ppp_plugin_la_DEPENDENCIES = \ - src/core/ppp/nm-ppp-plugin.ver \ - $(NULL) - -src_core_ppp_libnm_ppp_plugin_la_CPPFLAGS = $(src_core_cppflags_base) - -src_core_ppp_libnm_ppp_plugin_la_LDFLAGS = \ - -module -avoid-version \ - -Wl,--version-script="$(srcdir)/src/core/ppp/nm-ppp-plugin.ver" \ - $(NULL) - -src_core_ppp_libnm_ppp_plugin_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -$(src_core_ppp_libnm_ppp_plugin_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -check-local-ppp-plugin: src/core/NetworkManager src/core/ppp/libnm-ppp-plugin.la - $(srcdir)/tools/check-exports.sh $(builddir)/src/core/ppp/.libs/libnm-ppp-plugin.so "$(srcdir)/src/core/ppp/nm-ppp-plugin.ver" - $(call check_so_symbols,$(builddir)/src/core/ppp/.libs/libnm-ppp-plugin.so) - -check_local += check-local-ppp-plugin - -endif - -EXTRA_DIST += \ - src/core/ppp/meson.build - -############################################################################### -# src/core/settings/plugins/keyfile/tests -############################################################################### - -check_programs += src/core/settings/plugins/keyfile/tests/test-keyfile-settings - -src_core_settings_plugins_keyfile_tests_test_keyfile_settings_CPPFLAGS = $(src_core_cppflags_test) - -src_core_settings_plugins_keyfile_tests_test_keyfile_settings_LDFLAGS = \ - $(GLIB_LIBS) \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) - -src_core_settings_plugins_keyfile_tests_test_keyfile_settings_LDADD = \ - src/core/libNetworkManagerTest.la - -$(src_core_settings_plugins_keyfile_tests_test_keyfile_settings_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Wired_Connection \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_GSM_Connection \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Wireless_Connection \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Wired_Connection_MAC_Case \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_MAC_Old_Format \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_MAC_IB_Old_Format \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Wired_Connection_IP6 \ - src/core/settings/plugins/keyfile/tests/keyfiles/ATT_Data_Connect_BT \ - src/core/settings/plugins/keyfile/tests/keyfiles/ATT_Data_Connect_Plain \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_String_SSID \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Intlist_SSID \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Intlike_SSID \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Intlike_SSID_2 \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Wired_TLS_Old \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Wired_TLS_New \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Wired_TLS_Blob \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Wired_TLS_Path_Missing \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_InfiniBand_Connection \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Bridge_Main \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Bridge_Component \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_New_Wired_Group_Name \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_New_Wireless_Group_Names \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_minimal_1 \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_minimal_2 \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_minimal_port_1 \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_minimal_port_2 \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_minimal_port_3 \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_minimal_port_4 \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Missing_Vlan_Setting \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Missing_Vlan_Flags \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Missing_ID_UUID \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Enum_Property \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_Flags_Property \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_dcb_connection \ - src/core/settings/plugins/keyfile/tests/keyfiles/Test_TC_Config \ - \ - src/core/settings/plugins/keyfile/tests/keyfiles/test-ca-cert.pem \ - src/core/settings/plugins/keyfile/tests/keyfiles/test-key-and-cert.pem \ - \ - src/core/settings/plugins/keyfile/tests/meson.build - -############################################################################### -# src/core/settings/plugins/ifcfg-rh -############################################################################### - -if CONFIG_PLUGIN_IFCFG_RH - -core_plugins += src/core/settings/plugins/ifcfg-rh/libnm-settings-plugin-ifcfg-rh.la - -noinst_LTLIBRARIES += \ - src/core/settings/plugins/ifcfg-rh/libnmdbus-ifcfg-rh.la \ - src/core/settings/plugins/ifcfg-rh/libnms-ifcfg-rh-core.la - -############################################################################### - -nodist_src_core_settings_plugins_ifcfg_rh_libnmdbus_ifcfg_rh_la_SOURCES = \ - src/core/settings/plugins/ifcfg-rh/nmdbus-ifcfg-rh.c \ - src/core/settings/plugins/ifcfg-rh/nmdbus-ifcfg-rh.h - -src_core_settings_plugins_ifcfg_rh_libnmdbus_ifcfg_rh_la_CPPFLAGS = \ - $(filter-out -DGLIB_VERSION_MAX_ALLOWED%,$(src_core_cppflags_base)) \ - $(INTROSPECTION_EXTRA_CFLAGS) \ - $(NULL) - -CLEANFILES += $(nodist_src_core_settings_plugins_ifcfg_rh_libnmdbus_ifcfg_rh_la_SOURCES) - -src/core/settings/plugins/ifcfg-rh/nmdbus-ifcfg-rh.h: src/core/settings/plugins/ifcfg-rh/nm-ifcfg-rh.xml - @$(MKDIR_P) src/core/settings/plugins/ifcfg-rh/ - $(AM_V_GEN) gdbus-codegen \ - --generate-c-code $(basename $@) \ - --c-namespace NMDBus \ - --interface-prefix com.redhat \ - $< - -src/core/settings/plugins/ifcfg-rh/nmdbus-ifcfg-rh.c: src/core/settings/plugins/ifcfg-rh/nmdbus-ifcfg-rh.h - @true - -############################################################################### - -src_core_settings_plugins_ifcfg_rh_libnms_ifcfg_rh_core_la_SOURCES = \ - src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-common.h \ - src/core/settings/plugins/ifcfg-rh/shvar.c \ - src/core/settings/plugins/ifcfg-rh/shvar.h \ - src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-utils.c \ - src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-utils.h \ - src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c \ - src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.h \ - src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c \ - src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.h \ - $(NULL) - -src_core_settings_plugins_ifcfg_rh_libnms_ifcfg_rh_core_la_CPPFLAGS = $(src_core_cppflags_base) - -$(src_core_settings_plugins_ifcfg_rh_libnms_ifcfg_rh_core_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -############################################################################### - -src_core_settings_plugins_ifcfg_rh_libnm_settings_plugin_ifcfg_rh_la_SOURCES = \ - src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-storage.c \ - src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-storage.h \ - src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c \ - src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.h \ - $(NULL) - -src_core_settings_plugins_ifcfg_rh_libnm_settings_plugin_ifcfg_rh_la_CPPFLAGS = $(src_core_cppflags_base) - -src_core_settings_plugins_ifcfg_rh_libnm_settings_plugin_ifcfg_rh_la_LDFLAGS = \ - -module -avoid-version \ - -Wl,--version-script="$(srcdir)/linker-script-settings.ver" \ - $(SANITIZER_EXEC_LDFLAGS) - -src_core_settings_plugins_ifcfg_rh_libnm_settings_plugin_ifcfg_rh_la_LIBADD = \ - src/core/settings/plugins/ifcfg-rh/libnms-ifcfg-rh-core.la - -$(src_core_settings_plugins_ifcfg_rh_libnm_settings_plugin_ifcfg_rh_la_OBJECTS): src/core/settings/plugins/ifcfg-rh/nmdbus-ifcfg-rh.h -$(src_core_settings_plugins_ifcfg_rh_libnm_settings_plugin_ifcfg_rh_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -check-local-symbols-settings-ifcfg-rh: src/core/settings/plugins/ifcfg-rh/libnm-settings-plugin-ifcfg-rh.la - $(call check_so_symbols,$(builddir)/src/core/settings/plugins/ifcfg-rh/.libs/libnm-settings-plugin-ifcfg-rh.so) - -check_local += check-local-symbols-settings-ifcfg-rh - -############################################################################### -# src/core/settings/plugins/ifcfg-rh/tests -############################################################################### - -check_programs += src/core/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh - -src_core_settings_plugins_ifcfg_rh_tests_test_ifcfg_rh_SOURCES = \ - src/core/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c - -src_core_settings_plugins_ifcfg_rh_tests_test_ifcfg_rh_CPPFLAGS = $(src_core_cppflags_base_test) - -src_core_settings_plugins_ifcfg_rh_tests_test_ifcfg_rh_LDFLAGS = \ - $(GLIB_LIBS) \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) - -src_core_settings_plugins_ifcfg_rh_tests_test_ifcfg_rh_LDADD = \ - src/core/settings/plugins/ifcfg-rh/libnms-ifcfg-rh-core.la \ - src/core/libNetworkManagerTest.la - -$(src_core_settings_plugins_ifcfg_rh_tests_test_ifcfg_rh_OBJECTS): $(src_libnm_core_public_mkenums_h) - -dist_libexec_SCRIPTS += \ - src/core/settings/plugins/ifcfg-rh/nm-ifup \ - src/core/settings/plugins/ifcfg-rh/nm-ifdown - -install-data-hook-ifcfg-rh: - $(mkinstalldirs) -m 0755 $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts - -install_data_hook += install-data-hook-ifcfg-rh - -endif - -EXTRA_DIST += \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-System_test-bridge-component-a.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-System_test-bridge-component-b.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-System_test-wired-802-1X-subj-matches.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_User_1.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Bond_Main.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Bridge_Component.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Permissions.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Proxy_Basic.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Routing_Rules.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Team_Infiniband_Port.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Team_Port.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_VLAN_reorder_hdr.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_WiFi_AP_Mode.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_WiFi_Band_A.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_WiFi_Hidden.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_WiFi_MAC_always.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_WiFi_MAC_default.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_WiFi_MAC_missing.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_WiFi_MAC_never.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Wifi_LEAP.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Wifi_WEP_104_ASCII.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Wired_Auto-Negotiate.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Wired_Static_Routes.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Wired_Wake-on-LAN.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Test_Write_Wired_match.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-Vlan_test-vlan-interface.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-dcb-test.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-netmask-1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-netmask-1.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-random_wifi_connection.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-random_wifi_connection_2.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-team-port-enp31s0f1-142.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-bond-eth-type \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-bond-main \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-bond-mode-numeric \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-bond-port \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-bond-port-bond0 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-bond-port-ib \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-bridge-component \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-bridge-main \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-bridge-missing-stp \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-dcb \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-dcb-bad-booleans \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-dcb-bad-percent \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-dcb-bad-uints \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-dcb-default-app-priorities \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-dcb-pgpct-not-100 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-dcb-short-booleans \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-dcb-short-percent \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-dcb-short-uints \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-dns-options \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-fcoe-fabric \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-fcoe-vn2vn \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-ibft \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-infiniband0 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-infiniband1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-infiniband2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-ip6-disabled.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-ipoib \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-link_local \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-minimal \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-misc-variables \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-nm-controlled \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-nm-controlled-unrecognized \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-noip \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-onboot-no \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-permissions \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-read-proxy-basic \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-sit-ignore \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-sriov \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-sriov-write.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-static-routes-legacy \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-static-routes-legacy.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-tc \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-tc-write-empty.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-tc-write.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-team-controller-1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-team-controller-2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-team-controller-invalid \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-team-port-1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-team-port-2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-team-port-empty-config \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-unrecognized \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-variables-corner-cases-1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-vlan-flags-1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-vlan-flags-2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-vlan-interface \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-vlan-only-device \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-vlan-only-vlanid \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-vlan-physdev \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-vlan-reorder-hdr-1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-vlan-reorder-hdr-2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-vlan-trailing-spaces \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-vlan-vlanid-use \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-vlan-vlanid-use.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-band-a \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-band-a-channel-mismatch \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-band-bg-channel-mismatch \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-dynamic-wep-leap \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-hidden \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-leap \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-leap-agent \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-leap-always-ask \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-mac-random-always \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-mac-random-default \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-mac-random-missing \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-mac-random-never \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-open \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-open-auto \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-open-ssid-bad-hex \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-open-ssid-hex \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-open-ssid-long-hex \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-open-ssid-long-quoted \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-open-ssid-quoted \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-owe \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-sae \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wep \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wep-104-ascii \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wep-40-ascii \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wep-adhoc \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wep-agent-keys \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wep-eap-ttls-chap \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wep-no-keys \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wep-passphrase \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wpa-eap-suite-b-192-tls \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wpa-eap-tls \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wpa-eap-ttls-tls \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wpa-psk \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wpa-psk-2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wpa-psk-adhoc \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wpa-psk-hex \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wpa-psk-unquoted \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wifi-wpa-psk-unquoted2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-802-1X-subj-matches \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-802-1x-password-raw \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-802-1x-ttls-eapgtc \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-8021x-peap-mschapv2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-8021x-tls-agent \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-8021x-tls-always \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-8021x-tls-p12-no-client-cert \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-auto-negotiate-on \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-autoip \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-ctc-static \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-defroute-no \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-defroute-no-gatewaydev-yes \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-dhcp \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-dhcp-plus-ip \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-dhcp-send-hostname \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-dhcp6-only \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-dhcpv6-hostname-fallback \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-global-gateway \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-global-gateway-ignore \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-ipv4-manual-1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-ipv4-manual-2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-ipv4-manual-3 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-ipv4-manual-4 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-ipv6-manual \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-ipv6-only \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-ipv6-only-1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-never-default \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-obsolete-gateway-n \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-qeth-static \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-shared-plus-ip \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-static \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-static-bootproto \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-static-no-prefix-16 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-static-no-prefix-24 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-static-no-prefix-8 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-static-routes \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-static-routes-legacy \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-unknown-ethtool-opt \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-wired-wake-on-lan \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-write-unknown-1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-write-unknown-1.expected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-write-unknown-2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-write-unknown-2.expected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-write-unknown-3 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-write-unknown-3.expected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-write-unknown-4 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test-write-unknown-4.expected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test_roundtrip_ethtool-1.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test_roundtrip_ethtool-2.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test_roundtrip_ethtool-3.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test_roundtrip_ethtool-4.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test_roundtrip_ethtool-5.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test_roundtrip_ethtool-6.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test_roundtrip_ethtool-7.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test_roundtrip_ethtool-8.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test_roundtrip_ethtool-9.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-test_write_wired_auto_negotiate_on.cexpected \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-dynamic-wep-leap \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-leap \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-sae \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wep \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wep-104-ascii \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wep-40-ascii \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wep-adhoc \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wep-eap-ttls-chap \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wep-passphrase \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wpa-eap-tls \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wpa-eap-ttls-tls \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wpa-psk \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wpa-psk-2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wpa-psk-adhoc \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wpa-psk-hex \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wpa-psk-unquoted \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wifi-wpa-psk-unquoted2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wired-802-1x-password-raw \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/keys-test-wired-8021x-peap-mschapv2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/network-test-wired-defroute-no-gatewaydev-yes \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/network-test-wired-global-gateway \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/network-test-wired-global-gateway-ignore \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/network-test-wired-never-default \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/route-test-static-routes-legacy \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/route-test-wired-static-routes \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/route-test-wired-static-routes-legacy \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/route6-test-wired-ipv6-manual \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/test1_key_and_cert.pem \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/test_ca_cert.pem \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/test_client.p12 \ - $(NULL) - -# make target dependencies can't have colons in their names, which ends up -# meaning that we can't add the alias files to EXTRA_DIST. They are instead -# dist'ed via dist-hook-settings-ifcfg-rh below. -src_core_settings_plugins_ifcfg_rh_tests_network_scripts_alias_files = \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-aliasem0 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-aliasem0:1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-aliasem0:2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-aliasem0:99 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-aliasem1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-aliasem1:1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-aliasem2 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-aliasem2:1 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-aliasem3 \ - src/core/settings/plugins/ifcfg-rh/tests/network-scripts/ifcfg-aliasem3:1 - -dist-hook-settings-ifcfg-rh-alias-files: - @for f in $(src_core_settings_plugins_ifcfg_rh_tests_network_scripts_alias_files); do \ - cp $(abs_srcdir)/$$f $(distdir)/src/core/settings/plugins/ifcfg-rh/tests/network-scripts/; \ - done - -dist_hook += dist-hook-settings-ifcfg-rh-alias-files - -############################################################################### - -if CONFIG_PLUGIN_IFCFG_RH -dbusservice_DATA += src/core/settings/plugins/ifcfg-rh/nm-ifcfg-rh.conf -endif - -EXTRA_DIST += \ - src/core/settings/plugins/ifcfg-rh/nm-ifcfg-rh.conf \ - src/core/settings/plugins/ifcfg-rh/nm-ifcfg-rh.xml \ - src/core/settings/plugins/ifcfg-rh/meson.build \ - src/core/settings/plugins/ifcfg-rh/tests/meson.build - -############################################################################### -# src/core/settings/plugins/ifupdown -############################################################################### - -if CONFIG_PLUGIN_IFUPDOWN - -core_plugins += src/core/settings/plugins/ifupdown/libnm-settings-plugin-ifupdown.la - -noinst_LTLIBRARIES += src/core/settings/plugins/ifupdown/libnms-ifupdown-core.la - -src_core_settings_plugins_ifupdown_libnms_ifupdown_core_la_SOURCES = \ - src/core/settings/plugins/ifupdown/nms-ifupdown-interface-parser.c \ - src/core/settings/plugins/ifupdown/nms-ifupdown-interface-parser.h \ - src/core/settings/plugins/ifupdown/nms-ifupdown-parser.c \ - src/core/settings/plugins/ifupdown/nms-ifupdown-parser.h \ - $(NULL) - -src_core_settings_plugins_ifupdown_libnms_ifupdown_core_la_CPPFLAGS = $(src_core_cppflags_base) - -src_core_settings_plugins_ifupdown_libnms_ifupdown_core_la_LIBADD = \ - $(LIBUDEV_LIBS) \ - $(NULL) - -src_core_settings_plugins_ifupdown_libnm_settings_plugin_ifupdown_la_SOURCES = \ - src/core/settings/plugins/ifupdown/nms-ifupdown-plugin.c \ - src/core/settings/plugins/ifupdown/nms-ifupdown-plugin.h \ - $(NULL) - -src_core_settings_plugins_ifupdown_libnm_settings_plugin_ifupdown_la_CPPFLAGS = $(src_core_cppflags_base) - -src_core_settings_plugins_ifupdown_libnm_settings_plugin_ifupdown_la_LDFLAGS = \ - -module -avoid-version \ - -Wl,--version-script="$(srcdir)/linker-script-settings.ver" \ - $(NULL) - -src_core_settings_plugins_ifupdown_libnm_settings_plugin_ifupdown_la_LIBADD = \ - src/core/settings/plugins/ifupdown/libnms-ifupdown-core.la \ - $(LIBUDEV_LIBS) \ - $(NULL) - -$(src_core_settings_plugins_ifupdown_libnm_settings_plugin_ifupdown_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_settings_plugins_ifupdown_libnms_ifupdown_core_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -check-local-symbols-settings-ifupdown: src/core/settings/plugins/ifupdown/libnm-settings-plugin-ifupdown.la - $(call check_so_symbols,$(builddir)/src/core/settings/plugins/ifupdown/.libs/libnm-settings-plugin-ifupdown.so) - -check_local += check-local-symbols-settings-ifupdown - -############################################################################### - -check_programs += src/core/settings/plugins/ifupdown/tests/test-ifupdown - -src_core_settings_plugins_ifupdown_tests_test_ifupdown_CPPFLAGS = $(src_core_cppflags_base_test) - -src_core_settings_plugins_ifupdown_tests_test_ifupdown_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) - -src_core_settings_plugins_ifupdown_tests_test_ifupdown_LDADD = \ - src/core/settings/plugins/ifupdown/libnms-ifupdown-core.la \ - src/core/libNetworkManagerTest.la \ - $(GLIB_LIBS) \ - $(NULL) - -$(src_core_settings_plugins_ifupdown_tests_test_ifupdown_OBJECTS): $(src_libnm_core_public_mkenums_h) - -endif - -EXTRA_DIST += \ - src/core/settings/plugins/ifupdown/tests/test1 \ - src/core/settings/plugins/ifupdown/tests/test2 \ - src/core/settings/plugins/ifupdown/tests/test3 \ - src/core/settings/plugins/ifupdown/tests/test4 \ - src/core/settings/plugins/ifupdown/tests/test5 \ - src/core/settings/plugins/ifupdown/tests/test6 \ - src/core/settings/plugins/ifupdown/tests/test7 \ - src/core/settings/plugins/ifupdown/tests/test8 \ - src/core/settings/plugins/ifupdown/tests/test9 \ - src/core/settings/plugins/ifupdown/tests/test11 \ - src/core/settings/plugins/ifupdown/tests/test12 \ - src/core/settings/plugins/ifupdown/tests/test13 \ - src/core/settings/plugins/ifupdown/tests/test14 \ - src/core/settings/plugins/ifupdown/tests/test15 \ - src/core/settings/plugins/ifupdown/tests/test16 \ - src/core/settings/plugins/ifupdown/tests/test17-wired-static-verify-ip4 \ - src/core/settings/plugins/ifupdown/tests/test18-wired-static-verify-ip6 \ - src/core/settings/plugins/ifupdown/tests/test19-wired-static-verify-ip4-plen \ - src/core/settings/plugins/ifupdown/tests/test20-source-stanza \ - src/core/settings/plugins/ifupdown/tests/test20-source-stanza.eth0 \ - src/core/settings/plugins/ifupdown/tests/test20-source-stanza.eth1 \ - src/core/settings/plugins/ifupdown/tests/test21-source-dir-stanza \ - src/core/settings/plugins/ifupdown/tests/test21-source-dir-stanza.d \ - src/core/settings/plugins/ifupdown/tests/test22-duplicate-stanzas \ - src/core/settings/plugins/ifupdown/meson.build \ - src/core/settings/plugins/ifupdown/tests/meson.build - -############################################################################### -# src/core/devices -############################################################################### - -EXTRA_DIST += \ - src/core/devices/meson.build - -############################################################################### -# src/core/devices/adsl -############################################################################### - -core_plugins += src/core/devices/adsl/libnm-device-plugin-adsl.la - -src_core_devices_adsl_libnm_device_plugin_adsl_la_SOURCES = \ - src/core/devices/adsl/nm-atm-manager.c \ - src/core/devices/adsl/nm-device-adsl.c \ - src/core/devices/adsl/nm-device-adsl.h - -src_core_devices_adsl_libnm_device_plugin_adsl_la_CPPFLAGS = $(src_core_cppflags_device_plugin) - -src_core_devices_adsl_libnm_device_plugin_adsl_la_LDFLAGS = \ - -module -avoid-version \ - -Wl,--version-script="$(srcdir)/linker-script-devices.ver" - -src_core_devices_adsl_libnm_device_plugin_adsl_la_LIBADD = \ - $(LIBUDEV_LIBS) - -check-local-devices-adsl: src/core/devices/adsl/libnm-device-plugin-adsl.la - $(srcdir)/tools/check-exports.sh $(builddir)/src/core/devices/adsl/.libs/libnm-device-plugin-adsl.so "$(srcdir)/linker-script-devices.ver" - $(call check_so_symbols,$(builddir)/src/core/devices/adsl/.libs/libnm-device-plugin-adsl.so) - -check_local += check-local-devices-adsl - -EXTRA_DIST += \ - src/core/devices/adsl/meson.build - -############################################################################### -# src/core/devices/wwan -############################################################################### - -if WITH_MODEM_MANAGER_1 - -src_core_devices_wwan_cppflags = \ - $(src_core_cppflags_device_plugin) \ - $(MM_GLIB_CFLAGS) \ - $(NULL) - -core_plugins += src/core/devices/wwan/libnm-wwan.la - -src_core_devices_wwan_libnm_wwan_la_SOURCES = \ - src/core/devices/wwan/nm-modem-broadband.c \ - src/core/devices/wwan/nm-modem-broadband.h \ - src/core/devices/wwan/nm-modem-manager.c \ - src/core/devices/wwan/nm-modem-manager.h \ - src/core/devices/wwan/nm-modem.c \ - src/core/devices/wwan/nm-modem.h \ - src/core/devices/wwan/nm-service-providers.c \ - src/core/devices/wwan/nm-service-providers.h \ - $(NULL) - -if WITH_OFONO -src_core_devices_wwan_libnm_wwan_la_SOURCES += \ - src/core/devices/wwan/nm-modem-ofono.c \ - src/core/devices/wwan/nm-modem-ofono.h -endif - -src_core_devices_wwan_libnm_wwan_la_CPPFLAGS = $(src_core_devices_wwan_cppflags) - -src_core_devices_wwan_libnm_wwan_la_LDFLAGS = \ - -avoid-version \ - -Wl,--version-script="$(srcdir)/src/core/devices/wwan/libnm-wwan.ver" - -src_core_devices_wwan_libnm_wwan_la_LIBADD = \ - $(GLIB_LIBS) \ - $(LIBSYSTEMD_LIBS) \ - $(MM_GLIB_LIBS) - -$(src_core_devices_wwan_libnm_wwan_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_src_core_devices_wwan_libnm_wwan_la_DEPENDENCIES = \ - src/core/devices/wwan/libnm-wwan.ver - -core_plugins += src/core/devices/wwan/libnm-device-plugin-wwan.la - -src_core_devices_wwan_libnm_device_plugin_wwan_la_SOURCES = \ - src/core/devices/wwan/nm-wwan-factory.c \ - src/core/devices/wwan/nm-device-modem.c \ - src/core/devices/wwan/nm-device-modem.h - -src_core_devices_wwan_libnm_device_plugin_wwan_la_CPPFLAGS = $(src_core_devices_wwan_cppflags) - -src_core_devices_wwan_libnm_device_plugin_wwan_la_LDFLAGS = \ - -module -avoid-version \ - -Wl,--version-script="$(srcdir)/linker-script-devices.ver" - -src_core_devices_wwan_libnm_device_plugin_wwan_la_LIBADD = \ - src/core/devices/wwan/libnm-wwan.la \ - $(GLIB_LIBS) - -check-local-devices-wwan: src/core/devices/wwan/libnm-device-plugin-wwan.la src/core/devices/wwan/libnm-wwan.la - $(srcdir)/tools/check-exports.sh $(builddir)/src/core/devices/wwan/.libs/libnm-device-plugin-wwan.so "$(srcdir)/linker-script-devices.ver" - $(call check_so_symbols,$(builddir)/src/core/devices/wwan/.libs/libnm-device-plugin-wwan.so) - $(srcdir)/tools/check-exports.sh $(builddir)/src/core/devices/wwan/.libs/libnm-wwan.so "$(srcdir)/src/core/devices/wwan/libnm-wwan.ver" - $(call check_so_symbols,$(builddir)/src/core/devices/wwan/.libs/libnm-wwan.so) - -check_local += check-local-devices-wwan - -src_core_devices_wwan_tests_test_service_providers_SOURCES = \ - src/core/devices/wwan/tests/test-service-providers.c \ - src/core/devices/wwan/nm-service-providers.c \ - src/core/devices/wwan/nm-service-providers.h \ - $(NULL) - -src_core_devices_wwan_tests_test_service_providers_CPPFLAGS = \ - $(src_core_cppflags_base_test) \ - -I$(srcdir)/src/core/devices/wwan \ - $(NULL) - -src_core_devices_wwan_tests_test_service_providers_LDFLAGS = \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_core_devices_wwan_tests_test_service_providers_LDADD = \ - src/core/libNetworkManagerTest.la \ - $(GLIB_LIBS) \ - $(NULL) - -check_programs += src/core/devices/wwan/tests/test-service-providers - -$(src_core_devices_wwan_tests_test_service_providers_OBJECTS): $(src_libnm_core_public_mkenums_h) - -endif - -EXTRA_DIST += \ - src/core/devices/wwan/libnm-wwan.ver \ - src/core/devices/wwan/meson.build \ - src/core/devices/wwan/tests/test-service-providers.xml \ - $(NULL) - -############################################################################### -# src/core/devices/bluetooth -############################################################################### - -if WITH_MODEM_MANAGER_1 - -noinst_LTLIBRARIES += src/core/devices/bluetooth/libnm-bluetooth-utils.la - -src_core_devices_bluetooth_libnm_bluetooth_utils_la_SOURCES = \ - src/core/devices/bluetooth/nm-bluez-common.h \ - src/core/devices/bluetooth/nm-bt-error.c \ - src/core/devices/bluetooth/nm-bt-error.h \ - $(NULL) - -src_core_devices_bluetooth_libnm_bluetooth_utils_la_CPPFLAGS = \ - $(src_core_cppflags_base) \ - $(NULL) - -src_core_devices_bluetooth_libnm_bluetooth_utils_la_LIBADD = \ - $(GLIB_LIBS) \ - $(NULL) - -if WITH_BLUEZ5_DUN -src_core_devices_bluetooth_libnm_bluetooth_utils_la_SOURCES += \ - src/core/devices/bluetooth/nm-bluez5-dun.c \ - src/core/devices/bluetooth/nm-bluez5-dun.h \ - $(NULL) - -src_core_devices_bluetooth_libnm_bluetooth_utils_la_CPPFLAGS += $(BLUEZ5_CFLAGS) -src_core_devices_bluetooth_libnm_bluetooth_utils_la_LIBADD += $(BLUEZ5_LIBS) -endif - -$(src_core_devices_bluetooth_libnm_bluetooth_utils_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -############################################################################### - -core_plugins += src/core/devices/bluetooth/libnm-device-plugin-bluetooth.la - -src_core_devices_bluetooth_libnm_device_plugin_bluetooth_la_SOURCES = \ - src/core/devices/bluetooth/nm-bluez-manager.c \ - src/core/devices/bluetooth/nm-bluez-manager.h \ - src/core/devices/bluetooth/nm-device-bt.c \ - src/core/devices/bluetooth/nm-device-bt.h \ - $(NULL) - -src_core_devices_bluetooth_libnm_device_plugin_bluetooth_la_CPPFLAGS = $(src_core_cppflags_device_plugin) - -src_core_devices_bluetooth_libnm_device_plugin_bluetooth_la_LDFLAGS = \ - -module -avoid-version \ - -Wl,--version-script="$(srcdir)/linker-script-devices.ver" - -src_core_devices_bluetooth_libnm_device_plugin_bluetooth_la_LIBADD = \ - src/core/devices/bluetooth/libnm-bluetooth-utils.la \ - src/core/devices/wwan/libnm-wwan.la \ - $(GLIB_LIBS) \ - $(NULL) - -############################################################################### - -check_programs_norun += \ - src/core/devices/bluetooth/tests/nm-bt-test - -src_core_devices_bluetooth_tests_nm_bt_test_CPPFLAGS = \ - $(src_core_cppflags_test) \ - $(NULL) - -src_core_devices_bluetooth_tests_nm_bt_test_LDFLAGS = \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_core_devices_bluetooth_tests_nm_bt_test_LDADD = \ - src/core/devices/bluetooth/libnm-bluetooth-utils.la \ - src/core/libNetworkManager.la \ - $(GLIB_LIBS) \ - $(NULL) - -$(src_core_devices_bluetooth_tests_nm_bt_test_OBJECTS): $(src_libnm_core_public_mkenums_h) - -############################################################################### - -check-local-devices-bluetooth: src/core/devices/bluetooth/libnm-device-plugin-bluetooth.la - $(srcdir)/tools/check-exports.sh $(builddir)/src/core/devices/bluetooth/.libs/libnm-device-plugin-bluetooth.so "$(srcdir)/linker-script-devices.ver" - $(call check_so_symbols,$(builddir)/src/core/devices/bluetooth/.libs/libnm-device-plugin-bluetooth.so) - -check_local += check-local-devices-bluetooth - -endif - -EXTRA_DIST += \ - src/core/devices/bluetooth/meson.build \ - $(NULL) - -############################################################################### -# src/core/devices/wifi -############################################################################### - -if WITH_WIFI - -noinst_LTLIBRARIES += src/core/devices/wifi/libnm-wifi-base.la - -src_core_devices_wifi_libnm_wifi_base_la_SOURCES = \ - src/core/devices/wifi/nm-device-olpc-mesh.c \ - src/core/devices/wifi/nm-device-olpc-mesh.h \ - src/core/devices/wifi/nm-device-wifi-p2p.c \ - src/core/devices/wifi/nm-device-wifi-p2p.h \ - src/core/devices/wifi/nm-device-wifi.c \ - src/core/devices/wifi/nm-device-wifi.h \ - src/core/devices/wifi/nm-wifi-ap.c \ - src/core/devices/wifi/nm-wifi-ap.h \ - src/core/devices/wifi/nm-wifi-common.c \ - src/core/devices/wifi/nm-wifi-common.h \ - src/core/devices/wifi/nm-wifi-p2p-peer.c \ - src/core/devices/wifi/nm-wifi-p2p-peer.h \ - src/core/devices/wifi/nm-wifi-utils.c \ - src/core/devices/wifi/nm-wifi-utils.h \ - $(NULL) - -if WITH_IWD -src_core_devices_wifi_libnm_wifi_base_la_SOURCES += \ - src/core/devices/wifi/nm-device-iwd.c \ - src/core/devices/wifi/nm-device-iwd.h \ - src/core/devices/wifi/nm-device-iwd-p2p.c \ - src/core/devices/wifi/nm-device-iwd-p2p.h \ - src/core/devices/wifi/nm-iwd-manager.c \ - src/core/devices/wifi/nm-iwd-manager.h \ - $(NULL) -endif - -src_core_devices_wifi_libnm_wifi_base_la_CPPFLAGS = $(src_core_cppflags_device_plugin) - -src_core_devices_wifi_libnm_wifi_base_la_LIBADD = \ - $(GLIB_LIBS) - -$(src_core_devices_wifi_libnm_wifi_base_la_OBJECTS): $(src_libnm_core_public_mkenums_h) - -core_plugins += src/core/devices/wifi/libnm-device-plugin-wifi.la - -src_core_devices_wifi_libnm_device_plugin_wifi_la_SOURCES = \ - src/core/devices/wifi/nm-wifi-factory.c \ - $(NULL) - -src_core_devices_wifi_libnm_device_plugin_wifi_la_CPPFLAGS = $(src_core_cppflags_device_plugin) - -src_core_devices_wifi_libnm_device_plugin_wifi_la_LDFLAGS = \ - -module -avoid-version \ - -Wl,--version-script="$(srcdir)/linker-script-devices.ver" - -src_core_devices_wifi_libnm_device_plugin_wifi_la_LIBADD = \ - src/core/devices/wifi/libnm-wifi-base.la \ - $(GLIB_LIBS) - -check-local-devices-wifi: src/core/devices/wifi/libnm-device-plugin-wifi.la - $(srcdir)/tools/check-exports.sh $(builddir)/src/core/devices/wifi/.libs/libnm-device-plugin-wifi.so "$(srcdir)/linker-script-devices.ver" - $(call check_so_symbols,$(builddir)/src/core/devices/wifi/.libs/libnm-device-plugin-wifi.so) - -check_local += check-local-devices-wifi - -check_programs += src/core/devices/wifi/tests/test-devices-wifi - -src_core_devices_wifi_tests_test_devices_wifi_SOURCES = \ - src/core/devices/wifi/tests/test-devices-wifi.c \ - $(NULL) - -src_core_devices_wifi_tests_test_devices_wifi_CPPFLAGS = $(src_core_cppflags_base_test) - -src_core_devices_wifi_tests_test_devices_wifi_LDADD = \ - src/core/devices/wifi/libnm-wifi-base.la \ - src/core/libNetworkManagerTest.la \ - src/core/libNetworkManagerBase.la \ - $(NULL) - -src_core_devices_wifi_tests_test_devices_wifi_LDFLAGS = $(SANITIZER_EXEC_LDFLAGS) - -$(src_core_devices_wifi_tests_test_devices_wifi_OBJECTS): $(src_libnm_core_public_mkenums_h) - -endif - -EXTRA_DIST += \ - src/core/devices/wifi/meson.build \ - $(NULL) - -############################################################################### -# src/core/devices/team -############################################################################### - -if WITH_TEAMDCTL - -core_plugins += src/core/devices/team/libnm-device-plugin-team.la - -src_core_devices_team_libnm_device_plugin_team_la_SOURCES = \ - src/core/devices/team/nm-team-factory.c \ - src/core/devices/team/nm-device-team.c \ - src/core/devices/team/nm-device-team.h \ - $(NULL) - -src_core_devices_team_libnm_device_plugin_team_la_CPPFLAGS = \ - $(src_core_cppflags_device_plugin) \ - $(LIBTEAMDCTL_CFLAGS) \ - $(JANSSON_CFLAGS) \ - $(NULL) - -src_core_devices_team_libnm_device_plugin_team_la_LDFLAGS = \ - -module -avoid-version \ - -Wl,--version-script="$(srcdir)/linker-script-devices.ver" \ - $(NULL) - -src_core_devices_team_libnm_device_plugin_team_la_LIBADD = \ - $(LIBTEAMDCTL_LIBS) \ - $(JANSSON_LIBS) \ - $(GLIB_LIBS) \ - $(NULL) - -check-local-devices-team: src/core/devices/team/libnm-device-plugin-team.la - $(srcdir)/tools/check-exports.sh $(builddir)/src/core/devices/team/.libs/libnm-device-plugin-team.so "$(srcdir)/linker-script-devices.ver" - $(call check_so_symbols,$(builddir)/src/core/devices/team/.libs/libnm-device-plugin-team.so) - -check_local += check-local-devices-team - -endif - -EXTRA_DIST += \ - src/core/devices/team/meson.build - -############################################################################### -# src/core/devices/ovs -############################################################################### - -if WITH_OPENVSWITCH - -if HAVE_SYSTEMD - -systemdnmunitdir = $(systemdsystemunitdir)/NetworkManager.service.d -systemdnmunit_DATA = \ - data/NetworkManager-ovs.conf - -endif - -core_plugins += src/core/devices/ovs/libnm-device-plugin-ovs.la - -src_core_devices_ovs_libnm_device_plugin_ovs_la_SOURCES = \ - src/core/devices/ovs/nm-ovsdb.c \ - src/core/devices/ovs/nm-ovsdb.h \ - src/core/devices/ovs/nm-ovs-factory.c \ - src/core/devices/ovs/nm-device-ovs-interface.c \ - src/core/devices/ovs/nm-device-ovs-interface.h \ - src/core/devices/ovs/nm-device-ovs-port.c \ - src/core/devices/ovs/nm-device-ovs-port.h \ - src/core/devices/ovs/nm-device-ovs-bridge.c \ - src/core/devices/ovs/nm-device-ovs-bridge.h \ - $(NULL) - -src_core_devices_ovs_libnm_device_plugin_ovs_la_CPPFLAGS = \ - $(src_core_cppflags_device_plugin) \ - $(JANSSON_CFLAGS) \ - $(NULL) - -src_core_devices_ovs_libnm_device_plugin_ovs_la_LDFLAGS = \ - -module -avoid-version \ - -Wl,--version-script="$(srcdir)/linker-script-devices.ver" \ - $(NULL) - -src_core_devices_ovs_libnm_device_plugin_ovs_la_LIBADD = \ - $(JANSSON_LIBS) \ - $(GLIB_LIBS) \ - $(NULL) - -check-local-devices-ovs: src/core/devices/ovs/libnm-device-plugin-ovs.la - $(srcdir)/tools/check-exports.sh $(builddir)/src/core/devices/ovs/.libs/libnm-device-plugin-ovs.so "$(srcdir)/linker-script-devices.ver" - $(call check_so_symbols,$(builddir)/src/core/devices/ovs/.libs/libnm-device-plugin-ovs.so) - -check_local += check-local-devices-ovs - -endif - -EXTRA_DIST += \ - data/NetworkManager-ovs.conf \ - src/core/devices/ovs/meson.build - -############################################################################### -# src/core/dnsmasq/tests -############################################################################### - -check_programs += src/core/dnsmasq/tests/test-dnsmasq-utils - -src_core_dnsmasq_tests_test_dnsmasq_utils_CPPFLAGS = $(src_core_cppflags_test) - -src_core_dnsmasq_tests_test_dnsmasq_utils_LDADD = \ - src/core/libNetworkManagerTest.la - -src_core_dnsmasq_tests_test_dnsmasq_utils_LDFLAGS = \ - $(SANITIZER_EXEC_LDFLAGS) - -$(src_core_dnsmasq_tests_test_dnsmasq_utils_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/core/dnsmasq/tests/meson.build - -############################################################################### -# src/core/platform/tests -############################################################################### - -src_core_platform_tests_ldflags = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) - -src_core_platform_tests_libadd = \ - src/core/libNetworkManagerTest.la \ - $(GLIB_LIBS) \ - $(LIBUDEV_LIBS) - -check_programs_norun += \ - src/core/platform/tests/monitor - -check_programs += \ - src/core/platform/tests/test-address-fake \ - src/core/platform/tests/test-address-linux \ - src/core/platform/tests/test-cleanup-fake \ - src/core/platform/tests/test-cleanup-linux \ - src/core/platform/tests/test-link-fake \ - src/core/platform/tests/test-link-linux \ - src/core/platform/tests/test-nmp-object \ - src/core/platform/tests/test-platform-general \ - src/core/platform/tests/test-route-fake \ - src/core/platform/tests/test-route-linux \ - src/core/platform/tests/test-tc-linux \ - $(NULL) - -src_core_platform_tests_monitor_CPPFLAGS = $(src_core_cppflags_test) -src_core_platform_tests_monitor_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_monitor_LDADD = $(src_core_platform_tests_libadd) - -src_core_platform_tests_test_address_fake_SOURCES = src/core/platform/tests/test-address.c -src_core_platform_tests_test_address_fake_CPPFLAGS = $(src_core_tests_cppflags_fake) -src_core_platform_tests_test_address_fake_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_test_address_fake_LDADD = $(src_core_platform_tests_libadd) - -src_core_platform_tests_test_address_linux_SOURCES = src/core/platform/tests/test-address.c -src_core_platform_tests_test_address_linux_CPPFLAGS = $(src_core_tests_cppflags_linux) -src_core_platform_tests_test_address_linux_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_test_address_linux_LDADD = $(src_core_platform_tests_libadd) - -src_core_platform_tests_test_cleanup_fake_SOURCES = src/core/platform/tests/test-cleanup.c -src_core_platform_tests_test_cleanup_fake_CPPFLAGS = $(src_core_tests_cppflags_fake) -src_core_platform_tests_test_cleanup_fake_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_test_cleanup_fake_LDADD = $(src_core_platform_tests_libadd) - -src_core_platform_tests_test_cleanup_linux_SOURCES = src/core/platform/tests/test-cleanup.c -src_core_platform_tests_test_cleanup_linux_CPPFLAGS = $(src_core_tests_cppflags_linux) -src_core_platform_tests_test_cleanup_linux_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_test_cleanup_linux_LDADD = $(src_core_platform_tests_libadd) - -src_core_platform_tests_test_link_fake_SOURCES = src/core/platform/tests/test-link.c -src_core_platform_tests_test_link_fake_CPPFLAGS = $(src_core_tests_cppflags_fake) -src_core_platform_tests_test_link_fake_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_test_link_fake_LDADD = $(src_core_platform_tests_libadd) - -src_core_platform_tests_test_link_linux_SOURCES = src/core/platform/tests/test-link.c -src_core_platform_tests_test_link_linux_CPPFLAGS = $(src_core_tests_cppflags_linux) -src_core_platform_tests_test_link_linux_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_test_link_linux_LDADD = $(src_core_platform_tests_libadd) - -src_core_platform_tests_test_nmp_object_CPPFLAGS = $(src_core_cppflags_test) -src_core_platform_tests_test_nmp_object_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_test_nmp_object_LDADD = src/core/libNetworkManagerTest.la - -src_core_platform_tests_test_platform_general_CPPFLAGS = $(src_core_cppflags_test) -src_core_platform_tests_test_platform_general_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_test_platform_general_LDADD = src/core/libNetworkManagerTest.la - -src_core_platform_tests_test_route_fake_SOURCES = src/core/platform/tests/test-route.c -src_core_platform_tests_test_route_fake_CPPFLAGS = $(src_core_tests_cppflags_fake) -src_core_platform_tests_test_route_fake_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_test_route_fake_LDADD = $(src_core_platform_tests_libadd) - -src_core_platform_tests_test_route_linux_SOURCES = src/core/platform/tests/test-route.c -src_core_platform_tests_test_route_linux_CPPFLAGS = $(src_core_tests_cppflags_linux) -src_core_platform_tests_test_route_linux_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_test_route_linux_LDADD = $(src_core_platform_tests_libadd) - -src_core_platform_tests_test_tc_linux_SOURCES = src/core/platform/tests/test-tc.c -src_core_platform_tests_test_tc_linux_CPPFLAGS = $(src_core_tests_cppflags_linux) -src_core_platform_tests_test_tc_linux_LDFLAGS = $(src_core_platform_tests_ldflags) -src_core_platform_tests_test_tc_linux_LDADD = $(src_core_platform_tests_libadd) - - -$(src_core_platform_tests_monitor_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_address_fake_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_address_linux_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_cleanup_fake_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_cleanup_linux_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_link_fake_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_link_linux_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_nmp_object_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_platform_general_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_route_fake_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_route_linux_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_tc_fake_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_platform_tests_test_tc_linux_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/core/platform/tests/meson.build \ - $(NULL) - -############################################################################### -# src/core/devices/tests -############################################################################### - -src_core_devices_tests_ldflags = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) - -check_programs += \ - src/core/devices/tests/test-lldp \ - $(NULL) - -src_core_devices_tests_test_lldp_CPPFLAGS = $(src_core_cppflags_test) -src_core_devices_tests_test_lldp_LDFLAGS = $(src_core_devices_tests_ldflags) -src_core_devices_tests_test_lldp_LDADD = \ - src/core/libNetworkManagerTest.la - -$(src_core_devices_tests_test_lldp_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/core/devices/tests/meson.build - -############################################################################### -# src/core/ndisc/tests -############################################################################### - -src_core_ndisc_tests_ldflags = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) - -src_core_ndisc_tests_ldadd = \ - src/core/libNetworkManagerTest.la \ - $(GLIB_LIBS) - -check_programs += src/core/ndisc/tests/test-ndisc-fake -check_programs_norun += src/core/ndisc/tests/test-ndisc-linux - -src_core_ndisc_tests_test_ndisc_linux_CPPFLAGS = $(src_core_cppflags_test) -src_core_ndisc_tests_test_ndisc_linux_LDFLAGS = $(src_core_ndisc_tests_ldflags) -src_core_ndisc_tests_test_ndisc_linux_LDADD = $(src_core_ndisc_tests_ldadd) - -src_core_ndisc_tests_test_ndisc_fake_CPPFLAGS = $(src_core_cppflags_test) -src_core_ndisc_tests_test_ndisc_fake_LDFLAGS = $(src_core_ndisc_tests_ldflags) -src_core_ndisc_tests_test_ndisc_fake_LDADD = $(src_core_ndisc_tests_ldadd) - -$(src_core_ndisc_tests_test_ndisc_linux_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_ndisc_tests_test_ndisc_fake_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/core/ndisc/tests/meson.build - -############################################################################### -# src/core/supplicant/tests -############################################################################### - -check_programs += src/core/supplicant/tests/test-supplicant-config - -src_core_supplicant_tests_test_supplicant_config_CPPFLAGS = $(src_core_cppflags_test) - -src_core_supplicant_tests_test_supplicant_config_LDADD = \ - src/core/libNetworkManagerTest.la - -src_core_supplicant_tests_test_supplicant_config_LDFLAGS = \ - $(SANITIZER_EXEC_LDFLAGS) - -$(src_core_supplicant_tests_test_supplicant_config_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/core/supplicant/tests/certs/test-ca-cert.pem \ - src/core/supplicant/tests/certs/test-cert.p12 \ - src/core/supplicant/tests/meson.build - -############################################################################### -# src/core/tests/config -############################################################################### - -check_programs += src/core/tests/config/test-config - -src_core_tests_config_test_config_SOURCES = \ - src/core/tests/config/nm-test-device.c \ - src/core/tests/config/nm-test-device.h \ - src/core/tests/config/test-config.c - -src_core_tests_config_test_config_CPPFLAGS = $(src_core_cppflags_test) - -src_core_tests_config_test_config_LDADD = \ - src/core/libNetworkManagerTest.la - -src_core_tests_config_test_config_LDFLAGS = \ - $(SANITIZER_EXEC_LDFLAGS) - -$(src_core_tests_config_test_config_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/core/tests/config/NetworkManager.conf \ - src/core/tests/config/NetworkManager-warn.conf \ - src/core/tests/config/NetworkManager.state \ - src/core/tests/config/bad.conf \ - src/core/tests/config/global-dns-good.conf \ - src/core/tests/config/global-dns-invalid.conf \ - src/core/tests/config/global-dns-options.conf \ - src/core/tests/config/conf.d/00-overrides.conf \ - src/core/tests/config/conf.d/10-more.conf \ - src/core/tests/config/conf.d/20-config-enable-1.conf \ - src/core/tests/config/conf.d/90-last.conf \ - src/core/tests/config/meson.build - -############################################################################### -# src/core/tests -############################################################################### - -src_core_tests_ldflags = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) - -src_core_tests_ldadd = \ - src/core/libNetworkManagerTest.la - -check_programs += \ - src/core/tests/test-core \ - src/core/tests/test-core-with-expect \ - src/core/tests/test-dcb \ - src/core/tests/test-l3cfg \ - src/core/tests/test-systemd \ - src/core/tests/test-utils \ - src/core/tests/test-wired-defname \ - $(NULL) - -src_core_tests_test_dcb_CPPFLAGS = $(src_core_cppflags_test) -src_core_tests_test_dcb_LDFLAGS = $(src_core_tests_ldflags) -src_core_tests_test_dcb_LDADD = $(src_core_tests_ldadd) - -src_core_tests_test_core_CPPFLAGS = $(src_core_cppflags_test) -src_core_tests_test_core_LDFLAGS = $(src_core_tests_ldflags) -src_core_tests_test_core_LDADD = $(src_core_tests_ldadd) - -src_core_tests_test_core_with_expect_CPPFLAGS = $(src_core_cppflags_test) -src_core_tests_test_core_with_expect_LDFLAGS = $(src_core_tests_ldflags) -src_core_tests_test_core_with_expect_LDADD = $(src_core_tests_ldadd) - -src_core_tests_test_wired_defname_CPPFLAGS = $(src_core_cppflags_test) -src_core_tests_test_wired_defname_LDFLAGS = $(src_core_tests_ldflags) -src_core_tests_test_wired_defname_LDADD = $(src_core_tests_ldadd) - -src_core_tests_test_utils_CPPFLAGS = $(src_core_cppflags_test) -src_core_tests_test_utils_LDFLAGS = $(src_core_tests_ldflags) -src_core_tests_test_utils_LDADD = $(src_core_tests_ldadd) - -src_core_tests_test_l3cfg_CPPFLAGS = $(src_core_cppflags_test) -src_core_tests_test_l3cfg_LDFLAGS = $(src_core_devices_tests_ldflags) -src_core_tests_test_l3cfg_LDADD = $(src_core_tests_ldadd) - -$(src_core_tests_test_core_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_tests_test_core_with_expect_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_tests_test_dcb_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_tests_test_l3cfg_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_tests_test_utils_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_core_tests_test_wired_defname_OBJECTS): $(src_libnm_core_public_mkenums_h) - -src_core_tests_test_systemd_CPPFLAGS = \ - $(src_libnm_systemd_core_libnm_systemd_core_la_cppflags) \ - $(NULL) - -src_core_tests_test_systemd_LDFLAGS = \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_core_tests_test_systemd_LDADD = \ - src/libnm-systemd-core/libnm-systemd-core.la \ - src/libnm-systemd-shared/libnm-systemd-shared.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(GLIB_LIBS) \ - $(CODE_COVERAGE_LDFLAGS) \ - $(NULL) - -$(src_core_tests_test_systemd_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/core/tests/test-secret-agent.py \ - src/core/tests/meson.build - -############################################################################### -# src/nm-dispatcher -############################################################################### - -dispatcher_nmdbus_dispatcher_sources = \ - src/nm-dispatcher/nmdbus-dispatcher.h \ - src/nm-dispatcher/nmdbus-dispatcher.c \ - $(NULL) - -src/nm-dispatcher/nmdbus-dispatcher.h: src/nm-dispatcher/nm-dispatcher.xml - @$(MKDIR_P) src/nm-dispatcher/ - $(AM_V_GEN) gdbus-codegen \ - --generate-c-code $(basename $@) \ - --c-namespace NMDBus \ - --interface-prefix org.freedesktop \ - $< - -src/nm-dispatcher/nmdbus-dispatcher.c: src/nm-dispatcher/nmdbus-dispatcher.h - -CLEANFILES += $(dispatcher_nmdbus_dispatcher_sources) - -############################################################################### - -libexec_PROGRAMS += src/nm-dispatcher/nm-dispatcher - -noinst_LTLIBRARIES += src/nm-dispatcher/libnm-dispatcher-core.la - -dispatcher_cppflags = \ - $(dflt_cppflags) \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-core-public \ - -I$(builddir)/src/libnm-client-public \ - -I$(srcdir)/src/libnm-client-public \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(GLIB_CFLAGS) \ - $(NULL) - -src_nm_dispatcher_libnm_dispatcher_core_la_SOURCES = \ - src/nm-dispatcher/nm-dispatcher-utils.c \ - src/nm-dispatcher/nm-dispatcher-utils.h \ - $(NULL) - -src_nm_dispatcher_libnm_dispatcher_core_la_CPPFLAGS = $(dispatcher_cppflags) - -src_nm_dispatcher_libnm_dispatcher_core_la_LIBADD = \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) - -src_nm_dispatcher_nm_dispatcher_SOURCES = \ - src/nm-dispatcher/nm-dispatcher.c \ - $(NULL) - -src_nm_dispatcher_nm_dispatcher_CPPFLAGS = $(dispatcher_cppflags) - -src_nm_dispatcher_nm_dispatcher_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/linker-script-binary.ver" \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_nm_dispatcher_nm_dispatcher_LDADD = \ - src/nm-dispatcher/libnm-dispatcher-core.la \ - src/libnm-client-impl/libnm.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(GLIB_LIBS) \ - $(NULL) - -src/nm-dispatcher/org.freedesktop.nm_dispatcher.service: $(srcdir)/src/nm-dispatcher/org.freedesktop.nm_dispatcher.service.in - @sed \ - -e 's|@sbindir[@]|$(sbindir)|g' \ - -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ - -e 's|@localstatedir[@]|$(localstatedir)|g' \ - -e 's|@libexecdir[@]|$(libexecdir)|g' \ - $< >$@ - -dbusactivation_DATA += src/nm-dispatcher/org.freedesktop.nm_dispatcher.service -CLEANFILES += src/nm-dispatcher/org.freedesktop.nm_dispatcher.service - -install-data-hook-dispatcher: - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/dispatcher.d - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/dispatcher.d/pre-down.d - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/dispatcher.d/pre-up.d - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/dispatcher.d/no-wait.d - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/dispatcher.d - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/dispatcher.d/pre-down.d - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/dispatcher.d/pre-up.d - $(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/dispatcher.d/no-wait.d - -install_data_hook += install-data-hook-dispatcher - -dbusservice_DATA += src/nm-dispatcher/nm-dispatcher.conf - -EXTRA_DIST += \ - src/nm-dispatcher/nm-dispatcher.conf \ - src/nm-dispatcher/org.freedesktop.nm_dispatcher.service.in \ - src/nm-dispatcher/nm-dispatcher.xml \ - src/nm-dispatcher/meson.build \ - $(NULL) - -############################################################################### -# src/nm-dispatcher/tests -############################################################################### - -check_programs += src/nm-dispatcher/tests/test-dispatcher-envp - -src_nm_dispatcher_tests_test_dispatcher_envp_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-client-public \ - -I$(builddir)/src/libnm-client-public \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(GLIB_CFLAGS) \ - $(SANITIZER_EXEC_CFLAGS) \ - $(INTROSPECTION_EXTRA_CFLAGS) \ - $(NULL) - -src_nm_dispatcher_tests_test_dispatcher_envp_SOURCES = \ - src/nm-dispatcher/tests/test-dispatcher-envp.c \ - $(NULL) - -nodist_src_nm_dispatcher_tests_test_dispatcher_envp_SOURCES = $(dispatcher_nmdbus_dispatcher_sources) - -$(src_nm_dispatcher_tests_test_dispatcher_envp_OBJECTS): $(dispatcher_nmdbus_dispatcher_sources) -$(src_nm_dispatcher_tests_test_dispatcher_envp_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nm_dispatcher_tests_test_dispatcher_envp_OBJECTS): $(src_libnm_client_public_mkenums_h) - -src_nm_dispatcher_tests_test_dispatcher_envp_LDFLAGS = \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_nm_dispatcher_tests_test_dispatcher_envp_LDADD = \ - src/nm-dispatcher/libnm-dispatcher-core.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) \ - $(NULL) - -$(src_nm_dispatcher_tests_test_dispatcher_envp_OBJECTS): $(src_libnm_core_public_mkenums_h) - -EXTRA_DIST += \ - src/nm-dispatcher/tests/dispatcher-connectivity-full \ - src/nm-dispatcher/tests/dispatcher-connectivity-unknown \ - src/nm-dispatcher/tests/dispatcher-down \ - src/nm-dispatcher/tests/dispatcher-external \ - src/nm-dispatcher/tests/dispatcher-up \ - src/nm-dispatcher/tests/dispatcher-vpn-down \ - src/nm-dispatcher/tests/dispatcher-vpn-up \ - src/nm-dispatcher/tests/meson.build \ - $(NULL) - -############################################################################### -# src/nm-priv-helper -############################################################################### - -libexec_PROGRAMS += src/nm-priv-helper/nm-priv-helper - -src_nm_priv_helper_nm_priv_helper_SOURCES = \ - src/nm-priv-helper/nm-priv-helper.c \ - $(NULL) - -src_nm_priv_helper_nm_priv_helper_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-core-public \ - -I$(builddir)/src/libnm-client-public \ - -I$(srcdir)/src/libnm-client-public \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(GLIB_CFLAGS) \ - $(NULL) - -src_nm_priv_helper_nm_priv_helper_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/linker-script-binary.ver" \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_nm_priv_helper_nm_priv_helper_LDADD = \ - src/libnm-base/libnm-base.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(GLIB_LIBS) \ - $(NULL) - -src/nm-priv-helper/org.freedesktop.nm_priv_helper.service: $(srcdir)/src/nm-priv-helper/org.freedesktop.nm_priv_helper.service.in - @sed \ - -e 's|@libexecdir[@]|$(libexecdir)|g' \ - $< >$@ - -dbusactivation_DATA += src/nm-priv-helper/org.freedesktop.nm_priv_helper.service -CLEANFILES += src/nm-priv-helper/org.freedesktop.nm_priv_helper.service - -dbusservice_DATA += src/nm-priv-helper/nm-priv-helper.conf - -EXTRA_DIST += \ - src/nm-priv-helper/nm-priv-helper.conf \ - src/nm-priv-helper/org.freedesktop.nm_priv_helper.service.in \ - src/nm-priv-helper/meson.build \ - $(NULL) - -############################################################################### -# src/nm-daemon-helper -############################################################################### - -libexec_PROGRAMS += src/nm-daemon-helper/nm-daemon-helper - -src_nm_daemon_helper_nm_daemon_helper_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - $(NULL) - -src_nm_daemon_helper_nm_daemon_helper_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/linker-script-binary.ver" \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_nm_daemon_helper_nm_daemon_helper_LDADD = \ - src/libnm-std-aux/libnm-std-aux.la \ - $(NULL) - -EXTRA_DIST += \ - src/nm-daemon-helper/meson.build \ - $(NULL) - -############################################################################### -# src/nm-online -############################################################################### - -bin_PROGRAMS += src/nm-online/nm-online - -src_nm_online_nm_online_CPPFLAGS = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-client-public \ - -I$(builddir)/src/libnm-client-public \ - $(GLIB_CFLAGS) \ - $(NULL) - -src_nm_online_nm_online_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/linker-script-binary.ver" \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_nm_online_nm_online_LDADD = \ - src/libnm-client-impl/libnm.la \ - src/libnm-client-aux-extern/libnm-client-aux-extern.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(GLIB_LIBS) \ - $(NULL) - -$(src_nm_online_nm_online_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nm_online_nm_online_OBJECTS): $(src_libnm_client_public_mkenums_h) - -EXTRA_DIST += src/nm-online/meson.build - -############################################################################### -# src/libnmc-base -############################################################################### - -clients_cppflags = \ - $(dflt_cppflags) \ - -I$(srcdir)/src \ - -I$(builddir)/src \ - -I$(srcdir)/src/libnm-core-public \ - -I$(builddir)/src/libnm-core-public \ - -I$(srcdir)/src/libnm-client-public \ - -I$(builddir)/src/libnm-client-public \ - $(GLIB_CFLAGS) \ - $(SANITIZER_EXEC_CFLAGS) \ - $(NULL) - -check_ltlibraries += src/libnmc-base/libnmc-base.la - -src_libnmc_base_libnmc_base_la_SOURCES = \ - src/libnmc-base/nm-client-utils.c \ - src/libnmc-base/nm-client-utils.h \ - src/libnmc-base/nm-polkit-listener.c \ - src/libnmc-base/nm-polkit-listener.h \ - src/libnmc-base/nm-secret-agent-simple.c \ - src/libnmc-base/nm-secret-agent-simple.h \ - src/libnmc-base/nm-vpn-helpers.c \ - src/libnmc-base/nm-vpn-helpers.h \ - $(NULL) - -EXTRA_DIST += \ - src/libnmc-base/qrcodegen.c \ - src/libnmc-base/qrcodegen.h \ - $(NULL) - -src_libnmc_base_libnmc_base_la_CPPFLAGS = \ - $(clients_cppflags) \ - $(NULL) - -src_libnmc_base_libnmc_base_la_LIBADD = \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) \ - $(NULL) - -$(src_libnmc_base_libnmc_base_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnmc_base_libnmc_base_la_OBJECTS): $(src_libnm_client_public_mkenums_h) - -EXTRA_DIST += src/libnmc-base/meson.build - -############################################################################### -# src/libnmc-setting -############################################################################### - -libnmc_setting_settings_doc_h = src/libnmc-setting/settings-docs.h -if BUILD_DOCS -$(libnmc_setting_settings_doc_h): src/libnmc-setting/settings-docs-input.xml src/libnmc-setting/.dirstamp tools/generate-docs-settings-docs.py - $(AM_V_GEN) "$(PYTHON)" $(srcdir)/tools/generate-docs-settings-docs.py --output $@ --xml $< -DISTCLEANFILES += $(libnmc_setting_settings_doc_h) -check-local-settings-docs: $(libnmc_setting_settings_doc_h) - $(srcdir)/tools/check-compare-generated.sh "$(srcdir)/$(libnmc_setting_settings_doc_h).in" "$(builddir)/$(libnmc_setting_settings_doc_h)" -check_local += check-local-settings-docs -else -$(libnmc_setting_settings_doc_h): $(libnmc_setting_settings_doc_h).in src/libnmc-setting/.dirstamp - $(AM_V_GEN) cp "$(srcdir)/$(libnmc_setting_settings_doc_h).in" "$(builddir)/$(libnmc_setting_settings_doc_h)" -check-local-settings-docs: -endif -EXTRA_DIST += \ - tools/generate-docs-settings-docs.py \ - $(libnmc_setting_settings_doc_h) \ - $(libnmc_setting_settings_doc_h).in - -check_ltlibraries += src/libnmc-setting/libnmc-setting.la - -src_libnmc_setting_libnmc_setting_la_SOURCES = \ - src/libnmc-setting/nm-meta-setting-access.c \ - src/libnmc-setting/nm-meta-setting-access.h \ - src/libnmc-setting/nm-meta-setting-base-impl.c \ - src/libnmc-setting/nm-meta-setting-base-impl.h \ - src/libnmc-setting/nm-meta-setting-base.h \ - src/libnmc-setting/nm-meta-setting-desc.c \ - src/libnmc-setting/nm-meta-setting-desc.h \ - $(NULL) - -src_libnmc_setting_libnmc_setting_la_CPPFLAGS = \ - $(clients_cppflags) \ - $(NULL) - -src_libnmc_setting_libnmc_setting_la_LIBADD = \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) \ - $(NULL) - -$(src_libnmc_setting_libnmc_setting_la_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnmc_setting_libnmc_setting_la_OBJECTS): $(src_libnm_client_public_mkenums_h) -$(src_libnmc_setting_libnmc_setting_la_OBJECTS): $(libnmc_setting_settings_doc_h) -$(src_libnmc_setting_libnmc_setting_la_OBJECTS): src/libnmc-setting/.dirstamp - -############################################################################### - -check_programs += src/libnmc-setting/tests/test-libnmc-setting - -src_libnmc_setting_tests_test_libnmc_setting_CPPFLAGS = \ - $(clients_cppflags) \ - $(NULL) - -src_libnmc_setting_tests_test_libnmc_setting_LDFLAGS = \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_libnmc_setting_tests_test_libnmc_setting_LDADD = \ - src/libnmc-setting/libnmc-setting.la \ - src/libnmc-base/libnmc-base.la \ - src/libnm-core-aux-extern/libnm-core-aux-extern.la \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-base/libnm-base.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) - -$(src_libnmc_setting_tests_test_libnmc_setting_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnmc_setting_tests_test_libnmc_setting_OBJECTS): $(src_libnm_client_public_mkenums_h) - -EXTRA_DIST += \ - src/libnmc-setting/tests/wg-test0.conf \ - src/libnmc-setting/tests/wg-test1.conf \ - src/libnmc-setting/tests/wg-test2.conf \ - src/libnmc-setting/tests/wg-test3.conf \ - $(NULL) - -############################################################################### -# src/nmcli -############################################################################### - -if BUILD_NMCLI - -bin_PROGRAMS += src/nmcli/nmcli - -src_nmcli_nmcli_SOURCES = \ - src/nmcli/common.c \ - src/nmcli/common.h \ - src/nmcli/utils.c \ - src/nmcli/utils.h \ - src/nmcli/agent.c \ - src/nmcli/general.c \ - src/nmcli/connections.c \ - src/nmcli/connections.h \ - src/nmcli/devices.c \ - src/nmcli/devices.h \ - src/nmcli/settings.c \ - src/nmcli/settings.h \ - src/nmcli/nmcli.c \ - src/nmcli/nmcli.h \ - src/nmcli/polkit-agent.c \ - src/nmcli/polkit-agent.h \ - $(NULL) - -src_nmcli_nmcli_CPPFLAGS = \ - $(clients_cppflags) \ - $(NULL) - -src_nmcli_nmcli_LDADD = \ - src/libnmc-setting/libnmc-setting.la \ - src/libnmc-base/libnmc-base.la \ - src/libnm-core-aux-extern/libnm-core-aux-extern.la \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-base/libnm-base.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - src/libnm-client-aux-extern/libnm-client-aux-extern.la \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) \ - $(READLINE_LIBS) - -src_nmcli_nmcli_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/linker-script-binary.ver" \ - $(SANITIZER_EXEC_LDFLAGS) - -$(src_nmcli_nmcli_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nmcli_nmcli_OBJECTS): $(src_libnm_client_public_mkenums_h) - -install-data-hook-nmcli: - $(mkinstalldirs) $(DESTDIR)$(completiondir) - $(INSTALL_DATA) $(srcdir)/src/nmcli/nmcli-completion $(DESTDIR)$(completiondir)/nmcli - -install_data_hook += install-data-hook-nmcli - -uninstall-hook-nmcli: - rm -f $(DESTDIR)$(completiondir)/nmcli - -uninstall_hook += uninstall-hook-nmcli - -endif - -############################################################################### - -noinst_PROGRAMS += src/nmcli/gen-metadata-nm-settings-nmcli - -src_nmcli_gen_metadata_nm_settings_nmcli_SOURCES = \ - src/nmcli/gen-metadata-nm-settings-nmcli.c \ - $(NULL) - -src_nmcli_gen_metadata_nm_settings_nmcli_CPPFLAGS = \ - $(clients_cppflags) \ - $(NULL) - -src_nmcli_gen_metadata_nm_settings_nmcli_LDADD = \ - src/libnmc-setting/libnmc-setting.la \ - src/libnmc-base/libnmc-base.la \ - src/libnm-client-aux-extern/libnm-client-aux-extern.la \ - src/libnm-core-aux-extern/libnm-core-aux-extern.la \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-base/libnm-base.la \ - src/libnm-client-impl/libnm.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - $(GLIB_LIBS) \ - $(NULL) - -src_nmcli_gen_metadata_nm_settings_nmcli_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/linker-script-binary.ver" \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -$(src_nmcli_gen_metadata_nm_settings_nmcli_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nmcli_gen_metadata_nm_settings_nmcli_OBJECTS): $(src_libnm_client_public_mkenums_h) - -############################################################################### - -EXTRA_DIST += \ - src/nmcli/nmcli-completion \ - src/nmcli/meson.build \ - src/libnmc-setting/meson.build \ - src/libnmc-setting/tests/meson.build - -############################################################################### -# src/libnmt-newt -############################################################################### - -if BUILD_NMTUI - -noinst_LIBRARIES += src/libnmt-newt/libnmt-newt.a - -src_libnmt_newt_libnmt_newt_a_SOURCES = \ - src/libnmt-newt/nmt-newt-button-box.c \ - src/libnmt-newt/nmt-newt-button-box.h \ - src/libnmt-newt/nmt-newt-button.c \ - src/libnmt-newt/nmt-newt-button.h \ - src/libnmt-newt/nmt-newt-checkbox.c \ - src/libnmt-newt/nmt-newt-checkbox.h \ - src/libnmt-newt/nmt-newt-component.c \ - src/libnmt-newt/nmt-newt-component.h \ - src/libnmt-newt/nmt-newt-container.c \ - src/libnmt-newt/nmt-newt-container.h \ - src/libnmt-newt/nmt-newt-entry-numeric.c \ - src/libnmt-newt/nmt-newt-entry-numeric.h \ - src/libnmt-newt/nmt-newt-entry.c \ - src/libnmt-newt/nmt-newt-entry.h \ - src/libnmt-newt/nmt-newt-form.c \ - src/libnmt-newt/nmt-newt-form.h \ - src/libnmt-newt/nmt-newt-grid.c \ - src/libnmt-newt/nmt-newt-grid.h \ - src/libnmt-newt/nmt-newt-hacks.c \ - src/libnmt-newt/nmt-newt-hacks.h \ - src/libnmt-newt/nmt-newt-label.c \ - src/libnmt-newt/nmt-newt-label.h \ - src/libnmt-newt/nmt-newt-listbox.c \ - src/libnmt-newt/nmt-newt-listbox.h \ - src/libnmt-newt/nmt-newt-popup.c \ - src/libnmt-newt/nmt-newt-popup.h \ - src/libnmt-newt/nmt-newt-section.c \ - src/libnmt-newt/nmt-newt-section.h \ - src/libnmt-newt/nmt-newt-separator.c \ - src/libnmt-newt/nmt-newt-separator.h \ - src/libnmt-newt/nmt-newt-stack.c \ - src/libnmt-newt/nmt-newt-stack.h \ - src/libnmt-newt/nmt-newt-textbox.c \ - src/libnmt-newt/nmt-newt-textbox.h \ - src/libnmt-newt/nmt-newt-toggle-button.c \ - src/libnmt-newt/nmt-newt-toggle-button.h \ - src/libnmt-newt/nmt-newt-types.h \ - src/libnmt-newt/nmt-newt-utils.c \ - src/libnmt-newt/nmt-newt-utils.h \ - src/libnmt-newt/nmt-newt-widget.c \ - src/libnmt-newt/nmt-newt-widget.h \ - src/libnmt-newt/nmt-newt.h \ - $(NULL) - -src_libnmt_newt_libnmt_newt_a_CPPFLAGS = \ - $(clients_cppflags) \ - $(NEWT_CFLAGS) \ - $(NULL) - -$(src_libnmt_newt_libnmt_newt_a_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_libnmt_newt_libnmt_newt_a_OBJECTS): $(src_libnm_client_public_mkenums_h) - -endif - -EXTRA_DIST += src/libnmt-newt/meson.build - -############################################################################### -# src/nmtui -############################################################################### - -if BUILD_NMTUI - -bin_PROGRAMS += src/nmtui/nmtui - -src_nmtui_nmtui_SOURCES = \ - src/nmtui/nmtui.c \ - src/nmtui/nmtui.h \ - src/nmtui/nmtui-connect.c \ - src/nmtui/nmtui-connect.h \ - src/nmtui/nmtui-edit.c \ - src/nmtui/nmtui-edit.h \ - src/nmtui/nmtui-hostname.c \ - src/nmtui/nmtui-hostname.h \ - src/nmtui/nmtui-radio.c \ - src/nmtui/nmtui-radio.h \ - \ - src/nmtui/nm-editor-bindings.c \ - src/nmtui/nm-editor-bindings.h \ - src/nmtui/nm-editor-utils.c \ - src/nmtui/nm-editor-utils.h \ - \ - src/nmtui/nmt-8021x-fields.c \ - src/nmtui/nmt-8021x-fields.h \ - src/nmtui/nmt-address-list.c \ - src/nmtui/nmt-address-list.h \ - src/nmtui/nmt-connect-connection-list.c \ - src/nmtui/nmt-connect-connection-list.h \ - src/nmtui/nmt-device-entry.c \ - src/nmtui/nmt-device-entry.h \ - src/nmtui/nmt-edit-connection-list.c \ - src/nmtui/nmt-edit-connection-list.h \ - src/nmtui/nmt-editor-grid.c \ - src/nmtui/nmt-editor-grid.h \ - src/nmtui/nmt-editor-page-device.c \ - src/nmtui/nmt-editor-page-device.h \ - src/nmtui/nmt-editor-page.c \ - src/nmtui/nmt-editor-page.h \ - src/nmtui/nmt-editor-section.c \ - src/nmtui/nmt-editor-section.h \ - src/nmtui/nmt-editor.c \ - src/nmtui/nmt-editor.h \ - src/nmtui/nmt-ip-entry.c \ - src/nmtui/nmt-ip-entry.h \ - src/nmtui/nmt-mac-entry.c \ - src/nmtui/nmt-mac-entry.h \ - src/nmtui/nmt-mtu-entry.c \ - src/nmtui/nmt-mtu-entry.h \ - src/nmtui/nmt-page-bond-port.c \ - src/nmtui/nmt-page-bond-port.h \ - src/nmtui/nmt-page-bond.c \ - src/nmtui/nmt-page-bond.h \ - src/nmtui/nmt-page-bridge-port.c \ - src/nmtui/nmt-page-bridge-port.h \ - src/nmtui/nmt-page-bridge.c \ - src/nmtui/nmt-page-bridge.h \ - src/nmtui/nmt-page-dsl.c \ - src/nmtui/nmt-page-dsl.h \ - src/nmtui/nmt-page-ethernet.c \ - src/nmtui/nmt-page-ethernet.h \ - src/nmtui/nmt-page-infiniband.c \ - src/nmtui/nmt-page-infiniband.h \ - src/nmtui/nmt-page-ip-tunnel.c \ - src/nmtui/nmt-page-ip-tunnel.h \ - src/nmtui/nmt-page-ip4.c \ - src/nmtui/nmt-page-ip4.h \ - src/nmtui/nmt-page-ip6.c \ - src/nmtui/nmt-page-ip6.h \ - src/nmtui/nmt-page-macsec.c \ - src/nmtui/nmt-page-macsec.h \ - src/nmtui/nmt-page-ppp.c \ - src/nmtui/nmt-page-ppp.h \ - src/nmtui/nmt-page-team-port.c \ - src/nmtui/nmt-page-team-port.h \ - src/nmtui/nmt-page-team.c \ - src/nmtui/nmt-page-team.h \ - src/nmtui/nmt-page-veth.c \ - src/nmtui/nmt-page-veth.h \ - src/nmtui/nmt-page-vlan.c \ - src/nmtui/nmt-page-vlan.h \ - src/nmtui/nmt-page-wifi.c \ - src/nmtui/nmt-page-wifi.h \ - src/nmtui/nmt-page-wireguard.c \ - src/nmtui/nmt-page-wireguard.h \ - src/nmtui/nmt-password-dialog.c \ - src/nmtui/nmt-password-dialog.h \ - src/nmtui/nmt-password-fields.c \ - src/nmtui/nmt-password-fields.h \ - src/nmtui/nmt-route-editor.c \ - src/nmtui/nmt-route-editor.h \ - src/nmtui/nmt-route-entry.c \ - src/nmtui/nmt-route-entry.h \ - src/nmtui/nmt-route-table.c \ - src/nmtui/nmt-route-table.h \ - src/nmtui/nmt-port-list.c \ - src/nmtui/nmt-port-list.h \ - src/nmtui/nmt-utils.c \ - src/nmtui/nmt-utils.h \ - src/nmtui/nmt-widget-list.c \ - src/nmtui/nmt-widget-list.h \ - src/nmtui/nmt-wireguard-peer-editor.c \ - src/nmtui/nmt-wireguard-peer-editor.h \ - src/nmtui/nmt-wireguard-peer-list.c \ - src/nmtui/nmt-wireguard-peer-list.h \ - $(NULL) - -src_nmtui_nmtui_CPPFLAGS = \ - $(clients_cppflags) \ - $(NEWT_CFLAGS) \ - $(NULL) - -src_nmtui_nmtui_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/linker-script-binary.ver" \ - $(SANITIZER_EXEC_LDFLAGS) - -src_nmtui_nmtui_LDADD = \ - src/libnmt-newt/libnmt-newt.a \ - src/libnmc-setting/libnmc-setting.la \ - src/libnmc-base/libnmc-base.la \ - src/libnm-client-aux-extern/libnm-client-aux-extern.la \ - src/libnm-core-aux-extern/libnm-core-aux-extern.la \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-base/libnm-base.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) \ - $(NEWT_LIBS) \ - $(NULL) - -$(src_nmtui_nmtui_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nmtui_nmtui_OBJECTS): $(src_libnm_client_public_mkenums_h) - -nmtui_links = \ - nmtui-edit \ - nmtui-connect \ - nmtui-hostname \ - $(NULL) - -install-exec-hook-nmtui: - for link in $(nmtui_links); do \ - $(LN_S) -f nmtui "$(DESTDIR)$(bindir)/$$link"; \ - done - -install_exec_hook += install-exec-hook-nmtui - -uninstall-hook-nmtui: - for link in $(nmtui_links); do \ - rm -f "$(DESTDIR)$(bindir)/$$link"; \ - done - -uninstall_hook += uninstall-hook-nmtui - -endif - -EXTRA_DIST += src/nmtui/meson.build - -############################################################################### -# src/nm-cloud-setup -############################################################################### - -if BUILD_NM_CLOUD_SETUP - -noinst_LIBRARIES += src/nm-cloud-setup/libnm-cloud-setup-core.a - -src_nm_cloud_setup_libnm_cloud_setup_core_a_SOURCES = \ - src/nm-cloud-setup/nm-cloud-setup-utils.c \ - src/nm-cloud-setup/nm-cloud-setup-utils.h \ - src/nm-cloud-setup/nm-http-client.c \ - src/nm-cloud-setup/nm-http-client.h \ - src/nm-cloud-setup/nmcs-provider.c \ - src/nm-cloud-setup/nmcs-provider.h \ - src/nm-cloud-setup/nmcs-provider-ec2.c \ - src/nm-cloud-setup/nmcs-provider-ec2.h \ - src/nm-cloud-setup/nmcs-provider-gcp.c \ - src/nm-cloud-setup/nmcs-provider-gcp.h \ - src/nm-cloud-setup/nmcs-provider-azure.c \ - src/nm-cloud-setup/nmcs-provider-azure.h \ - src/nm-cloud-setup/nmcs-provider-aliyun.c \ - src/nm-cloud-setup/nmcs-provider-aliyun.h \ - $(NULL) - -src_nm_cloud_setup_libnm_cloud_setup_core_a_CPPFLAGS = \ - $(clients_cppflags) \ - $(LIBCURL_CFLAGS) \ - $(NULL) - -$(src_nm_cloud_setup_libnm_cloud_setup_core_a_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nm_cloud_setup_libnm_cloud_setup_core_a_OBJECTS): $(src_libnm_client_public_mkenums_h) - -libexec_PROGRAMS += src/nm-cloud-setup/nm-cloud-setup - -src_nm_cloud_setup_nm_cloud_setup_SOURCES = \ - src/nm-cloud-setup/main.c \ - $(NULL) - -src_nm_cloud_setup_nm_cloud_setup_CPPFLAGS = \ - $(clients_cppflags) \ - $(LIBCURL_CFLAGS) \ - $(NULL) - -src_nm_cloud_setup_nm_cloud_setup_LDFLAGS = \ - -Wl,--version-script="$(srcdir)/linker-script-binary.ver" \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_nm_cloud_setup_nm_cloud_setup_LDADD = \ - src/nm-cloud-setup/libnm-cloud-setup-core.a \ - src/libnm-client-aux-extern/libnm-client-aux-extern.la \ - src/libnm-core-aux-extern/libnm-core-aux-extern.la \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-base/libnm-base.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) \ - $(LIBCURL_LIBS) \ - $(NULL) - -$(src_nm_cloud_setup_nm_cloud_setup_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nm_cloud_setup_nm_cloud_setup_OBJECTS): $(src_libnm_client_public_mkenums_h) - -if HAVE_SYSTEMD - -systemdsystemunit_DATA += \ - src/nm-cloud-setup/nm-cloud-setup.service \ - src/nm-cloud-setup/nm-cloud-setup.timer \ - $(NULL) - -src/nm-cloud-setup/nm-cloud-setup.service: $(srcdir)/src/nm-cloud-setup/nm-cloud-setup.service.in - $(AM_V_GEN) $(data_edit) $< >$@ - -install-data-hook-cloud-setup: install-data-hook-dispatcher - $(INSTALL_SCRIPT) "$(srcdir)/src/nm-cloud-setup/90-nm-cloud-setup.sh" "$(DESTDIR)$(nmlibdir)/dispatcher.d/pre-up.d/" - ln -fs ../pre-up.d/90-nm-cloud-setup.sh "$(DESTDIR)$(nmlibdir)/dispatcher.d/no-wait.d/90-nm-cloud-setup.sh" - ln -fs no-wait.d/90-nm-cloud-setup.sh "$(DESTDIR)$(nmlibdir)/dispatcher.d/90-nm-cloud-setup.sh" - -install_data_hook += install-data-hook-cloud-setup - -uninstall-hook-cloud-setup: - rm -f "$(DESTDIR)$(nmlibdir)/dispatcher.d/pre-up.d/90-nm-cloud-setup.sh" - rm -f "$(DESTDIR)$(nmlibdir)/dispatcher.d/no-wait.d/90-nm-cloud-setup.sh" - rm -f "$(DESTDIR)$(nmlibdir)/dispatcher.d/90-nm-cloud-setup.sh" - -uninstall_hook += uninstall-hook-cloud-setup - -endif - -EXTRA_DIST += \ - src/nm-cloud-setup/90-nm-cloud-setup.sh \ - src/nm-cloud-setup/meson.build \ - src/nm-cloud-setup/nm-cloud-setup.service.in \ - src/nm-cloud-setup/nm-cloud-setup.timer \ - src/nm-cloud-setup/tests/meson.build \ - $(NULL) - -CLEANFILES += \ - src/nm-cloud-setup/nm-cloud-setup.service - -check_programs += src/nm-cloud-setup/tests/test-cloud-setup-general - -src_nm_cloud_setup_tests_test_cloud_setup_general_CPPFLAGS = \ - $(clients_cppflags) \ - $(LIBCURL_CFLAGS) \ - $(NULL) - -src_nm_cloud_setup_tests_test_cloud_setup_general_LDFLAGS = \ - $(CODE_COVERAGE_LDFLAGS) \ - $(SANITIZER_EXEC_LDFLAGS) \ - $(NULL) - -src_nm_cloud_setup_tests_test_cloud_setup_general_LDADD = \ - src/nm-cloud-setup/libnm-cloud-setup-core.a \ - src/libnm-client-aux-extern/libnm-client-aux-extern.la \ - src/libnm-core-aux-extern/libnm-core-aux-extern.la \ - src/libnm-core-aux-intern/libnm-core-aux-intern.la \ - src/libnm-base/libnm-base.la \ - src/libnm-glib-aux/libnm-glib-aux.la \ - src/libnm-log-null/libnm-log-null.la \ - src/libnm-std-aux/libnm-std-aux.la \ - src/c-siphash/libc-siphash.la \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) \ - $(LIBCURL_LIBS) \ - $(NULL) - -$(src_nm_cloud_setup_tests_test_cloud_setup_general_OBJECTS): $(src_libnm_core_public_mkenums_h) -$(src_nm_cloud_setup_tests_test_cloud_setup_general_OBJECTS): $(src_libnm_client_public_mkenums_h) - -endif - -############################################################################### -# src/tests/client -############################################################################### - -check-local-tests-client: src/nmcli/nmcli src/tests/client/test-client.py - LIBTOOL="$(LIBTOOL)" "$(srcdir)/src/tests/client/test-client.sh" "$(builddir)" "$(srcdir)" "$(PYTHON)" -- TestNmcli - -check_local += check-local-tests-client - -check-local-tests-cloud-setup: src/nm-cloud-setup/nm-cloud-setup src/tests/client/test-client.py - LIBTOOL="$(LIBTOOL)" "$(srcdir)/src/tests/client/test-client.sh" "$(builddir)" "$(srcdir)" "$(PYTHON)" -- TestNmCloudSetup - -if BUILD_NM_CLOUD_SETUP -check_local += check-local-tests-cloud-setup -endif - -CLEANFILES += src/tests/client/test-client.log - -EXTRA_DIST += \ - src/tests/client/test-client.sh \ - src/tests/client/test-client.py \ - src/tests/client/test-client.check-on-disk/test_001.expected \ - src/tests/client/test-client.check-on-disk/test_002.expected \ - src/tests/client/test-client.check-on-disk/test_003.expected \ - src/tests/client/test-client.check-on-disk/test_004.expected \ - src/tests/client/test-client.check-on-disk/test_offline.expected \ - src/tests/client/test-client.check-on-disk/test_version_warn.expected \ - src/tests/client/test-client.check-on-disk/test_daemon_not_running.expected \ - \ - src/tests/client/meson.build \ - $(NULL) - -############################################################################### - -check-local-gitlab-ci: - "$(srcdir)/tools/check-gitlab-ci.sh" "$(srcdir)" - -check_local += check-local-gitlab-ci - -############################################################################### -# data -############################################################################### - -if HAVE_SYSTEMD - -systemdsystemunit_DATA += \ - data/NetworkManager.service \ - data/NetworkManager-wait-online.service \ - data/NetworkManager-dispatcher.service \ - data/nm-priv-helper.service \ - $(NULL) - -data/NetworkManager.service: $(srcdir)/data/NetworkManager.service.in - $(AM_V_GEN) $(data_edit) $< >$@ - -data/NetworkManager-wait-online.service: $(srcdir)/data/NetworkManager-wait-online.service.in - $(AM_V_GEN) $(data_edit) $< >$@ - -data/NetworkManager-dispatcher.service: $(srcdir)/data/NetworkManager-dispatcher.service.in - $(AM_V_GEN) $(data_edit) $< >$@ - -data/nm-priv-helper.service: $(srcdir)/data/nm-priv-helper.service.in - $(AM_V_GEN) $(data_edit) $< >$@ - -endif - -examples_DATA += data/server.conf - -if WITH_UDEV_DIR -udevrulesdir = $(UDEV_DIR)/rules.d -udevrules_DATA = \ - data/84-nm-drivers.rules \ - data/85-nm-unmanaged.rules \ - data/90-nm-thunderbolt.rules -endif - -data/server.conf: $(srcdir)/data/server.conf.in - @$(MKDIR_P) data/ - $(AM_V_GEN) $(data_edit) $< >$@ - -if WITH_FIREWALLD_ZONE -firewalldzonedir = $(prefix)/lib/firewalld/zones -firewalldzone_DATA = data/nm-shared.xml -endif - -EXTRA_DIST += \ - data/84-nm-drivers.rules \ - data/85-nm-unmanaged.rules \ - data/90-nm-thunderbolt.rules \ - data/NetworkManager-dispatcher.service.in \ - data/NetworkManager-wait-online.service.in \ - data/NetworkManager.service.in \ - data/nm-priv-helper.service.in \ - data/meson.build \ - data/nm-shared.xml \ - data/server.conf.in \ - $(NULL) - -CLEANFILES += \ - data/NetworkManager-dispatcher.service \ - data/NetworkManager-wait-online.service \ - data/NetworkManager.service \ - data/nm-priv-helper.service \ - data/server.conf \ - $(NULL) - -############################################################################### -# man -############################################################################### - -man/common.ent: man/common.ent.in - @$(MKDIR_P) man/ - $(AM_V_GEN) $(data_edit) $< >$@ - -xsltproc_flags = \ - --path man \ - --xinclude \ - --nonet \ - --stringparam man.output.quietly 1 \ - --stringparam funcsynopsis.style ansi \ - --stringparam man.th.extra1.suppress 1 \ - --stringparam man.authors.section.enabled 0 \ - --stringparam man.copyright.section.enabled 0 \ - --stringparam man.th.title.max.length 30 - -if BUILD_DOCS - -man/%.1 man/%.5 man/%.7 man/%.8: man/%.xml man/common.ent - $(AM_V_GEN) $(XSLTPROC) --output $@ $(xsltproc_flags) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< - -endif - -man_nm_settings_xml = \ - man/nm-settings-dbus.xml \ - man/nm-settings-ifcfg-rh.xml \ - man/nm-settings-keyfile.xml \ - man/nm-settings-nmcli.xml \ - $(NULL) - -if HAVE_INTROSPECTION - -man/nm-settings-%.xml: man/nm-settings-%.xsl man/nm-settings-docs-%.xml man/common.ent - $(AM_V_GEN) $(XSLTPROC) --output $@ $(xsltproc_flags) $< $(word 2,$^) - -man/nm-settings-keyfile.xml: man/nm-settings-keyfile.xsl src/libnm-client-impl/nm-property-infos-keyfile.xml man/common.ent - $(AM_V_GEN) $(XSLTPROC) --output $@ $(xsltproc_flags) $< $(word 2,$^) -man/nm-settings-ifcfg-rh.xml: man/nm-settings-ifcfg-rh.xsl src/libnm-client-impl/nm-property-infos-ifcfg-rh.xml man/common.ent - $(AM_V_GEN) $(XSLTPROC) --output $@ $(xsltproc_flags) $< $(word 2,$^) - -CLEANFILES += $(man_nm_settings_xml) - -endif - -man_pages += \ - man/NetworkManager-dispatcher.8 \ - man/NetworkManager-wait-online.service.8 \ - man/NetworkManager.8 \ - man/NetworkManager.conf.5 \ - man/nm-initrd-generator.8 \ - man/nm-online.1 \ - man/nmcli-examples.7 \ - man/nmcli.1 \ - man/nmtui.1 \ - $(NULL) - -man_pages_autogen += \ - man/nm-settings-dbus.5 \ - man/nm-settings-keyfile.5 \ - man/nm-settings-nmcli.5 \ - $(NULL) - -if CONFIG_PLUGIN_IFCFG_RH -man_pages_autogen += man/nm-settings-ifcfg-rh.5 -else -EXTRA_DIST += man/nm-settings-ifcfg-rh.5 -dist_dependencies += man/nm-settings-ifcfg-rh.5 -endif - -if WITH_OPENVSWITCH -man_pages += man/nm-openvswitch.7 -else -EXTRA_DIST += man/nm-openvswitch.7 -dist_dependencies += man/nm-openvswitch.7 -endif - -if BUILD_NM_CLOUD_SETUP -man_pages += man/nm-cloud-setup.8 -else -EXTRA_DIST += man/nm-cloud-setup.8 -dist_dependencies += man/nm-cloud-setup.8 -endif - -CLEANFILES += \ - man/common.ent - -EXTRA_DIST += \ - man/common.ent.in \ - $(man_nm_settings_xml) \ - $(addsuffix .xsl,$(basename $(man_nm_settings_xml))) \ - $(man_pages) \ - $(addsuffix .xml,$(basename $(man_pages))) \ - $(man_pages_autogen) \ - $(NULL) - - -if HAVE_DOCS - -install-data-hook-man: - for link in $(nmtui_links); do \ - ln -f $(DESTDIR)$(mandir)/man1/nmtui.1 $(DESTDIR)$(mandir)/man1/$$link.1; \ - done; \ - ln -f $(DESTDIR)$(mandir)/man5/NetworkManager.conf.5 $(DESTDIR)$(mandir)/man5/nm-system-settings.conf.5; \ - ln -f $(DESTDIR)$(mandir)/man5/nm-settings-nmcli.5 $(DESTDIR)$(mandir)/man5/nm-settings.5; - -install_data_hook += install-data-hook-man - -uninstall-hook-man: - for link in $(nmtui_links); do \ - rm -f $(DESTDIR)$(mandir)/man1/$$link.1; \ - done; \ - rm -f $(DESTDIR)$(mandir)/man5/nm-system-settings.conf.5; \ - rm -f $(DESTDIR)$(mandir)/man5/nm-settings.5; - -uninstall_hook += uninstall-hook-man - -man_MANS += $(man_pages) -man_MANS += $(man_pages_autogen) - -endif - -if BUILD_DOCS -CLEANFILES += $(man_pages) -CLEANFILES += $(man_pages_autogen) -endif - -dist_dependencies += $(man_pages) -dist_dependencies += $(man_pages_autogen) - -EXTRA_DIST += \ - man/meson.build - -############################################################################### -# vapi -############################################################################### - -if ENABLE_VAPIGEN - -VAPIGEN_VAPIS += \ - vapi/libnm.vapi - -vapi/libnm.vapi: \ - $(builddir)/src/libnm-client-impl/NM-1.0.gir \ - vapi/libnm.deps \ - vapi/NM-1.0.metadata \ - $(NULL) - -vapi_libnm_vapi_METADATADIRS = $(srcdir)/vapi -vapi_libnm_vapi_FILES = $(builddir)/src/libnm-client-impl/NM-1.0.gir -vapi_libnm_vapi_DEPS = gio-2.0 - -vapi_DATA += \ - $(VAPIGEN_VAPIS) \ - $(VAPIGEN_VAPIS:.vapi=.deps) - -CLEANFILES += $(VAPIGEN_VAPIS) - -endif - -EXTRA_DIST += \ - vapi/NM-1.0.metadata \ - vapi/libnm.deps \ - vapi/meson.build - -check-local-vapi: - $(srcdir)/tools/check-vapi.sh - -check_local += check-local-vapi - -############################################################################### - -girdir = $(datadir)/gir-1.0 -gir_DATA = $(INTROSPECTION_GIRS) -BUILT_SOURCES += $(gir_DATA) - -typelibdir = $(libdir)/girepository-1.0 -typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) -BUILT_SOURCES += $(typelib_DATA) - -dbusservicedir = $(DBUS_SYS_DIR) -dbusservice_DATA += src/core/org.freedesktop.NetworkManager.conf - -############################################################################### - -if ENABLE_TESTS -noinst_PROGRAMS += $(check_programs) $(check_programs_norun) -noinst_LTLIBRARIES += $(check_ltlibraries) -else -check_PROGRAMS += $(check_programs) $(check_programs_norun) -check_LTLIBRARIES += $(check_ltlibraries) -endif - -plugin_LTLIBRARIES += $(core_plugins) - -TESTS += $(check_programs) - -EXTRA_DIST += \ - \ - AUTHORS \ - COPYING \ - ChangeLog \ - NEWS \ - README.md \ - \ - CONTRIBUTING.md \ - COPYING.LGPL \ - COPYING.GFDL \ - \ - linker-script-binary.ver \ - linker-script-devices.ver \ - linker-script-settings.ver \ - src/core/ppp/nm-ppp-plugin.ver \ - Makefile.glib \ - autogen.sh \ - lsan.suppressions \ - valgrind.suppressions \ - meson.build \ - meson_options.txt \ - config.h.meson \ - config-extra.h.meson \ - docs/meson.build \ - \ - po/meson.build \ - \ - src/meson.build \ - \ - src/libnm-core-public/nm-version-macros.h.in \ - \ - src/contrib/nm-vpn-editor-plugin-call.h \ - \ - tools/check-compare-generated.sh \ - tools/check-config-options.sh \ - tools/check-docs.sh \ - tools/check-exports.sh \ - tools/check-gitlab-ci.sh \ - tools/check-nm-autoptr.sh \ - tools/check-tree.sh \ - tools/check-vapi.sh \ - tools/create-exports-NetworkManager.sh \ - tools/debug-helper.py \ - tools/enums-to-docbook.pl \ - tools/meson-post-install.sh \ - tools/meson-dist-data.sh \ - tools/run-nm-test.sh \ - tools/test-cloud-meta-mock.py \ - tools/test-networkmanager-service.py \ - tools/test-sudo-wrapper.sh \ - \ - src/core/settings/plugins/meson.build \ - \ - $(NULL) - -CLEANFILES += \ - $(GLIB_GENERATED) \ - $(INTROSPECTION_GIRS) \ - $(typelib_DATA) \ - \ - cscope.in.out \ - cscope.out \ - cscope.po.out \ - \ - $(NULL) - -############################################################################### - -include Makefile.examples - -############################################################################### - -check-tree: - "$(top_srcdir)/tools/check-tree.sh" - -check_local += check-tree - -check-po-msgfmt: - @echo "check-po-msgfmt: check $(top_srcdir)/po/*.po files with msgfmt -vc" - @for f in "$(top_srcdir)/po"/*.po ; do \ - if ! msgfmt -vc "$$f" -o /dev/null &>/dev/null ; then \ - echo "invalid po file: msgfmt -vc $$f -o /dev/null" ; \ - msgfmt -vc "$$f" -o /dev/null ; \ - exit 1 ; \ - fi ; \ - done - -check_local += check-po-msgfmt - -############################################################################### - -check-local: $(check_local) - -dist-hook: $(dist_hook) - -############################################################################### - -install-exec-hook: $(install_exec_hook) - -install-data-hook: $(install_data_hook) - -uninstall-hook: $(uninstall_hook) - -############################################################################### - -cscope: - cscope -b -q -R -ssrc - -############################################################################### - -check-progs: all $(check_PROGRAMS) $(check_LTLIBRARIES) - -############################################################################### - -.PRECIOUS: test-suite.log -.DELETE_ON_ERROR: -.PHONY: check-progs cscope dist-configure-check $(check_local) $(dist_hook) diff --git a/Makefile.examples b/Makefile.examples deleted file mode 100644 index 3b26220990..0000000000 --- a/Makefile.examples +++ /dev/null @@ -1,221 +0,0 @@ -############################################################################### -# examples/C/glib -############################################################################### - -examples_C_glib_cppflags = \ - -I$(top_srcdir)/src/libnm-core-public \ - -I$(top_builddir)/src/libnm-core-public \ - -I$(top_srcdir)/src/libnm-client-public \ - -I$(top_builddir)/src/libnm-client-public \ - $(GLIB_CFLAGS) - -examples_C_glib_cppflags_gdbus = $(examples_C_glib_cppflags) -examples_C_glib_cppflags_libnm = $(examples_C_glib_cppflags) - -check_programs_norun += \ - examples/C/glib/add-connection-gdbus \ - examples/C/glib/add-connection-libnm \ - examples/C/glib/get-active-connections-gdbus \ - examples/C/glib/get-ap-info-libnm \ - examples/C/glib/list-connections-gdbus \ - examples/C/glib/list-connections-libnm \ - examples/C/glib/monitor-nm-running-gdbus \ - examples/C/glib/monitor-nm-state-gdbus \ - examples/C/glib/vpn-import-libnm \ - $(NULL) - -examples_C_glib_add_connection_gdbus_CPPFLAGS = $(examples_C_glib_cppflags_gdbus) -examples_C_glib_add_connection_gdbus_LDADD = \ - $(GLIB_LIBS) \ - $(UUID_LIBS) -$(examples_C_glib_add_connection_gdbus_OBJECTS): $(src_libnm_core_public_mkenums_h) $(src_libnm_client_public_mkenums_h) - -examples_C_glib_add_connection_libnm_CPPFLAGS = $(examples_C_glib_cppflags_libnm) -examples_C_glib_add_connection_libnm_LDADD = \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) -$(examples_C_glib_add_connection_libnm_OBJECTS): $(src_libnm_core_public_mkenums_h) $(src_libnm_client_public_mkenums_h) - -examples_C_glib_get_active_connections_gdbus_CPPFLAGS = $(examples_C_glib_cppflags_gdbus) -examples_C_glib_get_active_connections_gdbus_LDADD = \ - $(GLIB_LIBS) -$(examples_C_glib_get_active_connections_gdbus_OBJECTS): $(src_libnm_core_public_mkenums_h) $(src_libnm_client_public_mkenums_h) - -examples_C_glib_get_ap_info_libnm_CPPFLAGS = $(examples_C_glib_cppflags_libnm) -examples_C_glib_get_ap_info_libnm_LDADD = \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) -$(examples_C_glib_get_ap_info_libnm_OBJECTS): $(src_libnm_core_public_mkenums_h) $(src_libnm_client_public_mkenums_h) - -examples_C_glib_list_connections_gdbus_CPPFLAGS = $(examples_C_glib_cppflags_gdbus) -examples_C_glib_list_connections_gdbus_LDADD = \ - $(GLIB_LIBS) - -examples_C_glib_list_connections_libnm_CPPFLAGS = $(examples_C_glib_cppflags_libnm) -examples_C_glib_list_connections_libnm_LDADD = \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) -$(examples_C_glib_list_connections_libnm_OBJECTS): $(src_libnm_core_public_mkenums_h) $(src_libnm_client_public_mkenums_h) - -examples_C_glib_monitor_nm_running_gdbus_CPPFLAGS = $(examples_C_glib_cppflags_gdbus) -examples_C_glib_monitor_nm_running_gdbus_LDADD = \ - $(GLIB_LIBS) - -examples_C_glib_monitor_nm_state_gdbus_CPPFLAGS = $(examples_C_glib_cppflags_gdbus) -examples_C_glib_monitor_nm_state_gdbus_LDADD = \ - $(GLIB_LIBS) - -examples_C_glib_vpn_import_libnm_CPPFLAGS = $(examples_C_glib_cppflags_libnm) -examples_C_glib_vpn_import_libnm_LDADD = \ - src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) -$(examples_C_glib_vpn_import_libnm_OBJECTS): $(src_libnm_core_public_mkenums_h) $(src_libnm_client_public_mkenums_h) - -EXTRA_DIST += \ - examples/C/glib/meson.build - -############################################################################### -# examples/C/qt -############################################################################### - -if WITH_QT - -examples_C_qt_cppflags = \ - -I$(top_builddir)/src/libnm-core-public \ - -I$(top_srcdir)/src/libnm-core-public \ - -I$(top_builddir)/libnm \ - -I$(top_srcdir)/libnm \ - -I$(builddir)/examples/C/qt \ - $(DBUS_CFLAGS) \ - $(QT_CFLAGS) - -check_programs_norun += \ - examples/C/qt/add-connection-wired \ - examples/C/qt/list-connections \ - examples/C/qt/change-ipv4-addresses \ - examples/C/qt/monitor-nm-running - -examples_C_qt_add_connection_wired_SOURCES = examples/C/qt/add-connection-wired.cpp -examples_C_qt_add_connection_wired_CPPFLAGS = $(examples_C_qt_cppflags) -examples_C_qt_add_connection_wired_LDADD = \ - $(DBUS_LIBS) \ - $(QT_LIBS) - -examples_C_qt_list_connections_SOURCES = examples/C/qt/list-connections.cpp -examples_C_qt_list_connections_CPPFLAGS = $(examples_C_qt_cppflags) -examples_C_qt_list_connections_LDADD = \ - $(DBUS_LIBS) \ - $(QT_LIBS) - -examples_C_qt_change_ipv4_addresses_SOURCES = examples/C/qt/change-ipv4-addresses.cpp -examples_C_qt_change_ipv4_addresses_CPPFLAGS = $(examples_C_qt_cppflags) -examples_C_qt_change_ipv4_addresses_LDADD = \ - $(DBUS_LIBS) \ - $(QT_LIBS) - -examples_C_qt_monitor_nm_running_SOURCES = examples/C/qt/monitor-nm-running.cpp -examples_C_qt_monitor_nm_running_CPPFLAGS = $(examples_C_qt_cppflags) -examples_C_qt_monitor_nm_running_LDADD = \ - $(DBUS_LIBS) \ - $(QT_LIBS) - -examples/C/qt/monitor-nm-running.moc: examples/C/qt/monitor-nm-running.cpp - $(AM_V_GEN) $(MOC) -i $< -o $@ - -$(examples_C_qt_monitor_nm_running_OBJECTS): examples/C/qt/monitor-nm-running.moc - -CLEANFILES += \ - examples/C/qt/monitor-nm-running.moc - -endif - -EXTRA_DIST += \ - examples/C/qt/add-connection-wired.cpp \ - examples/C/qt/list-connections.cpp \ - examples/C/qt/change-ipv4-addresses.cpp \ - examples/C/qt/monitor-nm-running.cpp \ - examples/C/qt/meson.build - -############################################################################### -# examples -############################################################################### - -EXTRA_DIST += \ - examples/dispatcher/10-ifcfg-rh-routes.sh \ - examples/dispatcher/70-wifi-wired-exclusive.sh \ - \ - examples/js/get_ips.js \ - \ - examples/lua/lgi/add-connection.lua \ - examples/lua/lgi/change-vpn-username.lua \ - examples/lua/lgi/deactivate-all.lua \ - examples/lua/lgi/get-basic-nm-info.lua \ - examples/lua/lgi/get-ips.lua \ - examples/lua/lgi/list-connections.lua \ - examples/lua/lgi/list-devices.lua \ - examples/lua/lgi/show-wifi-networks.lua \ - \ - examples/nm-conf.d/30-anon.conf \ - examples/nm-conf.d/31-mac-addr-change.conf \ - \ - examples/python/dbus/add-connection-compat.py \ - examples/python/dbus/add-connection.py \ - examples/python/dbus/add-wifi-eap-connection.py \ - examples/python/dbus/add-wifi-psk-connection.py \ - examples/python/dbus/add-wifi-sae-connection.py \ - examples/python/dbus/checkpoint.py \ - examples/python/dbus/create-bond.py \ - examples/python/dbus/disconnect-device.py \ - examples/python/dbus/get-active-connection-uuids.py \ - examples/python/dbus/is-wwan-default.py \ - examples/python/dbus/list-connections.py \ - examples/python/dbus/list-devices.py \ - examples/python/dbus/nm-state.py \ - examples/python/dbus/show-bssids.py \ - examples/python/dbus/update-ip4-method.py \ - examples/python/dbus/update-secrets.py \ - examples/python/dbus/vpn.py \ - examples/python/dbus/wifi-active-ap.py\ - examples/python/dbus/wifi-hotspot.py \ - \ - examples/python/gi/README \ - examples/python/gi/add_connection.py \ - examples/python/gi/checkpoint.py \ - examples/python/gi/deactivate-all.py \ - examples/python/gi/device-reapply.py \ - examples/python/gi/device-state-ip4config.py \ - examples/python/gi/dns.py \ - examples/python/gi/firewall-zone.py \ - examples/python/gi/get-active-connections.py \ - examples/python/gi/get-devices.py \ - examples/python/gi/get-interface-flags.py \ - examples/python/gi/get-lldp-neighbors.py \ - examples/python/gi/get_ips.py \ - examples/python/gi/gmaincontext.py \ - examples/python/gi/list-connections.py \ - examples/python/gi/nm-add-connection2.py \ - examples/python/gi/nm-connection-update-stable-id.py \ - examples/python/gi/nm-keyfile.py \ - examples/python/gi/nm-up-many.py \ - examples/python/gi/nm-update2.py \ - examples/python/gi/nm-wg-set \ - examples/python/gi/ovs-external-ids.py \ - examples/python/gi/setting-user-data.py \ - examples/python/gi/show-wifi-networks.py \ - examples/python/gi/update-ip4-method.py \ - examples/python/gi/vpn-import.py \ - examples/python/gi/wifi-p2p.py \ - \ - examples/python/python-networkmanager/README \ - \ - examples/ruby/add-connection.rb \ - examples/ruby/get-basic-nm-info.rb \ - examples/ruby/list-devices.rb \ - \ - examples/shell/active-wifi.sh \ - examples/shell/disconnect-device.sh \ - examples/shell/get-hostname.sh \ - examples/shell/list-devices.sh \ - examples/shell/nm-logging.sh \ - \ - $(NULL) diff --git a/Makefile.glib b/Makefile.glib deleted file mode 100644 index 2e02ef4649..0000000000 --- a/Makefile.glib +++ /dev/null @@ -1,168 +0,0 @@ -# -# Work-in-progress... -# See https://bugzilla.gnome.org/show_bug.cgi?id=654395 - -_GLIB_CLEANFILES = -_GLIB_DISTCLEANFILES = - -_GLIB_V_GEN = $(_glib_v_gen_$(V)) -_glib_v_gen_ = $(_glib_v_gen_$(AM_DEFAULT_VERBOSITY)) -_glib_v_gen_0 = @echo " GEN " $(subst .stamp,,$@); - - -### glib-genmarshal - -_GLIB_MARSHAL_GENERATED = $(subst .h,,$(filter %marshal.h,$(GLIB_GENERATED))) - -_glib_marshal_prefix = $(subst marshal,,$(subst _marshal,,$(subst -,_,$(notdir $(1)))))_marshal -_glib_marshal_sources_var = $(subst -,_,$(notdir $(1)))_sources -_glib_marshal_sources = $(filter-out %.h,$(filter-out $(GLIB_GENERATED),$($(_glib_marshal_sources_var)))) - -define _glib_make_genmarshal_rules -$(if $(_glib_marshal_sources),,$(error Need to define $(_glib_marshal_sources_var) for $(1).[ch])) - -$(1).list.stamp: $(_glib_marshal_sources) Makefile - $$(_GLIB_V_GEN) LC_ALL=C sed -ne 's/.*_$(_glib_marshal_prefix)_\([_A-Z]*\).*/\1/p' $$(filter-out Makefile, $$^) | sort -u | sed -e 's/__/:/' -e 's/_/,/g' > $(1).list.tmp && \ - (cmp -s $(1).list.tmp $(1).list || cp $(1).list.tmp $(1).list) && \ - rm -f $(1).list.tmp && \ - echo timestamp > $$@ - -$(1).list: $(1).list.stamp - @true - -$(1).h: $(1).list - $$(_GLIB_V_GEN) $$(GLIB_GENMARSHAL) \ - --prefix=_$(_glib_marshal_prefix) --header \ - $$(GLIB_GENMARSHAL_H_FLAGS) \ - $$($(_glib_marshal_prefix)_GENMARSHAL_H_FLAGS) \ - $$< > $$@.tmp && \ - mv $$@.tmp $$@ - -$(1).c: $(1).list - $$(_GLIB_V_GEN) (echo "#include \"$$(subst .c,.h,$$(@F))\""; $$(GLIB_GENMARSHAL) \ - --prefix=_$(_glib_marshal_prefix) --body \ - $$(GLIB_GENMARSHAL_C_FLAGS) \ - $$($(_glib_marshal_prefix)_GENMARSHAL_C_FLAGS) \ - $$< ) > $$@.tmp && \ - mv $$@.tmp $$@ - -_GLIB_CLEANFILES += $(1).list.stamp $(1).list -_GLIB_DISTCLEANFILES += $(1).h $(1).c -endef - -$(foreach f,$(_GLIB_MARSHAL_GENERATED),$(eval $(call _glib_make_genmarshal_rules,$f))) - - -### glib-mkenums - -_GLIB_ENUM_TYPES_GENERATED = $(subst .h,,$(filter %enum-types.h %enumtypes.h,$(GLIB_GENERATED))) - -_glib_enum_types_prefix = $(subst -,_,$(notdir $(1))) -_glib_enum_types_guard = __$(shell LC_ALL=C echo $(_glib_enum_types_prefix) | tr 'a-z' 'A-Z')_H__ -_glib_enum_types_sources_var = $(_glib_enum_types_prefix)_sources -_glib_enum_types_sources = $(filter-out $(GLIB_GENERATED),$($(_glib_enum_types_sources_var))) -_glib_enum_types_h_sources = $(filter %.h,$(_glib_enum_types_sources)) - -define _glib_make_mkenums_rules -$(if $(_glib_enum_types_sources),,$(error Need to define $(_glib_enum_types_sources_var) for $(1).[ch])) - -$(1).h.stamp: $(_glib_enum_types_h_sources) Makefile - $$(_GLIB_V_GEN) $$(GLIB_MKENUMS) \ - --fhead "/* Generated by glib-mkenums. Do not edit */\n\n#ifndef $(_glib_enum_types_guard)\n#define $(_glib_enum_types_guard)\n\n" \ - $$(GLIB_MKENUMS_H_FLAGS) \ - $$($(_glib_enum_types_prefix)_MKENUMS_H_FLAGS) \ - --fhead "#include \n\nG_BEGIN_DECLS\n" \ - --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())\n" \ - --ftail "G_END_DECLS\n\n#endif /* $(_glib_enum_types_guard) */" \ - $$(filter-out Makefile, $$^) > $(1).h.tmp && \ - (cmp -s $(1).h.tmp $(1).h || cp $(1).h.tmp $(1).h) && \ - rm -f $(1).h.tmp && \ - echo timestamp > $$@ - -$(1).h: $(1).h.stamp - @true - -$(1).c.stamp: $(_glib_enum_types_h_sources) Makefile - $$(_GLIB_V_GEN) $$(GLIB_MKENUMS) \ - --fhead "/* Generated by glib-mkenums. Do not edit */\n\n#include \"config.h\"\n\n#include \"$(notdir $(1)).h\"\n" \ - $$(GLIB_MKENUMS_C_FLAGS) \ - $$($(_glib_enum_types_prefix)_MKENUMS_C_FLAGS) \ - --fhead "$$(foreach f,$$(filter-out Makefile,$$(^F)),\n#include \"$$(f)\")\n\n" \ - --vhead "GType\n@enum_name@_get_type (void)\n{\n static volatile gsize g_define_type_id__volatile = 0;\n\n if (g_once_init_enter (&g_define_type_id__volatile))\n {\n static const G@Type@Value values[] = {\n" \ - --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" },\n" \ - --vtail " { 0, NULL, NULL }\n };\n GType g_define_type_id =\n g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);\n }\n\n return g_define_type_id__volatile;\n}\n" \ - $$(filter-out Makefile, $$^) > $(1).c.tmp && \ - (cmp -s $(1).c.tmp $(1).c || cp $(1).c.tmp $(1).c) && \ - rm -f $(1).c.tmp && \ - echo timestamp > $$@ - -$(1).c: $(1).c.stamp - @true - -_GLIB_CLEANFILES += $(1).h.stamp $(1).c.stamp -_GLIB_DISTCLEANFILES += $(1).h $(1).c $(1).h.stamp $(1).c.stamp -endef - -$(foreach f,$(_GLIB_ENUM_TYPES_GENERATED),$(eval $(call _glib_make_mkenums_rules,$f))) - - -### glib-compile-schemas - -_GLIB_ENUMS_XML_GENERATED = $(filter %.enums.xml,$(GLIB_GENERATED)) -_GLIB_GSETTINGS_SCHEMA_FILES = $(filter %.gschema.xml,$(gsettingsschema_DATA)) -_GLIB_GSETTINGS_VALID_FILES = $(subst .xml,.valid,$(_GLIB_GSETTINGS_SCHEMA_FILES)) - -_glib_enums_xml_prefix = $(subst .,_,$(notdir $(1))) -_glib_enums_xml_sources_var = $(_glib_enums_xml_prefix)_sources -_glib_enums_xml_sources = $(filter-out $(GLIB_GENERATED),$($(_glib_enums_xml_sources_var))) -_glib_enums_xml_namespace = $(subst .enums.xml,,$(notdir $(1))) - -define _glib_make_enums_xml_rule -$(if $(_glib_enums_xml_sources),,$(error Need to define $(_glib_enums_xml_sources_var) for $(1))) - -$(1): $(_glib_enums_xml_sources) Makefile - $$(_GLIB_V_GEN) $$(GLIB_MKENUMS) --comments '' --fhead "" --vhead " <@type@ id='$(_glib_enums_xml_namespace).@EnumName@'>" --vprod " " --vtail " " --ftail "" $$(filter-out Makefile, $$^) > $$@.tmp && mv $$@.tmp $$@ -endef - -_GLIB_V_CHECK = $(_glib_v_check_$(V)) -_glib_v_check_ = $(_glib_v_check_$(AM_DEFAULT_VERBOSITY)) -_glib_v_check_0 = @echo " CHECK " $(subst .valid,.xml,$@); - -define _glib_make_schema_validate_rule -$(subst .xml,.valid,$(1)): $(_GLIB_ENUMS_XML_GENERATED) $(1) - $$(_GLIB_V_CHECK) $$(GLIB_COMPILE_SCHEMAS) --strict --dry-run $$(addprefix --schema-file=,$$^) && touch $$@ -endef - -define _glib_make_schema_rules -all-am: $(_GLIB_GSETTINGS_VALID_FILES) - -install-data-am: glib-install-schemas-hook - -glib-install-schemas-hook: install-gsettingsschemaDATA - @test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || (echo $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)) - -uninstall-am: glib-uninstall-schemas-hook - -glib-uninstall-schemas-hook: uninstall-gsettingsschemaDATA - @test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || (echo $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)) - -.PHONY: glib-install-schemas-hook glib-uninstall-schemas-hook -endef - -_GLIB_CLEANFILES += $(_GLIB_ENUMS_XML_GENERATED) $(_GLIB_GSETTINGS_VALID_FILES) - -$(foreach f,$(_GLIB_ENUMS_XML_GENERATED),$(eval $(call _glib_make_enums_xml_rule,$f))) -$(foreach f,$(_GLIB_GSETTINGS_SCHEMA_FILES),$(eval $(call _glib_make_schema_validate_rule,$f))) -$(if $(_GLIB_GSETTINGS_SCHEMA_FILES),$(eval $(_glib_make_schema_rules))) - - -### Cleanup -.PHONY: clean-glib distclean-glib - -clean-am: clean-glib -clean-glib: - $(if $(strip $(_GLIB_CLEANFILES)),-rm -f $(_GLIB_CLEANFILES)) - -distclean-am: distclean-glib -distclean-glib: - $(if $(strip $(_GLIB_DISTCLEANFILES)),-rm -f $(_GLIB_DISTCLEANFILES)) diff --git a/Makefile.vapigen b/Makefile.vapigen deleted file mode 100644 index 7a2ece00a7..0000000000 --- a/Makefile.vapigen +++ /dev/null @@ -1,62 +0,0 @@ -# Makefile for Vala API Generator (vapigen) -# Written by Evan Nemerson -# -# The author disclaims copyright to this source code. In place of -# a legal notice, here is a blessing: -# -# May you do good and not evil. -# May you find forgiveness for yourself and forgive others. -# May you share freely, never taking more than you give. -# -# See http://live.gnome.org/Vala/UpstreamGuide for detailed documentation -# -# Variables: -# -# VAPIGEN_FILES -# -# VAPIs to create -# -# *_DEPS / VAPIGEN_DEPS -# -# The dependencies. Generally the pkg-config names. -# -# *_METADATADIRS / VAPIGEN_METADATADIRS -# -# Directory containing the metadata. -# -# *_VAPIDIRS / VAPIGEN_VAPIDIRS -# -# Additional location(s) to search for VAPI dependencies. -# -# *_GIRDIRS / VAPIGEN_GIRDIRS -# -# Additional location(s) to search for GIR dependencies. -# -# *_FILES -# -# The files which should be used to generate the VAPI. - -_vapigen_silent_prefix = $(_vapigen_silent_prefix_$(V)) -_vapigen_silent_prefix_ = $(_vapigen_silent_prefix_$(AM_DEFAULT_VERBOSITY)) -_vapigen_silent_prefix_0 = @echo " VAPIGEN $(1)"; -_vapigen_silent_opts = $(_vapigen_silent_opts_$(V)) -_vapigen_silent_opts_ = $(_vapigen_silent_opts_$(AM_DEFAULT_VERBOSITY)) -_vapigen_silent_opts_0 = --quiet - -_vapi_name = $(subst /,_,$(subst -,_,$(subst .,_,$(1)))) - -define vapigen -$(1): $$($(_vapi_name)_GIR) - $(_vapigen_silent_prefix) \ - G_DEBUG='' \ - $(VAPIGEN) $(_vapigen_silent_opts) \ - --library $(1:.vapi=) \ - $(foreach _vapi_metadatadir_name,$(if $($(_vapi_name)_METADATADIRS),$($(_vapi_name)_METADATADIRS),$(VAPIGEN_METADATADIRS)),--metadatadir $(_vapi_metadatadir_name)) \ - $(foreach _vapi_dir_name,$(if $($(_vapi_name)_VAPIDIRS),$($(_vapi_name)_VAPIDIRS),$(VAPIGEN_VAPIDIRS)),--vapidir $(_vapi_dir_name)) \ - $(foreach _vapi_gir_dir,$(if $($(_vapi_name)_GIRDIRS),$($(_vapi_name)_GIRDIRS),$(VAPIGEN_GIRDIRS)),--girdir $(_vapi_gir_dir)) \ - $(foreach _vapi_dep_name,$(if $($(_vapi_name)_DEPS),$($(_vapi_name)_DEPS),$(VAPIGEN_DEPS)),--pkg $(_vapi_dep_name)) \ - $$($(_vapi_name)_FILES) && \ - touch $(1) -endef - -$(foreach vapi,$(VAPIGEN_VAPIS),$(eval $(call vapigen,$(vapi)))) diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 7973c51ea3..0000000000 --- a/autogen.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# Run this to generate all the initial makefiles, etc. - -set -e - -srcdir=`dirname $0` -if test -z "$srcdir"; then - srcdir=. -fi - -olddir=`pwd` - -REQUIRED_AUTOMAKE_VERSION=1.9 -PKG_NAME=NetworkManager - -(test -f $srcdir/configure.ac \ - && test -f $srcdir/src/core/main.c) || { - printf "**Error**: Directory "\`$srcdir\'" does not look like the" >&2 - echo " top-level $PKG_NAME directory" >&2 - exit 1 -} - -cd $srcdir - -gtkdocize -autoreconf --verbose --force --install - -cd $olddir -if test -z "$NOCONFIGURE"; then - exec $srcdir/configure --enable-maintainer-mode --enable-more-warnings=error --enable-gtk-doc --enable-introspection "$@" -fi diff --git a/config-extra.h.mk b/config-extra.h.mk deleted file mode 100644 index c5e21d44ec..0000000000 --- a/config-extra.h.mk +++ /dev/null @@ -1,27 +0,0 @@ -# With autotools, it is not easily possible to generate these defines -# from configure.ac. -# -# See https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Installation-Directory-Variables.html -# -# With meson-only, they could just be set via config.h.meson -config-extra.h: config-extra.h.mk config.h config.status - $(AM_V_GEN) \ - echo "/* Generated by Makefile.am */" >$@ && \ - echo "#define BINDIR \"$(bindir)\"" >>$@ && \ - echo "#define DATADIR \"$(datadir)\"" >>$@ && \ - echo "#define LIBEXECDIR \"$(libexecdir)\"" >>$@ && \ - echo "#define LOCALSTATEDIR \"$(localstatedir)\"" >>$@ && \ - echo "#define NMCONFDIR \"$(nmconfdir)\"" >>$@ && \ - echo "#define NMLIBDIR \"$(nmlibdir)\"" >>$@ && \ - echo "#define NMLOCALEDIR \"$(nmlocaledir)\"" >>$@ && \ - echo "#define NMPLUGINDIR \"$(plugindir)\"" >>$@ && \ - echo "#define NMRUNDIR \"$(nmrundir)\"" >>$@ && \ - echo "#define NMSTATEDIR \"$(nmstatedir)\"" >>$@ && \ - echo "#define NMVPNDIR \"$(pkglibdir)\"" >>$@ && \ - echo "#define NM_BUILD_BUILDDIR \"$(abs_builddir)\"" >>$@ && \ - echo "#define NM_BUILD_SRCDIR \"$(abs_srcdir)\"" >>$@ && \ - echo "#define PPPD_PLUGIN_DIR \"$(PPPD_PLUGIN_DIR)\"" >>$@ && \ - echo "#define PREFIX \"$(prefix)\"" >>$@ && \ - echo "#define RUNSTATEDIR \"$(runstatedir)\"" >>$@ && \ - echo "#define SYSCONFDIR \"$(sysconfdir)\"" >>$@ && \ - true diff --git a/configure.ac b/configure.ac deleted file mode 100644 index c3e94e2eb9..0000000000 --- a/configure.ac +++ /dev/null @@ -1,1503 +0,0 @@ -AC_PREREQ([2.63]) - -dnl The NM version number -dnl -dnl NOTE: When incrementing version also: -dnl - add corresponding NM_VERSION_x_y_z macros in -dnl "shared/nm-version-macros.h.in" -dnl - update number in meson.build -m4_define([nm_major_version], [1]) -m4_define([nm_minor_version], [51]) -m4_define([nm_micro_version], [0]) -m4_define([nm_version], - [nm_major_version.nm_minor_version.nm_micro_version]) - -AC_INIT([NetworkManager], [nm_version], - [http://bugzilla.gnome.org/enter_bug.cgi?product=NetworkManager], - [NetworkManager]) - -deprecation_message() { - echo "Building with Autotools is deprecated; meson is the recommended way to build NetworkManager." - echo "To learn more, see the CONTRIBUTING.md file." - echo "To ignore this, pass '--disable-autotools-deprecation' when configuring." - exit 1 -} - -AC_ARG_ENABLE([autotools-deprecation], - AS_HELP_STRING([--disable-autotools-deprecation], - [Building with autotools is deprecated, passing this argument overrides this error.]), - [ test "$enableval" != "no" && deprecation_message ], - [ deprecation_message ] -) - -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_MACRO_DIR([m4]) -AC_CONFIG_AUX_DIR([build-aux]) -AC_REQUIRE_AUX_FILE([tap-driver.sh]) - -AM_INIT_AUTOMAKE(1.12 foreign tar-pax no-dist-gzip dist-xz -Wno-portability) dnl NB: Do not [quote] this parameter. -AM_MAINTAINER_MODE([enable]) -AM_SILENT_RULES([yes]) - -dnl Define _SYSTEM_EXTENSIONS for various things like strcasestr() -AC_USE_SYSTEM_EXTENSIONS - -dnl -dnl Require programs -dnl -AC_PROG_CC -AM_PROG_CC_C_O - -# C++ only required if --enable-qt=yes -AC_PROG_CXX - -AC_PROG_LN_S -AC_PROG_MKDIR_P - -# Prefer gcc-* variants; the ones libtool would choose don't work with LTO -AC_CHECK_TOOLS(AR, [gcc-ar ar], false) -AC_CHECK_TOOLS(RANLIB, [gcc-ranlib ranlib], :) -AC_CHECK_TOOLS(NM, [$BINUTILS_NM gcc-nm nm]) - -dnl Initialize libtool -LT_PREREQ([2.2]) -LT_INIT([disable-static]) - -dnl Version stuff -NM_MAJOR_VERSION=nm_major_version -NM_MINOR_VERSION=nm_minor_version -NM_MICRO_VERSION=nm_micro_version -NM_VERSION=nm_version -AC_SUBST(NM_MAJOR_VERSION) -AC_SUBST(NM_MINOR_VERSION) -AC_SUBST(NM_MICRO_VERSION) -AC_SUBST(NM_VERSION) - -GIT_SHA_RECORD(NM_GIT_SHA) - -dnl -dnl Checks for typedefs, structures, and compiler characteristics. -dnl -AC_TYPE_PID_T -AC_CHECK_SIZEOF(pid_t) -AC_CHECK_SIZEOF(uid_t) -AC_CHECK_SIZEOF(gid_t) -AC_CHECK_SIZEOF(dev_t) -AC_CHECK_SIZEOF(ino_t) -AC_CHECK_SIZEOF(time_t) -AC_CHECK_SIZEOF(rlim_t,,[[#include ]]) - -AC_CHECK_DECLS([ - explicit_bzero], - [], [], [[ -#include -]]) - -AC_CHECK_DECLS([ - reallocarray], - [], [], [[ -#include -#include -]]) - -AC_CHECK_DECLS([ - memfd_create], - [], [], [[ -#include -]]) - -AC_CHECK_DECLS([ - pidfd_open], - [], [], [[ -#include -#include -#include -#include -]]) - -AC_CHECK_DECLS([ - pidfd_send_signal], - [], [], [[ -#include -#include -#include -#include -]]) - -AC_CHECK_DECLS([ - rt_sigqueueinfo], - [], [], [[ -#include -#include -#include -#include -]]) - -AC_CHECK_HEADERS(sys/auxv.h) -AC_CHECK_HEADERS(threads.h, - [], - [AC_DEFINE([HAVE_THREADS_H], [0], [Define to 1 if you have the header file.])]) - -AC_CHECK_DECLS([getrandom], - [AC_DEFINE([USE_SYS_RANDOM_H], [1], [sys/random.h is usable]) - AC_DEFINE([HAVE_GETRANDOM], [1], [has getrandom]) - ], - [AC_CHECK_DECLS([getrandom], - [AC_DEFINE([USE_SYS_RANDOM_H], [0], [sys/random.h is usable]) - AC_DEFINE([HAVE_GETRANDOM], [1], [has getrandom])], - [AC_DEFINE([USE_SYS_RANDOM_H], [0], [sys/random.h is usable]) - AC_DEFINE([HAVE_GETRANDOM], [0], [has getrandom])], - [[#include - ]])], - [[#include - ]]) - -dnl -dnl translation support -dnl -AM_GNU_GETTEXT([external]) -# Remove AM_GNU_GETTEXT_VERSION once autoreconf supports REQUIRE_VERSION -AM_GNU_GETTEXT_VERSION([0.19.8]) -AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8]) - -GETTEXT_PACKAGE=NetworkManager -AC_SUBST(GETTEXT_PACKAGE) -AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package]) - -# autoconf 2.70 adds option --runstatedir. To make the directory also configurable -# on older versions, add --with-runstatedir option. Note that this option overwrites -# --runstatedir (should it be set). If you know to use autoconf >= 2.70, you should -# instead use --runstatedir. -AC_ARG_WITH([runstatedir], - AS_HELP_STRING([--with-runstatedir=DIR], - [Directory for /var/run. Defaults to $localstatedir/run. In autoconf >= 2.70, you should instead use --runstatedir option. This option takes precedence over --runstatedir.]), - [runstatedir="$withval"]) -AS_IF([test -z "$runstatedir"], runstatedir="$localstatedir/run") -AC_SUBST(runstatedir) - -# NetworkManager paths -AC_SUBST(nmbinary, '${sbindir}'/$PACKAGE, [NetworkManager binary executable]) -AC_SUBST(nmconfdir, '${sysconfdir}'/$PACKAGE, [NetworkManager configuration directory]) -AC_SUBST(nmlibdir, '${prefix}'/lib/$PACKAGE, [NetworkManager library directory]) -AC_SUBST(nmdatadir, '${datadir}'/$PACKAGE, [NetworkManager shared data directory]) -AC_SUBST(nmstatedir, '${localstatedir}'/lib/$PACKAGE, [NetworkManager persistent state directory]) -AC_SUBST(nmrundir, '${runstatedir}'/$PACKAGE, [NetworkManager runtime state directory]) - -AC_CHECK_FUNCS([__secure_getenv secure_getenv]) - -# Alternative configuration plugins -AC_ARG_ENABLE(ifcfg-rh, AS_HELP_STRING([--enable-ifcfg-rh], [enable ifcfg-rh configuration plugin (Fedora/RHEL) (deprecated)])) -AC_ARG_ENABLE(ifupdown, AS_HELP_STRING([--enable-ifupdown], [enable ifupdown configuration plugin (Debian/Ubuntu)])) -# Default alternative plugins by distribution -AS_IF([test -z "$enable_ifupdown" -a -f /etc/debian_version], enable_ifupdown=yes) -# Otherwise, plugins default to "no" -AS_IF([test -z "$enable_ifcfg_rh"], enable_ifcfg_rh=no) -AS_IF([test -z "$enable_ifupdown"], enable_ifupdown=no) -# Create automake conditionals -AM_CONDITIONAL(CONFIG_PLUGIN_IFCFG_RH, test "$enable_ifcfg_rh" = "yes") -AM_CONDITIONAL(CONFIG_PLUGIN_IFUPDOWN, test "$enable_ifupdown" = "yes") - -AC_ARG_WITH(config-plugins-default, - AS_HELP_STRING([--with-config-plugins-default=PLUGINS], - [Default configuration option for main.plugins setting, used as fallback if the configuration option is unset]), - [config_plugins_default="$withval"], [config_plugins_default=""]) - -AC_DEFINE_UNQUOTED(NM_CONFIG_DEFAULT_MAIN_PLUGINS, "$config_plugins_default", [Default configuration option for main.plugins setting]) - -if test "$enable_ifcfg_rh" = "yes"; then - DISTRO_NETWORK_SERVICE=network.service -fi -AC_SUBST(DISTRO_NETWORK_SERVICE) - -if test "$enable_ifcfg_rh" = yes; then - AC_DEFINE(WITH_CONFIG_PLUGIN_IFCFG_RH, 1, [Build with ifcfg-rh settings plugin]) -else - AC_DEFINE(WITH_CONFIG_PLUGIN_IFCFG_RH, 0, [Build with ifcfg-rh settings plugin]) -fi - -if test "$enable_ifupdown" = yes; then - AC_DEFINE(WITH_CONFIG_PLUGIN_IFUPDOWN, 1, [Build with ifupdown settings plugin]) -else - AC_DEFINE(WITH_CONFIG_PLUGIN_IFUPDOWN, 0, [Build with ifupdown settings plugin]) -fi - -# Code coverage -GNOME_CODE_COVERAGE - -dnl -dnl Distribution version string -dnl -AC_ARG_WITH(dist-version, - AS_HELP_STRING([--with-dist-version=], - [Define the NM''s distribution version string]), - ac_distver=$withval, ac_distver=$NM_VERSION) -AC_DEFINE_UNQUOTED(NM_DIST_VERSION, "$ac_distver", [Define the distribution version string]) -AC_SUBST(NM_DIST_VERSION, "$ac_distver") - -AC_ARG_ENABLE(wifi, AS_HELP_STRING([--enable-wifi], [enable Wi-Fi support])) -if test "${enable_wifi}" != "no"; then - enable_wifi='yes' -fi -AM_CONDITIONAL(WITH_WIFI, test "${enable_wifi}" = "yes") - -dnl -dnl Default to using WEXT but allow it to be disabled -dnl -AC_ARG_WITH(wext, - AS_HELP_STRING([--with-wext=yes], - [Enable or disable Linux Wireless Extensions]), - ac_with_wext=$withval, ac_with_wext="$enable_wifi") -if test "$ac_with_wext" != 'no'; then - ac_with_wext='yes' -fi -if test x"$ac_with_wext" = x"yes"; then - if test "$enable_wifi" != "yes"; then - AC_MSG_ERROR(Enabling WEXT support and disabling Wi-Fi makes no sense) - fi - AC_DEFINE(HAVE_WEXT, 1, [Define if you have Linux Wireless Extensions support]) -else - AC_DEFINE(HAVE_WEXT, 0, [Define if you have Linux Wireless Extensions support]) -fi -AM_CONDITIONAL(WITH_WEXT, test x"${ac_with_wext}" = x"yes") - -dnl -dnl Default to using wpa_supplicant but allow IWD as wifi backend -dnl -AC_ARG_WITH(iwd, - AS_HELP_STRING([--with-iwd=yes], - [Support IWD as wifi-backend in addition to wpa_supplicant (experimental)]), - ac_with_iwd=$withval, ac_with_iwd="no") -if test "$ac_with_iwd" != 'no'; then - ac_with_iwd='yes' -fi -if test x"$ac_with_iwd" = x"yes"; then - if test "$enable_wifi" != "yes"; then - AC_MSG_ERROR(Enabling IWD support and disabling Wi-Fi makes no sense) - fi - AC_DEFINE(WITH_IWD, 1, [Define to compile with the IWD wifi-backend]) -else - AC_DEFINE(WITH_IWD, 0, [Define to compile without the IWD wifi-backend]) -fi -AM_CONDITIONAL(WITH_IWD, test x"${ac_with_iwd}" = x"yes") - -dnl -dnl Checks for libdl - on certain platforms its part of libc -dnl -AC_SEARCH_LIBS([dlopen], [dl dld], - [test "$ac_cv_search_dlopen" = "none required" || AC_SUBST([DL_LIBS], "$ac_cv_search_dlopen"]), - []) - -PKG_CHECK_MODULES(GLIB, [gio-unix-2.0 >= 2.42 gmodule-2.0]) - -AC_SUBST(LOG_DRIVER, '$(top_srcdir)/build-aux/test-driver') - -GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_42 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_42" - -AC_SUBST(GLIB_CFLAGS) -AC_SUBST(GLIB_LIBS) - -GOBJECT_INTROSPECTION_CHECK([0.9.6]) - -PKG_CHECK_MODULES([LIBUDEV], [libudev >= 175]) - -# Qt4 -PKG_CHECK_MODULES(QT, [QtCore >= 4 QtDBus QtNetwork], [have_qt=yes],[have_qt=no]) -AC_ARG_ENABLE(qt, - AS_HELP_STRING([--enable-qt], [enable Qt examples]), - [enable_qt=${enableval}], [enable_qt=${have_qt}]) -if test "${enable_qt}" = "yes"; then - if test x"$have_qt" = x"no"; then - AC_MSG_ERROR(Qt development headers are required) - fi - # Check for moc-qt4 and if not found then moc - QT4_BINDIR=`$PKG_CONFIG QtCore --variable moc_location` - AC_CHECK_PROGS(MOC, [moc-qt4 moc],, [$QT4_BINDIR:$PATH]) -fi -AM_CONDITIONAL(WITH_QT, test "${enable_qt}" = "yes") - -AC_ARG_WITH(udev-dir, - AS_HELP_STRING([--with-udev-dir=DIR], - [Absolute path of the udev base directory. Set to 'no' not to install the udev rules]), - [], [with_udev_dir="yes"]) -if test "$with_udev_dir" != 'no'; then - if test "$with_udev_dir" = 'yes' -o "$with_udev_dir" = "" ; then - with_udev_dir="\${prefix}/lib/udev" - else - if printf '%s' "$with_udev_dir" | grep -v -q '^/'; then - AC_MSG_ERROR([--with-udev-dir must be an absolute path or 'yes' or 'no'. Instead it is '$with_udev_dir']) - fi - fi - UDEV_DIR="$with_udev_dir" - AC_SUBST(UDEV_DIR) -fi -AM_CONDITIONAL(WITH_UDEV_DIR, test "$with_udev_dir" != 'no') - -# systemd unit support -AC_ARG_WITH([systemdsystemunitdir], - AS_HELP_STRING([--with-systemdsystemunitdir=DIR], - [Directory for systemd service files])) -# default location -AS_IF([test -z "$with_systemdsystemunitdir" && $PKG_CONFIG systemd], - with_systemdsystemunitdir=`$PKG_CONFIG systemd '--define-variable=prefix=${prefix}' '--define-variable=root_prefix=${prefix}' --variable systemdsystemunitdir`) -AS_IF([test -z "$with_systemdsystemunitdir"], with_systemdsystemunitdir=no) -# add conditional and subst -AM_CONDITIONAL(HAVE_SYSTEMD, [test "$with_systemdsystemunitdir" != no]) -if test "$with_systemdsystemunitdir" != no; then - AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) -fi - -# Hostname persist mode -AC_ARG_WITH(hostname-persist, - AS_HELP_STRING([--with-hostname-persist=default|suse|gentoo|slackware], - [Hostname persist method])) - -AS_IF([test "$with_hostname_persist" = "suse"], hostname_persist=suse) -AS_IF([test "$with_hostname_persist" = "gentoo"], hostname_persist=gentoo) -AS_IF([test "$with_hostname_persist" = "slackware"], hostname_persist=slackware) -AS_IF([test "$with_hostname_persist" = "default"], hostname_persist=default) -# if the method was not explicitly set, try to guess it from the enabled plugins -AS_IF([test -z "$hostname_persist" -a -f /etc/SuSE-release], hostname_persist=suse) -AS_IF([test -z "$hostname_persist" -a -f /etc/gentoo-release], hostname_persist=gentoo) -AS_IF([test -z "$hostname_persist" -a -f /etc/slackware-version], hostname_persist=slackware) -AS_IF([test -z "$hostname_persist"], hostname_persist=default) - -if test "$hostname_persist" = suse; then - AC_DEFINE(HOSTNAME_PERSIST_SUSE, 1, [Enable SuSE hostname persist method]) -elif test "$hostname_persist" = gentoo; then - AC_DEFINE(HOSTNAME_PERSIST_GENTOO, 1, [Enable Gentoo hostname persist method]) -elif test "$hostname_persist" = slackware; then - AC_DEFINE(HOSTNAME_PERSIST_SLACKWARE, 1, [Enable Slackware hostname persist method]) -fi - -PKG_CHECK_MODULES(LIBSYSTEMD, [libsystemd >= 209], - [AC_DEFINE([HAVE_LIBSYSTEMD], 1, [Define to 1 if libsystemd is available])], - [AC_DEFINE([HAVE_LIBSYSTEMD], 0, [Define to 1 if libsystemd is available])]) - -AC_ARG_WITH(systemd-journal, - AS_HELP_STRING([--with-systemd-journal=yes|no], - [Use systemd journal for logging])) -have_systemd_journal=no -if test "$with_systemd_journal" != "no"; then - PKG_CHECK_MODULES(SYSTEMD_JOURNAL, [libsystemd >= 209], [have_systemd_journal=yes], - [PKG_CHECK_MODULES(SYSTEMD_JOURNAL, - [libsystemd-journal], - [have_systemd_journal=yes], - [have_systemd_journal=no])]) - if test "$have_systemd_journal" != "yes"; then - if test "$with_systemd_journal" = "yes"; then - AC_MSG_ERROR([Missing systemd-journald support]) - fi - fi -fi -if test "$have_systemd_journal" = "yes"; then - AC_DEFINE([SYSTEMD_JOURNAL], 1, [Define to 1 if libsystemd-journald is available]) -else - AC_DEFINE([SYSTEMD_JOURNAL], 0, [Define to 1 if libsystemd-journald is available]) -fi - -AC_ARG_WITH(config-logging-backend-default, - AS_HELP_STRING([--with-config-logging-backend-default=backend], - [Default value for logging.backend]), - nm_config_logging_backend_default="$withval", - nm_config_logging_backend_default="") - -if test "$nm_config_logging_backend_default" != 'syslog' \ - -a "$nm_config_logging_backend_default" != 'journal'; then - # unknown backend. Reset to default. Silently accept the invalid value to - # be future proof. - nm_config_logging_backend_default='' -fi -if test "$nm_config_logging_backend_default" = ""; then - if test "$have_systemd_journal" = "yes"; then - nm_config_logging_backend_default='journal' - else - nm_config_logging_backend_default='syslog' - fi -fi -AC_DEFINE_UNQUOTED(NM_CONFIG_DEFAULT_LOGGING_BACKEND, "$nm_config_logging_backend_default", [Default configuration option for logging.backend]) -NM_CONFIG_DEFAULT_LOGGING_BACKEND_TEXT="$nm_config_logging_backend_default" -AC_SUBST(NM_CONFIG_DEFAULT_LOGGING_BACKEND_TEXT) - -AC_ARG_WITH(config-migrate-ifcfg-rh-default, - AS_HELP_STRING([--with-config-migrate-ifcfg-rh-default=yes|no], - [Default value for main.migrate-ifcfg-rh]), - nm_config_migrate_ifcfg_rh_default="$withval", - nm_config_migrate_ifcfg_rh_default="no") - -if test "$nm_config_migrate_ifcfg_rh_default" = yes; then - if test "$enable_ifcfg_rh" = no; then - AC_MSG_ERROR([ifcfg-rh migration can be enabled by default only when the ifcfg-rh plugin is enabled]) - fi - AC_DEFINE(NM_CONFIG_DEFAULT_MAIN_MIGRATE_IFCFG_RH, "true", [The default value of the main.migrate-ifcfg-rh configuration option]) - NM_CONFIG_DEFAULT_MAIN_MIGRATE_IFCFG_RH_TEXT='true' -elif test "$nm_config_migrate_ifcfg_rh_default" = no; then - AC_DEFINE(NM_CONFIG_DEFAULT_MAIN_MIGRATE_IFCFG_RH, "false", [The default value of the main.migrate-ifcfg-rh configuration option]) - NM_CONFIG_DEFAULT_MAIN_MIGRATE_IFCFG_RH_TEXT='false' -else - AC_MSG_ERROR([The value of --with-config-migrate-ifcfg-rh-default must be either "yes" or "no".]) -fi -AC_SUBST(NM_CONFIG_DEFAULT_MAIN_MIGRATE_IFCFG_RH_TEXT) - -AC_ARG_WITH(config-wifi-backend-default, - AS_HELP_STRING([--with-config-wifi-backend-default=backend], - [Default value for wifi.backend]), - nm_config_wifi_backend_default="$withval", - nm_config_wifi_backend_default="wpa_supplicant") - -if test "$nm_config_wifi_backend_default" != 'iwd' \ - -a "$nm_config_wifi_backend_default" != 'wpa_supplicant'; then - AC_MSG_ERROR([The default Wi-Fi backend must be either wpa_supplicant or iwd.]) -fi -if test "$nm_config_wifi_backend_default" = "iwd"; then - if test "$ac_with_iwd" != "yes"; then - AC_MSG_ERROR([Setting the default Wi-Fi backend to iwd requires iwd support.]) - fi -fi -AC_DEFINE_UNQUOTED(NM_CONFIG_DEFAULT_WIFI_BACKEND, "$nm_config_wifi_backend_default", [Default configuration option for wifi.backend]) -NM_CONFIG_DEFAULT_WIFI_BACKEND_TEXT="$nm_config_wifi_backend_default" -AC_SUBST(NM_CONFIG_DEFAULT_WIFI_BACKEND_TEXT) - -# Session tracking support -AC_ARG_WITH(systemd-logind, - AS_HELP_STRING([--with-systemd-logind=yes|no], - [Support systemd session tracking])) -AC_ARG_WITH(consolekit, - AS_HELP_STRING([--with-consolekit=yes|no], - [Support consolekit session tracking])) -AC_ARG_WITH(session-tracking, - AS_HELP_STRING([--with-session-tracking=systemd|elogind|consolekit|no], - [Compatibility option to choose one session tracking module])) -# backwards compatibility -AS_IF([test "$with_session_tracking" = "ck"], [use_consolekit="yes" use_systemd_logind="no" use_elogind="no"]) -AS_IF([test "$with_session_tracking" = "consolekit"], [use_consolekit="yes" use_systemd_logind="no" use_elogind="no"]) -AS_IF([test "$with_session_tracking" = "systemd"], [use_consolekit="no" use_systemd_logind="yes" use_elogind="no"]) -AS_IF([test "$with_session_tracking" = "elogind"], [use_consolekit="no" use_systemd_logind="no" use_elogind="yes"]) -AS_IF([test "$with_session_tracking" = "no"], [use_consolekit="no" use_systemd_logind="no" use_elogind="no"]) -AS_IF([test "$with_session_tracking" = "none"], [use_consolekit="no" use_systemd_logind="no" use_elogind="no"]) -# current options -AS_IF([test -n "$with_systemd_logind" ], [use_systemd_logind="$with_systemd_logind"]) -AS_IF([test -n "$with_consolekit" ], [use_consolekit="$with_consolekit"]) -# defaults -AS_IF([test -z "$use_systemd_logind"], [use_systemd_logind="auto"]) -AS_IF([test -z "$use_consolekit"], [use_consolekit="yes"]) -# output -session_tracking= -if test "$use_systemd_logind" = "yes" -o "$use_systemd_logind" = "auto"; then - PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libsystemd], [have_systemd_logind=yes], [PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libsystemd-login], [have_systemd_logind=yes], [have_systemd_logind=no])]) -else - have_systemd_logind=no -fi -if test "$use_systemd_logind" = "yes" -a "$have_systemd_logind" = "no"; then - AC_MSG_ERROR([You must have libsystemd installed to build with systemd-logind support.]) -fi -if test "$have_systemd_logind" = "yes"; then - AC_DEFINE([SESSION_TRACKING_SYSTEMD], 1, [Define to 1 if libsystemd-login is available]) - session_tracking="$session_tracking, systemd-logind" -else - AC_DEFINE([SESSION_TRACKING_SYSTEMD], 0, [Define to 1 if libsystemd-login is available]) -fi - -if test "$use_elogind" = "yes" -a "$have_systemd_logind" = "yes"; then - AC_MSG_ERROR([Cannot enable systemd-logind together with elogind.]) -fi -if test "$use_elogind" = "yes"; then - PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libelogind], [have_elogind=yes], [PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libelogind], [have_elogind=yes], [have_elogind=no])]) -else - have_elogind=no -fi -if test "$use_elogind" = "yes" -a "$have_elogind" = "no"; then - AC_MSG_ERROR([You must have libelogind installed to build with elogind support.]) -fi -if test "$have_elogind" = "yes"; then - AC_DEFINE([SESSION_TRACKING_ELOGIND], 1, [Define to 1 if libelogin is available]) - session_tracking="$session_tracking, elogind" -else - AC_DEFINE([SESSION_TRACKING_ELOGIND], 0, [Define to 1 if libelogin is available]) -fi - -if test "$use_consolekit" = "yes"; then - AC_DEFINE([SESSION_TRACKING_CONSOLEKIT], 1, [Define to 1 if ConsoleKit is available]) - session_tracking="$session_tracking, consolekit" -else - AC_DEFINE([SESSION_TRACKING_CONSOLEKIT], 0, [Define to 1 if ConsoleKit is available]) -fi -session_tracking="$(printf '%s' "${session_tracking}" | sed 's/^, //')" - -AC_ARG_WITH(suspend-resume, - AS_HELP_STRING([--with-suspend-resume=systemd|elogind|consolekit], - [Build NetworkManager with specific suspend/resume support])) -if test "z$with_suspend_resume" = "z"; then - PKG_CHECK_EXISTS([libsystemd >= 209], [have_systemd_inhibit=yes], - [PKG_CHECK_EXISTS([libsystemd-login >= 183], [have_systemd_inhibit=yes], [have_systemd_inhibit=no])]) - if test "z${have_systemd_inhibit}" = "zyes"; then - # Use systemd if it's new enough - with_suspend_resume="systemd" - else - PKG_CHECK_EXISTS([libelogind >= 219], [have_elogind_inhibit=yes], - [PKG_CHECK_EXISTS([libelogind >= 219], [have_elogind_inhibit=yes], [have_elogind_inhibit=no])]) - if test "z${have_elogind_inhibit}" = "zyes"; then - # Use elogind if it's new enough - with_suspend_resume="elogind" - else - # Fallback to consolekit - with_suspend_resume="consolekit" - fi - fi -fi - -case $with_suspend_resume in - systemd) - PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd >= 209],, - [PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd-login >= 183])]) - AC_DEFINE([SUSPEND_RESUME_SYSTEMD], 1, [Define to 1 to use systemd suspend api]) - ;; - elogind) - PKG_CHECK_MODULES(ELOGIND_INHIBIT, [libelogind >= 219],, - [PKG_CHECK_MODULES(ELOGIND_INHIBIT, [libelogind >= 219])]) - AC_DEFINE([SUSPEND_RESUME_ELOGIND], 1, [Define to 1 to use elogind suspend api]) - ;; - consolekit) - AC_DEFINE([SUSPEND_RESUME_CONSOLEKIT], 1, [Define to 1 to use ConsoleKit2 suspend api]) - ;; - *) - AC_MSG_ERROR(--with-suspend-resume must be one of [systemd, elogind, consolekit]) - ;; -esac - -# eBPF support -AC_ARG_WITH(ebpf, - AS_HELP_STRING([--with-ebpf=yes|no|auto], [Build with eBPF support [default=auto]]), - [], [with_ebpf=auto]) -# 'auto' means 'false' because there are still some issues. -if test "$with_ebpf" = "yes" ; then - AC_CHECK_HEADER(linux/bpf.h, [have_ebpf=yes], [have_ebpf=no]) -else - have_ebpf=no -fi -if test "$with_ebpf" = "yes" -a "$have_ebpf" = "no"; then - AC_MSG_ERROR([--with-ebpf=yes requires eBPF kernel header]) -fi -AM_CONDITIONAL(WITH_EBPF, test "${have_ebpf}" = "yes") - -# SELinux support -AC_ARG_WITH(selinux, - AS_HELP_STRING([--with-selinux=yes|no|auto], [Build with SELinux [default=auto]]), - [], [with_selinux=auto]) -if test "$with_selinux" = "yes" -o "$with_selinux" = "auto"; then - PKG_CHECK_MODULES(SELINUX, libselinux, [have_selinux=yes], [have_selinux=no]) -else - have_selinux=no -fi -if test "$with_selinux" = "yes" -a "$have_selinux" = "no"; then - AC_MSG_ERROR([You must have libselinux installed to build --with-selinux=yes.]) -fi -if test "$have_selinux" = "yes"; then - AC_DEFINE(HAVE_SELINUX, 1, [Define if you have SELinux support]) -else - AC_DEFINE(HAVE_SELINUX, 0, [Define if you have SELinux support]) -fi - -# libaudit support -AC_ARG_WITH(libaudit, AS_HELP_STRING([--with-libaudit=yes|yes-disabled-by-default|no|auto], [Build with audit daemon support [default=auto]. yes-disabled-by-default enables support, but disables it unless explicitly configured via NetworkManager.conf]),,[with_libaudit=auto]) -if test "$with_libaudit" = "yes" -o "$with_libaudit" = "yes-disabled-by-default" -o "$with_libaudit" = "auto"; then - PKG_CHECK_MODULES(LIBAUDIT, audit, [have_libaudit=yes], [have_libaudit=no]) - if test "$with_libaudit" != "auto" -a "$have_libaudit" = "no"; then - AC_MSG_ERROR([You must have libaudit installed to build --with-libaudit=$with_libaudit.]) - fi -else - have_libaudit=no -fi -if test "$have_libaudit" = "yes"; then - AC_DEFINE(HAVE_LIBAUDIT, 1, [Define if you have libaudit support]) - if test "$with_libaudit" = "yes-disabled-by-default"; then - AC_DEFINE(NM_CONFIG_DEFAULT_LOGGING_AUDIT, "false", [The default value of the logging.audit configuration option]) - NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT='false' - else - AC_DEFINE(NM_CONFIG_DEFAULT_LOGGING_AUDIT, "true", [The default value of the logging.audit configuration option]) - NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT='true' - fi -else - AC_DEFINE(HAVE_LIBAUDIT, 0, [Define if you have libaudit support]) - AC_DEFINE(NM_CONFIG_DEFAULT_LOGGING_AUDIT, "false", [The default value of the logging.audit configuration option]) - NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT='false' -fi -AC_SUBST(NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT) - -# uuid library -PKG_CHECK_MODULES(UUID, uuid) - -# Teamd control checks - -PKG_CHECK_MODULES(JANSSON, [jansson >= 2.7], [have_jansson=yes], [have_jansson=no]) -if test "$have_jansson" = "yes"; then - AC_DEFINE(WITH_JANSSON, 1, [Define if JANSSON is enabled]) - - AC_CHECK_TOOLS(READELF, [eu-readelf readelf]) - JANSSON_LIBDIR=`$PKG_CONFIG --variable=libdir jansson` - JANSSON_SONAME=`$READELF -d $JANSSON_LIBDIR/libjansson.so |sed -n 's/.*SONAME.*\[[\([^]]*\)]]/\1/p'` - - if test "$JANSSON_SONAME" = ""; then - AC_MSG_ERROR(Unable to locate the Jansson library) - fi - AC_DEFINE_UNQUOTED(JANSSON_SONAME, "$JANSSON_SONAME", [Define to path to the Jansson shared library]) -else - have_jansson=no - JANSSON_SONAME= - AC_DEFINE(WITH_JANSSON, 0, [Define if JANSSON is enabled]) -fi -AM_CONDITIONAL(WITH_JANSSON, test "${have_jansson}" = "yes") - -PKG_CHECK_MODULES(LIBTEAMDCTL, [libteamdctl >= 1.9], [have_teamdctl=yes],[have_teamdctl=no]) -if test "$have_jansson" = "yes" -a "$have_teamdctl" = "yes"; then - have_team_prereq=yes -else - have_team_prereq=no -fi - -AC_ARG_ENABLE(teamdctl, - AS_HELP_STRING([--enable-teamdctl], [enable Teamd control support]), - [enable_teamdctl=${enableval}], [enable_teamdctl=${have_team_prereq}]) -if test "${enable_teamdctl}" = "yes"; then - if test "$have_teamdctl" = "no"; then - AC_MSG_ERROR(Libteamdctl is required for team support) - fi - if test "$have_jansson" = "no"; then - AC_MSG_ERROR(Jansson is required for team support) - fi - # temporary bug workaround - LIBTEAMDCTL_CFLAGS=`echo $LIBTEAMDCTL_CFLAGS | sed -e 's:/teamdctl.h::'` -fi -AM_CONDITIONAL(WITH_TEAMDCTL, test "${enable_teamdctl}" = "yes") - -# we usually compile with polkit support. --enable-polkit=yes|no only sets the -# default configuration for main.auth-polkit. User can always enable/disable polkit -# authorization via config. -AC_ARG_ENABLE(polkit, - AS_HELP_STRING([--enable-polkit=yes|no|root-only], - [set default value for auth-polkit configuration option. This value can be overwritten by NM configuration. 'disabled' is an alias for 'no']), - [enable_polkit=${enableval}], [enable_polkit=yes]) -if test "${enable_polkit}" = "root-only" ; then - enable_polkit='root-only' -elif test "${enable_polkit}" != "no" -a "${enable_polkit}" != "disabled" ; then - enable_polkit=true -else - enable_polkit=false -fi -AC_DEFINE_UNQUOTED(NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT, "$enable_polkit", [The default value of the auth-polkit configuration option]) -AC_SUBST(NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT_TEXT, "$enable_polkit") - -AC_ARG_WITH([polkit-agent-helper-1], - AS_HELP_STRING([--with-polkit-agent-helper-1=/path/to/polkit-agent-helper-1], - [Path to the polkit-agent-helper-1 binary from polkit]), - POLKIT_AGENT_HELPER_1_PATH="$withval", - POLKIT_AGENT_HELPER_1_PATH="") -if test -z "$POLKIT_AGENT_HELPER_1_PATH" ; then - for p in /usr/libexec/polkit-agent-helper-1 \ - /usr/lib/polkit-1/polkit-agent-helper-1 \ - /usr/lib/policykit-1/polkit-agent-helper-1 ; do - if test -f "$p" ; then - POLKIT_AGENT_HELPER_1_PATH="$p" - break - fi - done -fi -test -z "$POLKIT_AGENT_HELPER_1_PATH" && POLKIT_AGENT_HELPER_1_PATH=/usr/lib/polkit-1/polkit-agent-helper-1 -if test "$POLKIT_AGENT_HELPER_1_PATH" = "${POLKIT_AGENT_HELPER_1_PATH#/}" ; then - AC_MSG_ERROR(["polkit_agent_helper_1 must be an absolute path, but is '$POLKIT_AGENT_HELPER_1_PATH'"]) -fi -AC_DEFINE_UNQUOTED([POLKIT_AGENT_HELPER_1_PATH], - ["$POLKIT_AGENT_HELPER_1_PATH"], - [path to polkit-agent-helper-1 binary]) - -AC_ARG_ENABLE(modify-system, AS_HELP_STRING([--enable-modify-system], [Allow users to modify system connections])) -if test "${enable_modify_system}" = "yes"; then - NM_MODIFY_SYSTEM_POLICY="yes" -else - NM_MODIFY_SYSTEM_POLICY="auth_admin_keep" -fi -AC_SUBST(NM_MODIFY_SYSTEM_POLICY) - -AC_ARG_ENABLE(firewalld-zone, - AS_HELP_STRING([--enable-firewalld-zone], [Install and use firewalld zone for shared mode]), - [enable_firewalld_zone=${enableval}], - [enable_firewalld_zone=yes]) - -if test "${enable_firewalld_zone}" = "yes"; then - AC_DEFINE(WITH_FIREWALLD_ZONE, 1, [Define if NetworkManager uses a custom zone for shared mode]) -else - AC_DEFINE(WITH_FIREWALLD_ZONE, 0, [Define if NetworkManager uses a custom zone for shared mode]) -fi -AM_CONDITIONAL(WITH_FIREWALLD_ZONE, test "${enable_firewalld_zone}" = "yes") - -PKG_CHECK_MODULES(GNUTLS, [gnutls >= 2.12], [have_crypto_gnutls=yes], [have_crypto_gnutls=no]) -PKG_CHECK_MODULES(NSS, [nss], [have_crypto_nss=yes], [have_crypto_nss=yes]) -if test "${have_crypto_nss}" = "yes"; then - # Work around a pkg-config bug (fdo #29801) where exists != usable - FOO=`$PKG_CONFIG --cflags --libs nss` - if test x"$?" != "x0"; then - have_crypto_nss=no - fi -fi -AM_CONDITIONAL(HAVE_CRYPTO_GNUTLS, test "${have_crypto_gnutls}" = 'yes') -AM_CONDITIONAL(HAVE_CRYPTO_NSS, test "${have_crypto_nss}" = 'yes') - -AC_ARG_WITH(crypto, - AS_HELP_STRING([--with-crypto=nss|gnutls|null], - [Cryptography library to use for certificate and key operations]), - with_crypto=$withval, - with_crypto=nss) -if test "$with_crypto" = 'nss'; then - if test "${have_crypto_nss}" != "yes"; then - AC_MSG_ERROR([No usable NSS found for --with-crypto=nss]) - fi -elif test "$with_crypto" = 'gnutls'; then - if test "${have_crypto_gnutls}" != "yes"; then - AC_MSG_ERROR([No usable gnutls found for --with-crypto=gnutls]) - fi -elif test "$with_crypto" = 'null'; then - : -else - AC_MSG_ERROR([Please choose either 'nss', 'gnutls' or 'null' for certificate and crypto operations]) -fi -AM_CONDITIONAL(WITH_NSS, test "$with_crypto" = 'nss') -AM_CONDITIONAL(WITH_GNUTLS, test "$with_crypto" = 'gnutls') - -GLIB_MAKEFILE='$(top_srcdir)/Makefile.glib' -AC_SUBST(GLIB_MAKEFILE) -GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` -AC_SUBST(GLIB_MKENUMS) - -AC_ARG_WITH(dbus-sys-dir, - AS_HELP_STRING([--with-dbus-sys-dir=DIR], [where D-BUS system.d directory is])) -if test -n "$with_dbus_sys_dir" ; then - DBUS_SYS_DIR="$with_dbus_sys_dir" -else - DBUS_SYS_DIR="${datadir}/dbus-1/system.d" -fi -AC_SUBST(DBUS_SYS_DIR) - -# pppd -NM_PPP_VERSION_2_5_OR_NEWER=0 -PPPD_VERSION=2.4.9 -PKG_CHECK_EXISTS([pppd], [ - PPPD_VERSION=`$PKG_CONFIG --modversion pppd` - PPPD_CFLAGS=`$PKG_CONFIG --cflags pppd` - NM_PPP_VERSION_2_5_OR_NEWER=1 -]) - -AC_ARG_ENABLE(ppp, - AS_HELP_STRING([--enable-ppp], [enable PPP/PPPoE support]), - [enable_ppp=${enableval}], [enable_ppp=yes]) -if test "${enable_ppp}" = "yes"; then - if test -z "$PPPD_CFLAGS" ; then - AC_CHECK_HEADERS(pppd/pppd.h,, - AC_MSG_ERROR("couldn't find pppd.h. pppd development headers are required."),) - fi - AC_SUBST(PPPD_CFLAGS, ["$PPPD_CFLAGS"]) - AC_DEFINE(WITH_PPP, 1, [Define if you have PPP support]) -else - AC_DEFINE(WITH_PPP, 0, [Define if you have PPP support]) -fi -AM_CONDITIONAL(WITH_PPP, test "${enable_ppp}" = "yes") - -AC_ARG_WITH([pppd-plugin-dir], - AS_HELP_STRING([--with-pppd-plugin-dir=DIR], [path to the pppd plugins directory])) -if test -n "$with_pppd_plugin_dir" ; then - PPPD_PLUGIN_DIR="$with_pppd_plugin_dir" -else - PPPD_PLUGIN_DIR="${libdir}/pppd/$PPPD_VERSION" -fi -AC_SUBST(PPPD_PLUGIN_DIR) -AC_DEFINE_UNQUOTED(NM_PPP_VERSION_2_5_OR_NEWER, $NM_PPP_VERSION_2_5_OR_NEWER, [The detected ppp API version]) - -AC_ARG_WITH(pppd, AS_HELP_STRING([--with-pppd=/path/to/pppd], [path to pppd binary])) -if test "x${with_pppd}" = x; then - AC_PATH_PROG(PPPD_PATH, pppd, [], $PATH:/sbin:/usr/sbin) -else - PPPD_PATH="$with_pppd" -fi -AC_DEFINE_UNQUOTED(PPPD_PATH, "$PPPD_PATH", [Define to path of pppd binary]) -AC_SUBST(PPPD_PATH) - -# ModemManager1 with libmm-glib -AC_ARG_WITH(modem-manager-1, - AS_HELP_STRING([--with-modem-manager-1], - [Enable new ModemManager1 interface support]), - [], [with_modem_manager_1=auto]) -if test "${with_modem_manager_1}" != "no"; then - PKG_CHECK_MODULES(MM_GLIB, - [mm-glib >= 0.7.991], - [have_libmm_glib=yes], - [have_libmm_glib=no]) - - if test "${have_libmm_glib}" = "no"; then - if test "${with_modem_manager_1}" = "yes"; then - AC_MSG_ERROR([Couldn't find libmm-glib]) - else - with_modem_manager_1="no" - fi - else - with_modem_manager_1="yes" - - PKG_CHECK_MODULES(MOBILE_BROADBAND_PROVIDER_INFO, [mobile-broadband-provider-info], - [MOBILE_BROADBAND_PROVIDER_INFO_DATABASE=`$PKG_CONFIG --variable=database mobile-broadband-provider-info`], - [MOBILE_BROADBAND_PROVIDER_INFO_DATABASE="$prefix/share/mobile-broadband-provider-info/serviceproviders.xml"]) - AC_DEFINE_UNQUOTED([MOBILE_BROADBAND_PROVIDER_INFO_DATABASE], - ["$MOBILE_BROADBAND_PROVIDER_INFO_DATABASE"], - [Mobile Broadband Service Provider Information Database location]) - fi -fi -AM_CONDITIONAL(WITH_MODEM_MANAGER_1, test "${with_modem_manager_1}" = "yes") - - - - -# Bluez5 DUN support -PKG_CHECK_MODULES(BLUEZ5, [bluez >= 5], [have_bluez5=yes],[have_bluez5=no]) -AC_ARG_ENABLE(bluez5-dun, - AS_HELP_STRING([--enable-bluez5-dun], [enable Bluez5 DUN support]), - [enable_bluez5_dun=${enableval}], [enable_bluez5_dun=${have_bluez5}]) -if test "${enable_bluez5_dun}" = "yes"; then - if test x"$have_bluez5" = x"no"; then - AC_MSG_ERROR(Bluez 5.x development headers are required) - fi - AC_DEFINE(WITH_BLUEZ5_DUN, 1, [Define if you have Bluez 5 libraries]) -else - AC_DEFINE(WITH_BLUEZ5_DUN, 0, [Define if you have Bluez 5 libraries]) -fi -AM_CONDITIONAL(WITH_BLUEZ5_DUN, test "${enable_bluez5_dun}" = "yes") - -# OFONO -AC_ARG_WITH(ofono, - AS_HELP_STRING([--with-ofono], [Enable oFono support (experimental)]), - [], [with_ofono=no]) -if test "${with_ofono}" = "yes"; then - AC_DEFINE(WITH_OFONO, 1, [Define if you have oFono support (experimental)]) -else - AC_DEFINE(WITH_OFONO, 0, [Define if you have oFono support (experimental)]) -fi -AM_CONDITIONAL(WITH_OFONO, test "${with_ofono}" = "yes") - -# DHCP client support with dhcpcanon -AC_ARG_WITH([dhcpcanon], - AS_HELP_STRING([--with-dhcpcanon=yes|no|path], [Enable dhcpcanon support (experimental)])) -if test "$with_dhcpcanon" != "no"; then - with_dhcpcanon_="$with_dhcpcanon" - AC_PATH_PROGS(with_dhcpcanon, dhcpcanon, no, /sbin:/usr/sbin:/usr/local/sbin:/usr/bin:/usr/local/bin) - if test "$with_dhcpcanon" = "no"; then - if test "$with_dhcpcanon_" = yes; then - AC_MSG_WARN([dhcpcanon not found, assume path /sbin/dhcpcanon]) - with_dhcpcanon=/sbin/dhcpcanon - fi - fi -fi -if test "$with_dhcpcanon" != "no"; then - AC_DEFINE(WITH_DHCPCANON, 1, [Define if you have dhcpcanon]) - AC_DEFINE_UNQUOTED(DHCPCANON_PATH, "$with_dhcpcanon", [Define path to dhcpcanon]) -else - AC_DEFINE(WITH_DHCPCANON, 0, [Define if you have dhcpcanon]) -fi - -# Open vSwitch integration -AC_ARG_ENABLE(ovs, AS_HELP_STRING([--enable-ovs], [enable Open vSwitch support])) -if test "${enable_ovs}" != "no"; then - enable_ovs='yes' - if test "$have_jansson" = "no"; then - AC_MSG_ERROR(Jansson is required for ovs support) - fi -fi -AM_CONDITIONAL(WITH_OPENVSWITCH, test "${enable_ovs}" = "yes") -if test "${enable_ovs}" = "yes" ; then - AC_DEFINE(WITH_OPENVSWITCH, 1, [Whether we build with OVS plugin]) -else - AC_DEFINE(WITH_OPENVSWITCH, 0, [Whether we build with OVS plugin]) -fi - -# DHCP client support -AC_ARG_WITH([dhclient], - AS_HELP_STRING([--with-dhclient=yes|no|path], [Enable dhclient support (deprecated)]), - with_dhclient="$withval", - with_dhclient="no") -if test "$with_dhclient" = yes; then - AC_PATH_PROGS(with_dhclient, dhclient, no, /sbin:/usr/sbin:/usr/local/sbin) - if test "$with_dhclient" = "no"; then - AC_MSG_WARN([dhclient not found, assume path /usr/sbin/dhclient]) - with_dhclient=/usr/sbin/dhclient - fi -fi -if test "$with_dhclient" != "no"; then - AC_MSG_WARN([dhclient is unmaintained and support for it is deprecated]) - AC_DEFINE(WITH_DHCLIENT, 1, [Define if you have dhclient]) - AC_DEFINE_UNQUOTED(DHCLIENT_PATH, "$with_dhclient", [Define path to dhclient]) -else - AC_DEFINE(WITH_DHCLIENT, 0, [Define if you have dhclient]) -fi - -AC_ARG_WITH([dhcpcd], - AS_HELP_STRING([--with-dhcpcd=yes|no|path], [Enable dhcpcd 4.x support])) -if test "$with_dhcpcd" != "no"; then - with_dhcpcd_="$with_dhcpcd" - AC_PATH_PROGS(with_dhcpcd, dhcpcd, no, /sbin:/usr/sbin:/usr/local/sbin) - if test "$with_dhcpcd" = "no"; then - if test "$with_dhcpcd_" = yes; then - AC_MSG_WARN([dhcpcd not found, assume path /usr/sbin/dhcpcd]) - with_dhcpcd=/usr/sbin/dhcpcd - fi - fi -fi -if test "$with_dhcpcd" != "no"; then - AC_DEFINE(WITH_DHCPCD, 1, [Define if you have dhcpcd]) - AC_DEFINE_UNQUOTED(DHCPCD_PATH, "$with_dhcpcd", [Define path to dhcpcd]) -else - AC_DEFINE(WITH_DHCPCD, 0, [Define if you have dhcpcd]) -fi - -AC_ARG_WITH(config-dhcp-default, - AS_HELP_STRING([--with-config-dhcp-default=dhclient|dhcpcd|internal], - [Default configuration option for main.dhcp setting, used as fallback if the configuration option is unset [default=internal]]), - [config_dhcp_default="$withval"], [config_dhcp_default=""]) -if test "$config_dhcp_default" = yes -o "$config_dhcp_default" = no -o -z "$config_dhcp_default"; then - config_dhcp_default='internal' -fi -AC_DEFINE_UNQUOTED(NM_CONFIG_DEFAULT_MAIN_DHCP, "$config_dhcp_default", [Default configuration option for main.dhcp setting]) -AC_SUBST(NM_CONFIG_DEFAULT_MAIN_DHCP, $config_dhcp_default) - -AC_ARG_WITH(resolvconf, AS_HELP_STRING([--with-resolvconf=yes|no|path], [Enable resolvconf support])) -AC_ARG_WITH(netconfig, AS_HELP_STRING([--with-netconfig=yes|no], [Enable SUSE netconfig support])) -AC_ARG_WITH(config-dns-rc-manager-default, AS_HELP_STRING([--with-config-dns-rc-manager-default=auto|symlink|file|netconfig|resolvconf], [Configure default value for main.rc-manager setting]), [config_dns_rc_manager_default=$withval]) -if test "$config_dns_rc_manager_default" != "" -a \ - "$config_dns_rc_manager_default" != auto -a \ - "$config_dns_rc_manager_default" != file -a \ - "$config_dns_rc_manager_default" != symlink -a \ - "$config_dns_rc_manager_default" != netconfig -a \ - "$config_dns_rc_manager_default" != resolvconf; then - AC_MSG_WARN([Unknown --with-config-dns-rc-manager-default=$config_dns_rc_manager_default setting.]) - config_dns_rc_manager_default=auto -fi -# Use netconfig by default on SUSE -AS_IF([test -z "$with_netconfig" -a -f /etc/SuSE-release], with_netconfig=yes) -# Otherwise, default to "no" -AS_IF([test -z "$with_resolvconf"], with_resolvconf=no) -AS_IF([test -z "$with_netconfig"], with_netconfig=no) - -if test "$with_resolvconf" = "yes"; then - AC_PATH_PROGS(with_resolvconf, resolvconf, 'yes', /sbin:/usr/sbin:/usr/local/sbin) - if test "$with_resolvconf" = "yes"; then - AC_MSG_ERROR(cannot find resolvconf in path. Set the path explicitly via --with-resolvconf=PATH.) - fi -fi - -if test "$with_netconfig" = "yes"; then - AC_PATH_PROGS(with_netconfig, netconfig, yes, /sbin:/usr/sbin:/usr/local/sbin) - if test "$with_netconfig" = "yes"; then - AC_MSG_ERROR(cannot find netconfig in path. Set the path explicitly via --with-netconfig=PATH.) - fi -fi - -if test "$with_resolvconf" != "no"; then - AC_DEFINE_UNQUOTED(RESOLVCONF_PATH, "$with_resolvconf", [Path to resolvconf]) -fi -if test "$with_netconfig" != "no"; then - AC_DEFINE_UNQUOTED(NETCONFIG_PATH, "$with_netconfig", [Path to netconfig]) -fi -AC_DEFINE_UNQUOTED(NM_CONFIG_DEFAULT_MAIN_RC_MANAGER, "$config_dns_rc_manager_default", [Default value for main.rc-manager setting (--with-config-dns-rc-manager-default)]) -AC_SUBST(NM_CONFIG_DEFAULT_MAIN_RC_MANAGER, $config_dns_rc_manager_default) - -AC_ARG_WITH(iptables, - AS_HELP_STRING([--with-iptables=/usr/sbin/iptables], [path to iptables])) -if test "x${with_iptables}" = x; then - AC_PATH_PROG(IPTABLES_PATH, iptables, [], $PATH:/sbin:/usr/sbin) - if test "x$IPTABLES_PATH" = x; then - IPTABLES_PATH='/usr/sbin/iptables' - fi -else - IPTABLES_PATH="$with_iptables" -fi -AC_DEFINE_UNQUOTED(IPTABLES_PATH, "$IPTABLES_PATH", [Define to path of iptables binary]) -AC_SUBST(IPTABLES_PATH) - -AC_ARG_WITH(nft, - AS_HELP_STRING([--with-nft=/usr/sbin/nft], [path to nft])) -if test "x${with_nft}" = x; then - AC_PATH_PROG(NFT_PATH, nft, [], $PATH:/sbin:/usr/sbin) - if test "x$NFT_PATH" = x; then - NFT_PATH='/usr/sbin/nft' - fi -else - NFT_PATH="$with_nft" -fi -AC_DEFINE_UNQUOTED(NFT_PATH, "$NFT_PATH", [Define to path of nft binary]) -AC_SUBST(NFT_PATH) - -AC_ARG_WITH(modprobe, - AS_HELP_STRING([--with-modprobe=/sbin/modprobe], [path to modprobe])) -if test "x${with_modprobe}" = x; then - AC_PATH_PROG(MODPROBE_PATH, modprobe, [], $PATH:/sbin:/usr/sbin) - if test "x$MODPROBE_PATH" = x; then - MODPROBE_PATH='/sbin/modprobe' - fi -else - MODPROBE_PATH="$with_modprobe" -fi -AC_DEFINE_UNQUOTED(MODPROBE_PATH, "$MODPROBE_PATH", [Define to path of modprobe binary]) -AC_SUBST(MODPROBE_PATH) - -AC_ARG_WITH(dnsmasq, - AS_HELP_STRING([--with-dnsmasq=/path/to/dnsmasq], [path to dnsmasq])) -if test "x${with_dnsmasq}" = x; then - AC_PATH_PROG(DNSMASQ_PATH, dnsmasq, [], $PATH:/sbin:/usr/sbin) -else - DNSMASQ_PATH="$with_dnsmasq" -fi -AC_DEFINE_UNQUOTED(DNSMASQ_PATH, "$DNSMASQ_PATH", [Define to path of dnsmasq binary]) -AC_SUBST(DNSMASQ_PATH) - -# system CA certificates path -AC_ARG_WITH(system-ca-path, - AS_HELP_STRING([--with-system-ca-path=/path/to/ssl/certs], [path to system CA certificates])) -if test "x${with_system_ca_path}" = x; then - SYSTEM_CA_PATH=/etc/ssl/certs -else - SYSTEM_CA_PATH="$with_system_ca_path" -fi -AC_DEFINE_UNQUOTED(SYSTEM_CA_PATH, "$SYSTEM_CA_PATH", [Define to path to system CA certificates]) -AC_SUBST(SYSTEM_CA_PATH) - -AC_ARG_WITH(kernel-firmware-dir, - AS_HELP_STRING([--with-kernel-firmware-dir=DIR], [where kernel firmware directory is [default=/lib/firmware]])) -if test -n "$with_kernel_firmware_dir" ; then - KERNEL_FIRMWARE_DIR="$with_kernel_firmware_dir" -else - KERNEL_FIRMWARE_DIR="/lib/firmware" -fi -AC_DEFINE_UNQUOTED(KERNEL_FIRMWARE_DIR, "$KERNEL_FIRMWARE_DIR", [Define to path of the kernel firmware directory]) -AC_SUBST(KERNEL_FIRMWARE_DIR) - -PKG_CHECK_MODULES(LIBPSL, [libpsl >= 0.1], [have_libpsl=yes],[have_libpsl=no]) -AC_ARG_WITH(libpsl, - AS_HELP_STRING([--with-libpsl=yes|no], [Link against libpsl]), - [], [with_libpsl=${have_libpsl}]) -if test "$with_libpsl" != "no"; then - if test "$have_libpsl" != "yes"; then - AC_MSG_ERROR(libpsl library not found) - fi - with_libpsl='yes' - AC_DEFINE(WITH_LIBPSL, 1, [Define if you have libpsl]) -else - AC_DEFINE(WITH_LIBPSL, 0, [Define if you have libpsl]) -fi -AM_CONDITIONAL(WITH_LIBPSL, test "$with_libpsl" != "no") - -have_libcurl='' - -AC_ARG_ENABLE(concheck, - AS_HELP_STRING([--enable-concheck], [enable connectivity checking support]), - [enable_concheck=${enableval}], [enable_concheck=yes]) -if test "${enable_concheck}" = "yes"; then - PKG_CHECK_MODULES(LIBCURL, [libcurl >= 7.24.0], [have_libcurl=yes], [have_libcurl=no]) - if test "$have_libcurl" != "yes"; then - AC_MSG_ERROR(--enable-concheck requires libcurl library.) - fi - AC_DEFINE(WITH_CONCHECK, 1, [Define if you want connectivity checking support]) -else - enable_concheck=no - AC_DEFINE(WITH_CONCHECK, 0, [Define if you want connectivity checking support]) -fi - -PKG_CHECK_MODULES(LIBNDP, [libndp]) - -AX_LIB_READLINE - -AC_ARG_WITH(nmcli, - AS_HELP_STRING([--with-nmcli=yes|no], [Build nmcli]), - [], - [with_nmcli=yes]) -if test "$with_nmcli" = yes; then - if test "$with_readline" = none; then - AC_MSG_FAILURE([nmcli requires readline library. Use --with-readline or --with-nmcli=no]) - fi - build_nmcli=yes -elif test "$with_nmcli" = no; then - build_nmcli=no -else - AC_MSG_ERROR([invalid --with-nmcli option. Valid options are --with-nmcli=yes|no]) -fi -AM_CONDITIONAL(BUILD_NMCLI, test "$build_nmcli" = yes) - -AC_ARG_WITH(nm-cloud-setup, - AS_HELP_STRING([--with-nm-cloud-setup=yes|no], [Build nm-cloud-setup, a tool for automatically configuring networking in cloud])) -if test "$with_nm_cloud_setup" != no; then - if test "$have_libcurl" = ""; then - PKG_CHECK_MODULES(LIBCURL, [libcurl >= 7.24.0], [have_libcurl=yes], [have_libcurl=no]) - fi - if test "$have_libcurl" != "yes"; then - AC_MSG_ERROR(--with-nm-cloud-setup requires libcurl library.) - fi - with_nm_cloud_setup=yes -fi -AM_CONDITIONAL(BUILD_NM_CLOUD_SETUP, test "$with_nm_cloud_setup" = yes) - -AC_ARG_WITH(nmtui, - AS_HELP_STRING([--with-nmtui=yes|no], [Build nmtui])) -if test "$with_nmtui" != no; then - PKG_CHECK_MODULES(NEWT, [libnewt >= 0.52.15], [build_nmtui=yes], [build_nmtui=no]) -else - build_nmtui=no -fi -if test "$with_nmtui" = yes -a "$build_nmtui" = no; then - AC_MSG_ERROR([You must have libnewt installed to build nmtui.]) -fi -AM_CONDITIONAL(BUILD_NMTUI, test "$build_nmtui" = yes) - -if test $(( ${NM_MINOR_VERSION} % 2 )) = "1"; then - # A development version - more_warnings_default=error - more_asserts_default=100 - more_logging_default=yes -else - # A release version - more_warnings_default=yes - more_asserts_default=0 - more_logging_default=no -fi - -NM_COMPILER_WARNINGS(AM_CFLAGS, ${more_warnings_default}) - -for w in \ - -Wno-nonnull-compare \ - ; do - NM_COMPILER_WARNING_FLAG(LIBSYSTEMD_NM_CFLAGS, "$w") -done -AC_SUBST(LIBSYSTEMD_NM_CFLAGS) - -CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\ - -fno-strict-aliasing \ -]) -AM_CFLAGS="$AM_CFLAGS $with_cflags" - -AC_ARG_ENABLE(more-asserts, - AS_HELP_STRING([--enable-more-asserts], - [Enable more assertions for debugging [default=auto]. Deprecated option. Use --with-more-asserts=level])) -if test "${enable_more_asserts}" = "yes"; then - more_asserts=100 -fi -AC_ARG_WITH(more-asserts, - AS_HELP_STRING([--with-more-asserts=level], [Enable more assertions for debugging (0 = none, 100 = all) [default=auto]]), - [more_asserts=${with_more_asserts}], - []) -if test "${more_asserts}" = "no"; then - more_asserts=0 -else - if test "${more_asserts}" = "yes"; then - more_asserts=100 - fi -fi -if test "${more_asserts}" = ""; then - more_asserts=${more_asserts_default} -fi -AC_DEFINE_UNQUOTED(NM_MORE_ASSERTS, $more_asserts, [Define if more asserts are enabled]) - -AC_ARG_ENABLE(more-logging, AS_HELP_STRING([--enable-more-logging], [Enable more debug logging [default=auto]])) -if test "${enable_more_logging}" = ""; then - enable_more_logging=${more_logging_default} -fi -if test "${enable_more_logging}" = "yes"; then - AC_DEFINE(NM_MORE_LOGGING, [1], [Define if more debug logging is enabled]) -else - AC_DEFINE(NM_MORE_LOGGING, [0], [Define if more debug logging is enabled]) -fi - -NM_LTO -NM_LD_GC - -AC_ARG_WITH(address-sanitizer, - AS_HELP_STRING([--with-address-sanitizer=yes|no|exec], [Enable address sanitizer [default=no]])) -if test "$with_address_sanitizer" = yes -o "$with_address_sanitizer" = "exec"; then - CC_CHECK_FLAGS_APPEND([asan_cflags], [CFLAGS], [-fsanitize=address]) - AS_IF([test -z "$asan_cflags"], - [AC_MSG_ERROR([*** -fsanitize=address is not supported])]) - - sanitizer_exec_cflags="$sanitizer_exec_cflags -fsanitize=address" - sanitizer_exec_ldflags="$sanitizer_exec_ldflags -Wc,-fsanitize=address" - AC_DEFINE(ASAN_BUILD, 1, [Whether NM is built with address sanitizer]) - - if test "$with_address_sanitizer" = "yes"; then - sanitizer_lib_cflags="$sanitizer_lib_cflags -fsanitize=address" - sanitizer_lib_ldflags="$sanitizer_lib_ldflags -Wc,-fsanitize=address" - sanitizers="${sanitizers}address " - asan_options="ASAN_OPTIONS=detect_leaks=0" - else - sanitizers="${sanitizers}address(executables-only) " - fi -elif test "$with_address_sanitizer" = "" -o "$with_address_sanitizer" = no; then - with_address_sanitizer=no -else - AC_MSG_ERROR(["Invalid asan option --with-address-sanitizer=$with_address_sanitizer"]) -fi - -AC_ARG_ENABLE(undefined-sanitizer, - AS_HELP_STRING([--enable-undefined-sanitizer], - [Compile with undefined behavior sanitizer [default=no]])) -if test "${enable_undefined_sanitizer}" = "yes"; then - CC_CHECK_FLAGS_APPEND([ubsan_cflags], [CFLAGS], [-fsanitize=undefined]) - AS_IF([test -z "$ubsan_cflags"], - [AC_MSG_ERROR([*** -fsanitize=undefined is not supported])]) - - sanitizer_exec_cflags="$sanitizer_exec_cflags -fsanitize=undefined" - sanitizer_lib_cflags="$sanitizer_lib_cflags -fsanitize=undefined" - sanitizer_exec_ldflags="$sanitizer_exec_ldflags -Wc,-fsanitize=undefined" - sanitizer_lib_ldflags="$sanitizer_lib_ldflags -Wc,-fsanitize=undefined" - sanitizers="${sanitizers}undefined-behavior " -elif test "$enable_undefined_sanitizer" = "" -o "$enable_undefined_sanitizer" = no; then - enable_undefined_sanitizer=no -else - AC_MSG_ERROR(["Invalid asan option --enable-undefined-sanitizer=$enable_undefined_sanitizer"]) -fi - -if test -n "$sanitizers"; then - sanitizers="${sanitizers% }" - AC_SUBST(SANITIZER_ENV, ["$asan_options"]) - AC_SUBST(SANITIZER_EXEC_CFLAGS, ["$sanitizer_exec_cflags -DVALGRIND=1 -fno-omit-frame-pointer"]) - AC_SUBST(SANITIZER_LIB_CFLAGS, ["$sanitizer_lib_cflags -DVALGRIND=1 -fno-omit-frame-pointer"]) - AC_SUBST(SANITIZER_EXEC_LDFLAGS, [$sanitizer_exec_ldflags]) - AC_SUBST(SANITIZER_LIB_LDFLAGS, [$sanitizer_lib_ldflags]) -fi - -AC_MSG_CHECKING([CC support C11 _Generic()]) -AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int foo(void); static const char *const buf[1] = { "a" }; int foo() { int a = 0; int b = _Generic (a, int: 4) + _Generic(buf, const char *const*: 5); return b + a; }]], - [[foo();]])], - [cc_support_generic=1], - [cc_support_generic=0]) -AC_MSG_RESULT($cc_support_generic) -AC_DEFINE_UNQUOTED(_NM_CC_SUPPORT_GENERIC, $cc_support_generic, [Define whether the compiler supports C11 _Generic()]) - -AC_MSG_CHECKING([CC support gcc __auto_type]) -AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int foo(void); int foo() { int a = 0; __auto_type b = a; return b + a; }]], - [[foo();]])], - [cc_support_auto_type=1], - [cc_support_auto_type=0]) -AC_MSG_RESULT($cc_support_auto_type) -AC_DEFINE_UNQUOTED(_NM_CC_SUPPORT_AUTO_TYPE, $cc_support_auto_type, [Define whether the compiler support gcc __auto_type]) - -dnl ------------------------- -dnl Vala bindings -dnl ------------------------- - -VAPIGEN_CHECK(0.17.1.24) -AC_CONFIG_COMMANDS([vapi], [$MKDIR_P vapi]) - -# Tests, utilities and documentation -AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests=root|yes|no], [Build NetworkManager tests [default=yes]])) -AC_ARG_WITH(valgrind, - AS_HELP_STRING([--with-valgrind=yes|no|path], [Use valgrind to memory-check the tests [default=no]])) -# Fallback to --with-tests -AC_ARG_WITH(tests, - AS_HELP_STRING([--with-tests], [Build NetworkManager tests (deprecated)])) -AS_IF([test -n "$with_tests"], enable_tests="$with_tests") -# Default to --enable-tests --with-valgrind=no -AS_IF([test -z "$enable_tests"], enable_tests="yes") -AS_IF([test -z "$with_valgrind"], with_valgrind="no") -# Normalize values -AS_IF([test "$enable_tests" != "yes" -a "$enable_tests" != "root"], enable_tests="no") -# Search for tools -AS_IF([test "$with_valgrind" = "yes"], - [AC_PATH_PROGS(with_valgrind, valgrind, no)]) -# Add conditionals and substitutions -AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" != "no") -AM_CONDITIONAL(REQUIRE_ROOT_TESTS, test "$enable_tests" = "root") -AC_ARG_WITH(valgrind-suppressions, - AS_HELP_STRING([--with-valgrind-suppressions=path], [Use specific valgrind suppression file])) -if test "$with_valgrind" = no; then - with_valgrind_suppressions= -else - if test "$with_valgrind_suppressions" = ""; then - with_valgrind_suppressions='$(top_srcdir)/valgrind.suppressions' - fi -fi -AC_SUBST(NM_LOG_COMPILER, 'LOG_COMPILER = "$(top_srcdir)/tools/run-nm-test.sh" --called-from-make "$(abs_top_builddir)" "$(LIBTOOL)" "$(with_valgrind)" "'"$with_valgrind_suppressions"'" --launch-dbus=auto') - -AX_PTHREAD([], [AC_MSG_ERROR([Threads are required for the NetworkManager tests])]) - -if test -n "$PYTHON" ; then - AM_PATH_PYTHON([], [], []) -else - AM_PATH_PYTHON([3], [], [PYTHON=]) - if test -z "$PYTHON"; then - AM_PATH_PYTHON([], [], []) - fi -fi -AC_SUBST(PYTHON, [$PYTHON]) -AC_DEFINE_UNQUOTED(TEST_NM_PYTHON, "$PYTHON", [Define python path for test binary]) - -GTK_DOC_CHECK(1.0) - -# check if we can build setting property documentation -build_docs=no -if test -n "$INTROSPECTION_MAKEFILE"; then - # If g-i is installed we know we have python, but we might not have pygobject - if ! "$PYTHON" -c 'from gi.repository import GObject' > /dev/null 2>&1; then - AC_MSG_ERROR(["--enable-introspection aims to build the settings documentation. This requires GObject introspection for python (pygobject)]) - fi - - AC_PATH_PROG(PERL, perl) - if test -z "$PERL"; then - AC_MSG_ERROR([--enable-introspection requires perl]) - fi - AC_PATH_PROG(XSLTPROC, xsltproc) - if test -z "$XSLTPROC"; then - AC_MSG_ERROR([--enable-introspection requires xsltproc]) - fi - - have_introspection=yes - if test "$enable_gtk_doc" = "yes"; then - build_docs=yes - fi -else - if test "$enable_gtk_doc" = "yes"; then - # large parts of the documentation require introspection/pygobject to extract - # the documentation out of the source files. You cannot enable gtk-doc without alone. - AC_MSG_ERROR(["--enable-gtk-doc requires --enable-introspection"]) - fi - have_introspection=no -fi - -# check for pregenerated manpages and documentation to be installed -use_pregen_docs=no -if test "$build_docs" != "yes" -a \ - -f "$srcdir"/man/NetworkManager-dispatcher.8 -a \ - -f "$srcdir"/man/NetworkManager-wait-online.service.8 -a \ - -f "$srcdir"/man/NetworkManager.8 -a \ - -f "$srcdir"/man/NetworkManager.conf.5 -a \ - -f "$srcdir"/man/nm-online.1 -a \ - -f "$srcdir"/man/nmcli-examples.7 -a \ - -f "$srcdir"/man/nmcli.1 -a \ - -f "$srcdir"/man/nmtui.1 -a \ - \ - -f "$srcdir"/man/nm-openvswitch.7 -a \ - -f "$srcdir"/man/nm-cloud-setup.8 -a \ - \ - -f "$srcdir"/man/nm-settings-dbus.5 -a \ - -f "$srcdir"/man/nm-settings-ifcfg-rh.5 -a \ - -f "$srcdir"/man/nm-settings-keyfile.5 -a \ - -f "$srcdir"/man/nm-settings-nmcli.5 -a \ - \ - -f "$srcdir"/man/nm-settings-dbus.xml -a \ - -f "$srcdir"/man/nm-settings-ifcfg-rh.xml -a \ - -f "$srcdir"/man/nm-settings-keyfile.xml -a \ - -f "$srcdir"/man/nm-settings-nmcli.xml -a \ - \ - -f "$srcdir"/docs/api/settings-spec.xml; then - use_pregen_docs=yes -fi - -AM_CONDITIONAL(BUILD_DOCS, test "$build_docs" = "yes") -AM_CONDITIONAL(HAVE_DOCS, test "$build_docs" = "yes" -o "$use_pregen_docs" = "yes") -AC_SUBST(AM_CFLAGS) - -AC_CONFIG_FILES([ -Makefile -po/Makefile.in -data/org.freedesktop.NetworkManager.policy.in -docs/api/Makefile -docs/api/version.xml -docs/libnm/Makefile -docs/libnm/version.xml -src/libnm-client-impl/libnm.pc -src/libnm-core-public/nm-version-macros.h -]) -AC_OUTPUT - -# Print build configuration -echo -echo "System paths:" -echo " prefix: $prefix" -echo " exec_prefix: $exec_prefix" -echo " sysconfdir: $sysconfdir" -echo " localstatedir: $localstatedir" -echo " runstatedir: $runstatedir" -echo " datarootdir: $datarootdir" -echo " datadir: $datadir" -echo " systemdunitdir: $with_systemdsystemunitdir" -echo " udev-dir: $with_udev_dir" -echo " nmbinary: $nmbinary" -echo " nmconfdir: $nmconfdir" -echo " nmlibdir: $nmlibdir" -echo " nmdatadir: $nmdatadir" -echo " nmstatedir: $nmstatedir" -echo " nmrundir: $nmrundir" -echo " system-ca-path: $with_system_ca_path" -echo " dbus-sys-dir: $DBUS_SYS_DIR" -echo - -echo "Platform:" -echo " session tracking: $session_tracking" -echo " suspend/resume: $with_suspend_resume" -if test "${enable_modify_system}" = "yes"; then - echo " policykit: main.auth-polkit=${enable_polkit} (permissive modify.system)" -else - echo " policykit: main.auth-polkit=${enable_polkit} (restrictive modify.system)" -fi -echo " polkit-agent-helper-1: $POLKIT_AGENT_HELPER_1_PATH" -echo " selinux: $have_selinux" -echo " systemd-journald: $have_systemd_journal (default: logging.backend=${nm_config_logging_backend_default})" -echo " hostname persist: ${hostname_persist}" -echo " libaudit: $have_libaudit (default: logging.audit=${NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT})" -echo - -echo "Features:" -echo " wext: $ac_with_wext" -echo " wifi: $enable_wifi" -echo " ppp: $enable_ppp ${PPPD_PATH} plugins:${PPPD_PLUGIN_DIR}" -echo " modemmanager-1: $with_modem_manager_1" -echo " ofono: $with_ofono" -echo " concheck: $enable_concheck" -echo " libteamdctl: $enable_teamdctl" -echo " ovs: $enable_ovs" -echo " nmcli: $build_nmcli" -echo " nmtui: $build_nmtui" -echo " nm-cloud-setup: $with_nm_cloud_setup" -echo " iwd: $ac_with_iwd" -echo " jansson: $have_jansson${JANSSON_SONAME:+ (soname: $JANSSON_SONAME)}" -echo " iptables: $IPTABLES_PATH" -echo " nft: $NFT_PATH" -echo " modprobe: $MODPROBE_PATH" -echo - -echo "Configuration plugins (main.plugins=${config_plugins_default})" -echo " ifcfg-rh: ${enable_ifcfg_rh}" -echo " default value of main.migrate-ifcfg-rh: ${nm_config_migrate_ifcfg_rh_default}" -echo " ifupdown: ${enable_ifupdown}" -echo - -echo "Handlers for /etc/resolv.conf:" -echo " resolvconf: ${with_resolvconf}" -echo " netconfig: ${with_netconfig}" -echo " config-dns-rc-manager-default: ${config_dns_rc_manager_default}" -echo - -echo "DHCP clients (default $config_dhcp_default):" -echo " dhcpcanon: $with_dhcpcanon" -echo " dhclient: $with_dhclient (deprecated)" -echo " dhcpcd: $with_dhcpcd" -echo - -echo "Miscellaneous:" -echo " have introspection: $have_introspection" -echo " build documentation and manpages: $build_docs" -echo " install pregenerated documentation and manpages: $use_pregen_docs" -echo " install and use firewalld shared zone: $enable_firewalld_zone" -echo " tests: $enable_tests" -echo " more-asserts: $more_asserts" -echo " more-logging: $enable_more_logging" -echo " more-warnings: $set_more_warnings" -echo " valgrind: $with_valgrind $with_valgrind_suppressions" -echo " code coverage: $enable_code_coverage" -echo " LTO: $enable_lto" -echo " linker garbage collection: $enable_ld_gc" -echo " crypto: $with_crypto (have-gnutls: $have_crypto_gnutls, have-nss: $have_crypto_nss)" -echo " sanitizers: $sanitizers" -echo " Mozilla Public Suffix List: $with_libpsl" -echo " eBPF: $have_ebpf" -echo " readline: $with_readline" -echo " python: $PYTHON" -echo diff --git a/docs/api/Makefile.am b/docs/api/Makefile.am deleted file mode 100644 index 069fd63959..0000000000 --- a/docs/api/Makefile.am +++ /dev/null @@ -1,140 +0,0 @@ -AUTOMAKE_OPTIONS = 1.7 - -XSLTPROC = xsltproc --xinclude --nonet -XMLS = $(wildcard $(top_srcdir)/introspection/nm-*.xml) -GENERATED_FILES = - -if BUILD_DOCS -GENERATED_FILES += settings-spec.xml -endif - -# The name of the module. -DOC_MODULE=NetworkManager - -# The top-level SGML file. -DOC_MAIN_SGML_FILE=network-manager-docs.xml - -DOC_SOURCE_DIR=$(srcdir) - -# Extra options to supply to gtkdoc-mkdb -MKDB_OPTIONS=--sgml-mode --output-format=xml - -# Extra options to supply to gtkdoc-mktmpl -MKTMPL_OPTIONS= - -# Extra options to supply to gtkdoc-mkhtml -MKHTML_OPTIONS=--path="$(abs_srcdir)" - -# Files to be included in $(DOC_MAIN_SGML_FILE) -content_files = \ - $(GENERATED_FILES) \ - dbus-org.freedesktop.NetworkManager.AccessPoint.xml \ - dbus-org.freedesktop.NetworkManager.AgentManager.xml \ - dbus-org.freedesktop.NetworkManager.Connection.Active.xml \ - dbus-org.freedesktop.NetworkManager.DHCP4Config.xml \ - dbus-org.freedesktop.NetworkManager.DHCP6Config.xml \ - dbus-org.freedesktop.NetworkManager.Device.Adsl.xml \ - dbus-org.freedesktop.NetworkManager.Device.Bluetooth.xml \ - dbus-org.freedesktop.NetworkManager.Device.Bond.xml \ - dbus-org.freedesktop.NetworkManager.Device.Bridge.xml \ - dbus-org.freedesktop.NetworkManager.Device.Dummy.xml \ - dbus-org.freedesktop.NetworkManager.Device.Generic.xml \ - dbus-org.freedesktop.NetworkManager.Device.Hsr.xml \ - dbus-org.freedesktop.NetworkManager.Device.IPTunnel.xml \ - dbus-org.freedesktop.NetworkManager.Device.Infiniband.xml \ - dbus-org.freedesktop.NetworkManager.Device.Loopback.xml \ - dbus-org.freedesktop.NetworkManager.Device.Macsec.xml \ - dbus-org.freedesktop.NetworkManager.Device.Macvlan.xml \ - dbus-org.freedesktop.NetworkManager.Device.Modem.xml \ - dbus-org.freedesktop.NetworkManager.Device.OlpcMesh.xml \ - dbus-org.freedesktop.NetworkManager.Device.Statistics.xml \ - dbus-org.freedesktop.NetworkManager.Device.Team.xml \ - dbus-org.freedesktop.NetworkManager.Device.Tun.xml \ - dbus-org.freedesktop.NetworkManager.Device.Veth.xml \ - dbus-org.freedesktop.NetworkManager.Device.Vlan.xml \ - dbus-org.freedesktop.NetworkManager.Device.Vxlan.xml \ - dbus-org.freedesktop.NetworkManager.Device.WifiP2P.xml \ - dbus-org.freedesktop.NetworkManager.Device.WireGuard.xml \ - dbus-org.freedesktop.NetworkManager.Device.Wired.xml \ - dbus-org.freedesktop.NetworkManager.Device.Wireless.xml \ - dbus-org.freedesktop.NetworkManager.Device.xml \ - dbus-org.freedesktop.NetworkManager.DnsManager.xml \ - dbus-org.freedesktop.NetworkManager.IP4Config.xml \ - dbus-org.freedesktop.NetworkManager.IP6Config.xml \ - dbus-org.freedesktop.NetworkManager.PPP.xml \ - dbus-org.freedesktop.NetworkManager.SecretAgent.xml \ - dbus-org.freedesktop.NetworkManager.Settings.Connection.xml \ - dbus-org.freedesktop.NetworkManager.Settings.xml \ - dbus-org.freedesktop.NetworkManager.VPN.Connection.xml \ - dbus-org.freedesktop.NetworkManager.VPN.Plugin.xml \ - dbus-org.freedesktop.NetworkManager.xml \ - $(top_builddir)/src/libnm-core-public/nm-dbus-types.xml \ - $(top_builddir)/src/libnm-core-public/nm-vpn-dbus-types.xml \ - $(top_builddir)/man/nmcli.xml \ - $(top_builddir)/man/nmtui.xml \ - $(top_builddir)/man/nm-online.xml \ - $(top_builddir)/man/nm-initrd-generator.xml \ - $(top_builddir)/man/NetworkManager.xml \ - $(top_builddir)/man/NetworkManager-dispatcher.xml \ - $(top_builddir)/man/NetworkManager.conf.xml \ - $(top_builddir)/man/NetworkManager-wait-online.service.xml \ - $(top_builddir)/man/nmcli-examples.xml \ - $(top_builddir)/man/nm-settings-dbus.xml \ - $(top_builddir)/man/nm-settings-keyfile.xml \ - $(top_builddir)/man/nm-settings-nmcli.xml \ - version.xml \ - $(NULL) - - -if WITH_OPENVSWITCH -content_files += $(top_builddir)/man/nm-openvswitch.xml -endif - -if BUILD_NM_CLOUD_SETUP -content_files += $(top_builddir)/man/nm-cloud-setup.xml -endif - -if CONFIG_PLUGIN_IFCFG_RH -content_files += $(top_builddir)/man/nm-settings-ifcfg-rh.xml -endif - -include $(top_srcdir)/gtk-doc.make - -# workaround setup-build.stamp from gtk-doc.make, which copies -# the file as read-only. That breaks later build steps, as the -# file can no longer be written. Instead, copy the file with `cp -f` -# only. -setup-build.stamp: - -$(GTK_DOC_V_SETUP)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ - files=`echo $(SETUP_FILES) $(DOC_MODULE).types`; \ - if test "x$$files" != "x" ; then \ - for file in $$files ; do \ - destdir=`dirname $(abs_builddir)/$$file`; \ - test -d "$$destdir" || mkdir -p "$$destdir"; \ - test -f $(abs_srcdir)/$$file && \ - ( cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file ; \ - chmod u+w $(abs_builddir)/$$file ) || true; \ - done; \ - fi; \ - fi - $(AM_V_at)touch setup-build.stamp - -settings-spec.xml: settings-spec.xsl $(top_builddir)/man/nm-settings-docs-dbus.xml - $(AM_V_GEN) (! test -f $@ || chmod u+w $@) && xsltproc --output $@ $^ - -EXTRA_DIST += \ - version.xml.in \ - settings-spec.xsl \ - meson.build \ - $(GENERATED_FILES) \ - $(NULL) - -CLEANFILES += \ - html/* \ - tmpl/* \ - xml/* \ - NetworkManager-overrides.txt \ - NetworkManager-sections.txt \ - NetworkManager.actions \ - settings-spec.xml \ - $(NULL) diff --git a/docs/libnm/Makefile.am b/docs/libnm/Makefile.am deleted file mode 100644 index 87ab81cc9c..0000000000 --- a/docs/libnm/Makefile.am +++ /dev/null @@ -1,117 +0,0 @@ -## Process this file with automake to produce Makefile.in -AUTOMAKE_OPTIONS = 1.6 - -check_local = - -# The name of the module -DOC_MODULE=libnm - -# The top-level SGML file. -DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml - -# The directory containing the source code. Relative to $(srcdir). -# gtk-doc will search all .c & .h files beneath here for inline comments -# documenting functions and macros. -DOC_SOURCE_DIR= \ - $(top_builddir)/src/libnm-core-public \ - $(top_srcdir)/src/libnm-core-public \ - $(top_builddir)/src/libnm-core-impl \ - $(top_srcdir)/src/libnm-core-impl \ - $(top_srcdir)/src/libnm-client-public \ - $(top_builddir)/src/libnm-client-public \ - $(top_srcdir)/src/libnm-client-impl \ - $(top_builddir)/src/libnm-client-impl \ - $(NULL) - -# Extra options to supply to gtkdoc-scan. -SCAN_OPTIONS=--rebuild-types --rebuild-sections --ignore-decorators='NM_AVAILABLE_IN_\d+_\d+|NM_DEPRECATED_IN_\d+_\d+|NM_DEPRECATED_IN_\d+_\d+_FOR\(\)' - -# Extra options to supply to gtkdoc-mkdb. -MKDB_OPTIONS=--sgml-mode --output-format=xml - -# Extra options to supply to gtkdoc-fixref. -FIXXREF_OPTIONS= - -# Used for dependencies. -HFILE_GLOB=$(top_srcdir)/src/libnm-core-public/*.h $(top_srcdir)/src/libnm-client-public/*.h -CFILE_GLOB=$(top_srcdir)/src/libnm-core-impl/*.c $(top_srcdir)/src/libnm-client-impl/*.c - -# Header files to ignore when scanning. -IGNORE_HFILES= \ - nm-dbus-helpers.h \ - nm-default-libnm.h \ - nm-device-private.h \ - nm-dhcp4-config.h \ - nm-dhcp6-config.h \ - nm-dns-manager.h \ - nm-ip4-config.h \ - nm-ip6-config.h \ - nm-libnm-utils.h \ - nm-object-private.h \ - nm-remote-connection-private.h \ - \ - nm-connection-private.h \ - nm-default-libnm-core.h \ - nm-setting-private.h \ - nm-team-utils.h \ - nm-utils-private.h \ - \ - nm-core-tests-enum-types.h \ - test-general-enums.h \ - \ - $(NULL) - -# Images to copy into HTML directory. -HTML_IMAGES = libnm.png - -# Extra XML files that are included by $(DOC_MAIN_SGML_FILE). -content_files = version.xml - -# Other files to distribute. -extra_files = libnm.png - - -# CFLAGS and LDFLAGS for compiling scan program. Only needed -# if $(DOC_MODULE).types is non-empty. -GTKDOC_CFLAGS = \ - -I$(top_builddir)/src/libnm-core-public \ - -I$(top_srcdir)/src/libnm-core-public \ - -I$(top_srcdir)/src/libnm-client-public \ - -I$(top_builddir)/src/libnm-client-public \ - -DNM_VERSION_MIN_REQUIRED=NM_VERSION_0_9_8 \ - $(GLIB_CFLAGS) \ - $(SANITIZER_EXEC_CFLAGS) - -GTKDOC_LIBS = \ - $(top_builddir)/src/libnm-client-impl/libnm.la \ - $(GLIB_LIBS) \ - $(SANITIZER_EXEC_LDFLAGS) - - -# include common portion ... -include $(top_srcdir)/gtk-doc.make - -EXTRA_DIST += \ - version.xml.in \ - meson.build \ - $(NULL) - -CLEANFILES += \ - html/* \ - tmpl/* \ - xml/* \ - libnm-overrides.txt \ - libnm-sections.txt \ - libnm.actions \ - $(NULL) - -if GTK_DOC_BUILD_HTML -check-local-gtk-doc-patch: - @if grep -q -F 'nm-setting-user' "$(top_builddir)/docs/libnm/html/index.html"; then \ - echo "WARNING: The generated documentation has issues. Patch your gtk-doc (see https://gitlab.gnome.org/GNOME/gtk-doc/merge_requests/2). Let this check fail with NMTST_CHECK_GTK_DOC=1"; \ - test "$$NMTST_CHECK_GTK_DOC" != 1; \ - fi -check_local += check-local-gtk-doc-patch -endif - -check-local: $(check_local) diff --git a/m4/attributes.m4 b/m4/attributes.m4 deleted file mode 100644 index 7f785afa6b..0000000000 --- a/m4/attributes.m4 +++ /dev/null @@ -1,290 +0,0 @@ -dnl Macros to check the presence of generic (non-typed) symbols. -dnl Copyright (c) 2006-2008 Diego Pettenò -dnl Copyright (c) 2006-2008 xine project -dnl Copyright (c) 2012 Lucas De Marchi -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program. -dnl -dnl As a special exception, the copyright owners of the -dnl macro gives unlimited permission to copy, distribute and modify the -dnl configure scripts that are the output of Autoconf when processing the -dnl Macro. You need not follow the terms of the GNU General Public -dnl License when using or distributing such scripts, even though portions -dnl of the text of the Macro appear in them. The GNU General Public -dnl License (GPL) does govern all other use of the material that -dnl constitutes the Autoconf Macro. -dnl -dnl This special exception to the GPL applies to versions of the -dnl Autoconf Macro released by this project. When you make and -dnl distribute a modified version of the Autoconf Macro, you may extend -dnl this special exception to the GPL to apply to your modified version as -dnl well. - -dnl Check if FLAG in ENV-VAR is supported by compiler and append it -dnl to WHERE-TO-APPEND variable. Note that we invert -Wno-* checks to -dnl -W* as gcc cannot test for negated warnings. If a C snippet is passed, -dnl use it, otherwise use a simple main() definition that just returns 0. -dnl CC_CHECK_FLAG_APPEND([WHERE-TO-APPEND], [ENV-VAR], [FLAG], [C-SNIPPET]) - -AC_DEFUN([CC_CHECK_FLAG_APPEND], [ - AC_CACHE_CHECK([if $CC supports flag $3 in envvar $2], - AS_TR_SH([cc_cv_$2_$3]), - [eval "AS_TR_SH([cc_save_$2])='${$2}'" - eval "AS_TR_SH([$2])='${cc_save_$2} -Werror `echo "$3" | sed 's/^-Wno-/-W/'`'" - AC_LINK_IFELSE([AC_LANG_SOURCE(ifelse([$4], [], - [int main(void) { return 0; } ], - [$4]))], - [eval "AS_TR_SH([cc_cv_$2_$3])='yes'"], - [eval "AS_TR_SH([cc_cv_$2_$3])='no'"]) - eval "AS_TR_SH([$2])='$cc_save_$2'"]) - - AS_IF([eval test x$]AS_TR_SH([cc_cv_$2_$3])[ = xyes], - [eval "$1='${$1} $3'"]) -]) - -dnl CC_CHECK_FLAGS_APPEND([WHERE-TO-APPEND], [ENV-VAR], [FLAG1 FLAG2], [C-SNIPPET]) -AC_DEFUN([CC_CHECK_FLAGS_APPEND], [ - for flag in [$3]; do - CC_CHECK_FLAG_APPEND([$1], [$2], $flag, [$4]) - done -]) - -dnl Check if the flag is supported by linker (cacheable) -dnl CC_CHECK_LDFLAGS([FLAG], [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND]) - -AC_DEFUN([CC_CHECK_LDFLAGS], [ - AC_CACHE_CHECK([if $CC supports $1 flag], - AS_TR_SH([cc_cv_ldflags_$1]), - [ac_save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $1" - AC_LINK_IFELSE([int main() { return 1; }], - [eval "AS_TR_SH([cc_cv_ldflags_$1])='yes'"], - [eval "AS_TR_SH([cc_cv_ldflags_$1])="]) - LDFLAGS="$ac_save_LDFLAGS" - ]) - - AS_IF([eval test x$]AS_TR_SH([cc_cv_ldflags_$1])[ = xyes], - [$2], [$3]) -]) - -dnl define the LDFLAGS_NOUNDEFINED variable with the correct value for -dnl the current linker to avoid undefined references in a shared object. -AC_DEFUN([CC_NOUNDEFINED], [ - dnl We check $host for which systems to enable this for. - AC_REQUIRE([AC_CANONICAL_HOST]) - - case $host in - dnl FreeBSD (et al.) does not complete linking for shared objects when pthreads - dnl are requested, as different implementations are present; to avoid problems - dnl use -Wl,-z,defs only for those platform not behaving this way. - *-freebsd* | *-openbsd*) ;; - *) - dnl First of all check for the --no-undefined variant of GNU ld. This allows - dnl for a much more readable command line, so that people can understand what - dnl it does without going to look for what the heck -z defs does. - for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do - CC_CHECK_LDFLAGS([$possible_flags], [LDFLAGS_NOUNDEFINED="$possible_flags"]) - break - done - ;; - esac - - AC_SUBST([LDFLAGS_NOUNDEFINED]) -]) - -dnl Check for a -Werror flag or equivalent. -Werror is the GCC -dnl and ICC flag that tells the compiler to treat all the warnings -dnl as fatal. We usually need this option to make sure that some -dnl constructs (like attributes) are not simply ignored. -dnl -dnl Other compilers don't support -Werror per se, but they support -dnl an equivalent flag: -dnl - Sun Studio compiler supports -errwarn=%all -AC_DEFUN([CC_CHECK_WERROR], [ - AC_CACHE_CHECK( - [for $CC way to treat warnings as errors], - [cc_cv_werror], - [CC_CHECK_CFLAGS_SILENT([-Werror], [cc_cv_werror=-Werror], - [CC_CHECK_CFLAGS_SILENT([-errwarn=%all], [cc_cv_werror=-errwarn=%all])]) - ]) -]) - -AC_DEFUN([CC_CHECK_ATTRIBUTE], [ - AC_REQUIRE([CC_CHECK_WERROR]) - AC_CACHE_CHECK([if $CC supports __attribute__(( ifelse([$2], , [$1], [$2]) ))], - AS_TR_SH([cc_cv_attribute_$1]), - [ac_save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $cc_cv_werror" - AC_COMPILE_IFELSE([AC_LANG_SOURCE([$3])], - [eval "AS_TR_SH([cc_cv_attribute_$1])='yes'"], - [eval "AS_TR_SH([cc_cv_attribute_$1])='no'"]) - CFLAGS="$ac_save_CFLAGS" - ]) - - AS_IF([eval test x$]AS_TR_SH([cc_cv_attribute_$1])[ = xyes], - [AC_DEFINE( - AS_TR_CPP([SUPPORT_ATTRIBUTE_$1]), 1, - [Define this if the compiler supports __attribute__(( ifelse([$2], , [$1], [$2]) ))] - ) - $4], - [$5]) -]) - -AC_DEFUN([CC_ATTRIBUTE_CONSTRUCTOR], [ - CC_CHECK_ATTRIBUTE( - [constructor],, - [void __attribute__((constructor)) ctor() { int a; }], - [$1], [$2]) -]) - -AC_DEFUN([CC_ATTRIBUTE_FORMAT], [ - CC_CHECK_ATTRIBUTE( - [format], [format(printf, n, n)], - [void __attribute__((format(printf, 1, 2))) printflike(const char *fmt, ...) { fmt = (void *)0; }], - [$1], [$2]) -]) - -AC_DEFUN([CC_ATTRIBUTE_FORMAT_ARG], [ - CC_CHECK_ATTRIBUTE( - [format_arg], [format_arg(printf)], - [char *__attribute__((format_arg(1))) gettextlike(const char *fmt) { fmt = (void *)0; }], - [$1], [$2]) -]) - -AC_DEFUN([CC_ATTRIBUTE_VISIBILITY], [ - CC_CHECK_ATTRIBUTE( - [visibility_$1], [visibility("$1")], - [void __attribute__((visibility("$1"))) $1_function() { }], - [$2], [$3]) -]) - -AC_DEFUN([CC_ATTRIBUTE_NONNULL], [ - CC_CHECK_ATTRIBUTE( - [nonnull], [nonnull()], - [void __attribute__((nonnull())) some_function(void *foo, void *bar) { foo = (void*)0; bar = (void*)0; }], - [$1], [$2]) -]) - -AC_DEFUN([CC_ATTRIBUTE_UNUSED], [ - CC_CHECK_ATTRIBUTE( - [unused], , - [void some_function(void *foo, __attribute__((unused)) void *bar);], - [$1], [$2]) -]) - -AC_DEFUN([CC_ATTRIBUTE_SENTINEL], [ - CC_CHECK_ATTRIBUTE( - [sentinel], , - [void some_function(void *foo, ...) __attribute__((sentinel));], - [$1], [$2]) -]) - -AC_DEFUN([CC_ATTRIBUTE_DEPRECATED], [ - CC_CHECK_ATTRIBUTE( - [deprecated], , - [void some_function(void *foo, ...) __attribute__((deprecated));], - [$1], [$2]) -]) - -AC_DEFUN([CC_ATTRIBUTE_ALIAS], [ - CC_CHECK_ATTRIBUTE( - [alias], [weak, alias], - [void other_function(void *foo) { } - void some_function(void *foo) __attribute__((weak, alias("other_function")));], - [$1], [$2]) -]) - -AC_DEFUN([CC_ATTRIBUTE_MALLOC], [ - CC_CHECK_ATTRIBUTE( - [malloc], , - [void * __attribute__((malloc)) my_alloc(int n);], - [$1], [$2]) -]) - -AC_DEFUN([CC_ATTRIBUTE_PACKED], [ - CC_CHECK_ATTRIBUTE( - [packed], , - [struct astructure { char a; int b; long c; void *d; } __attribute__((packed));], - [$1], [$2]) -]) - -AC_DEFUN([CC_ATTRIBUTE_CONST], [ - CC_CHECK_ATTRIBUTE( - [const], , - [int __attribute__((const)) twopow(int n) { return 1 << n; } ], - [$1], [$2]) -]) - -AC_DEFUN([CC_FLAG_VISIBILITY], [ - AC_REQUIRE([CC_CHECK_WERROR]) - AC_CACHE_CHECK([if $CC supports -fvisibility=hidden], - [cc_cv_flag_visibility], - [cc_flag_visibility_save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $cc_cv_werror" - CC_CHECK_CFLAGS_SILENT([-fvisibility=hidden], - cc_cv_flag_visibility='yes', - cc_cv_flag_visibility='no') - CFLAGS="$cc_flag_visibility_save_CFLAGS"]) - - AS_IF([test "x$cc_cv_flag_visibility" = "xyes"], - [AC_DEFINE([SUPPORT_FLAG_VISIBILITY], 1, - [Define this if the compiler supports the -fvisibility flag]) - $1], - [$2]) -]) - -AC_DEFUN([CC_FUNC_EXPECT], [ - AC_REQUIRE([CC_CHECK_WERROR]) - AC_CACHE_CHECK([if compiler has __builtin_expect function], - [cc_cv_func_expect], - [ac_save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $cc_cv_werror" - AC_COMPILE_IFELSE([AC_LANG_SOURCE( - [int some_function() { - int a = 3; - return (int)__builtin_expect(a, 3); - }])], - [cc_cv_func_expect=yes], - [cc_cv_func_expect=no]) - CFLAGS="$ac_save_CFLAGS" - ]) - - AS_IF([test "x$cc_cv_func_expect" = "xyes"], - [AC_DEFINE([SUPPORT__BUILTIN_EXPECT], 1, - [Define this if the compiler supports __builtin_expect() function]) - $1], - [$2]) -]) - -AC_DEFUN([CC_ATTRIBUTE_ALIGNED], [ - AC_REQUIRE([CC_CHECK_WERROR]) - AC_CACHE_CHECK([highest __attribute__ ((aligned ())) supported], - [cc_cv_attribute_aligned], - [ac_save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $cc_cv_werror" - for cc_attribute_align_try in 64 32 16 8 4 2; do - AC_COMPILE_IFELSE([AC_LANG_SOURCE([ - int main() { - static char c __attribute__ ((aligned($cc_attribute_align_try))) = 0; - return c; - }])], [cc_cv_attribute_aligned=$cc_attribute_align_try; break]) - done - CFLAGS="$ac_save_CFLAGS" - ]) - - if test "x$cc_cv_attribute_aligned" != "x"; then - AC_DEFINE_UNQUOTED([ATTRIBUTE_ALIGNED_MAX], [$cc_cv_attribute_aligned], - [Define the highest alignment supported]) - fi -]) diff --git a/m4/ax_lib_readline.m4 b/m4/ax_lib_readline.m4 deleted file mode 100644 index bbe42e7460..0000000000 --- a/m4/ax_lib_readline.m4 +++ /dev/null @@ -1,158 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_lib_readline.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_LIB_READLINE -# -# DESCRIPTION -# -# Searches for a readline compatible library. If found, defines -# `HAVE_LIBREADLINE'. If the found library has the `add_history' function, -# sets also `HAVE_READLINE_HISTORY'. Also checks for the locations of the -# necessary include files and sets `HAVE_READLINE_H' or -# `HAVE_READLINE_READLINE_H' and `HAVE_READLINE_HISTORY_H' or -# 'HAVE_HISTORY_H' if the corresponding include files exists. -# -# The libraries that may be readline compatible are `libedit', -# `libeditline' and `libreadline'. Sometimes we need to link a termcap -# library for readline to work, this macro tests these cases too by trying -# to link with `libtermcap', `libcurses' or `libncurses' before giving up. -# -# Here is an example of how to use the information provided by this macro -# to perform the necessary includes or declarations in a C file: -# -# #ifdef HAVE_LIBREADLINE -# # if defined(HAVE_READLINE_READLINE_H) -# # include -# # elif defined(HAVE_READLINE_H) -# # include -# # else /* !defined(HAVE_READLINE_H) */ -# extern char *readline (); -# # endif /* !defined(HAVE_READLINE_H) */ -# char *cmdline = NULL; -# #else /* !defined(HAVE_READLINE_READLINE_H) */ -# /* no readline */ -# #endif /* HAVE_LIBREADLINE */ -# -# #ifdef HAVE_READLINE_HISTORY -# # if defined(HAVE_READLINE_HISTORY_H) -# # include -# # elif defined(HAVE_HISTORY_H) -# # include -# # else /* !defined(HAVE_HISTORY_H) */ -# extern void add_history (); -# extern int write_history (); -# extern int read_history (); -# # endif /* defined(HAVE_READLINE_HISTORY_H) */ -# /* no history */ -# #endif /* HAVE_READLINE_HISTORY */ -# -# LICENSE -# -# Copyright (c) 2008 Ville Laurikari -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 8 - -AU_ALIAS([VL_LIB_READLINE], [AX_LIB_READLINE]) -AC_DEFUN([AX_LIB_READLINE], [ - - AC_ARG_WITH(readline, - AS_HELP_STRING([--with-readline=auto|libreadline|libedit|none], [Using libreadline (auto) or libedit]), - [], - [with_readline=auto]) - - if test "$with_readline" != "none"; then - - AC_CACHE_CHECK([for a readline compatible library], - ax_cv_lib_readline, [ - ORIG_LIBS="$LIBS" - - if test "$with_readline" = "libreadline"; then - search_readlines="readline" - elif test "$with_readline" = "libedit"; then - search_readlines="edit" - elif test "$with_readline" = "auto"; then - search_readlines="readline edit" - else - AC_MSG_ERROR([invalid --with-readline option. Valid options are --with-readline=auto|libreadline|libedit|none]) - fi - - for readline_lib in $search_readlines; do - # prefer ncurses since we use it for nmtui too - for termcap_lib in "" termcap curses ncurses; do - if test -z "$termcap_lib"; then - TRY_LIB="-l$readline_lib" - else - TRY_LIB="-l$readline_lib -l$termcap_lib" - fi - LIBS="$ORIG_LIBS $TRY_LIB" - AC_LINK_IFELSE([AC_LANG_CALL([], [readline])], [ax_cv_lib_readline="$TRY_LIB"]) - if test -n "$ax_cv_lib_readline"; then - break - fi - done - if test -n "$ax_cv_lib_readline"; then - if test "$with_readline" = auto; then - if test "$readline_lib" = readline; then - with_readline=libreadline - else - with_readline=libedit - fi - fi - break - fi - done - if test -z "$ax_cv_lib_readline"; then - if test "$with_readline" != auto; then - AC_MSG_ERROR([libreadline not found for --with-readline=$with_readline"]) - fi - with_readline=none - ax_cv_lib_readline="no" - fi - LIBS="$ORIG_LIBS" - ]) - - if test "$ax_cv_lib_readline" != "no"; then - READLINE_LIBS="$ax_cv_lib_readline" - AC_SUBST(READLINE_LIBS) - AC_DEFINE(HAVE_LIBREADLINE, 1, - [Define if you have a readline compatible library]) - - if test "$with_readline" = "libedit"; then - AC_DEFINE(HAVE_EDITLINE_READLINE, 1, - [Explicitly set to 1 when libedit shall be used]) - else - AC_DEFINE(HAVE_EDITLINE_READLINE, 0, - [By default the libreadline is used as readline library]) - - fi - - ORIG_LIBS="$LIBS" - LIBS="$ORIG_LIBS $ax_cv_lib_readline" - AC_CACHE_CHECK([whether readline supports history], - ax_cv_lib_readline_history, [ - ax_cv_lib_readline_history="no" - AC_LINK_IFELSE([AC_LANG_CALL([], [history_set_history_state])], - [ax_cv_lib_readline_history="yes"]) - ]) - LIBS=$ORIG_LIBS - - if test "$ax_cv_lib_readline_history" = "yes"; then - AC_DEFINE(HAVE_READLINE_HISTORY, 1, - [Define if your readline library has \`history_set_history_state']) - AC_CHECK_HEADERS(readline/history.h histedit.h) - else - AC_DEFINE(HAVE_READLINE_HISTORY, 0, - [Explicitly set to 0 when libreadline shall not be used]) - fi - fi - - fi -])dnl diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 deleted file mode 100644 index e5858e50c3..0000000000 --- a/m4/ax_pthread.m4 +++ /dev/null @@ -1,522 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_pthread.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) -# -# DESCRIPTION -# -# This macro figures out how to build C programs using POSIX threads. It -# sets the PTHREAD_LIBS output variable to the threads library and linker -# flags, and the PTHREAD_CFLAGS output variable to any special C compiler -# flags that are needed. (The user can also force certain compiler -# flags/libs to be tested by setting these environment variables.) -# -# Also sets PTHREAD_CC and PTHREAD_CXX to any special C compiler that is -# needed for multi-threaded programs (defaults to the value of CC -# respectively CXX otherwise). (This is necessary on e.g. AIX to use the -# special cc_r/CC_r compiler alias.) -# -# NOTE: You are assumed to not only compile your program with these flags, -# but also to link with them as well. For example, you might link with -# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS -# $PTHREAD_CXX $CXXFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS -# -# If you are only building threaded programs, you may wish to use these -# variables in your default LIBS, CFLAGS, and CC: -# -# LIBS="$PTHREAD_LIBS $LIBS" -# CFLAGS="$CFLAGS $PTHREAD_CFLAGS" -# CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" -# CC="$PTHREAD_CC" -# CXX="$PTHREAD_CXX" -# -# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant -# has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to -# that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX). -# -# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the -# PTHREAD_PRIO_INHERIT symbol is defined when compiling with -# PTHREAD_CFLAGS. -# -# ACTION-IF-FOUND is a list of shell commands to run if a threads library -# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it -# is not found. If ACTION-IF-FOUND is not specified, the default action -# will define HAVE_PTHREAD. -# -# Please let the authors know if this macro fails on any platform, or if -# you have any other suggestions or comments. This macro was based on work -# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help -# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by -# Alejandro Forero Cuervo to the autoconf macro repository. We are also -# grateful for the helpful feedback of numerous users. -# -# Updated for Autoconf 2.68 by Daniel Richard G. -# -# LICENSE -# -# Copyright (c) 2008 Steven G. Johnson -# Copyright (c) 2011 Daniel Richard G. -# Copyright (c) 2019 Marc Stevens -# -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation, either version 3 of the License, or (at your -# option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -# Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . -# -# As a special exception, the respective Autoconf Macro's copyright owner -# gives unlimited permission to copy, distribute and modify the configure -# scripts that are the output of Autoconf when processing the Macro. You -# need not follow the terms of the GNU General Public License when using -# or distributing such scripts, even though portions of the text of the -# Macro appear in them. The GNU General Public License (GPL) does govern -# all other use of the material that constitutes the Autoconf Macro. -# -# This special exception to the GPL applies to versions of the Autoconf -# Macro released by the Autoconf Archive. When you make and distribute a -# modified version of the Autoconf Macro, you may extend this special -# exception to the GPL to apply to your modified version as well. - -#serial 30 - -AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) -AC_DEFUN([AX_PTHREAD], [ -AC_REQUIRE([AC_CANONICAL_TARGET]) -AC_REQUIRE([AC_PROG_CC]) -AC_REQUIRE([AC_PROG_SED]) -AC_LANG_PUSH([C]) -ax_pthread_ok=no - -# We used to check for pthread.h first, but this fails if pthread.h -# requires special compiler flags (e.g. on Tru64 or Sequent). -# It gets checked for in the link test anyway. - -# First of all, check if the user has set any of the PTHREAD_LIBS, -# etcetera environment variables, and if threads linking works using -# them: -if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then - ax_pthread_save_CC="$CC" - ax_pthread_save_CFLAGS="$CFLAGS" - ax_pthread_save_LIBS="$LIBS" - AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"]) - AS_IF([test "x$PTHREAD_CXX" != "x"], [CXX="$PTHREAD_CXX"]) - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - LIBS="$PTHREAD_LIBS $LIBS" - AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS]) - AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes]) - AC_MSG_RESULT([$ax_pthread_ok]) - if test "x$ax_pthread_ok" = "xno"; then - PTHREAD_LIBS="" - PTHREAD_CFLAGS="" - fi - CC="$ax_pthread_save_CC" - CFLAGS="$ax_pthread_save_CFLAGS" - LIBS="$ax_pthread_save_LIBS" -fi - -# We must check for the threads library under a number of different -# names; the ordering is very important because some systems -# (e.g. DEC) have both -lpthread and -lpthreads, where one of the -# libraries is broken (non-POSIX). - -# Create a list of thread flags to try. Items with a "," contain both -# C compiler flags (before ",") and linker flags (after ","). Other items -# starting with a "-" are C compiler flags, and remaining items are -# library names, except for "none" which indicates that we try without -# any flags at all, and "pthread-config" which is a program returning -# the flags for the Pth emulation library. - -ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" - -# The ordering *is* (sometimes) important. Some notes on the -# individual items follow: - -# pthreads: AIX (must check this before -lpthread) -# none: in case threads are in libc; should be tried before -Kthread and -# other compiler flags to prevent continual compiler warnings -# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) -# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 -# (Note: HP C rejects this with "bad form for `-t' option") -# -pthreads: Solaris/gcc (Note: HP C also rejects) -# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it -# doesn't hurt to check since this sometimes defines pthreads and -# -D_REENTRANT too), HP C (must be checked before -lpthread, which -# is present but should not be used directly; and before -mthreads, -# because the compiler interprets this as "-mt" + "-hreads") -# -mthreads: Mingw32/gcc, Lynx/gcc -# pthread: Linux, etcetera -# --thread-safe: KAI C++ -# pthread-config: use pthread-config program (for GNU Pth library) - -case $target_os in - - freebsd*) - - # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) - # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) - - ax_pthread_flags="-kthread lthread $ax_pthread_flags" - ;; - - hpux*) - - # From the cc(1) man page: "[-mt] Sets various -D flags to enable - # multi-threading and also sets -lpthread." - - ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" - ;; - - openedition*) - - # IBM z/OS requires a feature-test macro to be defined in order to - # enable POSIX threads at all, so give the user a hint if this is - # not set. (We don't define these ourselves, as they can affect - # other portions of the system API in unpredictable ways.) - - AC_EGREP_CPP([AX_PTHREAD_ZOS_MISSING], - [ -# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) - AX_PTHREAD_ZOS_MISSING -# endif - ], - [AC_MSG_WARN([IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support.])]) - ;; - - solaris*) - - # On Solaris (at least, for some versions), libc contains stubbed - # (non-functional) versions of the pthreads routines, so link-based - # tests will erroneously succeed. (N.B.: The stubs are missing - # pthread_cleanup_push, or rather a function called by this macro, - # so we could check for that, but who knows whether they'll stub - # that too in a future libc.) So we'll check first for the - # standard Solaris way of linking pthreads (-mt -lpthread). - - ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" - ;; -esac - -# Are we compiling with Clang? - -AC_CACHE_CHECK([whether $CC is Clang], - [ax_cv_PTHREAD_CLANG], - [ax_cv_PTHREAD_CLANG=no - # Note that Autoconf sets GCC=yes for Clang as well as GCC - if test "x$GCC" = "xyes"; then - AC_EGREP_CPP([AX_PTHREAD_CC_IS_CLANG], - [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ -# if defined(__clang__) && defined(__llvm__) - AX_PTHREAD_CC_IS_CLANG -# endif - ], - [ax_cv_PTHREAD_CLANG=yes]) - fi - ]) -ax_pthread_clang="$ax_cv_PTHREAD_CLANG" - - -# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) - -# Note that for GCC and Clang -pthread generally implies -lpthread, -# except when -nostdlib is passed. -# This is problematic using libtool to build C++ shared libraries with pthread: -# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 -# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 -# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 -# To solve this, first try -pthread together with -lpthread for GCC - -AS_IF([test "x$GCC" = "xyes"], - [ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"]) - -# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first - -AS_IF([test "x$ax_pthread_clang" = "xyes"], - [ax_pthread_flags="-pthread,-lpthread -pthread"]) - - -# The presence of a feature test macro requesting re-entrant function -# definitions is, on some systems, a strong hint that pthreads support is -# correctly enabled - -case $target_os in - darwin* | hpux* | linux* | osf* | solaris*) - ax_pthread_check_macro="_REENTRANT" - ;; - - aix*) - ax_pthread_check_macro="_THREAD_SAFE" - ;; - - *) - ax_pthread_check_macro="--" - ;; -esac -AS_IF([test "x$ax_pthread_check_macro" = "x--"], - [ax_pthread_check_cond=0], - [ax_pthread_check_cond="!defined($ax_pthread_check_macro)"]) - - -if test "x$ax_pthread_ok" = "xno"; then -for ax_pthread_try_flag in $ax_pthread_flags; do - - case $ax_pthread_try_flag in - none) - AC_MSG_CHECKING([whether pthreads work without any flags]) - ;; - - *,*) - PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` - PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` - AC_MSG_CHECKING([whether pthreads work with "$PTHREAD_CFLAGS" and "$PTHREAD_LIBS"]) - ;; - - -*) - AC_MSG_CHECKING([whether pthreads work with $ax_pthread_try_flag]) - PTHREAD_CFLAGS="$ax_pthread_try_flag" - ;; - - pthread-config) - AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no]) - AS_IF([test "x$ax_pthread_config" = "xno"], [continue]) - PTHREAD_CFLAGS="`pthread-config --cflags`" - PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" - ;; - - *) - AC_MSG_CHECKING([for the pthreads library -l$ax_pthread_try_flag]) - PTHREAD_LIBS="-l$ax_pthread_try_flag" - ;; - esac - - ax_pthread_save_CFLAGS="$CFLAGS" - ax_pthread_save_LIBS="$LIBS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - LIBS="$PTHREAD_LIBS $LIBS" - - # Check for various functions. We must include pthread.h, - # since some functions may be macros. (On the Sequent, we - # need a special flag -Kthread to make this header compile.) - # We check for pthread_join because it is in -lpthread on IRIX - # while pthread_create is in libc. We check for pthread_attr_init - # due to DEC craziness with -lpthreads. We check for - # pthread_cleanup_push because it is one of the few pthread - # functions on Solaris that doesn't have a non-functional libc stub. - # We try pthread_create on general principles. - - AC_LINK_IFELSE([AC_LANG_PROGRAM([#include -# if $ax_pthread_check_cond -# error "$ax_pthread_check_macro must be defined" -# endif - static void *some_global = NULL; - static void routine(void *a) - { - /* To avoid any unused-parameter or - unused-but-set-parameter warning. */ - some_global = a; - } - static void *start_routine(void *a) { return a; }], - [pthread_t th; pthread_attr_t attr; - pthread_create(&th, 0, start_routine, 0); - pthread_join(th, 0); - pthread_attr_init(&attr); - pthread_cleanup_push(routine, 0); - pthread_cleanup_pop(0) /* ; */])], - [ax_pthread_ok=yes], - []) - - CFLAGS="$ax_pthread_save_CFLAGS" - LIBS="$ax_pthread_save_LIBS" - - AC_MSG_RESULT([$ax_pthread_ok]) - AS_IF([test "x$ax_pthread_ok" = "xyes"], [break]) - - PTHREAD_LIBS="" - PTHREAD_CFLAGS="" -done -fi - - -# Clang needs special handling, because older versions handle the -pthread -# option in a rather... idiosyncratic way - -if test "x$ax_pthread_clang" = "xyes"; then - - # Clang takes -pthread; it has never supported any other flag - - # (Note 1: This will need to be revisited if a system that Clang - # supports has POSIX threads in a separate library. This tends not - # to be the way of modern systems, but it's conceivable.) - - # (Note 2: On some systems, notably Darwin, -pthread is not needed - # to get POSIX threads support; the API is always present and - # active. We could reasonably leave PTHREAD_CFLAGS empty. But - # -pthread does define _REENTRANT, and while the Darwin headers - # ignore this macro, third-party headers might not.) - - # However, older versions of Clang make a point of warning the user - # that, in an invocation where only linking and no compilation is - # taking place, the -pthread option has no effect ("argument unused - # during compilation"). They expect -pthread to be passed in only - # when source code is being compiled. - # - # Problem is, this is at odds with the way Automake and most other - # C build frameworks function, which is that the same flags used in - # compilation (CFLAGS) are also used in linking. Many systems - # supported by AX_PTHREAD require exactly this for POSIX threads - # support, and in fact it is often not straightforward to specify a - # flag that is used only in the compilation phase and not in - # linking. Such a scenario is extremely rare in practice. - # - # Even though use of the -pthread flag in linking would only print - # a warning, this can be a nuisance for well-run software projects - # that build with -Werror. So if the active version of Clang has - # this misfeature, we search for an option to squash it. - - AC_CACHE_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread], - [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG], - [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown - # Create an alternate version of $ac_link that compiles and - # links in two steps (.c -> .o, .o -> exe) instead of one - # (.c -> exe), because the warning occurs only in the second - # step - ax_pthread_save_ac_link="$ac_link" - ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' - ax_pthread_link_step=`AS_ECHO(["$ac_link"]) | sed "$ax_pthread_sed"` - ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" - ax_pthread_save_CFLAGS="$CFLAGS" - for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do - AS_IF([test "x$ax_pthread_try" = "xunknown"], [break]) - CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" - ac_link="$ax_pthread_save_ac_link" - AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])], - [ac_link="$ax_pthread_2step_ac_link" - AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])], - [break]) - ]) - done - ac_link="$ax_pthread_save_ac_link" - CFLAGS="$ax_pthread_save_CFLAGS" - AS_IF([test "x$ax_pthread_try" = "x"], [ax_pthread_try=no]) - ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" - ]) - - case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in - no | unknown) ;; - *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; - esac - -fi # $ax_pthread_clang = yes - - - -# Various other checks: -if test "x$ax_pthread_ok" = "xyes"; then - ax_pthread_save_CFLAGS="$CFLAGS" - ax_pthread_save_LIBS="$LIBS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - LIBS="$PTHREAD_LIBS $LIBS" - - # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. - AC_CACHE_CHECK([for joinable pthread attribute], - [ax_cv_PTHREAD_JOINABLE_ATTR], - [ax_cv_PTHREAD_JOINABLE_ATTR=unknown - for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do - AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], - [int attr = $ax_pthread_attr; return attr /* ; */])], - [ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break], - []) - done - ]) - AS_IF([test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ - test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ - test "x$ax_pthread_joinable_attr_defined" != "xyes"], - [AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE], - [$ax_cv_PTHREAD_JOINABLE_ATTR], - [Define to necessary symbol if this constant - uses a non-standard name on your system.]) - ax_pthread_joinable_attr_defined=yes - ]) - - AC_CACHE_CHECK([whether more special flags are required for pthreads], - [ax_cv_PTHREAD_SPECIAL_FLAGS], - [ax_cv_PTHREAD_SPECIAL_FLAGS=no - case $target_os in - solaris*) - ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" - ;; - esac - ]) - AS_IF([test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ - test "x$ax_pthread_special_flags_added" != "xyes"], - [PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" - ax_pthread_special_flags_added=yes]) - - AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT], - [ax_cv_PTHREAD_PRIO_INHERIT], - [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], - [[int i = PTHREAD_PRIO_INHERIT; - return i;]])], - [ax_cv_PTHREAD_PRIO_INHERIT=yes], - [ax_cv_PTHREAD_PRIO_INHERIT=no]) - ]) - AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ - test "x$ax_pthread_prio_inherit_defined" != "xyes"], - [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.]) - ax_pthread_prio_inherit_defined=yes - ]) - - CFLAGS="$ax_pthread_save_CFLAGS" - LIBS="$ax_pthread_save_LIBS" - - # More AIX lossage: compile with *_r variant - if test "x$GCC" != "xyes"; then - case $target_os in - aix*) - AS_CASE(["x/$CC"], - [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6], - [#handle absolute path differently from PATH based program lookup - AS_CASE(["x$CC"], - [x/*], - [ - AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"]) - AS_IF([test "x${CXX}" != "x"], [AS_IF([AS_EXECUTABLE_P([${CXX}_r])],[PTHREAD_CXX="${CXX}_r"])]) - ], - [ - AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC]) - AS_IF([test "x${CXX}" != "x"], [AC_CHECK_PROGS([PTHREAD_CXX],[${CXX}_r],[$CXX])]) - ] - ) - ]) - ;; - esac - fi -fi - -test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" -test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" - -AC_SUBST([PTHREAD_LIBS]) -AC_SUBST([PTHREAD_CFLAGS]) -AC_SUBST([PTHREAD_CC]) -AC_SUBST([PTHREAD_CXX]) - -# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: -if test "x$ax_pthread_ok" = "xyes"; then - ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1]) - : -else - ax_pthread_ok=no - $2 -fi -AC_LANG_POP -])dnl AX_PTHREAD diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4 deleted file mode 100644 index 843eb7b492..0000000000 --- a/m4/compiler_options.m4 +++ /dev/null @@ -1,227 +0,0 @@ -AC_DEFUN([_NM_COMPILER_FLAG], [ - CFLAGS_SAVED="$CFLAGS" - CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror $1" - AC_MSG_CHECKING([whether $1 works as expected]) - - AC_COMPILE_IFELSE([AC_LANG_SOURCE([[]])], [ - AC_COMPILE_IFELSE([AC_LANG_SOURCE([[$2]])], [ - AC_MSG_RESULT(yes) - CFLAGS="$CFLAGS_SAVED" - $3 - ],[ - AC_MSG_RESULT(no) - CFLAGS="$CFLAGS_SAVED" - $4 - ]) - ],[ - AC_MSG_RESULT(not supported) - CFLAGS="$CFLAGS_SAVED" - ]) -]) - -dnl Check whether a particular compiler flag is supported, -dnl append it to the specified variable if the check succeeds. -dnl NM_COMPILER_FLAG([ENV-VAR], [FLAG], [ACTION-IF-SUPPORTED], [ACTION-IF-NOT-SUPPORTED]) -AC_DEFUN([NM_COMPILER_FLAG], [ - _NM_COMPILER_FLAG([$2], [], [ - eval "AS_TR_SH([$1])='$$1 $2'" - $3 - ], [$4]) -]) - -dnl Check whether a particular warning is supported. If yes, the flag -dnl is appended to [ENV-VAR]. -dnl NM_COMPILER_WARNING_FLAG([ENV-VAR], [WARNING]) -AC_DEFUN([NM_COMPILER_WARNING_FLAG], [ - dnl "-Wno-*" requires special handling, see https://gcc.gnu.org/wiki/FAQ#wnowarning. - _NM_COMPILER_FLAG([-Wall $(printf '%s' "$2" | sed -e 's/^-W\(no-\|no-error=\)/-W/')], [], [eval "AS_TR_SH([$1])='$$1 $2'"], []) -]) - -dnl Check whether a particular warning is not emitted with code provided, -dnl append an option to disable the warning to a specified variable if the check fails. -dnl Note that this always either adds -W$2 or -Wno-$2, depending on whether it's supported. -dnl NM_COMPILER_WARNING([ENV-VAR], [WARNING], [C-SNIPPET]) -AC_DEFUN([NM_COMPILER_WARNING], [ - _NM_COMPILER_FLAG([-W$2], [$3], [eval "AS_TR_SH([$1])='$$1 -W$2'"], [eval "AS_TR_SH([$1])='$$1 -Wno-$2'"]) -]) - -dnl NM_COMPILER_WARNINGS([ENV-VAR], [MORE-WARNINGS]) -AC_DEFUN([NM_COMPILER_WARNINGS], -[AC_ARG_ENABLE(more-warnings, - AS_HELP_STRING([--enable-more-warnings], [Possible values: no/yes/error]), - set_more_warnings="$enableval",set_more_warnings=$2) -AC_MSG_CHECKING(for more warnings) -if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then - AC_MSG_RESULT(yes) - - dnl This is enabled in clang by default, makes little sense, - dnl and causes the build to abort with -Werror. - CFLAGS_SAVED="$CFLAGS" - CFLAGS="$CFLAGS -Qunused-arguments" - AC_COMPILE_IFELSE([AC_LANG_SOURCE([])], eval "AS_TR_SH([$1])='$$1 -Qunused-arguments'", []) - CFLAGS="$CFLAGS_SAVED" - - dnl clang only warns about unknown warnings, unless - dnl called with "-Werror=unknown-warning-option" - dnl Test if the compiler supports that, and if it does - dnl attach it to the CFLAGS. - NM_COMPILER_WARNING([$1], [unknown-warning-option], []) - - CFLAGS_MORE_WARNINGS="-Wall" - - if test "x$enable_lto" = xyes; then - dnl With LTO and optimizations enabled, gcc 10.2.1-1.fc32 is really - dnl adamant to warn about correct uses of strncpy. Disable "-Wstringop-overflow". - _CFLAGS_MORE_WARNINGS_DISABLE_LTO="-Wno-stringop-overflow" - - dnl We want to build with "-Wmaybe-uninitialized" enabled. With LTO that - dnl can easily lead to false positives. For manual testing, disable the - dnl warning here by uncommenting the following line. - dnl _CFLAGS_MORE_WARNINGS_DISABLE_LTO="$_CFLAGS_MORE_WARNINGS_DISABLE_LTO -Wno-error=maybe-uninitialized" - else - _CFLAGS_MORE_WARNINGS_DISABLE_LTO= - fi - - if test "x$set_more_warnings" = xerror; then - CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS -Werror" - fi - - for option in \ - $_CFLAGS_MORE_WARNINGS_DISABLE_LTO \ - -Wall \ - -Wextra \ - -Wcast-align=strict \ - -Wdeclaration-after-statement \ - -Wfloat-equal \ - -Wformat-nonliteral \ - -Wformat-security \ - -Wimplicit-function-declaration \ - -Wimplicit-int \ - -Winit-self \ - -Wint-conversion \ - -Wlogical-op \ - -Wmissing-declarations \ - -Wmissing-include-dirs \ - -Wmissing-prototypes \ - -Wold-style-definition \ - -Wparentheses-equality \ - -Wpointer-arith \ - -Wshadow \ - -Wshift-negative-value \ - -Wstrict-prototypes \ - -Wtypedef-redefinition \ - -Wundef \ - -Wunknown-attributes \ - -Wvla \ - -Wno-duplicate-decl-specifier \ - -Wno-format-truncation \ - -Wno-format-y2k \ - -Wno-gnu-variable-sized-type-not-at-end \ - -Wno-missing-field-initializers \ - -Wno-pragmas \ - -Wno-sign-compare \ - -Wno-tautological-constant-out-of-range-compare \ - -Wno-unknown-pragmas \ - -Wno-unused-parameter \ - ; do - dnl GCC 4.4 does not warn when checking for -Wno-* flags (https://gcc.gnu.org/wiki/FAQ#wnowarning) - _NM_COMPILER_FLAG([-Wall $(printf '%s' "$option" | sed -e 's/^-W\(no-\|no-error=\)/-W/')], [], - [CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS $option"], []) - done - unset option - - dnl Disable warnings triggered by known compiler problems - - dnl https://bugzilla.gnome.org/show_bug.cgi?id=745821 - NM_COMPILER_WARNING([$1], [unknown-attributes], [#include ]) - - dnl https://bugzilla.gnome.org/show_bug.cgi?id=744473 - NM_COMPILER_WARNING([$1], [typedef-redefinition], [#include ]) - - dnl https://llvm.org/bugs/show_bug.cgi?id=21614 - NM_COMPILER_WARNING([$1], [array-bounds], - [#include ] - [void f () { strcmp ("something", "0"); }] - ) - - dnl https://llvm.org/bugs/show_bug.cgi?id=22949 - NM_COMPILER_WARNING([$1], [parentheses-equality], - [#include ] - [void f () { if (WIFCONTINUED(0)) return; }] - ) - - dnl systemd-dhcp's log_internal macro and our handle_warn are sometimes - dnl used in void context,u sometimes in int. Makes clang unhappy. - NM_COMPILER_WARNING([$1], [unused-value], - [#define yolo ({ (666 + 666); })] - [int f () { int i = yolo; yolo; return i; }] - ) - - dnl a new warning in gcc 8, glib 2.55 doesn't play nice yet - dnl https://bugzilla.gnome.org/show_bug.cgi?id=793272 - NM_COMPILER_WARNING([$1], [cast-function-type], - [#include ] - [typedef struct { GObject parent; } NMObject;] - [typedef struct { GObjectClass parent; } NMObjectClass;] - [static void nm_object_init (NMObject *object) { } ] - [static void nm_object_class_init (NMObjectClass *object) { }] - [G_DEFINE_TYPE (NMObject, nm_object, G_TYPE_OBJECT)] - ) - - dnl clang started supporting -Wimplicit-fallthrough, but it does not - dnl honor the code comments to suppress the warning. Disable the - dnl warning with clang. - dnl - NM_COMPILER_WARNING([$1], [implicit-fallthrough], - [int foo(int a); - int foo(int a) { - int r = 0; - switch (a) { - case 1: - r++; - /* fall-through */ - case 2: - r++; - break; - } - return r; - }] - ) - - eval "AS_TR_SH([$1])='$CFLAGS_MORE_WARNINGS $$1'" -else - AC_MSG_RESULT(no) -fi -]) - -AC_DEFUN([NM_LTO], -[AC_ARG_ENABLE(lto, AS_HELP_STRING([--enable-lto], [Enable Link Time Optimization for smaller size [default=no]])) -if (test "${enable_lto}" = "yes"); then - CC_CHECK_FLAG_APPEND([lto_flags], [CFLAGS], [-flto -flto-partition=none]) - if (test -n "${lto_flags}"); then - CFLAGS="-flto -flto-partition=none $CFLAGS" - else - AC_MSG_ERROR([Link Time Optimization -flto is not supported.]) - fi -else - enable_lto='no' -fi -]) - -AC_DEFUN([NM_LD_GC], -[AC_ARG_ENABLE(ld-gc, AS_HELP_STRING([--enable-ld-gc], [Enable garbage collection of unused symbols on linking [default=auto]])) -if (test "${enable_ld_gc}" != "no"); then - CC_CHECK_FLAG_APPEND([ld_gc_flags], [CFLAGS], [-fdata-sections -ffunction-sections -Wl,--gc-sections]) - if (test -n "${ld_gc_flags}"); then - enable_ld_gc="yes" - CFLAGS="$ld_gc_flags $CFLAGS" - else - if (test "${enable_ld_gc}" = "yes"); then - AC_MSG_ERROR([Unused symbol eviction requested but not supported.]) - else - enable_ld_gc="no" - fi - fi -fi -]) - diff --git a/m4/git-sha-record.m4 b/m4/git-sha-record.m4 deleted file mode 100644 index e259b39fbd..0000000000 --- a/m4/git-sha-record.m4 +++ /dev/null @@ -1,15 +0,0 @@ -dnl GIT_SHA_RECORD($1, $2) -dnl -dnl $1: the name of the assigned variable. For example NM_GIT_SHA, -dnl NMA_GIT_SHA, LIBNL_GIT_SHA. -dnl $2: by default, a define to config.h is added. This can be -dnl suppressed by passing "no-config-h". -dnl -AC_DEFUN([GIT_SHA_RECORD], [ - m4_define([git_sha_record_v], - [m4_esyscmd([ ( [ -d ./.git/ ] && [ "$(readlink -f ./.git/)" = "$(readlink -f "$(git rev-parse --git-dir 2>/dev/null)" 2>/dev/null)" ] && git rev-parse --verify -q HEAD 2>/dev/null ) || true ])]) -$1=git_sha_record_v -if test ""$2"" != "no-config-h" ; then - AC_DEFINE_UNQUOTED($1,"$$1",[git commit id of the original source code version]) -fi -]) diff --git a/m4/gnome-code-coverage.m4 b/m4/gnome-code-coverage.m4 deleted file mode 100644 index 6c920dd58d..0000000000 --- a/m4/gnome-code-coverage.m4 +++ /dev/null @@ -1,142 +0,0 @@ -dnl GNOME_CODE_COVERAGE -dnl -dnl Defines CODE_COVERAGE_CFLAGS and CODE_COVERAGE_LDFLAGS which should be -dnl included in the CFLAGS and LIBS/LDFLAGS variables of every build target -dnl (program or library) which should be built with code coverage support. -dnl Also defines GNOME_CODE_COVERAGE_RULES which should be substituted in your -dnl Makefile; and $enable_code_coverage which can be used in subsequent -dnl configure output. -dnl -dnl Note that all optimisation flags in CFLAGS must be disabled when code -dnl coverage is enabled. -dnl -dnl Derived from Makefile.decl in GLib, originally licenced under LGPLv2.1+. -dnl This file is licenced under LGPLv2.1+. -dnl -dnl Usage example: -dnl configure.ac: -dnl GNOME_CODE_COVERAGE -dnl -dnl Makefile.am: -dnl @GNOME_CODE_COVERAGE_RULES@ -dnl my_program_LIBS = … $(CODE_COVERAGE_LDFLAGS) … -dnl my_program_CFLAGS = … $(CODE_COVERAGE_CFLAGS) … -dnl -dnl This results in a “check-code-coverage” rule being added to any Makefile.am -dnl which includes “@GNOME_CODE_COVERAGE_RULES@” (assuming the module has been -dnl configured with --enable-code-coverage). Running `make check-code-coverage` -dnl in that directory will run the module’s test suite (`make check`) and build -dnl a code coverage report detailing the code which was touched, then print the -dnl URI for the report. - -AC_DEFUN([GNOME_CODE_COVERAGE],[ - dnl Check for --enable-code-coverage - AC_MSG_CHECKING([whether to build with code coverage support]) - AC_ARG_ENABLE([code-coverage], AS_HELP_STRING([--enable-code-coverage], [Whether to enable code coverage support]),, enable_code_coverage=no) - AM_CONDITIONAL([CODE_COVERAGE_ENABLED], [test x$enable_code_coverage = xyes]) - AC_SUBST([CODE_COVERAGE_ENABLED], [$enable_code_coverage]) - AC_MSG_RESULT($enable_code_coverage) - - AS_IF([ test "$enable_code_coverage" = "yes" ], [ - dnl Check if gcc is being used - AS_IF([ test "$GCC" = "no" ], [ - AC_MSG_ERROR([not compiling with gcc, which is required for gcov code coverage]) - ]) - - AC_CHECK_PROG([LCOV], [lcov], [lcov]) - AC_CHECK_PROG([GENHTML], [genhtml], [genhtml]) - - AS_IF([ test -z "$LCOV" ], [ - AC_MSG_ERROR([lcov is needed to enable code coverage reporting]) - ]) - - AS_IF([ test -z "$GENHTML" ], [ - AC_MSG_ERROR([Could not find genhtml from the lcov package]) - ]) - - dnl Build the code coverage flags - CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" - CODE_COVERAGE_LDFLAGS="-lgcov" - - AC_SUBST([CODE_COVERAGE_CFLAGS]) - AC_SUBST([CODE_COVERAGE_LDFLAGS]) - ]) - -GNOME_CODE_COVERAGE_RULES=' -# Code coverage -# -# Optional: -# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting. -# (Default: $(top_builddir)) -# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated -# by lcov for code coverage. (Default: -# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info) -# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage -# reports to be created. (Default: -# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage) -# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance. -# (Default: empty) -# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml -# instance. (Default: empty) -# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore -# -# The generated report will be titled using the $(PACKAGE_NAME) and -# $(PACKAGE_VERSION). In order to add the current git hash to the title, -# use the git-version-gen script, available online. - -# Optional variables -CODE_COVERAGE_DIRECTORY ?= $(top_builddir) -CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info -CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage -CODE_COVERAGE_LCOV_OPTIONS ?= -CODE_COVERAGE_GENHTML_OPTIONS ?= -CODE_COVERAGE_IGNORE_PATTERN ?= - -code_coverage_quiet = $(code_coverage_quiet_$(V)) -code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY)) -code_coverage_quiet_0 = --quiet - -# Use recursive makes in order to ignore errors during check -check-code-coverage: -ifeq ($(CODE_COVERAGE_ENABLED),yes) - -$(MAKE) $(AM_MAKEFLAGS) -k check - $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture -else - @echo "Need to reconfigure with --enable-code-coverage" -endif - -# Capture code coverage data -code-coverage-capture: code-coverage-capture-hook -ifeq ($(CODE_COVERAGE_ENABLED),yes) - $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS) - $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" - -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp - LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS) - @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html" -else - @echo "Need to reconfigure with --enable-code-coverage" -endif - -# Hook rule executed before code-coverage-capture, overridable by the user -code-coverage-capture-hook: - -ifeq ($(CODE_COVERAGE_ENABLED),yes) -clean: code-coverage-clean -code-coverage-clean: - -$(LCOV) --directory $(top_builddir) -z - -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY) - -find . -name "*.gcda" -o -name "*.gcov" -delete -endif - -GITIGNOREFILES ?= -GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY) - -DISTCHECK_CONFIGURE_FLAGS ?= -DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage - -.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean -' - - AC_SUBST([GNOME_CODE_COVERAGE_RULES]) - m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([GNOME_CODE_COVERAGE_RULES])]) -]) diff --git a/m4/introspection.m4 b/m4/introspection.m4 deleted file mode 100644 index b3c2844e99..0000000000 --- a/m4/introspection.m4 +++ /dev/null @@ -1,92 +0,0 @@ -dnl Copyright 2009 Johan Dahlin -dnl -dnl This file is free software; the author(s) gives unlimited -dnl permission to copy and/or distribute it, with or without -dnl modifications, as long as this notice is preserved. -dnl - -# serial 1 - -m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL], -[ - AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first - AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first - AC_BEFORE([LT_INIT],[$0])dnl setup libtool first - - dnl enable/disable introspection - m4_if([$2], [require], - [dnl - enable_introspection=yes - ],[dnl - AC_ARG_ENABLE(introspection, - AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], - [Enable introspection for this build]),, - [enable_introspection=auto]) - ])dnl - - INTROSPECTION_SCANNER= - INTROSPECTION_COMPILER= - INTROSPECTION_GENERATE= - INTROSPECTION_GIRDIR= - INTROSPECTION_TYPELIBDIR= - - if test "x$enable_introspection" = "xno"; then - found_introspection="no" - else - PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], [ - INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` - INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` - INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` - INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` - INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" - INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` - INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` - INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection - - AC_MSG_CHECKING([if $INTROSPECTION_SCANNER works]) - if CFLAGS="${CFLAGS} -Wno-error" "$INTROSPECTION_SCANNER" --namespace=test --library=c /dev/null --output /dev/null >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then - found_introspection=yes - else - found_introspection="no (compiler failure -- check config.log)" - fi - AC_MSG_RESULT([$found_introspection]) - ], [found_introspection="no (not installed)"]) - - if test "x$enable_introspection" = "xyes"; then - if test "x$found_introspection" != "xyes"; then - AC_MSG_ERROR([introspection enabled but can't be used]) - fi - elif test "x$enable_introspection" != "xauto"; then - AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@]) - fi - fi - - AC_SUBST(INTROSPECTION_SCANNER, 'CFLAGS="${CFLAGS} -Wno-error" '"$INTROSPECTION_SCANNER") - AC_SUBST(INTROSPECTION_COMPILER) - AC_SUBST(INTROSPECTION_GENERATE) - AC_SUBST(INTROSPECTION_GIRDIR) - AC_SUBST(INTROSPECTION_TYPELIBDIR) - AC_SUBST(INTROSPECTION_CFLAGS) - AC_SUBST(INTROSPECTION_LIBS) - AC_SUBST(INTROSPECTION_MAKEFILE) - - AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes") -]) - - -dnl Usage: -dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version]) - -AC_DEFUN([GOBJECT_INTROSPECTION_CHECK], -[ - _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1]) -]) - -dnl Usage: -dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version]) - - -AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE], -[ - _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require]) -]) diff --git a/m4/vapigen.m4 b/m4/vapigen.m4 deleted file mode 100644 index a2055fe1b0..0000000000 --- a/m4/vapigen.m4 +++ /dev/null @@ -1,87 +0,0 @@ -dnl vala.m4 -dnl -dnl Copyright 2012 Evan Nemerson -dnl -dnl This library is free software; you can redistribute it and/or -dnl modify it under the terms of the GNU Lesser General Public -dnl License as published by the Free Software Foundation; either -dnl version 2.1 of the License, or (at your option) any later version. -dnl -dnl This library is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl Lesser General Public License for more details. -dnl -dnl You should have received a copy of the GNU Lesser General Public -dnl License along with this library. - -# VAPIGEN_CHECK([VERSION], [API_VERSION], [FOUND-INTROSPECTION]) -# -------------------------------------- -# Check that vapigen existence and version -# -# See http://live.gnome.org/Vala/UpstreamGuide for detailed documentation -AC_DEFUN([VAPIGEN_CHECK], -[ - AC_BEFORE([GOBJECT_INTROSPECTION_CHECK],[$0]) - AC_BEFORE([GOBJECT_INTROSPECTION_REQUIRE],[$0]) - - AC_ARG_ENABLE([vala], - AS_HELP_STRING([--enable-vala[=@<:@no/auto/yes@:>@]], - [build Vala bindings [default=auto]]),, - [enable_vala=auto]) - - AS_CASE([$enable_vala], [no], [], - [yes], [ - AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [ - AC_MSG_ERROR([Vala bindings require GObject Introspection]) - ]) - ], [auto], [ - AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [ - enable_vala=no - ]) - ], [ - AC_MSG_ERROR([Invalid argument passed to --enable-vala, should be one of @<:@no/auto/yes@:>@]) - ]) - - AS_IF([test "x$2" = "x"], [ - vapigen_pkg_name=vapigen - ], [ - vapigen_pkg_name=vapigen-$2 - ]) - AS_IF([test "x$1" = "x"], [ - vapigen_pkg="$vapigen_pkg_name" - ], [ - vapigen_pkg="$vapigen_pkg_name >= $1" - ]) - - PKG_PROG_PKG_CONFIG - - PKG_CHECK_EXISTS([$vapigen_pkg], [ - AS_IF([test "$enable_vala" = "auto"], [ - enable_vala=yes - ]) - ], [ - AS_CASE([$enable_vala], [yes], [ - AC_MSG_ERROR([$vapigen_pkg not found]) - ], [auto], [ - enable_vala=no - ]) - ]) - - AS_CASE([$enable_vala], - [yes], [ - VAPIGEN=`$PKG_CONFIG --variable=vapigen vapigen` - VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir vapigen`/vala/Makefile.vapigen - AS_IF([test "x$2" = "x"], [ - VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir vapigen` - ], [ - VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned vapigen` - ]) - ]) - - AC_SUBST([VAPIGEN]) - AC_SUBST([VAPIGEN_VAPIDIR]) - AC_SUBST([VAPIGEN_MAKEFILE]) - - AM_CONDITIONAL(ENABLE_VAPIGEN, test "x$enable_vala" = "xyes") -]) From 4db1829bc7d6a3a86b5b85a913545f68d943318d Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Thu, 22 Aug 2024 13:53:58 +0200 Subject: [PATCH 7/9] all: remove misc mentions of autotools in docs --- .gitlab-ci/README.md | 4 +- CONTRIBUTING.md | 5 +- MAINTAINERS.md | 4 +- contrib/fedora/rpm/build_clean.sh | 4 +- contrib/fedora/rpm/configure-for-system.sh | 4 +- meson.build | 7 ++- src/tests/client/test-client.py | 14 ++---- tools/nm-guest-data/etc-motd-container.in | 56 +--------------------- tools/nm-guest-data/etc-motd-vm.in | 56 +--------------------- tools/nm-in-container | 2 +- tools/nm-in-vm | 2 +- 11 files changed, 24 insertions(+), 134 deletions(-) diff --git a/.gitlab-ci/README.md b/.gitlab-ci/README.md index 5619a41898..5214f7bccd 100644 --- a/.gitlab-ci/README.md +++ b/.gitlab-ci/README.md @@ -19,8 +19,8 @@ Regenerate the yml by running `ci-fairy generate-template`. There are also tests for checking that the yml is correct: 1) run `tools/check-gitlab-ci.sh` -2) run `make check-local-gitlab-ci`, which runs 1). This also - runs as part of `make check`. +2) run `meson test check-local-gitlab-ci`, which runs 1). This also + runs as part of `meson test`. In both cases, the test is skipped if `ci-fairy` is not in the path. Install the correct `ci-fairy` version. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 215298e16b..44d4a3581c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -256,14 +256,13 @@ maintained by the upstream maintainers. There you find builds of latest `main` a Unit Tests ---------- -We have plenty of unit tests. Run them with `make check` or -`meson test -C build`. +We have plenty of unit tests. Run them with `meson test -C build`. Note that some files in the source tree are both generated and commited to git. That means, certain changes to the code also affect these generated files. The unit test fail in that case, to indicate that the generated files no longer match what is commited to git. -You can also automatically regenerate the files by running `NM_TEST_REGENERATE=1 make check`. +You can also automatically regenerate the files by running `NM_TEST_REGENERATE=1 meson test`. Note that test-client requires working translation. See the [comment](src/tests/client/test-client.py#L14) for how to configure it. diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 5a75ee81fe..9e472ec149 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -252,10 +252,10 @@ Versioning scheme (version numbers are called MAJOR.MINOR.MICRO): When doing a release, follow this process: 1. Ensure that `NEWS` file is up to date. -2. Increment the version in `configure.ac`, commit and tag the commit. Example: +2. Increment the version in `meson.build`, commit and tag the commit. Example: `git tag -s 1.2.8 -m 'Tag 1.2.8'`. 3. Ensure that you are on the right commit and create the tarball: - `git clean -fdx && ./autogen.sh && make distcheck` + `git clean -fdx && meson setup build && cd build && meson dist` 4. Upload the tarball: `scp ./*-*.tar.xz "$user@master.gnome.org:"` 5. Login to `master.gnome.org` and run `ftpadmin install`. Ensure the new tarballs show up at https://download.gnome.org/sources/ diff --git a/contrib/fedora/rpm/build_clean.sh b/contrib/fedora/rpm/build_clean.sh index 3300877f5b..deacf9217d 100755 --- a/contrib/fedora/rpm/build_clean.sh +++ b/contrib/fedora/rpm/build_clean.sh @@ -18,9 +18,9 @@ usage() { echo " -f|--force: force build, even if working directory is not clean and has local modifications" echo " -c|--clean: run \`git-clean -fdx :/\` before build" echo " -S|--srpm: only build the SRPM" - echo " -g|--git: create tarball from current git HEAD (skips make dist)" + echo " -g|--git: create tarball from current git HEAD (skips meson dist)" echo " -Q|--quick: only create the distribution tarball, without running checks" - echo " -N|--no-dist: skip creating the source tarball if you already did \`make dist\`" + echo " -N|--no-dist: skip creating the source tarball if you already did \`meson dist\`" echo " -w|--with \$OPTION: pass --with \$OPTION to rpmbuild. For example --with debug" echo " -W|--without \$OPTION: pass --without \$OPTION to rpmbuild. For example --without debug" echo " -s|--snapshot TEXT: use TEXT as the snapshot version for the new package (overwrites \$NM_BUILD_SNAPSHOT environment)" diff --git a/contrib/fedora/rpm/configure-for-system.sh b/contrib/fedora/rpm/configure-for-system.sh index 5b61a18051..30471cf100 100755 --- a/contrib/fedora/rpm/configure-for-system.sh +++ b/contrib/fedora/rpm/configure-for-system.sh @@ -1,7 +1,7 @@ #!/bin/bash # Run configure/meson for NetworkManager in a way similar to how an RPM build does it. -# The effect is, that if you do `make install`, that it will overwrite the files that +# The effect is, that if you do `meson install`, that it will overwrite the files that # you'd usually get by installing the NetworkManager RPM. Also, it means you can afterwards # systemctl restart NetworkManager. @@ -33,7 +33,7 @@ usage() { echo "$ $0 [-m|--meson ] [-s|--show] [-B|--no-build] [-h|--help]" echo "" echo "Configure NetworkManager in a way that is similar to when building" - echo "RPMs of NetworkManager for Fedora/RHEL. The effect is that \`make install\`" + echo "RPMs of NetworkManager for Fedora/RHEL. The effect is that \`meson install\`" echo "will overwrite the files in /usr that you installed via the package management" echo "systemd. Also, subsequent \`systemctl restart NetworkManager\` works." echo "You don't want to do this on your real system, because it messes up your" diff --git a/meson.build b/meson.build index 5ec0f0a576..f0c1a3c076 100644 --- a/meson.build +++ b/meson.build @@ -2,10 +2,9 @@ project( 'NetworkManager', 'c', -# NOTE: When incrementing version also: -# - add corresponding NM_VERSION_x_y_z macros in -# "src/libnm-core-public/nm-version-macros.h.in" -# - update number in configure.ac +# NOTE: When incrementing version also add corresponding +# NM_VERSION_x_y_z macros in +# "src/libnm-core-public/nm-version-macros.h.in" version: '1.51.0', license: 'GPL2+', default_options: [ diff --git a/src/tests/client/test-client.py b/src/tests/client/test-client.py index 60853e6d52..df62751bc0 100755 --- a/src/tests/client/test-client.py +++ b/src/tests/client/test-client.py @@ -19,18 +19,14 @@ from __future__ import print_function # # For that, you'd setup your system correctly (see SETUP below) and then simply: # -# $ NM_TEST_REGENERATE=1 make check-local-tests-client -# # Or `NM_TEST_REGENERATE=1 make check -j 10` +# $ meson -Ddocs=true --prefix=/tmp/nm1 build +# $ ninja -C build +# $ ninja -C build install +# $ NM_TEST_REGENERATE=1 ninja -C build test # $ git diff ... ; git add ... # # The previous step regenerated the expected output. Review the changes # # and consider whether they are correct. Then commit the changes to git. # -# With meson, you can do -# $ meson -Ddocs=true --prefix=/tmp/nm1 build -# $ ninja -C build -# $ ninja -C build install -# $ NM_TEST_REGENERATE=1 ninja -C build test -# # Beware that you need to install the sources, and beware to choose a prefix that doesn't # mess up your system (see SETUP below). # @@ -52,7 +48,7 @@ from __future__ import print_function # # Ensure that the built nmcli has Polish locale working. If not, # # you probably need to first `make install` the application at the # # correct prefix. Take care to configure the build with the desired -# # prefix, like `./configure --prefix=/opt/tmp`. Usually, you want to avoid +# # prefix, like `meson setup build --prefix=/opt/tmp`. Usually, you want to avoid # # using /usr as prefix, because that might overwrite files from your # # package management system. # diff --git a/tools/nm-guest-data/etc-motd-container.in b/tools/nm-guest-data/etc-motd-container.in index 131f815c37..e0fb88d64f 100644 --- a/tools/nm-guest-data/etc-motd-container.in +++ b/tools/nm-guest-data/etc-motd-container.in @@ -15,60 +15,8 @@ so that core dumps get written to file. Afterwards, restore with from /usr/lib/sysctl.d/50-coredump.conf. -For example, configure NetworkManager with - $ ./configure \ - --enable-address-sanitizer=no \ - --enable-compile-warnings=yes \ - --enable-concheck \ - --enable-config-plugin-ibft=yes \ - --enable-gtk-doc \ - --enable-ifcfg-rh=yes \ - --enable-ifcfg-suse \ - --enable-ifnet \ - --enable-ifupdown=yes \ - --enable-introspection \ - --enable-json-validation=yes \ - --enable-maintainer-mode \ - --enable-more-logging \ - --enable-more-warnings=error \ - --enable-ovs=yes \ - --enable-polkit=yes \ - --enable-teamdctl=yes \ - --enable-undefined-sanitizer=no \ - --enable-vala=yes \ - --enable-wimax \ - --localstatedir=/var \ - --prefix=/opt/test \ - --sysconfdir=/etc \ - --with-config-dhcp-default=internal \ - --with-config-dns-rc-manager-default=auto \ - --with-consolekit=yes \ - --with-consolekit=yes \ - --with-crypto=nss \ - --with-dhclient=yes \ - --with-dhcpcanon=yes \ - --with-dhcpcd=yes \ - --with-iwd=yes \ - --with-libnm-glib=yes \ - --with-modem-manager-1 \ - --with-netconfig=/bin/nowhere/netconfig \ - --with-nm-cloud-setup=yes \ - --with-nmcli=yes \ - --with-nmtui=yes \ - --with-ofono=yes \ - --with-resolvconf=/bin/nowhere/resolvconf \ - --with-session-tracking=systemd \ - --with-suspend-resume=systemd \ - --with-systemd-logind=yes \ - --with-valgrind=yes \ - --enable-tests="${NM_BUILD_TESTS:-yes}" \ - --with-more-asserts="${NM_BUILD_MORE_ASSERTS:-1000}" \ - "${NM_CONFIGURE_OTPS[@]}" -Test with: - $ systemctl stop NetworkManager; /opt/test/sbin/NetworkManager --debug 2>&1 | tee -a /tmp/nm-log.txt - -Or better, configure with `contrib/fedora/rpm/configure-for-system.sh`, -subsequent `make && make install` will overwrite your system's NetworkManager, +Configure NetworkManager with `contrib/fedora/rpm/configure-for-system.sh`, +subsequent `meson install` will overwrite your system's NetworkManager, and you can test it with `systemctl daemon-reload ; systemctl restart NetworkManager`. Run NM-ci tests after creating eth1 with diff --git a/tools/nm-guest-data/etc-motd-vm.in b/tools/nm-guest-data/etc-motd-vm.in index 10ae1f9fc8..feb6c7a343 100644 --- a/tools/nm-guest-data/etc-motd-vm.in +++ b/tools/nm-guest-data/etc-motd-vm.in @@ -3,60 +3,8 @@ find NetworkManager bind mounted at {{BASEDIR_NM}} run `nm-env-prepare.sh setup --idx 1` to setup test interfaces -For example, configure NetworkManager with - $ ./configure \ - --enable-address-sanitizer=no \ - --enable-compile-warnings=yes \ - --enable-concheck \ - --enable-config-plugin-ibft=yes \ - --enable-gtk-doc \ - --enable-ifcfg-rh=yes \ - --enable-ifcfg-suse \ - --enable-ifnet \ - --enable-ifupdown=yes \ - --enable-introspection \ - --enable-json-validation=yes \ - --enable-maintainer-mode \ - --enable-more-logging \ - --enable-more-warnings=error \ - --enable-ovs=yes \ - --enable-polkit=yes \ - --enable-teamdctl=yes \ - --enable-undefined-sanitizer=no \ - --enable-vala=yes \ - --enable-wimax \ - --localstatedir=/var \ - --prefix=/opt/test \ - --sysconfdir=/etc \ - --with-config-dhcp-default=internal \ - --with-config-dns-rc-manager-default=auto \ - --with-consolekit=yes \ - --with-consolekit=yes \ - --with-crypto=nss \ - --with-dhclient=yes \ - --with-dhcpcanon=yes \ - --with-dhcpcd=yes \ - --with-iwd=yes \ - --with-libnm-glib=yes \ - --with-modem-manager-1 \ - --with-netconfig=/bin/nowhere/netconfig \ - --with-nm-cloud-setup=yes \ - --with-nmcli=yes \ - --with-nmtui=yes \ - --with-ofono=yes \ - --with-resolvconf=/bin/nowhere/resolvconf \ - --with-session-tracking=systemd \ - --with-suspend-resume=systemd \ - --with-systemd-logind=yes \ - --with-valgrind=yes \ - --enable-tests="${NM_BUILD_TESTS:-yes}" \ - --with-more-asserts="${NM_BUILD_MORE_ASSERTS:-1000}" \ - "${NM_CONFIGURE_OTPS[@]}" -Test with: - $ systemctl stop NetworkManager; /opt/test/sbin/NetworkManager --debug 2>&1 | tee -a /tmp/nm-log.txt - -Or better, if using Fedora, configure with `contrib/fedora/rpm/configure-for-system.sh`, -subsequent `make && make install` will overwrite your system's NetworkManager, +Configure NetworkManager with `contrib/fedora/rpm/configure-for-system.sh`, +subsequent `meson install` will overwrite your system's NetworkManager, and you can test it with `systemctl daemon-reload ; systemctl restart NetworkManager`. Run NM-ci tests after creating eth1 with diff --git a/tools/nm-in-container b/tools/nm-in-container index 755d8d502c..0e3f31da79 100755 --- a/tools/nm-in-container +++ b/tools/nm-in-container @@ -23,7 +23,7 @@ set -e # - with command "journal", additional arguments that are passed to journalctl. # # It bind mounts the current working directory inside the container. -# You can run `make install` and run tests. +# You can run `meson install` and run tests. # There is a script nm-env-prepare.sh to generate a net1 interface for testing. # # This will bind-mount the NetworkManager working tree inside the container (and symlink diff --git a/tools/nm-in-vm b/tools/nm-in-vm index 569c766c91..4d2c7a15ef 100755 --- a/tools/nm-in-vm +++ b/tools/nm-in-vm @@ -23,7 +23,7 @@ set -e # NetworkManager directories: # # The NetworkManager root directory is mounted in the VM as a filesystem share. -# You can run `make install` and run tests. +# You can run `meson install` and run tests. # # Create a symlink ./.git/NetworkManager-ci, to share the CI directory too. # From 593580feae9c21574c063f0bbd1e5eea48a031de Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Thu, 22 Aug 2024 14:39:52 +0200 Subject: [PATCH 8/9] build: remove make/autotools from required packages --- .gitlab-ci.yml | 10 +++++----- contrib/alpine/REQUIRED_PACKAGES | 2 -- contrib/debian/REQUIRED_PACKAGES | 4 ---- contrib/fedora/REQUIRED_PACKAGES | 1 - contrib/fedora/rpm/NetworkManager.spec | 1 - 5 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 981689dc55..240078b89e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,11 +60,11 @@ variables: # # This is done by running `ci-fairy generate-template` and possibly bumping # ".default_tag". - ALPINE_TAG: 'tag-ee13da0f38c7' - CENTOS_TAG: 'tag-5d3b59c9dd4b' - DEBIAN_TAG: 'tag-b274cbc4bddd' - FEDORA_TAG: 'tag-5d3b59c9dd4b' - UBUNTU_TAG: 'tag-b274cbc4bddd' + ALPINE_TAG: 'tag-759073a4a7c5' + CENTOS_TAG: 'tag-0d2843d78314' + DEBIAN_TAG: 'tag-529c288644bc' + FEDORA_TAG: 'tag-0d2843d78314' + UBUNTU_TAG: 'tag-529c288644bc' ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh' CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh' diff --git a/contrib/alpine/REQUIRED_PACKAGES b/contrib/alpine/REQUIRED_PACKAGES index f05147eb79..358214fd0f 100755 --- a/contrib/alpine/REQUIRED_PACKAGES +++ b/contrib/alpine/REQUIRED_PACKAGES @@ -7,7 +7,6 @@ apk update apk add \ 'alpine-sdk' \ 'autoconf' \ - 'automake' \ 'bash' \ 'clang' \ 'curl-dev' \ @@ -31,7 +30,6 @@ apk add \ 'libteam-dev' \ 'libtool' \ 'linux-headers' \ - 'make' \ 'meson' \ 'mobile-broadband-provider-info' \ 'modemmanager-dev' \ diff --git a/contrib/debian/REQUIRED_PACKAGES b/contrib/debian/REQUIRED_PACKAGES index 1c7186d7a4..fa73b21add 100755 --- a/contrib/debian/REQUIRED_PACKAGES +++ b/contrib/debian/REQUIRED_PACKAGES @@ -32,9 +32,6 @@ install_ignore_missing() { install \ \ - autoconf \ - automake \ - autopoint \ clang \ dbus \ dbus-x11 \ @@ -67,7 +64,6 @@ install \ libtool \ libudev-dev \ locales \ - make \ meson \ mobile-broadband-provider-info \ pkg-config \ diff --git a/contrib/fedora/REQUIRED_PACKAGES b/contrib/fedora/REQUIRED_PACKAGES index 38ca90267f..adffcd9eeb 100755 --- a/contrib/fedora/REQUIRED_PACKAGES +++ b/contrib/fedora/REQUIRED_PACKAGES @@ -69,7 +69,6 @@ install \ libselinux-devel \ libtool \ libuuid-devel \ - make \ meson \ mobile-broadband-provider-info-devel \ newt-devel \ diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec index 369d5015fb..d0f9c45f4e 100644 --- a/contrib/fedora/rpm/NetworkManager.spec +++ b/contrib/fedora/rpm/NetworkManager.spec @@ -250,7 +250,6 @@ Conflicts: NetworkManager-initscripts-ifcfg-rh <= 1:1.47.5-3 Conflicts: NetworkManager-dispatcher-routing-rules <= 1:1.47.5-3 %endif -BuildRequires: make BuildRequires: gcc BuildRequires: libtool BuildRequires: pkgconfig From 7766368278128baf1d52a1a612232157ac958e1d Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Mon, 26 Aug 2024 14:22:08 +0200 Subject: [PATCH 9/9] NEWS: mention removal of autotools --- NEWS | 1 + 1 file changed, 1 insertion(+) diff --git a/NEWS b/NEWS index 6342d70939..99c20a6758 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,7 @@ USE AT YOUR OWN RISK. NOT RECOMMENDED FOR PRODUCTION USE! * Add new ipv4.link-local=fallback to set an IPv4 link-local address when no other IPv4 is set. +* Remove support for building with Autotools ============================================= NetworkManager-1.50