[asterisk-commits] tilghman: branch 1.6.1 r262104 - in /branches/1.6.1: ./ autoconf/ include/ast...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat May 8 21:17:14 CDT 2010


Author: tilghman
Date: Sat May  8 21:17:10 2010
New Revision: 262104

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=262104
Log:
Merged revisions 262102 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r262102 | tilghman | 2010-05-08 21:14:04 -0500 (Sat, 08 May 2010) | 5 lines
  
  Cleanup a bit more by getting rid of useless version defines. Also make library detection use passed CFLAGS.
  
  (closes issue #17309)
   Reported by: stuarth
........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/autoconf/ast_c_compile_check.m4
    branches/1.6.1/autoconf/ast_c_define_check.m4
    branches/1.6.1/autoconf/ast_ext_lib.m4
    branches/1.6.1/configure
    branches/1.6.1/include/asterisk/autoconfig.h.in

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/autoconf/ast_c_compile_check.m4
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/autoconf/ast_c_compile_check.m4?view=diff&rev=262104&r1=262103&r2=262104
==============================================================================
--- branches/1.6.1/autoconf/ast_c_compile_check.m4 (original)
+++ branches/1.6.1/autoconf/ast_c_compile_check.m4 Sat May  8 21:17:10 2010
@@ -22,7 +22,7 @@
 	    [   AC_MSG_RESULT(yes)
 		PBX_$1=1
 		AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 headers.])
-		AC_DEFINE([HAVE_$1_VERSION], $4, [Define $1 headers version])
+		m4_ifval([$4], [AC_DEFINE([HAVE_$1_VERSION], $4, [Define $1 headers version])])
 	    ],
 	    [       AC_MSG_RESULT(no) ] 
 	)

Modified: branches/1.6.1/autoconf/ast_c_define_check.m4
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/autoconf/ast_c_define_check.m4?view=diff&rev=262104&r1=262103&r2=262104
==============================================================================
--- branches/1.6.1/autoconf/ast_c_define_check.m4 (original)
+++ branches/1.6.1/autoconf/ast_c_define_check.m4 Sat May  8 21:17:10 2010
@@ -23,7 +23,7 @@
 	    [   AC_MSG_RESULT(yes)
 		PBX_$1=1
 		AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 headers.])
-		AC_DEFINE([HAVE_$1_VERSION], $4, [Define $1 headers version])
+		m4_ifval([$4], [AC_DEFINE([HAVE_$1_VERSION], $4, [Define $1 headers version])])
 	    ],
 	    [   AC_MSG_RESULT(no) ] 
 	)

Modified: branches/1.6.1/autoconf/ast_ext_lib.m4
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/autoconf/ast_ext_lib.m4?view=diff&rev=262104&r1=262103&r2=262104
==============================================================================
--- branches/1.6.1/autoconf/ast_ext_lib.m4 (original)
+++ branches/1.6.1/autoconf/ast_ext_lib.m4 Sat May  8 21:17:10 2010
@@ -27,7 +27,6 @@
     ])
     PBX_$1=0
     AH_TEMPLATE(m4_bpatsubst([[HAVE_$1]], [(.*)]), [Define to 1 if you have the $2 library.])
-    AH_TEMPLATE(m4_bpatsubst([[HAVE_$1_VERSION]], [(.*)]), [Define to the version of the $2 library.])
     AC_SUBST([$1_LIB])
     AC_SUBST([$1_INCLUDE])
     AC_SUBST([$1_DIR])
@@ -78,7 +77,10 @@
    if test "x${pbxfuncname}" = "x" ; then   # empty lib, assume only headers
       AST_$1_FOUND=yes
    else
-      AC_CHECK_LIB([$2], [${pbxfuncname}], [AST_$1_FOUND=yes], [AST_$1_FOUND=no], ${pbxlibdir} $5)
+      ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
+      CFLAGS="${CFLAGS} $6"
+      AC_CHECK_LIB([$2], [${pbxfuncname}], [AST_$1_FOUND=yes], [AST_$1_FOUND=no], [${pbxlibdir} $5])
+      CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
    fi
 
    # now check for the header.
