X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=configure;h=ef8aed015e7080a38512a4c229ba5eebd7cef869;hb=d09ba0c7af0f6aa513a3f05fa3c5e0a24729178d;hp=679f543ed2f93cea6f4feb2fd37409be134f7c5f;hpb=33e5a6d5549381b79d1f556d46c396b681aea69a;p=fips diff --git a/configure b/configure index 679f543..ef8aed0 100755 --- a/configure +++ b/configure @@ -308,14 +308,14 @@ else fi rm -f glx-minimal glx-minimal.c -printf " Checking for GL/egl.h... " +printf " Checking for EGL/egl.h... " have_egl=No if pkg-config --exists egl; then printf "Yes.\n" have_egl=Yes egl_cflags=$(pkg-config --cflags egl) else - printf "#include \nint main(void){return 0;}\n" > egl-minimal.c + printf "#include \nint main(void){return 0;}\n" > egl-minimal.c if ${CC} -o egl-minimal egl-minimal.c ${gl_cflags} > /dev/null 2>&1 then printf "Yes.\n" @@ -345,6 +345,43 @@ printf "\t${WARN_CFLAGS}\n" rm -f minimal minimal.c +printf "#include \nint main(void){return 0;}\n" > arch-minimal.c + +printf "Checking for machine-dependent compiler support:\n" + +printf " Compiler can create 32-bit binaries... " +have_m32=Yes +if ${CC} -m32 -o arch-minimal arch-minimal.c > /dev/null 2>&1 +then + printf "Yes.\n" +else + printf "No.\n" + have_m32=No +fi + +printf " Compiler can create 64-bit binaries... " +have_m64=Yes +if ${CC} -m64 -o arch-minimal arch-minimal.c > /dev/null 2>&1 +then + printf "Yes.\n" +else + printf "No.\n" + have_m64=No +fi + +if [ "$have_m32" = "No" ] || [ "$have_m64" = "No" ]; then + cat <