mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-05-28 21:34:23 +00:00
Add check for the {n,}curses library.
Add check for readlink, needed to check for libraries. -------- diffstat follows -------- /trunk/configure | 15 14 1 0 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
This commit is contained in:
parent
66be9f5713
commit
2bd5bf19ae
15
configure
vendored
15
configure
vendored
@ -152,6 +152,16 @@ has_or_abort() {
|
|||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
::?*)
|
::?*)
|
||||||
|
for item in ${lib}; do
|
||||||
|
printf "Checking for '${item}'... "
|
||||||
|
where="$( gcc -print-file-name="${item}" )"
|
||||||
|
if [ "${where}" != "${item}" ]; then
|
||||||
|
where="$( readlink -e "${where}" )"
|
||||||
|
status=yes
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
printf "no\n"
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ -z "${status}" ]; then
|
if [ -z "${status}" ]; then
|
||||||
@ -335,10 +345,13 @@ has_or_abort prog=tar
|
|||||||
has_or_abort prog=gzip
|
has_or_abort prog=gzip
|
||||||
has_or_abort prog=bzip2
|
has_or_abort prog=bzip2
|
||||||
has_or_abort prog=lzma
|
has_or_abort prog=lzma
|
||||||
|
has_or_abort prog=readlink
|
||||||
|
|
||||||
has_or_abort inc="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h" \
|
has_or_abort inc="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h" \
|
||||||
err="'ncurses' headers files were not found"
|
err="'ncurses' headers files were not found"
|
||||||
#has_or_abort lib="ncursesw ncurses curses" err="'ncurses' library was not found"
|
|
||||||
|
has_or_abort lib="$( echo lib{ncursesw,ncurses,curses}.{so,a,dylib} )" \
|
||||||
|
err="'ncurses' library was not found"
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
# Compute the version string
|
# Compute the version string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user