]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
configure: make more robust the check for elf 64
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 17 Nov 2024 20:35:45 +0000 (21:35 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 25 Jan 2025 10:36:11 +0000 (10:36 +0000)
commitac18b8cd6a3f21b97f942efdbb0ec2f362bb132b
tree34cd6318d44013355646c204d308797a3115bb37
parent345473f3ceaf6a1241f62354e31eeababfc56588
configure: make more robust the check for elf 64

The check if 'elf.h' defines the type 'Elf64_Ehdr' is currently
done through 'grep' on the file. While there is no false positive,
so far, such test could incorrectly find the text inside a comment
or in a block guarded by #if/#endif.

Use the autoconf macro AC_CHECK_TYPE() to detect if the type is
properly declared.

Change-Id: Ibb74db3d90ac6d1589b9dc1e5a7ae59e47945e78
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8591
Tested-by: jenkins
configure.ac