libtool: enabling shell trace mode
+ preserve_args= --debug
+ test 8 -gt 0
+ arg=--mode=link
+ shift
++ echo X--mode=link
++ /usr/bin/sed -e '1s/^X//' -e 's/[-_a-zA-Z0-9]*=//'
+ optarg=link
+ test -n ''
+ mode=link
+ test 7 -gt 0
+ arg=gcc
+ shift
+ optarg=
+ test -n ''
+ nonopt=gcc
+ break
+ test -n ''
+ exec_cmd=
+ test -z ''
+ test -z link
+ test -n ''
+ generic_help=Try `libtool --help' for more information.
+ help=Try `libtool --help --mode=link' for more information.
+ modename=libtool: link
+ allow_undefined=yes
+ libtool_args=gcc
+ base_compile=gcc -o a a.o -rpath /home/amilivojevic/s9/lib -lb
+ compile_command=gcc
+ finalize_command=gcc
+ compile_rpath=
+ finalize_rpath=
+ compile_shlibpath=
+ finalize_shlibpath=
+ convenience=
+ old_convenience=
+ deplibs=
+ old_deplibs=
+ compiler_flags=
+ linker_flags=
+ dllsearchpath=
++ pwd
+ lib_search_path=/home/amilivojevic/tmp/test
+ inst_prefix_dir=
+ avoid_version=no
+ dlfiles=
+ dlprefiles=
+ dlself=no
+ export_dynamic=no
+ export_symbols=
+ export_symbols_regex=
+ generated=
+ libobjs=
+ ltlibs=
+ module=no
+ no_install=no
+ objs=
+ non_pic_objects=
+ notinst_path=
+ precious_files_regex=
+ prefer_static_libs=no
+ preload=no
+ prev=
+ prevarg=
+ release=
+ rpath=
+ xrpath=
+ perm_rpath=
+ temp_rpath=
+ thread_safe=no
+ vinfo=
+ vinfo_number=no
+ func_infer_tag gcc -o a a.o -rpath /home/amilivojevic/s9/lib -lb
+ test -n available_tags=
+ test -z ''
+ CC_quoted=
+ CC_quoted= gcc
+ test -n ''
+ test 6 -gt 0
+ arg=-o
+ shift
+ qarg=-o
+ libtool_args=gcc -o
+ test -n ''
+ prevarg=-o
+ prev=output
+ test -n -o
+ compile_command=gcc -o
+ finalize_command=gcc -o
+ test 5 -gt 0
+ arg=a
+ shift
+ qarg=a
+ libtool_args=gcc -o a
+ test -n output
+ compile_command=gcc -o @OUTPUT@
+ finalize_command=gcc -o @OUTPUT@
+ eval 'output="$arg"'
++ output=a
+ prev=
+ continue
+ test 4 -gt 0
+ arg=a.o
+ shift
+ qarg=a.o
+ libtool_args=gcc -o a a.o
+ test -n ''
+ prevarg=a.o
+ objs= a.o
+ test -n a.o
+ compile_command=gcc -o @OUTPUT@ a.o
+ finalize_command=gcc -o @OUTPUT@ a.o
+ test 3 -gt 0
+ arg=-rpath
+ shift
+ qarg=-rpath
+ libtool_args=gcc -o a a.o -rpath
+ test -n ''
+ prevarg=-rpath
+ prev=rpath
+ continue
+ test 2 -gt 0
+ arg=/home/amilivojevic/s9/lib
+ shift
+ qarg=/home/amilivojevic/s9/lib
+ libtool_args=gcc -o a a.o -rpath /home/amilivojevic/s9/lib
+ test -n rpath
+ test rpath = rpath
+ rpath= /home/amilivojevic/s9/lib
+ prev=
+ continue
+ test 1 -gt 0
+ arg=-lb
+ shift
+ qarg=-lb
+ libtool_args=gcc -o a a.o -rpath /home/amilivojevic/s9/lib -lb
+ test -n ''
+ prevarg=-lb
+ test X-lb = X-lc
+ test X-lb = X-lm
+ test X-lb = X-lc_r
+ deplibs= -lb
+ continue
+ test 0 -gt 0
+ test -n ''
+ test no = yes
+ oldlibs=
++ echo Xa
++ /usr/bin/sed -e '1s/^X//' -e 's%^.*/%%'
+ outputname=a
+ libobjs_save=
+ test -n LD_LIBRARY_PATH
+ eval 'shlib_search_path=`$echo' '"X${LD_LIBRARY_PATH}"' '|' '$Xsed' -e ''\''s/:/' '/g'\''`'
+++ echo X
+++ /usr/bin/sed -e '1s/^X//' -e 's/:/ /g'
++ shlib_search_path=
+ eval 'sys_lib_search_path="' /home/amilivojevic/s9/lib/gcc/sparc-sun-solaris2.9/4.0.2/ /usr/lib/gcc/sparc-sun-solaris2.9/4.0.2/ /home/amilivojevic/s9/lib/gcc/sparc-sun-solaris2.9/4.0.2/../../../../sparc-sun-solaris2.9/lib/sparc-sun-solaris2.9/4.0.2/ /home/amilivojevic/s9/lib/gcc/sparc-sun-solaris2.9/4.0.2/../../../../sparc-sun-solaris2.9/lib/ /usr/ccs/bin/sparc-sun-solaris2.9/4.0.2/ /usr/ccs/bin/ /usr/ccs/lib/sparc-sun-solaris2.9/4.0.2/ /usr/ccs/lib/ /home/amilivojevic/s9/lib/gcc/sparc-sun-solaris2.9/4.0.2/../../../sparc-sun-solaris2.9/4.0.2/ /home/amilivojevic/s9/lib/gcc/sparc-sun-solaris2.9/4.0.2/../../../ /lib/sparc-sun-solaris2.9/4.0.2/ /lib/ /usr/lib/sparc-sun-solaris2.9/4.0.2/ '/usr/lib/"'
++ sys_lib_search_path= /home/amilivojevic/s9/lib/gcc/sparc-sun-solaris2.9/4.0.2/ /usr/lib/gcc/sparc-sun-solaris2.9/4.0.2/ /home/amilivojevic/s9/lib/gcc/sparc-sun-solaris2.9/4.0.2/../../../../sparc-sun-solaris2.9/lib/sparc-sun-solaris2.9/4.0.2/ /home/amilivojevic/s9/lib/gcc/sparc-sun-solaris2.9/4.0.2/../../../../sparc-sun-solaris2.9/lib/ /usr/ccs/bin/sparc-sun-solaris2.9/4.0.2/ /usr/ccs/bin/ /usr/ccs/lib/sparc-sun-solaris2.9/4.0.2/ /usr/ccs/lib/ /home/amilivojevic/s9/lib/gcc/sparc-sun-solaris2.9/4.0.2/../../../sparc-sun-solaris2.9/4.0.2/ /home/amilivojevic/s9/lib/gcc/sparc-sun-solaris2.9/4.0.2/../../../ /lib/sparc-sun-solaris2.9/4.0.2/ /lib/ /usr/lib/sparc-sun-solaris2.9/4.0.2/ /usr/lib/
+ eval 'sys_lib_dlsearch_path="/lib' '/usr/lib"'
++ sys_lib_dlsearch_path=/lib /usr/lib
++ echo Xa
++ /usr/bin/sed -e '1s/^X//' -e 's%/[^/]*$%%'
+ output_objdir=a
+ test Xa = Xa
+ output_objdir=.libs
+ test '!' -d .libs
+ linkmode=prog
+ duplicate_compiler_generated_deps=no
+ specialdeplibs=
+ libs=
+ test Xno = Xyes
+ libs= -lb
+ test prog = lib
+ deplibs=
+ newdependency_libs=
+ newlib_search_path=
+ need_relink=no
+ notinst_deplibs=
+ compile_deplibs=
+ finalize_deplibs=
+ alldeplibs=no
+ newdlfiles=
+ newdlprefiles=
+ passes=conv scan dlopen dlpreopen link
+ test prog,conv = lib,link
+ test prog,conv = prog,scan
+ test prog = prog
+ test conv = dlopen
+ lib=
+ found=no
+ test prog '!=' lib
+ test prog '!=' prog
++ echo X-lb
++ /usr/bin/sed -e '1s/^X//' -e 's/^-l//'
+ name=b
+ lib=/home/amilivojevic/tmp/test/libb.la
+ test -f /home/amilivojevic/tmp/test/libb.la
+ test .la = .la
+ found=yes
+ break 2
+ test yes '!=' yes
+ test Xno = Xyes
+ test yes = yes
+ :
+ :
++ echo X/home/amilivojevic/tmp/test/libb.la
++ /usr/bin/sed -e '1s/^X//' -e 's%/[^/]*$%%'
+ ladir=/home/amilivojevic/tmp/test
+ test X/home/amilivojevic/tmp/test = X/home/amilivojevic/tmp/test/libb.la
+ dlname=
+ dlopen=
+ dlpreopen=
+ libdir=
+ library_names=
+ old_library=
+ installed=yes
+ shouldnotlink=no
+ avoidtemprpath=
+ . /home/amilivojevic/tmp/test/libb.la
++ dlname=libb.so.0
++ library_names=libb.so.0.0.0 libb.so.0 libb.so
++ old_library=libb.a
++ dependency_libs=
++ current=0
++ age=0
++ revision=0
++ installed=no
++ shouldnotlink=no
++ dlopen=
++ dlpreopen=
++ libdir=/home/amilivojevic/s9/lib
+ test prog,conv = lib,link
+ test prog,conv = prog,scan
+ test prog '!=' prog
+ test conv = conv
+ deplibs=/home/amilivojevic/tmp/test/libb.la 
+ test -z /home/amilivojevic/s9/lib
+ test prog '!=' prog
+ continue
+ dependency_libs=
+ test conv = dlpreopen
+ test conv '!=' dlopen
+ test conv '!=' conv
+ test prog,conv '!=' prog,link
+ vars=deplibs
+ eval 'tmp_libs="$deplibs"'
++ tmp_libs=/home/amilivojevic/tmp/test/libb.la 
+ new_libs=
+ new_libs=/home/amilivojevic/tmp/test/libb.la 
+ tmp_libs=
+ tmp_libs= /home/amilivojevic/tmp/test/libb.la
+ eval 'deplibs="' '/home/amilivojevic/tmp/test/libb.la"'
++ deplibs= /home/amilivojevic/tmp/test/libb.la
+ eval 'tmp_libs="$dependency_libs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'dependency_libs=""'
++ dependency_libs=
+ tmp_libs=
+ dependency_libs=
+ test prog,scan = lib,link
+ test prog,scan = prog,scan
+ libs= /home/amilivojevic/tmp/test/libb.la
+ deplibs=
+ test prog = prog
+ test scan = dlopen
+ lib=
+ found=no
+ lib=/home/amilivojevic/tmp/test/libb.la
+ test no = yes
+ test -f /home/amilivojevic/tmp/test/libb.la
+ :
+ :
++ echo X/home/amilivojevic/tmp/test/libb.la
++ /usr/bin/sed -e '1s/^X//' -e 's%/[^/]*$%%'
+ ladir=/home/amilivojevic/tmp/test
+ test X/home/amilivojevic/tmp/test = X/home/amilivojevic/tmp/test/libb.la
+ dlname=
+ dlopen=
+ dlpreopen=
+ libdir=
+ library_names=
+ old_library=
+ installed=yes
+ shouldnotlink=no
+ avoidtemprpath=
+ . /home/amilivojevic/tmp/test/libb.la
++ dlname=libb.so.0
++ library_names=libb.so.0.0.0 libb.so.0 libb.so
++ old_library=libb.a
++ dependency_libs=
++ current=0
++ age=0
++ revision=0
++ installed=no
++ shouldnotlink=no
++ dlopen=
++ dlpreopen=
++ libdir=/home/amilivojevic/s9/lib
+ test prog,scan = lib,link
+ test prog,scan = prog,scan
+ test -n ''
+ test -n ''
+ test scan = conv
+ linklib=
+ linklib=libb.a
+ linklib=libb.so.0.0.0
+ linklib=libb.so.0
+ linklib=libb.so
+ test -z libb.so
+ test scan = dlopen
+ abs_ladir=/home/amilivojevic/tmp/test
++ echo X/home/amilivojevic/tmp/test/libb.la
++ /usr/bin/sed -e '1s/^X//' -e 's%^.*/%%'
+ laname=libb.la
+ test Xno = Xyes
+ test '!' -f /home/amilivojevic/tmp/test/.libs/libb.so
+ dir=/home/amilivojevic/tmp/test/.libs
+ absdir=/home/amilivojevic/tmp/test/.libs
+ notinst_path= /home/amilivojevic/tmp/test
++ echo Xlibb.la
++ /usr/bin/sed -e '1s/^X//' -e 's/\.la$//' -e 's/^lib//'
+ name=b
+ test scan = dlpreopen
+ test -z /home/amilivojevic/s9/lib
+ test prog = prog
+ test scan '!=' link
+ newlib_search_path= /home/amilivojevic/tmp/test
+ deplibs=/home/amilivojevic/tmp/test/libb.la 
+ linkalldeplibs=no
+ test yes '!=' no
+ linkalldeplibs=yes
+ tmp_libs=
+ continue
+ dependency_libs=
+ test scan = dlpreopen
+ test scan '!=' dlopen
+ test scan '!=' conv
+ lib_search_path=
+ lib_search_path= /home/amilivojevic/tmp/test
+ newlib_search_path=
+ test prog,scan '!=' prog,link
+ vars=deplibs
+ eval 'tmp_libs="$deplibs"'
++ tmp_libs=/home/amilivojevic/tmp/test/libb.la 
+ new_libs=
+ new_libs=/home/amilivojevic/tmp/test/libb.la 
+ tmp_libs=
+ tmp_libs= /home/amilivojevic/tmp/test/libb.la
+ eval 'deplibs="' '/home/amilivojevic/tmp/test/libb.la"'
++ deplibs= /home/amilivojevic/tmp/test/libb.la
+ eval 'tmp_libs="$dependency_libs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'dependency_libs=""'
++ dependency_libs=
+ tmp_libs=
+ dependency_libs=
+ test prog,dlopen = lib,link
+ test prog,dlopen = prog,scan
+ test prog = prog
+ libs=
+ test dlopen = dlopen
+ save_deplibs= /home/amilivojevic/tmp/test/libb.la
+ deplibs=
+ dependency_libs=
+ test dlopen = dlpreopen
+ test dlopen '!=' dlopen
+ tmp_libs=
+ dependency_libs=
+ test prog,dlpreopen = lib,link
+ test prog,dlpreopen = prog,scan
+ test prog = prog
+ libs=
+ test dlpreopen = dlopen
+ dependency_libs=
+ test dlpreopen = dlpreopen
+ deplibs=/home/amilivojevic/tmp/test/libb.la 
+ test dlpreopen '!=' dlopen
+ test dlpreopen '!=' conv
+ lib_search_path=
+ newlib_search_path=
+ test prog,dlpreopen '!=' prog,link
+ vars=deplibs
+ eval 'tmp_libs="$deplibs"'
++ tmp_libs=/home/amilivojevic/tmp/test/libb.la 
+ new_libs=
+ new_libs=/home/amilivojevic/tmp/test/libb.la 
+ tmp_libs=
+ tmp_libs= /home/amilivojevic/tmp/test/libb.la
+ eval 'deplibs="' '/home/amilivojevic/tmp/test/libb.la"'
++ deplibs= /home/amilivojevic/tmp/test/libb.la
+ eval 'tmp_libs="$dependency_libs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'dependency_libs=""'
++ dependency_libs=
+ tmp_libs=
+ dependency_libs=
+ test prog,link = lib,link
+ test prog,link = prog,scan
+ test prog = prog
+ libs= /home/amilivojevic/tmp/test/libb.la %DEPLIBS% 
+ test link = dlopen
+ lib=
+ found=no
+ lib=/home/amilivojevic/tmp/test/libb.la
+ test no = yes
+ test -f /home/amilivojevic/tmp/test/libb.la
+ :
+ :
++ echo X/home/amilivojevic/tmp/test/libb.la
++ /usr/bin/sed -e '1s/^X//' -e 's%/[^/]*$%%'
+ ladir=/home/amilivojevic/tmp/test
+ test X/home/amilivojevic/tmp/test = X/home/amilivojevic/tmp/test/libb.la
+ dlname=
+ dlopen=
+ dlpreopen=
+ libdir=
+ library_names=
+ old_library=
+ installed=yes
+ shouldnotlink=no
+ avoidtemprpath=
+ . /home/amilivojevic/tmp/test/libb.la
++ dlname=libb.so.0
++ library_names=libb.so.0.0.0 libb.so.0 libb.so
++ old_library=libb.a
++ dependency_libs=
++ current=0
++ age=0
++ revision=0
++ installed=no
++ shouldnotlink=no
++ dlopen=
++ dlpreopen=
++ libdir=/home/amilivojevic/s9/lib
+ test prog,link = lib,link
+ test prog,link = prog,scan
+ test prog '!=' prog
+ test link = conv
+ linklib=
+ linklib=libb.a
+ linklib=libb.so.0.0.0
+ linklib=libb.so.0
+ linklib=libb.so
+ test -z libb.so
+ test link = dlopen
+ abs_ladir=/home/amilivojevic/tmp/test
++ echo X/home/amilivojevic/tmp/test/libb.la
++ /usr/bin/sed -e '1s/^X//' -e 's%^.*/%%'
+ laname=libb.la
+ test Xno = Xyes
+ test '!' -f /home/amilivojevic/tmp/test/.libs/libb.so
+ dir=/home/amilivojevic/tmp/test/.libs
+ absdir=/home/amilivojevic/tmp/test/.libs
+ notinst_path= /home/amilivojevic/tmp/test /home/amilivojevic/tmp/test
++ echo Xlibb.la
++ /usr/bin/sed -e '1s/^X//' -e 's/\.la$//' -e 's/^lib//'
+ name=b
+ test link = dlpreopen
+ test -z /home/amilivojevic/s9/lib
+ test prog = prog
+ test link '!=' link
+ test prog,link = prog,link
+ test -n 'libb.so.0.0.0 libb.so.0 libb.so'
+ test no = no
+ test -n LD_LIBRARY_PATH
+ test -z ''
+ temp_rpath= /home/amilivojevic/tmp/test/.libs
+ compile_rpath= /home/amilivojevic/tmp/test/.libs
+ finalize_rpath= /home/amilivojevic/s9/lib
+ test no = yes
+ link_static=no
+ use_static_libs=no
+ test no = built
+ test -n 'libb.so.0.0.0 libb.so.0 libb.so'
+ test no = no
+ test no = no
+ notinst_deplibs= /home/amilivojevic/tmp/test/libb.la
+ need_relink=yes
+ test no = yes
+ test prog = lib
+ test -n ''
+ test prog = prog
+ add_shlibpath=
+ add_dir=
+ add=
+ lib_linked=yes
+ test no = no
+ add=/home/amilivojevic/tmp/test/.libs/libb.so
+ test yes '!=' yes
+ test -n ''
+ test prog = prog
+ test -n ''
+ test -n /home/amilivojevic/tmp/test/.libs/libb.so
+ compile_deplibs=/home/amilivojevic/tmp/test/.libs/libb.so 
+ test prog = prog
+ add_shlibpath=
+ add_dir=
+ add=
+ test no = yes
+ test no = yes
+ test no = yes
+ test no = yes
+ add_dir=-L/home/amilivojevic/s9/lib
+ test -n ''
+ add=-lb
+ test prog = prog
+ test -n -L/home/amilivojevic/s9/lib
+ finalize_deplibs=-L/home/amilivojevic/s9/lib 
+ test -n -lb
+ finalize_deplibs=-lb -L/home/amilivojevic/s9/lib 
+ test prog = lib
+ lib=
+ found=no
+ alldeplibs=yes
+ continue
+ dependency_libs=
+ test link = dlpreopen
+ test link '!=' dlopen
+ test link '!=' conv
+ lib_search_path=
+ newlib_search_path=
+ test prog,link '!=' prog,link
+ vars=compile_deplibs finalize_deplibs
+ eval 'tmp_libs="$compile_deplibs"'
++ tmp_libs=/home/amilivojevic/tmp/test/.libs/libb.so 
+ new_libs=
+ new_libs=/home/amilivojevic/tmp/test/.libs/libb.so 
+ tmp_libs=
+ tmp_libs= /home/amilivojevic/tmp/test/.libs/libb.so
+ eval 'compile_deplibs="' '/home/amilivojevic/tmp/test/.libs/libb.so"'
++ compile_deplibs= /home/amilivojevic/tmp/test/.libs/libb.so
+ eval 'tmp_libs="$finalize_deplibs"'
++ tmp_libs=-lb -L/home/amilivojevic/s9/lib 
+ new_libs=
+ new_libs=-lb 
+ new_libs=-L/home/amilivojevic/s9/lib -lb 
+ tmp_libs=
+ tmp_libs= -L/home/amilivojevic/s9/lib
+ tmp_libs= -L/home/amilivojevic/s9/lib -lb
+ eval 'finalize_deplibs="' -L/home/amilivojevic/s9/lib '-lb"'
++ finalize_deplibs= -L/home/amilivojevic/s9/lib -lb
+ eval 'tmp_libs="$dependency_libs"'
++ tmp_libs=
+ new_libs=
+ tmp_libs=
+ eval 'dependency_libs=""'
++ dependency_libs=
+ tmp_libs=
+ dependency_libs=
+ test prog = prog
+ dlfiles=
+ dlprefiles=
+ test -n ''
+ test -n ''
+ test no = yes
+ new_libs=
+ new_libs= /home/amilivojevic/tmp/test/.libs/libb.so
+ compile_deplibs= /home/amilivojevic/tmp/test/.libs/libb.so
+ compile_command=gcc -o @OUTPUT@ a.o  /home/amilivojevic/tmp/test/.libs/libb.so
+ finalize_command=gcc -o @OUTPUT@ a.o  -L/home/amilivojevic/s9/lib -lb
+ test -n ' /home/amilivojevic/s9/lib'
+ rpath=
+ hardcode_libdirs=
+ test -n '-R$libdir'
+ test -n ''
+ eval 'flag="-R$libdir"'
++ flag=-R/home/amilivojevic/tmp/test/.libs
+ rpath= -R/home/amilivojevic/tmp/test/.libs
+ test -n '-R$libdir'
+ test -n ''
+ eval 'flag="-R$libdir"'
++ flag=-R/home/amilivojevic/s9/lib
+ rpath= -R/home/amilivojevic/tmp/test/.libs -R/home/amilivojevic/s9/lib
+ test -n ''
+ compile_rpath= -R/home/amilivojevic/tmp/test/.libs -R/home/amilivojevic/s9/lib
+ rpath=
+ hardcode_libdirs=
+ test -n '-R$libdir'
+ test -n ''
+ eval 'flag="-R$libdir"'
++ flag=-R/home/amilivojevic/s9/lib
+ rpath= -R/home/amilivojevic/s9/lib
+ test -n ''
+ finalize_rpath= -R/home/amilivojevic/s9/lib
+ test -n ''
+ dlsyms=
+ test -n ''
+ test no '!=' no
+ test -n ''
++ echo 'Xgcc -o @OUTPUT@ a.o  /home/amilivojevic/tmp/test/.libs/libb.so'
++ /usr/bin/sed -e '1s/^X//' -e 's% @SYMFILE@%%'
+ compile_command=gcc -o @OUTPUT@ a.o  /home/amilivojevic/tmp/test/.libs/libb.so
++ echo 'Xgcc -o @OUTPUT@ a.o  -L/home/amilivojevic/s9/lib -lb'
++ /usr/bin/sed -e '1s/^X//' -e 's% @SYMFILE@%%'
+ finalize_command=gcc -o @OUTPUT@ a.o  -L/home/amilivojevic/s9/lib -lb
+ test yes = no
+ test yes '!=' yes
+ test -n LD_LIBRARY_PATH
+ rpath=
+ rpath=/home/amilivojevic/tmp/test/.libs:
+ temp_rpath=/home/amilivojevic/tmp/test/.libs:
+ test -n ''
+ test -n ''
+ compile_var=
+ finalize_var=
+ test -n ''
+ test no = yes
+ test immediate = relink
+ test needless '!=' no
+ link_command=gcc -o @OUTPUT@ a.o  /home/amilivojevic/tmp/test/.libs/libb.so -R/home/amilivojevic/s9/lib
+ test needless = yes
+ relink_command=
++ echo 'Xgcc -o @OUTPUT@ a.o  /home/amilivojevic/tmp/test/.libs/libb.so -R/home/amilivojevic/s9/lib'
++ /usr/bin/sed -e '1s/^X//' -e s%@OUTPUT@%.libs/a%g
+ link_command=gcc -o .libs/a a.o  /home/amilivojevic/tmp/test/.libs/libb.so -R/home/amilivojevic/s9/lib
+ rm -f a .libs/a .libs/lt-a
+ echo 'gcc -o .libs/a a.o  /home/amilivojevic/tmp/test/.libs/libb.so -R/home/amilivojevic/s9/lib'
gcc -o .libs/a a.o  /home/amilivojevic/tmp/test/.libs/libb.so -R/home/amilivojevic/s9/lib
+ eval 'gcc -o .libs/a a.o  /home/amilivojevic/tmp/test/.libs/libb.so -R/home/amilivojevic/s9/lib'
++ gcc -o .libs/a a.o /home/amilivojevic/tmp/test/.libs/libb.so -R/home/amilivojevic/s9/lib
+ echo 'creating a'
creating a
+ test -n ''
+ test Xecho = 'X/bin/bash ./libtool --fallback-echo'
++ echo Xecho
++ /usr/bin/sed -e '1s/^X//' -e 's/\([\\`\\"$\\\\]\)/\\\1/g'
+ qecho=echo
+ test -z ''
+ exeext=
+ rm -f a
+ trap 'rm -f a; exit 1' 1 2 15
+ echo '#! /bin/bash

