? libltdl
Index: Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Scribus/Makefile.am,v
retrieving revision 1.2
diff -u -b -B -r1.2 Makefile.am
--- Makefile.am	14 Feb 2004 12:15:53 -0000	1.2
+++ Makefile.am	1 Apr 2004 10:21:02 -0000
@@ -1,6 +1,6 @@
 ####### kdevelop will overwrite this part!!! (begin)##########
 
-SUBDIRS = scribus 
+SUBDIRS = libltdl scribus
 
 EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README TODO scribus.lsm scribus.desktop 
 
@@ -15,8 +15,8 @@
 $(top_srcdir)/subdirs:
 	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
 
-$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
-	@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
+$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in $(top_srcdir)/libltdl/ltdl.m4
+	@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in libltdl/ltdl.m4 > acinclude.m4
 
 MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files 
 
Index: config.h.in
===================================================================
RCS file: /usr/local/cvsroot/Scribus/config.h.in,v
retrieving revision 1.6
diff -u -b -B -r1.6 config.h.in
--- config.h.in	10 Nov 2003 10:37:42 -0000	1.6
+++ config.h.in	1 Apr 2004 10:21:02 -0000
@@ -6,24 +6,57 @@
 /* Debug Messages */
 #undef DEBUG
 
+/* Define to 1 if you have the `bcopy' function. */
+#undef HAVE_BCOPY
+
 /* ColorManagement */
 #undef HAVE_CMS
 
+/* Define if you have the CoreAudio API */
+#undef HAVE_COREAUDIO
+
+/* Define to 1 if you have the <crt_externs.h> header file. */
+#undef HAVE_CRT_EXTERNS_H
+
 /* Defines if your system has the crypt function */
 #undef HAVE_CRYPT
 
+/* Define to 1 if you have the <ctype.h> header file. */
+#undef HAVE_CTYPE_H
+
 /* Cups */
 #undef HAVE_CUPS
 
+/* Define if you have the GNU dld library. */
+#undef HAVE_DLD
+
+/* Define to 1 if you have the <dld.h> header file. */
+#undef HAVE_DLD_H
+
+/* Define to 1 if you have the `dlerror' function. */
+#undef HAVE_DLERROR
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the <dl.h> header file. */
+#undef HAVE_DL_H
+
 /* Defines if your system has the libfreetype library */
 #undef HAVE_FREETYPE
 
+/* Define to 1 if you have the `index' function. */
+#undef HAVE_INDEX
+
 /* Define to 1 if you have the <inttypes.h> header file. */
 #undef HAVE_INTTYPES_H
 
 /* Defines if your system has the libart library */
 #undef HAVE_LIBART
 
+/* Define if you have the libdl library or equivalent. */
+#undef HAVE_LIBDL
+
 /* Define if you have libjpeg */
 #undef HAVE_LIBJPEG
 
@@ -36,12 +69,20 @@
 /* Define if you have libz */
 #undef HAVE_LIBZ
 
+/* Define to 1 if you have the <malloc.h> header file. */
+#undef HAVE_MALLOC_H
+
+/* Define to 1 if you have the `memcpy' function. */
+#undef HAVE_MEMCPY
+
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
-/* Define to 1 if you have the <pthread/linuxthreads/pthread.h> header file.
-   */
-#undef HAVE_PTHREAD_LINUXTHREADS_PTHREAD_H
+/* Define if your system needs _NSGetEnviron to set up the environment */
+#undef HAVE_NSGETENVIRON
+
+/* Define if libtool can extract symbol lists from object files. */
+#undef HAVE_PRELOADED_SYMBOLS
 
 /* Define if you have the development files for python */
 #undef HAVE_PYTHON
@@ -52,35 +93,88 @@
 /* Define if you have the res_init function */
 #undef HAVE_RES_INIT
 
+/* Define to 1 if you have the `rindex' function. */
+#undef HAVE_RINDEX
+
+/* Define if you have the shl_load function. */
+#undef HAVE_SHL_LOAD
+
+/* Define to 1 if you have the `snprintf' function. */
+#undef HAVE_SNPRINTF
+
 /* Define to 1 if you have the <stdint.h> header file. */
 #undef HAVE_STDINT_H
 
+/* Define to 1 if you have the <stdio.h> header file. */
+#undef HAVE_STDIO_H
+
 /* Define to 1 if you have the <stdlib.h> header file. */
 #undef HAVE_STDLIB_H
 
+/* Define to 1 if you have the `strchr' function. */
+#undef HAVE_STRCHR
+
+/* Define to 1 if you have the `strcmp' function. */
+#undef HAVE_STRCMP
+
 /* Define to 1 if you have the <strings.h> header file. */
 #undef HAVE_STRINGS_H
 
 /* Define to 1 if you have the <string.h> header file. */
 #undef HAVE_STRING_H
 
+/* Define if you have strlcat */
+#undef HAVE_STRLCAT
+
+/* Define if you have the strlcat prototype */
+#undef HAVE_STRLCAT_PROTO
+
+/* Define if you have strlcpy */
+#undef HAVE_STRLCPY
+
+/* Define if you have the strlcpy prototype */
+#undef HAVE_STRLCPY_PROTO
+
+/* Define to 1 if you have the `strrchr' function. */
+#undef HAVE_STRRCHR
+
 /* Define to 1 if you have the <sys/stat.h> header file. */
 #undef HAVE_SYS_STAT_H
 
 /* Define to 1 if you have the <sys/types.h> header file. */
 #undef HAVE_SYS_TYPES_H
 
-/* C++ compiler supports template repository */
-#undef HAVE_TEMPLATE_REPOSITORY
-
 /* Tifflib */
 #undef HAVE_TIFF
 
 /* Define to 1 if you have the <unistd.h> header file. */
 #undef HAVE_UNISTD_H
 
