# HG changeset patch # User Rik # Date 1348867374 25200 # Node ID 219479b461b8705b0724664c12fa426f775ee100 # Parent 1b4d7c703eedec981856633b5f674fa211eea2a2 build: Add missing tests and gnulib modules suggested by autoscan. * build-aux/bootstrap_gnulib.conf: Add float and stddef header modules. * libgnu/Makefile.am: Automatically re-generated when module list changed. * configure.ac: Add function check for isascii, modf, pow, sqrt. Add function check for chown, ftruncate, mmap, munmap when building GUI. * libinterp/interpfcn/toplev.cc: Add gnulib:: qualifier to malloc call. * liboctave/util/oct-shlib.cc: Add gnulib:: qualifier to strerror call. diff -r 1b4d7c703eed -r 219479b461b8 build-aux/bootstrap_gnulib.conf --- a/build-aux/bootstrap_gnulib.conf Fri Sep 28 15:04:09 2012 -0400 +++ b/build-aux/bootstrap_gnulib.conf Fri Sep 28 14:22:54 2012 -0700 @@ -31,6 +31,7 @@ fcntl fflush filemode + float floor floorf fnmatch @@ -69,6 +70,7 @@ sigprocmask sleep stat + stddef stdint stdio strerror diff -r 1b4d7c703eed -r 219479b461b8 configure.ac --- a/configure.ac Fri Sep 28 15:04:09 2012 -0400 +++ b/configure.ac Fri Sep 28 14:22:54 2012 -0700 @@ -1918,11 +1918,11 @@ AC_CHECK_FUNCS([endgrent endpwent execvp expm1 expm1f fork]) AC_CHECK_FUNCS([getegid geteuid getgid getgrent getgrgid getgrnam]) AC_CHECK_FUNCS([getpgrp getpid getppid getpwent getpwuid getuid getwd]) -AC_CHECK_FUNCS([kill lgamma lgammaf lgamma_r lgammaf_r]) -AC_CHECK_FUNCS([localtime_r log1p log1pf mkstemp pipe putenv]) +AC_CHECK_FUNCS([isascii kill lgamma lgammaf lgamma_r lgammaf_r]) +AC_CHECK_FUNCS([localtime_r log1p log1pf mkstemp modf pipe pow putenv]) AC_CHECK_FUNCS([realpath resolvepath rindex roundl select setgrent]) AC_CHECK_FUNCS([setlocale setpwent setvbuf siglongjmp]) -AC_CHECK_FUNCS([strsignal tempnam tgammaf umask]) +AC_CHECK_FUNCS([sqrt strsignal tempnam tgammaf umask]) AC_CHECK_FUNCS([uname utime x_utime waitpid]) AC_CHECK_FUNCS([_chmod _kbhit _utime32]) @@ -2278,6 +2278,8 @@ AC_CHECK_HEADERS([pty.h libutil.h util.h]) AC_SEARCH_LIBS([openpty], [util], [AC_DEFINE(HAVE_OPENPTY, [], [Define whether openpty exists])]) + AC_CHECK_FUNCS([chown ftruncate mmap munmap], [], + [AC_MSG_ERROR([Missing function required by GUI])]) ;; esac else diff -r 1b4d7c703eed -r 219479b461b8 libgnu/Makefile.am --- a/libgnu/Makefile.am Fri Sep 28 15:04:09 2012 -0400 +++ b/libgnu/Makefile.am Fri Sep 28 14:22:54 2012 -0700 @@ -21,7 +21,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl --lib=libgnu --source-base=libgnu --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --no-conditional-dependencies --libtool --macro-prefix=gl base64 canonicalize chdir close closedir copysign copysignf crypto/md5 dup2 fclose fcntl fflush filemode floor floorf fnmatch fopen fseek ftell getcwd gethostname getopt-gnu gettimeofday glob isatty link lstat malloc-gnu mkdir mkfifo mkostemp mktime nanosleep nproc open opendir pathmax progname readdir readlink realloc-gnu rename rmdir round roundf select sigaction signal sigprocmask sleep stat stdint stdio strerror strftime strptime symlink sys_stat sys_time sys_times time times tmpfile trunc truncf unistd unlink vasprintf +# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl --lib=libgnu --source-base=libgnu --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --no-conditional-dependencies --libtool --macro-prefix=gl base64 canonicalize chdir close closedir copysign copysignf crypto/md5 dup2 fclose fcntl fflush filemode float floor floorf fnmatch fopen fseek ftell getcwd gethostname getopt-gnu gettimeofday glob isatty link lstat malloc-gnu mkdir mkfifo mkostemp mktime nanosleep nproc open opendir pathmax progname readdir readlink realloc-gnu rename rmdir round roundf select sigaction signal sigprocmask sleep stat stddef stdint stdio strerror strftime strptime symlink sys_stat sys_time sys_times time times tmpfile trunc truncf unistd unlink vasprintf AUTOMAKE_OPTIONS = 1.5 gnits diff -r 1b4d7c703eed -r 219479b461b8 libinterp/interpfcn/toplev.cc --- a/libinterp/interpfcn/toplev.cc Fri Sep 28 15:04:09 2012 -0400 +++ b/libinterp/interpfcn/toplev.cc Fri Sep 28 14:22:54 2012 -0700 @@ -1524,11 +1524,11 @@ /* malloc (0) is unpredictable; avoid it. */ if (sz == 0) sz = 1; - p = malloc (sz); + p = gnulib::malloc (sz); while (p == 0) { (*__new_handler) (); - p = malloc (sz); + p = gnulib::malloc (sz); } if (debug_new_delete) diff -r 1b4d7c703eed -r 219479b461b8 liboctave/util/oct-shlib.cc --- a/liboctave/util/oct-shlib.cc Fri Sep 28 15:04:09 2012 -0400 +++ b/liboctave/util/oct-shlib.cc Fri Sep 28 14:22:54 2012 -0700 @@ -272,7 +272,7 @@ if (! library) { using namespace std; - (*current_liboctave_error_handler) ("%s", strerror (errno)); + (*current_liboctave_error_handler) ("%s", gnulib::strerror (errno)); } }