func_mkdir_p "$objdir/temp/libs"
cp -f libhello.la "hell$EXEEXT" "$objdir/temp"
cp -f "$objdir"/* "$objdir"/temp/libs
- trap "func_restore_files" 0 1 2 13 15
}
func_require "demo-inst" "$prefix/lib/libhello.la"
func_mkprefixdir
func_cd "tests/demo"
+
+# AIX 5.3 `/bin/sh' will invoke the trap for 0 at the end of a
+# function, so we set the trap outside of a function to be portable.
+trap func_restore_files 0 1 2 13 15
func_save_files
func_msg "removing \`libhello.la' and \`hell' from demo"
func_mkdir_p "$objdir/temp/libs"
cp -f libhello.la "$objdir/temp"
cp -f "$objdir"/libhello.* "$objdir/lt-hell$EXEEXT" "$objdir/temp/libs"
- trap "func_restore_files" 0 1 2 13 15
}
func_require "demo-inst" "$prefix/lib/libhello.la" "tests/demo/libhello.la"
test -z "$library_names" \
&& func_skip "Exiting: demo/libhello.la is not a shared library"
+# AIX 5.3 `/bin/sh' will invoke the trap for 0 at the end of a
+# function, so we set the trap outside of a function to be portable.
func_save_files
+trap func_restore_files 0 1 2 13 15
func_get_config 'shlibpath_overrides_runpath
hardcode_action
&& cp -f "$objdir/depdemo$EXEEXT" "_fnord/temp"
cp -f l3/libl3.la "_fnord/temp"
cp -f l3/"$objdir"/* "_fnord/temp/libs"
- trap "func_restore_files" 0 1 2 13 15
}
func_require "depdemo-inst" "$prefix/lib/libl3.la" "tests/depdemo/l3/libl3.la"
test -z "$library_names" \
&& func_skip "Exiting: depdemo/l3/libl3.la is not a shared library"
+# AIX 5.3 `/bin/sh' will invoke the trap for 0 at the end of a
+# function, so we set the trap outside of a function to be portable.
+trap func_restore_files 0 1 2 13 15
func_save_files
func_get_config 'shlibpath_overrides_runpath