[Top][All Lists]

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

Re: ./configure generated script fails on solaris

From: vcoxvco
Subject: Re: ./configure generated script fails on solaris
Date: Sun, 21 Oct 2018 13:55:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 10/21/18 11:36 AM, Christian Jullien wrote:
Hello maintainers,

Thank you for your efforts to maintains and improve bcurses.

I have an old solaris 10 sparc box where I port many GNU packages.

Trying to compile 6.1 version, if fails on line 1206 probably because a gnu bash extension. #!/bin/sh is NOT bash on solaris

That's right - and /bin/sh is not a POSIX-shell (it's in /usr/xpg4/ on older 

Trying bash ./configure is little bit better but still fails with:

./config.status: syntax error at line 1178: `(' unexpected

I finally changed the shebang to my local copy of bash but is still failed call config.status. I patched this file too and ran ./config.status and it worked this time.

make install fails for the same reason because it uses /bin/sh

This strange! I use many ./configure script and this is the first time I have to patch those two generated files.

Am I missing something?

You have to change 2 files as follows:

--- configure.orig      2018-09-01 21:37:24.000000000 +0200
+++ configure   2018-10-21 13:51:48.572124164 +0200
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/ksh
 # From configure.in Revision: 1.665 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by Autoconf 2.52.20180819.
@@ -98,7 +98,7 @@

--- aclocal.m4.orig     2018-08-18 22:21:21.000000000 +0200
+++ aclocal.m4  2018-10-21 13:51:38.636242999 +0200
@@ -7567,7 +7567,7 @@
 dnl But that still does not work properly since the macro is expanded outside
 dnl the CF_WITH_LIBTOOL macro:
-dnl    #!/bin/sh
+dnl    #!/bin/ksh
 dnl    ACLOCAL=`aclocal --print-ac-dir`
 dnl    if test -z "$ACLOCAL" ; then
 dnl            echo cannot find aclocal directory

This works for me on Solaris.
(I have no idea how to change this in a generic way for all platforms, though)


V. Courzakis
email: address@hidden

reply via email to

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