🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #238

Cross compiling check fails in AC_TEST_PROGRAM in autoconf 1.0

#238
From: Ian Lance Taylor
Date: Sun, 26 Jul 1992 10:51
22 lines
1319 bytes
The cross compiling check in AC_TEST_PROGRAM in autoconf 1.0 is wrong,
in that if you are not cross-compiling it will assume that you are.
Here is a patch, which should be self-explanatory.

--- /disk4/ian/gnu/autoconf-1.0/acgeneral.m4	Mon Jul 20 01:09:47 1992
+++ acgeneral.m4	Sun Jul 26 14:43:19 1992
@@ -312,7 +312,7 @@
 )dnl
 dnl
 define(AC_TEST_PROGRAM,
-[AC_PROVIDE([$0])ifelse([$4], , , [AC_REQUIRE([AC_CROSS_CHECK])if $cross_compiling
+[AC_PROVIDE([$0])ifelse([$4], , , [AC_REQUIRE([AC_CROSS_CHECK])if test -n "$cross_compiling"
 then
   $4
 else

Sorry I never noticed this before.
-- 
Ian Taylor | ian@airs.com | First to identify quote wins free e-mail message:
``It takes a man months and months to reconcile himself to a new hat.  And
  just when you're preparing to send it to the jumble sale, he says, `That's
  rather a nice hat you've got on, where did you get it?' ''
Technical Details
Message-ID: <9207261851.AA05593@comton.airs.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!airs.COM!ian

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!airs.COM!ian
From: ian@airs.COM (Ian Lance Taylor)
Subject: Cross compiling check fails in AC_TEST_PROGRAM in autoconf 1.0
Message-ID: <9207261851.AA05593@comton.airs.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sun, 26 Jul 1992 10:51:46 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 23