+2004-04-29 Dave Brolley <brolley@redhat.com>
+
+ * compConfig.cxx (register_dso): Check dl_handle before attempting to
+ open ".a".
+ * Makefile.am (libconfig_la_DEPENDENCIES): Add @LIBLTDL@.
+ * Makefile.in: Regenerated.
+
2002-05-30 Frank Ch. Eigler <fche@redhat.com>
* compConfig.cxx (stop): Store incoming code in new "stop-code"
libconfig_la_SOURCES = compConfig.cxx
libconfig_la_LDFLAGS = -module -no-undefined
libconfig_la_LIBADD = @LIBLTDL@
+libconfig_la_DEPENDENCIES = @LIBLTDL@
pkgdata_DATA = sid-control-cfgroot.txt
libconfig_la_SOURCES = compConfig.cxx
libconfig_la_LDFLAGS = -module -no-undefined
libconfig_la_LIBADD = @LIBLTDL@
+libconfig_la_DEPENDENCIES = @LIBLTDL@
pkgdata_DATA = sid-control-cfgroot.txt
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-libconfig_la_DEPENDENCIES =
libconfig_la_OBJECTS = compConfig.lo
CXXFLAGS = @CXXFLAGS@
CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
dl_handle = lt_dlopen(dso_name.c_str());
// Second, try ".la"->".a" kludge.
- if ((dso_name.length() > 3) &&
+ if (! dl_handle &&
+ (dso_name.length() > 3) &&
(dso_name[dso_name.length()-3] == '.') &&
(dso_name[dso_name.length()-2] == 'l') &&
(dso_name[dso_name.length()-1] == 'a'))