Use the native readline library on FreeBSD as well

This commit is contained in:
Pietro Cerutti 2013-09-13 09:38:53 +02:00 committed by Paul Beckingham
parent 04e0df6965
commit 10c626b18c

View file

@ -9,36 +9,37 @@
# Apple readline does not support readline hooks # Apple readline does not support readline hooks
# So we look for another one by default # So we look for another one by default
IF (APPLE) IF (APPLE OR FREEBSD)
FIND_PATH (READLINE_INCLUDE_DIR NAMES readline/readline.h PATHS FIND_PATH (READLINE_INCLUDE_DIR NAMES readline/readline.h PATHS
/usr/include/
/sw/include /sw/include
/opt/local/include /opt/local/include
/opt/include /opt/include
/usr/local/include /usr/local/include
/usr/include/
NO_DEFAULT_PATH NO_DEFAULT_PATH
) )
ENDIF (APPLE) ENDIF (APPLE OR FREEBSD)
FIND_PATH (READLINE_INCLUDE_DIR NAMES readline/readline.h) FIND_PATH (READLINE_INCLUDE_DIR NAMES readline/readline.h)
# Apple readline does not support readline hooks # Apple readline does not support readline hooks
# So we look for another one by default # So we look for another one by default
IF (APPLE) IF (APPLE OR FREEBSD)
FIND_LIBRARY (READLINE_readline_LIBRARY NAMES readline PATHS FIND_LIBRARY (READLINE_readline_LIBRARY NAMES readline PATHS
/usr/lib
/sw/lib /sw/lib
/opt/local/lib /opt/local/lib
/opt/lib /opt/lib
/usr/local/lib /usr/local/lib
/usr/lib
NO_DEFAULT_PATH NO_DEFAULT_PATH
) )
ENDIF (APPLE) ENDIF (APPLE OR FREEBSD)
FIND_LIBRARY (READLINE_readline_LIBRARY NAMES readline) FIND_LIBRARY (READLINE_readline_LIBRARY NAMES readline)
# Sometimes readline really needs ncurses # Sometimes readline really needs ncurses
IF (APPLE) IF (APPLE OR FREEBSD)
FIND_LIBRARY (READLINE_ncurses_LIBRARY NAMES ncurses PATHS FIND_LIBRARY (READLINE_ncurses_LIBRARY NAMES ncurses PATHS
/usr/lib
/sw/lib /sw/lib
/opt/local/lib /opt/local/lib
/opt/lib /opt/lib
@ -46,7 +47,7 @@ IF (APPLE)
/usr/lib /usr/lib
NO_DEFAULT_PATH NO_DEFAULT_PATH
) )
ENDIF (APPLE) ENDIF (APPLE OR FREEBSD)
FIND_LIBRARY (READLINE_ncurses_LIBRARY NAMES ncurses) FIND_LIBRARY (READLINE_ncurses_LIBRARY NAMES ncurses)
MARK_AS_ADVANCED ( MARK_AS_ADVANCED (