]> git.cworth.org Git - fips/blobdiff - configure
configure: Switch from 4 spaces to tabs for some messages
[fips] / configure
index 7c5a38ce6e2dae6f3d4cf075081e81231c92747d..b63103eaa697a25822d7a481b8629991af77b8e9 100755 (executable)
--- a/configure
+++ b/configure
@@ -217,6 +217,32 @@ exit 1
 
 fi
 
+printf "Checking for working C compiler (${CC})... "
+printf "int main(void){return 42;}\n" > minimal.c
+if ${CC} -o minimal minimal.c > /dev/null 2>&1
+then
+    printf "Yes.\n"
+else
+    printf "No.\n"
+    cat <<EOF
+
+*** Error: No functioning C compiler found. Either set the CC environment
+to a working C compiler, or else install gcc:
+
+       http://gcc.gnu.org/
+
+You may be able to install gcc with a command such as:
+
+       sudo apt-get install build-essential
+    or:
+       sudo yum install make automake gcc gcc-c++ kernel-devel
+
+EOF
+
+exit 1
+
+fi
+
 printf "Checking for libtalloc... "
 if pkg-config --exists talloc; then
     printf "Yes.\n"
@@ -269,7 +295,7 @@ fi
 printf "Checking for GL window-system-binding headers:\n"
 have_gl_winsys=0
 
-printf "    Checking for GL/glx.h... "
+printf "       Checking for GL/glx.h... "
 have_glx=No
 printf "#include <GL/glx.h>\nint main(void){return 0;}\n" > glx-minimal.c
 if ${CC} -o glx-minimal glx-minimal.c ${gl_cflags} > /dev/null 2>&1
@@ -282,7 +308,7 @@ else
 fi
 rm -f glx-minimal glx-minimal.c
 
-printf "    Checking for GL/egl.h... "
+printf "       Checking for GL/egl.h... "
 have_egl=No
 if pkg-config --exists egl; then
     printf "Yes.\n"