Changeset 17918 in vbox for trunk/configure
- Timestamp:
- Mar 16, 2009 11:15:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r17912 r17918 134 134 cleanup() 135 135 { 136 rm -f $ODIR.tmp_src.cc $ODIR.tmp_src.c $ODIR.tmp_out $ODIR.test_execute.log 136 # rm -f $ODIR.tmp_src.cc $ODIR.tmp_src.c $ODIR.tmp_out $ODIR.test_execute.log 137 echo "cleanup" 137 138 } 138 139 … … 229 230 echo "using the following command line:" >> $LOG 230 231 echo "$CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc \"$1\"" >> $LOG 231 $CXX - O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc $1 >> $LOG 2>&1232 $CXX -g -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc $1 >> $LOG 2>&1 232 233 if [ $? -ne 0 ]; then 233 234 if [ -z "$4" ]; then … … 1212 1213 1213 1214 dpy = XOpenDisplay(NULL); 1214 scrn_num = DefaultScreen(dpy); 1215 scrn = ScreenOfDisplay(dpy, scrn_num); 1216 Status status = XmuLookupStandardColormap(dpy, RootWindowOfScreen(scrn), 0, 1217 24, XA_RGB_DEFAULT_MAP, False, True); 1218 printf("Status = %x\n", status); 1215 if (dpy) 1216 { 1217 scrn_num = DefaultScreen(dpy); 1218 scrn = ScreenOfDisplay(dpy, scrn_num); 1219 Status status = XmuLookupStandardColormap(dpy, RootWindowOfScreen(scrn), 0, 1220 24, XA_RGB_DEFAULT_MAP, False, True); 1221 printf("Status = %x\n", status); 1222 } 1219 1223 return 0; 1220 1224 } … … 1245 1249 1246 1250 dpy = XOpenDisplay(NULL); 1247 if ( glXQueryVersion(dpy, &major, &minor))1251 if (dpy) 1248 1252 { 1249 printf("found version %u.%u, OK.\n", major, minor); 1253 if (glXQueryVersion(dpy, &major, &minor)) 1254 { 1255 printf("found version %u.%u, OK.\n", major, minor); 1256 return 0; 1257 } 1250 1258 } 1259 printf("found (inactive), OK.\n"); 1251 1260 return 0; 1252 1261 }
Note:
See TracChangeset
for help on using the changeset viewer.