summaryrefslogtreecommitdiffstats
path: root/configure.ac (follow)
Commit message (Collapse)AuthorAgeFilesLines
* build: FRR 10.2 development versionfrr-10.2-devJafar Al-Gharaibeh2024-06-121-1/+1
| | | | Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
* Merge pull request #15885 from opensourcerouting/gcc-unrecognized-ms-anon-tagDonald Sharp2024-05-071-1/+10
|\ | | | | build: get rid of "unrecognized … anon-tag"
| * build: get rid of "unrecognized … anon-tag"David Lamparter2024-05-031-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge pull request #15889 from opensourcerouting/build-libatomicDonald Sharp2024-05-061-0/+2
|\ \ | | | | | | build: link libatomic if available
| * | build: link libatomic if availableDavid Lamparter2024-04-301-0/+2
| |/ | | | | | | | | | | | | | | 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>
* / build: exclude deprecated decls from -WerrorDavid Lamparter2024-05-021-0/+1
|/ | | | | | | | 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>
* *: remove confd pluginIgor Ryzhov2024-03-141-19/+0
| | | | | | | | | 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>
* Merge pull request #15509 from donaldsharp/freebsd_cleanupsDonatas Abraitis2024-03-091-0/+15
|\ | | | | pimd: Cleanup inclusion of headers
| * pimd: Cleanup inclusion of headersDonald Sharp2024-03-081-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | zebra: Add fpm_listenerDonald Sharp2024-03-041-0/+7
| | | | | | | | | | | | | | Add a tiny fpm_listener program to allow FRR to test the fpm. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* | Merge pull request #15446 from mjstapp/fix_config_typoDonatas Abraitis2024-02-281-1/+1
|\ \ | | | | | | tools: fix typo in configure script
| * | tools: fix typo in configure scriptMark Stapp2024-02-271-1/+1
| | | | | | | | | | | | | | | | | | Fix a small typo nit in the configure script. Signed-off-by: Mark Stapp <mjs@cisco.com>
* | | Merge pull request #15288 from donaldsharp/shell_access_removalDonatas Abraitis2024-02-141-6/+0
|\ \ \ | | | | | | | | vtysh: Remove deprecated shell_access code
| * | | vtysh: Remove deprecated shell_access codeDonald Sharp2024-02-051-6/+0
| |/ / | | | | | | | | | | | | | | | | | | 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>
* | | build: FRR 10.1 development versionfrr-10.0-devDonatas Abraitis2024-02-131-1/+1
| | | | | | | | | | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* | | build: fix configure outputIgor Ryzhov2024-02-111-1/+1
|/ / | | | | | | Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* | build: build: make mgmtd test client build conditionalIgor Ryzhov2024-01-301-0/+7
| | | | | | | | Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* | zebra, build: disable irdp by defaultIgor Ryzhov2024-01-281-1/+4
| | | | | | | | | | | | | | | | 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>
* | build: homologize path handlingDavid Lamparter2024-01-271-29/+25
| | | | | | | | | | | | | | | | | | 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>
* | lib, mgmtd: fix commit history locationDavid Lamparter2024-01-271-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | ospf6d: fix GR & auth seqno state locationDavid Lamparter2024-01-271-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | ospfd: fix GR state locationDavid Lamparter2024-01-271-1/+0
| | | | | | | | | | | | | | | | | | 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>
* | isisd: fix overload state locationDavid Lamparter2024-01-271-1/+0
| | | | | | | | | | | | | | | | | | | | 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>
* | lib: set up `frr_libstatedir`David Lamparter2024-01-271-0/+5
| | | | | | | | | | | | | | 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>
* | build: nuke `LDPD_SOCKET`David Lamparter2024-01-271-1/+0
| | | | | | | | | | | | This just unnecessarily complicates things by involving autoconf. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | build: nuke `ZEBRA_SERV_PATH`David Lamparter2024-01-271-1/+0
| | | | | | | | | | | | This just unnecessarily complicates things by involving autoconf. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | build: nuke `BFDD_CONTROL_SOCKET`David Lamparter2024-01-271-1/+0
| | | | | | | | | | | | This just unnecessarily complicates things by involving autoconf. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | lib, mgmtd: fix wrong mgmtd socket pathsDavid Lamparter2024-01-271-2/+0
| | | | | | | | | | | | These paths were ignoring the `-N` namespacing option. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | *: rename `frr_vtydir` to `frr_runstatedir`David Lamparter2024-01-271-1/+1
| | | | | | | | | | | | Also remove frr_init_vtydir(), just initialize to default. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | build: untangle sysconfdir & localstatedirDavid Lamparter2024-01-271-55/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `--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>
* | build: use AX_RECURSIVE_EVALDavid Lamparter2024-01-271-26/+9
|/ | | | | | | Replace inline expansion loop. (Also correctly handles prefix=NONE and exec_prefix=NONE inside the macro.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* Merge pull request #15103 from LabNConsulting/chopps/oper-filterDonald Sharp2024-01-091-0/+7
|\ | | | | Implement full XPath 1.0 functionality
| * lib: use libyang functions if they are presentChristian Hopps2024-01-071-0/+7
| | | | | | | | | | | | | | 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>
* | build: require libyang 2.1.128Christian Hopps2024-01-061-6/+2
|/ | | | | | Update building docs to reflect this as well. Signed-off-by: Christian Hopps <chopps@labn.net>
* build: protobuf is required so update building docsChristian Hopps2023-12-311-0/+4
| | | | | | | | - 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>
* lib: darr: add new access and str functionsChristian Hopps2023-12-281-0/+1
| | | | | | | - darr_last(), and darr_strdup_cap(). - strcat, strdup, strlen, strnul equivs. Signed-off-by: Christian Hopps <chopps@labn.net>
* *: Remove APPLE #defines from buildDonald Sharp2023-11-071-3/+0
| | | | | | | | 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>
* build: add -Wimplicit-fallthroughIgor Ryzhov2023-10-121-0/+1
| | | | | | | | | | 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>
* build: FRR 9.2 development versionfrr-9.2-devDonatas Abraitis2023-10-101-1/+1
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* lib: Drop deprecated enable-time-check, enable-cpu-time compile optionsDonatas Abraitis2023-09-241-26/+0
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* *: Remove unused configure optionDonald Sharp2023-09-051-6/+0
| | | | | | | The `-disable-rr-semantics` or `--enable-rr-senamtics` configure option is never used. Let's just remove it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* configure.ac: fix protobuf config乐倚2023-08-231-1/+3
| | | | | | | | | | | | | | | | | | | Bug description: frr_init load zebra_fpm.so error. Zebra can't find function `zfpm_protobuf_encode_route` in symbol table. Bug trigger condition ( CI have this set ): ./configure --enable-protobuf=no --enable-fpm=yes /usr/lib/frr/zebra -M fpm Cause: Macro `HAVE_PROTOBUF` and compile condition variable `HAVE_PROTOBUF` in `configure.ac ` is not consistent. When configure `disable-protobuf`, compile condition variable `HAVE_PROTOBUF` is 0, but the macro is 1. It leads to zebra load protobuf module, but protobuf module is not linked. Fix: add a same condition statement to the macro define. Signed-off-by: 乐倚 <lwb406054@alibaba-inc.com>
* build: disable warning for m$ extension useChristian Hopps2023-07-071-0/+1
| | | | | | This is adding a "disable warning" to ccls convenience config. Signed-off-by: Christian Hopps <chopps@labn.net>
* build: FRR 9.1 development versionfrr-9.1-devJafar Al-Gharaibeh2023-06-061-1/+1
| | | | Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
* doc: configure: add configure option to generate .ccls fileChristian Hopps2023-05-181-0/+39
| | | | | | | | | | | `ccls` needs information from FRR build configuration to work, so allow creation of a custom ccls config during autoconf. Paraphrasing the doc entry: ccls is a very powerful tool that allows dev environments to provide sophisticated IDE functionality, e.g., semantically aware jumps and code refactoring... Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: add build option to set startup log timestemp precisionChristian Hopps2023-04-291-1/+14
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* build: Take LUA_LIBS from pkg-configDonatas Abraitis2023-04-081-5/+11
| | | | | | | | | | Alpine Linux has LUA_LIB with a broken path, let's use pkg-config to grab the LUA_LIBS properly. checking for library containing lua_load... no configure: error: Lua 5.3 libraries are required to build with Lua support. No other version is supported. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* tools: Set correct directory of vtysh for frr-reload.pyDonatas Abraitis2023-03-241-0/+3
| | | | | | | | Before it was setting SDIR, which is /usr/lib/frr, but the vtysh binary is put under bindir (which is /usr/local by default). And running `/usr/lib/frr/frr reload` failed. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* mgmtd: Add MGMT Transaction FrameworkYash Ranjan2023-03-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces the MGMT Transaction framework that takes management requests from one (or more) frontend client sessions, translates them into transactions and drives them to completion in co-oridination with one (or more) backend client daemons involved in the request. This commit includes the following functionalities in the changeset: 1. Introduces the actual Transaction module. Commands added related to transaction are: a. show mgmt transaction all 2. Adds support for commit rollback feature which stores upto the 10 commit buffers. Each commit has a commit-id which can be used to rollback to the exact configuration state. Commands supported for this feature are: a. show mgmt commit-history b. mgmt rollback commit-id COMMIT_ID 3. Add hidden commands to enable record various performance metrics: a. mgmt performance-measurement b. mgmt reset-statistic Co-authored-by: Pushpasis Sarkar <pushpasis@gmail.com> Co-authored-by: Abhinay Ramesh <rabhinay@vmware.com> Co-authored-by: Ujwal P <ujwalp@vmware.com> Signed-off-by: Yash Ranjan <ranjany@vmware.com>
* mgmtd: Bringup MGMTD daemon and datastore module supportChristian Hopps2023-03-221-21/+30
| | | | | | | | | | | | | | | | | | | Features added in this commit: 1. Bringup/shutdown new management daemon 'mgmtd' along with FRR. 2. Support for Startup, Candidate and Running DBs. 3. Lock/Unlock DS feature using pthread lock. 4. Load config from a JSON file onto candidate DS. 5. Save config to a JSON file from running/candidate DS. 6. Dump candidate or running DS contents on the terminal or a file in JSON/XML format. 7. Maintaining commit history (Full rollback support to be added in future commits). 8. Addition of debug commands. Co-authored-by: Yash Ranjan <ranjany@vmware.com> Co-authored-by: Abhinay Ramesh <rabhinay@vmware.com> Co-authored-by: Ujwal P <ujwalp@vmware.com> Signed-off-by: Pushpasis Sarkar <pushpasis@gmail.com>