Skip to content

Commit 4ea819b

Browse files
author
jim
committed
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: http://svn.apache.org/repos/asf/httpd/httpd/trunk@1552779 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0cb511b commit 4ea819b

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

build/fastgen.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ if test "$bsd_makefile" = "yes"; then
5252
real_srcdir=$top_srcdir/$dir
5353
real_builddir=$top_builddir/$dir
5454
fi
55-
cat - $top_srcdir/$makefile.in <<EOF |sed 's/^include \(.*\)/.include "\1"/' >$makefile
55+
cat - $top_srcdir/$makefile.in <<EOF | \
56+
sed 's/^include \(.*\)/.include "\1"/' | \
57+
sed 's/^ifdef \(.*\)/.ifdef \1/' | \
58+
sed 's/^else\(.*\)/.else\1/' | \
59+
sed 's/^endif\(.*\)/.endif\1/' >$makefile
5660
top_srcdir = $top_srcdir
5761
top_builddir = $top_builddir
5862
srcdir = $real_srcdir

build/ltlib.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818

1919
TARGETS = $(LTLIBRARY_NAME)
2020

21-
include $(top_builddir)/build/rules.mk
22-
include $(top_srcdir)/build/library.mk
21+
.include "$(top_builddir)/build/rules.mk"
22+
.include "$(top_srcdir)/build/library.mk"
2323

build/special.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
all: all-recursive
2020

21-
include $(builddir)/modules.mk
21+
.include "$(builddir)/modules.mk"
2222

2323
TARGETS = $(static)
2424
SHARED_TARGETS = $(shared)
2525
INSTALL_TARGETS = install-modules-$(INSTALL_DSO)
2626

27-
include $(top_builddir)/build/rules.mk
27+
.include "$(top_builddir)/build/rules.mk"
2828

2929
install-modules-yes: $(SHARED_TARGETS)
3030
@if test -n "$(shared)"; then \

configure.in

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,24 +909,35 @@ if test "x$perlbin" = "x"; then
909909
fi
910910
AC_SUBST(perlbin)
911911

912-
dnl If we are running on BSD/OS, we need to use the BSD .include syntax.
912+
dnl If we are running on a BSD variant, see if we need to use the BSD .include syntax.
913913

914914
BSD_MAKEFILE=no
915915
ap_make_include=include
916+
ap_make_ifdef=ifdef
917+
ap_make_else=else
918+
ap_make_endif=endif
916919
ap_make_delimiter=' '
917920
case $host in
918-
*bsdi*)
921+
*bsd*)
919922
# Check whether they've installed GNU make
920923
if make --version > /dev/null 2>&1; then
921924
true
922925
else
923926
BSD_MAKEFILE=yes
924927
ap_make_include=.include
928+
ap_make_ifdef=.ifdef
929+
ap_make_else=.else
930+
ap_make_endif=.endif
925931
ap_make_delimiter='"'
926932
fi
927933
;;
928934
esac
935+
AC_MSG_NOTICE([using BSD Makefile syntax... $BSD_MAKEFILE])
936+
929937
AC_SUBST(ap_make_include)
938+
AC_SUBST(ap_make_ifdef)
939+
AC_SUBST(ap_make_else)
940+
AC_SUBST(ap_make_endif)
930941
AC_SUBST(ap_make_delimiter)
931942

932943
dnl Ensure that docs/conf is created.

0 commit comments

Comments
 (0)