Commit 676ee617 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

[m4] split header check from adding RTE flags to build-flags

parent c8d0d9c8
...@@ -501,6 +501,7 @@ GEM_RTE_CFLAGS="-DPD" ...@@ -501,6 +501,7 @@ GEM_RTE_CFLAGS="-DPD"
GEM_RTE_LIBS="" GEM_RTE_LIBS=""
GEM_RTE="Pure Data" GEM_RTE="Pure Data"
have_pd=no
AC_ARG_WITH([pd], AC_ARG_WITH([pd],
AS_HELP_STRING([--with-pd=<path/to/pd>],[where to find pd-binary (./bin/pd.exe) and pd-sources])) AS_HELP_STRING([--with-pd=<path/to/pd>],[where to find pd-binary (./bin/pd.exe) and pd-sources]))
...@@ -541,7 +542,10 @@ AS_IF([ test -d "$with_pd" ],[ ...@@ -541,7 +542,10 @@ AS_IF([ test -d "$with_pd" ],[
AC_MSG_RESULT([${with_pd}]) AC_MSG_RESULT([${with_pd}])
GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}" GEM_RTE_LIBS="${GEM_RTE_LIBS}${GEM_RTE_LIBS:+ }-L${with_pd}"
]) ])
have_pd=yes
])
AS_IF([ test "x${have_pd}" = "xyes" ],[
CPPFLAGS="$CPPFLAGS ${GEM_RTE_CFLAGS}" CPPFLAGS="$CPPFLAGS ${GEM_RTE_CFLAGS}"
CFLAGS="$CFLAGS ${GEM_RTE_CFLAGS}" CFLAGS="$CFLAGS ${GEM_RTE_CFLAGS}"
CXXFLAGS="$CXXFLAGS ${GEM_RTE_CFLAGS}" CXXFLAGS="$CXXFLAGS ${GEM_RTE_CFLAGS}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment