summaryrefslogtreecommitdiff
path: root/packages/dtnrg/files/configure_fix.patch
diff options
context:
space:
mode:
authorJeremy Laine <jeremy.laine@m4x.org>2008-02-29 17:05:05 +0000
committerJeremy Laine <jeremy.laine@m4x.org>2008-02-29 17:05:05 +0000
commit063cf4befbbdef2a8f124eff35d07f43352ce241 (patch)
treeaefc5aa995d1d0fb3162e6fd218aac6c7f676faf /packages/dtnrg/files/configure_fix.patch
parent81179c3916d30a2f7489a00c6bdc6740201b5580 (diff)
parente88ffd7608ec1015eba1a92d293cf11d7d9092cf (diff)
merge of '1c40da9a692a6c3985b5d6fe8eb5b28dd7738c66'
and '295199ba5efc8ddca9453992b8304f356f385efd'
Diffstat (limited to 'packages/dtnrg/files/configure_fix.patch')
-rw-r--r--packages/dtnrg/files/configure_fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/dtnrg/files/configure_fix.patch b/packages/dtnrg/files/configure_fix.patch
new file mode 100644
index 0000000000..95587c242c
--- /dev/null
+++ b/packages/dtnrg/files/configure_fix.patch
@@ -0,0 +1,22 @@
+head no longer supports "-1" syntax
+
+Index: dtn-2.5.0/oasys/aclocal/gcc.ac
+===================================================================
+--- dtn-2.5.0.orig/oasys/aclocal/gcc.ac 2008-02-27 22:38:22.000000000 +0000
++++ dtn-2.5.0/oasys/aclocal/gcc.ac 2008-02-27 22:39:05.000000000 +0000
+@@ -83,13 +83,13 @@
+ dnl Figure out the version and set version-specific options
+ dnl
+ AC_CACHE_CHECK(for the version of the GNU C compiler, oasys_cv_prog_gccver, [
+- oasys_cv_prog_gccver=`$CC --version | head -1`
++ oasys_cv_prog_gccver=`$CC --version | head -n 1`
+ oasys_cv_prog_gccver=`echo $oasys_cv_prog_gccver | sed 's/.*gcc.*(GCC) //'`
+ oasys_cv_prog_gccver=`echo $oasys_cv_prog_gccver | sed 's/ .*//'`
+ ])
+
+ AC_CACHE_CHECK(for the version of the GNU C++ compiler, oasys_cv_prog_gxxver, [
+- oasys_cv_prog_gxxver=`$CXX --version | head -1`
++ oasys_cv_prog_gxxver=`$CXX --version | head -n 1`
+ oasys_cv_prog_gxxver=`echo $oasys_cv_prog_gxxver | sed 's/.*g++.*(GCC) //'`
+ oasys_cv_prog_gxxver=`echo $oasys_cv_prog_gxxver | sed 's/ .*//'`
+ ])