automake
[Top][All Lists]
Advanced

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

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


From: TomK
Subject: Re: ./configure: line 2490: _ACEOF: command not found
Date: Wed, 15 Jul 2020 22:41:08 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 7/15/2020 7:06 PM, Karl Berry wrote:
     ./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.




Thanks very much Karl.  Included the files as zip and text:


[root@dd-wrt01 wifidog-gateway]# cat configure.ac
## -*-m4-*-
# $Id$

dnl Process this file with autoconf to produce a configure script.

# FILE:
# configure.in
#
# FUNCTION:
# implements checks for a variety of system-specific functions

# AC_PROG_RANLIB  Obsoleted.  Use LT_INIT
AC_INIT([wifidog], [1.3.0])
AC_CONFIG_MACRO_DIR([m4])
LT_INIT

AC_INIT(src/common.h)
AM_CONFIG_HEADER(config.h)
AC_CONFIG_AUX_DIR(config)
AC_PROG_CC
AC_PROG_CXX

AC_SUBST(BUILDROOT)

# we use Semantic Versioning x.y.z tag for release, docs: http://semver.org/
WIFIDOG_MAJOR_VERSION=1
WIFIDOG_MINOR_VERSION=3
WIFIDOG_MICRO_VERSION=0
WIFIDOG_VERSION=$WIFIDOG_MAJOR_VERSION.$WIFIDOG_MINOR_VERSION.$WIFIDOG_MICRO_VERSION

AC_SUBST(WIFIDOG_MAJOR_VERSION)
AC_SUBST(WIFIDOG_MINOR_VERSION)
AC_SUBST(WIFIDOG_MICRO_VERSION)
AC_SUBST(WIFIDOG_VERSION)

AM_INIT_AUTOMAKE    # (wifidog,$WIFIDOG_VERSION)


AM_MAINTAINER_MODE

AC_PROG_INSTALL

AC_LIBTOOL_DLOPEN
# AM_PROG_LIBTOOL

AC_ISC_POSIX
AC_C_BIGENDIAN
AC_PROG_MAKE_SET
AC_HEADER_STDC


# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
# ----------------------------------------------------------------------------
AC_DEFUN([BB_ENABLE_DOXYGEN],
[
AC_ARG_ENABLE(doxygen, [ --enable-doxygen enable documentation generation with doxygen (auto)]) AC_ARG_ENABLE(dot, [ --enable-dot use 'dot' to generate graphs in doxygen (auto)]) AC_ARG_ENABLE(html-docs, [ --enable-html-docs enable HTML generation with doxygen (yes)], [], [ enable_html_docs=yes]) AC_ARG_ENABLE(latex-docs, [ --enable-latex-docs enable LaTeX documentation generation with doxygen (no)], [], [ enable_latex_docs=no])
if test "x$enable_doxygen" = xno; then
        enable_doc=no
else
        AC_PATH_PROG(DOXYGEN, doxygen, , $PATH)
        if test x$DOXYGEN = x; then
                if test "x$enable_doxygen" = xyes; then
                        AC_MSG_ERROR([could not find doxygen])
                fi
                enable_doc=no
        else
                enable_doc=yes
                AC_PATH_PROG(DOT, dot, , $PATH)
        fi
fi
AM_CONDITIONAL(DOC, test x$enable_doc = xyes)

if test x$DOT = x; then
        if test "x$enable_dot" = xyes; then
                AC_MSG_ERROR([could not find dot])
        fi
        enable_dot=no
else
        enable_dot=yes
fi
AM_CONDITIONAL(ENABLE_DOXYGEN, test x$enable_doc = xtrue)
AC_SUBST(enable_dot)
AC_SUBST(enable_html_docs)
AC_SUBST(enable_latex_docs)
])

# Acutally perform the doxygen check
BB_ENABLE_DOXYGEN

