diff options
| author | 2020-04-30 04:14:03 +0200 | |
|---|---|---|
| committer | 2020-04-30 04:14:03 +0200 | |
| commit | b6471b7343217a001e1bc1d63eb6fd8550577799 (patch) | |
| tree | 5566ab8d375d080e25af557219461bb69d2e32a3 | |
| parent | 52a24c5a0e0dc80e2ced8d20fc3f14e82938e8e1 (diff) | |
| download | usbmuxd-b6471b7343217a001e1bc1d63eb6fd8550577799.tar.gz usbmuxd-b6471b7343217a001e1bc1d63eb6fd8550577799.tar.bz2  | |
Fix configure failing when libimobiledevice is installed in non-standard prefix
| -rw-r--r-- | configure.ac | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fb59203..3b2dec0 100644 --- a/configure.ac +++ b/configure.ac @@ -35,12 +35,15 @@ if test "x$have_limd" = "xyes"; then      AC_DEFINE(HAVE_LIBIMOBILEDEVICE, 1, [Define if you have libimobiledevice support])      AC_SUBST(libimobiledevice_CFLAGS)      AC_SUBST(libimobiledevice_LIBS) +    CACHED_CFLAGS="$CFLAGS" +    CFLAGS+=" $libimobiledevice_CFLAGS"      AC_CACHE_CHECK(for enum idevice_connection_type, ac_cv_enum_idevice_connection_type,        AC_TRY_COMPILE([          #include <libimobiledevice/libimobiledevice.h>        ], [          enum idevice_connection_type conn_type = CONNECTION_USBMUXD;        ], ac_cv_enum_idevice_connection_type=yes, ac_cv_enum_idevice_connection_type=no)) +    CFLAGS="$CACHED_CFLAGS"      if (test "$ac_cv_enum_idevice_connection_type" = "yes"); then        AC_DEFINE(HAVE_ENUM_IDEVICE_CONNECTION_TYPE, 1, [Define if enum idevice_connection_type is available])      fi  | 
