diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-08 02:41:38 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-08 02:41:38 +0000 |
commit | e6f5903baaeae76aa607147bbcfcdef3a7a33fbf (patch) | |
tree | 4ac07fb1a692ad666e2aa98a1cc445727c9b0535 | |
parent | 996fecc2f055e407ed3c91cb4ccd4bc14beda06b (diff) |
Merged revisions 262048 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r262048 | tilghman | 2010-05-07 21:40:01 -0500 (Fri, 07 May 2010) | 2 lines
Use CPPFLAGS to pass PTHREAD_CFLAGS for vpb only
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@262050 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 3 insertions, 7 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Revision: 259850 . +# From configure.ac Revision: 261915 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for asterisk 1.6. # @@ -37323,7 +37323,6 @@ if test "${USE_VPB}" != "no"; then { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; } saved_libs="${LIBS}" - saved_cflags="${CFLAGS}" saved_cppflags="${CPPFLAGS}" if test "x${VPB_DIR}" != "x"; then if test -d ${VPB_DIR}/lib; then @@ -37335,7 +37334,7 @@ echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; } CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include" fi LIBS="${PTHREAD_LIBS} ${LIBS} -lvpb" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -37388,7 +37387,6 @@ fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext - CFLAGS="${saved_cflags}" LIBS="${saved_libs}" CPPFLAGS="${saved_cppflags}" if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then diff --git a/configure.ac b/configure.ac index 7da3577ba..036f01dad 100644 --- a/configure.ac +++ b/configure.ac @@ -1580,7 +1580,6 @@ AC_LANG_PUSH(C++) 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 @@ -1592,7 +1591,7 @@ if test "${USE_VPB}" != "no"; then 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( @@ -1606,7 +1605,6 @@ if test "${USE_VPB}" != "no"; then 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 |