Skip to content

Commit 7a49227

Browse files
committed
configure: include libimobiledevice CFLAGS in idevice_connection_get_fd check
AC_CHECK_DECL knows nothing about pkg-config shenanigans see #183 (comment)
1 parent f8c1a7f commit 7a49227

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ AC_TYPE_UINT8_T
5252
AC_FUNC_MALLOC
5353
AC_FUNC_REALLOC
5454
AC_CHECK_FUNCS([memmove memset regcomp select socket stpcpy strcasecmp strncasecmp strchr strdup strndup strrchr strstr strtol])
55+
56+
SAVE_CFLAGS=$CFLAGS
57+
CFLAGS="$CFLAGS $libimobiledevice_CFLAGS"
5558
AC_CHECK_DECL(idevice_connection_get_fd, [AC_DEFINE([HAVE_IDEVICE_CONNECTION_GET_FD], 1, [ ])], [], [#include <libimobiledevice/libimobiledevice.h>])
59+
CFLAGS=$SAVE_CFLAGS
5660

5761
AC_CONFIG_FILES([Makefile src/Makefile include/Makefile examples/Makefile])
5862

0 commit comments

Comments
 (0)