summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2025-09-29 11:19:59 +0200
committerGravatar Nikias Bassen2025-09-29 11:19:59 +0200
commitc71cc3d9caa830bea91cf82c60f2d912e66aa9d5 (patch)
tree70e9a54a9be73db526eabdd9ff29a2e079691dff /configure.ac
parente22e5b2a54475eca5eddd3afe1f1997a992c5040 (diff)
downloadifuse-c71cc3d9caa830bea91cf82c60f2d912e66aa9d5.tar.gz
ifuse-c71cc3d9caa830bea91cf82c60f2d912e66aa9d5.tar.bz2
Update deprecated autoconf macros and automatically derive version number from latest git tag
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 12 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index f30e7d9..5eb827e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,16 +1,22 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
-AC_PREREQ(2.64)
-AC_INIT([ifuse], [1.1.5], [https://github.com/libimobiledevice/ifuse/issues],, [https://libimobiledevice.org])
+AC_PREREQ(2.68)
+AC_INIT([ifuse], [m4_esyscmd(./git-version-gen $RELEASE_VERSION)], [https://github.com/libimobiledevice/ifuse/issues],, [https://libimobiledevice.org])
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip check-news])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AC_CONFIG_SRCDIR([src/])
AC_CONFIG_HEADERS([config.h])
+# Check if we have a version defined
+if test -z $PACKAGE_VERSION; then
+ AC_MSG_ERROR([PACKAGE_VERSION is not defined. Make sure to configure a source tree checked out from git or that .tarball-version is present.])
+fi
+
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
+LT_INIT
# Checks for libraries.
PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.3.0)
@@ -18,8 +24,7 @@ PKG_CHECK_MODULES(libfuse, fuse3 >= 3.0.0)
PKG_CHECK_MODULES(libplist, libplist-2.0 >= 2.2.0)
# Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([arpa/inet.h stdint.h stdlib.h string.h])
+AC_CHECK_HEADERS([stdint.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
@@ -36,17 +41,18 @@ AC_CHECK_FUNCS([strcasecmp strdup strerror strndup])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
-AC_OUTPUT([
+AC_CONFIG_FILES([
Makefile
src/Makefile
docs/Makefile
])
+AC_OUTPUT
echo "
Configuration for $PACKAGE $VERSION:
-------------------------------------------
- Install prefix ..........: $prefix
+ Install prefix: .........: $prefix
Now type 'make' to build $PACKAGE $VERSION,
and then 'make install' for installation.