#25 AC_PATH_IRDA macro does not support out-of-tree build

closed
None
5
2010-04-30
2008-04-14
No

the AC_PATH_IDRA macro fails if you try building out of tree. this is because the code assumes you're configuring in the top source directory. the fix is to setup CPPFLAGS correctly

AC_DEFUN([AC_PATH_IRDA], [
AC_CACHE_CHECK([for IrDA support], irda_found, [
+ save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS -I$srcdir"
AC_TRY_COMPILE([
#include <sys/socket.h>
#include "lib/irda.h"
], [
struct irda_device_list l;
], irda_found=yes, irda_found=no)
+ CPPFLAGS="$save_CPPFLAGS"
])
])

Discussion

  • Hendrik Sattler

    Hendrik Sattler - 2010-04-15

    I have a different patch in my git tree.

     
  • Hendrik Sattler

    Hendrik Sattler - 2010-04-15
    • assigned_to: nobody --> infotux
    • status: open --> pending
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks