On Wed, Jul 22, 2015 at 4:56 AM, Blake McBride <bl...@mcbride.name> wrote:
> #  ./configure --enable-ansi >xx
> ./configure: line 8423: test: 29: unary operator expected
> configure: WARNING: asm/signal.h: present but cannot be compiled
> configure: WARNING: asm/signal.h:     check for missing prerequisite
> headers?
> configure: WARNING: asm/signal.h: see the Autoconf documentation
> configure: WARNING: asm/signal.h:     section "Present But Cannot Be
> Compiled"
> configure: WARNING: asm/signal.h: proceeding with the compiler's result

I'm attaching the patch we use in Fedora to work around the
asm/signal.h issue.  HTH.  Regards,
-- 
Jerry James
http://www.jamezone.org/
--- configure.in.orig	2014-09-06 20:00:00.000000000 -0600
+++ configure.in	2014-09-06 20:00:00.000000000 -0600
@@ -2490,7 +2490,7 @@
 
 #if test $use = "386-linux" ; then
 	AC_CHECK_HEADERS(asm/sigcontext.h)
-	AC_CHECK_HEADERS(asm/signal.h)
+	AC_CHECK_HEADERS(asm/signal.h, [], [], [#define __ASSEMBLY__])
 	AC_MSG_CHECKING([for sigcontext])
 	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 	#include <signal.h>
@@ -2515,6 +2515,7 @@
              #include <asm/sigcontext.h>
              #endif
              #ifdef HAVE_ASM_SIGNAL_H          
+             #define __ASSEMBLY__
              #include <asm/signal.h>
              #endif
           ]],
--- configure.orig	2014-09-06 20:00:00.000000000 -0600
+++ configure	2014-09-06 20:00:00.000000000 -0600
@@ -9573,7 +9573,8 @@
 
 	for ac_header in asm/signal.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "asm/signal.h" "ac_cv_header_asm_signal_h" "$ac_includes_default"
+  ac_fn_c_check_header_compile "$LINENO" "asm/signal.h" "ac_cv_header_asm_signal_h" "#define __ASSEMBLY__
+"
 if test "x$ac_cv_header_asm_signal_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_ASM_SIGNAL_H 1
@@ -9627,6 +9628,7 @@
              #include <asm/sigcontext.h>
              #endif
              #ifdef HAVE_ASM_SIGNAL_H
+             #define __ASSEMBLY__
              #include <asm/signal.h>
              #endif
 
_______________________________________________
Gcl-devel mailing list
Gcl-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/gcl-devel

Reply via email to