From cde86b16b8138dc4115f74abf9c90f18bd195746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 24 Sep 2009 13:58:32 +0000 Subject: adding the pd-paths to LDFLAGS and INCLUDES is now done at the proper place (independent of NT hackz) svn path=/trunk/externals/zexy/; revision=12443 --- src/configure.ac | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/configure.ac b/src/configure.ac index 5814f1f..cba0caa 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -59,20 +59,24 @@ fi if test $(uname | sed -e 's/^MINGW.*/NT/') = NT ; then LD=${CC} - LDFLAGS="-L${with_pd}/src -L${with_pd}/bin" EXT=dll fi +if test "x$with_pd" != "x"; then + if test -d "${with_pd}"; then + PDPATH=${with_pd} + fi + if test -d "${PDPATH}/src"; then + AC_MSG_RESULT([adding ${PDPATH}/src to INCLUDES]) + INCLUDES="-I${PDPATH}/src ${INCLUDES}" -if test "x$with_pd" != "x"; then - if test -d "${with_pd}/src"; then - AC_MSG_RESULT([adding ${with_pd}/src to INCLUDES]) - INCLUDES="-I${with_pd}/src ${INCLUDES}" + AC_MSG_RESULT([adding ${PDPATH}/src to LDFLAGS]) + LDFLAGS="-L${PDPATH}/src ${LDFLAGS}" fi - if test -d "${with_pd}/bin"; then - AC_MSG_RESULT([adding ${with_pd}/bin to LDFLAGS]) - LDFLAGS="-L${with_pd}/bin ${LDFLAGS}" + if test -d "${PDPATH}/bin"; then + AC_MSG_RESULT([adding ${PDPATH}/bin to LDFLAGS]) + LDFLAGS="-L${PDPATH}/bin ${LDFLAGS}" fi fi -- cgit v1.2.1