--- configure.client.fix 2012-05-22 17:14:36.173710191 -0700 +++ configure.client 2012-05-22 17:41:48.023766470 -0700 @@ -7,6 +7,47 @@ echo "Configuration script for Xymon client" echo "" +while test "$1" != "" +do + OPT="$1"; shift + + case "$OPT" in + "--help") + cat <>Makefile echo "LIBRTDEF = $LIBRTDEF" >>Makefile +if test "$CONFTYPE" = "client" +then +echo "" >>Makefile +echo "# PCRE settings" >>Makefile + if test "$PCREINC" != ""; then + echo "PCREINCDIR = -I$PCREINC" >>Makefile + fi + if test "$PCRELIB" != ""; then + echo "PCRELIBS = -L$PCRELIB -lpcre" >>Makefile + echo "RPATHVAL += ${PCRELIB}" >>Makefile + else + echo "PCRELIBS = -lpcre" >>Makefile + fi +fi +echo "" >>Makefile +echo "# ZLIB settings" >>Makefile +if test "$ZLIBOK" = "YES" +then + if test "$ZLIBINC" != ""; then + echo "ZLIBINCDIR = -I$ZLIBINC" >>Makefile + fi + if test "$ZLIBLIB" != ""; then + echo "ZLIBLIBS = -L$ZLIBLIB -lz" >>Makefile + echo "RPATHVAL += ${ZLIBLIB}" >>Makefile + else + echo "ZLIBLIBS = -lz" >>Makefile + fi +fi +echo "" >>Makefile +echo "# OpenSSL settings" >>Makefile +if test "$ENABLESSL" = "y" +then + echo "SSLFLAGS = $SSLFLAGS" >>Makefile + if test "$SSLINC" != ""; then + echo "SSLINCDIR = -I$SSLINC" >>Makefile + fi + if test "$OSSLLIB" != ""; then + echo "SSLLIBS = -L$OSSLLIB -lssl -lcrypto" >>Makefile + echo "RPATHVAL += ${OSSLLIB}" >>Makefile + else + echo "SSLLIBS = -lssl -lcrypto" >>Makefile + fi +fi +echo "#" >>Makefile + + + echo "" >>Makefile if test -r build/Makefile.`uname -s` then @@ -213,14 +339,6 @@ echo "INSTALLSTATICWWWDIR = $INSTALLSTATICWWWDIR" >>Makefile fi echo "" >>Makefile -if test "$CONFTYPE" = "client" -then - echo "# PCRE settings" >>Makefile - echo "PCREINCDIR = -I$PCREINC" >>Makefile - echo "PCRELIBS = -L$PCRELIB -lpcre" >>Makefile - echo "RPATHVAL += ${PCRELIB}" >>Makefile -fi -echo "#" >>Makefile echo "# Add local CFLAGS etc. settings here" >>Makefile echo "" >>Makefile echo "include build/Makefile.rules" >> Makefile