* tests/mdemo/main.c (test_dl, main): Try lt_dlopenext as well.
* THANKS: Update.
Report by Brian Barrett.
+2007-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * tests/mdemo-exec.test: Also try absolute library names.
+ * tests/mdemo/main.c (test_dl, main): Try lt_dlopenext as well.
+ * THANKS: Update.
+ Report by Brian Barrett.
+
2007-07-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* doc/fdl.texi: Update to GFDL 1.2.
Andrey Slepuhin pooh@msu.ru
Aneesh Kumar K.V kvaneesh@hotmail.com
Brad Smith brad@comstyle.com
+ Brian Barrett brbarret@osl.iu.edu
Bruno Haible haible@ilog.fr
Carl D. Roth roth@cse.ucsc.edu
Chris P. Ross cross@eng.us.uu.net
#! /bin/sh
# mdemo-exec.test - check that programs in the mdemo subdirectory are viable
#
-# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
# Written by Gary V. Vaughan, 2003
#
# This file is part of GNU Libtool.
"try_iterate: .*libfoo2"
func_exec "tests/mdemo/mdemo$EXEEXT tests/mdemo/foo1.la tests/mdemo/libfoo2.la" \
"try_iterate: .*libfoo2"
+func_exec "tests/mdemo/mdemo_static$EXEEXT `pwd`/tests/mdemo/foo1.la `pwd`/tests/mdemo/libfoo2.la"
+func_exec "tests/mdemo/mdemo$EXEEXT `pwd`/tests/mdemo/foo1.la `pwd`/tests/mdemo/libfoo2.la"
exit $exec_status
/* main.c -- mdemo test program
- Copyright (C) 1998-2000, 2006 Free Software Foundation, Inc.
+ Copyright (C) 1998-2000, 2006, 2007 Free Software Foundation, Inc.
Written by Thomas Tanner, 1998
This file is part of GNU Libtool.
LT_END_C_DECLS
int
-test_dl (char *filename)
+test_dl (char *filename, int test_ext)
{
lt_dlhandle handle;
const lt_dlinfo *info;
int *pnothing = 0;
int ret = 0;
- handle = lt_dlopen(filename);
+ if (test_ext)
+ handle = lt_dlopenext (filename);
+ else
+ handle = lt_dlopen (filename);
+
if (!handle) {
fprintf (stderr, "can't open the module %s!\n", filename);
fprintf (stderr, "error was: %s\n", lt_dlerror());
{
int i;
int ret = 0;
+ char *p;
printf ("Welcome to GNU libtool mdemo!\n");
}
for (i = 1; i < argc; i++)
- if (test_dl(argv[i]))
+ {
+ if (test_dl(argv[i], 0))
ret = 1;
+ p = strrchr(argv[i], '.');
+ if (p)
+ {
+ *p = '\0';
+ if (test_dl(argv[i], 1))
+ ret = 1;
+ *p = '.';
+ }
+ }
if (test_dlself())
ret = 1;