changeset 2662:994b95f443f2

avoids spitting bad compilation messages at the user when sthg does not work
author pl
date Sat, 03 Nov 2001 23:15:44 +0000
parents 11f4c2b2b70f
children 4929b296e465
files configure
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Nov 03 23:01:17 2001 +0000
+++ b/configure	Sat Nov 03 23:15:44 2001 +0000
@@ -116,7 +116,7 @@
 # SOME MACROS/USEFUL FUNCTIONS
 # Returns error code only - NO displaye
 cc_check() {
-	"$_cc" "$TMPC" -o "$TMPO" "$@" >/dev/null 2>&1
+	( "$_cc" "$TMPC" -o "$TMPO" "$@" ) >/dev/null 2>&1
 	return "$?"
 }
 
@@ -970,7 +970,7 @@
 if test "$_x11" = yes ; then
 
 cc_check $_x11libdir -lX11 -lXext -lXdpms $_socklib && _xdpms_3=yes
-nm `echo $_x11libdir|cut -c 3-`/libXext.a | grep DPMSQueryExtension > /dev/null 2>&1 && _xdpms_4=yes
+( nm `echo $_x11libdir | cut -c 3-`/libXext.a | grep DPMSQueryExtension ) > /dev/null 2>&1 && _xdpms_4=yes
 cc_check $_x11libdir -lX11 -lXext -lXv $_socklib && _xv=yes
 cc_check $_x11libdir -lX11 -lXext -lXxf86vm $_socklib && _vm=yes
 cc_check $_x11libdir -lX11 -lXext -lXinerama $_socklib && _xinerama=yes
@@ -1769,7 +1769,7 @@
 
 # check if compiler supports C++ and C++-libs are installed correctly
 if test "$_win32" = yes && test "$_dshow" = yes ; then
-cat > $TMPCPP << EOF
+cat > "$TMPCPP" << EOF
 /* very useful C++ test program by atmos */
 #include <string>
 
@@ -1791,10 +1791,10 @@
 }
 EOF
 echo $_echo_n "Checking if your compiler '$_cc' supports C++ ... $_echo_c"
-if $_cc $TMPCPP -o $TMPO > /dev/null 2>&1 ; then
+if ( "$_cc" "$TMPCPP" -o "$TMPO" ) > /dev/null 2>&1 ; then
   echo yes
   echo $_echo_n "Checking for proper C++ runtime enviroment ... $_echo_c"
-  if $TMPO ; then
+  if "$TMPO" ; then
     echo yes
   else
     echo no