@@ -92,10 +94,10 @@
       if test "x$4" = "x" ; then	# no header, assume found
          $1_HEADER_FOUND="1"
       else				# check for the header
-         saved_cppflags="${CPPFLAGS}"
+         ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
          CPPFLAGS="${CPPFLAGS} ${$1_INCLUDE}"
          AC_CHECK_HEADER([$4], [$1_HEADER_FOUND=1], [$1_HEADER_FOUND=0])
-         CPPFLAGS="${saved_cppflags}"
+         CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
       fi
       if test "x${$1_HEADER_FOUND}" = "x0" ; then
          $1_LIB=""
@@ -107,9 +109,14 @@
          PBX_$1=1
          cat >>confdefs.h <<_ACEOF
 [@%:@define] HAVE_$1 1
+_ACEOF
+         m4_ifval([$7], [
+         cat >>confdefs.h <<_ACEOF
 [@%:@define] HAVE_$1_VERSION $7
 _ACEOF
+            ])
       fi
    fi
 fi
+m4_ifval([$7], [AH_TEMPLATE(m4_bpatsubst([[HAVE_$1_VERSION]], [(.*)]), [Define to the version of the $2 library.])])
 ])

Modified: branches/1.6.1/include/asterisk/autoconfig.h.in
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/include/asterisk/autoconfig.h.in?view=diff&rev=262104&r1=262103&r2=262104
==============================================================================
--- branches/1.6.1/include/asterisk/autoconfig.h.in (original)
+++ branches/1.6.1/include/asterisk/autoconfig.h.in Sat May  8 21:17:10 2010
@@ -41,9 +41,6 @@
 /* Define to 1 if you have the Advanced Linux Sound Architecture library. */
 #undef HAVE_ALSA
 
-/* Define to the version of the Advanced Linux Sound Architecture library. */
-#undef HAVE_ALSA_VERSION
-
 /* Define to 1 if you have the <arpa/inet.h> header file. */
 #undef HAVE_ARPA_INET_H
 
@@ -106,18 +103,12 @@
 /* Define to 1 if you have the Stack Backtrace library. */
 #undef HAVE_BKTR
 
-/* Define to the version of the Stack Backtrace library. */
-#undef HAVE_BKTR_VERSION
-
 /* Define to 1 if byteswap.h macros are available. */
 #undef HAVE_BYTESWAP_H
 
 /* Define to 1 if you have the POSIX 1.e capabilities library. */
 #undef HAVE_CAP
 
-/* Define to the version of the POSIX 1.e capabilities library. */
-#undef HAVE_CAP_VERSION
-
 /* Define to 1 if you have the `ceil' function. */
 #undef HAVE_CEIL
 
@@ -136,26 +127,14 @@
 /* Define to 1 if you have the OpenSSL Cryptography library. */
 #undef HAVE_CRYPTO
 
-/* Define to the version of the OpenSSL Cryptography library. */
-#undef HAVE_CRYPTO_VERSION
-
 /* Define to 1 if you have a functional curl library. */
 #undef HAVE_CURL
 
-/* Define to the version of the cURL library. */
-#undef HAVE_CURL_VERSION
-
 /* Define to 1 if you have the curses library. */
 #undef HAVE_CURSES
 
-/* Define to the version of the curses library. */
-#undef HAVE_CURSES_VERSION
-
 /* Define if your system has the DAHDI headers. */
 #undef HAVE_DAHDI
-
-/* Define DAHDI headers version */
-#undef HAVE_DAHDI_VERSION
 
 /* Define to 1 if your system has /dev/urandom. */
 #undef HAVE_DEV_URANDOM
@@ -203,9 +182,6 @@
 /* Define to 1 if you have the Ffmpeg and avcodec library. */
 #undef HAVE_FFMPEG
 
-/* Define to the version of the Ffmpeg and avcodec library. */
-#undef HAVE_FFMPEG_VERSION
-
 /* Define to 1 if you have the `floor' function. */
 #undef HAVE_FLOOR
 