-/* Define if you want Xinerama support */
-#undef HAVE_XINERAMA
+/* Define to 1 if you have the `vsnprintf' function. */
+#undef HAVE_VSNPRINTF
+
+/* Suffix for lib directories */
+#undef KDELIBSUFF
+
+/* Define if the OS needs help to load dependent libraries for dlopen(). */
+#undef LTDL_DLOPEN_DEPLIBS
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+   */
+#undef LTDL_OBJDIR
+
+/* Define to the name of the environment variable that determines the dynamic
+   library search path. */
+#undef LTDL_SHLIBPATH_VAR
+
+/* Define to the extension used for shared libraries, say, ".so". */
+#undef LTDL_SHLIB_EXT
+
+/* Define to the system default library search path. */
+#undef LTDL_SYSSEARCHPATH
+
+/* Define if dlsym() requires a leading underscode in symbol names. */
+#undef NEED_USCORE
 
 /* Name of package */
 #undef PACKAGE
@@ -103,9 +197,6 @@
 /* Dataprefix */
 #undef PREL
 
-/* The size of a `char', as computed by sizeof. */
-#undef SIZEOF_CHAR
-
 /* The size of a `char *', as computed by sizeof. */
 #undef SIZEOF_CHAR_P
 
@@ -115,6 +206,15 @@
 /* The size of a `long', as computed by sizeof. */
 #undef SIZEOF_LONG
 
+/* The size of a `short', as computed by sizeof. */
+#undef SIZEOF_SHORT
+
+/* The size of a `size_t', as computed by sizeof. */
+#undef SIZEOF_SIZE_T
+
+/* The size of a `unsigned long', as computed by sizeof. */
+#undef SIZEOF_UNSIGNED_LONG
+
 /* Define to 1 if you have the ANSI C header files. */
 #undef STDC_HEADERS
 
@@ -124,6 +224,88 @@
 /* Define to 1 if your processor stores words with the most significant byte
    first (like Motorola and SPARC, unlike Intel and VAX). */
 #undef WORDS_BIGENDIAN
+
+/*
+ * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
+ * headers and I'm too lazy to write a configure test as long as only
+ * unixware is related
+ */
+#ifdef _UNIXWARE
+#define HAVE_BOOLEAN
+#endif
+
+
+
+/*
+ * AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
+ * that defines bzero.
+ */
+
+#if defined(_AIX)
+#include <strings.h>
+#endif
+
+
+
+#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
+# include <sys/time.h>
+# include <crt_externs.h>
+# define environ (*_NSGetEnviron())
+#endif
+
+
+
+#if !defined(HAVE_STRLCAT_PROTO)
+#ifdef __cplusplus
+extern "C" {
+#endif
+unsigned long strlcat(char*, const char*, unsigned long);
+#ifdef __cplusplus
+}
+#endif
+#endif
+
+
+
+#if !defined(HAVE_STRLCPY_PROTO)
+#ifdef __cplusplus
+extern "C" {
+#endif
+unsigned long strlcpy(char*, const char*, unsigned long);
+#ifdef __cplusplus
+}
+#endif
+#endif
+
+
+
+/*
+ * On HP-UX, the declaration of vsnprintf() is needed every time !
+ */
+
+#if !defined(HAVE_VSNPRINTF) || defined(hpux)
+#if __STDC__
+#include <stdarg.h>
+#include <stdlib.h>
+#else
+#include <varargs.h>
+#endif
+#ifdef __cplusplus
+extern "C"
+#endif
+int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
+#ifdef __cplusplus
+extern "C"
+#endif
+int snprintf(char *str, size_t n, char const *fmt, ...);
+#endif
+
+
+
+#if defined(__SVR4) && !defined(__svr4__)
+#define __svr4__ 1
+#endif
+
 
 /* Compatibility define */
 #undef ksize_t
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/Scribus/configure.in,v
retrieving revision 1.27
diff -u -b -B -r1.27 configure.in
--- configure.in	7 Mar 2004 16:55:48 -0000	1.27
+++ configure.in	1 Apr 2004 10:21:02 -0000
@@ -121,9 +121,18 @@
 AC_DEFINE_UNQUOTED(PREL, "$prefix", [Dataprefix])
 dnl Checks for programs.
 AC_CHECK_COMPILERS
+
+AC_LIBLTDL_CONVENIENCE
 AC_ENABLE_SHARED(yes)
 AC_ENABLE_STATIC(no)
 KDE_PROG_LIBTOOL
+
+AC_LANG_SAVE
+AC_LANG_C
+KDE_LIB_LTDL
+AC_LANG_RESTORE
+
+KDE_USE_QT(3.1)
 hapy=no
 hapython=yes
 KDE_CHECK_PYTHON(1.5)
@@ -175,6 +184,8 @@
 AC_CONFIG_FILES([scribus/dicts/Makefile])
 AC_CONFIG_FILES([scribus/qm/Makefile])
 AC_CONFIG_FILES([scribus/po/Makefile])
+AC_CONFIG_FILES([libltdl/Makefile])
+
 AC_OUTPUT
 echo "Configuration Summary:"
 echo ""
Index: scribus.desktop
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus.desktop,v
retrieving revision 1.3
diff -u -b -B -r1.3 scribus.desktop
--- scribus.desktop	1 Mar 2004 23:44:31 -0000	1.3
+++ scribus.desktop	1 Apr 2004 10:21:02 -0000
@@ -45,6 +45,7 @@
 GenericName[zh_TW]=桌面出版
 GenericName[zu]=Ukushicilelwa kwe-Desktop
 Exec=scribus %f
+Icon=/usr/lib/scribus/icons/scribusicon.png
 MimeType=scd,scd.gz,sla,sla.gz
 Terminal=false
 Icon=scribusicon.png
Index: scribus/Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/Makefile.am,v
retrieving revision 1.26
diff -u -b -B -r1.26 Makefile.am
--- scribus/Makefile.am	29 Mar 2004 22:00:51 -0000	1.26
+++ scribus/Makefile.am	1 Apr 2004 10:21:02 -0000
@@ -1,11 +1,31 @@
 bin_PROGRAMS = scribus
