configure.ac (267897) | configure.ac (275698) |
---|---|
1dnl Process this file with autoconf to produce a configure script. | 1dnl Process this file with autoconf to produce a configure script. |
2AC_INIT([file],[5.19],[christos@astron.com]) | 2AC_INIT([file],[5.21],[christos@astron.com]) |
3AM_INIT_AUTOMAKE([subdir-objects foreign]) 4m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 5 6AC_CONFIG_HEADERS([config.h]) 7AC_CONFIG_MACRO_DIR([m4]) 8 9AC_MSG_CHECKING(for builtin ELF support) 10AC_ARG_ENABLE(elf, --- 66 unchanged lines hidden (view full) --- 77LT_INIT([disable-static pic-only]) 78gl_VISIBILITY 79dnl Checks for headers 80AC_HEADER_STDC 81AC_HEADER_MAJOR 82AC_HEADER_SYS_WAIT 83AC_CHECK_HEADERS(stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h) 84AC_CHECK_HEADERS(stddef.h utime.h wchar.h wctype.h limits.h) | 3AM_INIT_AUTOMAKE([subdir-objects foreign]) 4m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 5 6AC_CONFIG_HEADERS([config.h]) 7AC_CONFIG_MACRO_DIR([m4]) 8 9AC_MSG_CHECKING(for builtin ELF support) 10AC_ARG_ENABLE(elf, --- 66 unchanged lines hidden (view full) --- 77LT_INIT([disable-static pic-only]) 78gl_VISIBILITY 79dnl Checks for headers 80AC_HEADER_STDC 81AC_HEADER_MAJOR 82AC_HEADER_SYS_WAIT 83AC_CHECK_HEADERS(stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h) 84AC_CHECK_HEADERS(stddef.h utime.h wchar.h wctype.h limits.h) |
85AC_CHECK_HEADERS(getopt.h err.h) | 85AC_CHECK_HEADERS(getopt.h err.h xlocale.h) |
86AC_CHECK_HEADERS(sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h) 87AC_CHECK_HEADERS(zlib.h) 88 89dnl Checks for typedefs, structures, and compiler characteristics. 90AC_C_CONST 91AC_TYPE_OFF_T 92AC_TYPE_SIZE_T 93AC_CHECK_MEMBERS([struct stat.st_rdev]) --- 39 unchanged lines hidden (view full) --- 133 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 134 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 135else 136 WARNINGS= 137 AC_MSG_RESULT(no) 138fi]) 139 140dnl Checks for functions | 86AC_CHECK_HEADERS(sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h) 87AC_CHECK_HEADERS(zlib.h) 88 89dnl Checks for typedefs, structures, and compiler characteristics. 90AC_C_CONST 91AC_TYPE_OFF_T 92AC_TYPE_SIZE_T 93AC_CHECK_MEMBERS([struct stat.st_rdev]) --- 39 unchanged lines hidden (view full) --- 133 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 134 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 135else 136 WARNINGS= 137 AC_MSG_RESULT(no) 138fi]) 139 140dnl Checks for functions |
141AC_CHECK_FUNCS(strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof) | 141AC_CHECK_FUNCS(strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale) |
142 143dnl Provide implementation of some required functions if necessary 144AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat getline ctime_r asctime_r pread strcasestr fmtcheck) 145 146dnl Checks for libraries 147AC_CHECK_LIB(z,gzopen) 148if test "$MINGW" = 1; then 149 AC_CHECK_LIB(gnurx,regexec,,AC_MSG_ERROR([libgnurx is required to build file(1) with MinGW])) 150fi 151 152dnl See if we are cross-compiling 153AM_CONDITIONAL(IS_CROSS_COMPILE, test "$cross_compiling" = yes) 154 155AC_CONFIG_FILES([Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile]) 156AC_OUTPUT | 142 143dnl Provide implementation of some required functions if necessary 144AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat getline ctime_r asctime_r pread strcasestr fmtcheck) 145 146dnl Checks for libraries 147AC_CHECK_LIB(z,gzopen) 148if test "$MINGW" = 1; then 149 AC_CHECK_LIB(gnurx,regexec,,AC_MSG_ERROR([libgnurx is required to build file(1) with MinGW])) 150fi 151 152dnl See if we are cross-compiling 153AM_CONDITIONAL(IS_CROSS_COMPILE, test "$cross_compiling" = yes) 154 155AC_CONFIG_FILES([Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile]) 156AC_OUTPUT |