summaryrefslogtreecommitdiff
path: root/benchmarks/netperf/scripts/configure
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1996-08-03 19:51:05 +0000
committerPaul Traina <pst@FreeBSD.org>1996-08-03 19:51:05 +0000
commit1472849a6e4df8aeb15a83df2776ba55a966d2b2 (patch)
tree3c82c8efd8cf3afb79cf86e5dfbc4771dfd7d074 /benchmarks/netperf/scripts/configure
parentDon't allow a package to be made, and insist that gnats UID is present before (diff)
Re-import netperf package under benchmarks.
Requested by: asami
Notes
Notes: svn path=/head/; revision=3512
Diffstat (limited to '')
-rw-r--r--benchmarks/netperf/scripts/configure17
1 files changed, 17 insertions, 0 deletions
diff --git a/benchmarks/netperf/scripts/configure b/benchmarks/netperf/scripts/configure
new file mode 100644
index 000000000000..e2aab28b4bcf
--- /dev/null
+++ b/benchmarks/netperf/scripts/configure
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+cd $WRKSRC
+#
+# If this is FreeBSD 2.2 or later, this will work. Older FreeBSD versions
+# will set CFLAGS to "". Life's a bitch.
+#
+CFLAGS=`make -V CFLAGS echo` || echo "*** Ignore this error"
+
+if [ X"$CFLAGS" = X ] ; then
+ CFLAGS="-O2 -fno-strength-reduce"
+fi
+
+echo "Setting CFLAGS to \"$CFLAGS\""
+sed -e "s/%CFLAGS%/${CFLAGS}/" makefile >makefile.new
+mv -f makefile makefile.orig2
+mv -f makefile.new makefile