1999-03-25 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * demo/Makefile.am: create a static library, link two libtool
+ archives with it, then link the program hell0 with both
+ * demo/hell1.c, demo/hell2.c: dummy files used to create the
+ libtool archives without introducing symbol conflicts
+ * tests/demo-exec.test, tests/demo-inst.test: run the new program
+ * ltconfig.in (irix5*, irix6*, deplibs_check_method): pass_all
+
* ltmain.in ($PATH): instead of modifying the PATH, better prevent
its expansion the first time *_cmds variables are eval'ed. Modify
$show within loops that eval them so as to expand variables
chmod +x $@
endif
+# This is one of the essential tests for deplibs_check_method=pass_all.
+# If this one passes with pass_all, it is likely that pass_all works
+noinst_LIBRARIES = libhell0.a
+libhell0_a_SOURCES = hello.c foo.c
+lib_LTLIBRARIES += libhell1.la libhell2.la
+libhell1_la_SOURCES = hell1.c
+libhell2_la_SOURCES = hell2.c
+libhell1_la_LIBADD = -L. -lhell0 # libtool rejects libhell0.la
+libhell2_la_LIBADD = -L. -lhell0 # we have to use -L/-l. Why?
+bin_PROGRAMS += hell0
+hell0_SOURCES = main.c
+hell0_LDADD = libhell1.la libhell2.la
+
# Unfortunately, in order to test libtool thoroughly, we need access
# to its private directory.
objdir = `sed -n -e 's/^objdir=\(.*\)$$/\1/p' ../libtool`
--- /dev/null
+int hell1() { return 1; }
--- /dev/null
+int hell2() { return 2; }
soname_spec='${libname}${release}.so'
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
shlibpath_var=LD_LIBRARY_PATH
- deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" # or should it be pass_all?
- file_magic_cmd=/usr/bin/file
- file_magic_test_file=`echo /lib/libc.so*`
shlibpath_overrides_runpath=no
+ deplibs_check_method=pass_all
;;
irix6*)
# there either
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
- deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" # or should it be pass_all?
- file_magic_cmd=/usr/bin/file
- file_magic_test_file=`echo /lib${libsuff}/libc.so*`
+ deplibs_check_method=pass_all
;;
# No shared lib support for Linux oldld, aout, or coff.
status=1
fi
+if ../demo/hell0 | grep 'Welcome to GNU Hell'; then :
+else
+ echo "$0: cannot execute ../demo/hell0" 1>&2
+ status=1
+fi
+
if ../demo/helldl | egrep -e '(Welcome to .*GNU Hell|unsupported)'; then :
else
echo "$0: cannot execute ../demo/helldl" 1>&2
status=1
fi
+if $prefix/bin/hell0 | grep 'Welcome to GNU Hell'; then :
+else
+ echo "$0: cannot execute $prefix/bin/hell0" 1>&2
+
+ # Simple check to see if they are superuser.
+ if test -w /; then :
+ else
+ echo "You may need to run $0 as the superuser."
+ fi
+ status=1
+fi
+
if $prefix/bin/helldl | egrep -e '(Welcome to .*GNU Hell|unsupported)'; then :
else
echo "$0: cannot execute $prefix/bin/helldl" 1>&2