Re: ./configure: line 2490: _ACEOF: command not found

2020-07-15 Thread Karl Berry
./configure: line 2489: Report: command not found
./configure: line 2490: _ACEOF: command not found
./configure: line 2492: syntax error near unexpected token `fi'
./configure: line 2492: `fi'

Evidently this is something about this project's configure.in. I don't
see it offhand (maybe someone else can).

If you send me your generated configure file (best to gzip it to avoid
possible corruption), I could try to see what's going on around those
lines, i.e., which macro might be going awry. No promises though! --best, karl.



Re: Conditionally overriding variables set by Autoconf

2020-07-15 Thread Marius Bakke
Hi Karl,

Karl Berry  writes:

> Hi Marius,
>
> Makefile.am:86: warning: pkglibdir was already defined in condition
> TRUE, which includes condition USE_VERSION_LINKS ...
>
> All I can think of to do is introduce a new variable in each branch, and
> define the "built-in" variables outside the conditional.  Unfortunately
> this means reproducing Automake's defaults, as far as I can see.  As in
> this for Makefile.am (and minimal configure.ac below):
>
> if USE_VERSION_LINKS
> mypkglibdir = $(versiondir)$(libdir)/ganeti
> else
> mypkglibdir = $(libdir)/@PACKAGE@
> endif
> pkglibdir = $(mypkglibdir)
>
> I suspect there is a cleaner way, but I don't have the brains to see
> what it is. I hope someone else here does ... --best, karl.
>
> --- configure.ac ---
> AC_INIT([amin], [0.0], [nowh...@example.net])
> AM_INIT_AUTOMAKE([foreign])
> AM_CONDITIONAL([USE_VERSION_LINKS], [false])
> AC_CONFIG_FILES([Makefile])
> AC_OUTPUT

Thanks a lot for the feedback and minimal reproducer.  Ludovic Courtès
came up with a slightly cleaner workaround in a different thread[0]:

  pkglibdir =
  if USE_VERSION_LINKS
  pkglibdir += foo
  else
  pkglibdir += bar
  endif

...which almost works, but when doing:

  bindir =
  bindir += $(BINDIR)
  
The $(bindir) variable contains a stray whitespace before the actual
path, resolving to ' /usr/local/bin', which in turn breaks
install-binSCRIPTS because it quotes the installation variables.

Tricky stuff!  :-)

[0] https://bugs.gnu.org/42261#38


signature.asc
Description: PGP signature


./configure: line 2490: _ACEOF: command not found

2020-07-15 Thread TomK

Hello,


