]> granicus.if.org Git - graphviz/commitdiff
Cygwin changes
authorellson <devnull@localhost>
Tue, 18 Oct 2005 20:58:04 +0000 (20:58 +0000)
committerellson <devnull@localhost>
Tue, 18 Oct 2005 20:58:04 +0000 (20:58 +0000)
Bob Lied <lied@lucent.com>

cmd/gvpr/Makefile.am
configure.ac
lib/gd/Makefile.am
lib/gvc/Makefile.am
lib/gvc/gvconfig.c
lib/gvc/gvplugin.c
lib/pack/Makefile.am

index 6eff2aae865f3285a69062e4069880f18e4e6d61..a86f572034d7e3d3de0f219eb5d5362764110f01 100644 (file)
@@ -21,12 +21,14 @@ pdf_DATA = gvpr.pdf
 gvpr_SOURCES = actions.c compile.c gvpr.c gprstate.c parse.c queue.c
 
 gvpr_LDADD = $(top_builddir)/lib/expr/libexpr.la \
-       $(top_builddir)/lib/ast/libast.la \
         $(top_builddir)/lib/vmalloc/libvmalloc.la \
        $(top_builddir)/lib/sfio/libsfio.la \
         $(top_builddir)/lib/ingraphs/libingraphs.la \
        $(top_builddir)/lib/agraph/libagraph.la @MATH_LIBS@
 
+gvpr_DEPENDENCIES = \
+       $(top_builddir)/lib/ast/libast.la
+
 $(gvpr_OBJECTS): gdefs.h
 
 mkdefs_SOURCES = mkdefs.c
index 824ad5e7a32b4a57ed7fed0ee971c6f863e3add7..78e3031270af3bde0a68e21571cf0c2e125abcb6 100644 (file)
@@ -79,6 +79,7 @@ case "${host_os}" in
        CYGWIN=yes
        DEFAULT_FONTPATH="C:/WINDOWS/FONTS;C:/WINNT/Fonts;C:/winnt/fonts"
        PATHSEPARATOR=";"
+       AC_DEFINE(NO_POSTSCRIPT_ALIAS,1,[Alias PostScript font names to URW type 1 fonts])
        ;;
   *mingw32* )
        MINGW32=yes
index 460c1821ae2e79d1f703ce5e88ae292ba4325481..fbff8460e9ac57b9a4b026fd5f02e83dd052a7ad 100644 (file)
@@ -17,7 +17,7 @@ noinst_PROGRAMS = annotate gdparttopng gdtopng gd2copypal gd2topng pngtogd \
 html_DATA = $(html)
 endif
 
-libgvgd_la_LDFLAGS = -version-info 2:0:0
+libgvgd_la_LDFLAGS = -version-info 2:0:0 -no-undefined
 
 libgvgd_la_SOURCES = gd.c gdfx.c gd_security.c gd_gd.c gd_gd2.c gd_io.c gd_io_dp.c \
        gd_gif_in.c gd_gif_out.c gd_io_file.c gd_io_ss.c gd_jpeg.c gd_png.c \
index e896f3dc495cf98fb6bd84b57c63b1c31d3a25cb..d13a90174ab71cf597ede9ec4364efca0ff19956 100644 (file)
@@ -31,6 +31,7 @@ libgvc_builtins_la_SOURCES = gvrender.c gvlayout.c gvtextlayout.c gvdevice.c \
 libgvc_la_SOURCES = ${libgvc_builtins_la_SOURCES} no_builtins.c
 
 libgvc_builtins_la_LIBADD = \
+       $(top_builddir)/lib/cdt/libcdt.la \
        $(top_builddir)/lib/common/libcommon.la \
        $(top_builddir)/lib/graph/libgraph.la \
        $(top_builddir)/lib/pathplan/libpathplan.la \
index 1db9bf93afc956c55a10ea96b80b1f92b510f733..2ca05b38408f5b5e84041b02d9a9622fe471fb6d 100644 (file)
@@ -278,10 +278,13 @@ static void config_rescan(GVC_t *gvc, char *config_path)
     gvplugin_library_t *library;
     regex_t re;
     char *plugin_glob = "libgvplugin_*";
-#ifdef DARWIN_DYLIB
-    /* Mac OS X / Darwin */
+#if defined(DARWIN_DYLIB)
     char *plugin_re_beg = "[^0-9]\\.";
     char *plugin_re_end = "\\.dylib$";
+#elif defined(__CYGWIN__)
+    plugin_glob = "cyggvplugin_*";
+    char *plugin_re_beg = "[^0-9]-";
+    char *plugin_re_end = "\\.dll$"; 
 #else
     /* Everyone else */
     char *plugin_re_beg = "\\.so\\.";
index 34cbfa94e4d92c2f9b4b323e73858b28a3c7bd5f..a2d47e427268e5d4b5ec29485fb2e77bf854f698 100644 (file)
@@ -142,8 +142,12 @@ gvplugin_library_t *gvplugin_library_load(char *path)
        return NULL;
     }
     sym = gmalloc(len + strlen(suffix) + 1);
-    strcpy(sym, s+4);         /* strip leading "/lib" */
-    s = strchr(sym, '.');     /* strip trailing ".so.0" */
+    strcpy(sym, s+4);         /* strip leading "/lib" or "/cyg" */
+#ifdef __CYGWIN__
+    s = strchr(sym, '-');     /* strip trailing "-1.dll" */
+#else 
+    s = strchr(sym, '.');     /* strip trailing ".so.0" or ".dll" */
+#endif
     strcpy(s,suffix);         /* append "_LTX_library" */
 
     ptr = lt_dlsym (hndl, sym);
index b4ff0cabef1d0379e7b8182a5c9beeb4f560e4b5..15933df10a3bf6d3796a808439be93b884b348e8 100644 (file)
@@ -20,6 +20,7 @@ libpack_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
 libpack_la_SOURCES = ccomps.c pack.c
 
 libpack_la_LIBADD = \
+       $(top_builddir)/lib/graph/libgraph.la
        $(top_builddir)/lib/gvc/libgvc.la
 
 .3.pdf: