From 72c5c5fff42fc0b4c9d1eaaaebe9d6e1dd8824f2 Mon Sep 17 00:00:00 2001 From: malosek Date: Thu, 24 Sep 2009 16:23:49 +0200 Subject: --with-pgm2 compilable --- configure.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 03adbe1..d82db7b 100644 --- a/configure.in +++ b/configure.in @@ -129,11 +129,6 @@ case "${host_os}" in ;; esac -# If not on QNX nor OSX add -pedantic into LIBZMQ_EXTRA_CXXFLAGS. -if test "x$pedantic" = "xyes"; then - LIBZMQ_EXTRA_CXXFLAGS="${LIBZMQ_EXTRA_CXXFLAGS} -pedantic" -fi - # Check if we are running at sparc harware AC_MSG_CHECKING([wheter __sparc__ is defined]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM( @@ -522,6 +517,11 @@ fi AC_SUBST(pgm_basename) +# If not on QNX nor OSX nor PGM add -pedantic into LIBZMQ_EXTRA_CXXFLAGS. +if test "x$pedantic" = "xyes" -a "x$pgm1_ext" = "xno" -a "x$pgm2_ext" = "xno"; then + LIBZMQ_EXTRA_CXXFLAGS="${LIBZMQ_EXTRA_CXXFLAGS} -pedantic" +fi + # If not on QNX nor --with-pgm/2add -Werror into LIBZMQ_EXTRA_CXXFLAGS. if test "x$werror" = "xyes" -a "x$pgm1_ext" = "xno" -a "x$pgm2_ext" = "xno"; then LIBZMQ_EXTRA_CXXFLAGS="${LIBZMQ_EXTRA_CXXFLAGS} -Werror" -- cgit v1.2.3