diff options
| author | 2013-07-13 16:35:49 +0200 | |
|---|---|---|
| committer | 2013-07-13 16:35:49 +0200 | |
| commit | b8169cbeda3699f3c0159267815cf9a011149950 (patch) | |
| tree | e874619d08079da3c5b1889302f786671de381bf /configure.ac | |
| parent | a2ddca0916ef776dbd0c6304ea36b4ca7a35302c (diff) | |
| download | libimobiledevice-b8169cbeda3699f3c0159267815cf9a011149950.tar.gz libimobiledevice-b8169cbeda3699f3c0159267815cf9a011149950.tar.bz2 | |
configure.ac: Simply check for asprintf and vasprintf
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac index 57cd233..a0b038e 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -44,16 +44,7 @@ AC_TYPE_UINT32_T | |||
| 44 | AC_TYPE_UINT8_T | 44 | AC_TYPE_UINT8_T |
| 45 | 45 | ||
| 46 | # Checks for library functions. | 46 | # Checks for library functions. |
| 47 | AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) | 47 | AC_CHECK_FUNCS([asprintf strcasecmp strdup strerror strndup stpcpy vasprintf]) |
| 48 | |||
| 49 | AC_CHECK_FUNC(asprintf, [have_asprintf="yes"], [have_asprintf="no"]) | ||
| 50 | if test "x$have_asprintf" = "xyes"; then | ||
| 51 | AC_DEFINE(HAVE_ASPRINTF,1,[define if asprintf is available]) | ||
| 52 | fi | ||
| 53 | AC_CHECK_FUNC(vasprintf, [have_vasprintf="yes"], [have_vasprintf="no"]) | ||
| 54 | if test "x$have_vasprintf" = "xyes"; then | ||
| 55 | AC_DEFINE(HAVE_VASPRINTF,1,[define if vasprintf is available]) | ||
| 56 | fi | ||
| 57 | 48 | ||
| 58 | AC_CHECK_HEADER(endian.h, [ac_cv_have_endian_h="yes"], [ac_cv_have_endian_h="no"]) | 49 | AC_CHECK_HEADER(endian.h, [ac_cv_have_endian_h="yes"], [ac_cv_have_endian_h="no"]) |
| 59 | if test "x$ac_cv_have_endian_h" = "xno"; then | 50 | if test "x$ac_cv_have_endian_h" = "xno"; then |
