diff --git a/configure.ac b/configure.ac index 5faf172..74b4554 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,9 @@ # $Id$ AC_CONFIG_MACRO_DIR([m4]) +# prevent HAVE_QTxxx does not appear in AM_CONDITIONAL +m4_include(m4/ax_check_qt.m4) + m4_define(x_package_name, libpcscxx) m4_define(x_major, 3) m4_define(x_minor, 1) diff --git a/m4/ax_check_qt.m4 b/m4/ax_check_qt.m4 index e503a9c..19383c6 100644 --- a/m4/ax_check_qt.m4 +++ b/m4/ax_check_qt.m4 @@ -73,7 +73,7 @@ AC_DEFUN([AX_CXX_CHECK_QT], [ AM_CPPFLAGS+=" ${$1_CFLAGS}" AM_CXXFLAGS+=" ${$1_CFLAGS}" LIBS+=" ${$1_LIBS}" - ], [HAVE_$1=0]) + ]) ]) AM_CONDITIONAL(HAVE_$1, test $HAVE_$1 -eq 1) AC_SUBST(AM_CPPFLAGS)