automake
[Top][All Lists]
Advanced

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

autoconf bug?


From: Tomas Berndtsson
Subject: autoconf bug?
Date: 08 Feb 2001 10:35:32 +0100
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7

My autoconf version is 2.13. m4 is GNU m4 1.4. 

I have the following in my configure.in:

AC_CHECK_FUNCS(dlopen, , AC_CHECK_LIB(dl,dlopen, ,
    [AC_MSG_ERROR([
*** Zen does not function properly without dlopen, sorry.])]))

The idea is to check for dlopen, and if it's not found, check for it
in libdl, and if it's not found there either, print an error
message. Now, autoconf doesn't seem to understand that I have quoted
the error string, and produces (among other things) this piece of
code:

...
...
  LIBS="-ldl $LIBS"

else
  echo "$ac_t""no" 1>&6
{ echo "configure: error:
*** Zen does not function properly without dlopen
fi
done



As can be seen, the error string is cut off at the comma, resulting in
an syntax error in the script. If I remove the comma, the code becomes
this:

...
...
  LIBS="-ldl $LIBS"

else
  echo "$ac_t""no" 1>&6
{ echo "configure: error:
*** Zen does not function properly without dlopen sorry." 1>&2; exit 1; }
fi

fi
done



That works as expected. I can't see that I've done anything wrong in
the quoting, but maybe I have?


Greetings,

Tomas



reply via email to

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