<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: [PATCH] Configure bug
From: Casey Carter <Casey,AT,Carter,DOT,net>
Date: Mon, 13 Aug 2001 08:57:43 +0200

The autoconf macro AX_MACRO_STR fails with redhat gcc-2.96-85,  since 
the C preprocessor inserts a space where the macro expects none. 
 Corrected by this one-liner patch.

-- 
Casey Carter
Casey,AT,Carter,DOT,net
ccarter,AT,uiuc,DOT,edu
AIM: cartec69

diff -ru cipe-1.5.2/conf/aclocal.m4 cipe/conf/aclocal.m4
--- cipe-1.5.2/conf/aclocal.m4  Sat Dec 16 11:49:08 2000
+++ cipe/conf/aclocal.m4        Sat Aug 11 17:00:09 2001
@@ -28,9 +28,9 @@
 #include <$2>
 [$1]
 EOF
-(eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |\
- sed -n -e 's/^"\(.*\)".*$/\1/p' >conftest
 changequote(, )dnl
+(eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |\
+ sed -n -e 's/^[[:space:]]*"\(.*\)".*$/\1/p' >conftest
 set "X" "`cat conftest`"
 changequote([, ])dnl
 ax_result=[$]2
diff -ru cipe-1.5.2/configure cipe/configure
--- cipe-1.5.2/configure        Tue May  1 16:23:51 2001
+++ cipe/configure      Sat Aug 11 17:00:16 2001
@@ -1088,7 +1088,7 @@
 UTS_RELEASE
 EOF
 (eval "$ac_cpp conftest.$ac_ext") 2>&5 |\
- sed -n -e 's/^"\(.*\)".*$/\1/p' >conftest
+ sed -n -e 's/^[[:space:]]*"\(.*\)".*$/\1/p' >conftest
 set "X" "`cat conftest`"
 ax_result=$2
 rm -f conftest*
@@ -1108,7 +1108,7 @@
 LINUX_COMPILER
 EOF
 (eval "$ac_cpp conftest.$ac_ext") 2>&5 |\
- sed -n -e 's/^"\(.*\)".*$/\1/p' >conftest
+ sed -n -e 's/^[[:space:]]*"\(.*\)".*$/\1/p' >conftest
 set "X" "`cat conftest`"
 ax_result=$2
 rm -f conftest*





<< | Thread Index | >> ]    [ << | Date Index | >> ]