From: Vincent Lefevre Date: Fri, 26 May 2006 16:51:48 +0000 (+0000) Subject: When flags are added to CPPFLAGS and LDFLAGS in configure.in, this X-Git-Tag: mutt-1-5-12-rel~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1634b4c0391b984cfa413e92ada48890c765ad7;p=mutt When flags are added to CPPFLAGS and LDFLAGS in configure.in, this should be done with a consistent order. Otherwise, when several versions of a library are installed, this could lead to a mismatch between the header and the library. --- diff --git a/configure.in b/configure.in index b49bdb48..e994b8cf 100644 --- a/configure.in +++ b/configure.in @@ -250,7 +250,7 @@ main () mutt_cv_curses=$withval fi if test x$mutt_cv_curses != x/usr; then - LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS" + LDFLAGS="$LDFLAGS -L${mutt_cv_curses}/lib" CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include" fi]) @@ -815,7 +815,7 @@ AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache], [Enable header caching]) if test -d "$d/lib/$v"; then BDB_LIB_DIR="$d/lib/$v" for l in `echo $BDB_VERSIONS`; do - CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS" + CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR" LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l" AC_TRY_LINK([ #include @@ -851,7 +851,7 @@ AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache], [Enable header caching]) LIBS="$OLDLIBS -lgdbm"; AC_DEFINE(HAVE_GDBM, 1, [GDBM Support]) elif test x$ac_cv_dbcreate = xyes; then - CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS" + CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR" LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB" AC_DEFINE(HAVE_DB4, 1, [Sleepycat DB4 Support]) else