qcdm: fix some build errors when building standalone

This commit is contained in:
Dan Williams
2012-01-24 11:32:20 -06:00
parent 79cb265379
commit 38498e3c5d
6 changed files with 15 additions and 9 deletions
View File
View File
View File
View File
+5 -3
View File
@@ -14,15 +14,15 @@ AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS(config.h)
dnl Define _GNU_SOURCE for various things like strcasestr()
AC_GNU_SOURCE
dnl Required programs
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LIBTOOL
dnl Define _GNU_SOURCE for various things like strcasestr()
AC_GNU_SOURCE
dnl
dnl Tests
dnl
@@ -38,6 +38,8 @@ case $with_tests in
;;
esac
AM_CONDITIONAL(STANDALONE, test "yes" = "yes")
AC_CONFIG_FILES([
Makefile
src/Makefile
+10 -6
View File
@@ -1,5 +1,6 @@
INCLUDES = \
-I$(top_srcdir)/libqcdm/src
-I$(top_srcdir)/libqcdm/src \
-I$(top_srcdir)/src
noinst_PROGRAMS = test-qcdm
@@ -16,12 +17,15 @@ test_qcdm_SOURCES = \
test-qcdm-result.h \
test-qcdm.c
test_qcdm_CPPFLAGS = \
$(MM_CFLAGS)
test_qcdm_CPPFLAGS = $(MM_CFLAGS)
test_qcdm_LDADD = \
$(top_builddir)/libqcdm/src/libqcdm.la \
$(MM_LIBS)
test_qcdm_LDADD = $(MM_LIBS)
if STANDALONE
test_qcdm_LDADD += $(top_builddir)/src/libqcdm.la
else
test_qcdm_LDADD += $(top_builddir)/libqcdm/src/libqcdm.la
endif
if WITH_TESTS