# a - temporary wrapper script for .libs/a
# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
#
# The a program cannot be directly executed until all the libtool
# libraries that it depends on are installed.
#
# This wrapper script should never be moved out of the build directory.
# If it is, it will not operate correctly.

# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='\''/usr/bin/sed -e 1s/^X//'\''
sed_quote_subst='\''s/\([\\`\\"$\\\\]\)/\\\1/g'\''

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

relink_command=""

# This environment variable determines our operation mode.
if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
  # install mode needs the following variable:
  notinst_deplibs='\'' /home/amilivojevic/tmp/test/libb.la'\''
else
  # When we are sourced in execute mode, $file and $echo are already set.
  if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
    echo="echo"
    file="$0"
    # Make sure echo works.
    if test "X$1" = X--no-reexec; then
      # Discard the --no-reexec flag, and continue.
      shift
    elif test "X`($echo '\''\t'\'') 2>/dev/null`" = '\''X\t'\''; then
      # Yippee, $echo works!
      :
    else
      # Restart under the correct shell, and then maybe $echo will work.
      exec /bin/bash "$0" --no-reexec ${1+"$@"}
    fi
  fi'
+ echo '
  # Find the directory that this script lives in.
  thisdir=`$echo "X$file" | $Xsed -e '\''s%/[^/]*$%%'\''`
  test "x$thisdir" = "x$file" && thisdir=.

  # Follow symbolic links until we get to the real thisdir.
  file=`ls -ld "$file" | /usr/bin/sed -n '\''s/.*-> //p'\''`
  while test -n "$file"; do
    destdir=`$echo "X$file" | $Xsed -e '\''s%/[^/]*$%%'\''`

    # If there was a directory component, then change thisdir.
    if test "x$destdir" != "x$file"; then
      case "$destdir" in
      [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
      *) thisdir="$thisdir/$destdir" ;;
      esac
    fi

    file=`$echo "X$file" | $Xsed -e '\''s%^.*/%%'\''`
    file=`ls -ld "$thisdir/$file" | /usr/bin/sed -n '\''s/.*-> //p'\''`
  done

  # Try to get the absolute directory name.
  absdir=`cd "$thisdir" && pwd`
  test -n "$absdir" && thisdir="$absdir"
'
+ test needless = yes
+ echo '  program='\''a'\''
  progdir="$thisdir/.libs"
'
+ echo '
  if test -f "$progdir/$program"; then'
+ test yes = yes
+ test -n LD_LIBRARY_PATH
+ test -n /home/amilivojevic/tmp/test/.libs:
+ echo '    # Add our own library path to LD_LIBRARY_PATH
    LD_LIBRARY_PATH="/home/amilivojevic/tmp/test/.libs:$LD_LIBRARY_PATH"

    # Some systems cannot cope with colon-terminated LD_LIBRARY_PATH
    # The second colon is a workaround for a bug in BeOS R4 sed
    LD_LIBRARY_PATH=`$echo "X$LD_LIBRARY_PATH" | $Xsed -e '\''s/::*$//'\''`

    export LD_LIBRARY_PATH
'
+ test -n ''
+ echo '    if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
      # Run the actual program with our arguments.
'
+ echo '      exec "$progdir/$program" ${1+"$@"}
'
+ echo '      $echo "$0: cannot exec $program ${1+"$@"}"
      exit 1
    fi
  else
    # The program doesn'\''t exist.
    $echo "$0: error: \`$progdir/$program'\'' does not exist" 1>&2
    $echo "This script is just a wrapper for $program." 1>&2
    echo "See the libtool documentation for more information." 1>&2
    exit 1
  fi
fi'
+ chmod +x a
+ exit 0
