[LLVMbugs] [Bug 7967] New: configure script defines HAVE_GETSECT even if getsect() is not available

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 22 15:20:05 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7967

           Summary: configure script defines HAVE_GETSECT even if
                    getsect() is not available
           Product: new-bugs
           Version: trunk
          Platform: All
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: dimitry at andric.com
                CC: llvmbugs at cs.uiuc.edu


In autoconf/configure.ac, there is this fragment that checks for
Darwin-specific getsect():

  dnl Check for Darwin-specific getsect().
  AC_MSG_CHECKING(for getsect())
  AC_COMPILE_IFELSE(
    AC_LANG_SOURCE(
      [[#include <mach-o/getsect.h>
    int main() {
      unsigned long p;
      return (int)getsect("__DATA","__pass_info", &p);
    }
      ]]),
    AC_MSG_RESULT(yes)
      AC_DEFINE(HAVE_GETSECT, 1, Have Darwin getsect() support),
    AC_MSG_RESULT(no)
      AC_DEFINE(HAVE_GETSECT, 1, Have Darwin getsect() support)
  )

The "no" case is obviously wrong.

-- 
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