1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

configure: Fix "not a valid shell variable" with Autoconf 2.63

Fix this error:

configure.in:1430: error: AC_SUBST: `[CONFIG_TRE]' is not a valid shell variable name
acinclude.m4:31: EL_LOG_CONFIG is expanded from...
configure.in:1430: the top level
autom4te: /usr/bin/m4 failed with exit status: 1

Reported by witekfl.
This commit is contained in:
Kalle Olavi Niemitalo 2009-05-22 22:18:54 +03:00 committed by Kalle Olavi Niemitalo
parent ec4bca9cb3
commit ca1d540a41
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,8 @@ AC_DEFUN([EL_CONFIG], [
AC_DEFINE($1, 1, [Define if you want: $2 support])]) AC_DEFINE($1, 1, [Define if you want: $2 support])])
dnl EL_LOG_CONFIG(define, description, value) dnl EL_LOG_CONFIG(define, description, value)
dnl The first parameter (define) will not be expanded by m4,
dnl and it must be a valid name for a shell variable.
AC_DEFUN([EL_LOG_CONFIG], AC_DEFUN([EL_LOG_CONFIG],
[ [
about="$2" about="$2"
@ -29,7 +31,7 @@ AC_DEFUN([EL_LOG_CONFIG],
fi fi
if test -z "$value"; then if test -z "$value"; then
value="[$]$1" value="$[$1]"
fi fi
echo "$about $dots $value" >> features.log echo "$about $dots $value" >> features.log

View File

@ -1441,7 +1441,7 @@ else
fi fi
AC_SUBST(TRE_CFLAGS) AC_SUBST(TRE_CFLAGS)
AC_SUBST(TRE_LIBS) AC_SUBST(TRE_LIBS)
EL_LOG_CONFIG([[CONFIG_TRE]], [[Regexp searching]], [[$tre_log]]) EL_LOG_CONFIG([CONFIG_TRE], [[Regexp searching]], [[$tre_log]])
# =================================================================== # ===================================================================