Skip to content

Commit 5b9044d

Browse files
authored
Remove PHP 4 PDO headers installation (#13367)
This was once used before the PHP_INSTALL_HEADERS macro became available in PHP 5.1.
1 parent 801787d commit 5b9044d

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

ext/pdo/Makefile.frag

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,7 @@
1-
phpincludedir=$(prefix)/include/php
2-
3-
PDO_HEADER_FILES= \
4-
php_pdo.h \
5-
php_pdo_driver.h \
6-
php_pdo_error.h
7-
8-
91
$(srcdir)/pdo_sql_parser.c: $(srcdir)/pdo_sql_parser.re
102
@(cd $(top_srcdir); \
113
if test -f ./pdo_sql_parser.re; then \
124
$(RE2C) $(RE2C_FLAGS) --no-generation-date -o pdo_sql_parser.c pdo_sql_parser.re; \
135
else \
146
$(RE2C) $(RE2C_FLAGS) --no-generation-date -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re; \
157
fi)
16-
17-
install-pdo-headers:
18-
@echo "Installing PDO headers: $(INSTALL_ROOT)$(phpincludedir)/ext/pdo/"
19-
@$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/pdo
20-
@for f in $(PDO_HEADER_FILES); do \
21-
if test -f "$(top_srcdir)/$$f"; then \
22-
$(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
23-
elif test -f "$(top_builddir)/$$f"; then \
24-
$(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
25-
elif test -f "$(top_srcdir)/ext/pdo/$$f"; then \
26-
$(INSTALL_DATA) $(top_srcdir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
27-
elif test -f "$(top_builddir)/ext/pdo/$$f"; then \
28-
$(INSTALL_DATA) $(top_builddir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
29-
else \
30-
echo "hmmm"; \
31-
fi \
32-
done;
33-
34-
# mini hack
35-
install: $(all_targets) $(install_targets) install-pdo-headers

0 commit comments

Comments
 (0)