2018-11-09 11:08:19 +01:00
|
|
|
From 0551f2e5eb4143be0aacc0185cdc4afc9ca80204 Mon Sep 17 00:00:00 2001
|
2016-05-09 13:29:01 +02:00
|
|
|
From: Martin Bark <martin@barkynet.com>
|
|
|
|
Date: Fri, 6 May 2016 14:48:49 +0100
|
2016-05-16 10:47:51 +02:00
|
|
|
Subject: [PATCH] auto/lib/libgd/conf: use pkg-config
|
2016-05-09 13:29:01 +02:00
|
|
|
|
|
|
|
Change to using pkg-config to find the path to libgd and its
|
|
|
|
dependencies.
|
|
|
|
|
|
|
|
Signed-off-by: Martin Bark <martin@barkynet.com>
|
2018-11-09 11:08:19 +01:00
|
|
|
[Peter: updated for 1.15.6]
|
|
|
|
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
2016-05-09 13:29:01 +02:00
|
|
|
---
|
|
|
|
auto/lib/libgd/conf | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/auto/lib/libgd/conf b/auto/lib/libgd/conf
|
2018-11-09 11:08:19 +01:00
|
|
|
index 67863976..1a4379a5 100644
|
2016-05-09 13:29:01 +02:00
|
|
|
--- a/auto/lib/libgd/conf
|
|
|
|
+++ b/auto/lib/libgd/conf
|
|
|
|
@@ -7,8 +7,8 @@
|
|
|
|
ngx_feature_name=
|
|
|
|
ngx_feature_run=no
|
|
|
|
ngx_feature_incs="#include <gd.h>"
|
|
|
|
- ngx_feature_path=
|
|
|
|
- ngx_feature_libs="-lgd"
|
|
|
|
+ ngx_feature_path="$(${GDLIB_CONFIG:=gdlib-config} --includedir)"
|
|
|
|
+ ngx_feature_libs="$(${GDLIB_CONFIG:=gdlib-config} --libs)"
|
2018-11-09 11:08:19 +01:00
|
|
|
ngx_feature_test="gdImagePtr img = gdImageCreateFromGifPtr(1, NULL);
|
|
|
|
(void) img"
|
2016-05-09 13:29:01 +02:00
|
|
|
. auto/feature
|
|
|
|
--
|
2018-11-09 11:08:19 +01:00
|
|
|
2.11.0
|
2016-05-09 13:29:01 +02:00
|
|
|
|