mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Improve CPPFLAGS usage
CPPFLAGS was dropped[1] back on 2004-04-24. Then a workaround was introduced by commit6d7e9bfe5b
to fix compilation on FreeBSD that used CPPFLAGS to store iconv related flags. The use of CPPFLAGS with respect to the COMPILE "macro" reappeared in40e257bedd
on 2006-08-05. This commit makes configure.in print CPPFLAGS and LDFLAGS. Before, CPPFLAGS and CFLAGS was mixed together in the feature summary. It also restores the use of CPPFLAGS storing iconv related flags but keeps the use of the SAVE/RESTORE_FLAGS in the iconv macro. Reported by Daniel E. Macks <dmacks@netspace.org> on 2005-11-22 in a mail to elinks-users with the ID: <slrnem7tjs.lvk.dmacks@happy.netspace.org>. [1] http://pasky.or.cz/gitweb.cgi?p=elinks-history.git;a=commit;h=ebad0e71572b41dac5376e148fe4b1b5cb9ccc33
This commit is contained in:
parent
c9701c80af
commit
a370e7ccac
@ -12,7 +12,7 @@ AC_DEFUN([AM_ICONV],
|
||||
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 CFLAGS="$CFLAGS -I$dir/include"; fi
|
||||
if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
||||
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
|
||||
done
|
||||
])
|
||||
|
11
configure.in
11
configure.in
@ -1407,13 +1407,10 @@ if test "x$ac_cv_prog_gcc" = "xyes"; then
|
||||
esac
|
||||
fi
|
||||
|
||||
# CFLAGS doesn't contain all compile flags. Some will be added only when
|
||||
# needed in the respective source directory. To get all compile flags
|
||||
# easily just add CPPFLAGS.
|
||||
ALL_CFLAGS="$CFLAGS $CPPFLAGS"
|
||||
|
||||
EL_LOG_CONFIG(ALL_CFLAGS, [Compiler options (CFLAGS)], [])
|
||||
EL_LOG_CONFIG(LIBS, [Linker options (LIBS)], [])
|
||||
EL_LOG_CONFIG(CFLAGS, [Compiler flags (CFLAGS)], [])
|
||||
EL_LOG_CONFIG(CPPFLAGS, [Preprocessor flags (CPPFLAGS)], [])
|
||||
EL_LOG_CONFIG(LDFLAGS, [Linker flags (LDFLAGS)], [])
|
||||
EL_LOG_CONFIG(LIBS, [Library flags (LIBS)], [])
|
||||
|
||||
dnl ===================================================================
|
||||
dnl Colored make output
|
||||
|
Loading…
Reference in New Issue
Block a user