aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2019-02-26 22:07:24 +0100
committerGitHub <noreply@github.com>2019-02-26 22:07:24 +0100
commitf78661f84d8c0d7912b31a1b19c2a0cd4f85d061 (patch)
tree360bc573d8ec5af701eae8cc1f65cd76fe95ad7a /data
parent2db1400b34c219764b0000d0ad7b0f589f053432 (diff)
parentc9b27a248d3ed9964b6ac0847a83eba383b62537 (diff)
downloadPROJ-f78661f84d8c0d7912b31a1b19c2a0cd4f85d061.tar.gz
PROJ-f78661f84d8c0d7912b31a1b19c2a0cd4f85d061.zip
Merge pull request #1293 from rouault/fix_netbsd8_compilation
mutex.cpp: remove _XOPEN_SOURCE definition that causes compilation problem on netBSD 8 and is useless on Linux
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 8234c034..7594fd8d 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -56,6 +56,7 @@ install-data-local:
fi; \
done
+# head -c1 not handled on Solaris
proj.db: $(DATAPATH)/sql/*.sql
@echo "Make proj.db"
$(RM) proj.db
@@ -69,12 +70,15 @@ proj.db: $(DATAPATH)/sql/*.sql
$(RM) proj.db; \
exit 1; \
fi; \
+ echo "" | head -c1; \
+ if [ $$? -eq 0 ] ; then \
+ echo "Running foreign_key_check"; \
if [[ $$(echo "pragma foreign_key_check;" | sqlite3 proj.db | head -c1 | wc -c) -ne 0 ]]; then \
echo "Foreign key check failed"; \
$(RM) proj.db; \
exit 1; \
- fi
-
+ fi \
+ fi
# For out-of-tree builds, link all file of the source data dir to the generated data
check-local: