Re: ultrix, cache_file and ksh

2000-07-28 Thread Pavel Roskin

Hello, Assar!

> > if test -n "$cache_file" && test -r "$cache_file" && test -f \
> > "$cache_file"; then
> > 
> > Please check that it works for your ksh.
> 
> Yeah, that works fine.  Please commit that change and thanks for your
> help.

Maybe this patch will save time to somebody with write access to the
repository:


Index: ChangeLog
--- ChangeLog   Mon Jul 24 08:50:46 2000
+++ ChangeLog   Fri Jul 28 14:00:13 2000
@@ -0,0 +1,4 @@
+2000-07-28  Pavel Roskin <[EMAIL PROTECTED]>
+
+   * ltconfig.in: only load $cache_file if it's a regular file
+
Index: ltconfig.in
--- ltconfig.in Mon Jul 24 08:50:46 2000
+++ ltconfig.in Fri Jul 28 13:58:10 2000
@@ -399,7 +399,7 @@
 if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi
 if test "X${LANG+set}"   = Xset; then LANG=C;   export LANG;   fi
 
-if test -n "$cache_file" && test -r "$cache_file"; then
+if test -n "$cache_file" && test -r "$cache_file" && test -f "$cache_file"; then
   echo "loading cache $cache_file within ltconfig"
   . $cache_file
 fi


Regards,
Pavel Roskin




using libltdl for plugin design

2000-07-28 Thread Tom Matelich
Title: using libltdl for plugin design





Hello,


    I am going to be implementing a plug-in system for a C++ application that needs to run on Linux, HP-UX, and Windows.  I see that libltdl will load shared libraries for each of these platforms, but I have a few questions.  

1)  There is the warning about using C++ because of the various name mangling issues.  I think I would be fine as long as the libraries are from the same compiler, right?  Or do I have to extern "C" the functions I would use?

2)   Also, it talks about needing to use libtool on the modules, is that required in general or just for when you want to reopen the shared lib?

3)  How do I build the library on Windows assuming this is a feasible solution, and are there any special things I have to do to my DLL's?

Thanks for your time,


Tom Matelich