Ignore:
Timestamp:
29/09/2010 18:54:09 (20 months ago)
Author:
chris
Message:

Workaround for Mac OSX where readline.h doesn't compile if stdio.h is
not included first.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/m4/vl_lib_readline.m4

    r2643 r2758  
    129129  fi 
    130130 
     131  AC_TRY_LINK([$vl_cv_lib_includes], [(void) readline;], 
     132    [vl_compiles=yes], [vl_compiles=no]) 
     133  if test "x$vl_compiles" = "xno"; then 
     134    AC_TRY_LINK([#include <stdio.h> 
     135      $vl_cv_lib_includes], [(void) readline;], 
     136      [vl_compiles_with_stdio=yes], [vl_compiles_with_stdio=no]) 
     137    if test "x$vl_compiles_with_stdio" = "xyes"; then 
     138      vl_cv_lib_includes="#include <stdio.h> 
     139$vl_cv_lib_includes" 
     140    fi 
     141  fi 
     142 
    131143  if test "x$vl_cv_lib_readline_compat_found" = "xyes"; then 
    132144    BOX_CHECK_VAR([rl_completion_matches], [in readline headers], 
Note: See TracChangeset for help on using the changeset viewer.