- Timestamp:
- Oct 1, 2001, 4:01:35 PM (24 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/Makefile.in
r1480 r1663 40 40 ifeq ($(CXX), cxx) 41 41 CXXFLAGS := -O -g -D__USE_STD_IOSTREAM 42 LIBS := $(LIBS) -pthread 42 43 endif 43 44 endif … … 77 78 libatkern.a: $(FILES) 78 79 $(AR) -cr libatkern.a $(FILES) 80 ranlib libatkern.a 79 81 ln -f libatkern.a ../libatkern.a 80 82 … … 84 86 85 87 %: %.o $(FILES) 86 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -pthread-o $@ -lm88 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm 87 89 88 90 %.o:$(srcdir)/%.cc 89 $(COMPILE.cc) - pthread -o $@ $<91 $(COMPILE.cc) -o $@ $< 90 92 91 93 %.o:$(srcdir)/%.c 92 $(COMPILE.c) -pthread-o $@ $<94 $(COMPILE.c) -o $@ $< 93 95 94 96 -
trunk/ArchTOIPipe/Kernel/toiprocessor.cc
r1629 r1663 2 2 #include "toimanager.h" 3 3 #include <pthread.h> 4 5 #ifdef HAVE_VALUES_H 4 6 #include <values.h> 7 #endif 8 9 #ifndef MAXINT 10 #define MAXINT 2147483647 11 #endif 12 13 #ifdef HAVE_STDINT_H 14 #include <stdint.h> 15 #endif 5 16 6 17 #ifdef WITH_SOPHYA … … 88 99 89 100 int TOIProcessor::getMaxIn() { 90 int nIn = inIx.size();91 int maxIn = MAXINT;101 int_4 nIn = inIx.size(); 102 int_4 maxIn = MAXINT; 92 103 for (int i=0; i<nIn; i++) { 93 104 TOI* toi = inTOIs[i]; 94 105 if (toi == NULL) continue; // Protection - Reza 13/3/2001 95 int x = toi->getMaxSn();106 int_4 x = toi->getMaxSn(); 96 107 if (x < maxIn) maxIn = x; 97 108 } -
trunk/ArchTOIPipe/ProcWSophya/Makefile.in
r1480 r1663 40 40 ifeq ($(CXX), cxx) 41 41 CXXFLAGS := -O -g -D__USE_STD_IOSTREAM 42 LIBS := $(LIBS) -pthread 42 43 endif 43 44 endif … … 76 77 libatsop.a: $(FILES) 77 78 $(AR) -cr libatsop.a $(FILES) 79 ranlib libatkern.a 78 80 ln -f libatsop.a ../libatsop.a 79 81 … … 83 85 84 86 %: %.o $(FILES) 85 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -pthread-o $@ -lm87 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm 86 88 87 89 %.o:$(srcdir)/%.cc 88 $(COMPILE.cc) -pthread-o $@ $<90 $(COMPILE.cc) -o $@ $< 89 91 90 92 %.o:$(srcdir)/%.c 91 $(COMPILE.c) - pthread -o $@ $<93 $(COMPILE.c) -o $@ $< 92 94 93 95 -
trunk/ArchTOIPipe/Processors/Makefile.in
r1480 r1663 40 40 ifeq ($(CXX), cxx) 41 41 CXXFLAGS := -O -g -D__USE_STD_IOSTREAM 42 LIBS := $(LIBS) -pthread 42 43 endif 43 44 endif … … 75 76 libatproc.a: $(FILES) 76 77 $(AR) -cr libatproc.a $(FILES) 78 ranlib libatproc.a 77 79 ln -f libatproc.a ../libatproc.a 78 80 … … 83 85 84 86 %: %.o $(FILES) 85 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -pthread-o $@ -lm87 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm 86 88 87 89 %.o:$(srcdir)/%.cc 88 $(COMPILE.cc) -pthread-o $@ $<90 $(COMPILE.cc) -o $@ $< 89 91 90 92 %.o:$(srcdir)/%.c 91 $(COMPILE.c) -pthread-o $@ $<93 $(COMPILE.c) -o $@ $< 92 94 93 95 -
trunk/ArchTOIPipe/TestPipes/Makefile.in
r1480 r1663 40 40 ifeq ($(CXX), cxx) 41 41 CXXFLAGS := -O -g -D__USE_STD_IOSTREAM 42 LIBS := $(LIBS) -pthread 42 43 endif 43 44 endif … … 81 82 82 83 %: %.o $(FILES) $(LIBDEPS) 83 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) - pthread -o $@ -lm84 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm 84 85 85 86 %.o:$(srcdir)/%.cc 86 $(COMPILE.cc) - pthread -o $@ $<87 $(COMPILE.cc) -o $@ $< 87 88 88 89 %.o:$(srcdir)/%.c 89 $(COMPILE.c) - pthread -o $@ $<90 $(COMPILE.c) -o $@ $< 90 91 91 92 -
trunk/ArchTOIPipe/conf.h.in
r1365 r1663 16 16 #undef SIZEOF_LONG 17 17 18 /* The number of bytes in a long long. */ 19 #undef SIZEOF_LONG_LONG 20 18 21 /* The number of bytes in a long double. */ 19 22 #undef SIZEOF_LONG_DOUBLE … … 24 27 /* Define if you have the m library (-lm). */ 25 28 #undef HAVE_LIBM 29 30 /* Define if you have the values.h header. */ 31 #undef HAVE_VALUES_H 32 33 34 -
trunk/ArchTOIPipe/config.h
r1477 r1663 9 9 #ifndef WITH_SOPHYA 10 10 #define NO_SOPHYA 11 12 #ifdef HAVE_STDINT_H 13 #include <stdint.h> 14 #define int_4 int4_t 15 #define int_8 int8_t 16 #define uint_8 uint8_t 17 #else 11 18 #if SIZEOF_SHORT == 4 12 19 #define int_4 short int … … 19 26 #if SIZEOF_LONG == 8 20 27 #define int_8 long 28 #define uint_8 unsigned long 29 #elif SIZEOF_LONG_LONG == 8 30 #define int_8 long long 31 #define uint_8 unsigned long long 21 32 #else 22 #error long is not 8 bytes... 33 #error no 8-byte long int... 34 #endif 23 35 #endif 24 36 #endif 25 37 26 38 #endif 39 -
trunk/ArchTOIPipe/configure
r1477 r1663 1028 1028 1029 1029 1030 echo $ac_n "checking size of long long""... $ac_c" 1>&6 1031 echo "configure:1032: checking size of long long" >&5 1032 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then 1033 echo $ac_n "(cached) $ac_c" 1>&6 1034 else 1035 if test "$cross_compiling" = yes; then 1036 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1037 else 1038 cat > conftest.$ac_ext <<EOF 1039 #line 1040 "configure" 1040 #include "confdefs.h" 1041 #include <stdio.h> 1042 main() 1043 { 1044 FILE *f=fopen("conftestval", "w"); 1045 if (!f) exit(1); 1046 fprintf(f, "%d\n", sizeof(long long)); 1047 exit(0); 1048 } 1049 EOF 1050 if { (eval echo configure:1051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1051 then 1052 ac_cv_sizeof_long_long=`cat conftestval` 1053 else 1054 echo "configure: failed program was:" >&5 1055 cat conftest.$ac_ext >&5 1056 rm -fr conftest* 1057 ac_cv_sizeof_long_long=0 1058 fi 1059 rm -fr conftest* 1060 fi 1061 1062 fi 1063 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 1064 cat >> confdefs.h <<EOF 1065 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 1066 EOF 1067 1068 1030 1069 echo $ac_n "checking size of float""... $ac_c" 1>&6 1031 echo "configure:10 32: checking size of float" >&51070 echo "configure:1071: checking size of float" >&5 1032 1071 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then 1033 1072 echo $ac_n "(cached) $ac_c" 1>&6 … … 1037 1076 else 1038 1077 cat > conftest.$ac_ext <<EOF 1039 #line 10 40"configure"1078 #line 1079 "configure" 1040 1079 #include "confdefs.h" 1041 1080 #include <stdio.h> … … 1048 1087 } 1049 1088 EOF 1050 if { (eval echo configure:10 51: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1089 if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1051 1090 then 1052 1091 ac_cv_sizeof_float=`cat conftestval` … … 1068 1107 1069 1108 echo $ac_n "checking size of double""... $ac_c" 1>&6 1070 echo "configure:1 071: checking size of double" >&51109 echo "configure:1110: checking size of double" >&5 1071 1110 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 1072 1111 echo $ac_n "(cached) $ac_c" 1>&6 … … 1076 1115 else 1077 1116 cat > conftest.$ac_ext <<EOF 1078 #line 1 079"configure"1117 #line 1118 "configure" 1079 1118 #include "confdefs.h" 1080 1119 #include <stdio.h> … … 1087 1126 } 1088 1127 EOF 1089 if { (eval echo configure:1 090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1128 if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1090 1129 then 1091 1130 ac_cv_sizeof_double=`cat conftestval` … … 1107 1146 1108 1147 echo $ac_n "checking size of long double""... $ac_c" 1>&6 1109 echo "configure:11 10: checking size of long double" >&51148 echo "configure:1149: checking size of long double" >&5 1110 1149 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then 1111 1150 echo $ac_n "(cached) $ac_c" 1>&6 … … 1115 1154 else 1116 1155 cat > conftest.$ac_ext <<EOF 1117 #line 11 18"configure"1156 #line 1157 "configure" 1118 1157 #include "confdefs.h" 1119 1158 #include <stdio.h> … … 1126 1165 } 1127 1166 EOF 1128 if { (eval echo configure:11 29: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1167 if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1129 1168 then 1130 1169 ac_cv_sizeof_long_double=`cat conftestval` … … 1148 1187 1149 1188 echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6 1150 echo "configure:11 51: checking "for cfitsio lib"" >&51189 echo "configure:1190: checking "for cfitsio lib"" >&5 1151 1190 MACHDIR=`uname`-$CXX 1152 1191 if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then … … 1173 1212 1174 1213 echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6 1175 echo "configure:1 176: checking "for cfitsio includes"" >&51214 echo "configure:1215: checking "for cfitsio includes"" >&5 1176 1215 if test -f $CFITSIODIR/fitsio.h; then 1177 1216 cfitsincdir='-I$(CFITSIODIR)' … … 1185 1224 1186 1225 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 1187 echo "configure:1 188: checking for sin in -lm" >&51226 echo "configure:1227: checking for sin in -lm" >&5 1188 1227 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 1189 1228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1193 1232 LIBS="-lm $LIBS" 1194 1233 cat > conftest.$ac_ext <<EOF 1195 #line 1 196"configure"1234 #line 1235 "configure" 1196 1235 #include "confdefs.h" 1197 1236 /* Override any gcc2 internal prototype to avoid an error. */ … … 1204 1243 ; return 0; } 1205 1244 EOF 1206 if { (eval echo configure:12 07: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1245 if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1207 1246 rm -rf conftest* 1208 1247 eval "ac_cv_lib_$ac_lib_var=yes" … … 1233 1272 1234 1273 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1235 echo "configure:12 36: checking how to run the C preprocessor" >&51274 echo "configure:1275: checking how to run the C preprocessor" >&5 1236 1275 # On Suns, sometimes $CPP names a directory. 1237 1276 if test -n "$CPP" && test -d "$CPP"; then … … 1248 1287 # not just through cpp. 1249 1288 cat > conftest.$ac_ext <<EOF 1250 #line 12 51"configure"1289 #line 1290 "configure" 1251 1290 #include "confdefs.h" 1252 1291 #include <assert.h> … … 1254 1293 EOF 1255 1294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1256 { (eval echo configure:12 57: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1295 { (eval echo configure:1296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1257 1296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1258 1297 if test -z "$ac_err"; then … … 1265 1304 CPP="${CC-cc} -E -traditional-cpp" 1266 1305 cat > conftest.$ac_ext <<EOF 1267 #line 1 268"configure"1306 #line 1307 "configure" 1268 1307 #include "confdefs.h" 1269 1308 #include <assert.h> … … 1271 1310 EOF 1272 1311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1273 { (eval echo configure:1 274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1312 { (eval echo configure:1313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1274 1313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1275 1314 if test -z "$ac_err"; then … … 1282 1321 CPP="${CC-cc} -nologo -E" 1283 1322 cat > conftest.$ac_ext <<EOF 1284 #line 1 285"configure"1323 #line 1324 "configure" 1285 1324 #include "confdefs.h" 1286 1325 #include <assert.h> … … 1288 1327 EOF 1289 1328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1290 { (eval echo configure:1 291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1329 { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1291 1330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1292 1331 if test -z "$ac_err"; then … … 1313 1352 1314 1353 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1315 echo "configure:13 16: checking for ANSI C header files" >&51354 echo "configure:1355: checking for ANSI C header files" >&5 1316 1355 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1317 1356 echo $ac_n "(cached) $ac_c" 1>&6 1318 1357 else 1319 1358 cat > conftest.$ac_ext <<EOF 1320 #line 13 21"configure"1359 #line 1360 "configure" 1321 1360 #include "confdefs.h" 1322 1361 #include <stdlib.h> … … 1326 1365 EOF 1327 1366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1328 { (eval echo configure:13 29: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1367 { (eval echo configure:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1329 1368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1330 1369 if test -z "$ac_err"; then … … 1343 1382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1344 1383 cat > conftest.$ac_ext <<EOF 1345 #line 13 46"configure"1384 #line 1385 "configure" 1346 1385 #include "confdefs.h" 1347 1386 #include <string.h> … … 1361 1400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1362 1401 cat > conftest.$ac_ext <<EOF 1363 #line 1 364"configure"1402 #line 1403 "configure" 1364 1403 #include "confdefs.h" 1365 1404 #include <stdlib.h> … … 1382 1421 else 1383 1422 cat > conftest.$ac_ext <<EOF 1384 #line 1 385"configure"1423 #line 1424 "configure" 1385 1424 #include "confdefs.h" 1386 1425 #include <ctype.h> … … 1393 1432 1394 1433 EOF 1395 if { (eval echo configure:1 396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1434 if { (eval echo configure:1435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1396 1435 then 1397 1436 : … … 1415 1454 1416 1455 fi 1456 1457 for ac_hdr in values.h 1458 do 1459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1461 echo "configure:1462: checking for $ac_hdr" >&5 1462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1463 echo $ac_n "(cached) $ac_c" 1>&6 1464 else 1465 cat > conftest.$ac_ext <<EOF 1466 #line 1467 "configure" 1467 #include "confdefs.h" 1468 #include <$ac_hdr> 1469 EOF 1470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1471 { (eval echo configure:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1473 if test -z "$ac_err"; then 1474 rm -rf conftest* 1475 eval "ac_cv_header_$ac_safe=yes" 1476 else 1477 echo "$ac_err" >&5 1478 echo "configure: failed program was:" >&5 1479 cat conftest.$ac_ext >&5 1480 rm -rf conftest* 1481 eval "ac_cv_header_$ac_safe=no" 1482 fi 1483 rm -f conftest* 1484 fi 1485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1486 echo "$ac_t""yes" 1>&6 1487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1488 cat >> confdefs.h <<EOF 1489 #define $ac_tr_hdr 1 1490 EOF 1491 1492 else 1493 echo "$ac_t""no" 1>&6 1494 fi 1495 done 1417 1496 1418 1497 -
trunk/ArchTOIPipe/configure.in
r1477 r1663 22 22 AC_CHECK_SIZEOF(int) 23 23 AC_CHECK_SIZEOF(long) 24 AC_CHECK_SIZEOF(long long) 24 25 AC_CHECK_SIZEOF(float) 25 26 AC_CHECK_SIZEOF(double) … … 70 71 dnl Checks for header files. 71 72 AC_HEADER_STDC 73 AC_CHECK_HEADERS(values.h stdint.h) 72 74 73 75 outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile"
Note:
See TracChangeset
for help on using the changeset viewer.