]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6292 don't use AC_FUNC_MALLOC on NetBSD as rp_malloc isn't defined
authorBrian West <brian@freeswitch.org>
Sat, 1 Mar 2014 16:49:38 +0000 (10:49 -0600)
committerBrian West <brian@freeswitch.org>
Sat, 1 Mar 2014 16:49:38 +0000 (10:49 -0600)
configure.in

index 2c03a46abbb41f63a145ccda0f062fbed0c253fa..6932e8a4003bfdc12a09e3b749626954f3b1aedf 100644 (file)
@@ -632,7 +632,6 @@ AC_STRUCT_TM
 
 # Checks for library functions.
 AC_PROG_GCC_TRADITIONAL
-AC_FUNC_MALLOC
 AC_TYPE_SIGNAL
 AC_FUNC_STRFTIME
 AC_CHECK_FUNCS([gethostname vasprintf mmap mlock mlockall usleep getifaddrs timerfd_create getdtablesize posix_openpt])
@@ -952,9 +951,13 @@ case $host in
    *-openbsd*)
        # OpenBSD's gunzip and friends don't like -d because its redundant, only gzip does
        AC_PATH_PROGS(ZCAT, gzip)
+       AC_FUNC_MALLOC
+       ;;
+   *-netbsd*)
        ;;
     *)
        AC_PATH_PROGS(ZCAT, gunzip gzcat gzip zcat)
+       AC_FUNC_MALLOC
        ;;
 esac