From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- ...traceroute-1.5_beta7-cross-compile-checks.patch | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 net-analyzer/tcptraceroute/files/tcptraceroute-1.5_beta7-cross-compile-checks.patch (limited to 'net-analyzer/tcptraceroute/files') diff --git a/net-analyzer/tcptraceroute/files/tcptraceroute-1.5_beta7-cross-compile-checks.patch b/net-analyzer/tcptraceroute/files/tcptraceroute-1.5_beta7-cross-compile-checks.patch new file mode 100644 index 000000000000..469f57d4add7 --- /dev/null +++ b/net-analyzer/tcptraceroute/files/tcptraceroute-1.5_beta7-cross-compile-checks.patch @@ -0,0 +1,62 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -148,11 +148,9 @@ + + # Is this Solaris? + AC_MSG_CHECKING(for Solaris) +-AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ +-#if defined (__SVR4) && defined (__sun) +- exit(0); +-#else +- exit(-1); ++AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [], [ ++#if ! ( defined (__SVR4) && defined (__sun) ) ++#error "Not Solaris" + #endif + ]) + ],[ +@@ -165,11 +163,9 @@ + + # Is this BSDI? + AC_MSG_CHECKING(for BSDI) +-AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ +-#if defined (__bsdi__) +- exit(0); +-#else +- exit(-1); ++AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [], [ ++#if ! defined (__bsdi__) ++#error "Not BSDI" + #endif + ]) + ],[ +@@ -182,11 +178,9 @@ + + # Is this NetBSD? + AC_MSG_CHECKING(for NetBSD) +-AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ +-#if defined (__NetBSD__) +- exit(0); +-#else +- exit(-1); ++AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [], [ ++#if ! defined (__NetBSD__) ++#error "Not NetBSD"; + #endif + ]) + ],[ +@@ -199,11 +193,9 @@ + + # Is this MacOS X? + AC_MSG_CHECKING(for MacOS X) +-AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ +-#if defined (__APPLE__) && defined (__MACH__) +- exit(0); +-#else +- exit(-1); ++AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [], [ ++#if ! ( defined (__APPLE__) && defined (__MACH__) ) ++#error "Not Mac OS X" + #endif + ]) + ],[ -- cgit v1.2.3