- if test -z "$cf_search_path"
- then
- # If you don't like using the default architecture, you have to specify
- # the intended library directory and corresponding compiler/linker
- # options.
- #
- # This case allows for Debian's 2014-flavor of multiarch, along with
- # the most common variations before that point. Some other variants
- # spell the directory differently, e.g., "pkg-config", and put it in
- # unusual places.
- #
- # pkg-config has always been poorly standardized, which is ironic...
- case x`(arch) 2>/dev/null` in
- (*64)
- cf_test_path="\
- $cf_path/lib/*64-linux-gnu \
- $cf_path/share \
- $cf_path/lib64 \
- $cf_path/lib32 \
- $cf_path/lib"
- ;;
- (*)
- cf_test_path="\
- $cf_path/lib/*-linux-gnu \
- $cf_path/share \
- $cf_path/lib32 \
- $cf_path/lib \
- $cf_path/libdata"
- ;;
- esac
- for cf_config in $cf_test_path
- do
- test -d "$cf_config/pkgconfig" && cf_search_path="$cf_search_path $cf_config/pkgconfig"
- done
- fi
-