summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-11 19:03:39 -0500
committerJune McEnroe <june@causal.agency>2020-02-11 19:03:39 -0500
commit90c59ecba4c1c74d619eb42f9b4f2c4d2acf198d (patch)
tree63a82b7577ac335dd6202383354ca7b9adb33ac2 /configure
parentAdd note about setting PKG_CONFIG_PATH (diff)
downloadcatgirl-90c59ecba4c1c74d619eb42f9b4f2c4d2acf198d.tar.gz
catgirl-90c59ecba4c1c74d619eb42f9b4f2c4d2acf198d.zip
Make sure -D_GNU_SOURCE ends up in CFLAGS on Linux
Diffstat (limited to '')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index d230f4c..94545c4 100755
--- a/configure
+++ b/configure
@@ -24,3 +24,11 @@ CFLAGS += $(pkg-config --cflags $libs)
 LDFLAGS += $(pkg-config --libs-only-L $libs)
 LDLIBS = $(pkg-config --libs-only-l $libs)
 EOF
+
+case "$(uname)" in
+	(Linux)
+		if ! grep -q -e '-D_GNU_SOURCE' config.mk; then
+			echo 'CFLAGS += -D_GNU_SOURCE' >> config.mk
+		fi
+		;;
+esac
g from hilexJune McEnroe 2021-01-12Add htagml -iJune McEnroe 2021-01-12Render tag index in HTMLJune McEnroe 2021-01-12Add htagml -xJune McEnroe 2021-01-12Prevent matching the same tag twiceJune McEnroe 2021-01-12Process htagml file line by lineJune McEnroe 2021-01-12Split fields by tab onlyJune McEnroe 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe