summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-10-14 00:35:15 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-10-14 00:35:15 (EDT)
commit745e4e978d0bfd001d406ab3cbbdb77cf49fc24e (patch)
tree72167b6195f9db376c0525a27fa90a5f14510355
parent5d218a2546db33ced26ed6744ac384d3f14c4811 (diff)
downloadtimeteller-745e4e978d0bfd001d406ab3cbbdb77cf49fc24e.zip
timeteller-745e4e978d0bfd001d406ab3cbbdb77cf49fc24e.tar.gz
timeteller-745e4e978d0bfd001d406ab3cbbdb77cf49fc24e.tar.bz2
build: Throw error on missing libraries
-rw-r--r--configure.ac12
1 files changed, 9 insertions, 3 deletions
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])