Changeset 244 for libcaca/trunk/configure.ac
- Timestamp:
- Dec 2, 2003, 11:27:27 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/configure.ac
r238 r244 28 28 AC_CHECK_FUNCS(vsnprintf getenv putenv) 29 29 30 USE_SLANG=false31 USE_NCURSES=false32 USE_CONIO=false33 30 if test "${enable_conio}" = "yes"; then 34 31 AC_CHECK_HEADER(conio.h,:,AC_MSG_ERROR([cannot find conio.h header])) … … 40 37 AC_MSG_RESULT(no)]) 41 38 AC_DEFINE(USE_CONIO, 1, Define if the backend driver is conio.h) 42 USE_CONIO=:43 39 elif test "${enable_slang}" = "yes"; then 44 40 AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers])) 45 41 AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library])) 46 42 AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang) 47 USE_SLANG=:43 CACA_LIBS="${CACA_LIBS} -lslang" 48 44 elif test "${enable_ncurses}" != "no"; then 49 45 AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers])) 50 46 AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library])) 51 47 AC_DEFINE(USE_NCURSES, 1, Define if the backend driver is ncurses) 52 USE_NCURSES=:48 CACA_LIBS="${CACA_LIBS} -lncurses" 53 49 else 54 50 AC_MSG_ERROR([could not find any terminal graphics interface]) 55 51 fi 56 52 57 AM_CONDITIONAL(USE_SLANG, ${USE_SLANG}) 58 AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES}) 53 AC_SUBST(CACA_LIBS) 59 54 60 55 # Optimizations
Note: See TracChangeset
for help on using the changeset viewer.