bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug#156600: FTBFS: hurd should build-depend on autoconf2.13


From: James A Morrison
Subject: Bug#156600: FTBFS: hurd should build-depend on autoconf2.13
Date: Wed, 14 Aug 2002 20:03:54 -0400 (EDT)

 I'm on it.

James A. Morrison

2002-08-14  James A. Morrison  <ja2morri@uwaterloo.ca>

            * aclocal.m4: Update for use with autoconf 2.5x.
            AC_TRY_COMPILER to AC_TRY_COMPILE.
            AC_PROG_CC_GNU to AC_PROG_CC.

Index: aclocal.m4
===================================================================
RCS file: /cvsroot/hurd/hurd/aclocal.m4,v
retrieving revision 1.3
diff -u -r1.3 aclocal.m4
--- aclocal.m4  19 Jan 2002 23:44:37 -0000      1.3
+++ aclocal.m4  14 Aug 2002 23:31:47 -0000
@@ -12,7 +12,7 @@
 fi
 
 hurd_PROG_CC_WORKS
-AC_PROG_CC_GNU
+AC_PROG_CC
 
 if test $ac_cv_prog_gcc = yes; then
   GCC=yes
@@ -56,10 +56,13 @@
 [AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works])
 AC_LANG_SAVE
 AC_LANG_C
-AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross)
+ac_cv_prog_cc_works="no"
+ac_cv_prog_cc_cross="no"
+AC_TRY_COMPILE([#include <stdlib.h>], [], 
+       ac_cv_prog_cc_works="yes", ac_cv_prog_cc_cross="yes")
 AC_LANG_RESTORE
 AC_MSG_RESULT($ac_cv_prog_cc_works)
-if test $ac_cv_prog_cc_works = no; then
+if test "$ac_cv_prog_cc_works" = "no"; then
  cross_linkable=no
  ac_cv_prog_cc_cross=yes
  # AC_MSG_ERROR([installation or configuration problem: C compiler cannot 
create executables.])





reply via email to

[Prev in Thread] Current Thread [Next in Thread]