X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=configure;h=dd0a6a686d2dc73599e4791fa458ca1b59a8f7d7;hb=211a9ae3f02ce8032da195b211ea683d5fada05d;hp=679f543ed2f93cea6f4feb2fd37409be134f7c5f;hpb=33e5a6d5549381b79d1f556d46c396b681aea69a;p=fips diff --git a/configure b/configure index 679f543..dd0a6a6 100755 --- a/configure +++ b/configure @@ -279,6 +279,7 @@ if pkg-config --exists gl; then printf "Yes.\n" have_gl=1 gl_cflags=$(pkg-config --cflags gl) + gl_ldflags=$(pkg-config --libs gl) else printf "#include \nint main(void){return 0;}\n" > gl-minimal.c if ${CC} -o gl-minimal gl-minimal.c > /dev/null 2>&1 @@ -308,14 +309,15 @@ 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) + egl_ldflags=$(pkg-config --libs 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 +347,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 <