This check was forcing assertions off if using them depends on __eprintf. It is
unclear to me what the motivation for this is and it was introduced in the
initial revision with no further information. As far as I am aware, this is no
longer relevant. Modern libc is intended to provide everything necessary to
support assert, unless you are building freestanding which Graphviz does not
support.
],[AC_MSG_RESULT(no)
])
-# -----------------------------------
-
-AC_MSG_CHECKING(if assert needs __eprintf)
-cat > conftest.$ac_ext <<EOF
-#include "confdefs.h"
-#include "assert.h"
-int main(int argc, char **argv) {
-(void)argv;
-assert(argc);
-; return 0; }
-EOF
-${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5
-if test "x`nm conftest.o |$EGREP __eprintf`" != "x"; then
- AC_MSG_RESULT(yes)
- CFLAGS="$CFLAGS -DNDEBUG"
-else
- AC_MSG_RESULT(no)
-fi
-rm -f conftest*
-
# -----------------------------------------------------------------------
# This is a historical artifact ... there are no other choices these days