File tree Expand file tree Collapse file tree 4 files changed +22
-7
lines changed Expand file tree Collapse file tree 4 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,11 @@ if test "$bsd_makefile" = "yes"; then
52
52
real_srcdir=$top_srcdir /$dir
53
53
real_builddir=$top_builddir /$dir
54
54
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
56
60
top_srcdir = $top_srcdir
57
61
top_builddir = $top_builddir
58
62
srcdir = $real_srcdir
Original file line number Diff line number Diff line change 18
18
19
19
TARGETS = $(LTLIBRARY_NAME )
20
20
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"
23
23
Original file line number Diff line number Diff line change 18
18
19
19
all : all-recursive
20
20
21
- include $(builddir ) /modules.mk
21
+ . include " $(builddir)/modules.mk"
22
22
23
23
TARGETS = $(static )
24
24
SHARED_TARGETS = $(shared )
25
25
INSTALL_TARGETS = install-modules-$(INSTALL_DSO )
26
26
27
- include $(top_builddir ) /build/rules.mk
27
+ . include " $(top_builddir)/build/rules.mk"
28
28
29
29
install-modules-yes : $(SHARED_TARGETS )
30
30
@if test -n " $( shared) " ; then \
Original file line number Diff line number Diff line change @@ -909,24 +909,35 @@ if test "x$perlbin" = "x"; then
909
909
fi
910
910
AC_SUBST(perlbin)
911
911
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.
913
913
914
914
BSD_MAKEFILE=no
915
915
ap_make_include=include
916
+ ap_make_ifdef=ifdef
917
+ ap_make_else=else
918
+ ap_make_endif=endif
916
919
ap_make_delimiter=' '
917
920
case $host in
918
- *bsdi *)
921
+ *bsd *)
919
922
# Check whether they've installed GNU make
920
923
if make --version > /dev/null 2>&1; then
921
924
true
922
925
else
923
926
BSD_MAKEFILE=yes
924
927
ap_make_include=.include
928
+ ap_make_ifdef=.ifdef
929
+ ap_make_else=.else
930
+ ap_make_endif=.endif
925
931
ap_make_delimiter='"'
926
932
fi
927
933
;;
928
934
esac
935
+ AC_MSG_NOTICE([using BSD Makefile syntax... $BSD_MAKEFILE])
936
+
929
937
AC_SUBST(ap_make_include)
938
+ AC_SUBST(ap_make_ifdef)
939
+ AC_SUBST(ap_make_else)
940
+ AC_SUBST(ap_make_endif)
930
941
AC_SUBST(ap_make_delimiter)
931
942
932
943
dnl Ensure that docs/conf is created.
You can’t perform that action at this time.
0 commit comments