File traceroute-autotools.patch of Package traceroute

--- /dev/null
+++ Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = libsupp traceroute
\ No newline at end of file
--- /dev/null
+++ configure.ac
@@ -0,0 +1,40 @@
+#                                               -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.60)
+AC_INIT([traceroute],
+        [2.0.19],
+        [traceroute-devel@lists.sourceforge.net],
+        [traceroute],
+        [http://traceroute.sourceforge.net/])
+AC_CONFIG_SRCDIR([traceroute/traceroute.h])
+AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects])
+
+# Checks for programs.
+AC_PROG_AWK
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
+AC_PROG_INSTALL
+AC_PROG_LN_S
+LT_INIT([disable-static pic-only])
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_CHECK_HEADERS([fcntl.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_SIZE_T
+
+# Checks for library functions.
+AC_FUNC_ALLOCA
+AC_FUNC_ERROR_AT_LINE
+AC_FUNC_MALLOC
+AC_FUNC_REALLOC
+AC_FUNC_STRTOD
+AC_CHECK_FUNCS([dup2 gettimeofday memset setlocale socket strcasecmp strchr strdup strrchr strstr strtol strtoul uname])
+
+AC_CONFIG_FILES([Makefile libsupp/Makefile traceroute/Makefile])
+AC_OUTPUT
--- /dev/null
+++ libsupp/Makefile.am
@@ -0,0 +1,5 @@
+AM_CPPFLAGS = -include $(top_builddir)/config.h
+
+noinst_LTLIBRARIES = libsupp.la
+
+libsupp_la_SOURCES = clif.c clif.h
--- /dev/null
+++ traceroute/Makefile.am
@@ -0,0 +1,18 @@
+
+
+
+AM_CPPFLAGS = -include $(top_builddir)/config.h
+
+sbin_PROGRAMS = traceroute
+
+man8_MANS = traceroute.8
+
+traceroute_CFLAGS = $(AM_CFLAGS) -fpie
+traceroute_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/libsupp
+traceroute_SOURCES = as_lookups.c extension.c mod-icmp.c mod-tcp.c  \
+					 mod-udp.c poll.c time.c traceroute.c \
+					 csum.c flowlabel.h mod-tcpconn.c traceroute.h \
+					 mod-dccp.c mod-raw.c module.c random.c
+
+traceroute_LDFLAGS = -pie
+traceroute_LDADD = $(top_builddir)/libsupp/libsupp.la
\ No newline at end of file
--- traceroute/traceroute.c.orig
+++ traceroute/traceroute.c
@@ -28,7 +28,6 @@
 #include "flowlabel.h"
 
 #include <clif.h>
-#include "version.h"
 #include "traceroute.h"
 
 
@@ -72,7 +71,7 @@
 
 
 static char version_string[] = "Modern traceroute for Linux, "
-				"version " _TEXT(VERSION) ", " __DATE__
+				"version " _TEXT(VERSION)
 				"\nCopyright (c) 2008  Dmitry Butskoy, "
 				"  License: GPL v2 or any later";
 static int debug = 0;
openSUSE Build Service is sponsored by