diff options
author | Benjamin Franzke <benjaminfranzke@gmail.com> | 2020-02-13 05:57:00 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@gmail.com> | 2020-02-13 05:57:00 +0100 |
commit | 78f0fe37817881a2805a06982d7112a0b19b8d64 (patch) | |
tree | 34cb907852ffa7c1897585b94b5e97bf170e04ba | |
parent | 3d0e6d54029713b158a9c53ed7956a49074db9bf (diff) | |
download | pa-sink-ctl-78f0fe37817881a2805a06982d7112a0b19b8d64.tar.gz pa-sink-ctl-78f0fe37817881a2805a06982d7112a0b19b8d64.tar.bz2 pa-sink-ctl-78f0fe37817881a2805a06982d7112a0b19b8d64.zip |
configure.ac: Polish ncurses fallback a bit
-rw-r--r-- | configure.ac | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 3aaced9..336082f 100644 --- a/configure.ac +++ b/configure.ac @@ -44,16 +44,14 @@ if test "x$ac_cv_func_signalfd" = "xno" -o "x$ac_cv_header_sys_signalfd_h" = "xn fi # Checks for libraries. -PKG_CHECK_MODULES(CURSES, [ncursesw], [], [ncursesw=no]) PKG_CHECK_MODULES(PULSE, [libpulse], [], AC_MSG_ERROR([libpulse required])) PKG_CHECK_MODULES(PULSE_MAINLOOP, [libpulse-mainloop-glib], [], AC_MSG_ERROR([libpulse-mainloop-glib required])) PKG_CHECK_MODULES(GLIB, [glib-2.0 >= $glib_version], [], AC_MSG_ERROR([glib >= $glib_version required])) - -if test "x$ncursesw" = "xno"; then +PKG_CHECK_MODULES(CURSES, [ncursesw], [], AC_CHECK_LIB([curses], [newwin], [CURSES_LIBS=-lcurses], AC_MSG_ERROR([ncursesw or curses required])) AC_CHECK_HEADERS([curses.h]) AC_SUBST(CURSES_LIBS) -fi +) if test "x$GCC" = "xyes"; then GCC_CFLAGS="-Wall -pedantic -std=c99 -W -Wextra -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option -fvisibility=hidden" |