@@ -227,9 +203,6 @@
 /* Define to 1 if you have the FreeTDS library. */
 #undef HAVE_FREETDS
 
-/* Define to the version of the FreeTDS library. */
-#undef HAVE_FREETDS_VERSION
-
 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
 #undef HAVE_FSEEKO
 
@@ -260,9 +233,6 @@
 /* Define if your system has the GETIFADDRS headers. */
 #undef HAVE_GETIFADDRS
 
-/* Define GETIFADDRS headers version */
-#undef HAVE_GETIFADDRS_VERSION
-
 /* Define to 1 if you have the `getloadavg' function. */
 #undef HAVE_GETLOADAVG
 
@@ -278,21 +248,12 @@
 /* Define if your system has the GLOB_BRACE headers. */
 #undef HAVE_GLOB_BRACE
 
-/* Define GLOB_BRACE headers version */
-#undef HAVE_GLOB_BRACE_VERSION
-
 /* Define if your system has the GLOB_NOMAGIC headers. */
 #undef HAVE_GLOB_NOMAGIC
 
-/* Define GLOB_NOMAGIC headers version */
-#undef HAVE_GLOB_NOMAGIC_VERSION
-
 /* Define if your system has the GMIME libraries. */
 #undef HAVE_GMIME
 
-/* Define to the version of the GMime library. */
-#undef HAVE_GMIME_VERSION
-
 /* Define to indicate the GSM library */
 #undef HAVE_GSM
 
@@ -302,38 +263,20 @@
 /* Define to indicate that gsm.h has no prefix for its location */
 #undef HAVE_GSM_HEADER
 
-/* Define to the version of the External GSM library. */
-#undef HAVE_GSM_VERSION
-
 /* Define if your system has the GTK libraries. */
 #undef HAVE_GTK
 
 /* Define if your system has the GTK2 libraries. */
 #undef HAVE_GTK2
 
-/* Define to the version of the gtk2 library. */
-#undef HAVE_GTK2_VERSION
-
-/* Define to the version of the gtk library. */
-#undef HAVE_GTK_VERSION
-
 /* Define to 1 if you have the Hoard Memory Allocator library. */
 #undef HAVE_HOARD
 
-/* Define to the version of the Hoard Memory Allocator library. */
-#undef HAVE_HOARD_VERSION
-
 /* Define to 1 if you have the Iconv library. */
 #undef HAVE_ICONV
 
-/* Define to the version of the Iconv library. */
-#undef HAVE_ICONV_VERSION
-
 /* Define to 1 if you have the Iksemel Jabber library. */
 #undef HAVE_IKSEMEL
-
-/* Define to the version of the Iksemel Jabber library. */
-#undef HAVE_IKSEMEL_VERSION
 
 /* Define if your system has the UW IMAP Toolkit c-client library. */
 #undef HAVE_IMAP_TK
@@ -342,9 +285,6 @@
    or greater. */
 #undef HAVE_IMAP_TK2006
 
-/* Define to the version of the UW IMAP Toolkit library. */
-#undef HAVE_IMAP_TK_VERSION
-
 /* Define to 1 if you have the `inet_aton' function. */
 #undef HAVE_INET_ATON
 
@@ -360,30 +300,18 @@
 /* Define if your system has the IP_MTU_DISCOVER headers. */
 #undef HAVE_IP_MTU_DISCOVER
 
-/* Define IP_MTU_DISCOVER headers version */
-#undef HAVE_IP_MTU_DISCOVER_VERSION
-
 /* Define to 1 if you have the `isascii' function. */
 #undef HAVE_ISASCII
 
 /* Define to 1 if you have the ISDN4Linux library. */
 #undef HAVE_ISDNNET
 
-/* Define to the version of the ISDN4Linux library. */
-#undef HAVE_ISDNNET_VERSION
-
 /* Define to 1 if you have the Jack Audio Connection Kit library. */
 #undef HAVE_JACK
 