+scribus_SOURCES = main.cpp
+scribus_LDADD = libscribus.la
+
+lib_LTLIBRARIES= libscribus.la
+libscribus_la_SOURCES = art_kmisc.c art_render_misc.c art_render_pattern.c art_rgb.c \
+	art_rgb_affine_private.c art_rgb_svp.c art_rgba_affine.c gdk-pixbuf-xlib-drawable.c \
+	gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlibrgb.c pageselector.cpp shadebutton.cpp \
+	alignselect.cpp styleselect.cpp search.cpp tabmanager.cpp fparser.cpp autoform.cpp story.cpp \
+	vgradient.cpp scpainter.cpp fontcombo.cpp scpreview.cpp lineformats.cpp multiline.cpp splash.cpp \
+	mergedoc.cpp bookpalette.cpp rc4.c md5.c cupsoptions.cpp guidemanager.cpp hyphenator.cpp hyphen.c \
+	hyask.cpp hnjalloc.c hysettings.cpp fpointarray.cpp fpoint.cpp annota.cpp buttonicon.cpp \
+	javadocs.cpp selfield.cpp editor.cpp page.cpp polyprops.cpp mpalette.cpp werktoolb.cpp \
+	keymanager.cpp annot.cpp bookmwin.cpp cmsprefs.cpp customfdialog.cpp picsearch.cpp picstatus.cpp \
+	newtemp.cpp applytemplate.cpp scfonts_ttf.cpp scrap.cpp scfonts.cpp frameedit.cpp spalette.cpp \
+	edit1format.cpp editformats.cpp druck.cpp colorchart.cpp util.cpp cmykcolor.cpp cmykfw.cpp \
+	linecombo.cpp linkbutton.cpp helpbrowser.cpp mspinbox.cpp movepage.cpp delpages.cpp inspage.cpp \
+	tree.cpp missing.cpp fontprefs.cpp fmitem.cpp align.cpp serializer.cpp reformdoc.cpp docinfo.cpp \
+	mdup.cpp cpalette.cpp dcolor.cpp query.cpp colorm.cpp vruler.cpp hruler.cpp pageback.cpp \
+	pageitem.cpp newfile.cpp scribuswin.cpp navigator.cpp pdfopts.cpp seiten.cpp layers.cpp \
+	muster.cpp scribusXml.cpp scribusview.cpp scribusdoc.cpp scribus.cpp  insertTable.cpp
+libscribus_la_LDFLAGS = $(all_libraries) -lpthread
+libscribus_la_LIBADD  = $(LIBJPEG) $(LIBART_LIBS) $(LIBFREETYPE_LIBS) $(LIBCUPS) $(LIBLCMS) $(LIBDL) $(LIBDL2) $(LIBTIFF) -lm $(LIB_QT) -lXext -lX11 $(LIBSOCKET) ../libltdl/libltdlc.la
 
-scribus_SOURCES = art_kmisc.c art_render_misc.c art_render_pattern.c art_rgb.c art_rgb_affine_private.c art_rgb_svp.c art_rgba_affine.c gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlibrgb.c insertTable.cpp pageselector.cpp shadebutton.cpp alignselect.cpp styleselect.cpp search.cpp tabmanager.cpp fparser.cpp autoform.cpp story.cpp vgradient.cpp scpainter.cpp fontcombo.cpp scpreview.cpp lineformats.cpp multiline.cpp splash.cpp mergedoc.cpp bookpalette.cpp rc4.c md5.c cupsoptions.cpp guidemanager.cpp scribuswin.cpp hyphenator.cpp hyphen.c hyask.cpp hnjalloc.c hysettings.cpp seiten.cpp fpointarray.cpp fpoint.cpp annota.cpp buttonicon.cpp javadocs.cpp selfield.cpp editor.cpp page.cpp layers.cpp polyprops.cpp mpalette.cpp werktoolb.cpp keymanager.cpp navigator.cpp annot.cpp bookmwin.cpp cmsprefs.cpp customfdialog.cpp picsearch.cpp picstatus.cpp newtemp.cpp applytemplate.cpp muster.cpp scfonts_ttf.cpp scrap.cpp scfonts.cpp frameedit.cpp spalette.cpp edit1format.cpp editformats.cpp druck.cpp colorchart.cpp util.cpp cmykcolor.cpp cmykfw.cpp scribusXml.cpp linecombo.cpp linkbutton.cpp helpbrowser.cpp mspinbox.cpp movepage.cpp delpages.cpp inspage.cpp pdfopts.cpp tree.cpp missing.cpp fontprefs.cpp fmitem.cpp align.cpp serializer.cpp reformdoc.cpp docinfo.cpp mdup.cpp cpalette.cpp dcolor.cpp query.cpp colorm.cpp vruler.cpp hruler.cpp pageback.cpp pageitem.cpp newfile.cpp scribusview.cpp scribusdoc.cpp scribus.cpp main.cpp 
-SOURCES = art_kmisc.c art_render_misc.c art_render_pattern.c art_rgb.c art_rgb_affine_private.c art_rgb_svp.c art_rgba_affine.c gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlibrgb.c insertTable.cpp pageselector.cpp shadebutton.cpp alignselect.cpp styleselect.cpp search.cpp tabmanager.cpp fparser.cpp autoform.cpp story.cpp vgradient.cpp scpainter.cpp libpdf/pdflib.cpp libpostscript/pslib.cpp plugins/libchar/charselect.cpp libprefs/prefs.cpp libabout/about.cpp fontcombo.cpp scpreview.cpp lineformats.cpp multiline.cpp splash.cpp mergedoc.cpp bookpalette.cpp rc4.c md5.c cupsoptions.cpp guidemanager.cpp scribuswin.cpp hyphenator.cpp hyphen.c hyask.cpp hnjalloc.c hysettings.cpp seiten.cpp fpointarray.cpp fpoint.cpp annota.cpp buttonicon.cpp javadocs.cpp selfield.cpp editor.cpp page.cpp layers.cpp polyprops.cpp mpalette.cpp werktoolb.cpp keymanager.cpp navigator.cpp annot.cpp bookmwin.cpp cmsprefs.cpp customfdialog.cpp picsearch.cpp picstatus.cpp newtemp.cpp applytemplate.cpp muster.cpp scfonts_ttf.cpp scrap.cpp scfonts.cpp frameedit.cpp spalette.cpp edit1format.cpp editformats.cpp druck.cpp colorchart.cpp util.cpp cmykcolor.cpp cmykfw.cpp scribusXml.cpp linecombo.cpp linkbutton.cpp helpbrowser.cpp mspinbox.cpp movepage.cpp delpages.cpp inspage.cpp pdfopts.cpp tree.cpp missing.cpp fontprefs.cpp fmitem.cpp align.cpp serializer.cpp reformdoc.cpp docinfo.cpp mdup.cpp cpalette.cpp dcolor.cpp query.cpp colorm.cpp vruler.cpp hruler.cpp pageback.cpp pageitem.cpp newfile.cpp scribusview.cpp scribusdoc.cpp scribus.cpp main.cpp 
 INTERFACES = 
 TRANSLATIONS = 
 