I'm trying to compile some older apps 
(https://github.com/wifidog/wifidog-gateway) however, consistently 
running into a badly generated ./configure file on this CentOS 7 install 
( 7.8.2003 (Core) ):




[root@dd-wrt01 wifidog-gateway]# aclocal
[root@dd-wrt01 wifidog-gateway]# autoheader
[root@dd-wrt01 wifidog-gateway]# automake
[root@dd-wrt01 wifidog-gateway]# autoreconf
[root@dd-wrt01 wifidog-gateway]# ./configure
./configure: line 2489: Report: command not found
./configure: line 2490: _ACEOF: command not found
./configure: line 2492: syntax error near unexpected token `fi'
./configure: line 2492: `fi'
[root@dd-wrt01 wifidog-gateway]#
[root@dd-wrt01 wifidog-gateway]#
[root@dd-wrt01 wifidog-gateway]#




[root@dd-wrt01 wifidog-gateway]#
[root@dd-wrt01 wifidog-gateway]# rpm -aq|grep -Ei "libtool|automake"
slibtool-devel-0.5.28-1.el7.x86_64
libtool-2.4.2-22.el7_3.x86_64
automake-1.13.4-3.el7.noarch
automake-ohpc-1.15-1.7.x86_64
slibtool-0.5.28-1.el7.x86_64
libtool-ltdl-2.4.2-22.el7_3.x86_64
libtool-ltdl-devel-2.4.2-22.el7_3.x86_64
slibtool-libs-0.5.28-1.el7.x86_64
[root@dd-wrt01 wifidog-gateway]#


Tried some newer versions of automake but results are the same:


[root@dd-wrt01 wifidog-gateway]# ls -altri /root/automake/bin/
total 880
413820931 drwxr-xr-x. 5 root root  12288 Jul 15 00:23 ..
   491592 -rwxr-xr-x. 1 root root 253315 Jul 15 00:37 automake-1.15
   491593 -rwxr-xr-x. 1 root root  36810 Jul 15 00:37 aclocal-1.15
   491551 -rwxr-xr-x. 2 root root 257947 Jul 15 00:49 automake-1.16
   491551 -rwxr-xr-x. 2 root root 257947 Jul 15 00:49 automake
   491733 -rwxr-xr-x. 2 root root  36496 Jul 15 00:49 aclocal-1.16
   491733 -rwxr-xr-x. 2 root root  36496 Jul 15 00:49 aclocal
   448119 drwxr-xr-x. 2 root root   4096 Jul 15 00:49 .
[root@dd-wrt01 wifidog-gateway]#


[root@dd-wrt01 automake-1.16.1]# rpm -aq|grep -Ei libtool
slibtool-devel-0.5.28-1.el7.x86_64
libtool-2.4.2-22.el7_3.x86_64
slibtool-0.5.28-1.el7.x86_64
libtool-ltdl-2.4.2-22.el7_3.x86_64
libtool-ltdl-devel-2.4.2-22.el7_3.x86_64
slibtool-libs-0.5.28-1.el7.x86_64
[root@dd-wrt01 automake-1.16.1]#





[root@dd-wrt01 automake-1.16.1]# rpm -ql libtool-2.4.2-22.el7_3.x86_64
/usr/bin/libtool
/usr/bin/libtoolize
/usr/share/aclocal/argz.m4
/usr/share/aclocal/libtool.m4
/usr/share/aclocal/ltdl.m4
/usr/share/aclocal/ltoptions.m4
/usr/share/aclocal/ltsugar.m4
/usr/share/aclocal/ltversion.m4
/usr/share/aclocal/lt~obsolete.m4
/usr/share/doc/libtool-2.4.2
/usr/share/doc/libtool-2.4.2/AUTHORS
/usr/share/doc/libtool-2.4.2/COPYING
/usr/share/doc/libtool-2.4.2/ChangeLog
/usr/share/doc/libtool-2.4.2/ChangeLog.1996
/usr/share/doc/libtool-2.4.2/ChangeLog.1997
/usr/share/doc/libtool-2.4.2/ChangeLog.1998
/usr/share/doc/libtool-2.4.2/ChangeLog.1999
/usr/share/doc/libtool-2.4.2/ChangeLog.2000
/usr/share/doc/libtool-2.4.2/ChangeLog.2001
/usr/share/doc/libtool-2.4.2/ChangeLog.2002
/usr/share/doc/libtool-2.4.2/ChangeLog.2003
/usr/share/doc/libtool-2.4.2/ChangeLog.2004
/usr/share/doc/libtool-2.4.2/ChangeLog.2005
/usr/share/doc/libtool-2.4.2/ChangeLog.2006
/usr/share/doc/libtool-2.4.2/ChangeLog.2007
/usr/share/doc/libtool-2.4.2/ChangeLog.2008
/usr/share/doc/libtool-2.4.2/ChangeLog.2009
/usr/share/doc/libtool-2.4.2/ChangeLog.2010
/usr/share/doc/libtool-2.4.2/NEWS
/usr/share/doc/libtool-2.4.2/README
/usr/share/doc/libtool-2.4.2/THANKS
/usr/share/doc/libtool-2.4.2/TODO
/usr/share/info/libtool.info-1.gz
/usr/share/info/libtool.info-2.gz
/usr/share/info/libtool.info.gz
/usr/share/libtool
/usr/share/libtool/config
/usr/share/libtool/config/compile
/usr/share/libtool/config/config.guess
/usr/share/libtool/config/config.sub
/usr/share/libtool/config/depcomp
/usr/share/libtool/config/install-sh
/usr/share/libtool/config/ltmain.sh
/usr/share/libtool/config/missing
/usr/share/man/man1/libtool.1.gz
/usr/share/man/man1/libtoolize.1.gz
[root@dd-wrt01 automake-1.16.1]#
[root@dd-wrt01 automake-1.16.1]#
[root@dd-wrt01 automake-1.16.1]# rpm -ql 
libtool-2.4.2-22.el7_3.x86_64|grep m4 | xargs sha1sum

7657087d5403149f69b562393bd2bbebf488e85e  /usr/share/aclocal/argz.m4
0b1aaba81de0a6c6da6b65b2aa5abe173419  /usr/share/aclocal/libtool.m4
605fb023b78c0ce2641b700c31f09d36f310dfed  /usr/share/aclocal/ltdl.m4
05ec66892c8b30f20aa5278e1671ae4925a9c063  /usr/share/aclocal/ltoptions.m4
d6d1ea1fd251ced66ba87ceb6f9e3846124691c1  /usr/share/aclocal/ltsugar.m4
25c2435fa4cb5dc86ffad28bf9b1a6a14dd53a68  /usr/share/aclocal/ltversion.m4
c0c6afe569131b4015d221bc853053cf884b2699  /usr/share/aclocal/lt~obsolete.m4
[root@dd-wrt01 automake-1.16.1]#
[root@dd-wrt01 automake-1.16.1]#
[root@dd-wrt01 automake-1.16.1]# rpm -ql 
libtool-2.4.2-22.el7_3.x86_64|grep m4 | xargs ls -altri
174992393 -rw-r--r--. 1 root root690 Apr 12  2017 
/usr/share/aclocal/ltversion.m4
174992392 -rw-r--r--. 1 root root   4372 Apr 12  2017 
/usr/share/aclocal/ltsugar.m4
174992391 -rw-r--r--. 1 root root  12347 Apr 12  2017 
/usr/share/aclocal/ltoptions.m4
174992394 -rw-r--r--. 1 root root   6126 Apr 12  2017