[LLVMbugs] [Bug 5018] New: ffi/oprofile checked for even when explicitly disabled

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Sep 21 06:07:22 PDT 2009


           Summary: ffi/oprofile checked for even when explicitly disabled
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu

./configure --enable-ffi=no --enable-oprofile=no still checks for ffi and
and adds it to LIBS.

The problem is here in configure.ac:
dnl --enable-libffi : check whether the user wants to turn off libffi:
  --enable-libffi,[Check for the presence of libffi (default is YES)]),,
case "$enableval" in
  yes) llvm_cv_enable_libffi="yes" ;;
  no)  llvm_cv_enable_libffi="no"  ;;
  *) AC_MSG_ERROR([Invalid setting for --enable-libffi. Use "yes" or "no"]) ;;

enableval should be tested inside AC_ARG_ENABLE, otherwise it contains
something else:
+ eval 'enable_ffi=$ac_optarg'
++ enable_ffi=no
+ case "$withval" in
+ with_ocaml_libdir=auto
+ test '' = set
+ withval=default
+ case "$withval" in
+ test xdefault '!=' xdefault
+ test '' = set
+ enableval=yes
+ case "$enableval" in
+ llvm_cv_enable_libffi=yes

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list