# Enable cyassl?
AC_DEFUN([BB_CYASSL],
[
AC_ARG_ENABLE(cyassl, [ --enable-cyassl enable TLS support for auth server communication (no)], [], [enable_cyassl=no])
if test "x$enable_cyassl" = xyes; then
# CyaSSL has been renamed wolfSSL. Old method names are still available # via cyassl/ssl.h, which maps old methods to new methods via macros. # To find the proper lib to link against (cyassl or wolfssl), we do have # the use the new naming scheme below as cyassl/ssl.h is not available for
        # AC_SEARCH_LIBS
        AC_CHECK_HEADERS(cyassl/ssl.h)
        AC_SEARCH_LIBS([CyaTLSv1_client_method], [cyassl], [], [
            AC_SEARCH_LIBS([wolfTLSv1_client_method], [wolfssl], [], [
AC_MSG_ERROR([unable to locate SSL lib: either wolfSSL or CyaSSL needed.])
            ])
        ])

        AC_MSG_CHECKING([for the CyaSSL SNI enabled])
        AC_LINK_IFELSE([AC_LANG_PROGRAM(
        [[
                #define HAVE_SNI
                #include <cyassl/ssl.h>
        ]], [[
                CYASSL_CTX *ctx;
                CyaSSL_Init();
                ctx = CyaSSL_CTX_new(CyaTLSv1_client_method());
CyaSSL_CTX_UseSNI(ctx, CYASSL_SNI_HOST_NAME, "wifidog.org", 11);
        ]])], [enabled_sni=yes], [enabled_sni=no])

        if test "x$enabled_sni" = xyes; then
                AC_MSG_RESULT([yes])
                AC_DEFINE([HAVE_SNI],, "Compile with CyaSSL SNI support")
        else
                AC_MSG_RESULT([no])
        fi

        AC_DEFINE(USE_CYASSL,, "Compile with CyaSSL support")
fi
])

# Actually perform the cyassl check
BB_CYASSL



# check for pthread
AC_CHECK_HEADER(pthread.h, , AC_MSG_ERROR(You need the pthread headers) )
AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(You need the pthread library) )

# libhttpd dependencies
echo "Begining libhttpd dependencies check"
AC_CHECK_HEADERS(string.h strings.h stdarg.h unistd.h)
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
echo "libhttpd dependencies check complete"

AC_OUTPUT(              Makefile
                        wifidog.spec
                        wifidog-msg.html
                        src/Makefile
                        libhttpd/Makefile
                        doc/Makefile
                        )

[root@dd-wrt01 wifidog-gateway]#


I've made some modifications such as adding these lines:


# AC_PROG_RANLIB  Obsoleted.  Use LT_INIT
AC_INIT([wifidog], [1.3.0])
AC_CONFIG_MACRO_DIR([m4])
LT_INIT


The lines I used to test successfull compilation are:

 0) libtoolize
 1) aclocal
 2) autoheader
 3) automake
 4) autoreconf
 5) ./configure
 6) make


The make file for the entire stack for DD-WRT contains the following for wifidog:


[root@dd-wrt01 rules]# cat wifidog.mk
wifidog-configure:
        cd wifidog && ./autogen.sh
cd wifidog && ./configure --disable-nls --prefix=/usr --host=$(ARCH)-linux CC="$(CC)" CFLAGS="$(COPTS) $(MIPS16_OPT) -ffunction-sections -fdata-sections -Wl,--gc-sections"

wifidog:
        $(MAKE) -j 4 -C wifidog

wifidog-clean:
        if test -e "wifidog/Makefile"; then make -C wifidog clean; fi
        @true

wifidog-install:
        install -D wifidog/src/wdctl $(INSTALLDIR)/wifidog/usr/sbin/wdctl
install -D wifidog/src/.libs/wifidog $(INSTALLDIR)/wifidog/usr/sbin/wifidog install -D wifidog/libhttpd/.libs/libhttpd.so.0.0.0 $(INSTALLDIR)/wifidog/usr/lib/libhttpd.so.0
        mkdir -p $(INSTALLDIR)/wifidog/etc/config
install -D wifidog/config/*.nvramconfig $(INSTALLDIR)/wifidog/etc/config install -D wifidog/config/*.webhotspot $(INSTALLDIR)/wifidog/etc/config
ifeq ($(CONFIG_TIEXTRA2),y)
install -D private/telkom/mwifidog.webhotspot $(INSTALLDIR)/wifidog/etc/config/5wifidogm.webhotspot
endif
        install -D wifidog/wifidog-msg.html $(INSTALLDIR)/wifidog/etc

[root@dd-wrt01 rules]#



Running ./configure moreover get's in infinite recursive calls however I'm thinking this will be resolved when the subject make error is resolved.



--
Thx,
TK.

Attachment: configure.ac.tar.gz
Description: GNU Zip compressed data


reply via email to

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