From: Jim Jagielski Date: Fri, 20 Dec 2013 18:48:14 +0000 (+0000) Subject: For *bsd* systems, see if we are using BSD make and, X-Git-Tag: 2.5.0-alpha~4762 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6e91afa0c1153ace878aa45c82cdb06d12520ff;p=apache For *bsd* systems, see if we are using BSD make and, if so, then use that format for include/ifdef/else/endif git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1552779 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/fastgen.sh b/build/fastgen.sh index 87bce15e9f..7b08957727 100755 --- a/build/fastgen.sh +++ b/build/fastgen.sh @@ -52,7 +52,11 @@ if test "$bsd_makefile" = "yes"; then real_srcdir=$top_srcdir/$dir real_builddir=$top_builddir/$dir fi - cat - $top_srcdir/$makefile.in <$makefile + cat - $top_srcdir/$makefile.in <$makefile top_srcdir = $top_srcdir top_builddir = $top_builddir srcdir = $real_srcdir diff --git a/build/ltlib.mk b/build/ltlib.mk index 3b87dd366c..84743a8687 100644 --- a/build/ltlib.mk +++ b/build/ltlib.mk @@ -18,6 +18,6 @@ TARGETS = $(LTLIBRARY_NAME) -include $(top_builddir)/build/rules.mk -include $(top_srcdir)/build/library.mk +.include "$(top_builddir)/build/rules.mk" +.include "$(top_srcdir)/build/library.mk" diff --git a/build/special.mk b/build/special.mk index 53b880dd56..df47492ecd 100644 --- a/build/special.mk +++ b/build/special.mk @@ -18,13 +18,13 @@ all: all-recursive -include $(builddir)/modules.mk +.include "$(builddir)/modules.mk" TARGETS = $(static) SHARED_TARGETS = $(shared) INSTALL_TARGETS = install-modules-$(INSTALL_DSO) -include $(top_builddir)/build/rules.mk +.include "$(top_builddir)/build/rules.mk" install-modules-yes: $(SHARED_TARGETS) @if test -n "$(shared)"; then \ diff --git a/configure.in b/configure.in index 5f469a31e5..074cfd14b4 100644 --- a/configure.in +++ b/configure.in @@ -909,24 +909,35 @@ if test "x$perlbin" = "x"; then fi AC_SUBST(perlbin) -dnl If we are running on BSD/OS, we need to use the BSD .include syntax. +dnl If we are running on a BSD variant, see if we need to use the BSD .include syntax. BSD_MAKEFILE=no ap_make_include=include +ap_make_ifdef=ifdef +ap_make_else=else +ap_make_endif=endif ap_make_delimiter=' ' case $host in -*bsdi*) +*bsd*) # Check whether they've installed GNU make if make --version > /dev/null 2>&1; then true else BSD_MAKEFILE=yes ap_make_include=.include + ap_make_ifdef=.ifdef + ap_make_else=.else + ap_make_endif=.endif ap_make_delimiter='"' fi ;; esac +AC_MSG_NOTICE([using BSD Makefile syntax... $BSD_MAKEFILE]) + AC_SUBST(ap_make_include) +AC_SUBST(ap_make_ifdef) +AC_SUBST(ap_make_else) +AC_SUBST(ap_make_endif) AC_SUBST(ap_make_delimiter) dnl Ensure that docs/conf is created.