mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-23 07:20:10 -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:
parent
ca56e3b185
commit
6d7e9bfe5b
@ -7,10 +7,12 @@ AC_DEFUN([AM_ICONV],
|
|||||||
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
|
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
|
||||||
dnl those with the standalone portable GNU libiconv installed).
|
dnl those with the standalone portable GNU libiconv installed).
|
||||||
|
|
||||||
|
EL_SAVE_FLAGS
|
||||||
|
|
||||||
AC_ARG_WITH([libiconv],
|
AC_ARG_WITH([libiconv],
|
||||||
[ --with-libiconv=DIR search for libiconv in DIR/include and DIR/lib], [
|
[ --with-libiconv=DIR search for libiconv in DIR/include and DIR/lib], [
|
||||||
for dir in `echo "$withval" | tr : ' '`; do
|
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
|
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
|
||||||
done
|
done
|
||||||
])
|
])
|
||||||
@ -64,5 +66,7 @@ size_t iconv();
|
|||||||
LIBICONV=
|
LIBICONV=
|
||||||
if test "$am_cv_lib_iconv" = yes; then
|
if test "$am_cv_lib_iconv" = yes; then
|
||||||
LIBICONV="-liconv"
|
LIBICONV="-liconv"
|
||||||
|
else
|
||||||
|
EL_RESTORE_FLAGS
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user