ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyc in qrscanner-0.3.1 vs ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyc in qrscanner-0.4

- old
+ new

@@ -1,14 +1,12 @@ -Ñò -âqLc -@s dZddkZddklZdZdZddd„Zd„Zd„Z d„Z +ó +âqLc@s dZddlZddlmZdZdZddd„Zd„Zd„Z d„Z d „Z e d „Z ddd „Zdddd „Zdddd „Zdddd„Zddd„Zdddddded„Zdd„Zdd„Zd„Zd„ZdS(sXSCons.Conftest Autoconf-like configuration support; low level implementation of tests. -iÿÿÿÿN(tIntTypeicCs}t|ƒ\}}}|o|id|ƒ|S|p -d}n|id|ƒ|i||ƒ}t||d|ƒ|S(sš +iÿÿÿÿN(tIntTypeicCsyt|ƒ\}}}|r0|jd|ƒ|S|s?d}n|jd|ƒ|j||ƒ}t||d|ƒ|S(sš Configure check to see if the compiler works. Note that this uses the current value of compiler and linker flags, make sure $CFLAGS, $CPPFLAGS and $LIBS are set correctly. "language" should be "C" or "C++" and is used to select the compiler. Default is "C". @@ -18,12 +16,11 @@ s int main() { return 0; } s(Checking if building a %s file works... N(t _lang2suffixtDisplayt BuildProgt _YesNoResulttNone(tcontextttexttlanguagetlangtsuffixtmsgtret((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt CheckBuilder{s - -cCs?|idƒd}t|d|dƒ}t||d|ƒ|S(s + cCs?|jdƒd}t|d|dƒ}t||d|ƒ|S(s Configure check for a working C compiler. This checks whether the C compiler, as defined in the $CC construction variable, can compile a C source file. It uses the current $CCCOM value too, so that it can test against non working flags. @@ -32,11 +29,11 @@ int main() { return 0; } tCCtCN(Rt_check_empty_programRR(RRR ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pytCheckCC–s - cCsE|idƒd}t|d|ddtƒ}t||d|ƒ|S(s + cCsE|jdƒd}t|d|ddtƒ}t||d|ƒ|S(s Configure check for a working shared C compiler. This checks whether the C compiler, as defined in the $SHCC construction variable, can compile a C source file. It uses the current $SHCCCOM value too, so that it can test against non working flags. @@ -46,11 +43,11 @@ { return 0; } tSHCCRt use_sharedN(RRtTrueRR(RRR ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt CheckSHCCªs - cCs?|idƒd}t|d|dƒ}t||d|ƒ|S(s  + cCs?|jdƒd}t|d|dƒ}t||d|ƒ|S(s  Configure check for a working CXX compiler. This checks whether the CXX compiler, as defined in the $CXX construction variable, can compile a CXX source file. It uses the current $CXXCOM value too, so that it can test against non working flags. @@ -59,11 +56,11 @@ int main() { return 0; } tCXXsC++N(RRRR(RRR ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pytCheckCXX¾s - cCsE|idƒd}t|d|ddtƒ}t||d|ƒ|S(s + cCsE|jdƒd}t|d|ddtƒ}t||d|ƒ|S(s Configure check for a working shared CXX compiler. This checks whether the CXX compiler, as defined in the $SHCXX construction variable, can compile a CXX source file. It uses the current $SHCXXCOM value too, so that it can test against non working flags. @@ -73,13 +70,13 @@ { return 0; } tSHCXXsC++RN(RRRRR(RRR ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt CheckSHCXXÒs - cCsq||ijp|i| odSt|ƒ\}}}|odS|o|i||ƒS|i||ƒSdS(s!Return 0 on success, 1 otherwise.iN(tenvRtCompileSharedObjectt CompileProg(RtcompRRRR R -R ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyRæsc -CsØ|iod|i}nd}|pd|}nt|ƒ\}}}|o|id||fƒ|Sdh|d6|d6|d6}|id ||fƒ|i||ƒ} t|| d + cCsj||jks|j| r!dSt|ƒ\}}}|r@dS|rV|j||ƒS|j||ƒSdS(s!Return 0 on success, 1 otherwise.iN(tenvRtCompileSharedObjectt CompileProg(RtcompRRRR R +R ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyRæsc +CsÒ|jrd|j}nd}|s2d|}nt|ƒ\}}}|rh|jd||fƒ|Sdi|d6|d6|d6}|jd ||fƒ|j||ƒ} t|| d ||d |ƒ| S( s7 Configure check for a function "function_name". "language" should be "C" or "C++" and is used to select the compiler. Default is "C". Optional "header" can be defined to define a function prototype, include a @@ -107,14 +104,11 @@ return 0; } tnametincludethdrs!Checking for %s function %s()... tHAVE_s0Define to 1 if the system has the function `%s'.(theaderfilenameRRRR( Rt function_nametheaderRt includetextR R -R RR ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt CheckFuncös$ -  c Csç|iod|i}nd}|p -d}nt|ƒ\}}}|o|id||fƒ|S|p -d}nd|||d||df} |id||fƒ|i| |ƒ} +R RR ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt CheckFuncös$    c Csß|jrd|j}nd}|s.d}nt|ƒ\}}}|rd|jd||fƒ|S|ssd}nd|||d||df} |jd||fƒ|j| |ƒ} t|| d || d |ƒ| S( s. Configure check for a C or C++ header file "header_name". @@ -130,19 +124,15 @@ Rs$Cannot check for header file %s: %s s<>s%s%s #include %s%s%s iis"Checking for %s header file %s... R"s-Define to 1 if you have the <%s> header file.(R#RRRR( Rt header_nameR%Rtinclude_quotesR&R R -R RR ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt CheckHeader;s& - -  -  c Cs#|iod|i}nd}|p -d}nt|ƒ\}}}|o|id||fƒ|Sdh|d6|d6|d6} |id||fƒ|i| |ƒ} +R RR ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt CheckHeader;s&      c Cs|jrd|j}nd}|s.d}nt|ƒ\}}}|rd|jd||fƒ|Sdi|d6|d6|d6} |jd||fƒ|j| |ƒ} t|| d || d |ƒ| -oH|oA|io7t|id ƒ} | id ||fƒ| iƒn| +r|r|jrt|jd ƒ} | jd ||fƒ| jƒn| S( sé Configure check for a C or C++ type "type_name". Optional "header" can be defined to include a header file. "language" should be "C" or "C++" and is used to select the compiler. Default is "C". @@ -161,24 +151,21 @@ if (sizeof (%(name)s)) return 0; } R R%RsChecking for %s type %s... R"s,Define to 1 if the system has the type `%s'.tastypedef %s %s; (R#RRRRtopentwritetclose( Rt type_nametfallbackR%RR&R R -R RR tf((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt CheckTypeks* - -   c CsÝ|iod|i}nd}|p -d}nt|ƒ\}}}|o|id||fƒ|S||} |dj o–|id||fƒ| d} |i| ||f|ƒ} +R RR tf((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt CheckTypeks*      c CsÏ|jrd|j}nd}|s.d}nt|ƒ\}}}|rd|jd||fƒ|S||} |dk r |jd||fƒ| d} |j| ||f|ƒ} | -p-|idƒt|d||d|ƒ|S|id ƒt|| | +sé|jdƒt|d||d|ƒ|S|jd ƒt|| | ƒd -SnÃ|id |ƒ| d |d } |i| |ƒ\} -} yt | ƒ} Wnt -j -od} +Sn¾|jd |ƒ| d |d } |j| |ƒ\} +} yt | ƒ} Wnt +k +rwd} d -} nX| -p-|idƒt|d|| d|ƒ| S|id ƒt|| | +} nX| +sª|jdƒt|d|| d|ƒ| S|jd ƒt|| | ƒd Sd S(szThis check can be used to get the size of a given type, or to check whether the type is of expected size. @@ -216,17 +203,15 @@ return 0; } iN( R#RRRRt_Havet _LogFailedtMessagetRunProgtintt ValueError( RR/R%RtexpectR&R R -R tsrctsttouttsize((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt CheckTypeSize©sR - - -  -        c -CsÍ|iod|i}nd}|p -d}nt|ƒ\}}}|o|idt|fƒ|S||}|id|ƒ|d||f}|i||ƒ} t|| d||d|ƒ| S(sÜChecks whether symbol is declared. +R tsrctsttouttsize((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt CheckTypeSize©sR   +  +      +   c +CsÇ|jrd|j}nd}|s.d}nt|ƒ\}}}|rd|jdt|fƒ|S||}|jd|ƒ|d||f}|j||ƒ} t|| d||d|ƒ| S(sÜChecks whether symbol is declared. Use the same test as autoconf, that is test whether the symbol is defined as a macro or can be used as an r-value. Arguments: @@ -250,24 +235,22 @@ return 0; } t HAVE_DECL_sSet to 1 if %s is defined.(R#RRR/RR( RtsymboltincludesRR&R R -R R:R;((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pytCheckDeclarations" - - -  c  CsT|iod|i} nd} |p -d}nd| |f} -|o?|djo2|p| +R R:R;((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pytCheckDeclarations"   +  c  +Cs2|jrd|j} nd} |s.d}nd| |f} +|r}|dkr}|sg| d|} -n|pd|}qˆn| -d|pd} -|oW|idƒ} | d jo|| d -} qû|d d jo|d } qû|} nxR|D]J} t|ƒ\}}}|o|id | |fƒ|S|o|id| || fƒn|id|| fƒ| oX| g}|o|i|ƒn|o|i|ƒ}n|i|ƒ}d| }n d }d}|i| +n|s}d|}q}n| +d|pŒd} +|ré|jdƒ} | d krÃ|| d +} qé|d d krà|d } qé|} nxB|D]:} t|ƒ\}}}|r,|jd | |fƒ|S|rO|jd| || fƒn|jd|| fƒ| r¿| g}|r‹|j|ƒn|r£|j|ƒ}n|j|ƒ}d| }n d }d}|j| |ƒ}t |||| -d| ƒ|d jo |p| o|i -|ƒn|p|SqW|S(si +d| ƒ|d kr |s| r |j +|ƒn|sð|SqðW|S(si Configure check for a C or C++ libraries "libs". Searches through the list of libraries, until one is found where the test succeeds. Tests if "func_name" or "call" exists in the library. Note: if it exists in another library the test succeeds anyway! Optional "header" can be defined to include a header file. If not given a @@ -300,25 +283,23 @@ s is..iÿÿÿÿt;s Cannot check for library %s: %s s$Checking for %s in %s library %s... sChecking for %s library %s... tHAVE_LIBs)Define to 1 if you have the `%s' library.N( R#tfindRRtextendt AppendLIBSt PrependLIBSRRRtSetLIBS(Rtlibst func_nameR%t extra_libstcallRtautoaddtappendR&Rtitcalltexttlib_nameR R -R tltoldLIBStsymR ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pytCheckLibCsd - -  -     cCsX|ot||| |ƒn|o!|idƒt|||ƒn|idƒdS(s¡ +R tltoldLIBStsymR ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pytCheckLibCsb           cCsT|rt||| |ƒn|rC|jdƒt|||ƒn |jdƒdS(s¡ Handle the result of a test with a "yes" or "no" result. "ret" is the return value: empty if OK, error message when not. "key" is the name of the symbol to be defined (HAVE_foo). "text" is the source code of the program used for testing. "comment" is the C comment to add above the line defining the symbol (the comment is automatically put inside a /* */). If None, no comment is added. sno syes -N(R3RR4(RR tkeyRtcomment((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyR³s  cCs&|iƒ}tidd|ƒ}||i|<|djod|}nV|djod|}n;t|tƒod||f}nd|t|ƒf}|d j od ||}n d -|}|io-t |id ƒ}|i -|ƒ|i ƒn%t |d ƒo|i ||_ nd S(s& +N(R3RR4(RR tkeyRtcomment((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyR³s  cCs|jƒ}tjdd|ƒ}||j|<|dkrGd|}nQ|dkr`d|}n8t|tƒr‚d||f}nd|t|ƒf}|d k rµd ||}n +d +|}|jrôt |jd ƒ}|j +|ƒ|j ƒn"t |d ƒr|j ||_ nd S(s& Store result of a test in context.havedict and context.headerfilename. "key" is a "HAVE_abc" name. It is turned into all CAPITALS and non- alphanumerics are replaced by an underscore. The value of "have" can be: 1 - Feature is defined, add "#define key". @@ -338,26 +319,25 @@ s /* %s */ s R+tconfig_hN(tuppertretsubthavedictt -isinstanceRtstrRR#R,R-R.thasattrR[(RRXthaveRYtkey_uptlinetlinesR1((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyR3Ås&      - - cCs«to„|idƒ|idƒ}t|ƒo|ddjo|d }nd}x3|D]'}|id||fƒ|d}q\Wnto|id|ƒndS( sr +isinstanceRtstrRR#R,R-R.thasattrR[(RRXthaveRYtkey_uptlinetlinesR1((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyR3Ås&        +   cCs¤tr†|jdƒ|jdƒ}t|ƒrK|ddkrK|d }nd}x2|D]'}|jd||fƒ|d}qXWntr |jd|ƒndS( sr Write to the log about a failed program. Add line numbers, so that error messages can be understood. sFailed program was: s iÿÿÿÿRis%d: %s sError message: %s -N(t LogInputFilestLogtsplittlentLogErrorMessages(RRR RftnRe((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyR4îs cCs=| p |d jod S|djodSd d d +N(t LogInputFilestLogtsplittlentLogErrorMessages(RRR RftnRe((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyR4îs   cCs8| s|d krd S|dkr'dSd d d |fS(s` Convert a language name to a suffix. When "lang" is empty or None C is assumed. Returns a tuple (lang, suffix, None) when it works. For an unrecognized language returns (None, None, msg). Where: lang = the unified language name suffix = the suffix, including the leading dot msg = an error message Rtcs.csc++sC++tcppRtcxxs.cppsUnsupported language: %s(RRmN(Rs.cN(sc++sC++scppsCXXRo(sC++s.cppN(R(R ((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyRs -  (t__doc__R]ttypesRRgRkRR RRRRtFalseRR'R*R2R>RBRRWRR3R4R(((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt<module>s0c       E /=g3  n  )  +  (t__doc__R]ttypesRRgRkRR RRRRtFalseRR'R*R2R>RBRRWRR3R4R(((s^/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/Conftest.pyt<module>s0c       E /=g3  n  )  \ No newline at end of file