From 745e4e978d0bfd001d406ab3cbbdb77cf49fc24e Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 14 Oct 2019 00:35:15 -0400 Subject: build: Throw error on missing libraries --- diff --git a/configure.ac b/configure.ac index 96a16dc..3c6af94 100644 --- a/configure.ac +++ b/configure.ac @@ -83,9 +83,15 @@ if test "x${address_sanitization}" = 'xyes'; then AC_SUBST([ASAN_CFLAGS]) fi -AC_CHECK_LIB([curses], [initscr]) -AC_CHECK_LIB([flite], [flite_init]) -AC_CHECK_LIB([flite_cmu_us_slt], [register_cmu_us_slt]) +AC_CHECK_LIB([curses], [initscr], + [timeteller_LDADD="-lcurses ${timeteller_LDADD}"], + [AC_MSG_ERROR([No library -lcurses found])]) +AC_CHECK_LIB([flite], [flite_init], + [timeteller_LDADD="-lflite ${timeteller_LDADD}"], + [AC_MSG_ERROR([No library -lflite found])]) +AC_CHECK_LIB([flite_cmu_us_slt], [register_cmu_us_slt], + [timeteller_LDADD="-lflite_cmu_us_slt ${timeteller_LDADD}"], + [AC_MSG_ERROR([No library -lflite_cmu_us_slt found])]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_HEADERS([config.h]) -- cgit v0.9.1