From 8b08047cb08dd6ba7ae142007f82607183574ef6 Mon Sep 17 00:00:00 2001 From: malosek Date: Mon, 19 Oct 2009 19:00:04 +0200 Subject: added --with-pgm2-examples configure option --- configure.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index be28221..1b1db35 100644 --- a/configure.in +++ b/configure.in @@ -406,10 +406,22 @@ AC_ARG_WITH([pgm2], [AS_HELP_STRING([--with-pgm2], [build libzmq with PGM v2 extension [default=no]])], [with_pgm2_ext=yes], [with_pgm2_ext=no]) +AC_ARG_WITH([pgm2-examples], [AS_HELP_STRING([--with-pgm2-examples], + [build PGM v2 examples [default=no]])], + [with_pgm2_examples=yes], [with_pgm2_examples=no]) + if test "x$with_pgm1_ext" != "xno" -a "x$with_pgm2_ext" != "xno"; then AC_MSG_ERROR([Can not configure --with-pgm and --with-pgm2.]); fi +if test "x$with_pgm2_ext" = "xno" -a "x$with_pgm2_examples" = "xyes"; then + AC_MSG_ERROR([Can not configure --with-pgm2-examples without --with-pgm2.]); +fi + +if test "x$c" = "xno" -a "x$with_pgm2_examples" = "xyes"; then + AC_MSG_ERROR([Can not configure --with-pgm2-examples without --with-c.]); +fi + if test "x$with_pgm1_ext" != "xno"; then pgm_basename=${pgm1_basename} @@ -588,6 +600,10 @@ if test "x$with_perf" != "xno"; then fi fi +if test "x$with_perf" = "xno" -a "x$with_pgm2_examples" = "xyes"; then + AC_MSG_ERROR([Can not configure --with-pgm2-examples without --with-perf.]); +fi + AM_CONDITIONAL(BUILD_PYTHON, test "x$pyzmq" = "xyes") AM_CONDITIONAL(BUILD_JAVA, test "x$jzmq" = "xyes") AM_CONDITIONAL(BUILD_PYTHON, test "x$pyzmq" = "xyes") @@ -600,6 +616,7 @@ AM_CONDITIONAL(BUILD_NO_PGM, test "x$pgm2_ext" = "xno" -a "x$pgm1_ext" = "xno") AM_CONDITIONAL(BUILD_FORWARDER, test "x$forwarder" = "xyes") AM_CONDITIONAL(BUILD_PERF, test "x$perf" = "xyes") AM_CONDITIONAL(ON_MINGW, test "x$on_mingw32" = "xyes") +AM_CONDITIONAL(BUILD_PGM2_EXAMPLES, test "x$with_pgm2_ext" = "xyes") AC_SUBST(stdint) AC_SUBST(inttypes) -- cgit v1.2.3