- Timestamp:
- 11/11/11 01:51:35 (13 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/Makefile.in
r12354 r12490 351 351 gui/RawEventsViewer/RawEventsViewer.cc gui/BasicGlCamera.cc \ 352 352 gui/QCameraWidget.cc src/DataProcessorImp.cc \ 353 src/DataProcessorImp.h src/FitsFile.cc src/FitsFile.h 353 src/DataProcessorImp.h src/FitsFile.cc src/FitsFile.h \ 354 src/Fits.cc src/Fits.h src/PixelMap.cc 354 355 @HAS_VIEWER_TRUE@am__objects_8 = gui/RawEventsViewer/RawEventsViewer.moc.$(OBJEXT) \ 355 356 @HAS_VIEWER_TRUE@ gui/BasicGlCamera.moc.$(OBJEXT) \ … … 360 361 @HAS_VIEWER_TRUE@ gui/QCameraWidget.$(OBJEXT) 361 362 am_viewer_OBJECTS = $(am__objects_9) $(am__objects_10) \ 362 src/DataProcessorImp.$(OBJEXT) src/FitsFile.$(OBJEXT) 363 src/DataProcessorImp.$(OBJEXT) src/FitsFile.$(OBJEXT) \ 364 src/Fits.$(OBJEXT) src/PixelMap.$(OBJEXT) 363 365 viewer_OBJECTS = $(am_viewer_OBJECTS) 364 366 viewer_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ … … 958 960 viewer_SOURCES = $(viewer_SRCADD) $(viewer_QT_SOURCES) \ 959 961 src/DataProcessorImp.cc src/DataProcessorImp.h \ 960 src/FitsFile.cc src/FitsFile.h 962 src/FitsFile.cc src/FitsFile.h \ 963 src/Fits.cc src/Fits.h \ 964 src/PixelMap.cc 961 965 962 966 … … 2256 2260 uninstall-libLTLIBRARIES uninstall-man uninstall-man1 2257 2261 2258 src/Fits.cc src/Fits.h2259 2262 2260 2263 .ui.h: $< -
trunk/FACT++/configure
r11822 r12490 3823 3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3824 3824 3825 case $ac_cv_prog_cc_stdc in #( 3826 no) : 3827 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 3828 *) : 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3830 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3831 if test "${ac_cv_prog_cc_c99+set}" = set; then : 3832 $as_echo_n "(cached) " >&6 3833 else 3834 ac_cv_prog_cc_c99=no 3835 ac_save_CC=$CC 3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3837 /* end confdefs.h. */ 3838 #include <stdarg.h> 3839 #include <stdbool.h> 3840 #include <stdlib.h> 3841 #include <wchar.h> 3842 #include <stdio.h> 3843 3844 // Check varargs macros. These examples are taken from C99 6.10.3.5. 3845 #define debug(...) fprintf (stderr, __VA_ARGS__) 3846 #define showlist(...) puts (#__VA_ARGS__) 3847 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3848 static void 3849 test_varargs_macros (void) 3850 { 3851 int x = 1234; 3852 int y = 5678; 3853 debug ("Flag"); 3854 debug ("X = %d\n", x); 3855 showlist (The first, second, and third items.); 3856 report (x>y, "x is %d but y is %d", x, y); 3857 } 3858 3859 // Check long long types. 3860 #define BIG64 18446744073709551615ull 3861 #define BIG32 4294967295ul 3862 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3863 #if !BIG_OK 3864 your preprocessor is broken; 3865 #endif 3866 #if BIG_OK 3867 #else 3868 your preprocessor is broken; 3869 #endif 3870 static long long int bignum = -9223372036854775807LL; 3871 static unsigned long long int ubignum = BIG64; 3872 3873 struct incomplete_array 3874 { 3875 int datasize; 3876 double data[]; 3877 }; 3878 3879 struct named_init { 3880 int number; 3881 const wchar_t *name; 3882 double average; 3883 }; 3884 3885 typedef const char *ccp; 3886 3887 static inline int 3888 test_restrict (ccp restrict text) 3889 { 3890 // See if C++-style comments work. 3891 // Iterate through items via the restricted pointer. 3892 // Also check for declarations in for loops. 3893 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3894 continue; 3895 return 0; 3896 } 3897 3898 // Check varargs and va_copy. 3899 static void 3900 test_varargs (const char *format, ...) 3901 { 3902 va_list args; 3903 va_start (args, format); 3904 va_list args_copy; 3905 va_copy (args_copy, args); 3906 3907 const char *str; 3908 int number; 3909 float fnumber; 3910 3911 while (*format) 3912 { 3913 switch (*format++) 3914 { 3915 case 's': // string 3916 str = va_arg (args_copy, const char *); 3917 break; 3918 case 'd': // int 3919 number = va_arg (args_copy, int); 3920 break; 3921 case 'f': // float 3922 fnumber = va_arg (args_copy, double); 3923 break; 3924 default: 3925 break; 3926 } 3927 } 3928 va_end (args_copy); 3929 va_end (args); 3930 } 3931 3932 int 3933 main () 3934 { 3935 3936 // Check bool. 3937 _Bool success = false; 3938 3939 // Check restrict. 3940 if (test_restrict ("String literal") == 0) 3941 success = true; 3942 char *restrict newvar = "Another string"; 3943 3944 // Check varargs. 3945 test_varargs ("s, d' f .", "string", 65, 34.234); 3946 test_varargs_macros (); 3947 3948 // Check flexible array members. 3949 struct incomplete_array *ia = 3950 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3951 ia->datasize = 10; 3952 for (int i = 0; i < ia->datasize; ++i) 3953 ia->data[i] = i * 1.234; 3954 3955 // Check named initializers. 3956 struct named_init ni = { 3957 .number = 34, 3958 .name = L"Test wide string", 3959 .average = 543.34343, 3960 }; 3961 3962 ni.number = 58; 3963 3964 int dynamic_array[ni.number]; 3965 dynamic_array[ni.number - 1] = 543; 3966 3967 // work around unused variable warnings 3968 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3969 || dynamic_array[ni.number - 1] != 543); 3970 3971 ; 3972 return 0; 3973 } 3974 _ACEOF 3975 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3976 do 3977 CC="$ac_save_CC $ac_arg" 3978 if ac_fn_c_try_compile "$LINENO"; then : 3979 ac_cv_prog_cc_c99=$ac_arg 3980 fi 3981 rm -f core conftest.err conftest.$ac_objext 3982 test "x$ac_cv_prog_cc_c99" != "xno" && break 3983 done 3984 rm -f conftest.$ac_ext 3985 CC=$ac_save_CC 3986 3987 fi 3988 # AC_CACHE_VAL 3989 case "x$ac_cv_prog_cc_c99" in 3990 x) 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3992 $as_echo "none needed" >&6; } ;; 3993 xno) 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3995 $as_echo "unsupported" >&6; } ;; 3996 *) 3997 CC="$CC $ac_cv_prog_cc_c99" 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3999 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4000 esac 4001 if test "x$ac_cv_prog_cc_c99" != xno; then : 4002 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4003 else 4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4005 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4006 if test "${ac_cv_prog_cc_c89+set}" = set; then : 4007 $as_echo_n "(cached) " >&6 4008 else 4009 ac_cv_prog_cc_c89=no 4010 ac_save_CC=$CC 4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4012 /* end confdefs.h. */ 4013 #include <stdarg.h> 4014 #include <stdio.h> 4015 #include <sys/types.h> 4016 #include <sys/stat.h> 4017 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4018 struct buf { int x; }; 4019 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4020 static char *e (p, i) 4021 char **p; 4022 int i; 4023 { 4024 return p[i]; 4025 } 4026 static char *f (char * (*g) (char **, int), char **p, ...) 4027 { 4028 char *s; 4029 va_list v; 4030 va_start (v,p); 4031 s = g (p, va_arg (v,int)); 4032 va_end (v); 4033 return s; 4034 } 4035 4036 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4037 function prototypes and stuff, but not '\xHH' hex character constants. 4038 These don't provoke an error unfortunately, instead are silently treated 4039 as 'x'. The following induces an error, until -std is added to get 4040 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4041 array size at least. It's necessary to write '\x00'==0 to get something 4042 that's true only with -std. */ 4043 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4044 4045 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4046 inside strings and character constants. */ 4047 #define FOO(x) 'x' 4048 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4049 4050 int test (int i, double x); 4051 struct s1 {int (*f) (int a);}; 4052 struct s2 {int (*f) (double a);}; 4053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4054 int argc; 4055 char **argv; 4056 int 4057 main () 4058 { 4059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4060 ; 4061 return 0; 4062 } 4063 _ACEOF 4064 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4065 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4066 do 4067 CC="$ac_save_CC $ac_arg" 4068 if ac_fn_c_try_compile "$LINENO"; then : 4069 ac_cv_prog_cc_c89=$ac_arg 4070 fi 4071 rm -f core conftest.err conftest.$ac_objext 4072 test "x$ac_cv_prog_cc_c89" != "xno" && break 4073 done 4074 rm -f conftest.$ac_ext 4075 CC=$ac_save_CC 4076 4077 fi 4078 # AC_CACHE_VAL 4079 case "x$ac_cv_prog_cc_c89" in 4080 x) 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4082 $as_echo "none needed" >&6; } ;; 4083 xno) 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4085 $as_echo "unsupported" >&6; } ;; 4086 *) 4087 CC="$CC $ac_cv_prog_cc_c89" 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4089 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4090 esac 4091 if test "x$ac_cv_prog_cc_c89" != xno; then : 4092 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4093 else 4094 ac_cv_prog_cc_stdc=no 4095 fi 4096 4097 fi 4098 ;; 4099 esac 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4101 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4102 if test "${ac_cv_prog_cc_stdc+set}" = set; then : 4103 $as_echo_n "(cached) " >&6 4104 fi 4105 4106 case $ac_cv_prog_cc_stdc in #( 4107 no) : 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4109 $as_echo "unsupported" >&6; } ;; #( 4110 '') : 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4112 $as_echo "none needed" >&6; } ;; #( 4113 *) : 4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4115 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4116 esac 4117 4118 #AC_PROG_CC_C99 3825 4119 3826 4120 ###################################################################### … … 4842 5136 lt_cv_nm_interface="BSD nm" 4843 5137 echo "int some_variable = 0;" > conftest.$ac_ext 4844 (eval echo "\"\$as_me: 4844: $ac_compile\"" >&5)5138 (eval echo "\"\$as_me:5138: $ac_compile\"" >&5) 4845 5139 (eval "$ac_compile" 2>conftest.err) 4846 5140 cat conftest.err >&5 4847 (eval echo "\"\$as_me: 4847: $NM \\\"conftest.$ac_objext\\\"\"" >&5)5141 (eval echo "\"\$as_me:5141: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4848 5142 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4849 5143 cat conftest.err >&5 4850 (eval echo "\"\$as_me: 4850: output\"" >&5)5144 (eval echo "\"\$as_me:5144: output\"" >&5) 4851 5145 cat conftest.out >&5 4852 5146 if $GREP 'External.*some_variable' conftest.out > /dev/null; then … … 6053 6347 *-*-irix6*) 6054 6348 # Find out which ABI we are using. 6055 echo '#line 6 055"configure"' > conftest.$ac_ext6349 echo '#line 6349 "configure"' > conftest.$ac_ext 6056 6350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6057 6351 (eval $ac_compile) 2>&5 … … 7714 8008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7715 8009 -e 's:$: $lt_compiler_flag:'` 7716 (eval echo "\"\$as_me: 7716: $lt_compile\"" >&5)8010 (eval echo "\"\$as_me:8010: $lt_compile\"" >&5) 7717 8011 (eval "$lt_compile" 2>conftest.err) 7718 8012 ac_status=$? 7719 8013 cat conftest.err >&5 7720 echo "$as_me: 7720: \$? = $ac_status" >&58014 echo "$as_me:8014: \$? = $ac_status" >&5 7721 8015 if (exit $ac_status) && test -s "$ac_outfile"; then 7722 8016 # The compiler can only warn and ignore the option if not recognized … … 8053 8347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8054 8348 -e 's:$: $lt_compiler_flag:'` 8055 (eval echo "\"\$as_me:8 055: $lt_compile\"" >&5)8349 (eval echo "\"\$as_me:8349: $lt_compile\"" >&5) 8056 8350 (eval "$lt_compile" 2>conftest.err) 8057 8351 ac_status=$? 8058 8352 cat conftest.err >&5 8059 echo "$as_me:8 059: \$? = $ac_status" >&58353 echo "$as_me:8353: \$? = $ac_status" >&5 8060 8354 if (exit $ac_status) && test -s "$ac_outfile"; then 8061 8355 # The compiler can only warn and ignore the option if not recognized … … 8158 8452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8159 8453 -e 's:$: $lt_compiler_flag:'` 8160 (eval echo "\"\$as_me:8 160: $lt_compile\"" >&5)8454 (eval echo "\"\$as_me:8454: $lt_compile\"" >&5) 8161 8455 (eval "$lt_compile" 2>out/conftest.err) 8162 8456 ac_status=$? 8163 8457 cat out/conftest.err >&5 8164 echo "$as_me:8 164: \$? = $ac_status" >&58458 echo "$as_me:8458: \$? = $ac_status" >&5 8165 8459 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8166 8460 then … … 8213 8507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8214 8508 -e 's:$: $lt_compiler_flag:'` 8215 (eval echo "\"\$as_me:8 215: $lt_compile\"" >&5)8509 (eval echo "\"\$as_me:8509: $lt_compile\"" >&5) 8216 8510 (eval "$lt_compile" 2>out/conftest.err) 8217 8511 ac_status=$? 8218 8512 cat out/conftest.err >&5 8219 echo "$as_me:8 219: \$? = $ac_status" >&58513 echo "$as_me:8513: \$? = $ac_status" >&5 8220 8514 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8221 8515 then … … 10597 10891 lt_status=$lt_dlunknown 10598 10892 cat > conftest.$ac_ext <<_LT_EOF 10599 #line 10 599"configure"10893 #line 10893 "configure" 10600 10894 #include "confdefs.h" 10601 10895 … … 10693 10987 lt_status=$lt_dlunknown 10694 10988 cat > conftest.$ac_ext <<_LT_EOF 10695 #line 10 695"configure"10989 #line 10989 "configure" 10696 10990 #include "confdefs.h" 10697 10991 … … 12649 12943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12650 12944 -e 's:$: $lt_compiler_flag:'` 12651 (eval echo "\"\$as_me:12 651: $lt_compile\"" >&5)12945 (eval echo "\"\$as_me:12945: $lt_compile\"" >&5) 12652 12946 (eval "$lt_compile" 2>conftest.err) 12653 12947 ac_status=$? 12654 12948 cat conftest.err >&5 12655 echo "$as_me:12 655: \$? = $ac_status" >&512949 echo "$as_me:12949: \$? = $ac_status" >&5 12656 12950 if (exit $ac_status) && test -s "$ac_outfile"; then 12657 12951 # The compiler can only warn and ignore the option if not recognized … … 12748 13042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12749 13043 -e 's:$: $lt_compiler_flag:'` 12750 (eval echo "\"\$as_me:1 2750: $lt_compile\"" >&5)13044 (eval echo "\"\$as_me:13044: $lt_compile\"" >&5) 12751 13045 (eval "$lt_compile" 2>out/conftest.err) 12752 13046 ac_status=$? 12753 13047 cat out/conftest.err >&5 12754 echo "$as_me:1 2754: \$? = $ac_status" >&513048 echo "$as_me:13048: \$? = $ac_status" >&5 12755 13049 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12756 13050 then … … 12800 13094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12801 13095 -e 's:$: $lt_compiler_flag:'` 12802 (eval echo "\"\$as_me:1 2802: $lt_compile\"" >&5)13096 (eval echo "\"\$as_me:13096: $lt_compile\"" >&5) 12803 13097 (eval "$lt_compile" 2>out/conftest.err) 12804 13098 ac_status=$? 12805 13099 cat out/conftest.err >&5 12806 echo "$as_me:1 2806: \$? = $ac_status" >&513100 echo "$as_me:13100: \$? = $ac_status" >&5 12807 13101 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12808 13102 then … … 22090 22384 22091 22385 cat > conftest.$ac_ext <<EOF 22092 #line 22 092"configure"22386 #line 22386 "configure" 22093 22387 #include "confdefs.h" 22094 22388 #include <qglobal.h> -
trunk/FACT++/configure.ac
r12058 r12490 17 17 AC_PROG_CC([colorgcc gcc]) 18 18 AC_PROG_CXX([colorgcc g++]) 19 AC_PROG_CC_STDC 20 #AC_PROG_CC_C99 19 21 20 22 ######################################################################
Note:
See TracChangeset
for help on using the changeset viewer.