diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 7617d61..d571f48 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -19,8 +19,10 @@ LIBIRECOVERY_SO_VERSION=3:0:0 | |||
| 19 | 19 | ||
| 20 | dnl Minimum package versions | 20 | dnl Minimum package versions |
| 21 | LIBUSB_VERSION=1.0.3 | 21 | LIBUSB_VERSION=1.0.3 |
| 22 | LIMD_GLUE_VERSION=1.0.0 | ||
| 22 | 23 | ||
| 23 | AC_SUBST(LIBIRECOVERY_SO_VERSION) | 24 | AC_SUBST(LIBIRECOVERY_SO_VERSION) |
| 25 | AC_SUBST(LIMD_GLUE_VERSION) | ||
| 24 | 26 | ||
| 25 | # Checks for programs. | 27 | # Checks for programs. |
| 26 | AC_PROG_CC | 28 | AC_PROG_CC |
| @@ -28,6 +30,9 @@ AC_PROG_CC | |||
| 28 | AM_PROG_CC_C_O | 30 | AM_PROG_CC_C_O |
| 29 | LT_INIT | 31 | LT_INIT |
| 30 | 32 | ||
| 33 | # Checks for libraries. | ||
| 34 | PKG_CHECK_MODULES(limd_glue, libimobiledevice-glue-1.0 >= $LIMD_GLUE_VERSION) | ||
| 35 | |||
| 31 | # Checks for header files. | 36 | # Checks for header files. |
| 32 | AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) | 37 | AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) |
| 33 | 38 | ||
| @@ -58,7 +63,6 @@ case ${host_os} in | |||
| 58 | have_iokit=yes | 63 | have_iokit=yes |
| 59 | ], []) | 64 | ], []) |
| 60 | ], []) | 65 | ], []) |
| 61 | AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build $PACKAGE])]) | ||
| 62 | ;; | 66 | ;; |
| 63 | mingw32*) | 67 | mingw32*) |
| 64 | AC_MSG_RESULT([${host_os}]) | 68 | AC_MSG_RESULT([${host_os}]) |
| @@ -74,7 +78,6 @@ case ${host_os} in | |||
| 74 | ;; | 78 | ;; |
| 75 | *) | 79 | *) |
| 76 | AC_MSG_RESULT([${host_os}]) | 80 | AC_MSG_RESULT([${host_os}]) |
| 77 | AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build $PACKAGE])]) | ||
| 78 | ;; | 81 | ;; |
| 79 | esac | 82 | esac |
| 80 | AM_CONDITIONAL(WIN32, test x$win32 = xtrue) | 83 | AM_CONDITIONAL(WIN32, test x$win32 = xtrue) |
| @@ -111,8 +114,7 @@ AS_IF([test "x$with_dummy" = "xyes"], [ | |||
| 111 | ]) | 114 | ]) |
| 112 | ]) | 115 | ]) |
| 113 | 116 | ||
| 114 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden $PTHREAD_CFLAGS") | 117 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden") |
| 115 | GLOBAL_LDFLAGS+=" $PTHREAD_LIBS" | ||
| 116 | AC_SUBST(GLOBAL_CFLAGS) | 118 | AC_SUBST(GLOBAL_CFLAGS) |
| 117 | AC_SUBST(GLOBAL_LDFLAGS) | 119 | AC_SUBST(GLOBAL_LDFLAGS) |
| 118 | 120 | ||
