Ticket #39018: patch-configure.ac.diff
File patch-configure.ac.diff, 3.0 KB (added by cooljeanius (Eric Gallager), 11 years ago) |
---|
-
configure.ac
old new 2 2 3 3 m4_pattern_forbid([^_?DPKG_]) 4 4 5 AC_PREREQ( 2.60)6 AC_INIT([dpkg], m4_esyscmd([./get-version]), [debian-dpkg@lists.debian.org])5 AC_PREREQ([2.60]) 6 AC_INIT([dpkg], [m4_esyscmd([./get-version])], [debian-dpkg@lists.debian.org]) 7 7 AC_CONFIG_SRCDIR([lib/dpkg/dpkg.h]) 8 8 AC_CONFIG_MACRO_DIR([m4]) 9 9 AC_CONFIG_AUX_DIR([build-aux]) … … 35 35 # Checks for programs. 36 36 AC_PROG_CC 37 37 AC_PROG_CXX 38 AC_PROG_INSTALL 38 39 AC_PROG_LEX 39 40 DPKG_DIST_CHECK([test "$LEX" = ":"], [lex program required]) 40 41 AC_PROG_RANLIB 41 42 AC_CHECK_PROGS([DOXYGEN], [doxygen]) 42 43 AC_CHECK_PROG([HAVE_DOT], [dot], [YES], [NO]) 44 AX_CHECK_GNU_MAKE 45 AC_PATH_PROG([TAR], [gnutar tar]) 46 43 47 DPKG_PROG_PO4A 44 48 DPKG_PROG_PERL 45 49 DPKG_PROG_POD2MAN … … 62 66 63 67 # Checks for header files. 64 68 AC_HEADER_STDC 65 AC_CHECK_HEADERS([stddef.h error.h locale.h libintl.h kvm.h \ 66 sys/syscall.h linux/fiemap.h]) 69 AC_CHECK_HEADERS([error.h fcntl.h libintl.h limits.h \ 70 linux/fiemap.h locale.h kvm.h \ 71 stddef.h stdio.h sys/file.h sys/ioctl.h \ 72 sys/time.h sys/syscall.h sys/vfs.h utime.h]) 67 73 68 74 # Checks for typedefs, structures, and compiler characteristics. 75 AC_HEADER_STDBOOL 69 76 AC_C_BIGENDIAN 70 77 AC_C_CONST 71 78 AC_C_INLINE 72 79 AC_C_VOLATILE 73 80 DPKG_C_C99 81 AC_TYPE_INT16_T 82 AC_TYPE_INT32_T 83 AC_TYPE_INT8_T 74 84 AC_TYPE_MODE_T 85 AC_FUNC_OBSTACK 86 AC_TYPE_OFF_T 75 87 AC_TYPE_PID_T 76 88 AC_TYPE_SIZE_T 89 AC_TYPE_SSIZE_T 90 AC_CHECK_MEMBERS([struct stat.st_rdev]) 91 AC_CHECK_DECLS([sys_siglist]) 92 AC_TYPE_UINT16_T 93 AC_TYPE_UINT32_T 94 AC_TYPE_UINT64_T 95 AC_TYPE_UINT8_T 96 AC_TYPE_UID_T 77 97 DPKG_TYPES_U_INT_T 78 98 DPKG_TYPE_PTRDIFF_T 79 99 AC_CHECK_SIZEOF([unsigned int]) … … 91 111 DPKG_CHECK_COMPAT_FUNCS([getopt getopt_long obstack_free \ 92 112 strnlen strndup strerror strsignal asprintf \ 93 113 scandir alphasort unsetenv]) 114 AC_FUNC_CHOWN 115 AC_FUNC_ERROR_AT_LINE 116 AC_FUNC_FORK 117 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK 118 AC_FUNC_MALLOC 119 AC_FUNC_MMAP 120 AC_FUNC_REALLOC 121 AC_FUNC_STRNLEN 94 122 AC_CHECK_DECLS([strnlen], [[#include <string.h>]]) 95 123 AC_CHECK_FUNCS([memcpy lchown], 96 124 [], [AC_ERROR([missing required function])]) 97 AC_CHECK_FUNCS([strtoimax isascii setsid getdtablesize \ 98 getprogname getexecname lutimes posix_fadvise]) 125 AC_CHECK_FUNCS([dup2 ftruncate getdtablesize getexecname \ 126 getprogname gettimeofday isascii lutimes memchr memmove memset mkdir \ 127 mkfifo munmap posix_fadvise putenv regcomp rmdir select setenv setlocale \ 128 setsid strcasecmp strchr strcspn strdup strncasecmp \ 129 strpbrk strrchr strspn strstr strtoimax strtol]) 99 130 100 131 DPKG_MMAP 101 132 102 133 # Checks for the build machinery. 103 AC_DEFINE( LIBDPKG_VOLATILE_API, 1, [Acknowledge the volatility of the API.])134 AC_DEFINE([LIBDPKG_VOLATILE_API], [1], [Acknowledge the volatility of the API.]) 104 135 DPKG_COMPILER_WARNINGS 105 136 DPKG_COMPILER_OPTIMISATIONS 106 137 DPKG_LINKER_OPTIMISATIONS