autoconf
[Top][All Lists]
Advanced

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

Re: config.status and /bin/sh on Solaris


From: Dimitrios Apostolou
Subject: Re: config.status and /bin/sh on Solaris
Date: Sat, 28 Jan 2017 02:03:10 +0100 (CET)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

On Fri, 27 Jan 2017, Zack Weinberg wrote:

On Fri, Jan 27, 2017 at 7:29 PM, Dimitrios Apostolou <address@hidden> wrote:

So I've been tracing the execution of "configure", but I don't CONFIG_SHELL
to be set, and the script reaches a point that the following happens:

SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL

So SHELL is now /bin/sh and config.status is generated as such:

It now occurs to me to ask exactly which version of Autoconf generated
this configure script.

At the top of configure:

#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for hello 1.0.



There *should* be code immediately above the
SHELL=${CONFIG_SHELL-/bin/sh} line that *should* have detected that
/usr/xpg4/bin/sh is the right shell to use on this system.  It's
possible that its tests are not stringent enough.  Do you see a
variable named "as_required" being set in your logs, before this
point?  If so, please tell us what it's being set to.  If not, please
tell us it's not there.

+ as_required=as_fn_return () { (exit $1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = "$1" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x$exitcode = x0 || exit 1
test -x / || exit 1
+ as_suggested=  as_lineno_1=
[ ... ]


Dimitris




reply via email to

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