<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - I can't build poppler with Clang"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76963#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - I can't build poppler with Clang"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76963">bug 76963</a>
              from <span class="vcard"><a class="email" href="mailto:dmacks@netspace.org" title="Daniel Macks <dmacks@netspace.org>"> <span class="fn">Daniel Macks</span></a>
</span></b>
        <pre>The boilerplate for this sort of autoconf check is something like:


saved_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="-fno-check-new $CXXFLAGS"
AC_MSG_CHECKING([for -fno-check-new compiler flag])
AC_TRY_COMPILE([], [int main (void) { return 0; }],
  AC_MSG_RESULT([yes]),
  AC_MSG_RESULT([no])
  CXXFLAGS="$saved_CXXFLAGS"
])


Obviously could extract this result into a temp variable first and concat into
the larger CXXFLAGS assignments in the relevant case/esac sections rather than
having the test itself leave the result in the live variable.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>