Skip to content

Commit

Permalink
conditionally check /usr/include/libircclient
Browse files Browse the repository at this point in the history
The header is in this directory on Manjaro. On FreeBSD, looking in this
directory fails with the error that the directory doesn't exist.

mesonbuild/meson#10738
  • Loading branch information
andy5995 committed Feb 6, 2025
1 parent 86a4ab2 commit b018159
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/shared_lib/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,12 @@ dep_ircclient = dependency('ircclient', required: false)
if not dep_ircclient.found()
dep_ircclient = cc.find_library('ircclient', has_headers: 'libircclient.h', required: false)
if not dep_ircclient.found()
inc_ircclient = ['/usr/include', '/usr/include/libircclient']
inc_ircclient = ['/usr/include/libircclient']
path = '/usr/include/libircclient'
result = run_command('test', '-d', path, check: false)
if result.returncode() == 0
inc_ircclient += path
endif
dep_ircclient = cc.find_library(
'ircclient',
has_headers: 'libircclient.h',
Expand Down

0 comments on commit b018159

Please sign in to comment.