[asterisk-commits] tilghman: trunk r262048 - in /trunk: configure configure.ac

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 7 21:40:05 CDT 2010


Author: tilghman
Date: Fri May  7 21:40:01 2010
New Revision: 262048

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=262048
Log:
Use CPPFLAGS to pass PTHREAD_CFLAGS for vpb only

Modified:
    trunk/configure
    trunk/configure.ac

Modified: trunk/configure.ac
URL: http://svnview.digium.com/svn/asterisk/trunk/configure.ac?view=diff&rev=262048&r1=262047&r2=262048
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri May  7 21:40:01 2010
@@ -1730,7 +1730,6 @@
 if test "${USE_VPB}" != "no"; then
    AC_MSG_CHECKING(for vpb_open in -lvpb)
    saved_libs="${LIBS}"
-   saved_cflags="${CFLAGS}"
    saved_cppflags="${CPPFLAGS}"
    if test "x${VPB_DIR}" != "x"; then
       if test -d ${VPB_DIR}/lib; then
@@ -1742,7 +1741,7 @@
       CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
    fi
    LIBS="${PTHREAD_LIBS} ${LIBS} -lvpb"
-   CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+   CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}"
    AC_LINK_IFELSE(
 	[
 	AC_LANG_PROGRAM(
@@ -1756,7 +1755,6 @@
 		ac_cv_lib_vpb_vpb_open="no" 
 	]
 	)
-   CFLAGS="${saved_cflags}"
    LIBS="${saved_libs}"
    CPPFLAGS="${saved_cppflags}"
    if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then




More information about the asterisk-commits mailing list