-/* Define to the version of the Jack Audio Connection Kit library. */
-#undef HAVE_JACK_VERSION
-
 /* Define to 1 if you have the OpenLDAP library. */
 #undef HAVE_LDAP
 
-/* Define to the version of the OpenLDAP library. */
-#undef HAVE_LDAP_VERSION
-
 /* Define to 1 if you have the <libintl.h> header file. */
 #undef HAVE_LIBINTL_H
 
@@ -423,15 +351,9 @@
 /* Define to 1 if you have the libtool library. */
 #undef HAVE_LTDL
 
-/* Define to the version of the libtool library. */
-#undef HAVE_LTDL_VERSION
-
 /* Define to 1 if you have the Lua library. */
 #undef HAVE_LUA
 
-/* Define to the version of the Lua library. */
-#undef HAVE_LUA_VERSION
-
 /* Define to 1 if you have the <malloc.h> header file. */
 #undef HAVE_MALLOC_H
 
@@ -453,18 +375,9 @@
 /* Define if your system has the MISDN_FAC_ERROR headers. */
 #undef HAVE_MISDN_FAC_ERROR
 
-/* Define MISDN_FAC_ERROR headers version */
-#undef HAVE_MISDN_FAC_ERROR_VERSION
-
 /* Define if your system has the MISDN_FAC_RESULT headers. */
 #undef HAVE_MISDN_FAC_RESULT
 
-/* Define MISDN_FAC_RESULT headers version */
-#undef HAVE_MISDN_FAC_RESULT_VERSION
-
-/* Define to the version of the mISDN user library. */
-#undef HAVE_MISDN_VERSION
-
 /* Define to 1 if you have the `mkdir' function. */
 #undef HAVE_MKDIR
 
@@ -477,15 +390,9 @@
 /* Define to 1 if you have the Network Broadcast Sound library. */
 #undef HAVE_NBS
 
-/* Define to the version of the Network Broadcast Sound library. */
-#undef HAVE_NBS_VERSION
-
 /* Define to 1 if you have the ncurses library. */
 #undef HAVE_NCURSES
 
-/* Define to the version of the ncurses library. */
-#undef HAVE_NCURSES_VERSION
-
 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
 #undef HAVE_NDIR_H
 
@@ -498,78 +405,45 @@
 /* Define if your system has the NETSNMP libraries. */
 #undef HAVE_NETSNMP
 
-/* Define to the version of the Net-SNMP library. */
-#undef HAVE_NETSNMP_VERSION
-
 /* Define to 1 if you have the newt library. */
 #undef HAVE_NEWT
 
-/* Define to the version of the newt library. */
-#undef HAVE_NEWT_VERSION
-
 /* Define to 1 if your ODBC library has wide (Unicode) types. */
 #undef HAVE_ODBC_WCHAR
 
 /* Define to 1 if you have the OGG library. */
 #undef HAVE_OGG
 
-/* Define to the version of the OGG library. */
-#undef HAVE_OGG_VERSION
-
 /* Define to 1 if you have the OpenAIS library. */
 #undef HAVE_OPENAIS
 
-/* Define to the version of the OpenAIS library. */
-#undef HAVE_OPENAIS_VERSION
-
 /* Define if your system has the OpenH323 libraries. */
 #undef HAVE_OPENH323
 
-/* Define to the version of the OpenH323 library. */
-#undef HAVE_OPENH323_VERSION
-
 /* Define to 1 if you have the OpenSSL Secure Sockets Layer library. */
 #undef HAVE_OPENSSL
 
-/* Define to the version of the OpenSSL Secure Sockets Layer library. */
-#undef HAVE_OPENSSL_VERSION
-
 /* Define this to indicate the ${OSPTK_DESCRIP} library */
 #undef HAVE_OSPTK
 
-/* Define to the version of the OSP Toolkit library. */
-#undef HAVE_OSPTK_VERSION
-
 /* Define to 1 if you have the Open Sound System library. */
 #undef HAVE_OSS
 
