1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-27 01:43:28 +01:00

Merge pull request #11 from jin-eld/freebsd

Fix configure for Free BSD
This commit is contained in:
stal 2013-08-26 09:42:16 -07:00
commit 8019f38738

View File

@ -82,9 +82,13 @@ case $host_os in
*mingw*) *mingw*)
WIN32="yes" WIN32="yes"
;; ;;
*freebsd*)
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CFLAGS="$CFLAGS -I/usr/local/include"
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
;;
esac esac
# Checks for programs. # Checks for programs.
AC_PROG_CC AC_PROG_CC
AM_PROG_CC_C_O AM_PROG_CC_C_O
@ -235,13 +239,13 @@ if test "x$NCURSES_FOUND" = "xno"; then
] ]
) )
else else
AC_CHECK_LIB([ncursesw], [get_wch], AC_CHECK_LIB([ncursesw], [wget_wch],
[ [
NCURSES_WIDECHAR_SUPPORT="yes" NCURSES_WIDECHAR_SUPPORT="yes"
], ],
[ [
unset ac_cv_lib_ncursesw_get_wch unset ac_cv_lib_ncursesw_wget_wch
AC_CHECK_LIB([ncursesw], [get_wch], AC_CHECK_LIB([ncursesw], [wget_wch],
[ [
NCURSES_WIDECHAR_SUPPORT="yes" NCURSES_WIDECHAR_SUPPORT="yes"
], ],
@ -250,7 +254,7 @@ if test "x$NCURSES_FOUND" = "xno"; then
AC_CHECK_LIB([ncurses], [clear], AC_CHECK_LIB([ncurses], [clear],
[], [],
[ [
unset ac_cv_lib_ncursesw_get_wch unset ac_cv_lib_ncurses_clear
AC_CHECK_LIB([ncurses], [clear], AC_CHECK_LIB([ncurses], [clear],
[], [],
[ [