X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=configure.ac;h=f4cbfc356a803393b27a860172b7afb1be149252;hp=358ead88e2443705c69a7e98003a13dba55a87b0;hb=26e46ddee86d2de5c88997bf8362a6f27a0a2ff9;hpb=661ad2e058f356704565350a5d265467417e1bbb diff --git a/configure.ac b/configure.ac index 358ead8..f4cbfc3 100644 --- a/configure.ac +++ b/configure.ac @@ -40,14 +40,12 @@ AC_CHECK_LIB([popt], [poptGetContext], [], ) # Check for libncurses -AC_CHECK_LIB([ncurses], [initscr], [], - [AC_MSG_ERROR([Cannot find the the ncurses library.])] +AC_CHECK_LIB([ncurses], [initscr], [], [HAVE_NCURSES=0] ) # Check for libpanel, also part of libncurses # (but this check will add the required -lpanel flag) -AC_CHECK_LIB([panel], [update_panels], [], - [AC_MSG_ERROR([Cannot find the the ncurses library.])] +AC_CHECK_LIB([panel], [update_panels], [], [HAVE_PANELS=0] ) # Check for libbabeltrace @@ -78,5 +76,18 @@ AC_CONFIG_FILES([ Makefile src/Makefile doc/Makefile + utils/Makefile ]) AC_OUTPUT + +AS_IF([test "x$HAVE_NCURSES" = "x0"],[ + AS_ECHO() + AS_ECHO_N("Ncurses GUI won't be compiled install ncurses if you want it.") + ], [ + CURSES_LIBS="-lcurses -lpanel" + AC_SUBST(CURSES_LIBS) + AS_ECHO() + AS_ECHO_N("Ncurses GUI will be compiled.") + ]) +AS_ECHO() +