diff options
Diffstat (limited to 'package/cifs-utils/patches/patch-configure_ac')
-rw-r--r-- | package/cifs-utils/patches/patch-configure_ac | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/package/cifs-utils/patches/patch-configure_ac b/package/cifs-utils/patches/patch-configure_ac new file mode 100644 index 000000000..ac5835776 --- /dev/null +++ b/package/cifs-utils/patches/patch-configure_ac @@ -0,0 +1,33 @@ +--- cifs-utils-6.1.orig/configure.ac 2013-07-02 21:13:33.000000000 +0200 ++++ cifs-utils-6.1/configure.ac 2013-10-28 07:33:27.000000000 +0100 +@@ -90,13 +90,25 @@ AC_CHECK_TYPES([ptrdiff_t, ssize_t, uint + + # Checks for library functions. + AC_FUNC_GETMNTENT +-AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK +-AC_FUNC_MALLOC +-AC_FUNC_REALLOC +-AC_FUNC_STRNLEN + + # check for required functions +-AC_CHECK_FUNCS([alarm atexit endpwent getmntent getpass gettimeofday inet_ntop memset realpath setenv strchr strcmp strdup strerror strncasecmp strndup strpbrk strrchr strstr strtol strtoul tolower uname], , [AC_MSG_ERROR([necessary functions(s) not found])]) ++AC_CHECK_FUNCS([alarm atexit endpwent getmntent getpass gettimeofday inet_ntop malloc memset realloc realpath setenv strchr strcmp strdup strerror strncasecmp strndup strnlen strpbrk strrchr strstr strtol strtoul tolower uname], , [AC_MSG_ERROR([necessary functions(s) not found])]) ++ ++AC_CHECK_FUNCS([getopt_long], , [AC_MSG_ERROR([getopt_long function not found])]) ++AC_MSG_CHECKING([if getopt_long is GNU specific]) ++AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[ ++#include <features.h> ++#ifndef __GLIBC__ ++#error No GNU extension ++#endif ++ ]],[[;]]) ++ ],[ ++ AC_DEFINE(HAVE_GNU_GETOPT_LONG, 1, [Whether getopt_long has GNU extensions]) ++ AC_MSG_RESULT([yes]) ++ ],[ ++ AC_LIBOBJ([gnu_getopt]) ++ AC_MSG_RESULT([no]) ++]) + + AC_CHECK_FUNCS(clock_gettime, [], [ + AC_CHECK_LIB(rt, clock_gettime, [ |