automake
[Top][All Lists]
Advanced

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

Manual Example


From: Paulo J. Matos
Subject: Manual Example
Date: Fri, 26 May 2006 10:40:31 +0100

Hi all,

In: http://sources.redhat.com/automake/automake.html#Conditionals

AC_ARG_ENABLE(debug,
    [  --enable-debug    Turn on debugging],
    [case "${enableval}" in
      yes) debug=true ;;
      no)  debug=false ;;
      *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
    esac],[debug=false])
    AM_CONDITIONAL(DEBUG, test x$debug = xtrue)

I have a couple of questions:
- is enableval always defined? It's the value given by the uer for the ARG?
- AM_CONDITIONAL has a x$debug and xtrue. What is this? A typo? Shouldn't it be:
    AM_CONDITIONAL(DEBUG, test "$debug" = "true")

Cheers,

--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group




reply via email to

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