Mercurial > hg > octave-lojdl
changeset 1176:fe5f25f61865
[project @ 1995-03-21 20:48:14 by jwe]
author | jwe |
---|---|
date | Tue, 21 Mar 1995 20:48:14 +0000 |
parents | b4cc62d98068 |
children | da83c9182359 |
files | flibs.sh |
diffstat | 1 files changed, 61 insertions(+), 54 deletions(-) [+] |
line wrap: on
line diff
--- a/flibs.sh +++ b/flibs.sh @@ -54,58 +54,66 @@ for arg in $foutput do - if test -z "$want_arg" - then - case $arg in - /*.a | /*values-X*.o) - exists=false - for f in $lflags - do - if test x$arg = x$f - then - exists=true - fi - done - if $exists - then + old_want_arg=$want_arg + want_arg= + case "$old_want_arg" in + '') + case $arg in + /*.a | /*values-X*.o) + exists=false + for f in $lflags + do + if test x$arg = x$f + then + exists=true + fi + done + if $exists + then + arg= + else + lflags="$lflags $arg" + fi + ;; + -lang*) + arg= + ;; + -[lLR]) + want_arg=$arg arg= - else - lflags="$lflags $arg" - fi - ;; - -lang*) - arg= - ;; - -[lL]*) - exists=false - for f in $lflags - do - if test x$arg = x$f - then - exists=true - fi - done - if $exists || test x$arg = x-lm -o x$arg = x-lc - then + ;; + -[lLR]*) + exists=false + for f in $lflags + do + if test x$arg = x$f + then + exists=true + fi + done + if $exists || test x$arg = x-lm -o x$arg = x-lc + then + arg= + else + lflags="$lflags $arg" + fi + ;; + -u) + want_arg=$arg + ;; + -Y) + want_arg=$arg arg= - else - lflags="$lflags $arg" - fi - ;; - -u) - want_arg=$arg - ;; - -Y) - want_arg=$arg - arg= - ;; - *) - arg= - ;; - esac - else - if test x$want_arg = x-Y - then + ;; + *) + arg= + ;; + esac + ;; + -[lLR]) + arg="$old_want_arg $arg" + ;; + -Y) # Should probably try to ensure unique directory options here too. # This probably only applies to Solaris systems, and then will only @@ -117,13 +125,12 @@ list= for elt in $arg do - list="$list -L $elt" + list="$list -L $elt" done IFS=$SAVE_IFS arg="$list" - fi - want_arg= - fi + ;; + esac if test -n "$arg" then