GNU logs - #9249, boring messages


Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Jeff Squyres <jsquyres@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Sat, 06 Aug 2011 01:54:04 +0000
Resent-Message-ID: <handler.9249.B.131259558824151 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: 9249 <at> debbugs.gnu.org
Cc: Samuel Thibault <samuel.thibault@HIDDEN>, Andreas Kupries <andreask@HIDDEN>, Brice Goglin <Brice.Goglin@HIDDEN>
X-Debbugs-Original-To: bug-libtool@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.131259558824151
          (code B ref -1); Sat, 06 Aug 2011 01:54:04 +0000
Received: (at submit) by debbugs.gnu.org; 6 Aug 2011 01:53:08 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QpW4Y-0006HN-E1
	for submit <at> debbugs.gnu.org; Fri, 05 Aug 2011 21:53:08 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jsquyres@HIDDEN>) id 1Qp3jz-00061O-OJ
	for submit <at> debbugs.gnu.org; Thu, 04 Aug 2011 15:38:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1Qp3jK-0007qI-5i
	for submit <at> debbugs.gnu.org; Thu, 04 Aug 2011 15:37:19 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,
	T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:52216)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1Qp3jK-0007qE-4E
	for submit <at> debbugs.gnu.org; Thu, 04 Aug 2011 15:37:18 -0400
Received: from eggs.gnu.org ([140.186.70.92]:38785)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1Qp3jJ-0004xH-3E
	for bug-libtool@HIDDEN; Thu, 04 Aug 2011 15:37:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1Qp3jH-0007pa-IT
	for bug-libtool@HIDDEN; Thu, 04 Aug 2011 15:37:17 -0400
Received: from rcdn-iport-2.cisco.com ([173.37.86.73]:10466)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1Qp3jH-0007pK-3h
	for bug-libtool@HIDDEN; Thu, 04 Aug 2011 15:37:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
	d=cisco.com; i=jsquyres@HIDDEN; l=956; q=dns/txt;
	s=iport; t=1312486635; x=1313696235;
	h=from:content-transfer-encoding:subject:date:message-id:
	cc:to:mime-version;
	bh=gCRj2srnkDANkDoY3zSABofS62BuyAkF0Is0kQ/zYrw=;
	b=kS1Uuz9zOayjlKogRe2HspjnBkScSXjii8EM0ySIP5LZGiBgEJhwBZ4t
	FVjsOIFBCzcZaOdiqCgAGEVtdBEgiDJQGLAZyt9FnW9jI/br4/SKlcJ1u
	6Y5a5unF1Xg7MoZPchVqjVJMYKNJBSq1jIsiVW+pBDnv7xUWuLxHAlWxs s=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvAGAOzzOk6tJV2Y/2dsb2JhbABDmFKPGHeBWQEnP4FRIodOowEBnm6FY18EknuRAA
X-IronPort-AV: E=Sophos;i="4.67,318,1309737600"; 
   d="scan'208";a="9768412"
Received: from rcdn-core-1.cisco.com ([173.37.93.152])
	by rcdn-iport-2.cisco.com with ESMTP; 04 Aug 2011 19:37:14 +0000
Received: from rtp-jsquyres-8918.cisco.com (rtp-jsquyres-8918.cisco.com
	[10.117.133.233])
	by rcdn-core-1.cisco.com (8.14.3/8.14.3) with ESMTP id p74JbDL4023117; 
	Thu, 4 Aug 2011 19:37:13 GMT
From: Jeff Squyres <jsquyres@HIDDEN>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Thu, 4 Aug 2011 15:37:12 -0400
Message-Id: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
Mime-Version: 1.0 (Apple Message framework v1084)
X-Mailer: Apple Mail (2.1084)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -6.0 (------)
X-Mailman-Approved-At: Fri, 05 Aug 2011 21:53:02 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.0 (------)

I see lots of references to old versions of Solaris in generated Libtool =
scripts, but we've recently been told about a problem with the following =
with Solaris 2.8's sh:

	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% cat ~/trans/basedir.sh

path=3D"../libtool"

echo path____ $path
echo basename ${path##*/}
echo dirname_ ${path%/*}
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% /bin/sh ~/trans/basedir.sh
path____ ../libtool
/export/home/andreask/trans/basedir.sh: bad substitution
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The ${foo##*/} pattern is used in the LT 2.4-generated libtool script =
(e.g., in =
http://www.open-mpi.org/software/hwloc/v1.2/downloads/hwloc-1.2.tar.bz2).

Is this a known issue?

--=20
Jeff Squyres
jsquyres@HIDDEN
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Jeff Squyres <jsquyres@HIDDEN>
Subject: bug#9249: Acknowledgement (Does Libtool 2.4 support Solaris 2.8?)
Message-ID: <handler.9249.B.131259558824151.ack <at> debbugs.gnu.org>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
X-Gnu-PR-Message: ack 9249
X-Gnu-PR-Package: libtool
Reply-To: 9249 <at> debbugs.gnu.org
Date: Sat, 06 Aug 2011 01:54:04 +0000

Thank you for filing a new bug report with GNU.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-libtool@HIDDEN

If you wish to submit further information on this problem, please
send it to 9249 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
9249: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9249
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Gary V. Vaughan <gary@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Sat, 06 Aug 2011 16:57:01 +0000
Resent-Message-ID: <handler.9249.B.131264979921553 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: jsquyres@HIDDEN, 9249 <at> debbugs.gnu.org
Cc: samuel.thibault@HIDDEN, andreask@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-To: Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Andreas Kupries <andreask@HIDDEN>, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131264979921553
          (code B ref -1); Sat, 06 Aug 2011 16:57:01 +0000
Received: (at submit) by debbugs.gnu.org; 6 Aug 2011 16:56:39 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QpkAw-0005bU-RP
	for submit <at> debbugs.gnu.org; Sat, 06 Aug 2011 12:56:39 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <gary@HIDDEN>) id 1QpXQd-0008Dn-9I
	for submit <at> debbugs.gnu.org; Fri, 05 Aug 2011 23:19:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QpXPp-0002FQ-M1
	for submit <at> debbugs.gnu.org; Fri, 05 Aug 2011 23:19:10 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 
	T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:40150)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QpXPp-0002FG-Hq
	for submit <at> debbugs.gnu.org; Fri, 05 Aug 2011 23:19:09 -0400
Received: from eggs.gnu.org ([140.186.70.92]:39657)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QpXPo-0005Te-Bh
	for bug-libtool@HIDDEN; Fri, 05 Aug 2011 23:19:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QpXPn-0002F3-1R
	for bug-libtool@HIDDEN; Fri, 05 Aug 2011 23:19:08 -0400
Received: from mailbigip.dreamhost.com ([208.97.132.5]:34024
	helo=homiemail-a20.g.dreamhost.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QpXPm-0002Ew-Gn
	for bug-libtool@HIDDEN; Fri, 05 Aug 2011 23:19:07 -0400
Received: from homiemail-a20.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a20.g.dreamhost.com (Postfix) with ESMTP id 815107EC065;
	Fri,  5 Aug 2011 20:19:04 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=vaughan.pe; h=subject
	:mime-version:content-type:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to; q=dns; s=
	vaughan.pe; b=qL+Glexrp+hGS5a330E9QGZOTMga+WvwX+18R5+8fO5kreIvvK
	MzrvcAqvbUCUYJxmmJq2kMQf6uvf6Sk1dLebvEWtK5IfzNQ9qtwK6xsMo9K6TdX1
	ri+0Z0Dq1vBGQz/4RigN7jS69CRbUxoJgqBObOE9Yw5d3bPUUjwou8aNw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=vaughan.pe; h=subject
	:mime-version:content-type:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to; s=
	vaughan.pe; bh=N+IlhAD37XEypxcG7eKSmG+BNkc=; b=iym+R1FT8BMKnEfdw
	4GlLzwWi4yoh7iRFeZ67cus6/E27c76HZ+hO1RxywqVGzq5Df8VyCFMcCUjAWbNI
	ZtKXg4rEZjPWvOs5jCW2yxCq+vRVHd65ayXczgXeH3qB1X32TU4Ttnvx4dz0hs1x
	4cYX0rh+PeXXnOJmPUjUPffIO0=
Received: from [192.168.1.7] (unknown [180.183.115.236])
	(using TLSv1 with cipher AES128-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: gary@HIDDEN)
	by homiemail-a20.g.dreamhost.com (Postfix) with ESMTPSA id 2C8577EC064; 
	Fri,  5 Aug 2011 20:19:00 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1244.3)
