Skip to content

configure.ac: configure.ac: add PKG_CHECK_MODULES and AC_CHECK_LIB/ACHECK_HEADERS for librtpi#161

Merged
anragsi merged 1 commit intomasterfrom
librtpi_use_pkg_check_mod_and_ac_check_lib
Jan 27, 2026
Merged

configure.ac: configure.ac: add PKG_CHECK_MODULES and AC_CHECK_LIB/ACHECK_HEADERS for librtpi#161
anragsi merged 1 commit intomasterfrom
librtpi_use_pkg_check_mod_and_ac_check_lib

Conversation

@alyxazon
Copy link
Collaborator

Implement librtpi checks in configure.ac (based on Enkhbold's idea, #160)

What happens if...

No librtpi is installed:

Configure:

checking for etherbone >= 2.1.0... yes
checking for sigc++-2.0... yes
checking for librtpi >= 1.0.1... no
checking for pi_mutex_alloc in -lrtpi... no
checking for rtpi.h... no

Make:

saftbus/client.hpp:35:10: fatal error: rtpi/mutex.hpp: No such file or directory
   35 | #include <rtpi/mutex.hpp>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.

Official librtpi 1.0.1 is installed

Configure:

checking for etherbone >= 2.1.0... yes
checking for sigc++-2.0... yes
checking for librtpi >= 1.0.1... no
checking for pi_mutex_alloc in -lrtpi... yes
checking for rtpi.h... yes

Make:
Success!

GSI-Fork (librtpi) or fake bel_projects 1.0.2 dot pc file:

Configure:

checking for etherbone >= 2.1.0... yes
checking for sigc++-2.0... yes
checking for librtpi >= 1.0.1... yes

Make:
Success!

…_CHECK_HEADERS for librtpi

Co-authored-by: Enkhbold Ochirsuren <E.Ochirsuren@gsi.de>
@alyxazon alyxazon self-assigned this Jan 20, 2026
@anragsi anragsi merged commit a890a2f into master Jan 27, 2026
3 checks passed
@anragsi anragsi deleted the librtpi_use_pkg_check_mod_and_ac_check_lib branch January 27, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants