summaryrefslogtreecommitdiff
path: root/configure.ac
AgeCommit message (Collapse)Author
2025-04-08configure: add -Wshadow optionMark Stapp
Start exposing variable-shadowing warnings in all builds. Signed-off-by: Mark Stapp <mjs@cisco.com>
2025-03-15tests: deal with configure overridden timestamp prec in unit testChristian Hopps
Previously if you configured a different timestamp precision then `make check` would fail as the non-default config is generated and fails test_cli config file comparison. Signed-off-by: Christian Hopps <chopps@labn.net>
2025-03-04configure.ac: fix sed failure on FreeBSDRafael Zalamena
Simplify the sed expression to make sure it works on all platforms. The previous expression failed on FreeBSD and it caused the SNMP_LIBS variable to be empty. When SNMP_LIBS is empty it will cause binaries and/or libraries to not link against the correct libraries. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2025-02-04build: FRR 10.4 development versionfrr-10.4-devJafar Al-Gharaibeh
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2025-01-13configure: Adopt for Lua 5.4Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2024-10-08build: FRR 10.3 development versionfrr-10.3-devJafar Al-Gharaibeh
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2024-08-27Merge pull request #16610 from Jafaral/no-pyRuss White
tools, ospfclient: add a config option to skip installing python scripts
2024-08-22config: fix missing case when reporting version 'configured with'Jafar Al-Gharaibeh
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2024-08-22tools, ospfclient: add a config option to skip installing python scriptsJafar Al-Gharaibeh
The new config option --disable-python-runtime allows make install to proceed without installing any of the python scripts. When installing from deb/rpm packages those are bundled as frr-pythontools, which is independent from the frr binaries and can already be skipped. I.e, this PR gives the option to skip those scripts when building/installing from sources too. Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2024-07-16build: display local state dir configurationLouis Scalbert
Configure is displaying the run state directory but not the local state directory. > FRRouting configuration > ------------------------------ > state file directory : /usr/var/run/frr > config file directory : /etc/frr Display the local state directory as well. > local state file dir : /usr/var/lib/frr > run state file dir : /usr/var/run/frr > config file directory : /etc/frr Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2024-06-12build: FRR 10.2 development versionfrr-10.2-devJafar Al-Gharaibeh
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2024-05-07Merge pull request #15885 from opensourcerouting/gcc-unrecognized-ms-anon-tagDonald Sharp
build: get rid of "unrecognized … anon-tag"
2024-05-06Merge pull request #15889 from opensourcerouting/build-libatomicDonald Sharp
build: link libatomic if available
2024-05-03build: get rid of "unrecognized … anon-tag"David Lamparter
GCC only errors out on unrecognized _positive_ `-Wsomething` flags, negative ones it ignores... but then prints a "note" about whenever an unrelated(!) warning/error occurs. This is both annoying and confusing, since we now get a lot of: ``` cc1: note: unrecognized command-line option ‘-Wno-microsoft-anon-tag’ may have been intended to silence earlier diagnostics ``` Fix by checking for the positive flag in `AC_C_FLAG` instead, which will error out, and therefore `-Wno-microsoft-anon-tag` won't be added for GCC. (It only exists on clang.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-05-02build: exclude deprecated decls from -WerrorDavid Lamparter
Other parts of the system can change (e.g. libc-ares), making things deprecated, and then our build fails for no reason inside FRR. This shouldn't be an error. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-04-30build: link libatomic if availableDavid Lamparter
It'll generally exist but be empty on systems that don't need it. (Some 32bit platforms now need it due to 64bit time_t, and the platform may not have 64bit atomic ops.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-03-15*: remove confd pluginIgor Ryzhov
ConfD is not supported anymore and its use is discouraged by developers: https://discuss.tail-f.com/t/confd-premium-no-longer-available-future-of-confd/4552/6 Remove the code and all mentions of ConfD from the documentation. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-03-09Merge pull request #15509 from donaldsharp/freebsd_cleanupsDonatas Abraitis
pimd: Cleanup inclusion of headers
2024-03-08pimd: Cleanup inclusion of headersDonald Sharp
FRR needs to properly include the FreeBSD headers for compilation on FreeBSD. I have setup v6 as well but I have not even tested it. Since I know that the form is the same I think this is ok at the moment. This is a step forward. Because of this change *clearly* no-one is even using pim on FreeBSD. <look at the MRT_XXX values to prove to yourself>. In any event this is a step in the direction of getting that working again. Signed-off-by: Donald Sharp <sharpd@freebsd.network>
2024-03-04zebra: Add fpm_listenerDonald Sharp
Add a tiny fpm_listener program to allow FRR to test the fpm. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2024-02-28Merge pull request #15446 from mjstapp/fix_config_typoDonatas Abraitis
tools: fix typo in configure script
2024-02-27tools: fix typo in configure scriptMark Stapp
Fix a small typo nit in the configure script. Signed-off-by: Mark Stapp <mjs@cisco.com>
2024-02-14Merge pull request #15288 from donaldsharp/shell_access_removalDonatas Abraitis
vtysh: Remove deprecated shell_access code
2024-02-13build: FRR 10.1 development versionfrr-10.0-devDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2024-02-11build: fix configure outputIgor Ryzhov
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-02-05vtysh: Remove deprecated shell_access codeDonald Sharp
This code has been deprecated for over a year and frankly needs to be removed from the system. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2024-01-30build: build: make mgmtd test client build conditionalIgor Ryzhov
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-28zebra, build: disable irdp by defaultIgor Ryzhov
IRDP client (rdisc) was deleted from iputils more than 2 years ago. It's time to drop IRDP, but first let's stop building and including it in the packages by default to see if anyone will be complaining. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-27build: homologize path handlingDavid Lamparter
Use consistent `e_somepath` names for expanded versions of `somepath`. Also remove all paths from `config.h` and put them into `lib/config_paths.h` - this is to make more obvious when someone is doing something probably not quite properly structured. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27lib, mgmtd: fix commit history locationDavid Lamparter
Both of these belong in `/var/lib`, not `/var/run`. Rather hilariously, the history read in `mgmt_history_read_cmt_record_index` was always failing, because it was doing a `file_exists(MGMTD_COMMIT_FILE_PATH)` check. Which is the wrong macro - it's `.../commit-%s.json`, including the unprocessed `%s`, which would never exist. I guess noone ever tried if this actually works. Cool. On the plus side, this means I don't have to implement legacy compatibility for this, since it never worked to begin with. (SQLite3 DB location is also changed in this commit since it also uses `DAEMON_DB_DIR`.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27ospf6d: fix GR & auth seqno state locationDavid Lamparter
Unfortunately, `ospf6d` is much worse than `ospfd` and `isisd` regarding its state saving, due to the existence of the auth trailer code. Again, this belongs in `/var/lib`, not `/var/run`. Merge both state files into one, and add reconciliation code for the auth seqno. I'm gonna save my comment on the fact that `ospf6_auth_seqno_nvm_delete` is not in fact used anywhere. Which is now a warning because it's `static`. Well. It probably should be used somewhere, so leave it in. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27ospfd: fix GR state locationDavid Lamparter
This belongs in `/var/lib`, not `/var/run`. Use library facility to load/save, support previous path as fallback, and do proper fsync(). Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27isisd: fix overload state locationDavid Lamparter
This belongs in `/var/lib`, not `/var/run`. Also the filename was typo'd (`isid-restart.json`). Change to proper location and fall back to previous in case it's the first restart after an FRR update from a version with the bugged path. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27lib: set up `frr_libstatedir`David Lamparter
This needs to be used for persistent state, which currently is misplaced into `/var/run` / `/run` where it gets deleted across reboots. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27build: nuke `LDPD_SOCKET`David Lamparter
This just unnecessarily complicates things by involving autoconf. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27build: nuke `ZEBRA_SERV_PATH`David Lamparter
This just unnecessarily complicates things by involving autoconf. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27build: nuke `BFDD_CONTROL_SOCKET`David Lamparter
This just unnecessarily complicates things by involving autoconf. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27lib, mgmtd: fix wrong mgmtd socket pathsDavid Lamparter
These paths were ignoring the `-N` namespacing option. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27*: rename `frr_vtydir` to `frr_runstatedir`David Lamparter
Also remove frr_init_vtydir(), just initialize to default. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27build: untangle sysconfdir & localstatedirDavid Lamparter
`--sysconfdir` should be `/etc` and `--localstatedir` should be `/var`. The package-specific subdirectory should be added by configure, not given by the user, to match established behavior by other packages. Note that `--bindir`, `--sbindir`, `--libdir` and `--libexecdir` have different established/expected behavior due to distro specific multi-arch support. That's why these are left unchanged. The reason this is getting fixed now is that we need to use `--localstatedir` for its actual value to put things in `/var/lib`. As it is now, being overloaded for `/run`, the configured `/var` path becomes inaccessible. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-27build: use AX_RECURSIVE_EVALDavid Lamparter
Replace inline expansion loop. (Also correctly handles prefix=NONE and exec_prefix=NONE inside the macro.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2024-01-09Merge pull request #15103 from LabNConsulting/chopps/oper-filterDonald Sharp
Implement full XPath 1.0 functionality
2024-01-07lib: use libyang functions if they are presentChristian Hopps
Add configure.ac tests for libyang functions, if not present supply the functionality ourselves in yang.[ch] Signed-off-by: Christian Hopps <chopps@labn.net>
2024-01-06build: require libyang 2.1.128Christian Hopps
Update building docs to reflect this as well. Signed-off-by: Christian Hopps <chopps@labn.net>
2023-12-31build: protobuf is required so update building docsChristian Hopps
- recommend using libyang 2.1.128 but accept 2.0.0 for now. - update ubuntu building doc to add GRPC section - update ubuntu reference docker builds to match grpc doc change Signed-off-by: Christian Hopps <chopps@labn.net>
2023-12-28lib: darr: add new access and str functionsChristian Hopps
- darr_last(), and darr_strdup_cap(). - strcat, strdup, strlen, strnul equivs. Signed-off-by: Christian Hopps <chopps@labn.net>
2023-11-07*: Remove APPLE #defines from buildDonald Sharp
We cannot build on apple machines at all due to our usage of some gcc extensions that will probably never see the light of day again. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-10-12build: add -Wimplicit-fallthroughIgor Ryzhov
Also: - replace all /* fallthrough */ comments with portable fallthrough; pseudo keyword to accomodate both gcc and clang - add missing break; statements as required by older versions of gcc - cleanup some code to remove unnecessary fallthrough Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2023-10-10build: FRR 9.2 development versionfrr-9.2-devDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-09-24lib: Drop deprecated enable-time-check, enable-cpu-time compile optionsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>