Hello, I've found and fixed a problem where pgcc -E translates its input to contain extra spaces. Since config.guess expects the preprocessor output to be a well formed shell variable assignment, I've added some sed code to ensure this. Please consider the attached patch for inclusion in autoconf. Regards, Thomas
From 400897893790901d904663640b53cf0fd6316237 Mon Sep 17 00:00:00 2001 From: Thomas Jahns <jahns@xxxxxxx> Date: Wed, 20 Aug 2014 17:42:49 +0200 Subject: [PATCH] Fix for pgcc -E output. * PGI's pre-processor transforms 'LIBC=gnu' to 'LIBC = gnu'. --- build-aux/config.guess | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-aux/config.guess b/build-aux/config.guess index 120cc0d..6da3ed2 100755 --- a/build-aux/config.guess +++ b/build-aux/config.guess @@ -2,7 +2,7 @@ # Attempt to guess a canonical system name. # Copyright 1992-2013 Free Software Foundation, Inc. -timestamp='2013-05-16' +timestamp='2014-08-20' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -149,7 +149,7 @@ Linux|GNU|GNU/*) LIBC=gnu #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s/LIBC *= *\(.*\)$/LIBC='"'"'\1'"'"'/;p;}'` ;; esac -- 1.7.10.4
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf