--- agg-2.5.old/Makefile.in.Linux +++ agg-2.5/Makefile.in.Linux @@ -1,5 +1,5 @@ -AGGLIBS= -lagg -AGGCXXFLAGS = -O3 -I/usr/X11R6/include -L/usr/X11R6/lib +AGGLIBS= -lagg -lm +AGGCXXFLAGS = -fPIC -O3 -I/usr/X11R6/include -L/usr/X11R6/lib CXX = g++ C = gcc #CXX = icc --- agg-2.5.old/Makefile.in.Linux.SDL +++ agg-2.5/Makefile.in.Linux.SDL @@ -1,5 +1,5 @@ -AGGLIBS= -lagg -lSDL -AGGCXXFLAGS = -O3 -I/usr/include/SDL -L/usr/lib +AGGLIBS= -lagg -lSDL -lm +AGGCXXFLAGS = -fPIC -O3 -I/usr/include/SDL -L/usr/lib CXX = g++ C = gcc #CXX = icc --- agg-2.5.old/Makefile.am +++ agg-2.5/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = gpc src font_freetype font_win32_tt include examples +SUBDIRS = src font_freetype font_win32_tt include examples pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libagg.pc @@ -19,3 +19,4 @@ # M4 macro file for inclusion with autoconf m4datadir = $(datadir)/aclocal m4data_DATA = libagg.m4 + --- agg-2.5.old/configure.in +++ agg-2.5/configure.in @@ -1,14 +1,14 @@ -AC_INIT(src/agg_arc.cpp) # give me a source file, any source file... +AC_INIT([agg], [2.5.0]) +AC_CONFIG_SRCDIR([src/agg_arc.cpp]) # give me a source file, any source file... AC_CANONICAL_TARGET AC_CONFIG_HEADERS(include/config.h) -AM_INIT_AUTOMAKE(agg, 2.5.0) +AM_INIT_AUTOMAKE([foreign]) dnl Checks for programs. AC_PROG_CC AC_PROG_CXX AC_ISC_POSIX -AM_C_PROTOTYPES if test "x$U" != "x"; then AC_MSG_ERROR(Compiler not ANSI compliant) fi @@ -144,7 +144,6 @@ AC_OUTPUT( Makefile libagg.pc - gpc/Makefile font_freetype/Makefile font_win32_tt/Makefile src/Makefile --- agg-2.5.old/src/platform/X11/Makefile.am +++ agg-2.5/src/platform/X11/Makefile.am @@ -1,7 +1,7 @@ if ENABLE_X11 lib_LTLIBRARIES = libaggplatformX11.la -libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ -L@x_libraries@ +libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ libaggplatformX11_la_SOURCES = agg_platform_support.cpp libaggplatformX11_la_CXXFLAGS = -I$(top_srcdir)/include -I@x_includes@ libaggplatformX11_la_LIBADD = -lX11