Ignore:
Timestamp:
May 12, 2010 10:59:20 AM (15 years ago)
Author:
bennylp
Message:

Support for iPhone tools in the build system:

  • more flexible redeclaration of build tools. Now users may override build tools with environment variables, e.g. CC, AR, RANLIB, etc.
  • added configure-iphone: configure wrapper for iphone
  • tested with iPhone 2.x SDK

This closes #1050

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/iphone/aconfigure

    r3099 r3168  
    672672CXXFLAGS 
    673673ac_ct_CXX 
     674AR 
     675LD 
     676LDOUT 
     677RANLIB 
     678LIBEXT 
     679LIBEXT2 
     680CC_OUT 
     681CC_INC 
     682CC_DEF 
     683CC_OPTIMIZE 
     684CC_CFLAGS 
    674685ac_pjdir 
    675686ac_build_mak_vars 
     
    19461957ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h" 
    19471958 
    1948 ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak third_party/build/portaudio/os-auto.mak" 
     1959ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak third_party/build/portaudio/os-auto.mak" 
    19491960 
    19501961 
     
    32463257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 
    32473258ac_compiler_gnu=$ac_cv_c_compiler_gnu 
     3259 
     3260 
     3261if test "$AR" = ""; then AR="$(CROSS_COMPILE)ar rv"; fi 
     3262 
     3263if test "$LD" = ""; then LD="$CC"; fi 
     3264 
     3265if test "$LDOUT" = ""; then LDOUT="-o"; fi 
     3266 
     3267if test "$RANLIB" = ""; then RANLIB="$(CROSSCOMPILE)ranlib"; fi 
     3268 
     3269if test "$OBJEXT" = ""; then OBJEXT='o'; fi 
     3270 
     3271if test "$LIBEXT" = ""; then LIBEXT='a'; fi 
     3272 
     3273if test "$LIBEXT2" = ""; then LIBEXT2=""; fi 
     3274 
     3275if test "$CC_OUT" = ""; then CC_OUT="-o"; fi 
     3276 
     3277if test "$CC_INC" = ""; then CC_INC="-I"; fi 
     3278 
     3279if test "$CC_DEF" = ""; then CC_DEF="-D"; fi 
     3280 
     3281if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi 
     3282 
     3283if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi 
     3284 
     3285 
    32483286 
    32493287 
     
    1100311041else 
    1100411042 case $target in 
     11043  arm-apple-darwin*) 
     11044        LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox" 
     11045        { echo "$as_me:$LINENO: result: Checking sound device backend... AudioUnit" >&5 
     11046echo "${ECHO_T}Checking sound device backend... AudioUnit" >&6; } 
     11047        ;; 
    1100511048  *darwin*) 
    1100611049        LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" 
     
    1277012813    "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; 
    1277112814    "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; 
     12815    "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; 
    1277212816    "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; 
    1277312817    "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; 
     
    1289612940CXXFLAGS!$CXXFLAGS$ac_delim 
    1289712941ac_ct_CXX!$ac_ct_CXX$ac_delim 
     12942AR!$AR$ac_delim 
     12943LD!$LD$ac_delim 
     12944LDOUT!$LDOUT$ac_delim 
     12945RANLIB!$RANLIB$ac_delim 
     12946LIBEXT!$LIBEXT$ac_delim 
     12947LIBEXT2!$LIBEXT2$ac_delim 
     12948CC_OUT!$CC_OUT$ac_delim 
     12949CC_INC!$CC_INC$ac_delim 
     12950CC_DEF!$CC_DEF$ac_delim 
     12951CC_OPTIMIZE!$CC_OPTIMIZE$ac_delim 
     12952CC_CFLAGS!$CC_CFLAGS$ac_delim 
    1289812953ac_pjdir!$ac_pjdir$ac_delim 
    1289912954ac_build_mak_vars!$ac_build_mak_vars$ac_delim 
     
    1292312978libssl_present!$libssl_present$ac_delim 
    1292412979libcrypto_present!$libcrypto_present$ac_delim 
    12925 ac_cross_compile!$ac_cross_compile$ac_delim 
    12926 ac_linux_poll!$ac_linux_poll$ac_delim 
    12927 ac_host!$ac_host$ac_delim 
    12928 ac_main_obj!$ac_main_obj$ac_delim 
    12929 LIBOBJS!$LIBOBJS$ac_delim 
    12930 LTLIBOBJS!$LTLIBOBJS$ac_delim 
    12931 _ACEOF 
    12932  
    12933   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then 
     12980_ACEOF 
     12981 
     12982  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 
    1293412983    break 
    1293512984  elif $ac_last_try; then 
     
    1295012999cat >>$CONFIG_STATUS <<_ACEOF 
    1295113000cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 
     13001/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 
     13002_ACEOF 
     13003sed ' 
     13004s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 
     13005s/^/s,@/; s/!/@,|#_!!_#|/ 
     13006:n 
     13007t n 
     13008s/'"$ac_delim"'$/,g/; t 
     13009s/$/\\/; p 
     13010N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 
     13011' >>$CONFIG_STATUS <conf$$subs.sed 
     13012rm -f conf$$subs.sed 
     13013cat >>$CONFIG_STATUS <<_ACEOF 
     13014CEOF$ac_eof 
     13015_ACEOF 
     13016 
     13017 
     13018ac_delim='%!_!# ' 
     13019for ac_last_try in false false false false false :; do 
     13020  cat >conf$$subs.sed <<_ACEOF 
     13021ac_cross_compile!$ac_cross_compile$ac_delim 
     13022ac_linux_poll!$ac_linux_poll$ac_delim 
     13023ac_host!$ac_host$ac_delim 
     13024ac_main_obj!$ac_main_obj$ac_delim 
     13025LIBOBJS!$LIBOBJS$ac_delim 
     13026LTLIBOBJS!$LTLIBOBJS$ac_delim 
     13027_ACEOF 
     13028 
     13029  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then 
     13030    break 
     13031  elif $ac_last_try; then 
     13032    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 
     13033echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 
     13034   { (exit 1); exit 1; }; } 
     13035  else 
     13036    ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 
     13037  fi 
     13038done 
     13039 
     13040ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 
     13041if test -n "$ac_eof"; then 
     13042  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 
     13043  ac_eof=`expr $ac_eof + 1` 
     13044fi 
     13045 
     13046cat >>$CONFIG_STATUS <<_ACEOF 
     13047cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 
    1295213048/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 
    1295313049_ACEOF 
     
    1320713303s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 
    1320813304$ac_datarootdir_hack 
    13209 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 
     13305" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 
    1321013306 
    1321113307test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 
Note: See TracChangeset for help on using the changeset viewer.