Fixed readline support

This commit is contained in:
Pedro Lopez-Cabanillas 2010-08-05 18:01:50 +00:00
parent d33b69ecb2
commit f33d9d502f
2 changed files with 3 additions and 3 deletions

View file

@ -307,8 +307,8 @@ set ( READLINE_LIBS )
if ( enable-readline ) if ( enable-readline )
find_package ( Readline ) find_package ( Readline )
set ( FOUND_READLINE ${HAVE_READLINE} ) set ( FOUND_READLINE ${HAVE_READLINE} )
set ( WITH_READLINE ${HAVE_READLINE} )
if ( HAVE_READLINE ) if ( HAVE_READLINE )
set ( WITH_READLINE 1 )
set ( READLINE_LIBS ${READLINE_LIBRARIES} ) set ( READLINE_LIBS ${READLINE_LIBRARIES} )
endif ( HAVE_READLINE ) endif ( HAVE_READLINE )
endif ( enable-readline ) endif ( enable-readline )
@ -318,7 +318,7 @@ set ( LASH_LIBRARIES )
if ( enable-lash ) if ( enable-lash )
pkg_check_modules ( LASH lash-1.0>=0.3 ) pkg_check_modules ( LASH lash-1.0>=0.3 )
if ( LASH_FOUND ) if ( LASH_FOUND )
set ( LASH_SUPPORT ${LASH_FOUND} ) set ( LASH_SUPPORT 1 )
add_definitions ( -DHAVE_LASH ) add_definitions ( -DHAVE_LASH )
endif ( LASH_FOUND ) endif ( LASH_FOUND )
endif ( enable-lash ) endif ( enable-lash )

View file

@ -11,7 +11,7 @@ find_path ( READLINE_INCLUDE_DIR NAMES history.h readline/history.h )
find_library ( READLINE_LIBRARIES NAMES readline ) find_library ( READLINE_LIBRARIES NAMES readline )
if ( READLINE_INCLUDE_DIR ) if ( READLINE_INCLUDE_DIR )
set ( HAVE_READLINE YES CACHE TYPE BOOL ) set ( HAVE_READLINE TRUE CACHE TYPE BOOL )
endif ( READLINE_INCLUDE_DIR ) endif ( READLINE_INCLUDE_DIR )
include ( FindPackageHandleStandardArgs ) include ( FindPackageHandleStandardArgs )