From c588a1188315019cf01233a7da7960b7e69716a3 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 8 Jul 2012 23:40:15 +0100 Subject: [PATCH] Added headunit to autotools files --- Makefile.am | 3 +-- configure.ac | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index e74aeacf..b1498e8e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,6 +16,5 @@ check_PROGRAMS = tests/testsuite tests_testsuite_SOURCES = tests/test_contact_list.c src/contact_list.c src/contact.c \ tests/test_util.c tests/test_prof_history.c src/prof_history.c src/util.c \ tests/test_prof_autocomplete.c src/prof_autocomplete.c src/common.c tests/testsuite.c -tests_testsuite_CFLAGS = -I ~/include -tests_testsuite_LDADD = -L ~/lib -lheadunit -lstdc++ +tests_testsuite_LDADD = -lheadunit -lstdc++ diff --git a/configure.ac b/configure.ac index 040e3f09..c211d106 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,8 @@ AC_CHECK_LIB([glib-2.0], [main], [], [AC_MSG_ERROR([glib-2.0 is required for profanity])]) AC_CHECK_LIB([notify], [main], [], [AC_MSG_NOTICE([libnotify not found])]) +AC_CHECK_LIB([headunit], [main], [], + [AC_MSG_NOTICE([headunit not found, will not be able to run tests])]) # Checks for header files. AC_CHECK_HEADERS([stdlib.h string.h])