mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-19 22:18:19 +00:00
Add curl auto PKG_CONFIG_PATH handling for OS X
FS-353
This commit is contained in:
parent
1470622292
commit
3b1278a37a
10
configure.ac
10
configure.ac
@ -560,6 +560,15 @@ ESL_LDFLAGS=
|
|||||||
PLATFORM_CORE_LDFLAGS=
|
PLATFORM_CORE_LDFLAGS=
|
||||||
PLATFORM_CORE_LIBS=
|
PLATFORM_CORE_LIBS=
|
||||||
|
|
||||||
|
path_remove () {
|
||||||
|
echo "$1" | sed 's/:/\n/g' | grep -Fxv "$2" | tr '\n' ':' | sed 's/:$/\n/'
|
||||||
|
}
|
||||||
|
path_push_unique () {
|
||||||
|
x="$(eval echo \$$1)"
|
||||||
|
x="$(path_remove "$x" "$2")"
|
||||||
|
eval $1="$2:$x"
|
||||||
|
}
|
||||||
|
|
||||||
# tweak platform specific flags
|
# tweak platform specific flags
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*darwin13.*|*darwin12.*|*darwin11.*)
|
*darwin13.*|*darwin12.*|*darwin11.*)
|
||||||
@ -593,6 +602,7 @@ case "$host" in
|
|||||||
APR_ADDTO([PLATFORM_CORE_LDFLAGS], [--framework CoreFoundation])
|
APR_ADDTO([PLATFORM_CORE_LDFLAGS], [--framework CoreFoundation])
|
||||||
fi
|
fi
|
||||||
APR_ADDTO([PLATFORM_CORE_LIBS], [-ldl])
|
APR_ADDTO([PLATFORM_CORE_LIBS], [-ldl])
|
||||||
|
path_push_unique PKG_CONFIG_PATH /usr/local/opt/curl/lib/pkgconfig
|
||||||
;;
|
;;
|
||||||
*-solaris2*)
|
*-solaris2*)
|
||||||
if test "${enable_64}" = "yes"; then
|
if test "${enable_64}" = "yes"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user