autoconf
[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: 09 Feb 2001 13:23:24 +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 got a suggestion on the automake list to quote AC_CHECK_LIB(...)
too, but that gave the same, wrong result. The bug reporting address
on the autoconf online manual is address@hidden, but I
was suggested on the automake list to mail address@hidden
instead. Maybe an update of the manual and the webpage is needed, as
there is no mention of the address@hidden anywhere.

Please CC me the reply, since I'm not on the list.


Greetings,

Tomas




reply via email to

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