diff options
| author | 2014-05-27 11:34:18 +0200 | |
|---|---|---|
| committer | 2014-05-27 11:34:18 +0200 | |
| commit | 5fbd3251e9ab03be952a876f261ca466398c1696 (patch) | |
| tree | dc682f87a474113e82dbb1e25c5f966f5d60ecc5 /configure.ac | |
| parent | f6fc79344487ac8e1f335fb86e0fb71c316f94a2 (diff) | |
| download | ideviceinstaller-5fbd3251e9ab03be952a876f261ca466398c1696.tar.gz ideviceinstaller-5fbd3251e9ab03be952a876f261ca466398c1696.tar.bz2 | |
Add support for installing from directories which contain symlinks
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 11f24b4..0529da5 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -52,6 +52,25 @@ AC_FUNC_MALLOC | |||
| 52 | AC_FUNC_REALLOC | 52 | AC_FUNC_REALLOC |
| 53 | AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) | 53 | AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) |
| 54 | 54 | ||
| 55 | # Check for lstat | ||
| 56 | |||
| 57 | AC_MSG_CHECKING([whether lstat is available]) | ||
| 58 | AC_TRY_LINK([ | ||
| 59 | #include <sys/types.h> | ||
| 60 | #include <sys/stat.h> | ||
| 61 | #if defined(HAVE_UNISTD_H) | ||
| 62 | #include <unistd.h> | ||
| 63 | #endif | ||
| 64 | ],[ | ||
| 65 | struct stat st; | ||
| 66 | lstat("/tmp", &st); | ||
| 67 | ], [have_lstat="yes"], [have_lstat="no"]) | ||
| 68 | AC_MSG_RESULT([${have_lstat}]) | ||
| 69 | |||
| 70 | if test "x${have_lstat}" = "xyes" ; then | ||
| 71 | AC_DEFINE([HAVE_LSTAT], 1, [Define if lstat syscall is supported]) | ||
| 72 | fi | ||
| 73 | |||
| 55 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Werror -g") | 74 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Werror -g") |
| 56 | AC_SUBST(GLOBAL_CFLAGS) | 75 | AC_SUBST(GLOBAL_CFLAGS) |
| 57 | 76 | ||
