1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-20 15:44:32 -04:00

BUILD: Add iconv search path to CFLAGS instead of CPPFLAGS

CPPFLAGS are never used.  Fixes iconv inclusion on FreeBSD.
This commit is contained in:
Jonas Fonseca 2006-02-08 20:08:33 +01:00 committed by Jonas Fonseca
parent ca56e3b185
commit 6d7e9bfe5b

View File

@ -7,10 +7,12 @@ AC_DEFUN([AM_ICONV],
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
dnl those with the standalone portable GNU libiconv installed).
EL_SAVE_FLAGS
AC_ARG_WITH([libiconv],
[ --with-libiconv=DIR search for libiconv in DIR/include and DIR/lib], [
for dir in `echo "$withval" | tr : ' '`; do
if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
if test -d $dir/include; then CFLAGS="$CFLAGS -I$dir/include"; fi
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
done
])
@ -64,5 +66,7 @@ size_t iconv();
LIBICONV=
if test "$am_cv_lib_iconv" = yes; then
LIBICONV="-liconv"
else
EL_RESTORE_FLAGS
fi
])