mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00

Allow build systems without standard cc to successfully run the dependency checking helper scripts from the Makefile. This supports custom compilers specified by the common CC environment variable, preprocessors given as CPP and additional preprocessor flags from CPPFLAGS. Additional flags from CFLAGS and LDFLAGS are considered for compiling/linking. Overall, this facilitates cross-compilation and similar setups. Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
8 lines
167 B
Bash
Executable File
8 lines
167 B
Bash
Executable File
#!/usr/bin/env bash
|
|
${CPP:-${CC:-cc} -E} ${CPPFLAGS} - > /dev/null 2> /dev/null << EOF
|
|
#include <btrfs/version.h>
|
|
EOF
|
|
if test $? -ne 0 ; then
|
|
echo btrfs_noversion
|
|
fi
|