diff options
| author | 2023-06-30 11:32:29 +0200 | |
|---|---|---|
| committer | 2023-06-30 11:32:29 +0200 | |
| commit | 835e626f1413a520093a5f1fa5c797016c13d80f (patch) | |
| tree | fed61026e429bf8fa5f55f9e2da076ad3c3061b5 | |
| parent | 9f9de528fe930f5248ed996659fdf5c22974928e (diff) | |
| download | ideviceinstaller-835e626f1413a520093a5f1fa5c797016c13d80f.tar.gz ideviceinstaller-835e626f1413a520093a5f1fa5c797016c13d80f.tar.bz2 | |
Updated deprecated autoconf macros
| -rw-r--r-- | configure.ac | 9 | ||||
| -rw-r--r-- | m4/as-compiler-flag.m4 | 4 |
2 files changed, 6 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 3e41809..be124b9 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # -*- Autoconf -*- | 1 | # -*- Autoconf -*- |
| 2 | # Process this file with autoconf to produce a configure script. | 2 | # Process this file with autoconf to produce a configure script. |
| 3 | 3 | ||
| 4 | AC_PREREQ(2.68) | 4 | AC_PREREQ([2.68]) |
| 5 | AC_INIT([ideviceinstaller], [m4_esyscmd(./git-version-gen $RELEASE_VERSION)], [https://github.com/libimobiledevice/ideviceinstaller/issues], [], [https://libimobiledevice.org]) | 5 | AC_INIT([ideviceinstaller], [m4_esyscmd(./git-version-gen $RELEASE_VERSION)], [https://github.com/libimobiledevice/ideviceinstaller/issues], [], [https://libimobiledevice.org]) |
| 6 | AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip check-news]) | 6 | AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip check-news]) |
| 7 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) | 7 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) |
| @@ -25,7 +25,6 @@ PKG_CHECK_MODULES(libplist, libplist-2.0 >= 2.3.0) | |||
| 25 | PKG_CHECK_MODULES(libzip, libzip >= 0.10) | 25 | PKG_CHECK_MODULES(libzip, libzip >= 0.10) |
| 26 | 26 | ||
| 27 | # Checks for header files. | 27 | # Checks for header files. |
| 28 | AC_HEADER_STDC | ||
| 29 | AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) | 28 | AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) |
| 30 | 29 | ||
| 31 | # Checks for typedefs, structures, and compiler characteristics. | 30 | # Checks for typedefs, structures, and compiler characteristics. |
| @@ -44,16 +43,16 @@ AC_CHECK_FUNCS([strdup strerror asprintf vasprintf]) | |||
| 44 | # Check for lstat | 43 | # Check for lstat |
| 45 | 44 | ||
| 46 | AC_MSG_CHECKING([whether lstat is available]) | 45 | AC_MSG_CHECKING([whether lstat is available]) |
| 47 | AC_TRY_LINK([ | 46 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |
| 48 | #include <sys/types.h> | 47 | #include <sys/types.h> |
| 49 | #include <sys/stat.h> | 48 | #include <sys/stat.h> |
| 50 | #if defined(HAVE_UNISTD_H) | 49 | #if defined(HAVE_UNISTD_H) |
| 51 | #include <unistd.h> | 50 | #include <unistd.h> |
| 52 | #endif | 51 | #endif |
| 53 | ],[ | 52 | ]],[[ |
| 54 | struct stat st; | 53 | struct stat st; |
| 55 | lstat("/tmp", &st); | 54 | lstat("/tmp", &st); |
| 56 | ], [have_lstat="yes"], [have_lstat="no"]) | 55 | ]])], [have_lstat="yes"], [have_lstat="no"]) |
| 57 | AC_MSG_RESULT([${have_lstat}]) | 56 | AC_MSG_RESULT([${have_lstat}]) |
| 58 | 57 | ||
| 59 | if test "x${have_lstat}" = "xyes" ; then | 58 | if test "x${have_lstat}" = "xyes" ; then |
diff --git a/m4/as-compiler-flag.m4 b/m4/as-compiler-flag.m4 index 0f660cf..baab5d9 100644 --- a/m4/as-compiler-flag.m4 +++ b/m4/as-compiler-flag.m4 | |||
| @@ -18,7 +18,7 @@ AC_DEFUN([AS_COMPILER_FLAG], | |||
| 18 | save_CFLAGS="$CFLAGS" | 18 | save_CFLAGS="$CFLAGS" |
| 19 | CFLAGS="$CFLAGS $1" | 19 | CFLAGS="$CFLAGS $1" |
| 20 | 20 | ||
| 21 | AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no]) | 21 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [flag_ok=yes], [flag_ok=no]) |
| 22 | CFLAGS="$save_CFLAGS" | 22 | CFLAGS="$save_CFLAGS" |
| 23 | 23 | ||
| 24 | if test "X$flag_ok" = Xyes ; then | 24 | if test "X$flag_ok" = Xyes ; then |
| @@ -44,7 +44,7 @@ AC_DEFUN([AS_COMPILER_FLAGS], | |||
| 44 | do | 44 | do |
| 45 | save_CFLAGS="$CFLAGS" | 45 | save_CFLAGS="$CFLAGS" |
| 46 | CFLAGS="$CFLAGS $each" | 46 | CFLAGS="$CFLAGS $each" |
| 47 | AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no]) | 47 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [flag_ok=yes], [flag_ok=no]) |
| 48 | CFLAGS="$save_CFLAGS" | 48 | CFLAGS="$save_CFLAGS" |
| 49 | 49 | ||
| 50 | if test "X$flag_ok" = Xyes ; then | 50 | if test "X$flag_ok" = Xyes ; then |
