#! /bin/sh arg_pp="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/empty" arg_pp_main="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/arg-pp-main" arg_source="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/arg-source" buildcmd="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/buildcmd" cache="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/cache" cache_body="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/cache-body" cleanup="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/empty" cmd_sink="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/cmd-sink-qnx-cc" logic="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/logic" reorderlibs="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/reorderlibs" shell_lib="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/shell-lib" scan="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/scan" transform="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/transform-qnx-cc" transform_sed=" -f /usr/pkgsrc/lang/php5/work/.wrapper/tmp/transform.sed" wrapper_subr_sh="/usr/pkgsrc/lang/php5/work/.wrapper/tmp/wrapper-subr.sh" wrapper_abi="" # see ABI in mk/defaults/mk.conf wrapper_type="CC" # one of AS, CC, CXX, FC, IMAKE, LD, LIBTOOL. wrapperlog="${WRAPPER_LOG-/usr/pkgsrc/lang/php5/work/.work.log}" skip_transform="${WRAPPER_SKIP_TRANSFORM-no}" debug="${WRAPPER_DEBUG-no}" cat="/bin/cat" echo="echo" expr="/usr/bin/expr" mv="/bin/mv" sed="/usr/pkg/bin/nbsed" test="test" Xsed="$sed -e 1s/^X//" . $shell_lib msg_log() { : ${echo=echo} _msg_log="$1"; shift case $_msg_log in stdout) $echo "$@" ;; stderr) $echo "$@" 1>&2 ;; *) $echo "$@" >> $_msg_log ;; esac } die() { msg_log stderr "$@" exit 1 } check_prog() { : ${test=test} _ckp_var="$1"; shift eval _ckp_tmp=\"\$$_ckp_var\" if $test "x$_ckp_tmp" != "x"; then return 0 fi for _ckp_prog do _ckp_IFS="${IFS}"; IFS=":" for _ckp_dir in ${PATH}; do if $test -x "$_ckp_dir/$_ckp_prog"; then eval $_ckp_var=\""$_ckp_dir/$_ckp_prog"\" return 1 fi done IFS="${_ckp_IFS}" done die "$_ckp_var could not be set." } shquote() { : ${echo=echo} : ${sed=sed} _shq_arg=$1 _shq_sed="$sed -e 1s/^X//" _shq_sed_quote_subst='s/\([\`\"$\\]\)/\\\1/g' case $_shq_arg in *[\`\"\$\\]*) shquoted=`$echo "X$_shq_arg" | $_shq_sed -e "$_shq_sed_quote_subst"` ;; *) shquoted="$_shq_arg" ;; esac case $shquoted in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") shquoted="\"$shquoted\"" ;; esac } lock_file() { : ${dirname=dirname} : ${echo=echo} : ${link=link} : ${mkdir=mkdir} : ${mktemp=mktemp} : ${rm=rm} : ${test=test} : ${touch=touch} _lf_lockfile= _lf_nfs= while $test $# -gt 0; do case $1 in -f) _lf_lockfile="$2"; shift ;; -n) _lf_nfs="$2"; shift ;; esac shift done if $test -z "$_lf_lockfile"; then $echo 1>&2 "$0: no lock file specified." exit fi _lf_pid=$$ _lf_lockdir=`$dirname $_lf_lockfile` _lf_uniqfile=`$mktemp "$_lf_lockdir/.lock.$_lf_nfs.$_lf_pid.XXXXXX" 2>/dev/null` || return 1 if $test -n "$_lf_nfs"; then { $echo $_lf_pid; $echo $_lf_nfs; } > $_lf_uniqfile else $echo $_lf_pid > $_lf_uniqfile fi $link $_lf_uniqfile $_lf_lockfile 2>/dev/null if $test $_lf_uniqfile -ef $_lf_lockfile; then _lf_result=0 else _lf_result=1 fi $rm -f $_lf_uniqfile return $_lf_result } init_queue() { _qname="$1" eval "_q${_qname}head=1111111111" eval "_q${_qname}tail=1111111111" } append_queue() { : ${test=test} _qname="$1"; shift while $test $# -gt 0; do eval "_qtail=\"\$_q${_qname}tail\"" eval "_q${_qname}${_qtail}=\"\${1}\"" case $_qtail in *000000000) _qtail=${_qtail%000000000}1 ;; *) _qtail=${_qtail}0 ;; esac eval "_q${_qname}tail=\"\${_qtail}\"" shift done } prepend_queue() { : ${test=test} _qname="$1"; shift while $test $# -gt 0; do eval "_qhead=\"\$_q${_qname}head\"" case $_qhead in *1) _qhead=${_qhead%1}000000000 ;; *) _qhead=${_qhead%0} ;; esac eval "_q${_qname}${_qhead}=\"\${1}\"" eval "_q${_qname}head=\"\${_qhead}\"" shift done } head_queue() { _qname="$1"; shift eval "_qhead=\"\$_q${_qname}head\"" eval "${1}=\"\$_q${_qname}${_qhead}\"" } pop_queue() { _qname="$1"; shift head_queue $_qname $1 case $_qhead in *000000000) _qhead=${_qhead%000000000}1 ;; *) _qhead=${_qhead}0 ;; esac eval "_q${_qname}head=\"\${_qhead}\"" } queue_is_empty() { : ${test=test} _qname="$1" eval "_qhead=\"\$_q${_qname}head\"" eval "_qtail=\"\$_q${_qname}tail\"" $test "$_qhead" = "$_qtail" return $? } init_fqueue() { _fqname="$1" : > "$_fqname" } append_fqueue() { : ${echo=echo} : ${test=test} _fqname="$1"; shift while $test $# -gt 0; do $echo "$1" >> "$_fqname" shift done } prepend_fqueue() { : ${cat=cat} : ${echo=echo} : ${mv=mv} _fqname="$1"; shift _fqtmpfile="$_fqname.$$" init_queue _fqtmpqueue prepend_queue _fqtmpqueue "$@" while ! queue_is_empty _fqtmpqueue; do pop_queue _fqtmpqueue _fqelt $echo "$_fqelt" >> "$_fqtmpfile" done $cat "$_fqname" >> "$_fqtmpfile" $mv -f "$_fqtmpfile" "$_fqname" } head_fqueue() { : ${head=head} _fqname="$1"; shift _tmp=`$head -n 1 "$_fqname"` eval "${1}=\"\$_tmp\"" } pop_fqueue() { : ${mv=mv} : ${sed=sed} _fqname="$1"; shift _fqtmpfile="$_fqname.$$" head_fqueue "$_fqname" $1 $sed "1,1d" "$_fqname" >> "$_fqtmpfile" $mv -f "$_fqtmpfile" "$_fqname" } fqueue_is_empty() { : ${test=test} : ${wc=wc} _fqname="$1" if $test -f "$_fqname"; then _fqlines=`$wc -l < "$_fqname"` return $_fqlines else return 1 fi } . "$wrapper_subr_sh" transform_setname() { wrapsubr_name="$1" } transform_to() { arg="$1" $debug_log $wrapperlog " ($wrapsubr_name) to: $1" addtocache=yes } transform_to_and_split() { arg="$1" $debug_log $wrapperlog " ($wrapsubr_name) to: $1 [split]" addtocache=yes split_arg=yes } transform_discard() { $debug_log $wrapperlog " ($wrapsubr_name) discarded: $arg" arg="" addtocache=yes split_arg=yes } transform_discard_with_warning() { _warning=${1-"discarding option $arg"} msg_log "$wrapperlog" "WARNING: [$wrapsubr_name] $_warning" transform_discard addtocache=no } transform_pass() { $debug_log $wrapperlog " ($wrapsubr_name) to: $arg [unchanged]" addtocache=yes } transform_pass_with_warning() { _warning=${1-"passing unknown option $arg"} msg_log "$wrapperlog" "WARNING: [$wrapsubr_name] $_warning" $debug_log $wrapperlog " ($wrapsubr_name) to: $arg [unchanged]" addtocache=no } transform_fail() { msg_log "$wrapperlog" "ERROR: [$wrapsubr_name] $1" msg_log stderr "ERROR: [$wrapsubr_name] $1" exit 1 } fail() { msg_log "$wrapperlog" "ERROR: [$1] $2" msg_log stderr "ERROR: [$1] $2" exit 1 } updatecache=${WRAPPER_UPDATE_CACHE-yes} reorder=${WRAPPER_REORDER-no} case $debug in yes) debug_log="msg_log" ;; *) debug_log=":" ;; esac qcmd="$0"; for arg in ${1+"$@"}; do shquote "$arg"; qcmd="$qcmd $shquoted"; done msg_log "$wrapperlog" "[*] $0 $qcmd" cmd="/usr/pkgsrc/lang/php5/work/.gcc/bin/qcc" case "$*" in *--wrappee-name*) $echo $cmd ; exit ;; esac libs="" rellpath="" do_transform=yes init_queue argbuf _qargbufhead=1111111111 _qargbuftail=1111111111 init_queue cmdbuf _qcmdbufhead=1111111111 _qcmdbuftail=1111111111 append_extra_args=yes . $scan for arg do case $arg in -v) append_extra_args=no; break ;; *) ;; esac done case $append_extra_args in yes) $debug_log $wrapperlog " (wrapper.sh) append args: -I/usr/pkgsrc/lang/php5/work/.buildlink/include -L/usr/pkgsrc/lang/php5/work/.buildlink/lib" set -- "$@" -I/usr/pkgsrc/lang/php5/work/.buildlink/include -L/usr/pkgsrc/lang/php5/work/.buildlink/lib ;; *) ;; esac . $arg_source while $test $# -gt 0; do arg="$1"; shift case $arg in -[DILR]) nextarg="$1"; shift case "$nextarg" in -*) msg_log $wrapperlog "WARNING: [arg-source] An $arg option must not be followed by another option, $nextarg." ;; esac append_queue argbuf "$arg$nextarg" $debug_log $wrapperlog " (arg-source) push: $arg$nextarg" ;; -Wl,*,*) $debug_log $wrapperlog " (arg-source) before-split: $arg $*" saved_IFS="$IFS" new_args="" IFS="," for o in ${arg#-Wl,}; do IFS="$saved_IFS" shquote "$o"; o="$shquoted" new_args="$new_args -Wl,$o" done IFS="$saved_IFS" eval "set args $new_args \"\$@\""; shift $debug_log $wrapperlog " (arg-source) after-split: $*" continue ;; -R*:*|-Wl,-R*:*|\ -Wl,-rpath,*:*|-Wl,-rpath-link,*:*|-Wl,--rpath,*:*) case $arg in -R*) R="-R" ;; -Wl,-R*) R="-Wl,-R" ;; -Wl,-rpath,*) R="-Wl,-rpath," ;; -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;; -Wl,--rpath,*) R="-Wl,--rpath," ;; esac list="${arg#$R}" save_IFS="${IFS}"; IFS=":" for dir in $list; do IFS="${save_IFS}" append_queue argbuf "$R$dir" $debug_log $wrapperlog " (arg-source) push: $R$dir" done IFS="${save_IFS}" ;; -Wl,-R|-Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) nextarg="$1"; shift case $arg in -Wl,-R) R="-Wl,-R" ;; -Wl,-rpath) R="-Wl,-rpath," ;; -Wl,-rpath-link) R="-Wl,-rpath-link," ;; -Wl,--rpath) R="-Wl,--rpath," ;; esac nextarg="${nextarg#-Wl,}" case $nextarg in *:*) save_IFS="${IFS}"; IFS=":" for dir in $nextarg; do IFS="${save_IFS}" append_queue argbuf "$R$dir" $debug_log $wrapperlog " (arg-source) push: $R$dir" done IFS="${save_IFS}" ;; *) append_queue argbuf "$R$nextarg" $debug_log $wrapperlog " (arg-source) push: $R$nextarg" ;; esac ;; -Xlinker) nextarg="$1"; shift case $nextarg in -Wl,*) append_queue argbuf "$nextarg" $debug_log $wrapperlog " (arg-source) push: $nextarg" ;; *) append_queue argbuf "-Wl,$nextarg" $debug_log $wrapperlog " (arg-source) push: -Wl,$nextarg" ;; esac ;; -c|-S|-E) dont_link=yes append_queue argbuf "$arg" $debug_log $wrapperlog " (arg-source) push: $arg" ;; *) append_queue argbuf "$arg" $debug_log $wrapperlog " (arg-source) push: $arg" ;; esac done _qtail="$_qargbuftail" _qargbuf1111111111="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf11111111110="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf111111111100="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf1111111111000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf11111111110000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf111111111100000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf1111111111000000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf11111111110000000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf111111111100000000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf1111111111000000000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf11111111111="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf111111111110="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf1111111111100="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf11111111111000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf111111111110000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf1111111111100000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf11111111111000000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf111111111110000000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf1111111111100000000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf11111111111000000000="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf111111111111="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf1111111111110="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf11111111111100="${1}" _qargbuftail="${_qtail}" _qtail="$_qargbuftail" _qargbuf111111111111000="${1}" _qargbuftail="${_qtail}" . $logic skipargs=0 while ! queue_is_empty argbuf; do argok=no while $test "$argok" = "no"; do if queue_is_empty argbuf; then argok=yes continue fi pop_queue argbuf arg $debug_log $wrapperlog " (logic) pop: $arg" if $test $skipargs -eq 0; then do_transform=yes else skipargs=`$expr $skipargs - 1 || true` do_transform=no argok=yes continue fi argmatch=no . $arg_pp_main case $argmatch in yes) continue ;; esac . $arg_pp case $argmatch in yes) continue ;; esac argok=yes done case $do_transform in yes) . $cache case $cachehit in yes) $debug_log $wrapperlog " (logic) to: $arg [cached]" ;; *) addtocache=no split_arg=no case $skip_transform in yes) $debug_log $wrapperlog " (logic) to: $arg [untransformed]" ;; *) shquote "$arg"; cachearg="$shquoted" case $arg in -*|/*) case $transform_sed in "") ;; *) arg=`$echo "X$arg" | $Xsed $transform_sed` $debug_log $wrapperlog " (logic) to: $arg" addtocache=yes ;; esac ;; *) $debug_log $wrapperlog " (logic) to: $arg [untransformed]" ;; esac . $transform ;; esac case $arg in -l*) split_arg=yes ;; esac case $updatecache,$addtocache in yes,yes) shquote "$arg"; cachedarg="$shquoted" $cat >> $cache_body << EOF $cachearg) arg=$cachedarg; split_arg=$split_arg; cachehit=yes ;; EOF { echo "case \$arg in" $cat $cache_body echo "*) cachehit=no ;;" echo "esac" } > $cache-$$.tmp $mv -f $cache-$$.tmp $cache ;; esac ;; esac case $split_arg in yes) for i in $arg; do append_queue cmdbuf "$i" $debug_log $wrapperlog " (logic) push: $i [split]" done ;; no) append_queue cmdbuf "$arg" $debug_log $wrapperlog " (logic) push: $arg" ;; esac ;; *) append_queue cmdbuf "$arg" $debug_log $wrapperlog " (logic) push: $arg [untransformed]" ;; esac done _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf1111111111" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf1111111111="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf11111111110" _qargbufhead="${_qhead}" _qtail="$_qcmdbuftail" _qcmdbuf11111111110="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf111111111100" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf111111111100="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf1111111111000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf1111111111000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf11111111110000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf11111111110000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf111111111100000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf111111111100000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf1111111111000000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac transform_setname "transform-qnx-cc" case $arg in -[cgOos] |\ -[DILlU]?* |\ -O[01] ) transform_pass ;; -E ) transform_to_and_split "-xc -E" ;; -fPIC |\ -fno-implicit-templates |\ -ggdb ) transform_pass ;; -M ) transform_to_and_split "-E -Wp,-M" ;; -M[DFMPT]* ) transform_to "-Wp,$arg" ;; -O[23s] |\ -pipe |\ -pthread |\ -shared |\ -static ) transform_pass;; -pedantic ) transform_to "-Wp,-pedantic" ;; -std=c99 ) transform_to "-Wc,-std=c99" ;; -std=gnu99 ) transform_to "-Wc,-std=gnu99" ;; -d[DIMN] ) transform_to "-Wp,$arg" ;; -traditional ) transform_to "-Wp,-traditional-cpp" ;; -traditional-cpp ) transform_to "-Wp,-traditional-cpp" ;; -W |\ -W[cLlS],* |\ -Wall |\ -Wcast-align |\ -Wcast-qual |\ -Wextra |\ -Werror |\ -Wformat=[012] |\ -Wmissing-prototypes |\ -Wno-error |\ -Wno-implicit-int |\ -Wno-long-long |\ -Wno-traditional |\ -Wno-uninitialized |\ -Wno-unused |\ -Wno-write-strings |\ -Wpointer-arith |\ -Wreturn-type |\ -Wshadow |\ -Wsign-compare |\ -Wstrict-prototypes |\ -Wswitch |\ -Wwrite-strings ) transform_pass ;; -fmessage-length=* |\ -fno-exceptions |\ -fno-rtti ) transform_pass ;; -KPIC |\ -kPIC ) transform_to "-fPIC" ;; -mt ) transform_to "-threads" ;; -* ) transform_pass_with_warning ;; esac _qtail="$_qcmdbuftail" _qcmdbuf1111111111000000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf11111111110000000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf11111111110000000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf111111111100000000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf111111111100000000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf1111111111000000000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf1111111111000000000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf11111111111" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf11111111111="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf111111111110" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac transform_setname "transform-qnx-cc" case $arg in -[cgOos] |\ -[DILlU]?* |\ -O[01] ) transform_pass ;; -E ) transform_to_and_split "-xc -E" ;; -fPIC |\ -fno-implicit-templates |\ -ggdb ) transform_pass ;; -M ) transform_to_and_split "-E -Wp,-M" ;; -M[DFMPT]* ) transform_to "-Wp,$arg" ;; -O[23s] |\ -pipe |\ -pthread |\ -shared |\ -static ) transform_pass;; -pedantic ) transform_to "-Wp,-pedantic" ;; -std=c99 ) transform_to "-Wc,-std=c99" ;; -std=gnu99 ) transform_to "-Wc,-std=gnu99" ;; -d[DIMN] ) transform_to "-Wp,$arg" ;; -traditional ) transform_to "-Wp,-traditional-cpp" ;; -traditional-cpp ) transform_to "-Wp,-traditional-cpp" ;; -W |\ -W[cLlS],* |\ -Wall |\ -Wcast-align |\ -Wcast-qual |\ -Wextra |\ -Werror |\ -Wformat=[012] |\ -Wmissing-prototypes |\ -Wno-error |\ -Wno-implicit-int |\ -Wno-long-long |\ -Wno-traditional |\ -Wno-uninitialized |\ -Wno-unused |\ -Wno-write-strings |\ -Wpointer-arith |\ -Wreturn-type |\ -Wshadow |\ -Wsign-compare |\ -Wstrict-prototypes |\ -Wswitch |\ -Wwrite-strings ) transform_pass ;; -fmessage-length=* |\ -fno-exceptions |\ -fno-rtti ) transform_pass ;; -KPIC |\ -kPIC ) transform_to "-fPIC" ;; -mt ) transform_to "-threads" ;; -* ) transform_pass_with_warning ;; esac _qtail="$_qcmdbuftail" _qcmdbuf111111111110="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf1111111111100" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf1111111111100="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf11111111111000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac transform_setname "transform-qnx-cc" case $arg in -[cgOos] |\ -[DILlU]?* |\ -O[01] ) transform_pass ;; -E ) transform_to_and_split "-xc -E" ;; -fPIC |\ -fno-implicit-templates |\ -ggdb ) transform_pass ;; -M ) transform_to_and_split "-E -Wp,-M" ;; -M[DFMPT]* ) transform_to "-Wp,$arg" ;; -O[23s] |\ -pipe |\ -pthread |\ -shared |\ -static ) transform_pass;; -pedantic ) transform_to "-Wp,-pedantic" ;; -std=c99 ) transform_to "-Wc,-std=c99" ;; -std=gnu99 ) transform_to "-Wc,-std=gnu99" ;; -d[DIMN] ) transform_to "-Wp,$arg" ;; -traditional ) transform_to "-Wp,-traditional-cpp" ;; -traditional-cpp ) transform_to "-Wp,-traditional-cpp" ;; -W |\ -W[cLlS],* |\ -Wall |\ -Wcast-align |\ -Wcast-qual |\ -Wextra |\ -Werror |\ -Wformat=[012] |\ -Wmissing-prototypes |\ -Wno-error |\ -Wno-implicit-int |\ -Wno-long-long |\ -Wno-traditional |\ -Wno-uninitialized |\ -Wno-unused |\ -Wno-write-strings |\ -Wpointer-arith |\ -Wreturn-type |\ -Wshadow |\ -Wsign-compare |\ -Wstrict-prototypes |\ -Wswitch |\ -Wwrite-strings ) transform_pass ;; -fmessage-length=* |\ -fno-exceptions |\ -fno-rtti ) transform_pass ;; -KPIC |\ -kPIC ) transform_to "-fPIC" ;; -mt ) transform_to "-threads" ;; -* ) transform_pass_with_warning ;; esac _qtail="$_qcmdbuftail" _qcmdbuf11111111111000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf111111111110000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac _qhead="$_qargbufhead" nextarg="$_qargbuf1111111111100000" case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf111111111110000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf1111111111100000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac _qhead="$_qargbufhead" nextarg="$_qargbuf11111111111000000" case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf1111111111100000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf11111111111000000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac _qhead="$_qargbufhead" nextarg="$_qargbuf111111111110000000" case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf11111111111000000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf111111111110000000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac _qhead="$_qargbufhead" nextarg="$_qargbuf1111111111100000000" case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf111111111110000000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf1111111111100000000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac _qhead="$_qargbufhead" nextarg="$_qargbuf11111111111000000000" case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf1111111111100000000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf11111111111000000000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac _qhead="$_qargbufhead" nextarg="$_qargbuf111111111111" case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf11111111111000000000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf111111111111" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac _qhead="$_qargbufhead" nextarg="$_qargbuf1111111111110" case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf111111111111="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf1111111111110" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac _qhead="$_qargbufhead" nextarg="$_qargbuf11111111111100" case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf1111111111110="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf11111111111100" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf11111111111100="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" _qtail="$_qargbuftail" _qhead="$_qargbufhead" arg="$_qargbuf111111111111000" _qargbufhead="${_qhead}" case $arg in /*/lib*.so|/*/lib*.so.[0-9]*) dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.so) lib="${lib%.so}" ;; *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; /*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX dir="${arg%/lib*}" lib="${arg#$dir/lib}" case $lib in */*) argok=yes; argmatch=yes ;; *.sl) lib="${lib%.sl}" ;; *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;; esac case $argmatch in yes) ;; *) prepend_queue argbuf "-l$lib" $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib" prepend_queue argbuf "-L$dir" $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir" argmatch=yes ;; esac ;; -Wl,-L,*) arg="-Wl,-L${arg#-Wl,-L,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-R,*) arg="-Wl,-R${arg#-Wl,-R,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg" prepend_queue argbuf "$arg" argmatch=yes ;; -Wl,-[LR]) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg" prepend_queue argbuf "$arg$nextarg" argmatch=yes ;; -Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath) pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg" nextarg="${nextarg#-Wl,}" $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg" prepend_queue argbuf "$arg,$nextarg" argmatch=yes ;; -R[!/]*|-Wl,-R[!/]*|\ -Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*) $debug_log $wrapperlog " (arg-pp-main) drop: $arg" argmatch=yes ;; -l*) head_queue argbuf nextarg while $test "$nextarg" = "$arg"; do pop_queue argbuf nextarg $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg" if queue_is_empty argbuf; then break else head_queue argbuf nextarg fi done argok=yes argmatch=yes ;; -o) skipargs=1 argok=yes argmatch=yes ;; --dynamic-linker) skipargs=1 argok=yes argmatch=yes ;; esac case $arg in -c) arg=-c; split_arg=no; cachehit=yes ;; -O2) arg=-O2; split_arg=no; cachehit=yes ;; -I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;; -L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -o) arg=-o; split_arg=no; cachehit=yes ;; -L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;; -Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;; -E) arg="-xc -E"; split_arg=yes; cachehit=yes ;; -g) arg=-g; split_arg=no; cachehit=yes ;; -R/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -ll) arg=-ll; split_arg=yes; cachehit=yes ;; -lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;; -lnsl) arg=-lnsl; split_arg=yes; cachehit=yes ;; -lm) arg=-lm; split_arg=yes; cachehit=yes ;; -ldir) arg=-ldir; split_arg=yes; cachehit=yes ;; -lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;; -lz) arg=-lz; split_arg=yes; cachehit=yes ;; -liconv) arg=-liconv; split_arg=yes; cachehit=yes ;; -Wl,-rpath,/usr/lib) arg=""; split_arg=no; cachehit=yes ;; -Wl,-rpath,/usr/pkg/lib) arg=-Wl,-rpath,/usr/pkg/lib; split_arg=no; cachehit=yes ;; -lssl) arg=-lssl; split_arg=yes; cachehit=yes ;; -lcrypto) arg=-lcrypto; split_arg=yes; cachehit=yes ;; -ljpeg) arg=-ljpeg; split_arg=yes; cachehit=yes ;; -lgd) arg=-lgd; split_arg=yes; cachehit=yes ;; *) cachehit=no ;; esac _qtail="$_qcmdbuftail" _qcmdbuf111111111111000="${1}" _qcmdbuftail="${_qtail}" _qhead="$_qargbufhead" _qtail="$_qargbuftail" . $cmd_sink while ! queue_is_empty cmdbuf; do pop_queue cmdbuf arg $debug_log $wrapperlog " (cmd-sink-qnx-cc) pop: $arg" case $arg in -Wp,-MT|-Wp,-MF) pop_queue cmdbuf arg2 $debug_log $wrapperlog " (cmd-sink-qnx-cc) pop: $arg2" $debug_log $wrapperlog " (cmd-sink-darwin-xlc) pre: $arg$arg2" prepend_queue cmdbuf "$arg$arg2" ;; -dumpversion) if $test -z "$dmpver2"; then dmpver1=1 fi ;; --version) if $test -z "$dmpver1"; then dmpver2=1 fi ;; -print-search-dirs) psdirs=1 ;; -print-prog-name=ld) ppnld=1 ;; -fPIC) fpic=1 . $buildcmd ;; -c) cmpl=1 . $buildcmd ;; *) . $buildcmd ;; esac done _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf1111111111" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf11111111110" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf111111111100" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf1111111111000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf11111111110000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf111111111100000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf1111111111000000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf11111111110000000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf111111111100000000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf1111111111000000000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf11111111111" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf111111111110" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf1111111111100" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf11111111111000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf111111111110000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf1111111111100000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf11111111111000000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf111111111110000000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf1111111111100000000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf11111111111000000000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf111111111111" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf1111111111110" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf11111111111100" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" _qhead="$_qcmdbufhead" arg="$_qcmdbuf111111111111000" _qcmdbufhead="${_qhead}" case $arg in "") ;; -[DILR]*|-Wl,-R*|-Wl,-*,/*) case $cmd in *" "$arg|*" "$arg" "*) ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac ;; -l*) case $libs in *" "$arg) ;; *) shquote "$arg"; arg="$shquoted" libs="$libs $arg" ;; esac ;; *) shquote "$arg"; arg="$shquoted" cmd="$cmd $arg" ;; esac _qhead="$_qcmdbufhead" _qtail="$_qcmdbuftail" if $test -n "$fpic" && $test -z "$cmpl"; then cmd=`$echo $cmd | $sed -e 's/-fPIC//'` fi if $test -n "$dmpver1"; then qcc -V 2>&1 | $sed -ne 's/default/&/p' | $sed -e 's/^[ ]*//' | $sed -e 's/\(.*\),.*/\1/' cmd=true elif $test -n "$dmpver2"; then $echo "cc (GCC) `qcc -V 2>&1 | $sed -ne 's/default/&/p' | $sed -e 's/^[ ]*//' | $sed -e 's/\(.*\),.*/\1/'` (QNX)" cmd=true elif $test -n "$psdirs"; then $echo "libraries: =/lib:/usr/lib" cmd=true elif $test -n "$ppnld"; then $echo "ld" cmd=true fi case $reorder in yes) if $test -n "$libs"; then . $reorderlibs fi ;; esac cmd="$cmd $libs" PATH="/usr/pkgsrc/lang/php5/work/.buildlink/bin:/usr/pkgsrc/lang/php5/work/.gcc/bin:/usr/pkgsrc/lang/php5/work/.tools/bin:/usr/pkg/bin:/bin:/usr/bin:/usr/photon/bin:/usr/photon/appbuilder:/opt/X11R6/bin:/usr/X11R6/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/local/bin:/opt/bin:/usr/qnx632/host/qnx6/x86/usr/bin:/usr/qnx632/host/qnx6/x86/usr/sbin:/usr/qnx632/host/qnx6/x86/sbin:/usr/qnx632/host/qnx6/x86/bin:/usr/qnx632/host/qnx6/x86/usr/photon/appbuilder"; export PATH msg_log $wrapperlog "<.>" "$cmd" wrapper_result=0 eval "$cmd" || wrapper_result="$?" /usr/pkgsrc/lang/php5/work/.gcc/bin/qcc -o conftest -O2 -I/usr/pkgsrc/lang/php5/work/.buildlink/include -R/usr/pkg/lib -L/usr/pkgsrc/lang/php5/work/.buildlink/lib -Wl,-R/usr/pkg/lib conftest.c -lcrypto -lm -lsocket -lxml2 -lz -liconv -lm -lsocket cc: unknown option: '-R/usr/pkg/lib' . $cleanup [ $wrapper_result -eq 0 ] || [ "$debug" != "yes" ] || { echo "" echo "[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:" echo "$cmd" } 1>&2 exit ${wrapper_result}