Content-Type: text/plain; charset=us-ascii
From: Gary V. Vaughan <gary@HIDDEN>
In-Reply-To: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
Date: Sat, 6 Aug 2011 10:18:52 +0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
X-Mailer: Apple Mail (2.1244.3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.6 (----)
X-Mailman-Approved-At: Sat, 06 Aug 2011 12:56:35 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.3 (-----)

Hi Jeff,

On 5 Aug 2011, at 02:37, Jeff Squyres wrote:
> I see lots of references to old versions of Solaris in generated =
Libtool scripts, but we've recently been told about a problem with the =
following with Solaris 2.8's sh:
>=20
> 	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> % cat ~/trans/basedir.sh
>=20
> path=3D"../libtool"
>=20
> echo path____ $path
> echo basename ${path##*/}
> echo dirname_ ${path%/*}
> 	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>=20
> 	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> % /bin/sh ~/trans/basedir.sh
> path____ ../libtool
> /export/home/andreask/trans/basedir.sh: bad substitution
> 	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>=20
> The ${foo##*/} pattern is used in the LT 2.4-generated libtool script =
(e.g., in =
http://www.open-mpi.org/software/hwloc/v1.2/downloads/hwloc-1.2.tar.bz2).
>=20
> Is this a known issue?

The default is to not use these non-portable XSI patterns, and only if a =
configure time test case
is successful are they spliced into the generated libtool to speed =
things up.  Perhaps configure
found a better shell and re-executed itself in order for those checks to =
pass, and then the
generated libtool was passed through the under-powered solaris sh =
afterwards?=20

Here's the snippet from libtool's generated configure script:

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell =
understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI =
constructs... " >&6; }
# Try some XSI features
xsi_shell=3Dno
( _lt_dummy=3D"a/b/c"
  test =
"${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"=
}, \
      =3D c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=3Dyes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell =
understands \"+=3D\"" >&5
$as_echo_n "checking whether the shell understands \"+=3D\"... " >&6; }
lt_shell_append=3Dno
( foo=3Dbar; set foo baz; eval "$1+=3D\$2" && test "$foo" =3D barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=3Dyes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }

Which comes from the macro _LT_CHECK_SHELL_FEATURES near the end of =
`libltdl/m4/libtool.m4'.
In the eventual generated libtool script, all uses of XSI shell features =
are encapsulated in a hand
full of shell functions marked by the comment "may be replaced by =
extended shell implementation"
(func_append, func_append_quoted, func_arith, func_len, func_lo2o and =
func_xform) if the
configure time shell is detected as not supporting XSI features, =
otherwise those functions are
replace by faster XSI implementations marked by the comment =
"Extended-shell <func-name> implementation"
by the macro _LT_PROG_FUNCTION_REPLACE.

You might try replacing all of the above with the following to narrow =
down the problem between XSI
detection issues versus early/incorrect replacement issues:

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell =
understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI =
constructs... " >&6; }
# Try some XSI features
xsi_shell=3Dno
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell =
understands \"+=3D\"" >&5
$as_echo_n "checking whether the shell understands \"+=3D\"... " >&6; }
lt_shell_append=3Dno
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


At configure time you should see 'checking whether the shell understands =
some XSI constructs...' and
'checking whether the shell understands "+=3D"...' tests, and the =
generated libtool script should
contain definitions of the shell functions listed above that match the =
results of those tests.
Similarly, ltmain.sh should always contain the unsubstituted =
implementations of those functions,
because _LT_PROG_FUNCTION_REPLACE only knows how to splice in the XSI =
implementations on demand,
and doesn't know how to go back the other way if the configure tests =
find XSI features don't work.
Can you investigate some more and report your findings back to the list?

HTH,
--=20
Gary V. Vaughan (gary AT gnu DOT org)=




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Sat, 06 Aug 2011 16:57:02 +0000
Resent-Message-ID: <handler.9249.B.131264980221568 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: "Gary V. Vaughan" <gary@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131264980221568
          (code B ref -1); Sat, 06 Aug 2011 16:57:02 +0000
Received: (at submit) by debbugs.gnu.org; 6 Aug 2011 16:56:42 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QpkAz-0005bj-Hb
	for submit <at> debbugs.gnu.org; Sat, 06 Aug 2011 12:56:42 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QpXzz-0000bA-QC
	for submit <at> debbugs.gnu.org; Fri, 05 Aug 2011 23:56:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QpXzC-0008Uj-B6
	for submit <at> debbugs.gnu.org; Fri, 05 Aug 2011 23:55:43 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:51941)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QpXzC-0008Uf-7G
	for submit <at> debbugs.gnu.org; Fri, 05 Aug 2011 23:55:42 -0400
Received: from eggs.gnu.org ([140.186.70.92]:53844)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QpXzB-00017l-3q
	for bug-libtool@HIDDEN; Fri, 05 Aug 2011 23:55:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QpXz9-0008UG-RH
	for bug-libtool@HIDDEN; Fri, 05 Aug 2011 23:55:41 -0400
Received: from mx.activestate.com ([204.244.102.3]:34750)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QpXz9-0008U2-Jf
	for bug-libtool@HIDDEN; Fri, 05 Aug 2011 23:55:39 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id A2496181C1;
	Fri,  5 Aug 2011 20:55:36 -0700 (PDT)
Received: from [174.6.6.164] (S010600e0299627dc.vc.shawcable.net [174.6.6.164])
	by box5.activestate.com (Postfix) with ESMTP id 70E50B82EE;
	Fri,  5 Aug 2011 20:55:36 -0700 (PDT)
Message-ID: <4E3CBB01.9050008@HIDDEN>
Date: Fri, 05 Aug 2011 20:54:41 -0700
From: Andreas Kupries <andreask@HIDDEN>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
In-Reply-To: <CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.3 (----)
X-Mailman-Approved-At: Sat, 06 Aug 2011 12:56:35 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.9 (----)

On 05/08/11 08:18 PM, Gary V. Vaughan wrote:
> Hi Jeff,
>
> On 5 Aug 2011, at 02:37, Jeff Squyres wrote:
>> I see lots of references to old versions of Solaris in generated Libtool scripts, but we've recently been told about a problem with the following with Solaris 2.8's sh:
>> The ${foo##*/} pattern is used in the LT 2.4-generated libtool script (e.g., in http://www.open-mpi.org/software/hwloc/v1.2/downloads/hwloc-1.2.tar.bz2).
>>
>> Is this a known issue?
>
> The default is to not use these non-portable XSI patterns, and only if a configure time test case

I can attest that the generated libtool does contain these patterns.

> is successful are they spliced into the generated libtool to speed things up.  Perhaps configure
> found a better shell and re-executed itself in order for those checks to pass, and then the
> generated libtool was passed through the under-powered solaris sh afterwards?

Interesting.

[elided libtool.m4 stuff]

> At configure time you should see 'checking whether the shell understands some XSI constructs...' and
> 'checking whether the shell understands "+="...' tests, and the generated libtool script should
> contain definitions of the shell functions listed above that match the results of those tests.
> Similarly, ltmain.sh should always contain the unsubstituted implementations of those functions,
> because _LT_PROG_FUNCTION_REPLACE only knows how to splice in the XSI implementations on demand,
> and doesn't know how to go back the other way if the configure tests find XSI features don't work.
> Can you investigate some more and report your findings back to the list?

I will investigate Monday, when I am back in the office, with access to 
the box in question.

---
Andreas




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Gary V. Vaughan <gary@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Sat, 06 Aug 2011 16:57:03 +0000
Resent-Message-ID: <handler.9249.B9249.131264979921547 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: jsquyres@HIDDEN, 9249 <at> debbugs.gnu.org
Cc: samuel.thibault@HIDDEN, andreask@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-To: Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Andreas Kupries <andreask@HIDDEN>, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131264979921547
          (code B ref 9249); Sat, 06 Aug 2011 16:57:03 +0000
Received: (at 9249) by debbugs.gnu.org; 6 Aug 2011 16:56:39 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QpkAu-0005bN-Gt
	for submit <at> debbugs.gnu.org; Sat, 06 Aug 2011 12:56:38 -0400
Received: from caiajhbdcaid.dreamhost.com ([208.97.132.83]
	helo=homiemail-a20.g.dreamhost.com)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <gary@HIDDEN>) id 1QpXQX-0008DW-Ve
	for 9249 <at> debbugs.gnu.org; Fri, 05 Aug 2011 23:19:56 -0400
Received: from homiemail-a20.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a20.g.dreamhost.com (Postfix) with ESMTP id 815107EC065;
	Fri,  5 Aug 2011 20:19:04 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=vaughan.pe; h=subject
	:mime-version:content-type:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to; q=dns; s=
	vaughan.pe; b=qL+Glexrp+hGS5a330E9QGZOTMga+WvwX+18R5+8fO5kreIvvK
	MzrvcAqvbUCUYJxmmJq2kMQf6uvf6Sk1dLebvEWtK5IfzNQ9qtwK6xsMo9K6TdX1
	ri+0Z0Dq1vBGQz/4RigN7jS69CRbUxoJgqBObOE9Yw5d3bPUUjwou8aNw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=vaughan.pe; h=subject
	:mime-version:content-type:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to; s=
	vaughan.pe; bh=N+IlhAD37XEypxcG7eKSmG+BNkc=; b=iym+R1FT8BMKnEfdw
	4GlLzwWi4yoh7iRFeZ67cus6/E27c76HZ+hO1RxywqVGzq5Df8VyCFMcCUjAWbNI
	ZtKXg4rEZjPWvOs5jCW2yxCq+vRVHd65ayXczgXeH3qB1X32TU4Ttnvx4dz0hs1x
	4cYX0rh+PeXXnOJmPUjUPffIO0=
Received: from [192.168.1.7] (unknown [180.183.115.236])
	(using TLSv1 with cipher AES128-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: gary@HIDDEN)
	by homiemail-a20.g.dreamhost.com (Postfix) with ESMTPSA id 2C8577EC064; 
	Fri,  5 Aug 2011 20:19:00 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1244.3)
Content-Type: text/plain; charset=us-ascii
From: Gary V. Vaughan <gary@HIDDEN>
In-Reply-To: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
Date: Sat, 6 Aug 2011 10:18:52 +0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
X-Mailer: Apple Mail (2.1244.3)
X-Spam-Score: -2.6 (--)
X-Mailman-Approved-At: Sat, 06 Aug 2011 12:56:35 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.6 (---)

Hi Jeff,

On 5 Aug 2011, at 02:37, Jeff Squyres wrote:
> I see lots of references to old versions of Solaris in generated =
Libtool scripts, but we've recently been told about a problem with the =
following with Solaris 2.8's sh:
>=20
> 	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> % cat ~/trans/basedir.sh
>=20
> path=3D"../libtool"
>=20
> echo path____ $path
> echo basename ${path##*/}
> echo dirname_ ${path%/*}
> 	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>=20
> 	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> % /bin/sh ~/trans/basedir.sh
> path____ ../libtool
> /export/home/andreask/trans/basedir.sh: bad substitution
> 	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>=20
> The ${foo##*/} pattern is used in the LT 2.4-generated libtool script =
(e.g., in =
http://www.open-mpi.org/software/hwloc/v1.2/downloads/hwloc-1.2.tar.bz2).
>=20
> Is this a known issue?

The default is to not use these non-portable XSI patterns, and only if a =
configure time test case
is successful are they spliced into the generated libtool to speed =
things up.  Perhaps configure
found a better shell and re-executed itself in order for those checks to =
pass, and then the
generated libtool was passed through the under-powered solaris sh =
afterwards?=20

Here's the snippet from libtool's generated configure script:

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell =
understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI =
constructs... " >&6; }
# Try some XSI features
xsi_shell=3Dno
( _lt_dummy=3D"a/b/c"
  test =
"${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"=
}, \
      =3D c,a/b,b/c, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=3Dyes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell =
understands \"+=3D\"" >&5
$as_echo_n "checking whether the shell understands \"+=3D\"... " >&6; }
lt_shell_append=3Dno
( foo=3Dbar; set foo baz; eval "$1+=3D\$2" && test "$foo" =3D barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=3Dyes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }

Which comes from the macro _LT_CHECK_SHELL_FEATURES near the end of =
`libltdl/m4/libtool.m4'.
In the eventual generated libtool script, all uses of XSI shell features =
are encapsulated in a hand
full of shell functions marked by the comment "may be replaced by =
extended shell implementation"
(func_append, func_append_quoted, func_arith, func_len, func_lo2o and =
func_xform) if the
configure time shell is detected as not supporting XSI features, =
otherwise those functions are
replace by faster XSI implementations marked by the comment =
"Extended-shell <func-name> implementation"
by the macro _LT_PROG_FUNCTION_REPLACE.

You might try replacing all of the above with the following to narrow =
down the problem between XSI
detection issues versus early/incorrect replacement issues:

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell =
understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI =
constructs... " >&6; }
# Try some XSI features
xsi_shell=3Dno
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell =
understands \"+=3D\"" >&5
$as_echo_n "checking whether the shell understands \"+=3D\"... " >&6; }
lt_shell_append=3Dno
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
$as_echo "$lt_shell_append" >&6; }


At configure time you should see 'checking whether the shell understands =
some XSI constructs...' and
'checking whether the shell understands "+=3D"...' tests, and the =
generated libtool script should
contain definitions of the shell functions listed above that match the =
results of those tests.
Similarly, ltmain.sh should always contain the unsubstituted =
implementations of those functions,
because _LT_PROG_FUNCTION_REPLACE only knows how to splice in the XSI =
implementations on demand,
and doesn't know how to go back the other way if the configure tests =
find XSI features don't work.
Can you investigate some more and report your findings back to the list?

HTH,
--=20
Gary V. Vaughan (gary AT gnu DOT org)=




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Sat, 06 Aug 2011 16:57:04 +0000
Resent-Message-ID: <handler.9249.B9249.131264980121561 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: "Gary V. Vaughan" <gary@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131264980121561
          (code B ref 9249); Sat, 06 Aug 2011 16:57:04 +0000
Received: (at 9249) by debbugs.gnu.org; 6 Aug 2011 16:56:41 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QpkAx-0005bb-Ov
	for submit <at> debbugs.gnu.org; Sat, 06 Aug 2011 12:56:41 -0400
Received: from mx.activestate.com ([204.244.102.3])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QpXzu-0000ap-Af
	for 9249 <at> debbugs.gnu.org; Fri, 05 Aug 2011 23:56:27 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id A2496181C1;
	Fri,  5 Aug 2011 20:55:36 -0700 (PDT)
Received: from [174.6.6.164] (S010600e0299627dc.vc.shawcable.net [174.6.6.164])
	by box5.activestate.com (Postfix) with ESMTP id 70E50B82EE;
	Fri,  5 Aug 2011 20:55:36 -0700 (PDT)
Message-ID: <4E3CBB01.9050008@HIDDEN>
Date: Fri, 05 Aug 2011 20:54:41 -0700
From: Andreas Kupries <andreask@HIDDEN>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
In-Reply-To: <CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.6 (--)
X-Mailman-Approved-At: Sat, 06 Aug 2011 12:56:35 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

On 05/08/11 08:18 PM, Gary V. Vaughan wrote:
> Hi Jeff,
>
> On 5 Aug 2011, at 02:37, Jeff Squyres wrote:
>> I see lots of references to old versions of Solaris in generated Libtool scripts, but we've recently been told about a problem with the following with Solaris 2.8's sh:
>> The ${foo##*/} pattern is used in the LT 2.4-generated libtool script (e.g., in http://www.open-mpi.org/software/hwloc/v1.2/downloads/hwloc-1.2.tar.bz2).
>>
>> Is this a known issue?
>
> The default is to not use these non-portable XSI patterns, and only if a configure time test case

I can attest that the generated libtool does contain these patterns.

> is successful are they spliced into the generated libtool to speed things up.  Perhaps configure
> found a better shell and re-executed itself in order for those checks to pass, and then the
> generated libtool was passed through the under-powered solaris sh afterwards?

Interesting.

[elided libtool.m4 stuff]

> At configure time you should see 'checking whether the shell understands some XSI constructs...' and
> 'checking whether the shell understands "+="...' tests, and the generated libtool script should
> contain definitions of the shell functions listed above that match the results of those tests.
> Similarly, ltmain.sh should always contain the unsubstituted implementations of those functions,
> because _LT_PROG_FUNCTION_REPLACE only knows how to splice in the XSI implementations on demand,
> and doesn't know how to go back the other way if the configure tests find XSI features don't work.
> Can you investigate some more and report your findings back to the list?

I will investigate Monday, when I am back in the office, with access to 
the box in question.

---
Andreas




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 19:56:01 +0000
Resent-Message-ID: <handler.9249.B.131283333324282 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: "Gary V. Vaughan" <gary@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131283333324282
          (code B ref -1); Mon, 08 Aug 2011 19:56:01 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 19:55:33 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqVvB-0006Jb-2o
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 15:55:33 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QqVv8-0006JS-Eo
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 15:55:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqVu5-0006zU-HT
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 15:54:26 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:43508)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqVu5-0006zJ-Ec
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 15:54:25 -0400
Received: from eggs.gnu.org ([140.186.70.92]:47479)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqVu3-0000z7-ST
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 15:54:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqVu2-0006xx-Kj
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 15:54:23 -0400
Received: from mx.activestate.com ([204.244.102.3]:52632)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqVu2-0006x1-CX
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 15:54:22 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id 28E2920004;
	Mon,  8 Aug 2011 12:54:19 -0700 (PDT)
Received: from [192.168.69.152] (casablanca.activestate.com [192.168.69.152])
	by box5.activestate.com (Postfix) with ESMTP id CFF66B82C7;
	Mon,  8 Aug 2011 12:54:18 -0700 (PDT)
Message-ID: <4E403E08.2020808@HIDDEN>
Date: Mon, 08 Aug 2011 12:50:32 -0700
From: Andreas Kupries <andreask@HIDDEN>
Organization: ActiveState
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
In-Reply-To: <CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.3 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.9 (----)

On 8/5/2011 8:18 PM, Gary V. Vaughan wrote:
> Here's the snippet from libtool's generated configure script:

Found it ...

 > Can you investigate some more and report your findings back to the list?

Sure.

First, from a plain run, no modifications ... My log file shows

	CONF checking whether the shell understands some XSI constructs... yes
	CONF checking whether the shell understands "+="... yes

Given that the code snippet seems to check the shell executing the configure 
script this is to be expected, as I am explicitly using bash to run all my 
configure scripts.

/Configure Run
[/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/build]: executing 
bash ../../src/configure 
--prefix=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install 
--exec-prefix=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install 
--with-tcl=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install/lib --with-tk=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install/lib 
--enable-shared --enable-threads
	bash = /usr/local/bin/bash
CONF
[... remainder of the log]

The generated Makefile and libtool however have SHELL=/bin/sh
assignments in them, and without me forcing them to use bash they fiail.


Next up, your proposed modification to force them into the belief of not having 
a XSI shell available.

Now the log contains

	CONF checking whether the shell understands some XSI constructs... no
	CONF checking whether the shell understands "+="... no

The generated Makefile and libtool script also contain SHELL=/bin/sh, and
the build works.


So, what seems to happen is that during the generation of Makefile and libtool 
the shell is always set as "/bin/sh", regardless of which shell was used to run 
the configure (bash in my case), and this can then lead to a mismatch between 
what configure thinks it has available as features (XSI  yes), versus the 
features of the actual shell used during the build (XSI no).


