]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 262048 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Sat, 8 May 2010 02:41:48 +0000 (02:41 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sat, 8 May 2010 02:41:48 +0000 (02:41 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@262051 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configure
configure.ac

index 5bb80d958c80bf0366d3cbbf3180f6ff894c1cee..9d606693230944a8380fb5c5b2601d22776166c6 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 259851 .
+# From configure.ac Revision: 261916 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
 #
@@ -39696,7 +39696,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
@@ -39708,7 +39707,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.  */
@@ -39761,7 +39760,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
index 583b255bb586bdd520845e3add4d7b76601045e4..4b8051acb97c2148bba4845d93c64159467bebed 100644 (file)
@@ -1655,7 +1655,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
@@ -1667,7 +1666,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(
@@ -1681,7 +1680,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