-/* Define to the version of the Open Sound System library. */
-#undef HAVE_OSS_VERSION
-
 /* Define to 1 if OSX atomic operations are supported. */
 #undef HAVE_OSX_ATOMICS
 
 /* Define to indicate the PostgreSQL library */
 #undef HAVE_PGSQL
 
-/* Define to the version of the PostgreSQL library. */
-#undef HAVE_PGSQL_VERSION
-
 /* Define to 1 if your system defines IP_PKTINFO. */
 #undef HAVE_PKTINFO
 
 /* Define to 1 if you have the popt library. */
 #undef HAVE_POPT
 
-/* Define to the version of the popt library. */
-#undef HAVE_POPT_VERSION
-
 /* Define to 1 if you have the PortAudio library. */
 #undef HAVE_PORTAUDIO
 
-/* Define to the version of the PortAudio library. */
-#undef HAVE_PORTAUDIO_VERSION
-
 /* Define to 1 if you have the `pow' function. */
 #undef HAVE_POW
 
@@ -581,9 +455,6 @@
 
 /* Define to 1 if you have the ISDN PRI set_inbanddisconnect library. */
 #undef HAVE_PRI_INBANDDISCONNECT
-
-/* Define to the version of the ISDN PRI library. */
-#undef HAVE_PRI_VERSION
 
 /* Define if you have POSIX threads libraries and header files. */
 #undef HAVE_PTHREAD
@@ -596,14 +467,8 @@
    headers. */
 #undef HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
 
-/* Define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP headers version */
-#undef HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
-
 /* Define if your system has the PTHREAD_RWLOCK_INITIALIZER headers. */
 #undef HAVE_PTHREAD_RWLOCK_INITIALIZER
-
-/* Define PTHREAD_RWLOCK_INITIALIZER headers version */
-#undef HAVE_PTHREAD_RWLOCK_INITIALIZER_VERSION
 
 /* Define to 1 if your system defines PTHREAD_RWLOCK_PREFER_WRITER_NP in
    pthread.h */
@@ -621,15 +486,9 @@
 /* Define if your system has the PWLib libraries. */
 #undef HAVE_PWLIB
 
-/* Define to the version of the PWlib library. */
-#undef HAVE_PWLIB_VERSION
-
 /* Define to 1 if you have the Radius Client library. */
 #undef HAVE_RADIUS
 
-/* Define to the version of the Radius Client library. */
-#undef HAVE_RADIUS_VERSION
-
 /* Define to 1 if you have the `regcomp' function. */
 #undef HAVE_REGCOMP
 
@@ -642,9 +501,6 @@
 /* Define to 1 if you have the LIBRESAMPLE library. */
 #undef HAVE_RESAMPLE
 
-/* Define to the version of the LIBRESAMPLE library. */
-#undef HAVE_RESAMPLE_VERSION
-
 /* Define to 1 if your system has the ndestroy resolver function. */
 #undef HAVE_RES_NDESTROY
 
@@ -675,12 +531,6 @@
 /* Define to 1 if you have the Sdl Image library. */
 #undef HAVE_SDL_IMAGE
 
-/* Define to the version of the Sdl Image library. */
-#undef HAVE_SDL_IMAGE_VERSION
-
-/* Define to the version of the Sdl library. */
-#undef HAVE_SDL_VERSION
-
 /* Define to 1 if you have the `select' function. */
 #undef HAVE_SELECT
 
@@ -705,47 +555,26 @@
 /* Define to 1 if spandsp/expose.h is available. */
 #undef HAVE_SPANDSP_EXPOSE_H
 
-/* Define SPANDSP headers version */
-#undef HAVE_SPANDSP_VERSION
-
 /* Define to 1 if you have the Speex library. */
 #undef HAVE_SPEEX
 
 /* Define to 1 if you have the SpeexDSP library. */
 #undef HAVE_SPEEXDSP
 