> At configure time you should see 'checking whether the shell understands some XSI constructs...' and
> 'checking whether the shell understands "+="...' tests, and the generated libtool script should
> contain definitions of the shell functions listed above that match the results of those tests.
> Similarly, ltmain.sh should always contain the unsubstituted implementations of those functions,
> because _LT_PROG_FUNCTION_REPLACE only knows how to splice in the XSI implementations on demand,
> and doesn't know how to go back the other way if the configure tests find XSI features don't work.
>


-- 
Andreas Kupries
Senior Tcl Developer
ActiveState, The Dynamic Language Experts

P: 778.786.1122
F: 778.786.1133
andreask@HIDDEN
http://www.activestate.com
Get insights on Open Source and Dynamic Languages at www.activestate.com/blog




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 19:56:02 +0000
Resent-Message-ID: <handler.9249.B9249.131283332724261 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: "Gary V. Vaughan" <gary@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131283332724261
          (code B ref 9249); Mon, 08 Aug 2011 19:56:02 +0000
Received: (at 9249) by debbugs.gnu.org; 8 Aug 2011 19:55:27 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqVv4-0006JG-PI
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 15:55:27 -0400
Received: from mx.activestate.com ([204.244.102.3])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QqVv2-0006J5-Av
	for 9249 <at> debbugs.gnu.org; Mon, 08 Aug 2011 15:55:25 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id 28E2920004;
	Mon,  8 Aug 2011 12:54:19 -0700 (PDT)
Received: from [192.168.69.152] (casablanca.activestate.com [192.168.69.152])
	by box5.activestate.com (Postfix) with ESMTP id CFF66B82C7;
	Mon,  8 Aug 2011 12:54:18 -0700 (PDT)
Message-ID: <4E403E08.2020808@HIDDEN>
Date: Mon, 08 Aug 2011 12:50:32 -0700
From: Andreas Kupries <andreask@HIDDEN>
Organization: ActiveState
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
In-Reply-To: <CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.6 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

On 8/5/2011 8:18 PM, Gary V. Vaughan wrote:
> Here's the snippet from libtool's generated configure script:

Found it ...

 > Can you investigate some more and report your findings back to the list?

Sure.

First, from a plain run, no modifications ... My log file shows

	CONF checking whether the shell understands some XSI constructs... yes
	CONF checking whether the shell understands "+="... yes

Given that the code snippet seems to check the shell executing the configure 
script this is to be expected, as I am explicitly using bash to run all my 
configure scripts.

/Configure Run
[/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/build]: executing 
bash ../../src/configure 
--prefix=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install 
--exec-prefix=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install 
--with-tcl=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install/lib --with-tk=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install/lib 
--enable-shared --enable-threads
	bash = /usr/local/bin/bash
CONF
[... remainder of the log]

The generated Makefile and libtool however have SHELL=/bin/sh
assignments in them, and without me forcing them to use bash they fiail.


Next up, your proposed modification to force them into the belief of not having 
a XSI shell available.

Now the log contains

	CONF checking whether the shell understands some XSI constructs... no
	CONF checking whether the shell understands "+="... no

The generated Makefile and libtool script also contain SHELL=/bin/sh, and
the build works.


So, what seems to happen is that during the generation of Makefile and libtool 
the shell is always set as "/bin/sh", regardless of which shell was used to run 
the configure (bash in my case), and this can then lead to a mismatch between 
what configure thinks it has available as features (XSI  yes), versus the 
features of the actual shell used during the build (XSI no).


> At configure time you should see 'checking whether the shell understands some XSI constructs...' and
> 'checking whether the shell understands "+="...' tests, and the generated libtool script should
> contain definitions of the shell functions listed above that match the results of those tests.
> Similarly, ltmain.sh should always contain the unsubstituted implementations of those functions,
> because _LT_PROG_FUNCTION_REPLACE only knows how to splice in the XSI implementations on demand,
> and doesn't know how to go back the other way if the configure tests find XSI features don't work.
>


-- 
Andreas Kupries
Senior Tcl Developer
ActiveState, The Dynamic Language Experts

P: 778.786.1122
F: 778.786.1133
andreask@HIDDEN
http://www.activestate.com
Get insights on Open Source and Dynamic Languages at www.activestate.com/blog




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Jeff Squyres <jsquyres@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:10:02 +0000
Resent-Message-ID: <handler.9249.B.131283416725522 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Andreas Kupries <andreask@HIDDEN>
Cc: gary@HIDDEN, 9249 <at> debbugs.gnu.org, Brice.Goglin@HIDDEN, samuel.thibault@HIDDEN
X-Debbugs-Original-Cc: "Gary V. Vaughan" <gary@HIDDEN>, 9249 <at> debbugs.gnu.org, Brice Goglin <Brice.Goglin@HIDDEN>, bug-libtool@HIDDEN, Samuel Thibault <samuel.thibault@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131283416725522
          (code B ref -1); Mon, 08 Aug 2011 20:10:02 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 20:09:27 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqW8d-0006da-78
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:09:27 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jsquyres@HIDDEN>) id 1QqW8b-0006dT-2k
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:09:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqW7X-0001WH-Ln
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:08:20 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,
	T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:47030)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqW7X-0001WA-J5
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:08:19 -0400
Received: from eggs.gnu.org ([140.186.70.92]:37331)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqW7W-0004Vw-Gu
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:08:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqW7U-0001VP-Et
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:08:18 -0400
Received: from rcdn-iport-8.cisco.com ([173.37.86.79]:53815)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqW7U-0001Um-5x
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:08:16 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
	d=cisco.com; i=jsquyres@HIDDEN; l=649; q=dns/txt;
	s=iport; t=1312834096; x=1314043696;
	h=subject:mime-version:from:in-reply-to:date:cc:
	content-transfer-encoding:message-id:references:to;
	bh=wZb1bfkb2Sa4LXZHw8pSF6ud88ZneLqHYekR1z4YlQc=;
	b=kC+ZcnUkTwkzqA3xBeuyB/xp5I/8xI36IeKWp+GNl4ZxNGlsGsG1GeFu
	5AW33VcJnXhQyhxwxH3eJgcJ6ENYkt8SWBHWFcO9eAuP2bnglJx/KZsJN
	xsGL1giqQ0zBZq2VuGYEGqT4zwdnhHmLULlT1/beZbDZh79GIA+oTbniJ 0=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EABZBQE6tJV2a/2dsb2JhbABDpyd3gUABAQEBAgESASc/BQsLRlcGEyKHSwSfZQGeboVoXwSTApEE
X-IronPort-AV: E=Sophos;i="4.67,339,1309737600"; d="scan'208";a="10966308"
Received: from rcdn-core-3.cisco.com ([173.37.93.154])
	by rcdn-iport-8.cisco.com with ESMTP; 08 Aug 2011 20:08:14 +0000
Received: from rtp-jsquyres-8919.cisco.com (rtp-jsquyres-8919.cisco.com
	[10.117.133.234])
	by rcdn-core-3.cisco.com (8.14.3/8.14.3) with ESMTP id p78K8C8q007442; 
	Mon, 8 Aug 2011 20:08:13 GMT
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jeff Squyres <jsquyres@HIDDEN>
In-Reply-To: <4E403E08.2020808@HIDDEN>
Date: Mon, 8 Aug 2011 16:08:12 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <42E86DEC-E07D-46AD-AB35-EDE3F8FBE846@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
X-Mailer: Apple Mail (2.1084)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.4 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.5 (-----)

On Aug 8, 2011, at 3:50 PM, Andreas Kupries wrote:

> First, from a plain run, no modifications ... My log file shows
>=20
> 	CONF checking whether the shell understands some XSI =
constructs... yes
> 	CONF checking whether the shell understands "+=3D"... yes
>=20
> Given that the code snippet seems to check the shell executing the =
configure script this is to be expected, as I am explicitly using bash =
to run all my configure scripts.

What happens if you run configure in sh (not bash)?

--=20
Jeff Squyres
jsquyres@HIDDEN
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/





Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Jeff Squyres <jsquyres@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:10:03 +0000
Resent-Message-ID: <handler.9249.B9249.131283416225504 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Andreas Kupries <andreask@HIDDEN>
Cc: gary@HIDDEN, 9249 <at> debbugs.gnu.org, Brice.Goglin@HIDDEN, samuel.thibault@HIDDEN
X-Debbugs-Original-Cc: "Gary V. Vaughan" <gary@HIDDEN>, 9249 <at> debbugs.gnu.org, Brice Goglin <Brice.Goglin@HIDDEN>, bug-libtool@HIDDEN, Samuel Thibault <samuel.thibault@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131283416225504
          (code B ref 9249); Mon, 08 Aug 2011 20:10:03 +0000
Received: (at 9249) by debbugs.gnu.org; 8 Aug 2011 20:09:22 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqW8X-0006dI-Az
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:09:21 -0400
Received: from rcdn-iport-8.cisco.com ([173.37.86.79])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jsquyres@HIDDEN>) id 1QqW8U-0006d8-OH
	for 9249 <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:09:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
	d=cisco.com; i=jsquyres@HIDDEN; l=649; q=dns/txt;
	s=iport; t=1312834095; x=1314043695;
	h=subject:mime-version:from:in-reply-to:date:cc:
	content-transfer-encoding:message-id:references:to;
	bh=wZb1bfkb2Sa4LXZHw8pSF6ud88ZneLqHYekR1z4YlQc=;
	b=CwKoZ1kkpMsvzaV8VVi8o3Unpm697q80XIwnxQJNHiu5Dsm1FAP/jncB
	NQkyMi3pUy5yNPTWovPg/KrHPhimU/Jo+TFRt2Gs5Yzlc1mzPis7DuJ7q
	sg7BO3lCGWcctVb8DZHCZLlKldYodrsy7aqTppx0RlsrgEyMR9/7SHqqY 0=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EABZBQE6tJV2a/2dsb2JhbABDpyd3gUABAQEBAgESASc/BQsLRlcGEyKHSwSfZQGeboVoXwSTApEE
X-IronPort-AV: E=Sophos;i="4.67,339,1309737600"; d="scan'208";a="10966308"
Received: from rcdn-core-3.cisco.com ([173.37.93.154])
	by rcdn-iport-8.cisco.com with ESMTP; 08 Aug 2011 20:08:14 +0000
Received: from rtp-jsquyres-8919.cisco.com (rtp-jsquyres-8919.cisco.com
	[10.117.133.234])
	by rcdn-core-3.cisco.com (8.14.3/8.14.3) with ESMTP id p78K8C8q007442; 
	Mon, 8 Aug 2011 20:08:13 GMT
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jeff Squyres <jsquyres@HIDDEN>
In-Reply-To: <4E403E08.2020808@HIDDEN>
Date: Mon, 8 Aug 2011 16:08:12 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <42E86DEC-E07D-46AD-AB35-EDE3F8FBE846@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
X-Mailer: Apple Mail (2.1084)
X-Spam-Score: -4.3 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.0 (----)

On Aug 8, 2011, at 3:50 PM, Andreas Kupries wrote:

> First, from a plain run, no modifications ... My log file shows
>=20
> 	CONF checking whether the shell understands some XSI =
constructs... yes
> 	CONF checking whether the shell understands "+=3D"... yes
>=20
> Given that the code snippet seems to check the shell executing the =
configure script this is to be expected, as I am explicitly using bash =
to run all my configure scripts.

What happens if you run configure in sh (not bash)?

--=20
Jeff Squyres
jsquyres@HIDDEN
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/





Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: "Gary V. Vaughan" <gary@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:11:02 +0000
Resent-Message-ID: <handler.9249.B.131283424925669 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Andreas Kupries <andreask@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131283424925669
          (code B ref -1); Mon, 08 Aug 2011 20:11:02 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 20:10:49 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqW9w-0006fx-86
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:10:48 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <gary@HIDDEN>) id 1QqW9u-0006fq-HX
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:10:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QqW8r-0001l4-Mk
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:09:42 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:47152)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <gary@HIDDEN>)
	id 1QqW8r-0001l0-J0
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:09:41 -0400
Received: from eggs.gnu.org ([140.186.70.92]:37915)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QqW8q-0004yR-Kp
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:09:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QqW8p-0001kq-HI
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:09:40 -0400
Received: from caiajhbdcbef.dreamhost.com ([208.97.132.145]:54094
	helo=homiemail-a22.g.dreamhost.com)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <gary@HIDDEN>)
	id 1QqW8p-0001km-BX
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:09:39 -0400
Received: from homiemail-a22.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a22.g.dreamhost.com (Postfix) with ESMTP id 7A18C1A805F;
	Mon,  8 Aug 2011 13:09:38 -0700 (PDT)
Received: from [192.168.1.7] (unknown [180.183.115.236])
	(using TLSv1 with cipher AES128-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: gary@HIDDEN)
	by homiemail-a22.g.dreamhost.com (Postfix) with ESMTPSA id F0DCB1A808D; 
	Mon,  8 Aug 2011 13:09:35 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1244.3)
Content-Type: text/plain; charset=iso-8859-1
From: "Gary V. Vaughan" <gary@HIDDEN>
In-Reply-To: <4E403E08.2020808@HIDDEN>
Date: Tue, 9 Aug 2011 03:09:31 +0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
X-Mailer: Apple Mail (2.1244.3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.8 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)

Hi Andreas,

On 9 Aug 2011, at 02:50, Andreas Kupries wrote:
> On 8/5/2011 8:18 PM, Gary V. Vaughan wrote:
>> Here's the snippet from libtool's generated configure script:
>=20
> Found it ...
>=20
> > Can you investigate some more and report your findings back to the =
list?
>=20
> Sure.

Thanks for following up.

> bash ../../src/configure =
--prefix=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/insta=
ll =
--exec-prefix=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/=
install =
--with-tcl=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/ins=
tall/lib =
--with-tk=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/inst=
all/lib --enable-shared --enable-threads
> [[...]]
> The generated Makefile and libtool however have SHELL=3D/bin/sh
> assignments in them, and without me forcing them to use bash they =
[[fail]].