-SUBDIRS = icons libabout libprefs plugins libpostscript libpdf profiles dicts po qm 
+SUBDIRS = . icons libabout libprefs plugins libpostscript libpdf profiles dicts po qm 
 
 EXTRA_DIST = main.cpp scribus.cpp scribus.h scribusdoc.cpp scribusdoc.h scribusview.cpp scribusview.h newfile.h newfile.cpp pageitem.cpp pageitem.h pageback.cpp pageback.h hruler.cpp hruler.h vruler.cpp vruler.h colorm.cpp colorm.h query.cpp query.h dcolor.cpp dcolor.h cpalette.cpp cpalette.h mdup.cpp mdup.h docinfo.cpp docinfo.h reformdoc.cpp reformdoc.h serializer.cpp serializer.h align.cpp align.h fmitem.cpp fmitem.h fontprefs.cpp fontprefs.h missing.cpp missing.h tree.cpp tree.h pdfopts.cpp pdfopts.h inspage.cpp inspage.h delpages.cpp delpages.h movepage.cpp movepage.h mspinbox.cpp mspinbox.h helpbrowser.cpp helpbrowser.h icons5.h linkbutton.cpp linkbutton.h icons6.h linecombo.cpp linecombo.h scribusXml.cpp scribusXml.h cmykfw.cpp cmykfw.h cmykcolor.cpp cmykcolor.h util.cpp colorchart.cpp colorchart.h druck.cpp druck.h editformats.cpp editformats.h edit1format.cpp edit1format.h spalette.cpp spalette.h frameedit.cpp frameedit.h scfonts.cpp scfonts.h scrap.cpp scrap.h scfonts_ttf.cpp scfonts_ttf.h muster.cpp muster.h applytemplate.cpp applytemplate.h newtemp.cpp newtemp.h picstatus.cpp picstatus.h picsearch.cpp picsearch.h customfdialog.cpp customfdialog.h cmsprefs.cpp cmsprefs.h bookmwin.cpp bookmwin.h annot.cpp annot.h navigator.cpp navigator.h keymanager.cpp keymanager.h werktoolb.cpp werktoolb.h mpalette.h mpalette.cpp polyprops.cpp polyprops.h layers.cpp layers.h page.cpp page.h editor.cpp editor.h selfield.cpp selfield.h javadocs.cpp javadocs.h buttonicon.cpp buttonicon.h annota.cpp annota.h fpoint.cpp fpoint.h fpointarray.cpp fpointarray.h seiten.cpp seiten.h hysettings.cpp hysettings.h hnjalloc.c hnjalloc.h hyask.cpp hyask.h hyphen.c hyphen.h hyphenator.cpp hyphenator.h scribuswin.cpp scribuswin.h guidemanager.cpp guidemanager.h cupsoptions.cpp cupsoptions.h md5.c md5.h rc4.c rc4.h mergedoc.cpp mergedoc.h bookpalette.cpp bookpalette.h splash.h fontcombo.h scpainter.cpp scpainter.h vgradient.cpp vgradient.h story.cpp story.h autoform.cpp autoform.h fparser.cpp fparser.h tabmanager.cpp tabmanager.h search.cpp search.h styleselect.cpp styleselect.h alignselect.cpp alignselect.h shadebutton.cpp shadebutton.h pageselector.cpp pageselector.h insertTable.cpp insertTable.h art_kmisc.c art_kmisc.h art_render_misc.c art_render_misc.h art_render_pattern.c art_render_pattern.h art_rgb.c art_rgb.h art_rgb_affine_private.c art_rgb_affine_private.h art_rgb_svp.c art_rgb_svp.h art_rgba_affine.c art_rgba_affine.h gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-private.h gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlib.h gdk-pixbuf-xlibrgb.c gdk-pixbuf-xlibrgb.h rgbscribus.txt rgbscribusgreys.txt rgbscribusgnome.txt rgbsvg.txt 
 
@@ -154,8 +174,7 @@
 	-rm -f $(prefix)/include/scribus/vgradient.h
 	-rm -f $(prefix)/include/scribus/pageselector.h
 
-scribus_LDADD  = $(LIBJPEG) $(LIBART_LIBS) $(LIBFREETYPE_LIBS) $(LIBCUPS) $(LIBLCMS) $(LIBDL) $(LIBDL2) $(LIBTIFF) -lm $(LIB_QT) -lXext -lX11 $(LIBSOCKET)
-AM_LDFLAGS =   -export-dynamic -s
+AM_LDFLAGS = #-export-dynamic -s
 # set the include path for X, qt and KDE
 INCLUDES= $(LIBART_CFLAGS) $(LIBFREETYPE_CFLAGS) $(all_includes)
 
Index: scribus/hyphen.c
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/hyphen.c,v
retrieving revision 1.2
diff -u -b -B -r1.2 hyphen.c
--- scribus/hyphen.c	23 Feb 2004 22:18:05 -0000	1.2
+++ scribus/hyphen.c	1 Apr 2004 10:21:02 -0000
@@ -327,14 +327,14 @@
   for (i = 0; i < HASH_SIZE; i++)
     for (e = hashtab->entries[i]; e; e = e->next)
       {
-//	for (j = 1; 1; j++)
+/*	for (j = 1; 1; j++) */
 	for (j = 1; *(e->key); j++)
 	  {
 	    state_num = hnj_hash_lookup (hashtab, e->key + j);
 	    if (state_num >= 0)
 	      break;
 	  }
-        // KBH: FIXME state 0 fallback_state should always be -1?
+        /* KBH: FIXME state 0 fallback_state should always be -1? */
 	if (e->val) 
 	  dict->states[e->val].fallback_state = state_num;
       }
@@ -421,8 +421,8 @@
 	{
 
 	  if (state == -1) {
-            // return 1;
-	    // KBH: FIXME shouldn't this be as follows?
+            /* return 1; */
+	    /* KBH: FIXME shouldn't this be as follows? */
             state = 0;
             goto try_next_letter;
           }          
@@ -471,9 +471,9 @@
 	      hyphens[offset + k] = match[k];
 	}
 
-      // KBH: we need this to make sure we keep looking in a word
-      // for patterns even if the current character is not known in state 0
-      // since patterns for hyphenation may occur anywhere in the word
+      /* KBH: we need this to make sure we keep looking in a word
+         for patterns even if the current character is not known in state 0
+         since patterns for hyphenation may occur anywhere in the word */
       try_next_letter: ;
 
     }
Index: scribus/scribus.cpp
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/scribus.cpp,v
retrieving revision 1.134
diff -u -b -B -r1.134 scribus.cpp
--- scribus/scribus.cpp	30 Mar 2004 21:52:32 -0000	1.134
+++ scribus/scribus.cpp	1 Apr 2004 10:21:03 -0000
@@ -144,6 +144,7 @@
 	ScApp = this;
   setCaption( tr("Scribus " VERSION));
 	setKeyCompression(false);
+	lt_dlinit();
   setIcon(loadIcon("AppIcon.png"));
   initMenuBar();
   initStatusBar();
@@ -3793,34 +3794,30 @@
 
 void ScribusApp::slotHelpAbout()
 {
-	void *mo;
+	lt_dlhandle mo;
 	const char *error;
 	typedef About* (*sdem)(QWidget *d);
 	sdem demo;
 	QString pfad = PREL;
-#if defined(__hpux)
-  pfad += "/lib/scribus/libs/libabout.sl";
-#else
-	pfad += "/lib/scribus/libs/libabout.so";
-#endif
-	mo = dlopen(pfad, RTLD_LAZY);
+	pfad += "/lib/scribus/libs/libabout.la";
+	mo = lt_dlopen(pfad);
 	if (!mo)
 		{
 		std::cout << "Can't find Plug-in" << endl;
 		return;
 		}
-	dlerror();
-	demo = (sdem)dlsym(mo, "Run");
-	if ((error = dlerror()) != NULL)
+	lt_dlerror();
+	demo = (sdem)lt_dlsym(mo, "Run");
+	if ((error = lt_dlerror()) != NULL)
 		{
 		std::cout << "Can't find Symbol" << endl;
-		dlclose(mo);
+		lt_dlclose(mo);
 		return;
 		}
 	About* dia = (*demo)(this);
 	dia->exec();
 	delete dia;
-	dlclose(mo);
+	lt_dlclose(mo);
 }
 
 void ScribusApp::slotHelpAboutQt()
@@ -5696,29 +5693,25 @@
 
 void ScribusApp::slotPrefsOrg()
 {
-	void *mo;
-	char *error;
+	lt_dlhandle mo;
+	const char *error;
 	bool zChange = false;
 	typedef Preferences* (*sdem)(QWidget *d, preV *Vor);
 	sdem demo;
 	QString pfad = PREL;
-#if defined(__hpux)
-	pfad += "/lib/scribus/libs/libpreferences.sl";
-#else
-	pfad += "/lib/scribus/libs/libpreferences.so";
-#endif
-	mo = dlopen(pfad, RTLD_LAZY);
+	pfad += "/lib/scribus/libs/libpreferences.la";
+	mo = lt_dlopen(pfad);
 	if (!mo)
 		{
 		std::cout << "Can't find Plug-in" << endl;
 		return;
 		}
-	dlerror();
-	demo = (sdem)dlsym(mo, "Run");
-	if ((error = dlerror()) != NULL)
+	lt_dlerror();
+	demo = (sdem)lt_dlsym(mo, "Run");
+	if ((error = lt_dlerror()) != NULL)
 		{
 		std::cout << "Can't find Symbol" << endl;
-		dlclose(mo);
+		lt_dlclose(mo);
 		return;
 		}
 	Preferences *dia = (*demo)(this, &Prefs);
@@ -5999,7 +5992,7 @@
 		SavePrefs();
 		}
 	delete dia;
-	dlclose(mo);
+	lt_dlclose(mo);
 }
 
 void ScribusApp::SavePrefs()
@@ -6148,23 +6141,19 @@
 	typedef PSLib* (*sdem)(bool psart, SCFonts &AllFonts, QMap<QString,QFont> DocFonts, CListe DocColors, bool pdf);
 	sdem demo;
 	QString pfad = PREL;
-#if defined(__hpux)
-	pfad += "/lib/scribus/libs/libpostscript.sl";
-#else
-	pfad += "/lib/scribus/libs/libpostscript.so";
-#endif
-	PSDriver = dlopen(pfad, RTLD_LAZY);
+	pfad += "/lib/scribus/libs/libpostscript.la";
+	PSDriver = lt_dlopen(pfad);
 	if (!PSDriver)
 		{
 		std::cout << "Can't find Plugin" << endl;
 		return NULL;
 		}
-	dlerror();
-	demo = (sdem)dlsym(PSDriver, "Run");
-	if ((error = dlerror()) != NULL)
+	lt_dlerror();
+	demo = (sdem)lt_dlsym(PSDriver, "Run");
+	if ((error = lt_dlerror()) != NULL)
 		{
 		std::cout << "Can't find Symbol" << endl;
-		dlclose(PSDriver);
+		lt_dlclose(PSDriver);
 		return NULL;
 		}
 	PSLib *dia = (*demo)(psart, AllFonts, DocFonts, DocColors, pdf);
@@ -6173,38 +6162,35 @@
 
 void ScribusApp::closePSDriver()
 {
-	dlclose(PSDriver);
+	lt_dlclose(PSDriver);
 }
 
 bool ScribusApp::getPDFDriver(QString fn, QString nam, int Components, int frPa, int toPa, QMap<int,QPixmap> thumbs)
 {
 	bool ret = false;
-	char *error;
-	void *PDFDriver;
+	const char *error;
+	lt_dlhandle PDFDriver;
 	typedef bool (*sdem)(ScribusApp *plug, QString fn, QString nam, int Components, int frPa, int toPa, QMap<int,QPixmap> thumbs, QProgressBar *dia2);
 	sdem demo;
 	QString pfad = PREL;
-#if defined(__hpux)
-  pfad += "/lib/scribus/libs/libpdf.sl";
-#else
-	pfad += "/lib/scribus/libs/libpdf.so";
-#endif
-	PDFDriver = dlopen(pfad, RTLD_NOW);
+	pfad += "/lib/scribus/libs/libpdf.la";
+
+	PDFDriver = lt_dlopen(pfad);
 	if (!PDFDriver)
 		{
 		std::cout << "Can't find Plugin" << endl;
 		return false;
 		}
-	dlerror();
-	demo = (sdem)dlsym(PDFDriver, "Run");
-	if ((error = dlerror()) != NULL)
+	lt_dlerror();
+	demo = (sdem)lt_dlsym(PDFDriver, "Run");
+	if ((error = lt_dlerror()) != NULL)
 		{
 		std::cout << "Can't find Symbol" << endl;
-		dlclose(PDFDriver);
+		lt_dlclose(PDFDriver);
 		return false;
 		}
 	ret = (*demo)(this, fn, nam, Components, frPa, toPa, thumbs, FProg);
-	dlclose(PDFDriver);
+	lt_dlclose(PDFDriver);
 	return ret;
 }
 
@@ -6811,11 +6797,11 @@
 		{
 		if (it.data().Typ == 4)
 			{
-			dlerror();
-			demo2 = (sdem2)dlsym(it.data().Zeiger, "CleanUpPlug");
-			if ((error = dlerror()) != NULL)
+			lt_dlerror();
+			demo2 = (sdem2)lt_dlsym(it.data().Zeiger, "CleanUpPlug");
+			if ((error = lt_dlerror()) != NULL)
 				{
-				dlclose(it.data().Zeiger);
+				lt_dlclose(it.data().Zeiger);
 				continue;
 				}
 			else
@@ -6833,11 +6819,8 @@
 	int ty = 0;
 	struct PlugData pda;
 	pfad += "/lib/scribus/plugins/";
-#if defined(__hpux)
-	QDir d(pfad, "*.sl*", QDir::Name, QDir::Files | QDir::Executable | QDir::NoSymLinks);
-#else
-	QDir d(pfad, "*.so*", QDir::Name, QDir::Files | QDir::Executable | QDir::NoSymLinks);
-#endif
+	QDir d(pfad, "*.la*", QDir::Name, QDir::Files | QDir::Executable | QDir::NoSymLinks);
+
 	if ((d.exists()) && (d.count() != 0))
 		{
 		extraMenu->insertSeparator();
@@ -6871,7 +6854,7 @@
 
 void ScribusApp::CallDLL(QString name)
 {
-	void *mo;
+	lt_dlhandle mo;
 	const char *error;
 	struct PlugData pda;
 	pda = PluginMap[name];
@@ -6881,7 +6864,7 @@
 	if (pda.Typ != 4)
 		{
 		pfad += "/lib/scribus/plugins/" + pda.Datei;
-		mo = dlopen(pfad, RTLD_LAZY | RTLD_GLOBAL);
+		mo = lt_dlopen(pfad);
 		if (!mo)
 			{
 			std::cout << "Can't find Plug-in" << endl;
@@ -6890,24 +6873,24 @@
 		}
 	else
 		mo = pda.Zeiger;
-	dlerror();
-	demo = (sdem)dlsym(mo, "Run");
-	if ((error = dlerror()) != NULL)
+	lt_dlerror();
+	demo = (sdem)lt_dlsym(mo, "Run");
+	if ((error = lt_dlerror()) != NULL)
 		{
 		std::cout << "Can't find Symbol" << endl;
-		dlclose(mo);
+		lt_dlclose(mo);
 		return;
 		}
 	(*demo)(this, this);
 	if (pda.Typ != 4)
-		dlclose(mo);
+		lt_dlclose(mo);
 	if (HaveDoc)
 	 	doc->ActPage->update();
 }
 
-bool ScribusApp::DLLName(QString name, QString *PName, int *typ, void **Zeig)
+bool ScribusApp::DLLName(QString name, QString *PName, int *typ, lt_dlhandle *Zeig)
 {
-	void *mo;
+	lt_dlhandle mo;
 	const char *error;
 	typedef QString (*sdem0)();
 	typedef int (*sdem1)();
@@ -6917,35 +6900,35 @@
 	sdem2 demo2;
 	QString pfad = PREL;
 	pfad += "/lib/scribus/plugins/" + name;
-	mo = dlopen(pfad, RTLD_LAZY | RTLD_GLOBAL);
+	mo = lt_dlopen(pfad);
 	if (!mo)
 		return false;
-	dlerror();
-	demo = (sdem0)dlsym(mo, "Name");
-	if ((error = dlerror()) != NULL)
+	lt_dlerror();
+	demo = (sdem0)lt_dlsym(mo, "Name");
+	if ((error = lt_dlerror()) != NULL)
 		{
-		dlclose(mo);
+		lt_dlclose(mo);
 		return false;
 		}
 	*PName = (*demo)();
-	dlerror();
-	demo1 = (sdem1)dlsym(mo, "Type");
-	if ((error = dlerror()) != NULL)
+	lt_dlerror();
+	demo1 = (sdem1)lt_dlsym(mo, "Type");
+	if ((error = lt_dlerror()) != NULL)
 		{
-		dlclose(mo);
+		lt_dlclose(mo);
 		return false;
 		}
 	*typ = (*demo1)();
 	*Zeig = mo;
 	if (*typ != 4)
-		dlclose(mo);
+		lt_dlclose(mo);
 	else
 		{
-		dlerror();
-		demo2 = (sdem2)dlsym(mo, "InitPlug");
-		if ((error = dlerror()) != NULL)
+		lt_dlerror();
+		demo2 = (sdem2)lt_dlsym(mo, "InitPlug");
+		if ((error = lt_dlerror()) != NULL)
 			{
-			dlclose(mo);
+			lt_dlclose(mo);
 			return false;
 			}
 		(*demo2)(this, this);
Index: scribus/scribus.h
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/scribus.h,v
retrieving revision 1.38
diff -u -b -B -r1.38 scribus.h
--- scribus/scribus.h	14 Mar 2004 21:59:27 -0000	1.38
+++ scribus/scribus.h	1 Apr 2004 10:21:03 -0000
@@ -44,6 +44,8 @@
 #include <qptrlist.h>
 #include <qclipboard.h>
 
+#include "../libltdl/ltdl.h"
+
 // application specific includes
 #include "scribusview.h"
 #include "scribusdoc.h"
@@ -101,7 +103,7 @@
 	void InitPlugs(SplashScreen *spl);
 	void InitHyphenator();
 	void FinalizePlugs();
-	bool DLLName(QString name, QString *PName, int *typ, void **Zeig);
+	bool DLLName(QString name, QString *PName, int *typ, lt_dlhandle *Zeig);
 	void CallDLL(QString name);
 	PSLib* getPSDriver(bool psart, SCFonts &AllFonts, QMap<QString,QFont> DocFonts, CListe DocColors, bool pdf);
 	void closePSDriver();
@@ -534,12 +536,12 @@
 	double pts2mm(double pts);
 	QMap<int,QString> FontID;
 	int HaveGS;
-	void *PSDriver;
+	lt_dlhandle PSDriver;
 	int DocNr;
 	QStringList RecentDocs;
 	struct PlugData { 
 						QString Datei;
-					  	void *Zeiger;
+					  	lt_dlhandle Zeiger;
 					  	int Typ;
 					} ;
 	QMap<QString, PlugData> PluginMap;
Index: scribus/libabout/Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/libabout/Makefile.am,v
retrieving revision 1.2
diff -u -b -B -r1.2 Makefile.am
--- scribus/libabout/Makefile.am	1 Oct 2003 20:39:09 -0000	1.2
+++ scribus/libabout/Makefile.am	1 Apr 2004 10:21:03 -0000
@@ -3,7 +3,7 @@
 
 INCLUDES = $(LIBFREETYPE_CFLAGS) $(all_includes)
 
-libabout_la_LDFLAGS = -version-info 0:0:0
+libabout_la_LDFLAGS = -version-info 0:0:0 ../libscribus.la
 
 libabout_la_METASOURCES = AUTO
 
Index: scribus/libpdf/Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/libpdf/Makefile.am,v
retrieving revision 1.3
diff -u -b -B -r1.3 Makefile.am
--- scribus/libpdf/Makefile.am	3 Nov 2003 15:03:49 -0000	1.3
+++ scribus/libpdf/Makefile.am	1 Apr 2004 10:21:03 -0000
@@ -5,7 +5,7 @@
 INCLUDES = $(LIBFREETYPE_CFLAGS) $(all_includes)
 
 
-libpdf_la_LDFLAGS = -version-info 0:0:0
+libpdf_la_LDFLAGS = -version-info 0:0:0 ../libscribus.la $(LIBTIFF)
 
 libpdf_la_METASOURCES = AUTO
 
Index: scribus/libpostscript/Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/libpostscript/Makefile.am,v
retrieving revision 1.3
diff -u -b -B -r1.3 Makefile.am
--- scribus/libpostscript/Makefile.am	3 Nov 2003 15:03:49 -0000	1.3
+++ scribus/libpostscript/Makefile.am	1 Apr 2004 10:21:03 -0000
@@ -4,7 +4,7 @@
 
 INCLUDES = $(LIBFREETYPE_CFLAGS) $(all_includes)
 
-libpostscript_la_LDFLAGS = -version-info 0:0:0
+libpostscript_la_LDFLAGS = -version-info 0:0:0 ../libscribus.la
 
 libpostscript_la_METASOURCES = AUTO
 
Index: scribus/libprefs/Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/libprefs/Makefile.am,v
retrieving revision 1.2
diff -u -b -B -r1.2 Makefile.am
--- scribus/libprefs/Makefile.am	1 Oct 2003 20:39:10 -0000	1.2
+++ scribus/libprefs/Makefile.am	1 Apr 2004 10:21:03 -0000
@@ -4,7 +4,7 @@
 
 INCLUDES = $(LIBFREETYPE_CFLAGS) $(all_includes)
 
-libpreferences_la_LDFLAGS = -version-info 0:0:0
+libpreferences_la_LDFLAGS = -version-info 0:0:0 ../libscribus.la
 
 libpreferences_la_METASOURCES = AUTO
 
Index: scribus/plugins/libchar/Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/plugins/libchar/Makefile.am,v
retrieving revision 1.2
diff -u -b -B -r1.2 Makefile.am
--- scribus/plugins/libchar/Makefile.am	1 Oct 2003 20:39:10 -0000	1.2
+++ scribus/plugins/libchar/Makefile.am	1 Apr 2004 10:21:03 -0000
@@ -4,7 +4,7 @@
 
 INCLUDES = $(LIBFREETYPE_CFLAGS) $(all_includes)
 
-libcharselect_la_LDFLAGS = -version-info 0:0:0
+libcharselect_la_LDFLAGS = -version-info 0:0:0 ../../libscribus.la
 
 libcharselect_la_METASOURCES = AUTO
 
Index: scribus/plugins/printpreview/Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/plugins/printpreview/Makefile.am,v
retrieving revision 1.2
diff -u -b -B -r1.2 Makefile.am
--- scribus/plugins/printpreview/Makefile.am	1 Oct 2003 20:39:10 -0000	1.2
+++ scribus/plugins/printpreview/Makefile.am	1 Apr 2004 10:21:03 -0000
@@ -4,7 +4,7 @@
 
 INCLUDES = $(LIBFREETYPE_CFLAGS) $(all_includes)
 
-libpreview_la_LDFLAGS = -version-info 0:0:0
+libpreview_la_LDFLAGS = -version-info 0:0:0 ../../libscribus.la
 
 libpreview_la_METASOURCES = AUTO
 
Index: scribus/plugins/scriptplugin/Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/plugins/scriptplugin/Makefile.am,v
retrieving revision 1.5
diff -u -b -B -r1.5 Makefile.am
--- scribus/plugins/scriptplugin/Makefile.am	7 Mar 2004 15:52:11 -0000	1.5
+++ scribus/plugins/scriptplugin/Makefile.am	1 Apr 2004 10:21:03 -0000
@@ -3,7 +3,7 @@
 AM_CPPFLAGS = -I$(top_builddir)/scribus $(PYTHONINC)
 plugins_LTLIBRARIES = libscriptplugin.la
 INCLUDES = $(LIBFREETYPE_CFLAGS) $(all_includes)
-libscriptplugin_la_LDFLAGS = -version-info 0:0:0
+libscriptplugin_la_LDFLAGS = -version-info 0:0:0 ../../libscribus.la
 libscriptplugin_la_METASOURCES = AUTO
 libscriptplugin_la_SOURCES = cmdutil.cpp cmddialog.cpp cmddoc.cpp cmdpage.cpp cmdobj.cpp cmdgetprop.cpp cmdsetprop.cpp cmdtext.cpp cmdmani.cpp cmdcolor.cpp cmdmisc.cpp guiapp.cpp conswin.cpp pconsole.cpp scriptplugin.cpp 
 EXTRA_DIST = cmdvar.h cmdutil.cpp cmdutil.h cmddialog.cpp cmddialog.h cmddoc.cpp cmddoc.h cmdpage.cpp cmdpage.h cmdobj.cpp cmdobj.h cmdgetprop.cpp cmdgetprop.h cmdsetprop.cpp cmdsetprop.h cmdtext.cpp cmdtext.h cmdmani.cpp cmdmani.h cmdcolor.cpp cmdcolor.h cmdmisc.cpp cmdmisc.h guiapp.cpp guiapp.h scriptplugin.cpp scriptplugin.h pconsole.cpp pconsole.h conswin.cpp conswin.h 
Index: scribus/plugins/svgexplugin/Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/plugins/svgexplugin/Makefile.am,v
retrieving revision 1.2
diff -u -b -B -r1.2 Makefile.am
--- scribus/plugins/svgexplugin/Makefile.am	1 Oct 2003 20:39:10 -0000	1.2
+++ scribus/plugins/svgexplugin/Makefile.am	1 Apr 2004 10:21:03 -0000
@@ -3,7 +3,7 @@
 plugins_LTLIBRARIES = libsvgexplugin.la
 INCLUDES = $(LIBFREETYPE_CFLAGS) $(all_includes)
 AM_LDFLAGS =  -s $(LIBFREETYPE_LIBS)      
-libsvgexplugin_la_LDFLAGS = -version-info 0:0:0
+libsvgexplugin_la_LDFLAGS = -version-info 0:0:0 ../../libscribus.la
 libsvgexplugin_la_METASOURCES = AUTO
 libsvgexplugin_la_SOURCES = svgexplugin.cpp 
 KDE_OPTIONS = qtonly
Index: scribus/plugins/svgimplugin/Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Scribus/scribus/plugins/svgimplugin/Makefile.am,v
retrieving revision 1.1
diff -u -b -B -r1.1 Makefile.am
--- scribus/plugins/svgimplugin/Makefile.am	1 Oct 2003 20:39:10 -0000	1.1
+++ scribus/plugins/svgimplugin/Makefile.am	1 Apr 2004 10:21:03 -0000
@@ -3,7 +3,7 @@
 plugins_LTLIBRARIES = libsvgimplugin.la
 INCLUDES = $(LIBFREETYPE_CFLAGS) $(all_includes)
 AM_LDFLAGS =  -s $(LIBFREETYPE_LIBS)      
-libsvgimplugin_la_LDFLAGS = -version-info 0:0:0
+libsvgimplugin_la_LDFLAGS = -version-info 0:0:0 ../../libscribus.la
 libsvgimplugin_la_METASOURCES = AUTO
 libsvgimplugin_la_SOURCES = svgplugin.cpp 
 KDE_OPTIONS = qtonly