-/* Define to the version of the SpeexDSP library. */
-#undef HAVE_SPEEXDSP_VERSION
-
 /* Define to 1 if you have the speex_preprocess_ctl library. */
 #undef HAVE_SPEEX_PREPROCESS
 
-/* Define to the version of the Speex preprocess routines library. */
-#undef HAVE_SPEEX_PREPROCESS_VERSION
-
-/* Define to the version of the Speex library. */
-#undef HAVE_SPEEX_VERSION
-
 /* Define to 1 if you have the SQLite library. */
 #undef HAVE_SQLITE
 
 /* Define to 1 if you have the SQLite library. */
 #undef HAVE_SQLITE3
 
-/* Define to the version of the SQLite library. */
-#undef HAVE_SQLITE3_VERSION
-
-/* Define to the version of the SQLite library. */
-#undef HAVE_SQLITE_VERSION
-
 /* Define to 1 if you have the `sqrtl' function. */
 #undef HAVE_SQRTL
 
 /* Define to 1 if you have the ISDN SS7 library. */
 #undef HAVE_SS7
-
-/* Define to the version of the ISDN SS7 library. */
-#undef HAVE_SS7_VERSION
 
 /* Define to 1 if `stat' has the bug that it succeeds when given the
    zero-length file name argument. */
@@ -839,9 +668,6 @@
 /* Define to 1 if you have the mISDN Supplemental Services library. */
 #undef HAVE_SUPPSERV
 
-/* Define to the version of the mISDN Supplemental Services library. */
-#undef HAVE_SUPPSERV_VERSION
-
 /* Define to 1 if your system has sysinfo support */
 #undef HAVE_SYSINFO
 
@@ -905,9 +731,6 @@
 /* Define to 1 if you have the Termcap library. */
 #undef HAVE_TERMCAP
 
-/* Define to the version of the Termcap library. */
-#undef HAVE_TERMCAP_VERSION
-
 /* Define to 1 if you have the <termios.h> header file. */
 #undef HAVE_TERMIOS_H
 
@@ -917,15 +740,9 @@
 /* Define to 1 if you have the Term Info library. */
 #undef HAVE_TINFO
 
-/* Define to the version of the Term Info library. */
-#undef HAVE_TINFO_VERSION
-
 /* Define to 1 if you have the tonezone library. */
 #undef HAVE_TONEZONE
 
-/* Define to the version of the tonezone library. */
-#undef HAVE_TONEZONE_VERSION
-
 /* Define to 1 if you have the `trunc' function. */
 #undef HAVE_TRUNC
 
@@ -938,18 +755,12 @@
 /* Define to 1 if you have the unixODBC library. */
 #undef HAVE_UNIXODBC
 
-/* Define to the version of the unixODBC library. */
-#undef HAVE_UNIXODBC_VERSION
-
 /* Define to 1 if you have the `unsetenv' function. */
 #undef HAVE_UNSETENV
 
 /* Define to 1 if you have the usb library. */
 #undef HAVE_USB
 
-/* Define to the version of the usb library. */
-#undef HAVE_USB_VERSION
-
 /* Define to 1 if you have the `utime' function. */
 #undef HAVE_UTIME
 
@@ -974,15 +785,9 @@
 /* Define to 1 if you have the Vorbis library. */
 #undef HAVE_VORBIS
 
-/* Define to the version of the Vorbis library. */
-#undef HAVE_VORBIS_VERSION
-
 /* Define if your system has the VoiceTronix API libraries. */
 #undef HAVE_VPB
 
-/* Define to the version of the Voicetronix API library. */
-#undef HAVE_VPB_VERSION
-
 /* Define to 1 if you have the `vprintf' function. */
 #undef HAVE_VPRINTF
 
@@ -1006,9 +811,6 @@
 
 /* Define to 1 if you have the zlib compression library. */
 #undef HAVE_ZLIB
-
-/* Define to the version of the zlib compression library. */
-#undef HAVE_ZLIB_VERSION
 
 /* Define to 1 if the system has the type `_Bool'. */
 #undef HAVE__BOOL




More information about the asterisk-commits mailing list