• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/usb-modeswitch-2.2.3/jim/autosetup/

Lines Matching defs:define

56 # Checks for the existence of the given define by compiling
63 # a macro (#define) or an rvalue (such as an enum)
88 set define [feature-define-name $type SIZEOF_]
89 define $define $size
92 get-define $define
129 # @cc-check-defines define ...
141 # such as an enum. Note that the define used for a decl is HAVE_DECL_xxx
148 define-feature "decl $name" $r
187 # In addition, -l$lib is added to the LIBS define.
201 define lib_$function ""
208 define lib_$function -l$lib
209 define-append LIBS -l$lib
218 define [feature-define-name $function]
241 set exe [get-env $TOOL [get-define cross]$tool]
245 define $TOOL $exe
266 define $PROG false
270 define $PROG $prog
398 ## -sourcefile file Shorthand for -source [readfile [get-define srcdir]/$file]
423 set opts(-source) [readfile [get-define srcdir]/$opts(-sourcefile) "#error can't find $opts(-sourcefile)"]
453 lappend cmdline {*}[get-define CCACHE]
456 lappend cmdline {*}[get-define CXX] {*}[get-define CXXFLAGS]
459 lappend cmdline {*}[get-define CC] {*}[get-define CFLAGS]
472 switch -glob -- [get-define host] {
552 lappend lines "#define $guard"
558 set value [get-define $n]
559 set type [calc-define-output-type $n $args]
587 lappend lines "#define $n $value"
596 proc calc-define-output-type {name spec} {
610 define $var [get-env $var $default]
618 set try [list [get-define cross]cc [get-define cross]gcc]
620 define CC [find-an-executable {*}$try]
621 if {[get-define CC] eq ""} {
625 define CPP [get-env CPP "[get-define CC] -E"]
630 define CXX [find-an-executable -required [get-env CXX ""]]
632 define CXX [find-an-executable [get-define cross]c++ [get-define cross]g++ false]
636 define CXXFLAGS [get-env CXXFLAGS [get-define CFLAGS]]
641 define CC_FOR_BUILD [find-an-executable [get-env CC_FOR_BUILD ""] cc gcc false]
643 if {[get-define CC] eq ""} {
647 define CCACHE [find-an-executable [get-env CCACHE ccache]]
652 msg-result "C compiler...[get-define CCACHE] [get-define CC] [get-define CFLAGS]"
653 if {[get-define CXX] ne "false"} {
654 msg-result "C++ compiler...[get-define CCACHE] [get-define CXX] [get-define CXXFLAGS]"
656 msg-result "Build C compiler...[get-define CC_FOR_BUILD]"