Subject: bash2 and libintl check problem
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 11/01/2002 13:58:17
pkgsrc/shells/bash2 won't build under Debian Linux.

configure:1325: gcc -o conftest
-I/home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/include -O2
-Wl,-R/usr/lib conftest.c
-Wl,-R/usr/lib -lintl 1>&5
/usr/bin/ld: cannot find -lintl

# ls -l /home/jeremy/netbsd/usr/pkgsrc/shells/bash2/work/.gettext/lib
total 0
lrwxrwxrwx    1 root     jeremy         18 Nov  1 13:15 libintl.* ->

# ls -l /usr/lib/libintl.*
ls: /usr/lib/libintl.*: No such file or directory

But I also have:

The bash Makefile does:

.if exists(/usr/include/libintl.h)
GETTEXT_PREFIX=         /usr

Maybe that should check for libraries also.

I worked-around this by doing:
.if exists(/usr/include/libintl.h) && (exists(/usr/lib/ || exists(/usr/lib/libintl.a))
GETTEXT_PREFIX=         /usr

Should I send-pr that? Any comments?

   Jeremy C. Reed