Ah, I see the problem.

You needn't tell Autotools that you have a preferred shell to the one it =
looks for by itself (and actually, if you just let configure run with =
whatever shell it can get, it might even find and choose =
/usr/local/bin/bash provided that you have /usr/local/bin in your =
command search PATH, and provided that there is not a shell called 'sh' =
also somewhere in PATH that provides all the features Autotools is =
looking for.

    as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR
    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    do
      IFS=3D$as_save_IFS
      test -z "$as_dir" && as_dir=3D.
      case $as_dir in
         /*)
           for as_base in sh bash ksh sh5; do
             as_candidate_shells=3D"$as_candidate_shells =
$as_dir/$as_base"
           done;;
      esac
    done
    IFS=3D$as_save_IFS

Generally, bash is an excellent shell to use interactively, but it is a =
little buggy and considerably slower than some of the cut down shells  =
such as Debian's /bin/sh which is a link to the lightning fast Almqvist =
shell. Unless you are experiencing real problems with the shell that =
configure selects for you, then you probably shouldn't need to force =
another shell.

However, you can safely force an alternative shell to execute the =
various Autotools scripts by setting both SHELL and CONFIG_SHELL, like =
so:

   ./configure SHELL=3D/usr/local/bin/bash =
CONFIG_SHELL=3D/usr/local/bin/bash <other arguments as usual>

That should ensure that SHELL is then set correctly in libtool and =
Makefile to match the tests that configure ran earlier.

Cheers,
--=20
Gary V. Vaughan (gary AT gnu DOT org)





Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: "Gary V. Vaughan" <gary@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:11:02 +0000
Resent-Message-ID: <handler.9249.B9249.131283424625655 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Andreas Kupries <andreask@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131283424625655
          (code B ref 9249); Mon, 08 Aug 2011 20:11:02 +0000
Received: (at 9249) by debbugs.gnu.org; 8 Aug 2011 20:10:46 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqW9t-0006fk-KV
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:10:46 -0400
Received: from caiajhbdcbhh.dreamhost.com ([208.97.132.177]
	helo=homiemail-a22.g.dreamhost.com)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <gary@HIDDEN>) id 1QqW9r-0006fb-6Q
	for 9249 <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:10:44 -0400
Received: from homiemail-a22.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a22.g.dreamhost.com (Postfix) with ESMTP id 7A18C1A805F;
	Mon,  8 Aug 2011 13:09:38 -0700 (PDT)
Received: from [192.168.1.7] (unknown [180.183.115.236])
	(using TLSv1 with cipher AES128-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: gary@HIDDEN)
	by homiemail-a22.g.dreamhost.com (Postfix) with ESMTPSA id F0DCB1A808D; 
	Mon,  8 Aug 2011 13:09:35 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1244.3)
Content-Type: text/plain; charset=iso-8859-1
From: "Gary V. Vaughan" <gary@HIDDEN>
In-Reply-To: <4E403E08.2020808@HIDDEN>
Date: Tue, 9 Aug 2011 03:09:31 +0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
X-Mailer: Apple Mail (2.1244.3)
X-Spam-Score: -4.3 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.8 (---)

Hi Andreas,

On 9 Aug 2011, at 02:50, Andreas Kupries wrote:
> On 8/5/2011 8:18 PM, Gary V. Vaughan wrote:
>> Here's the snippet from libtool's generated configure script:
>=20
> Found it ...
>=20
> > Can you investigate some more and report your findings back to the =
list?
>=20
> Sure.

Thanks for following up.

> bash ../../src/configure =
--prefix=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/insta=
ll =
--exec-prefix=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/=
install =
--with-tcl=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/ins=
tall/lib =
--with-tk=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/inst=
all/lib --enable-shared --enable-threads
> [[...]]
> The generated Makefile and libtool however have SHELL=3D/bin/sh
> assignments in them, and without me forcing them to use bash they =
[[fail]].

Ah, I see the problem.

You needn't tell Autotools that you have a preferred shell to the one it =
looks for by itself (and actually, if you just let configure run with =
whatever shell it can get, it might even find and choose =
/usr/local/bin/bash provided that you have /usr/local/bin in your =
command search PATH, and provided that there is not a shell called 'sh' =
also somewhere in PATH that provides all the features Autotools is =
looking for.

    as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR
    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    do
      IFS=3D$as_save_IFS
      test -z "$as_dir" && as_dir=3D.
      case $as_dir in
         /*)
           for as_base in sh bash ksh sh5; do
             as_candidate_shells=3D"$as_candidate_shells =
$as_dir/$as_base"
           done;;
      esac
    done
    IFS=3D$as_save_IFS

Generally, bash is an excellent shell to use interactively, but it is a =
little buggy and considerably slower than some of the cut down shells  =
such as Debian's /bin/sh which is a link to the lightning fast Almqvist =
shell. Unless you are experiencing real problems with the shell that =
configure selects for you, then you probably shouldn't need to force =
another shell.

However, you can safely force an alternative shell to execute the =
various Autotools scripts by setting both SHELL and CONFIG_SHELL, like =
so:

   ./configure SHELL=3D/usr/local/bin/bash =
CONFIG_SHELL=3D/usr/local/bin/bash <other arguments as usual>

That should ensure that SHELL is then set correctly in libtool and =
Makefile to match the tests that configure ran earlier.

Cheers,
--=20
Gary V. Vaughan (gary AT gnu DOT org)





Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:30:03 +0000
Resent-Message-ID: <handler.9249.B.131283535527322 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Jeff Squyres <jsquyres@HIDDEN>
Cc: gary@HIDDEN, 9249 <at> debbugs.gnu.org, Brice.Goglin@HIDDEN, samuel.thibault@HIDDEN
X-Debbugs-Original-Cc: "Gary V. Vaughan" <gary@HIDDEN>, 9249 <at> debbugs.gnu.org, Brice Goglin <Brice.Goglin@HIDDEN>, bug-libtool@HIDDEN, Samuel Thibault <samuel.thibault@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131283535527322
          (code B ref -1); Mon, 08 Aug 2011 20:30:03 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 20:29:15 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWRm-00076d-Ns
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:29:15 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QqWRl-00076V-2c
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:29:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWQi-0006MC-0j
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:28:08 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:45438)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWQh-0006M8-Va
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:28:07 -0400
Received: from eggs.gnu.org ([140.186.70.92]:39908)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWQg-00006H-TR
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:28:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWQf-0006Ld-Vz
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:28:06 -0400
Received: from mx.activestate.com ([204.244.102.3]:48592)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWQf-0006LK-Qu
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:28:05 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id 0844B18021;
	Mon,  8 Aug 2011 13:28:04 -0700 (PDT)
Received: from [192.168.69.152] (casablanca.activestate.com [192.168.69.152])
	by box5.activestate.com (Postfix) with ESMTP id F0349B828B;
	Mon,  8 Aug 2011 13:28:03 -0700 (PDT)
Message-ID: <4E4045F1.401@HIDDEN>
Date: Mon, 08 Aug 2011 13:24:17 -0700
From: Andreas Kupries <andreask@HIDDEN>
Organization: ActiveState
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<42E86DEC-E07D-46AD-AB35-EDE3F8FBE846@HIDDEN>
In-Reply-To: <42E86DEC-E07D-46AD-AB35-EDE3F8FBE846@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.9 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.0 (-----)

On 8/8/2011 1:08 PM, Jeff Squyres wrote:
> On Aug 8, 2011, at 3:50 PM, Andreas Kupries wrote:
>
>> First, from a plain run, no modifications ... My log file shows
>>
>> 	CONF checking whether the shell understands some XSI constructs... yes
>> 	CONF checking whether the shell understands "+="... yes
>>
>> Given that the code snippet seems to check the shell executing the configure script this is to be expected, as I am explicitly using bash to run all my configure scripts.
>
> What happens if you run configure in sh (not bash)?

executing sh ../../src/configure ...
	sh = /usr/bin/sh
CONF
[...]
CONF checking whether the shell understands some XSI constructs... yes
CONF checking whether the shell understands "+="... no

And the build works.

-- 
Andreas Kupries
Senior Tcl Developer
ActiveState, The Dynamic Language Experts

P: 778.786.1122
F: 778.786.1133
andreask@HIDDEN
http://www.activestate.com
Get insights on Open Source and Dynamic Languages at www.activestate.com/blog




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:30:03 +0000
Resent-Message-ID: <handler.9249.B9249.131283535127307 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Jeff Squyres <jsquyres@HIDDEN>
Cc: gary@HIDDEN, 9249 <at> debbugs.gnu.org, Brice.Goglin@HIDDEN, samuel.thibault@HIDDEN
X-Debbugs-Original-Cc: "Gary V. Vaughan" <gary@HIDDEN>, 9249 <at> debbugs.gnu.org, Brice Goglin <Brice.Goglin@HIDDEN>, bug-libtool@HIDDEN, Samuel Thibault <samuel.thibault@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131283535127307
          (code B ref 9249); Mon, 08 Aug 2011 20:30:03 +0000
Received: (at 9249) by debbugs.gnu.org; 8 Aug 2011 20:29:11 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWRj-00076O-Fc
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:29:11 -0400
Received: from mx.activestate.com ([204.244.102.3])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QqWRh-00076G-9P
	for 9249 <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:29:10 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id 0844B18021;
	Mon,  8 Aug 2011 13:28:04 -0700 (PDT)
Received: from [192.168.69.152] (casablanca.activestate.com [192.168.69.152])
	by box5.activestate.com (Postfix) with ESMTP id F0349B828B;
	Mon,  8 Aug 2011 13:28:03 -0700 (PDT)
Message-ID: <4E4045F1.401@HIDDEN>
Date: Mon, 08 Aug 2011 13:24:17 -0700
From: Andreas Kupries <andreask@HIDDEN>
Organization: ActiveState
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<42E86DEC-E07D-46AD-AB35-EDE3F8FBE846@HIDDEN>
In-Reply-To: <42E86DEC-E07D-46AD-AB35-EDE3F8FBE846@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.5 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.3 (---)

On 8/8/2011 1:08 PM, Jeff Squyres wrote:
> On Aug 8, 2011, at 3:50 PM, Andreas Kupries wrote:
>
>> First, from a plain run, no modifications ... My log file shows
>>
>> 	CONF checking whether the shell understands some XSI constructs... yes
>> 	CONF checking whether the shell understands "+="... yes
>>
>> Given that the code snippet seems to check the shell executing the configure script this is to be expected, as I am explicitly using bash to run all my configure scripts.
>
> What happens if you run configure in sh (not bash)?

executing sh ../../src/configure ...
	sh = /usr/bin/sh
CONF
[...]
CONF checking whether the shell understands some XSI constructs... yes
CONF checking whether the shell understands "+="... no

And the build works.

-- 
Andreas Kupries
Senior Tcl Developer
ActiveState, The Dynamic Language Experts

P: 778.786.1122
F: 778.786.1133
andreask@HIDDEN
http://www.activestate.com
Get insights on Open Source and Dynamic Languages at www.activestate.com/blog




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:37:01 +0000
Resent-Message-ID: <handler.9249.B.131283577928000 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: "Gary V. Vaughan" <gary@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131283577928000
          (code B ref -1); Mon, 08 Aug 2011 20:37:01 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 20:36:19 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWYd-0007HZ-9Q
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:36:19 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QqWYb-0007HT-Uo
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:36:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWXY-0007Sn-Kj
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:35:13 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:46578)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWXY-0007Sg-JF
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:35:12 -0400
Received: from eggs.gnu.org ([140.186.70.92]:49111)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWXX-0001sz-4z
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:35:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWXV-0007RP-K9
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:35:11 -0400
Received: from mx.activestate.com ([204.244.102.3]:49788)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>)
	id 1QqWXV-0007RE-Bf; Mon, 08 Aug 2011 16:35:09 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id A87C020026;
	Mon,  8 Aug 2011 13:35:08 -0700 (PDT)
Received: from [192.168.69.152] (casablanca.activestate.com [192.168.69.152])
	by box5.activestate.com (Postfix) with ESMTP id 7E317B8301;
	Mon,  8 Aug 2011 13:35:08 -0700 (PDT)
Message-ID: <4E404799.2040701@HIDDEN>
Date: Mon, 08 Aug 2011 13:31:21 -0700
From: Andreas Kupries <andreask@HIDDEN>
Organization: ActiveState
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
In-Reply-To: <94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.1 (-----)

On 8/8/2011 1:09 PM, Gary V. Vaughan wrote:
> Hi Andreas,
>
> On 9 Aug 2011, at 02:50, Andreas Kupries wrote:
>> On 8/5/2011 8:18 PM, Gary V. Vaughan wrote:
>>> Here's the snippet from libtool's generated configure script:
>>
>> Found it ...
>>
>>> Can you investigate some more and report your findings back to the list?
>>
>> Sure.
>
> Thanks for following up.
>
>> bash ../../src/configure --prefix=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install --exec-prefix=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install --with-tcl=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install/lib --with-tk=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install/lib --enable-shared --enable-threads
>> [[...]]
>> The generated Makefile and libtool however have SHELL=/bin/sh
>> assignments in them, and without me forcing them to use bash they [[fail]].
>
> Ah, I see the problem.
>
> You needn't tell Autotools that you have a preferred shell

Wel, I was not reall aware of telling it about a prefered shell, just executing 
configure via bash.

Actually, I am kind of surpised that it is apparently possible to run configure 
with a shell A, under which tests are run, and then having it generate files 
for a shell B it considers preferable, but was not tested against.

 > to the one it looks for by itself (and actually, if you just let configure 
run with whatever shell it can get,
 > it might even find and choose /usr/local/bin/bash provided that you have 
/usr/local/bin in your command search
 > PATH, and provided that there is not a shell called 'sh' also somewhere in 
PATH that provides all the features
 > Autotools is looking for.

So, is 'configure' re-exec'uting itself with a different shell, if it finds 
whatever it prefers ?

>
>      [snippet elided]
>
> Generally, bash is an excellent shell to use interactively, but it is a little buggy and considerably slower
 > than some of the cut down shells  such as Debian's /bin/sh which is a link 
to the lightning fast Almqvist shell.
 > Unless you are experiencing real problems with the shell that configure 
selects for you, then you probably shouldn't need to force another shell.

bash is simply the shell of choice here for both interactive and scripting use. 
Which we know to have everywhere, with a consistent set of features.

> However, you can safely force an alternative shell to execute the various Autotools scripts by setting both SHELL and CONFIG_SHELL, like so:
>
>     ./configure SHELL=/usr/local/bin/bash CONFIG_SHELL=/usr/local/bin/bash<other arguments as usual>

Is it possible to set this through the environment as well ? (It might be 
easier for the build setup here to put this into the environment of ./configure 
when it is run. Have to re-check).

I should note that SHELL is set in the global environment too, to 'path/to/bash'.
Its apparently only CONFIG_SHELL I might have to set.

> That should ensure that SHELL is then set correctly in libtool and Makefile to match the tests that configure ran earlier.

Thanks for all the help.

-- 
Andreas Kupries
Senior Tcl Developer
ActiveState, The Dynamic Language Experts

P: 778.786.1122
F: 778.786.1133
andreask@HIDDEN
http://www.activestate.com
Get insights on Open Source and Dynamic Languages at www.activestate.com/blog




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:37:02 +0000
Resent-Message-ID: <handler.9249.B9249.131283577727987 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: "Gary V. Vaughan" <gary@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131283577727987
          (code B ref 9249); Mon, 08 Aug 2011 20:37:02 +0000
Received: (at 9249) by debbugs.gnu.org; 8 Aug 2011 20:36:17 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWYZ-0007HL-ML
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:36:17 -0400
Received: from mx.activestate.com ([204.244.102.3])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QqWYX-0007HC-5T
	for 9249 <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:36:14 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id A87C020026;
	Mon,  8 Aug 2011 13:35:08 -0700 (PDT)
Received: from [192.168.69.152] (casablanca.activestate.com [192.168.69.152])
	by box5.activestate.com (Postfix) with ESMTP id 7E317B8301;
	Mon,  8 Aug 2011 13:35:08 -0700 (PDT)
Message-ID: <4E404799.2040701@HIDDEN>
Date: Mon, 08 Aug 2011 13:31:21 -0700
From: Andreas Kupries <andreask@HIDDEN>
Organization: ActiveState
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
In-Reply-To: <94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.5 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.4 (---)

On 8/8/2011 1:09 PM, Gary V. Vaughan wrote:
> Hi Andreas,
>
> On 9 Aug 2011, at 02:50, Andreas Kupries wrote:
>> On 8/5/2011 8:18 PM, Gary V. Vaughan wrote:
>>> Here's the snippet from libtool's generated configure script:
>>
>> Found it ...
>>
>>> Can you investigate some more and report your findings back to the list?
>>
>> Sure.
>
> Thanks for following up.
>
>> bash ../../src/configure --prefix=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install --exec-prefix=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install --with-tcl=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install/lib --with-tk=/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/install/lib --enable-shared --enable-threads
>> [[...]]
>> The generated Makefile and libtool however have SHELL=/bin/sh
>> assignments in them, and without me forcing them to use bash they [[fail]].
>
> Ah, I see the problem.
>
> You needn't tell Autotools that you have a preferred shell

Wel, I was not reall aware of telling it about a prefered shell, just executing 
configure via bash.

Actually, I am kind of surpised that it is apparently possible to run configure 
with a shell A, under which tests are run, and then having it generate files 
for a shell B it considers preferable, but was not tested against.

 > to the one it looks for by itself (and actually, if you just let configure 
run with whatever shell it can get,
 > it might even find and choose /usr/local/bin/bash provided that you have 
/usr/local/bin in your command search
 > PATH, and provided that there is not a shell called 'sh' also somewhere in 
PATH that provides all the features
 > Autotools is looking for.

So, is 'configure' re-exec'uting itself with a different shell, if it finds 
whatever it prefers ?

>
>      [snippet elided]
>
> Generally, bash is an excellent shell to use interactively, but it is a little buggy and considerably slower
 > than some of the cut down shells  such as Debian's /bin/sh which is a link 
to the lightning fast Almqvist shell.
 > Unless you are experiencing real problems with the shell that configure 
selects for you, then you probably shouldn't need to force another shell.

bash is simply the shell of choice here for both interactive and scripting use. 
Which we know to have everywhere, with a consistent set of features.

> However, you can safely force an alternative shell to execute the various Autotools scripts by setting both SHELL and CONFIG_SHELL, like so:
>
>     ./configure SHELL=/usr/local/bin/bash CONFIG_SHELL=/usr/local/bin/bash<other arguments as usual>

Is it possible to set this through the environment as well ? (It might be 
easier for the build setup here to put this into the environment of ./configure 
when it is run. Have to re-check).

I should note that SHELL is set in the global environment too, to 'path/to/bash'.
Its apparently only CONFIG_SHELL I might have to set.

> That should ensure that SHELL is then set correctly in libtool and Makefile to match the tests that configure ran earlier.

Thanks for all the help.

-- 
Andreas Kupries
Senior Tcl Developer
ActiveState, The Dynamic Language Experts

P: 778.786.1122
F: 778.786.1133
andreask@HIDDEN
http://www.activestate.com
Get insights on Open Source and Dynamic Languages at www.activestate.com/blog




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Jeff Squyres <jsquyres@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:40:02 +0000
Resent-Message-ID: <handler.9249.B.131283599928455 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Andreas Kupries <andreask@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, Brice.Goglin@HIDDEN, gary@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Brice Goglin <Brice.Goglin@HIDDEN>, bug-libtool@HIDDEN, "Gary V. Vaughan" <gary@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131283599928455
          (code B ref -1); Mon, 08 Aug 2011 20:40:02 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 20:39:59 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWcA-0007Ou-AS
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:39:58 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWc7-0007Ol-No
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:39:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWb4-0008Mt-NE
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:38:51 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,
	T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:54005)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWb4-0008Mk-Lc
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:38:50 -0400
Received: from eggs.gnu.org ([140.186.70.92]:42590)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWb3-0003BS-NH
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:38:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWb2-0008MH-MQ
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:38:49 -0400
Received: from rcdn-iport-5.cisco.com ([173.37.86.76]:6654)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>)
	id 1QqWb2-0008Lr-DL; Mon, 08 Aug 2011 16:38:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
	d=cisco.com; i=jsquyres@HIDDEN; l=1128; q=dns/txt;
	s=iport; t=1312835928; x=1314045528;
	h=subject:mime-version:from:in-reply-to:date:cc:
	content-transfer-encoding:message-id:references:to;
	bh=n7tYqRs31kHYs1Eg+vSFw2HGTWph3HT+o969bhIzYcw=;
	b=f96/cZ9EnIzP9c9lMkDKUPZw+VaT0tZ7fBL44EJDsSJNvTKgurNdDpjo
	U41i1BUneUmiUXMrvY9l0i08AtXbOEpN71fU8JmgHHCibn0sRAJQv5X/1
	aUo8xzIkhapAfbYMjhMjwcEhqC6oB7vy1Y9OHFp2+gOOvbUB/6Ug9j3Sz 0=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EACZIQE6tJV2d/2dsb2JhbABDpyh3gUABAQEBAgESASc/EAtGVwYTIodLBJ9yAZ50hWhfBJMCkQQ
X-IronPort-AV: E=Sophos;i="4.67,339,1309737600"; d="scan'208";a="10976493"
Received: from rcdn-core-6.cisco.com ([173.37.93.157])
	by rcdn-iport-5.cisco.com with ESMTP; 08 Aug 2011 20:38:47 +0000
Received: from rtp-jsquyres-8919.cisco.com (rtp-jsquyres-8919.cisco.com
	[10.117.133.234])
	by rcdn-core-6.cisco.com (8.14.3/8.14.3) with ESMTP id p78KcjKb029327; 
	Mon, 8 Aug 2011 20:38:46 GMT
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jeff Squyres <jsquyres@HIDDEN>
In-Reply-To: <4E404799.2040701@HIDDEN>
Date: Mon, 8 Aug 2011 16:38:45 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <A78E213E-E97E-40B4-940A-96A92D3E1887@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
	<4E404799.2040701@HIDDEN>
X-Mailer: Apple Mail (2.1084)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.3 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.4 (-----)

On Aug 8, 2011, at 4:31 PM, Andreas Kupries wrote:

>> However, you can safely force an alternative shell to execute the =
various Autotools scripts by setting both SHELL and CONFIG_SHELL, like =
so:
>>=20
>>    ./configure SHELL=3D/usr/local/bin/bash =
CONFIG_SHELL=3D/usr/local/bin/bash<other arguments as usual>
>=20
> Is it possible to set this through the environment as well ? (It might =
be easier for the build setup here to put this into the environment of =
./configure when it is run. Have to re-check).

Yes.  You can export SHELL and CONFIG_SHELL before invoking configure to =
the same effect.

I tend to prefer putting them on the configure command line, though, =
because then they show up in config.log (i.e., the log of everything =
that configure did).  If you put them in the environment (vs. the =
command line), the config.log is potentially missing some important =
information about the configuration.

But it's just a personal preferance.

--=20
Jeff Squyres
jsquyres@HIDDEN
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/





Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Jeff Squyres <jsquyres@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:40:04 +0000
Resent-Message-ID: <handler.9249.B9249.131283599528440 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Andreas Kupries <andreask@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, Brice.Goglin@HIDDEN, gary@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Brice Goglin <Brice.Goglin@HIDDEN>, bug-libtool@HIDDEN, "Gary V. Vaughan" <gary@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131283599528440
          (code B ref 9249); Mon, 08 Aug 2011 20:40:04 +0000
Received: (at 9249) by debbugs.gnu.org; 8 Aug 2011 20:39:55 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWc6-0007Oe-9v
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:39:55 -0400
Received: from rcdn-iport-5.cisco.com ([173.37.86.76])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWc3-0007OW-NP
	for 9249 <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:39:52 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
	d=cisco.com; i=jsquyres@HIDDEN; l=1128; q=dns/txt;
	s=iport; t=1312835928; x=1314045528;
	h=subject:mime-version:from:in-reply-to:date:cc:
	content-transfer-encoding:message-id:references:to;
	bh=n7tYqRs31kHYs1Eg+vSFw2HGTWph3HT+o969bhIzYcw=;
	b=f96/cZ9EnIzP9c9lMkDKUPZw+VaT0tZ7fBL44EJDsSJNvTKgurNdDpjo
	U41i1BUneUmiUXMrvY9l0i08AtXbOEpN71fU8JmgHHCibn0sRAJQv5X/1
	aUo8xzIkhapAfbYMjhMjwcEhqC6oB7vy1Y9OHFp2+gOOvbUB/6Ug9j3Sz 0=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EACZIQE6tJV2d/2dsb2JhbABDpyh3gUABAQEBAgESASc/EAtGVwYTIodLBJ9yAZ50hWhfBJMCkQQ
X-IronPort-AV: E=Sophos;i="4.67,339,1309737600"; d="scan'208";a="10976493"
Received: from rcdn-core-6.cisco.com ([173.37.93.157])
	by rcdn-iport-5.cisco.com with ESMTP; 08 Aug 2011 20:38:47 +0000
Received: from rtp-jsquyres-8919.cisco.com (rtp-jsquyres-8919.cisco.com
	[10.117.133.234])
	by rcdn-core-6.cisco.com (8.14.3/8.14.3) with ESMTP id p78KcjKb029327; 
	Mon, 8 Aug 2011 20:38:46 GMT
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jeff Squyres <jsquyres@HIDDEN>
In-Reply-To: <4E404799.2040701@HIDDEN>
Date: Mon, 8 Aug 2011 16:38:45 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <A78E213E-E97E-40B4-940A-96A92D3E1887@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
	<4E404799.2040701@HIDDEN>
X-Mailer: Apple Mail (2.1084)
X-Spam-Score: -3.9 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.7 (---)

On Aug 8, 2011, at 4:31 PM, Andreas Kupries wrote:

>> However, you can safely force an alternative shell to execute the =
various Autotools scripts by setting both SHELL and CONFIG_SHELL, like =
so:
>>=20
>>    ./configure SHELL=3D/usr/local/bin/bash =
CONFIG_SHELL=3D/usr/local/bin/bash<other arguments as usual>
>=20
> Is it possible to set this through the environment as well ? (It might =
be easier for the build setup here to put this into the environment of =
./configure when it is run. Have to re-check).

Yes.  You can export SHELL and CONFIG_SHELL before invoking configure to =
the same effect.

I tend to prefer putting them on the configure command line, though, =
because then they show up in config.log (i.e., the log of everything =
that configure did).  If you put them in the environment (vs. the =
command line), the config.log is potentially missing some important =
information about the configuration.

But it's just a personal preferance.

--=20
Jeff Squyres
jsquyres@HIDDEN
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/





Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Jeff Squyres <jsquyres@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:42:01 +0000
Resent-Message-ID: <handler.9249.B.131283607728616 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Andreas Kupries <andreask@HIDDEN>
Cc: gary@HIDDEN, 9249 <at> debbugs.gnu.org, Brice.Goglin@HIDDEN, samuel.thibault@HIDDEN
X-Debbugs-Original-Cc: "Gary V. Vaughan" <gary@HIDDEN>, 9249 <at> debbugs.gnu.org, Brice Goglin <Brice.Goglin@HIDDEN>, bug-libtool@HIDDEN, Samuel Thibault <samuel.thibault@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131283607728616
          (code B ref -1); Mon, 08 Aug 2011 20:42:01 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 20:41:17 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWdQ-0007RV-Qe
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:41:16 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWdP-0007RP-9k
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:41:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWcM-0000D7-DM
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:40:11 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,
	T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:54699)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWcM-0000D0-BJ
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:40:10 -0400
Received: from eggs.gnu.org ([140.186.70.92]:42886)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWcL-0003rV-76
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:40:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWcJ-0000C1-QD
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:40:09 -0400
Received: from rcdn-iport-7.cisco.com ([173.37.86.78]:21706)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWcJ-0000Bd-L2
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:40:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
	d=cisco.com; i=jsquyres@HIDDEN; l=699; q=dns/txt;
	s=iport; t=1312836007; x=1314045607;
	h=subject:mime-version:from:in-reply-to:date:cc:
	content-transfer-encoding:message-id:references:to;
	bh=+5Z4CrZPbWBmtavkkp1OfNz+B9debLeQRMMq1rGMIOk=;
	b=UxVSXJRUzXG+rLRu0Lz34+Y5v0rwCGalHDHx8vJq2PYkfWh+n6DB7TP/
	h/CoNyzEE90F4XCqXn+Hi0jAK222rAuFqgsskZ8039EhczSPxAXKNWZkC
	5FpdVcRz5/z+bFsQe+0GwbhfpyPV+PANpTdNN8kKn0gTrcPnSNOM8KC8B 0=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EAKpIQE6tJV2b/2dsb2JhbABDpyh3gUABAQEBAgESASc/EAtGVwYTIodLBJ9zAZ52hWhfBJMCkQQ
X-IronPort-AV: E=Sophos;i="4.67,339,1309737600"; d="scan'208";a="10980242"
Received: from rcdn-core-4.cisco.com ([173.37.93.155])
	by rcdn-iport-7.cisco.com with ESMTP; 08 Aug 2011 20:40:07 +0000
Received: from rtp-jsquyres-8919.cisco.com (rtp-jsquyres-8919.cisco.com
	[10.117.133.234])
	by rcdn-core-4.cisco.com (8.14.3/8.14.3) with ESMTP id p78Ke58D017982; 
	Mon, 8 Aug 2011 20:40:06 GMT
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jeff Squyres <jsquyres@HIDDEN>
In-Reply-To: <4E4045F1.401@HIDDEN>
Date: Mon, 8 Aug 2011 16:40:05 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <A9CD65A9-E345-44E6-B380-511A60FBE564@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<42E86DEC-E07D-46AD-AB35-EDE3F8FBE846@HIDDEN>
	<4E4045F1.401@HIDDEN>
X-Mailer: Apple Mail (2.1084)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.3 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.3 (-----)

On Aug 8, 2011, at 4:24 PM, Andreas Kupries wrote:

>> What happens if you run configure in sh (not bash)?
>=20
> executing sh ../../src/configure ...
> 	sh =3D /usr/bin/sh
> CONF
> [...]
> CONF checking whether the shell understands some XSI constructs... yes
> CONF checking whether the shell understands "+=3D"... no
>=20
> And the build works.

Ok, good.

It wasn't clear to me that you were explicitly running configure in bash =
before, and then the makefiles were defaulting to sh.

All is now explained.

Thanks, libtool people!

--=20
Jeff Squyres
jsquyres@HIDDEN
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/





Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Jeff Squyres <jsquyres@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:42:02 +0000
Resent-Message-ID: <handler.9249.B9249.131283607328603 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Andreas Kupries <andreask@HIDDEN>
Cc: gary@HIDDEN, 9249 <at> debbugs.gnu.org, Brice.Goglin@HIDDEN, samuel.thibault@HIDDEN
X-Debbugs-Original-Cc: "Gary V. Vaughan" <gary@HIDDEN>, 9249 <at> debbugs.gnu.org, Brice Goglin <Brice.Goglin@HIDDEN>, bug-libtool@HIDDEN, Samuel Thibault <samuel.thibault@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131283607328603
          (code B ref 9249); Mon, 08 Aug 2011 20:42:02 +0000
Received: (at 9249) by debbugs.gnu.org; 8 Aug 2011 20:41:13 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWdN-0007RH-5h
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:41:13 -0400
Received: from rcdn-iport-7.cisco.com ([173.37.86.78])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWdL-0007RA-D9
	for 9249 <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:41:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
	d=cisco.com; i=jsquyres@HIDDEN; l=699; q=dns/txt;
	s=iport; t=1312836007; x=1314045607;
	h=subject:mime-version:from:in-reply-to:date:cc:
	content-transfer-encoding:message-id:references:to;
	bh=+5Z4CrZPbWBmtavkkp1OfNz+B9debLeQRMMq1rGMIOk=;
	b=UxVSXJRUzXG+rLRu0Lz34+Y5v0rwCGalHDHx8vJq2PYkfWh+n6DB7TP/
	h/CoNyzEE90F4XCqXn+Hi0jAK222rAuFqgsskZ8039EhczSPxAXKNWZkC
	5FpdVcRz5/z+bFsQe+0GwbhfpyPV+PANpTdNN8kKn0gTrcPnSNOM8KC8B 0=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EAKpIQE6tJV2b/2dsb2JhbABDpyh3gUABAQEBAgESASc/EAtGVwYTIodLBJ9zAZ52hWhfBJMCkQQ
X-IronPort-AV: E=Sophos;i="4.67,339,1309737600"; d="scan'208";a="10980242"
Received: from rcdn-core-4.cisco.com ([173.37.93.155])
	by rcdn-iport-7.cisco.com with ESMTP; 08 Aug 2011 20:40:07 +0000
Received: from rtp-jsquyres-8919.cisco.com (rtp-jsquyres-8919.cisco.com
	[10.117.133.234])
	by rcdn-core-4.cisco.com (8.14.3/8.14.3) with ESMTP id p78Ke58D017982; 
	Mon, 8 Aug 2011 20:40:06 GMT
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jeff Squyres <jsquyres@HIDDEN>
In-Reply-To: <4E4045F1.401@HIDDEN>
Date: Mon, 8 Aug 2011 16:40:05 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <A9CD65A9-E345-44E6-B380-511A60FBE564@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<42E86DEC-E07D-46AD-AB35-EDE3F8FBE846@HIDDEN>
	<4E4045F1.401@HIDDEN>
X-Mailer: Apple Mail (2.1084)
X-Spam-Score: -3.7 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.6 (---)

On Aug 8, 2011, at 4:24 PM, Andreas Kupries wrote:

>> What happens if you run configure in sh (not bash)?
>=20
> executing sh ../../src/configure ...
> 	sh =3D /usr/bin/sh
> CONF
> [...]
> CONF checking whether the shell understands some XSI constructs... yes
> CONF checking whether the shell understands "+=3D"... no
>=20
> And the build works.

Ok, good.

It wasn't clear to me that you were explicitly running configure in bash =
before, and then the makefiles were defaulting to sh.

All is now explained.

Thanks, libtool people!

--=20
Jeff Squyres
jsquyres@HIDDEN
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/





Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:45:02 +0000
Resent-Message-ID: <handler.9249.B.131283628328924 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Jeff Squyres <jsquyres@HIDDEN>
Cc: gary@HIDDEN, 9249 <at> debbugs.gnu.org, Brice.Goglin@HIDDEN, samuel.thibault@HIDDEN
X-Debbugs-Original-Cc: "Gary V. Vaughan" <gary@HIDDEN>, 9249 <at> debbugs.gnu.org, Brice Goglin <Brice.Goglin@HIDDEN>, bug-libtool@HIDDEN, Samuel Thibault <samuel.thibault@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131283628328924
          (code B ref -1); Mon, 08 Aug 2011 20:45:02 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 20:44:43 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWgk-0007WT-IJ
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:44:42 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QqWgi-0007WL-HC
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:44:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWff-00010A-Cw
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:43:36 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:39355)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWff-000106-BW
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:43:35 -0400
Received: from eggs.gnu.org ([140.186.70.92]:42933)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWfe-0004fc-6l
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:43:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWfc-0000zc-Ve
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:43:34 -0400
Received: from mx.activestate.com ([204.244.102.3]:41886)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqWfc-0000zX-L9
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:43:32 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id 0D9FC20026;
	Mon,  8 Aug 2011 13:43:32 -0700 (PDT)
Received: from [192.168.69.152] (casablanca.activestate.com [192.168.69.152])
	by box5.activestate.com (Postfix) with ESMTP id 0238DB828B;
	Mon,  8 Aug 2011 13:43:32 -0700 (PDT)
Message-ID: <4E404991.6080304@HIDDEN>
Date: Mon, 08 Aug 2011 13:39:45 -0700
From: Andreas Kupries <andreask@HIDDEN>
Organization: ActiveState
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<42E86DEC-E07D-46AD-AB35-EDE3F8FBE846@HIDDEN>
	<4E4045F1.401@HIDDEN>
	<A9CD65A9-E345-44E6-B380-511A60FBE564@HIDDEN>
In-Reply-To: <A9CD65A9-E345-44E6-B380-511A60FBE564@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.1 (-----)

On 8/8/2011 1:40 PM, Jeff Squyres wrote:
> On Aug 8, 2011, at 4:24 PM, Andreas Kupries wrote:
>
>>> What happens if you run configure in sh (not bash)?
>>
>> executing sh ../../src/configure ...
>> 	sh = /usr/bin/sh
>> CONF
>> [...]
>> CONF checking whether the shell understands some XSI constructs... yes
>> CONF checking whether the shell understands "+="... no
>>
>> And the build works.
>
> Ok, good.
>
> It wasn't clear to me that you were explicitly running configure in bash before, and then the makefiles were defaulting to sh.

I see. Yeah, that is what I'm doing.
I will find a way from here now.

> All is now explained.
> Thanks, libtool people!

-- 
Andreas Kupries
Senior Tcl Developer
ActiveState, The Dynamic Language Experts

P: 778.786.1122
F: 778.786.1133
andreask@HIDDEN
http://www.activestate.com
Get insights on Open Source and Dynamic Languages at www.activestate.com/blog




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:45:02 +0000
Resent-Message-ID: <handler.9249.B9249.131283627828909 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Jeff Squyres <jsquyres@HIDDEN>
Cc: gary@HIDDEN, 9249 <at> debbugs.gnu.org, Brice.Goglin@HIDDEN, samuel.thibault@HIDDEN
X-Debbugs-Original-Cc: "Gary V. Vaughan" <gary@HIDDEN>, 9249 <at> debbugs.gnu.org, Brice Goglin <Brice.Goglin@HIDDEN>, bug-libtool@HIDDEN, Samuel Thibault <samuel.thibault@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131283627828909
          (code B ref 9249); Mon, 08 Aug 2011 20:45:02 +0000
Received: (at 9249) by debbugs.gnu.org; 8 Aug 2011 20:44:38 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWgg-0007WD-AA
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:44:38 -0400
Received: from mx.activestate.com ([204.244.102.3])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QqWge-0007W7-Gg
	for 9249 <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:44:37 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id 0D9FC20026;
	Mon,  8 Aug 2011 13:43:32 -0700 (PDT)
Received: from [192.168.69.152] (casablanca.activestate.com [192.168.69.152])
	by box5.activestate.com (Postfix) with ESMTP id 0238DB828B;
	Mon,  8 Aug 2011 13:43:32 -0700 (PDT)
Message-ID: <4E404991.6080304@HIDDEN>
Date: Mon, 08 Aug 2011 13:39:45 -0700
From: Andreas Kupries <andreask@HIDDEN>
Organization: ActiveState
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<42E86DEC-E07D-46AD-AB35-EDE3F8FBE846@HIDDEN>
	<4E4045F1.401@HIDDEN>
	<A9CD65A9-E345-44E6-B380-511A60FBE564@HIDDEN>
In-Reply-To: <A9CD65A9-E345-44E6-B380-511A60FBE564@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.5 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.4 (---)

On 8/8/2011 1:40 PM, Jeff Squyres wrote:
> On Aug 8, 2011, at 4:24 PM, Andreas Kupries wrote:
>
>>> What happens if you run configure in sh (not bash)?
>>
>> executing sh ../../src/configure ...
>> 	sh = /usr/bin/sh
>> CONF
>> [...]
>> CONF checking whether the shell understands some XSI constructs... yes
>> CONF checking whether the shell understands "+="... no
>>
>> And the build works.
>
> Ok, good.
>
> It wasn't clear to me that you were explicitly running configure in bash before, and then the makefiles were defaulting to sh.

I see. Yeah, that is what I'm doing.
I will find a way from here now.

> All is now explained.
> Thanks, libtool people!

-- 
Andreas Kupries
Senior Tcl Developer
ActiveState, The Dynamic Language Experts

P: 778.786.1122
F: 778.786.1133
andreask@HIDDEN
http://www.activestate.com
Get insights on Open Source and Dynamic Languages at www.activestate.com/blog




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: "Gary V. Vaughan" <gary@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:57:01 +0000
Resent-Message-ID: <handler.9249.B.131283697129992 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Andreas Kupries <andreask@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131283697129992
          (code B ref -1); Mon, 08 Aug 2011 20:57:01 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 20:56:11 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWrq-0007ng-CJ
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:56:11 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <gary@HIDDEN>) id 1QqWro-0007nZ-HU
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:56:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QqWql-00038M-FX
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:55:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:44048)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <gary@HIDDEN>)
	id 1QqWql-00038F-Dv
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:55:03 -0400
Received: from eggs.gnu.org ([140.186.70.92]:33240)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QqWqj-0007yR-TL
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:55:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gary@HIDDEN>) id 1QqWqi-00037Z-AZ
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:55:01 -0400
Received: from caiajhbdcbef.dreamhost.com ([208.97.132.145]:45828
	helo=homiemail-a18.g.dreamhost.com)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <gary@HIDDEN>)
	id 1QqWqi-00037H-09
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 16:55:00 -0400
Received: from homiemail-a18.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a18.g.dreamhost.com (Postfix) with ESMTP id 5F6FB250071;
	Mon,  8 Aug 2011 13:54:58 -0700 (PDT)
Received: from [192.168.1.7] (unknown [180.183.115.236])
	(using TLSv1 with cipher AES128-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: gary@HIDDEN)
	by homiemail-a18.g.dreamhost.com (Postfix) with ESMTPSA id 76DD525006C; 
	Mon,  8 Aug 2011 13:54:55 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1244.3)
Content-Type: text/plain; charset=iso-8859-1
From: "Gary V. Vaughan" <gary@HIDDEN>
In-Reply-To: <4E404799.2040701@HIDDEN>
Date: Tue, 9 Aug 2011 03:54:49 +0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <FF1A76F9-334E-421E-AD93-518B72C6D216@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
	<4E404799.2040701@HIDDEN>
X-Mailer: Apple Mail (2.1244.3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.7 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.8 (-----)

Hi Andreas,

On 9 Aug 2011, at 03:31, Andreas Kupries wrote:
> On 8/8/2011 1:09 PM, Gary V. Vaughan wrote:
>> On 9 Aug 2011, at 02:50, Andreas Kupries wrote:
>>> On 8/5/2011 8:18 PM, Gary V. Vaughan wrote:
>>> bash ../../src/configure =
--prefix=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/insta=
ll =
--exec-prefix=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/=
install =
--with-tcl=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/ins=
tall/lib =
--with-tk=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/inst=
all/lib --enable-shared --enable-threads
>>> [[...]]
>>> The generated Makefile and libtool however have SHELL=3D/bin/sh
>>> assignments in them, and without me forcing them to use bash they =
[[fail]].
>>=20
>> Ah, I see the problem.
>>=20
>> You needn't tell Autotools that you have a preferred shell
>=20
> Wel, I was not reall aware of telling it about a prefered shell, just =
executing configure via bash.
>=20
> Actually, I am kind of surpised that it is apparently possible to run =
configure with a shell A, under which tests are run, and then having it =
generate files for a shell B it considers preferable, but was not tested =
against.

What happens here is that you're effectively going behind configure's =
back when you use '/path/to/some/shell ./configure...', because there is =
no way for it know that it isn't simple running inside the default =
shell.

> > to the one it looks for by itself (and actually, if you just let =
configure run with whatever shell it can get,
> > it might even find and choose /usr/local/bin/bash provided that you =
have /usr/local/bin in your command search
> > PATH, and provided that there is not a shell called 'sh' also =
somewhere in PATH that provides all the features
> > Autotools is looking for.
>=20
> So, is 'configure' re-exec'uting itself with a different shell, if it =
finds whatever it prefers ?

Yes, exactly that, unless the shell it happens to be inside already =
works satisfactorily.

>> However, you can safely force an alternative shell to execute the =
various Autotools scripts by setting both SHELL and CONFIG_SHELL, like =
so:
>>=20
>>    ./configure SHELL=3D/usr/local/bin/bash =
CONFIG_SHELL=3D/usr/local/bin/bash<other arguments as usual>
>=20
> Is it possible to set this through the environment as well ? (It might =
be easier for the build setup here to put this into the environment of =
./configure when it is run. Have to re-check).

No, because ./configure needs to know that you want to generate a =
Makefile that executes libtool with a particular non-discovered shell.  =
Much the same as you need to override internal Makefile variables =
explicitly with 'make SED=3Dgsed', you also need to inform configure =
that you want to override its shell search and re-exec with 'configure =
SHELL=3D/path/to/bash CONFIG_SHELL=3D/path/to/bash', so that it can pass =
that knowledge through to the rest of the build.

Actually, configure and libtool are both written extremely carefully to =
work well with a very basic shell, so you're not buying yourself =
anything but a longer wait by forcing the use of bash.  It's all well =
and good that you want to write and execute your own scripts in Bash, =
but I don't see the advantage in forcing Autotools to use the much =
slower bash when the developers of Autotools have gone to great lengths =
to dynamically select the best available shell to execute themselves =
quickly and correctly.

> I should note that SHELL is set in the global environment too, to =
'path/to/bash'.
> Its apparently only CONFIG_SHELL I might have to set.

Yes, that's right.

>> That should ensure that SHELL is then set correctly in libtool and =
Makefile to match the tests that configure ran earlier.
>=20
> Thanks for all the help.

You're welcome.

Cheers,
--=20
Gary V. Vaughan (gary AT gnu DOT org)=




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: "Gary V. Vaughan" <gary@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 20:57:02 +0000
Resent-Message-ID: <handler.9249.B9249.131283696629976 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Andreas Kupries <andreask@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131283696629976
          (code B ref 9249); Mon, 08 Aug 2011 20:57:02 +0000
Received: (at 9249) by debbugs.gnu.org; 8 Aug 2011 20:56:06 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWrm-0007nR-25
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:56:06 -0400
Received: from caiajhbdccah.dreamhost.com ([208.97.132.207]
	helo=homiemail-a18.g.dreamhost.com)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <gary@HIDDEN>) id 1QqWrj-0007nF-Mg
	for 9249 <at> debbugs.gnu.org; Mon, 08 Aug 2011 16:56:05 -0400
Received: from homiemail-a18.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a18.g.dreamhost.com (Postfix) with ESMTP id 5F6FB250071;
	Mon,  8 Aug 2011 13:54:58 -0700 (PDT)
Received: from [192.168.1.7] (unknown [180.183.115.236])
	(using TLSv1 with cipher AES128-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: gary@HIDDEN)
	by homiemail-a18.g.dreamhost.com (Postfix) with ESMTPSA id 76DD525006C; 
	Mon,  8 Aug 2011 13:54:55 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1244.3)
Content-Type: text/plain; charset=iso-8859-1
From: "Gary V. Vaughan" <gary@HIDDEN>
In-Reply-To: <4E404799.2040701@HIDDEN>
Date: Tue, 9 Aug 2011 03:54:49 +0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <FF1A76F9-334E-421E-AD93-518B72C6D216@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
	<4E404799.2040701@HIDDEN>
X-Mailer: Apple Mail (2.1244.3)
X-Spam-Score: -3.7 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

Hi Andreas,

On 9 Aug 2011, at 03:31, Andreas Kupries wrote:
> On 8/8/2011 1:09 PM, Gary V. Vaughan wrote:
>> On 9 Aug 2011, at 02:50, Andreas Kupries wrote:
>>> On 8/5/2011 8:18 PM, Gary V. Vaughan wrote:
>>> bash ../../src/configure =
--prefix=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/insta=
ll =
--exec-prefix=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/=
install =
--with-tcl=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/ins=
tall/lib =
--with-tk=3D/export/home/andreask/dbn/BuildTmp/Hwloc/solaris2.8-sparc/inst=
all/lib --enable-shared --enable-threads
>>> [[...]]
>>> The generated Makefile and libtool however have SHELL=3D/bin/sh
>>> assignments in them, and without me forcing them to use bash they =
[[fail]].
>>=20
>> Ah, I see the problem.
>>=20
>> You needn't tell Autotools that you have a preferred shell
>=20
> Wel, I was not reall aware of telling it about a prefered shell, just =
executing configure via bash.
>=20
> Actually, I am kind of surpised that it is apparently possible to run =
configure with a shell A, under which tests are run, and then having it =
generate files for a shell B it considers preferable, but was not tested =
against.

What happens here is that you're effectively going behind configure's =
back when you use '/path/to/some/shell ./configure...', because there is =
no way for it know that it isn't simple running inside the default =
shell.

> > to the one it looks for by itself (and actually, if you just let =
configure run with whatever shell it can get,
> > it might even find and choose /usr/local/bin/bash provided that you =
have /usr/local/bin in your command search
> > PATH, and provided that there is not a shell called 'sh' also =
somewhere in PATH that provides all the features
> > Autotools is looking for.
>=20
> So, is 'configure' re-exec'uting itself with a different shell, if it =
finds whatever it prefers ?

Yes, exactly that, unless the shell it happens to be inside already =
works satisfactorily.

>> However, you can safely force an alternative shell to execute the =
various Autotools scripts by setting both SHELL and CONFIG_SHELL, like =
so:
>>=20
>>    ./configure SHELL=3D/usr/local/bin/bash =
CONFIG_SHELL=3D/usr/local/bin/bash<other arguments as usual>
>=20
> Is it possible to set this through the environment as well ? (It might =
be easier for the build setup here to put this into the environment of =
./configure when it is run. Have to re-check).

No, because ./configure needs to know that you want to generate a =
Makefile that executes libtool with a particular non-discovered shell.  =
Much the same as you need to override internal Makefile variables =
explicitly with 'make SED=3Dgsed', you also need to inform configure =
that you want to override its shell search and re-exec with 'configure =
SHELL=3D/path/to/bash CONFIG_SHELL=3D/path/to/bash', so that it can pass =
that knowledge through to the rest of the build.

Actually, configure and libtool are both written extremely carefully to =
work well with a very basic shell, so you're not buying yourself =
anything but a longer wait by forcing the use of bash.  It's all well =
and good that you want to write and execute your own scripts in Bash, =
but I don't see the advantage in forcing Autotools to use the much =
slower bash when the developers of Autotools have gone to great lengths =
to dynamically select the best available shell to execute themselves =
quickly and correctly.

> I should note that SHELL is set in the global environment too, to =
'path/to/bash'.
> Its apparently only CONFIG_SHELL I might have to set.

Yes, that's right.

>> That should ensure that SHELL is then set correctly in libtool and =
Makefile to match the tests that configure ran earlier.
>=20
> Thanks for all the help.

You're welcome.

Cheers,
--=20
Gary V. Vaughan (gary AT gnu DOT org)=




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Jeff Squyres <jsquyres@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 21:04:02 +0000
Resent-Message-ID: <handler.9249.B.131283742130695 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: "Gary V. Vaughan" <gary@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, andreask@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Andreas Kupries <andreask@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131283742130695
          (code B ref -1); Mon, 08 Aug 2011 21:04:02 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 21:03:41 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWz5-0007z0-CX
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:03:40 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWz1-0007yr-Hm
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:03:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWxy-0004hE-Dq
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:02:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,
	T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:44961)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWxy-0004gv-C6
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:02:30 -0400
Received: from eggs.gnu.org ([140.186.70.92]:42438)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWxx-0000j8-I3
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 17:02:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWxu-0004a3-W2
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 17:02:29 -0400
Received: from rcdn-iport-7.cisco.com ([173.37.86.78]:60636)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jsquyres@HIDDEN>)
	id 1QqWxu-0004Zl-Ho; Mon, 08 Aug 2011 17:02:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
	d=cisco.com; i=jsquyres@HIDDEN; l=661; q=dns/txt;
	s=iport; t=1312837346; x=1314046946;
	h=subject:mime-version:from:in-reply-to:date:cc:
	content-transfer-encoding:message-id:references:to;
	bh=l9Ff1pz1+tL1y6IibKett9jiolHlh1PMeA6wial95Ss=;
	b=l0XQkksxaxHk/JQ+Z9LCYDXguTPK5AEAF1MyUOg1a1qrdgatWwkuUZMz
	67rxn6ACzchpbuKR36QM8xz+q6ZEgv3NyXyQ+gT4lLFOeEjT8QbQRwax3
	gKPGP3c0GythuH01ON9biov7yW0uL88ZAQREX6npY9HD3k+tHJDFUXN9Q Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EAIJOQE6tJXG9/2dsb2JhbABDpyh3gUABAQEBAgESASc/EAtGVwYTIodLBKAqAZ54hWdfBJMCkQQ
X-IronPort-AV: E=Sophos;i="4.67,339,1309737600"; d="scan'208";a="10989401"
Received: from rcdn-core2-2.cisco.com ([173.37.113.189])
	by rcdn-iport-7.cisco.com with ESMTP; 08 Aug 2011 21:02:25 +0000
Received: from rtp-jsquyres-8919.cisco.com (rtp-jsquyres-8919.cisco.com
	[10.117.133.234])
	by rcdn-core2-2.cisco.com (8.14.3/8.14.3) with ESMTP id p78L2ODP001930; 
	Mon, 8 Aug 2011 21:02:24 GMT
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jeff Squyres <jsquyres@HIDDEN>
In-Reply-To: <FF1A76F9-334E-421E-AD93-518B72C6D216@HIDDEN>
Date: Mon, 8 Aug 2011 17:02:24 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <BF4E9802-6DEB-4FF1-BA11-4165179A1C7A@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
	<4E404799.2040701@HIDDEN>
	<FF1A76F9-334E-421E-AD93-518B72C6D216@HIDDEN>
X-Mailer: Apple Mail (2.1084)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.2 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.3 (-----)

On Aug 8, 2011, at 4:54 PM, Gary V. Vaughan wrote:

>> Is it possible to set this through the environment as well ? (It =
might be easier for the build setup here to put this into the =
environment of ./configure when it is run. Have to re-check).
>=20
> No, because ./configure needs to know that you want to generate a =
Makefile
> [snip]=20

Oops.  I stand corrected.

FWIW, it *is* possible to do this with other variables, like CC, CFLAGS, =
and friends.  But that's kinda beside the point here.  :-)

--=20
Jeff Squyres
jsquyres@HIDDEN
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/





Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Jeff Squyres <jsquyres@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 21:04:02 +0000
Resent-Message-ID: <handler.9249.B9249.131283741530677 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: "Gary V. Vaughan" <gary@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, andreask@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Andreas Kupries <andreask@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131283741530677
          (code B ref 9249); Mon, 08 Aug 2011 21:04:02 +0000
Received: (at 9249) by debbugs.gnu.org; 8 Aug 2011 21:03:35 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqWyz-0007yj-7x
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:03:34 -0400
Received: from rcdn-iport-7.cisco.com ([173.37.86.78])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jsquyres@HIDDEN>) id 1QqWyw-0007yb-9K
	for 9249 <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:03:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
	d=cisco.com; i=jsquyres@HIDDEN; l=661; q=dns/txt;
	s=iport; t=1312837346; x=1314046946;
	h=subject:mime-version:from:in-reply-to:date:cc:
	content-transfer-encoding:message-id:references:to;
	bh=l9Ff1pz1+tL1y6IibKett9jiolHlh1PMeA6wial95Ss=;
	b=l0XQkksxaxHk/JQ+Z9LCYDXguTPK5AEAF1MyUOg1a1qrdgatWwkuUZMz
	67rxn6ACzchpbuKR36QM8xz+q6ZEgv3NyXyQ+gT4lLFOeEjT8QbQRwax3
	gKPGP3c0GythuH01ON9biov7yW0uL88ZAQREX6npY9HD3k+tHJDFUXN9Q Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EAIJOQE6tJXG9/2dsb2JhbABDpyh3gUABAQEBAgESASc/EAtGVwYTIodLBKAqAZ54hWdfBJMCkQQ
X-IronPort-AV: E=Sophos;i="4.67,339,1309737600"; d="scan'208";a="10989401"
Received: from rcdn-core2-2.cisco.com ([173.37.113.189])
	by rcdn-iport-7.cisco.com with ESMTP; 08 Aug 2011 21:02:25 +0000
Received: from rtp-jsquyres-8919.cisco.com (rtp-jsquyres-8919.cisco.com
	[10.117.133.234])
	by rcdn-core2-2.cisco.com (8.14.3/8.14.3) with ESMTP id p78L2ODP001930; 
	Mon, 8 Aug 2011 21:02:24 GMT
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jeff Squyres <jsquyres@HIDDEN>
In-Reply-To: <FF1A76F9-334E-421E-AD93-518B72C6D216@HIDDEN>
Date: Mon, 8 Aug 2011 17:02:24 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <BF4E9802-6DEB-4FF1-BA11-4165179A1C7A@HIDDEN>
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
	<4E404799.2040701@HIDDEN>
	<FF1A76F9-334E-421E-AD93-518B72C6D216@HIDDEN>
X-Mailer: Apple Mail (2.1084)
X-Spam-Score: -3.7 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.6 (---)

On Aug 8, 2011, at 4:54 PM, Gary V. Vaughan wrote:

>> Is it possible to set this through the environment as well ? (It =
might be easier for the build setup here to put this into the =
environment of ./configure when it is run. Have to re-check).
>=20
> No, because ./configure needs to know that you want to generate a =
Makefile
> [snip]=20

Oops.  I stand corrected.

FWIW, it *is* possible to do this with other variables, like CC, CFLAGS, =
and friends.  But that's kinda beside the point here.  :-)

--=20
Jeff Squyres
jsquyres@HIDDEN
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/





Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 21:09:02 +0000
Resent-Message-ID: <handler.9249.B.131283773731237 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: "Gary V. Vaughan" <gary@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.131283773731237
          (code B ref -1); Mon, 08 Aug 2011 21:09:02 +0000
Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 21:08:57 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqX4C-00087l-Vf
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:08:57 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QqX4A-00087e-8p
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:08:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqX36-0005Zc-TC
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:07:49 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:33851)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqX36-0005ZT-Ri
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:07:48 -0400
Received: from eggs.gnu.org ([140.186.70.92]:54609)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqX35-000202-P8
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 17:07:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andreask@HIDDEN>) id 1QqX34-0005ZJ-Fl
	for bug-libtool@HIDDEN; Mon, 08 Aug 2011 17:07:47 -0400
Received: from mx.activestate.com ([204.244.102.3]:50519)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andreask@HIDDEN>)
	id 1QqX34-0005Z5-7x; Mon, 08 Aug 2011 17:07:46 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id BA56918025;
	Mon,  8 Aug 2011 14:07:44 -0700 (PDT)
Received: from [192.168.69.152] (casablanca.activestate.com [192.168.69.152])
	by box5.activestate.com (Postfix) with ESMTP id AF4FEB8384;
	Mon,  8 Aug 2011 14:07:44 -0700 (PDT)
Message-ID: <4E404F3E.8050709@HIDDEN>
Date: Mon, 08 Aug 2011 14:03:58 -0700
From: Andreas Kupries <andreask@HIDDEN>
Organization: ActiveState
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
	<4E404799.2040701@HIDDEN>
	<FF1A76F9-334E-421E-AD93-518B72C6D216@HIDDEN>
In-Reply-To: <FF1A76F9-334E-421E-AD93-518B72C6D216@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.1 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.1 (-----)

On 8/8/2011 1:54 PM, Gary V. Vaughan wrote:
> Hi Andreas,
>
>> Wel, I was not reall aware of telling it about a prefered shell, just executing configure via bash.
>>
>> Actually, I am kind of surpised that it is apparently possible to run configure with a shell A, under which tests are run, and then having it generate files for a shell B it considers preferable, but was not tested against.
>
> What happens here is that you're effectively going behind configure's back when you use '/path/to/some/shell ./configure...', because there is no way for it know that it isn't simple running inside the default shell.

Hm. Ok.

>>> to the one it looks for by itself (and actually, if you just let configure run with whatever shell it can get,
>>> it might even find and choose /usr/local/bin/bash provided that you have /usr/local/bin in your command search
>>> PATH, and provided that there is not a shell called 'sh' also somewhere in PATH that provides all the features
>>> Autotools is looking for.
>>
>> So, is 'configure' re-exec'uting itself with a different shell, if it finds whatever it prefers ?
>
> Yes, exactly that, unless the shell it happens to be inside already works satisfactorily.

Ok.

>>> However, you can safely force an alternative shell to execute the various Autotools scripts by setting both SHELL and CONFIG_SHELL, like so:
>>>
>>>     ./configure SHELL=/usr/local/bin/bash CONFIG_SHELL=/usr/local/bin/bash<other arguments as usual>
>>
>> Is it possible to set this through the environment as well ? (It might be easier for the build setup here to put this into the environment of ./configure when it is run. Have to re-check).
>
> No, because ./configure needs to know that you want to generate a Makefile that executes libtool with a particular non-discovered shell.  Much the same as you need to override internal Makefile variables explicitly with 'make SED=gsed', you also need to inform configure that you want to override its shell search and re-exec with 'configure SHELL=/path/to/bash CONFIG_SHELL=/path/to/bash', so that it can pass that knowledge through to the rest of the build.

Ok. I checked, I have methods in my build code to put this stuff on the 
configure cmdline (not env). Actually tried it already, and it is working.

> Actually, configure and libtool are both written extremely carefully to work well with a very basic shell, so you're not buying yourself anything but a longer wait by forcing the use of bash.  It's all well and good that you want to write and execute your own scripts in Bash, but I don't see the advantage in forcing Autotools to use the much slower bash when the developers of Autotools have gone to great lengths to dynamically select the best available shell to execute themselves quickly and correctly.

Heh.

Well, given that I am in the middle of doing builds/distributions going to 
customers I will not play with the overall build system right now, I won't even 
commit the SHELL/CONFIG_SHELL change, given that this would be in a central 
shared file, i.e. have a global effect. All these test builds for hwloc were 
luckily semi-local and produce something which is not going into these 
distributions, so I was able to run them alongside my release builds without 
breaking or influencing them.

However, when I am done with these builds I believe will play around a bit 
again, i.e. try out using 'sh', vs. 'bash', vs. not setting an explicit shell 
to run configure, etc., and see if something else breaks, speed differences etc.

For now I am comfortable that I understand the issue at hand and have various 
solutions and workarounds available to me.

>> I should note that SHELL is set in the global environment too, to 'path/to/bash'.
>> Its apparently only CONFIG_SHELL I might have to set.
>
> Yes, that's right.
>
>>> That should ensure that SHELL is then set correctly in libtool and Makefile to match the tests that configure ran earlier.
>>
>> Thanks for all the help.
>
> You're welcome.
>
> Cheers,


-- 
Andreas Kupries
Senior Tcl Developer
ActiveState, The Dynamic Language Experts

P: 778.786.1122
F: 778.786.1133
andreask@HIDDEN
http://www.activestate.com
Get insights on Open Source and Dynamic Languages at www.activestate.com/blog




Message sent to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?
Resent-From: Andreas Kupries <andreask@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Mon, 08 Aug 2011 21:09:02 +0000
Resent-Message-ID: <handler.9249.B9249.131283773331222 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 9249
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: "Gary V. Vaughan" <gary@HIDDEN>
Cc: samuel.thibault@HIDDEN, 9249 <at> debbugs.gnu.org, jsquyres@HIDDEN, Brice.Goglin@HIDDEN
X-Debbugs-Original-Cc: Samuel Thibault <samuel.thibault@HIDDEN>, 9249 <at> debbugs.gnu.org, Jeff Squyres <jsquyres@HIDDEN>, bug-libtool@HIDDEN, Brice Goglin <Brice.Goglin@HIDDEN>
Received: via spool by 9249-submit <at> debbugs.gnu.org id=B9249.131283773331222
          (code B ref 9249); Mon, 08 Aug 2011 21:09:02 +0000
Received: (at 9249) by debbugs.gnu.org; 8 Aug 2011 21:08:53 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QqX48-00087W-BR
	for submit <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:08:52 -0400
Received: from mx.activestate.com ([204.244.102.3])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <andreask@HIDDEN>) id 1QqX46-00087M-2c
	for 9249 <at> debbugs.gnu.org; Mon, 08 Aug 2011 17:08:51 -0400
Received: from box5.activestate.com (box25.activestate.com [192.168.69.70])
	by mx.activestate.com (Postfix) with ESMTP id BA56918025;
	Mon,  8 Aug 2011 14:07:44 -0700 (PDT)
Received: from [192.168.69.152] (casablanca.activestate.com [192.168.69.152])
	by box5.activestate.com (Postfix) with ESMTP id AF4FEB8384;
	Mon,  8 Aug 2011 14:07:44 -0700 (PDT)
Message-ID: <4E404F3E.8050709@HIDDEN>
Date: Mon, 08 Aug 2011 14:03:58 -0700
From: Andreas Kupries <andreask@HIDDEN>
Organization: ActiveState
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
References: <339762F7-7E98-4D83-904D-C01A6808EAB8@HIDDEN>
	<CE1D8E75-3EDA-4849-9C14-215BB5746427@HIDDEN>
	<4E403E08.2020808@HIDDEN>
	<94AF4079-0BF6-4F3C-BE21-56A74378911F@HIDDEN>
	<4E404799.2040701@HIDDEN>
	<FF1A76F9-334E-421E-AD93-518B72C6D216@HIDDEN>
In-Reply-To: <FF1A76F9-334E-421E-AD93-518B72C6D216@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.5 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.4 (---)

On 8/8/2011 1:54 PM, Gary V. Vaughan wrote:
> Hi Andreas,
>
>> Wel, I was not reall aware of telling it about a prefered shell, just executing configure via bash.
>>
>> Actually, I am kind of surpised that it is apparently possible to run configure with a shell A, under which tests are run, and then having it generate files for a shell B it considers preferable, but was not tested against.
>
> What happens here is that you're effectively going behind configure's back when you use '/path/to/some/shell ./configure...', because there is no way for it know that it isn't simple running inside the default shell.

Hm. Ok.

>>> to the one it looks for by itself (and actually, if you just let configure run with whatever shell it can get,
>>> it might even find and choose /usr/local/bin/bash provided that you have /usr/local/bin in your command search
>>> PATH, and provided that there is not a shell called 'sh' also somewhere in PATH that provides all the features
>>> Autotools is looking for.
>>
>> So, is 'configure' re-exec'uting itself with a different shell, if it finds whatever it prefers ?
>
> Yes, exactly that, unless the shell it happens to be inside already works satisfactorily.

Ok.

>>> However, you can safely force an alternative shell to execute the various Autotools scripts by setting both SHELL and CONFIG_SHELL, like so:
>>>
>>>     ./configure SHELL=/usr/local/bin/bash CONFIG_SHELL=/usr/local/bin/bash<other arguments as usual>
>>
>> Is it possible to set this through the environment as well ? (It might be easier for the build setup here to put this into the environment of ./configure when it is run. Have to re-check).
>
> No, because ./configure needs to know that you want to generate a Makefile that executes libtool with a particular non-discovered shell.  Much the same as you need to override internal Makefile variables explicitly with 'make SED=gsed', you also need to inform configure that you want to override its shell search and re-exec with 'configure SHELL=/path/to/bash CONFIG_SHELL=/path/to/bash', so that it can pass that knowledge through to the rest of the build.

Ok. I checked, I have methods in my build code to put this stuff on the 
configure cmdline (not env). Actually tried it already, and it is working.

> Actually, configure and libtool are both written extremely carefully to work well with a very basic shell, so you're not buying yourself anything but a longer wait by forcing the use of bash.  It's all well and good that you want to write and execute your own scripts in Bash, but I don't see the advantage in forcing Autotools to use the much slower bash when the developers of Autotools have gone to great lengths to dynamically select the best available shell to execute themselves quickly and correctly.

Heh.

Well, given that I am in the middle of doing builds/distributions going to 
customers I will not play with the overall build system right now, I won't even 
commit the SHELL/CONFIG_SHELL change, given that this would be in a central 
shared file, i.e. have a global effect. All these test builds for hwloc were 
luckily semi-local and produce something which is not going into these 
distributions, so I was able to run them alongside my release builds without 
breaking or influencing them.

However, when I am done with these builds I believe will play around a bit 
again, i.e. try out using 'sh', vs. 'bash', vs. not setting an explicit shell 
to run configure, etc., and see if something else breaks, speed differences etc.

For now I am comfortable that I understand the issue at hand and have various 
solutions and workarounds available to me.

>> I should note that SHELL is set in the global environment too, to 'path/to/bash'.
>> Its apparently only CONFIG_SHELL I might have to set.
>
> Yes, that's right.
>
>>> That should ensure that SHELL is then set correctly in libtool and Makefile to match the tests that configure ran earlier.
>>
>> Thanks for all the help.
>
> You're welcome.
>
> Cheers,


-- 
Andreas Kupries
Senior Tcl Developer
ActiveState, The Dynamic Language Experts

P: 778.786.1122
F: 778.786.1133
andreask@HIDDEN
http://www.activestate.com
Get insights on Open Source and Dynamic Languages at www.activestate.com/blog





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.