Skip to content
Snippets Groups Projects
Commit 8e6645ed authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

add secondary check for libiberty

parent 0c3857e1
No related branches found
No related tags found
No related merge requests found
......@@ -565,16 +565,19 @@ endif
##########################
# location of libiberty.h
#
if compiler.has_header('libiberty.h',
args: cflags,
include_directories: include_directories(incdirs))
# Fedora
cflags += '-D__HAVE_LIBIBERTYH__'
elif compiler.has_header('libiberty/libiberty.h',
args: cflags,
include_directories: include_directories(incdirs))
# Debian and derivatives e.g. Ubuntu
cflags += '-D__HAVE_LIBIBERTY_LIBIBERTYH__'
if compiler.find_library('iberty',
required:false)
if compiler.has_header('libiberty.h',
args: cflags,
include_directories: include_directories(incdirs))
# Fedora
cflags += '-D__HAVE_LIBIBERTYH__'
elif compiler.has_header('libiberty/libiberty.h',
args: cflags,
include_directories: include_directories(incdirs))
# Debian and derivatives e.g. Ubuntu
cflags += '-D__HAVE_LIBIBERTY_LIBIBERTYH__'
endif
endif
############################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment