]> granicus.if.org Git - graphviz/commitdiff
build with regex_win32.c on Windows
authorJohn Ellson <ellson@research.att.com>
Thu, 16 Aug 2012 12:20:46 +0000 (08:20 -0400)
committerJohn Ellson <ellson@research.att.com>
Thu, 16 Aug 2012 12:20:46 +0000 (08:20 -0400)
configure.ac
lib/gvc/Makefile.am

index 0888a323f0e6b3588839a6bea4e143af189300fc..cb7eec3259dc0750b7ea63b819bc559874cb22db 100644 (file)
@@ -475,7 +475,7 @@ AC_FUNC_ALLOCA
 AC_CHECK_FUNCS([lrand48 drand48 srand48 setmode setenv getenv \
        __freadable _sysconf getrusage strerror cbrt lsqrt vsnprintf \
        strtoul strtoll strtoull uname memset nl_langinfo pow sqrt \
-       strchr strdup strerror strstr strtok_r _NSGetEnviron])
+       strchr strdup strerror strstr strtok_r regexec _NSGetEnviron])
 
 AC_REPLACE_FUNCS([strcasecmp strncasecmp strcasestr])
 
index d5e3404e674b2b5a4d3ed9c05834222d20d0abdb..b2f88b61ceaf2161450263ce1ad8f91e68cea703 100644 (file)
@@ -23,6 +23,7 @@ AM_CPPFLAGS = \
 if WITH_WIN32
 AM_CFLAGS = -D_BLD_gvc=1
 AM_CPPFLAGS += -O0
+REGEX_SRC=regex_win32.c
 endif
 
 LIBS = $(SOCKET_LIBS) $(Z_LIBS) $(MATH_LIBS)
@@ -30,7 +31,7 @@ LIBS = $(SOCKET_LIBS) $(Z_LIBS) $(MATH_LIBS)
 pkginclude_HEADERS = gvc.h gvcext.h gvplugin.h gvcjob.h \
        gvcommon.h gvplugin_render.h gvplugin_layout.h gvconfig.h \
        gvplugin_textlayout.h gvplugin_device.h gvplugin_loadimage.h
-noinst_HEADERS = gvcint.h gvcproc.h gvio.h
+noinst_HEADERS = gvcint.h gvcproc.h gvio.h regex_win32.h
 noinst_LTLIBRARIES = libgvc_C.la
 lib_LTLIBRARIES = libgvc.la
 pkgconfig_DATA = libgvc.pc
@@ -40,7 +41,7 @@ pdf_DATA = gvc.3.pdf
 
 libgvc_C_la_SOURCES = gvrender.c gvlayout.c gvdevice.c gvloadimage.c \
        gvcontext.c gvjobs.c gvevent.c gvplugin.c gvconfig.c \
-       gvtextlayout.c gvusershape.c gvc.c
+       gvtextlayout.c gvusershape.c gvc.c $(REGEX_SRC)
 libgvc_C_la_LIBADD = \
        $(top_builddir)/lib/pack/libpack_C.la \
        $(top_builddir)/lib/xdot/libxdot_C.la \