summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-08-30 12:26:01 +0200
committerClément Bœsch <u@pkh.me>2017-09-02 16:14:15 +0200
commitfe9c85e4e2650dc9537b54b1eabb4f9be7b628ed (patch)
treed6b5f1336dd95d084e0fa6c6e1c413c0ff3b4e09 /configure
parente3c1219c7c7457f4b157cfb299e4387c1ebdabe7 (diff)
build: make sure a disabled autodetect still pick the libc's iconv
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure b/configure
index f29fe1145c..7c2a196585 100755
--- a/configure
+++ b/configure
@@ -3592,6 +3592,11 @@ for e in $env; do
done
if disabled autodetect; then
+
+ # Unless iconv is explicitely disabled by the user, we still want to probe
+ # for the iconv from the libc.
+ disabled iconv || enable libc_iconv
+
disable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST
disable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST
fi
@@ -6193,7 +6198,11 @@ int main(void) { return 0; }
EOF
# Funny iconv installations are not unusual, so check it after all flags have been set
-enabled iconv && check_func_headers iconv.h iconv || check_lib iconv iconv.h iconv -liconv
+if enabled libc_iconv; then
+ check_func_headers iconv.h iconv
+elif enabled iconv; then
+ check_func_headers iconv.h iconv || check_lib iconv iconv.h iconv -liconv
+fi
enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"